Built motion from commit 8dca541896b0ff92bb88a36cc13f4f385b593b4b. Version 3.0.0...
[motion-next.git] / server / services / ami / report / voiceDialReport.js
index 102b5df..4635dd2 100644 (file)
@@ -1 +1 @@
-const a1097_0x271d=['billableseconds','lodash','complete','outboundChannels','substring','membercalls','sipuri','[syncHangup][VoiceDialReport]','variables','syncDialEnd','rtpaudioqosjitter','dialend','sumBillable','connectedlinenum','rtpaudioqoslossbridged','endtime','uniqueid','varset','voice_outbound:save','voice_outbound_channel:save','../ami','value','error','rtpaudioqosbridged','custom:dialbegin','ANSWER','holdtime','inspect','exports','rtpaudioqosjitterbridged','isUndefined','prototype','isNotNull','emit','seconds','called','sipcallid','diff','syncHangup','custom:voiceDialReport','omit','total','../../../rediscache','outboundrouteid','includes','channels','voice:outbound','outbound','rtpaudioqosrttbridged','rtpaudioqosloss','moment','bind','variable','rtpaudioqos','lastevent','memberdynamic','syncVarSet','memberinterface','dialstatus','channel','[syncDialEnd][VoiceDialReport]','sumHoldTime','YYYY-MM-DD\x20HH:mm:ss','addVariable','linkedid','ami','custom:dialend','lastIndexOf','[syncVarSet][VoiceDialReport]','format','duration','keys','[DEBUG]\x20Emit\x20voice_outbound_channel:remove\x20event','answertime','starttime','syncDialBegin','isNil','bridgepeer','event','memberlastcall','connectedlinename'];(function(_0x4a28ec,_0x271de6){const _0x1f3e11=function(_0x12ce51){while(--_0x12ce51){_0x4a28ec['push'](_0x4a28ec['shift']());}};_0x1f3e11(++_0x271de6);}(a1097_0x271d,0xf6));const a1097_0x1f3e=function(_0x4a28ec,_0x271de6){_0x4a28ec=_0x4a28ec-0x0;let _0x1f3e11=a1097_0x271d[_0x4a28ec];return _0x1f3e11;};const _0xef273=a1097_0x1f3e;'use strict';const _=require(_0xef273('0x4f')),moment=require(_0xef273('0x2f')),util=require('util'),logger=require('../../../config/logger')(_0xef273('0x3e')),ami=require(_0xef273('0x11')),{getSocket}=require(_0xef273('0x27')),io=getSocket();function VoiceDialReport(_0x12ce51){const _0x28d30a=_0xef273;this[_0x28d30a('0x2a')]=_0x12ce51[_0x28d30a('0x0')],this[_0x28d30a('0x2c')]=_0x12ce51[_0x28d30a('0x2c')],this['variables']={},ami['on']('dialbegin',this[_0x28d30a('0x48')][_0x28d30a('0x30')](this)),ami['on'](_0x28d30a('0x8'),this['syncDialEnd']['bind'](this)),ami['on'](_0x28d30a('0xe'),this['syncVarSet'][_0x28d30a('0x30')](this)),ami['on']('hangup',this[_0x28d30a('0x23')][_0x28d30a('0x30')](this));}VoiceDialReport['prototype'][_0xef273('0x1d')]=function(_0x5f5738){const _0xf2cdaf=_0xef273;return _0x5f5738!==null&&!_[_0xf2cdaf('0x1b')](_0x5f5738);},VoiceDialReport[_0xef273('0x1c')][_0xef273('0x1e')]=function(_0x1a14c4,_0x29effc,_0x55c46d){const _0xf4c460=_0xef273;io['to'](_0x1a14c4)[_0xf4c460('0x1e')](_0x29effc,_0x55c46d);},VoiceDialReport[_0xef273('0x1c')][_0xef273('0x48')]=function(_0x4e7e51){const _0x57ca07=_0xef273;try{this[_0x57ca07('0x1d')](_0x4e7e51)&&(this[_0x57ca07('0x2a')][_0x4e7e51[_0x57ca07('0xd')]]&&(_['merge'](this[_0x57ca07('0x2a')][_0x4e7e51[_0x57ca07('0xd')]],{'starttime':moment()[_0x57ca07('0x42')](_0x57ca07('0x3b')),'lastevent':_0x57ca07('0x20'),'interface':_0x4e7e51[_0x57ca07('0x38')][_0x57ca07('0x1')](0x0,_0x4e7e51[_0x57ca07('0x38')][_0x57ca07('0x40')]('-')),'membername':_0x4e7e51['channel'][_0x57ca07('0x1')](_0x4e7e51[_0x57ca07('0x38')][_0x57ca07('0x40')]('/')+0x1,_0x4e7e51[_0x57ca07('0x38')][_0x57ca07('0x40')]('-'))},_[_0x57ca07('0x25')](_0x4e7e51,[_0x57ca07('0x4b'),'privilege'])),this[_0x57ca07('0x1e')](_0x57ca07('0x2b'),_0x57ca07('0x10'),this[_0x57ca07('0x2a')][_0x4e7e51[_0x57ca07('0xd')]]),ami['emit'](_0x57ca07('0x15'),this[_0x57ca07('0x2a')][_0x4e7e51[_0x57ca07('0xd')]])));}catch(_0x1849e7){logger[_0x57ca07('0x13')]('[syncDialBegin][VoiceDialReport]',util[_0x57ca07('0x18')](_0x1849e7,{'showHidden':![],'depth':null}));}},VoiceDialReport['prototype'][_0xef273('0x6')]=function(_0xf7c4d5){const _0x58a97b=_0xef273;try{this[_0x58a97b('0x1d')](_0xf7c4d5)&&(this[_0x58a97b('0x2a')][_0xf7c4d5['uniqueid']]&&(this['channels'][_0xf7c4d5[_0x58a97b('0xd')]][_0x58a97b('0x37')]=_0xf7c4d5[_0x58a97b('0x37')],_0xf7c4d5[_0x58a97b('0x37')]===_0x58a97b('0x16')&&(this['channels'][_0xf7c4d5[_0x58a97b('0xd')]][_0x58a97b('0xa')]=_0xf7c4d5[_0x58a97b('0xa')],this[_0x58a97b('0x2a')][_0xf7c4d5['uniqueid']][_0x58a97b('0x4d')]=_0xf7c4d5[_0x58a97b('0x4d')],this[_0x58a97b('0x2a')][_0xf7c4d5[_0x58a97b('0xd')]][_0x58a97b('0x46')]=moment()[_0x58a97b('0x42')](_0x58a97b('0x3b')),this[_0x58a97b('0x2a')][_0xf7c4d5[_0x58a97b('0xd')]][_0x58a97b('0x33')]='connect',ami[_0x58a97b('0x1e')]('custom:dialconnect',this['channels'][_0xf7c4d5['uniqueid']])),this[_0x58a97b('0x1e')](_0x58a97b('0x2b'),_0x58a97b('0x10'),this[_0x58a97b('0x2a')][_0xf7c4d5[_0x58a97b('0xd')]])));}catch(_0x5d365e){logger['error'](_0x58a97b('0x39'),util['inspect'](_0x5d365e,{'showHidden':![],'depth':null}));}},VoiceDialReport[_0xef273('0x1c')][_0xef273('0x35')]=function(_0x4a1b10){const _0x4bcbcd=_0xef273;try{this[_0x4bcbcd('0x1d')](_0x4a1b10)&&(this['addVariable'](_0x4a1b10[_0x4bcbcd('0xd')],_[_0x4bcbcd('0x44')](_0x4a1b10[_0x4bcbcd('0x31')])[0x0],_0x4a1b10['value']),this[_0x4bcbcd('0x1d')](_0x4a1b10['variable'])&&this[_0x4bcbcd('0x1d')](_0x4a1b10['variable'][_0x4bcbcd('0x28')])&&(_[_0x4bcbcd('0x1b')](this[_0x4bcbcd('0x2a')][_0x4a1b10[_0x4bcbcd('0xd')]])&&(this[_0x4bcbcd('0x2a')][_0x4a1b10[_0x4bcbcd('0xd')]]={'routeId':_0x4a1b10[_0x4bcbcd('0x12')],'variables':this[_0x4bcbcd('0x5')][_0x4a1b10[_0x4bcbcd('0xd')]]},this[_0x4bcbcd('0x1e')](_0x4bcbcd('0x2b'),_0x4bcbcd('0x10'),this['channels'][_0x4a1b10[_0x4bcbcd('0xd')]]))));}catch(_0x5f22ab){logger['error'](_0x4bcbcd('0x41'),util[_0x4bcbcd('0x18')](_0x5f22ab,{'showHidden':![],'depth':null}));}},VoiceDialReport['prototype'][_0xef273('0x3c')]=function(_0x51d40a,_0x2d08eb,_0x5e04e8){const _0x3941ff=_0xef273,_0x525164=[_0x3941ff('0x32'),_0x3941ff('0x14'),_0x3941ff('0x7'),_0x3941ff('0x1a'),_0x3941ff('0x2e'),_0x3941ff('0xb'),'rtpaudioqosrtt',_0x3941ff('0x2d'),_0x3941ff('0x21'),_0x3941ff('0x3'),_0x3941ff('0x4a'),'bridgepvtcallid',_0x3941ff('0x2'),_0x3941ff('0x34'),_0x3941ff('0x36'),_0x3941ff('0x4c'),'membername','memberpenalty','memberrealtime'];!_[_0x3941ff('0x49')](_0x2d08eb)&&!_[_0x3941ff('0x29')](_0x525164,_0x2d08eb)&&(_[_0x3941ff('0x1b')](this[_0x3941ff('0x5')][_0x51d40a])&&(this[_0x3941ff('0x5')][_0x51d40a]={}),this[_0x3941ff('0x5')][_0x51d40a][_0x2d08eb]=_0x5e04e8);},VoiceDialReport['prototype'][_0xef273('0x23')]=function(_0x1a1b97){const _0x127f50=_0xef273;try{if(this[_0x127f50('0x1d')](_0x1a1b97)){if(this['channels'][_0x1a1b97[_0x127f50('0xd')]])this[_0x127f50('0x2a')][_0x1a1b97[_0x127f50('0xd')]][_0x127f50('0xc')]=moment()[_0x127f50('0x42')](_0x127f50('0x3b')),this['channels'][_0x1a1b97[_0x127f50('0xd')]][_0x127f50('0x43')]=moment(this[_0x127f50('0x2a')][_0x1a1b97['uniqueid']]['endtime'])[_0x127f50('0x22')](this['channels'][_0x1a1b97['uniqueid']]['starttime'],_0x127f50('0x1f')),this[_0x127f50('0x2a')][_0x1a1b97[_0x127f50('0xd')]]['lastevent']=_0x127f50('0x50'),this[_0x127f50('0x2c')][_0x127f50('0x26')]+=0x1,this['channels'][_0x1a1b97[_0x127f50('0xd')]][_0x127f50('0x46')]&&(this[_0x127f50('0x2c')]['answered']+=0x1,this['channels'][_0x1a1b97['uniqueid']][_0x127f50('0x17')]=moment(this['channels'][_0x1a1b97['uniqueid']]['answertime'])[_0x127f50('0x22')](this['channels'][_0x1a1b97[_0x127f50('0xd')]][_0x127f50('0x47')],_0x127f50('0x1f')),this[_0x127f50('0x2a')][_0x1a1b97['uniqueid']]['billableseconds']=moment(this[_0x127f50('0x2a')][_0x1a1b97['uniqueid']]['endtime'])[_0x127f50('0x22')](this[_0x127f50('0x2a')][_0x1a1b97[_0x127f50('0xd')]][_0x127f50('0x46')],_0x127f50('0x1f')),this[_0x127f50('0x2c')][_0x127f50('0x3a')]+=this[_0x127f50('0x2a')][_0x1a1b97[_0x127f50('0xd')]][_0x127f50('0x17')]||0x0,this['outbound'][_0x127f50('0x9')]+=this['channels'][_0x1a1b97[_0x127f50('0xd')]][_0x127f50('0x4e')]),this[_0x127f50('0x2c')]['sumDuration']+=this[_0x127f50('0x2a')][_0x1a1b97[_0x127f50('0xd')]][_0x127f50('0x43')],ami[_0x127f50('0x1e')](_0x127f50('0x24'),this['channels'][_0x1a1b97[_0x127f50('0xd')]]),ami[_0x127f50('0x1e')](_0x127f50('0x3f'),this[_0x127f50('0x2a')][_0x1a1b97[_0x127f50('0xd')]]),this[_0x127f50('0x1e')]('voice:outbound',_0x127f50('0xf'),this[_0x127f50('0x2c')]),logger['info'](_0x127f50('0x45'),JSON['stringify'](this[_0x127f50('0x2a')][_0x1a1b97['uniqueid']])),this[_0x127f50('0x1e')](_0x127f50('0x2b'),'voice_outbound_channel:remove',this[_0x127f50('0x2a')][_0x1a1b97[_0x127f50('0xd')]]),delete this[_0x127f50('0x2a')][_0x1a1b97[_0x127f50('0xd')]];else this[_0x127f50('0x2a')][_0x1a1b97[_0x127f50('0x3d')]]&&(this[_0x127f50('0x2a')][_0x1a1b97[_0x127f50('0x3d')]][_0x127f50('0xd')]=this[_0x127f50('0x2a')][_0x1a1b97[_0x127f50('0x3d')]]['destuniqueid']);this[_0x127f50('0x5')][_0x1a1b97[_0x127f50('0xd')]]&&delete this[_0x127f50('0x5')][_0x1a1b97['uniqueid']];}}catch(_0x4d6d9b){logger[_0x127f50('0x13')](_0x127f50('0x4'),util[_0x127f50('0x18')](_0x4d6d9b,{'showHidden':![],'depth':null}));}},module[_0xef273('0x19')]=VoiceDialReport;
\ No newline at end of file
+const a1097_0x424c=['bind','syncDialEnd','rtpaudioqosbridged','syncHangup','connectedlinenum','[syncDialBegin][VoiceDialReport]','privilege','connect','voice_outbound_channel:remove','custom:voiceDialReport','YYYY-MM-DD\x20HH:mm:ss','lodash','starttime','sumBillable','outboundrouteid','outbound','isNil','info','lastevent','diff','connectedlinename','uniqueid','rtpaudioqosloss','sumHoldTime','sipcallid','../../../config/logger','rtpaudioqosjitterbridged','event','holdtime','varset','error','addVariable','memberlastcall','seconds','dialend','sipuri','memberdynamic','value','variables','emit','called','prototype','substring','total','custom:dialconnect','[syncVarSet][VoiceDialReport]','answered','util','merge','sumDuration','lastIndexOf','includes','linkedid','[syncHangup][VoiceDialReport]','channels','voice_outbound:save','inspect','syncDialBegin','hangup','duration','../../../rediscache','bridgepvtcallid','dialstatus','variable','channel','dialbegin','isNotNull','custom:dialend','omit','rtpaudioqos','rtpaudioqosrttbridged','rtpaudioqosrtt','voice:outbound','bridgepeer','../ami','exports','isUndefined','rtpaudioqosjitter','endtime','answertime','ANSWER','voice_outbound_channel:save','format'];(function(_0x273184,_0x424c08){const _0x3c5880=function(_0x1e80c8){while(--_0x1e80c8){_0x273184['push'](_0x273184['shift']());}};_0x3c5880(++_0x424c08);}(a1097_0x424c,0x174));const a1097_0x3c58=function(_0x273184,_0x424c08){_0x273184=_0x273184-0x0;let _0x3c5880=a1097_0x424c[_0x273184];return _0x3c5880;};const _0x572da9=a1097_0x3c58;'use strict';const _=require(_0x572da9('0x36')),moment=require('moment'),util=require(_0x572da9('0x7')),logger=require(_0x572da9('0x44'))('ami'),ami=require(_0x572da9('0x22')),{getSocket}=require(_0x572da9('0x14')),io=getSocket();function VoiceDialReport(_0x1e80c8){const _0x55daf9=_0x572da9;this[_0x55daf9('0xe')]=_0x1e80c8['outboundChannels'],this[_0x55daf9('0x3a')]=_0x1e80c8[_0x55daf9('0x3a')],this[_0x55daf9('0x51')]={},ami['on'](_0x55daf9('0x19'),this[_0x55daf9('0x11')]['bind'](this)),ami['on'](_0x55daf9('0x4d'),this[_0x55daf9('0x2c')]['bind'](this)),ami['on'](_0x55daf9('0x48'),this['syncVarSet'][_0x55daf9('0x2b')](this)),ami['on'](_0x55daf9('0x12'),this[_0x55daf9('0x2e')][_0x55daf9('0x2b')](this));}VoiceDialReport[_0x572da9('0x1')]['isNotNull']=function(_0x36c199){const _0x3800ad=_0x572da9;return _0x36c199!==null&&!_[_0x3800ad('0x24')](_0x36c199);},VoiceDialReport[_0x572da9('0x1')][_0x572da9('0x52')]=function(_0x47bea7,_0x524391,_0x5630d8){const _0x1f033b=_0x572da9;io['to'](_0x47bea7)[_0x1f033b('0x52')](_0x524391,_0x5630d8);},VoiceDialReport['prototype']['syncDialBegin']=function(_0x8b3a3){const _0x69e073=_0x572da9;try{this[_0x69e073('0x1a')](_0x8b3a3)&&(this[_0x69e073('0xe')][_0x8b3a3[_0x69e073('0x40')]]&&(_[_0x69e073('0x8')](this[_0x69e073('0xe')][_0x8b3a3[_0x69e073('0x40')]],{'starttime':moment()[_0x69e073('0x2a')](_0x69e073('0x35')),'lastevent':_0x69e073('0x0'),'interface':_0x8b3a3[_0x69e073('0x18')]['substring'](0x0,_0x8b3a3[_0x69e073('0x18')][_0x69e073('0xa')]('-')),'membername':_0x8b3a3['channel'][_0x69e073('0x2')](_0x8b3a3[_0x69e073('0x18')][_0x69e073('0xa')]('/')+0x1,_0x8b3a3[_0x69e073('0x18')][_0x69e073('0xa')]('-'))},_[_0x69e073('0x1c')](_0x8b3a3,[_0x69e073('0x46'),_0x69e073('0x31')])),this['emit'](_0x69e073('0x20'),'voice_outbound_channel:save',this['channels'][_0x8b3a3[_0x69e073('0x40')]]),ami[_0x69e073('0x52')]('custom:dialbegin',this[_0x69e073('0xe')][_0x8b3a3[_0x69e073('0x40')]])));}catch(_0x5de1f0){logger[_0x69e073('0x49')](_0x69e073('0x30'),util[_0x69e073('0x10')](_0x5de1f0,{'showHidden':![],'depth':null}));}},VoiceDialReport[_0x572da9('0x1')][_0x572da9('0x2c')]=function(_0x2b3cb4){const _0x3f066d=_0x572da9;try{this['isNotNull'](_0x2b3cb4)&&(this[_0x3f066d('0xe')][_0x2b3cb4[_0x3f066d('0x40')]]&&(this[_0x3f066d('0xe')][_0x2b3cb4[_0x3f066d('0x40')]][_0x3f066d('0x16')]=_0x2b3cb4[_0x3f066d('0x16')],_0x2b3cb4[_0x3f066d('0x16')]===_0x3f066d('0x28')&&(this['channels'][_0x2b3cb4['uniqueid']][_0x3f066d('0x2f')]=_0x2b3cb4[_0x3f066d('0x2f')],this[_0x3f066d('0xe')][_0x2b3cb4['uniqueid']][_0x3f066d('0x3f')]=_0x2b3cb4['connectedlinename'],this[_0x3f066d('0xe')][_0x2b3cb4[_0x3f066d('0x40')]][_0x3f066d('0x27')]=moment()['format'](_0x3f066d('0x35')),this[_0x3f066d('0xe')][_0x2b3cb4[_0x3f066d('0x40')]][_0x3f066d('0x3d')]=_0x3f066d('0x32'),ami[_0x3f066d('0x52')](_0x3f066d('0x4'),this[_0x3f066d('0xe')][_0x2b3cb4[_0x3f066d('0x40')]])),this[_0x3f066d('0x52')]('voice:outbound',_0x3f066d('0x29'),this[_0x3f066d('0xe')][_0x2b3cb4[_0x3f066d('0x40')]])));}catch(_0x3863f8){logger['error']('[syncDialEnd][VoiceDialReport]',util[_0x3f066d('0x10')](_0x3863f8,{'showHidden':![],'depth':null}));}},VoiceDialReport[_0x572da9('0x1')]['syncVarSet']=function(_0x3cf253){const _0x23ba60=_0x572da9;try{this[_0x23ba60('0x1a')](_0x3cf253)&&(this[_0x23ba60('0x4a')](_0x3cf253[_0x23ba60('0x40')],_['keys'](_0x3cf253[_0x23ba60('0x17')])[0x0],_0x3cf253[_0x23ba60('0x50')]),this[_0x23ba60('0x1a')](_0x3cf253[_0x23ba60('0x17')])&&this[_0x23ba60('0x1a')](_0x3cf253['variable'][_0x23ba60('0x39')])&&(_[_0x23ba60('0x24')](this['channels'][_0x3cf253[_0x23ba60('0x40')]])&&(this[_0x23ba60('0xe')][_0x3cf253[_0x23ba60('0x40')]]={'routeId':_0x3cf253['value'],'variables':this[_0x23ba60('0x51')][_0x3cf253['uniqueid']]},this['emit']('voice:outbound',_0x23ba60('0x29'),this['channels'][_0x3cf253[_0x23ba60('0x40')]]))));}catch(_0x3fa2f4){logger[_0x23ba60('0x49')](_0x23ba60('0x5'),util[_0x23ba60('0x10')](_0x3fa2f4,{'showHidden':![],'depth':null}));}},VoiceDialReport[_0x572da9('0x1')][_0x572da9('0x4a')]=function(_0x42a380,_0x19616d,_0x5fdce){const _0x26ce17=_0x572da9,_0x268a45=[_0x26ce17('0x1d'),_0x26ce17('0x2d'),_0x26ce17('0x25'),_0x26ce17('0x45'),_0x26ce17('0x41'),'rtpaudioqoslossbridged',_0x26ce17('0x1f'),_0x26ce17('0x1e'),_0x26ce17('0x43'),_0x26ce17('0x4e'),_0x26ce17('0x21'),_0x26ce17('0x15'),'membercalls',_0x26ce17('0x4f'),'memberinterface',_0x26ce17('0x4b'),'membername','memberpenalty','memberrealtime'];!_[_0x26ce17('0x3b')](_0x19616d)&&!_[_0x26ce17('0xb')](_0x268a45,_0x19616d)&&(_['isUndefined'](this[_0x26ce17('0x51')][_0x42a380])&&(this[_0x26ce17('0x51')][_0x42a380]={}),this[_0x26ce17('0x51')][_0x42a380][_0x19616d]=_0x5fdce);},VoiceDialReport['prototype'][_0x572da9('0x2e')]=function(_0x3c7a63){const _0x105c10=_0x572da9;try{if(this[_0x105c10('0x1a')](_0x3c7a63)){if(this[_0x105c10('0xe')][_0x3c7a63[_0x105c10('0x40')]])this[_0x105c10('0xe')][_0x3c7a63[_0x105c10('0x40')]][_0x105c10('0x26')]=moment()[_0x105c10('0x2a')](_0x105c10('0x35')),this[_0x105c10('0xe')][_0x3c7a63['uniqueid']]['duration']=moment(this[_0x105c10('0xe')][_0x3c7a63[_0x105c10('0x40')]]['endtime'])[_0x105c10('0x3e')](this[_0x105c10('0xe')][_0x3c7a63[_0x105c10('0x40')]][_0x105c10('0x37')],'seconds'),this[_0x105c10('0xe')][_0x3c7a63[_0x105c10('0x40')]][_0x105c10('0x3d')]='complete',this[_0x105c10('0x3a')][_0x105c10('0x3')]+=0x1,this[_0x105c10('0xe')][_0x3c7a63[_0x105c10('0x40')]]['answertime']&&(this[_0x105c10('0x3a')][_0x105c10('0x6')]+=0x1,this['channels'][_0x3c7a63[_0x105c10('0x40')]][_0x105c10('0x47')]=moment(this[_0x105c10('0xe')][_0x3c7a63[_0x105c10('0x40')]][_0x105c10('0x27')])[_0x105c10('0x3e')](this['channels'][_0x3c7a63[_0x105c10('0x40')]][_0x105c10('0x37')],'seconds'),this[_0x105c10('0xe')][_0x3c7a63[_0x105c10('0x40')]]['billableseconds']=moment(this[_0x105c10('0xe')][_0x3c7a63['uniqueid']][_0x105c10('0x26')])['diff'](this[_0x105c10('0xe')][_0x3c7a63[_0x105c10('0x40')]][_0x105c10('0x27')],_0x105c10('0x4c')),this[_0x105c10('0x3a')][_0x105c10('0x42')]+=this[_0x105c10('0xe')][_0x3c7a63[_0x105c10('0x40')]][_0x105c10('0x47')]||0x0,this[_0x105c10('0x3a')][_0x105c10('0x38')]+=this[_0x105c10('0xe')][_0x3c7a63['uniqueid']]['billableseconds']),this['outbound'][_0x105c10('0x9')]+=this[_0x105c10('0xe')][_0x3c7a63[_0x105c10('0x40')]][_0x105c10('0x13')],ami['emit'](_0x105c10('0x34'),this['channels'][_0x3c7a63[_0x105c10('0x40')]]),ami['emit'](_0x105c10('0x1b'),this[_0x105c10('0xe')][_0x3c7a63[_0x105c10('0x40')]]),this[_0x105c10('0x52')](_0x105c10('0x20'),_0x105c10('0xf'),this[_0x105c10('0x3a')]),logger[_0x105c10('0x3c')]('[DEBUG]\x20Emit\x20voice_outbound_channel:remove\x20event',JSON['stringify'](this[_0x105c10('0xe')][_0x3c7a63['uniqueid']])),this[_0x105c10('0x52')]('voice:outbound',_0x105c10('0x33'),this[_0x105c10('0xe')][_0x3c7a63['uniqueid']]),delete this[_0x105c10('0xe')][_0x3c7a63[_0x105c10('0x40')]];else this['channels'][_0x3c7a63['linkedid']]&&(this[_0x105c10('0xe')][_0x3c7a63[_0x105c10('0xc')]][_0x105c10('0x40')]=this[_0x105c10('0xe')][_0x3c7a63['linkedid']]['destuniqueid']);this['variables'][_0x3c7a63[_0x105c10('0x40')]]&&delete this[_0x105c10('0x51')][_0x3c7a63['uniqueid']];}}catch(_0x1b86e3){logger[_0x105c10('0x49')](_0x105c10('0xd'),util[_0x105c10('0x10')](_0x1b86e3,{'showHidden':![],'depth':null}));}},module[_0x572da9('0x23')]=VoiceDialReport;
\ No newline at end of file