/**
* @ngdoc data_enter
* @name DataEnterCtrl
* @module s4c.components.data_enter.DataEnterCtrl
*
* @description Controller do módulo de incidentes
*
*
*/
(function () {
'use strict';
/**
* @method DataEnterCtrl
*
* @param {*} $scope
* @param {*} $state
* @param {*} UserInfo
* @param {*} AuthService
* @param {*} MainState
*/
function DataEnterCtrl($scope, $state, UserInfo, AuthService, MainState) {
console.log('Data enter instanciado!!');
$scope.usuario = UserInfo;
$scope.logout = function () {
if (MainState.getDirective('voip') != null) {
MainState.getDirective('voip').deslogar();
}
AuthService.logout();
$state.go('inicio');
};
}
angular.module('s4c.controllers.DataEnterCtrl', [
'ngMaterial'
])
.controller('DataEnterCtrl', DataEnterCtrl);
DataEnterCtrl.$inject = ['$scope', '$state', 'UserInfo', 'AuthService', 'MainState'];
}());