Built motion from commit aab208717af8d15f4fa224cdb6a202877019af9b. Version 3.0.0...
[motion-next.git] / server / services / ami / report / voiceDialReport.js
index 9e16f4a..9f7ae87 100644 (file)
@@ -1 +1 @@
-const a1097_0x3a9d=['syncDialEnd','YYYY-MM-DD\x20HH:mm:ss','holdtime','syncVarSet','../../../config/logger','../ami','membercalls','linkedid','billableseconds','sipcallid','rtpaudioqos','answered','variables','rtpaudioqosjitter','isNotNull','stringify','variable','[syncVarSet][VoiceDialReport]','inspect','rtpaudioqosbridged','called','emit','ANSWER','connect','sumBillable','moment','total','custom:dialend','sipuri','lastIndexOf','event','lastevent','sumDuration','memberrealtime','syncHangup','[syncDialEnd][VoiceDialReport]','privilege','addVariable','[syncHangup][VoiceDialReport]','memberinterface','starttime','memberlastcall','custom:dialbegin','exports','bind','dialstatus','syncDialBegin','voice_outbound_channel:save','rtpaudioqoslossbridged','includes','outboundChannels','connectedlinename','custom:dialconnect','error','memberpenalty','outbound','membername','seconds','voice:outbound','[syncDialBegin][VoiceDialReport]','answertime','lodash','channel','keys','varset','voice_outbound_channel:remove','uniqueid','bridgepeer','format','substring','[DEBUG]\x20Emit\x20voice_outbound_channel:remove\x20event','memberdynamic','rtpaudioqosloss','isNil','sumHoldTime','rtpaudioqosrtt','rtpaudioqosjitterbridged','destuniqueid','custom:voiceDialReport','duration','endtime','isUndefined','value','prototype','connectedlinenum','channels','diff'];(function(_0x37df48,_0x3a9d89){const _0x11edca=function(_0x528f04){while(--_0x528f04){_0x37df48['push'](_0x37df48['shift']());}};_0x11edca(++_0x3a9d89);}(a1097_0x3a9d,0xeb));const a1097_0x11ed=function(_0x37df48,_0x3a9d89){_0x37df48=_0x37df48-0x0;let _0x11edca=a1097_0x3a9d[_0x37df48];return _0x11edca;};const _0x1eef80=a1097_0x11ed;'use strict';const _=require(_0x1eef80('0x0')),moment=require(_0x1eef80('0x33')),util=require('util'),logger=require(_0x1eef80('0x1e'))('ami'),ami=require(_0x1eef80('0x1f')),{getSocket}=require('../../../rediscache'),io=getSocket();function VoiceDialReport(_0x528f04){const _0x57b571=_0x1eef80;this[_0x57b571('0x18')]=_0x528f04[_0x57b571('0x4c')],this['outbound']=_0x528f04[_0x57b571('0x51')],this[_0x57b571('0x26')]={},ami['on']('dialbegin',this['syncDialBegin'][_0x57b571('0x46')](this)),ami['on']('dialend',this[_0x57b571('0x1a')][_0x57b571('0x46')](this)),ami['on'](_0x57b571('0x3'),this['syncVarSet'][_0x57b571('0x46')](this)),ami['on']('hangup',this[_0x57b571('0x3c')][_0x57b571('0x46')](this));}VoiceDialReport['prototype']['isNotNull']=function(_0x3ee01e){return _0x3ee01e!==null&&!_['isUndefined'](_0x3ee01e);},VoiceDialReport['prototype']['emit']=function(_0x49866e,_0x221e9f,_0x122d3e){const _0x15bf2d=_0x1eef80;io['to'](_0x49866e)[_0x15bf2d('0x2f')](_0x221e9f,_0x122d3e);},VoiceDialReport['prototype'][_0x1eef80('0x48')]=function(_0x2a670d){const _0x387cfc=_0x1eef80;try{this['isNotNull'](_0x2a670d)&&(this['channels'][_0x2a670d[_0x387cfc('0x5')]]&&(_['merge'](this['channels'][_0x2a670d[_0x387cfc('0x5')]],{'starttime':moment()[_0x387cfc('0x7')](_0x387cfc('0x1b')),'lastevent':_0x387cfc('0x2e'),'interface':_0x2a670d[_0x387cfc('0x1')][_0x387cfc('0x8')](0x0,_0x2a670d[_0x387cfc('0x1')][_0x387cfc('0x37')]('-')),'membername':_0x2a670d[_0x387cfc('0x1')][_0x387cfc('0x8')](_0x2a670d['channel'][_0x387cfc('0x37')]('/')+0x1,_0x2a670d[_0x387cfc('0x1')]['lastIndexOf']('-'))},_['omit'](_0x2a670d,[_0x387cfc('0x38'),_0x387cfc('0x3e')])),this['emit'](_0x387cfc('0x54'),'voice_outbound_channel:save',this[_0x387cfc('0x18')][_0x2a670d['uniqueid']]),ami[_0x387cfc('0x2f')](_0x387cfc('0x44'),this[_0x387cfc('0x18')][_0x2a670d['uniqueid']])));}catch(_0x216953){logger['error'](_0x387cfc('0x55'),util[_0x387cfc('0x2c')](_0x216953,{'showHidden':![],'depth':null}));}},VoiceDialReport[_0x1eef80('0x16')][_0x1eef80('0x1a')]=function(_0x171cdd){const _0x78af0f=_0x1eef80;try{this['isNotNull'](_0x171cdd)&&(this[_0x78af0f('0x18')][_0x171cdd[_0x78af0f('0x5')]]&&(this[_0x78af0f('0x18')][_0x171cdd['uniqueid']][_0x78af0f('0x47')]=_0x171cdd[_0x78af0f('0x47')],_0x171cdd[_0x78af0f('0x47')]===_0x78af0f('0x30')&&(this[_0x78af0f('0x18')][_0x171cdd[_0x78af0f('0x5')]][_0x78af0f('0x17')]=_0x171cdd[_0x78af0f('0x17')],this[_0x78af0f('0x18')][_0x171cdd[_0x78af0f('0x5')]][_0x78af0f('0x4d')]=_0x171cdd[_0x78af0f('0x4d')],this['channels'][_0x171cdd['uniqueid']][_0x78af0f('0x56')]=moment()[_0x78af0f('0x7')](_0x78af0f('0x1b')),this[_0x78af0f('0x18')][_0x171cdd[_0x78af0f('0x5')]][_0x78af0f('0x39')]=_0x78af0f('0x31'),ami[_0x78af0f('0x2f')](_0x78af0f('0x4e'),this[_0x78af0f('0x18')][_0x171cdd['uniqueid']])),this['emit'](_0x78af0f('0x54'),_0x78af0f('0x49'),this[_0x78af0f('0x18')][_0x171cdd[_0x78af0f('0x5')]])));}catch(_0x1faeb6){logger[_0x78af0f('0x4f')](_0x78af0f('0x3d'),util[_0x78af0f('0x2c')](_0x1faeb6,{'showHidden':![],'depth':null}));}},VoiceDialReport[_0x1eef80('0x16')][_0x1eef80('0x1d')]=function(_0x56ca7a){const _0x5e998b=_0x1eef80;try{this[_0x5e998b('0x28')](_0x56ca7a)&&(this[_0x5e998b('0x3f')](_0x56ca7a['uniqueid'],_[_0x5e998b('0x2')](_0x56ca7a['variable'])[0x0],_0x56ca7a[_0x5e998b('0x15')]),this[_0x5e998b('0x28')](_0x56ca7a['variable'])&&this[_0x5e998b('0x28')](_0x56ca7a[_0x5e998b('0x2a')]['outboundrouteid'])&&(_[_0x5e998b('0x14')](this['channels'][_0x56ca7a[_0x5e998b('0x5')]])&&(this[_0x5e998b('0x18')][_0x56ca7a[_0x5e998b('0x5')]]={'routeId':_0x56ca7a[_0x5e998b('0x15')],'variables':this[_0x5e998b('0x26')][_0x56ca7a['uniqueid']]},this[_0x5e998b('0x2f')](_0x5e998b('0x54'),_0x5e998b('0x49'),this[_0x5e998b('0x18')][_0x56ca7a[_0x5e998b('0x5')]]))));}catch(_0x3cb38a){logger['error'](_0x5e998b('0x2b'),util[_0x5e998b('0x2c')](_0x3cb38a,{'showHidden':![],'depth':null}));}},VoiceDialReport['prototype'][_0x1eef80('0x3f')]=function(_0x337c0b,_0x39488c,_0x55fca3){const _0x46d321=_0x1eef80,_0x2c62d8=[_0x46d321('0x24'),_0x46d321('0x2d'),_0x46d321('0x27'),_0x46d321('0xf'),_0x46d321('0xb'),_0x46d321('0x4a'),_0x46d321('0xe'),'rtpaudioqosrttbridged',_0x46d321('0x23'),_0x46d321('0x36'),_0x46d321('0x6'),'bridgepvtcallid',_0x46d321('0x20'),_0x46d321('0xa'),_0x46d321('0x41'),_0x46d321('0x43'),_0x46d321('0x52'),_0x46d321('0x50'),_0x46d321('0x3b')];!_[_0x46d321('0xc')](_0x39488c)&&!_[_0x46d321('0x4b')](_0x2c62d8,_0x39488c)&&(_['isUndefined'](this['variables'][_0x337c0b])&&(this[_0x46d321('0x26')][_0x337c0b]={}),this[_0x46d321('0x26')][_0x337c0b][_0x39488c]=_0x55fca3);},VoiceDialReport[_0x1eef80('0x16')][_0x1eef80('0x3c')]=function(_0x5753b0){const _0x2d01c1=_0x1eef80;try{if(this[_0x2d01c1('0x28')](_0x5753b0)){if(this[_0x2d01c1('0x18')][_0x5753b0[_0x2d01c1('0x5')]])this['channels'][_0x5753b0[_0x2d01c1('0x5')]][_0x2d01c1('0x13')]=moment()[_0x2d01c1('0x7')](_0x2d01c1('0x1b')),this[_0x2d01c1('0x18')][_0x5753b0[_0x2d01c1('0x5')]][_0x2d01c1('0x12')]=moment(this[_0x2d01c1('0x18')][_0x5753b0['uniqueid']][_0x2d01c1('0x13')])[_0x2d01c1('0x19')](this[_0x2d01c1('0x18')][_0x5753b0[_0x2d01c1('0x5')]][_0x2d01c1('0x42')],'seconds'),this['channels'][_0x5753b0[_0x2d01c1('0x5')]][_0x2d01c1('0x39')]='complete',this[_0x2d01c1('0x51')][_0x2d01c1('0x34')]+=0x1,this['channels'][_0x5753b0[_0x2d01c1('0x5')]][_0x2d01c1('0x56')]&&(this[_0x2d01c1('0x51')][_0x2d01c1('0x25')]+=0x1,this[_0x2d01c1('0x18')][_0x5753b0[_0x2d01c1('0x5')]]['holdtime']=moment(this[_0x2d01c1('0x18')][_0x5753b0[_0x2d01c1('0x5')]]['answertime'])[_0x2d01c1('0x19')](this['channels'][_0x5753b0[_0x2d01c1('0x5')]][_0x2d01c1('0x42')],_0x2d01c1('0x53')),this[_0x2d01c1('0x18')][_0x5753b0[_0x2d01c1('0x5')]][_0x2d01c1('0x22')]=moment(this[_0x2d01c1('0x18')][_0x5753b0[_0x2d01c1('0x5')]][_0x2d01c1('0x13')])[_0x2d01c1('0x19')](this[_0x2d01c1('0x18')][_0x5753b0[_0x2d01c1('0x5')]]['answertime'],'seconds'),this['outbound'][_0x2d01c1('0xd')]+=this[_0x2d01c1('0x18')][_0x5753b0['uniqueid']][_0x2d01c1('0x1c')]||0x0,this[_0x2d01c1('0x51')][_0x2d01c1('0x32')]+=this[_0x2d01c1('0x18')][_0x5753b0[_0x2d01c1('0x5')]][_0x2d01c1('0x22')]),this[_0x2d01c1('0x51')][_0x2d01c1('0x3a')]+=this[_0x2d01c1('0x18')][_0x5753b0['uniqueid']][_0x2d01c1('0x12')],ami[_0x2d01c1('0x2f')](_0x2d01c1('0x11'),this['channels'][_0x5753b0[_0x2d01c1('0x5')]]),ami[_0x2d01c1('0x2f')](_0x2d01c1('0x35'),this[_0x2d01c1('0x18')][_0x5753b0[_0x2d01c1('0x5')]]),this['emit'](_0x2d01c1('0x54'),'voice_outbound:save',this[_0x2d01c1('0x51')]),logger['info'](_0x2d01c1('0x9'),JSON[_0x2d01c1('0x29')](this[_0x2d01c1('0x18')][_0x5753b0[_0x2d01c1('0x5')]])),this[_0x2d01c1('0x2f')](_0x2d01c1('0x54'),_0x2d01c1('0x4'),this[_0x2d01c1('0x18')][_0x5753b0[_0x2d01c1('0x5')]]),delete this[_0x2d01c1('0x18')][_0x5753b0['uniqueid']];else this[_0x2d01c1('0x18')][_0x5753b0[_0x2d01c1('0x21')]]&&(this[_0x2d01c1('0x18')][_0x5753b0['linkedid']]['uniqueid']=this['channels'][_0x5753b0[_0x2d01c1('0x21')]][_0x2d01c1('0x10')]);this['variables'][_0x5753b0[_0x2d01c1('0x5')]]&&delete this[_0x2d01c1('0x26')][_0x5753b0[_0x2d01c1('0x5')]];}}catch(_0x368646){logger[_0x2d01c1('0x4f')](_0x2d01c1('0x40'),util[_0x2d01c1('0x2c')](_0x368646,{'showHidden':![],'depth':null}));}},module[_0x1eef80('0x45')]=VoiceDialReport;
\ No newline at end of file
+const a1097_0x418a=['dialbegin','rtpaudioqos','connectedlinename','connect','starttime','[syncDialBegin][VoiceDialReport]','util','rtpaudioqosjitterbridged','channels','includes','lastevent','[syncVarSet][VoiceDialReport]','diff','syncDialBegin','answered','dialstatus','hangup','answertime','rtpaudioqosrtt','memberrealtime','emit','lastIndexOf','syncHangup','bridgepvtcallid','connectedlinenum','value','endtime','merge','ANSWER','exports','rtpaudioqosloss','../../../rediscache','syncDialEnd','memberdynamic','total','voice:outbound','holdtime','voice_outbound_channel:save','linkedid','channel','varset','bind','ami','format','duration','YYYY-MM-DD\x20HH:mm:ss','error','sumHoldTime','privilege','rtpaudioqosbridged','info','isUndefined','addVariable','custom:voiceDialReport','seconds','custom:dialend','uniqueid','sumDuration','dialend','isNotNull','event','outboundrouteid','lodash','keys','[syncDialEnd][VoiceDialReport]','[syncHangup][VoiceDialReport]','memberpenalty','prototype','moment','billableseconds','inspect','membercalls','variable','sipuri','custom:dialconnect','called','custom:dialbegin','syncVarSet','memberlastcall','variables','outbound'];(function(_0xe4941c,_0x418a95){const _0x2e2ebf=function(_0x17c891){while(--_0x17c891){_0xe4941c['push'](_0xe4941c['shift']());}};_0x2e2ebf(++_0x418a95);}(a1097_0x418a,0x168));const a1097_0x2e2e=function(_0xe4941c,_0x418a95){_0xe4941c=_0xe4941c-0x0;let _0x2e2ebf=a1097_0x418a[_0xe4941c];return _0x2e2ebf;};const _0x1c2a4f=a1097_0x2e2e;'use strict';const _=require(_0x1c2a4f('0x1a')),moment=require(_0x1c2a4f('0x20')),util=require(_0x1c2a4f('0x33')),logger=require('../../../config/logger')(_0x1c2a4f('0x6')),ami=require('../ami'),{getSocket}=require(_0x1c2a4f('0x4c')),io=getSocket();function VoiceDialReport(_0x17c891){const _0x3b70f1=_0x1c2a4f;this[_0x3b70f1('0x35')]=_0x17c891['outboundChannels'],this[_0x3b70f1('0x2c')]=_0x17c891[_0x3b70f1('0x2c')],this[_0x3b70f1('0x2b')]={},ami['on'](_0x3b70f1('0x2d'),this[_0x3b70f1('0x3a')][_0x3b70f1('0x5')](this)),ami['on'](_0x3b70f1('0x16'),this[_0x3b70f1('0x4d')][_0x3b70f1('0x5')](this)),ami['on'](_0x3b70f1('0x4'),this[_0x3b70f1('0x29')][_0x3b70f1('0x5')](this)),ami['on'](_0x3b70f1('0x3d'),this[_0x3b70f1('0x43')]['bind'](this));}VoiceDialReport[_0x1c2a4f('0x1f')][_0x1c2a4f('0x17')]=function(_0x431a37){return _0x431a37!==null&&!_['isUndefined'](_0x431a37);},VoiceDialReport[_0x1c2a4f('0x1f')][_0x1c2a4f('0x41')]=function(_0x21e783,_0x46ed5a,_0x348601){io['to'](_0x21e783)['emit'](_0x46ed5a,_0x348601);},VoiceDialReport[_0x1c2a4f('0x1f')][_0x1c2a4f('0x3a')]=function(_0x2ed19e){const _0x2e6259=_0x1c2a4f;try{this['isNotNull'](_0x2ed19e)&&(this[_0x2e6259('0x35')][_0x2ed19e['uniqueid']]&&(_[_0x2e6259('0x48')](this[_0x2e6259('0x35')][_0x2ed19e['uniqueid']],{'starttime':moment()[_0x2e6259('0x7')]('YYYY-MM-DD\x20HH:mm:ss'),'lastevent':_0x2e6259('0x27'),'interface':_0x2ed19e[_0x2e6259('0x3')]['substring'](0x0,_0x2ed19e[_0x2e6259('0x3')]['lastIndexOf']('-')),'membername':_0x2ed19e[_0x2e6259('0x3')]['substring'](_0x2ed19e[_0x2e6259('0x3')][_0x2e6259('0x42')]('/')+0x1,_0x2ed19e[_0x2e6259('0x3')]['lastIndexOf']('-'))},_['omit'](_0x2ed19e,[_0x2e6259('0x18'),_0x2e6259('0xc')])),this[_0x2e6259('0x41')]('voice:outbound',_0x2e6259('0x1'),this['channels'][_0x2ed19e['uniqueid']]),ami['emit'](_0x2e6259('0x28'),this[_0x2e6259('0x35')][_0x2ed19e['uniqueid']])));}catch(_0x2bafee){logger[_0x2e6259('0xa')](_0x2e6259('0x32'),util[_0x2e6259('0x22')](_0x2bafee,{'showHidden':![],'depth':null}));}},VoiceDialReport['prototype']['syncDialEnd']=function(_0x58da26){const _0x274737=_0x1c2a4f;try{this['isNotNull'](_0x58da26)&&(this[_0x274737('0x35')][_0x58da26['uniqueid']]&&(this[_0x274737('0x35')][_0x58da26['uniqueid']][_0x274737('0x3c')]=_0x58da26[_0x274737('0x3c')],_0x58da26[_0x274737('0x3c')]===_0x274737('0x49')&&(this[_0x274737('0x35')][_0x58da26[_0x274737('0x14')]]['connectedlinenum']=_0x58da26[_0x274737('0x45')],this[_0x274737('0x35')][_0x58da26['uniqueid']][_0x274737('0x2f')]=_0x58da26[_0x274737('0x2f')],this['channels'][_0x58da26[_0x274737('0x14')]][_0x274737('0x3e')]=moment()['format'](_0x274737('0x9')),this['channels'][_0x58da26[_0x274737('0x14')]][_0x274737('0x37')]=_0x274737('0x30'),ami[_0x274737('0x41')](_0x274737('0x26'),this[_0x274737('0x35')][_0x58da26[_0x274737('0x14')]])),this['emit']('voice:outbound',_0x274737('0x1'),this[_0x274737('0x35')][_0x58da26[_0x274737('0x14')]])));}catch(_0x4c912c){logger[_0x274737('0xa')](_0x274737('0x1c'),util[_0x274737('0x22')](_0x4c912c,{'showHidden':![],'depth':null}));}},VoiceDialReport[_0x1c2a4f('0x1f')][_0x1c2a4f('0x29')]=function(_0xc2e94b){const _0x56d750=_0x1c2a4f;try{this[_0x56d750('0x17')](_0xc2e94b)&&(this[_0x56d750('0x10')](_0xc2e94b['uniqueid'],_[_0x56d750('0x1b')](_0xc2e94b[_0x56d750('0x24')])[0x0],_0xc2e94b['value']),this['isNotNull'](_0xc2e94b[_0x56d750('0x24')])&&this[_0x56d750('0x17')](_0xc2e94b[_0x56d750('0x24')][_0x56d750('0x19')])&&(_[_0x56d750('0xf')](this[_0x56d750('0x35')][_0xc2e94b['uniqueid']])&&(this[_0x56d750('0x35')][_0xc2e94b['uniqueid']]={'routeId':_0xc2e94b[_0x56d750('0x46')],'variables':this[_0x56d750('0x2b')][_0xc2e94b[_0x56d750('0x14')]]},this[_0x56d750('0x41')]('voice:outbound',_0x56d750('0x1'),this['channels'][_0xc2e94b[_0x56d750('0x14')]]))));}catch(_0x5da6ee){logger[_0x56d750('0xa')](_0x56d750('0x38'),util[_0x56d750('0x22')](_0x5da6ee,{'showHidden':![],'depth':null}));}},VoiceDialReport[_0x1c2a4f('0x1f')][_0x1c2a4f('0x10')]=function(_0x988f15,_0x309d72,_0x2d8ed3){const _0x20cba0=_0x1c2a4f,_0x49a603=[_0x20cba0('0x2e'),_0x20cba0('0xd'),'rtpaudioqosjitter',_0x20cba0('0x34'),_0x20cba0('0x4b'),'rtpaudioqoslossbridged',_0x20cba0('0x3f'),'rtpaudioqosrttbridged','sipcallid',_0x20cba0('0x25'),'bridgepeer',_0x20cba0('0x44'),_0x20cba0('0x23'),_0x20cba0('0x4e'),'memberinterface',_0x20cba0('0x2a'),'membername',_0x20cba0('0x1e'),_0x20cba0('0x40')];!_['isNil'](_0x309d72)&&!_[_0x20cba0('0x36')](_0x49a603,_0x309d72)&&(_[_0x20cba0('0xf')](this[_0x20cba0('0x2b')][_0x988f15])&&(this[_0x20cba0('0x2b')][_0x988f15]={}),this[_0x20cba0('0x2b')][_0x988f15][_0x309d72]=_0x2d8ed3);},VoiceDialReport[_0x1c2a4f('0x1f')][_0x1c2a4f('0x43')]=function(_0xd32eb6){const _0x5f4f42=_0x1c2a4f;try{if(this[_0x5f4f42('0x17')](_0xd32eb6)){if(this[_0x5f4f42('0x35')][_0xd32eb6[_0x5f4f42('0x14')]])this[_0x5f4f42('0x35')][_0xd32eb6[_0x5f4f42('0x14')]]['endtime']=moment()[_0x5f4f42('0x7')]('YYYY-MM-DD\x20HH:mm:ss'),this['channels'][_0xd32eb6[_0x5f4f42('0x14')]][_0x5f4f42('0x8')]=moment(this['channels'][_0xd32eb6[_0x5f4f42('0x14')]][_0x5f4f42('0x47')])[_0x5f4f42('0x39')](this[_0x5f4f42('0x35')][_0xd32eb6['uniqueid']][_0x5f4f42('0x31')],_0x5f4f42('0x12')),this[_0x5f4f42('0x35')][_0xd32eb6[_0x5f4f42('0x14')]][_0x5f4f42('0x37')]='complete',this['outbound'][_0x5f4f42('0x4f')]+=0x1,this[_0x5f4f42('0x35')][_0xd32eb6[_0x5f4f42('0x14')]][_0x5f4f42('0x3e')]&&(this['outbound'][_0x5f4f42('0x3b')]+=0x1,this[_0x5f4f42('0x35')][_0xd32eb6[_0x5f4f42('0x14')]][_0x5f4f42('0x0')]=moment(this[_0x5f4f42('0x35')][_0xd32eb6[_0x5f4f42('0x14')]][_0x5f4f42('0x3e')])[_0x5f4f42('0x39')](this[_0x5f4f42('0x35')][_0xd32eb6[_0x5f4f42('0x14')]][_0x5f4f42('0x31')],_0x5f4f42('0x12')),this[_0x5f4f42('0x35')][_0xd32eb6[_0x5f4f42('0x14')]][_0x5f4f42('0x21')]=moment(this[_0x5f4f42('0x35')][_0xd32eb6[_0x5f4f42('0x14')]][_0x5f4f42('0x47')])[_0x5f4f42('0x39')](this[_0x5f4f42('0x35')][_0xd32eb6[_0x5f4f42('0x14')]]['answertime'],_0x5f4f42('0x12')),this[_0x5f4f42('0x2c')][_0x5f4f42('0xb')]+=this[_0x5f4f42('0x35')][_0xd32eb6['uniqueid']][_0x5f4f42('0x0')]||0x0,this['outbound']['sumBillable']+=this[_0x5f4f42('0x35')][_0xd32eb6[_0x5f4f42('0x14')]][_0x5f4f42('0x21')]),this['outbound'][_0x5f4f42('0x15')]+=this[_0x5f4f42('0x35')][_0xd32eb6['uniqueid']][_0x5f4f42('0x8')],ami['emit'](_0x5f4f42('0x11'),this['channels'][_0xd32eb6[_0x5f4f42('0x14')]]),ami[_0x5f4f42('0x41')](_0x5f4f42('0x13'),this[_0x5f4f42('0x35')][_0xd32eb6[_0x5f4f42('0x14')]]),this[_0x5f4f42('0x41')](_0x5f4f42('0x50'),'voice_outbound:save',this['outbound']),logger[_0x5f4f42('0xe')]('[DEBUG]\x20Emit\x20voice_outbound_channel:remove\x20event',JSON['stringify'](this[_0x5f4f42('0x35')][_0xd32eb6[_0x5f4f42('0x14')]])),this[_0x5f4f42('0x41')]('voice:outbound','voice_outbound_channel:remove',this['channels'][_0xd32eb6[_0x5f4f42('0x14')]]),delete this[_0x5f4f42('0x35')][_0xd32eb6[_0x5f4f42('0x14')]];else this[_0x5f4f42('0x35')][_0xd32eb6[_0x5f4f42('0x2')]]&&(this[_0x5f4f42('0x35')][_0xd32eb6[_0x5f4f42('0x2')]][_0x5f4f42('0x14')]=this[_0x5f4f42('0x35')][_0xd32eb6[_0x5f4f42('0x2')]]['destuniqueid']);this['variables'][_0xd32eb6['uniqueid']]&&delete this[_0x5f4f42('0x2b')][_0xd32eb6[_0x5f4f42('0x14')]];}}catch(_0x393fde){logger['error'](_0x5f4f42('0x1d'),util['inspect'](_0x393fde,{'showHidden':![],'depth':null}));}},module[_0x1c2a4f('0x4a')]=VoiceDialReport;
\ No newline at end of file