www/app/components/authentication/controllers/signoutController.js
/**
     * @desc Controllers of ProvisionalPlans
     * @namespace LogoutController
     * @memberOf Controllers
     */
@desc Controllers of ProvisionalPlans
@namespace LogoutController
@memberOf Controllers
@desc Controllers of ProvisionalPlans @namespace LogoutController @memberOf Controllers
function LogoutController($rootScope, $scope, $state, authenticateWebApi) {
        (function init() {
            defineScope();
            defineListeners();
        })();
        function defineScope() {
        }
        function defineListeners() {
            $scope.logout = _logout;
        }
        function _logout() {
            authenticateWebApi.logout().then(function () {
                $rootScope.user = null;
                $state.go('home');
            });
        }
    }
function LogoutController ( $rootScope , $scope , $state , authenticateWebApi ) { ( function init ( ) { defineScope ( ) ; defineListeners ( ) ; } ) ( ) ; function defineScope ( ) { } function defineListeners ( ) { $scope . logout = _logout ; } function _logout ( ) { authenticateWebApi . logout ( ) . then ( function ( ) { $rootScope . user = null ; $state . go ( 'home' ) ; } ) ; } }
@desc Controllers of ProvisionalPlans
 @namespace LogoutController
 @memberOf Controllers
@desc Controllers of ProvisionalPlans @namespace LogoutController @memberOf Controllers
/**
         * @desc Defines all $scope variables
         * @function defineScope
         * @memberOf Controllers.LogoutController
         */ /**
         * @desc Attach view listeners to this controller
         * @function defineListeners
         * @memberOf Controllers.LogoutController
         */ /**
         * @desc Call a factory to try disconnect user
         * @function _logout
         * @memberOf Controllers.LogoutController
         */