/**
* @ngdoc directives
* @name VoipService
* @module s4c.directives.viop.VoipService
*
* @description
* `VoipService` Componente para acesso a api do backend e/ou comunicação entre controllers
*
*/
(function () {
'use strict';
function VoipService($http, $q, API_ENDPOINT, Usuario) {
var service = {
isConnected: false,
isConnecting: false,
isSetCorrectly: true,
b_mute: false,
sipStack: {},
oConfigMakeCall: {},
subscribeSession: {},
publishSession: {},
messageSession: {},
registerSession: {},
sipSessionCall: {},
usuarioRamal: '',
s_user_name: '',
displayName: ''
};
return service;
}
VoipService.$inject = [
'$http',
'$q',
'API_ENDPOINT',
'Usuario'
];
angular.module('s4c.components.voip')
.service('VoipService', VoipService);
})();