'use strict';

var profileApp = angular.module('profileApp', [
        'ngSanitize',
        'ngRoute',
        'notifications',
        'ui.bootstrap',
        'profileServiceModule',
        'profilesDirectivesModule',
    ]
);

profileApp.run(['$rootScope', 'profileService', function ($rootScope, profileService) {
    $rootScope.showTwoFaNotification = undefined;
    profileService.getUser().then(function (response) {
        $rootScope.showTwoFaNotification = !response.data.two_factor_enabled;
    });
}]);

