(function () { 'use strict'; var controllerId = 'account_signout'; angular.module('app').controller(controllerId, ['auth', 'userAuth', '$location', 'config', account_signout]); function account_signout(authService, userAuth, $location, config) { activate(); function activate() { userAuth.setAuthToken(null); userAuth.setRoleToken(null); authService.logOut(); $location.path(config.loginRoute); window.location.reload(); } } })();