(function () { 'use strict'; var controllerId = 'developerKey'; angular.module('developerKey').controller(controllerId, ['config', 'brandingDataContext', 'brandingService', 'user', 'common', '$location', '$modal', '$upload', 'OrganisationAdminService', 'fileUpload','features', developerKey]); function developerKey(config, brandingDataContext, brandingService, user, common, $location, $modal, $upload, OrganisationAdminService, fileUpload, features) { var getLogFn = common.logger.getLogFn; var log = getLogFn('developerKey'); var logSuccess = getLogFn('developerKey', "success"); var vm = this; activate(); function activate() { NProgress.done(); log('Activated dashboard View'); getFeatures(); } function getFeatures() { OrganisationAdminService.getTopLevelOrg().then(function (org) { features.getCurrentFeatures(org.id).then(function (features) { vm.features = features; }); }); } } })();