/**
* @ngdoc managers
* @name TarefaManager
* @module s4c.managers.TarefaManager
*
* @description
* `TarefaManager` Componente para comunicação entre uma página html qualquer e o controller da diretiva
*
*
*/
(function () {
'use strict';
function TarefaManager(MainState) {
return {
'ativo': false,
'zindex': 35,
'unreadMessages': false,
'close': false,
/**
* @method closePush
*/
'closePush': function () {
this.close = false;
},
/**
* @method abrir
*/
'abrir': function () {
this.ativo = true;
MainState.getDirective('tarefa');
tarefa.abrirTarefa();
},
/**
* @method fechar
*/
'fechar': function () {
this.ativo = false;
this.unreadMessages = false;
},
/**
* @method getTarefas
*/
'getTarefas': function () {
var tarefa = MainState.getDirective('tarefa');
}
};
}
TarefaManager.$inject = ['MainState'];
angular.module('s4c.managers')
.service('TarefaManager', TarefaManager);
})();