export var getScopeNames = function getScopeNames(assetPackage, button) {
  return button.scopes ? button.scopes.map(function (scopeIndex) {
    return assetPackage.scopes[scopeIndex];
  }).filter(function (s) {
    return s;
  }).map(function (s) {
    return s.name;
  }) : [];
};