Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / services / ami / report / voiceDialReport.js
index d885517..2a28335 100644 (file)
@@ -1 +1 @@
-const a1261_0x23a8=['outboundChannels','custom:dialend','syncDialEnd','diff','inspect','memberlastcall','event','membername','billableseconds','../../../rediscache','sumHoldTime','info','lodash','includes','emit','addVariable','rtpaudioqosrttbridged','hangup','variables','custom:voiceDialReport','util','privilege','answertime','isNil','sumBillable','dialbegin','dialstatus','connectedlinenum','destuniqueid','lastIndexOf','bridgepeer','ami','isNotNull','YYYY-MM-DD\x20HH:mm:ss','voice_outbound_channel:save','bridgepvtcallid','uniqueid','prototype','stringify','channel','answered','endtime','keys','memberpenalty','value','voice_outbound:save','error','isUndefined','membercalls','lastevent','memberinterface','outbound','[syncVarSet][VoiceDialReport]','omit','voice_outbound_channel:remove','rtpaudioqosrtt','bind','custom:dialbegin','substring','memberdynamic','rtpaudioqos','outboundrouteid','syncDialBegin','called','variable','merge','syncHangup','voice:outbound','dialend','ANSWER','rtpaudioqoslossbridged','varset','connectedlinename','moment','linkedid','memberrealtime','sumDuration','sipuri','format','../../../config/logger','channels','holdtime','starttime','connect','sipcallid'];(function(_0x46c650,_0x45d4fe){const _0x23a8c8=function(_0x2159ea){while(--_0x2159ea){_0x46c650['push'](_0x46c650['shift']());}};_0x23a8c8(++_0x45d4fe);}(a1261_0x23a8,0xb2));const a1261_0x2159=function(_0x46c650,_0x45d4fe){_0x46c650=_0x46c650-0x162;let _0x23a8c8=a1261_0x23a8[_0x46c650];return _0x23a8c8;};const a1261_0xea591e=a1261_0x2159;'use strict';const _=require(a1261_0xea591e(0x166)),moment=require(a1261_0xea591e(0x1a3)),util=require(a1261_0xea591e(0x16e)),logger=require(a1261_0xea591e(0x1a9))(a1261_0xea591e(0x179)),ami=require('../ami'),{getSocket}=require(a1261_0xea591e(0x163)),io=getSocket();function VoiceDialReport(_0xe63a5b){const _0x5cf72e=a1261_0xea591e;this[_0x5cf72e(0x1aa)]=_0xe63a5b[_0x5cf72e(0x1af)],this[_0x5cf72e(0x18d)]=_0xe63a5b[_0x5cf72e(0x18d)],this[_0x5cf72e(0x16c)]={},ami['on'](_0x5cf72e(0x173),this[_0x5cf72e(0x198)][_0x5cf72e(0x192)](this)),ami['on'](_0x5cf72e(0x19e),this[_0x5cf72e(0x1b1)][_0x5cf72e(0x192)](this)),ami['on'](_0x5cf72e(0x1a1),this['syncVarSet']['bind'](this)),ami['on'](_0x5cf72e(0x16b),this[_0x5cf72e(0x19c)]['bind'](this));}VoiceDialReport[a1261_0xea591e(0x17f)][a1261_0xea591e(0x17a)]=function(_0x2f574d){const _0x2b7128=a1261_0xea591e;return _0x2f574d!==null&&!_[_0x2b7128(0x189)](_0x2f574d);},VoiceDialReport[a1261_0xea591e(0x17f)][a1261_0xea591e(0x168)]=function(_0x52f45b,_0x20821c,_0x476d18){const _0x5c681f=a1261_0xea591e;io['to'](_0x52f45b)[_0x5c681f(0x168)](_0x20821c,_0x476d18);},VoiceDialReport['prototype']['syncDialBegin']=function(_0x435812){const _0x49e5bd=a1261_0xea591e;try{this[_0x49e5bd(0x17a)](_0x435812)&&(this[_0x49e5bd(0x1aa)][_0x435812['uniqueid']]&&(_[_0x49e5bd(0x19b)](this['channels'][_0x435812[_0x49e5bd(0x17e)]],{'starttime':moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),'lastevent':_0x49e5bd(0x199),'interface':_0x435812[_0x49e5bd(0x181)][_0x49e5bd(0x194)](0x0,_0x435812[_0x49e5bd(0x181)][_0x49e5bd(0x177)]('-')),'membername':_0x435812[_0x49e5bd(0x181)][_0x49e5bd(0x194)](_0x435812[_0x49e5bd(0x181)][_0x49e5bd(0x177)]('/')+0x1,_0x435812['channel']['lastIndexOf']('-'))},_[_0x49e5bd(0x18f)](_0x435812,[_0x49e5bd(0x1b5),_0x49e5bd(0x16f)])),this[_0x49e5bd(0x168)](_0x49e5bd(0x19d),_0x49e5bd(0x17c),this['channels'][_0x435812[_0x49e5bd(0x17e)]]),ami['emit'](_0x49e5bd(0x193),this['channels'][_0x435812[_0x49e5bd(0x17e)]])));}catch(_0x4f84a4){logger[_0x49e5bd(0x188)]('[syncDialBegin][VoiceDialReport]',util[_0x49e5bd(0x1b3)](_0x4f84a4,{'showHidden':![],'depth':null}));}},VoiceDialReport['prototype'][a1261_0xea591e(0x1b1)]=function(_0x7dff69){const _0x375fe0=a1261_0xea591e;try{this[_0x375fe0(0x17a)](_0x7dff69)&&(this[_0x375fe0(0x1aa)][_0x7dff69[_0x375fe0(0x17e)]]&&(this[_0x375fe0(0x1aa)][_0x7dff69[_0x375fe0(0x17e)]][_0x375fe0(0x174)]=_0x7dff69['dialstatus'],_0x7dff69['dialstatus']===_0x375fe0(0x19f)&&(this['channels'][_0x7dff69[_0x375fe0(0x17e)]][_0x375fe0(0x175)]=_0x7dff69[_0x375fe0(0x175)],this[_0x375fe0(0x1aa)][_0x7dff69[_0x375fe0(0x17e)]]['connectedlinename']=_0x7dff69[_0x375fe0(0x1a2)],this[_0x375fe0(0x1aa)][_0x7dff69[_0x375fe0(0x17e)]][_0x375fe0(0x170)]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),this[_0x375fe0(0x1aa)][_0x7dff69['uniqueid']]['lastevent']=_0x375fe0(0x1ad),ami['emit']('custom:dialconnect',this[_0x375fe0(0x1aa)][_0x7dff69['uniqueid']])),this[_0x375fe0(0x168)]('voice:outbound',_0x375fe0(0x17c),this['channels'][_0x7dff69[_0x375fe0(0x17e)]])));}catch(_0x4db3e4){logger[_0x375fe0(0x188)]('[syncDialEnd][VoiceDialReport]',util[_0x375fe0(0x1b3)](_0x4db3e4,{'showHidden':![],'depth':null}));}},VoiceDialReport['prototype']['syncVarSet']=function(_0x3b1c23){const _0x369ca3=a1261_0xea591e;try{this[_0x369ca3(0x17a)](_0x3b1c23)&&(this[_0x369ca3(0x169)](_0x3b1c23['uniqueid'],_[_0x369ca3(0x184)](_0x3b1c23['variable'])[0x0],_0x3b1c23[_0x369ca3(0x186)]),this[_0x369ca3(0x17a)](_0x3b1c23[_0x369ca3(0x19a)])&&this[_0x369ca3(0x17a)](_0x3b1c23[_0x369ca3(0x19a)][_0x369ca3(0x197)])&&(_['isUndefined'](this['channels'][_0x3b1c23['uniqueid']])&&(this[_0x369ca3(0x1aa)][_0x3b1c23['uniqueid']]={'routeId':_0x3b1c23[_0x369ca3(0x186)],'variables':this[_0x369ca3(0x16c)][_0x3b1c23[_0x369ca3(0x17e)]]},this['emit'](_0x369ca3(0x19d),'voice_outbound_channel:save',this[_0x369ca3(0x1aa)][_0x3b1c23[_0x369ca3(0x17e)]]))));}catch(_0x355150){logger[_0x369ca3(0x188)](_0x369ca3(0x18e),util['inspect'](_0x355150,{'showHidden':![],'depth':null}));}},VoiceDialReport[a1261_0xea591e(0x17f)][a1261_0xea591e(0x169)]=function(_0x34984c,_0x5cba1d,_0x219952){const _0x3d5220=a1261_0xea591e,_0x5b8d55=[_0x3d5220(0x196),'rtpaudioqosbridged','rtpaudioqosjitter','rtpaudioqosjitterbridged','rtpaudioqosloss',_0x3d5220(0x1a0),_0x3d5220(0x191),_0x3d5220(0x16a),_0x3d5220(0x1ae),_0x3d5220(0x1a7),_0x3d5220(0x178),_0x3d5220(0x17d),_0x3d5220(0x18a),_0x3d5220(0x195),_0x3d5220(0x18c),_0x3d5220(0x1b4),_0x3d5220(0x1b6),_0x3d5220(0x185),_0x3d5220(0x1a5)];!_[_0x3d5220(0x171)](_0x5cba1d)&&!_[_0x3d5220(0x167)](_0x5b8d55,_0x5cba1d)&&(_[_0x3d5220(0x189)](this[_0x3d5220(0x16c)][_0x34984c])&&(this[_0x3d5220(0x16c)][_0x34984c]={}),this[_0x3d5220(0x16c)][_0x34984c][_0x5cba1d]=_0x219952);},VoiceDialReport[a1261_0xea591e(0x17f)][a1261_0xea591e(0x19c)]=function(_0x2bdfd1){const _0x1a44c7=a1261_0xea591e;try{if(this[_0x1a44c7(0x17a)](_0x2bdfd1)){if(this['channels'][_0x2bdfd1[_0x1a44c7(0x17e)]])this[_0x1a44c7(0x1aa)][_0x2bdfd1['uniqueid']][_0x1a44c7(0x183)]=moment()[_0x1a44c7(0x1a8)](_0x1a44c7(0x17b)),this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x17e)]]['duration']=moment(this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x17e)]][_0x1a44c7(0x183)])[_0x1a44c7(0x1b2)](this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x17e)]][_0x1a44c7(0x1ac)],'seconds'),this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x17e)]][_0x1a44c7(0x18b)]='complete',this['outbound']['total']+=0x1,this['channels'][_0x2bdfd1[_0x1a44c7(0x17e)]]['answertime']&&(this[_0x1a44c7(0x18d)][_0x1a44c7(0x182)]+=0x1,this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x17e)]][_0x1a44c7(0x1ab)]=moment(this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x17e)]]['answertime'])[_0x1a44c7(0x1b2)](this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x17e)]][_0x1a44c7(0x1ac)],'seconds'),this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x17e)]][_0x1a44c7(0x162)]=moment(this[_0x1a44c7(0x1aa)][_0x2bdfd1['uniqueid']][_0x1a44c7(0x183)])[_0x1a44c7(0x1b2)](this[_0x1a44c7(0x1aa)][_0x2bdfd1['uniqueid']][_0x1a44c7(0x170)],'seconds'),this['outbound'][_0x1a44c7(0x164)]+=this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x17e)]][_0x1a44c7(0x1ab)]||0x0,this[_0x1a44c7(0x18d)][_0x1a44c7(0x172)]+=this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x17e)]][_0x1a44c7(0x162)]),this[_0x1a44c7(0x18d)][_0x1a44c7(0x1a6)]+=this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x17e)]]['duration'],ami[_0x1a44c7(0x168)](_0x1a44c7(0x16d),this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x17e)]]),ami['emit'](_0x1a44c7(0x1b0),this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x17e)]]),this[_0x1a44c7(0x168)](_0x1a44c7(0x19d),_0x1a44c7(0x187),this[_0x1a44c7(0x18d)]),logger[_0x1a44c7(0x165)]('[DEBUG]\x20Emit\x20voice_outbound_channel:remove\x20event',JSON[_0x1a44c7(0x180)](this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x17e)]])),this[_0x1a44c7(0x168)](_0x1a44c7(0x19d),_0x1a44c7(0x190),this['channels'][_0x2bdfd1[_0x1a44c7(0x17e)]]),delete this[_0x1a44c7(0x1aa)][_0x2bdfd1['uniqueid']];else this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x1a4)]]&&(this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x1a4)]][_0x1a44c7(0x17e)]=this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x1a4)]][_0x1a44c7(0x176)]);this['variables'][_0x2bdfd1[_0x1a44c7(0x17e)]]&&delete this[_0x1a44c7(0x16c)][_0x2bdfd1['uniqueid']];}}catch(_0x152542){logger[_0x1a44c7(0x188)]('[syncHangup][VoiceDialReport]',util[_0x1a44c7(0x1b3)](_0x152542,{'showHidden':![],'depth':null}));}},module['exports']=VoiceDialReport;
\ No newline at end of file
+const a1265_0x3f6f=['sumBillable','keys','varset','addVariable','ANSWER','[%s][voiceDialReport][hangup]\x20sending\x20voice_outbound_channel:remove\x20event:','lodash','uniqueid','isNil','[%s][voiceDialReport][varset]\x20outboundrouteid:%s\x20variable:%s\x20value:%s','exports','diff','debug','rtpaudioqoslossbridged','dialbegin','membername','outbound','[%s][voiceDialReport][dialbegin]','memberlastcall','[%s][voiceDialReport][dialbegin]\x20sending\x20dialbegin\x20event:','memberdynamic','custom:dialbegin','../../../config/logger','prototype','dialstatus','custom:dialend','[%s][voiceDialReport][dialend]\x20sending\x20dialconnect\x20event:','stringify','connectedlinename','bind','complete','[%s][voiceDialReport][varset]\x20event:','includes','[%s][voiceDialReport][dialbegin]\x20agent:%s\x20interface:%s\x20lastevent:called','channels','inspect','voice_outbound_channel:save','[%s][voiceDialReport][hangup]\x20sending\x20voice_outbound:save\x20event:','[%s][voiceDialReport][hangup]\x20event:','privilege','rtpaudioqos','lastevent','called','error','rtpaudioqosrtt','sipcallid','util','cause-txt','[%s][voiceDialReport][dialbegin]\x20event:','../ami','emit','sumHoldTime','variables','billableseconds','outboundrouteid','moment','custom:voiceDialReport','lastIndexOf','custom:dialconnect','memberpenalty','membercalls','[%s][voiceDialReport][hangup]','YYYY-MM-DD\x20HH:mm:ss','syncDialEnd','connect','outboundChannels','value','interface','total','isUndefined','voice_outbound:save','[%s][voiceDialReport][hangup]\x20sending\x20dialend\x20event:','sipuri','linkedid','[%s][voiceDialReport][varset]\x20sending\x20voice_outbound_channel:save\x20event:','../../../rediscache','answered','[%s][voiceDialReport][hangup]\x20sending\x20voiceDialReport\x20event:','bridgepeer','variable','format','voice_outbound_channel:remove','rtpaudioqosrttbridged','substring','rtpaudioqosjitter','[DEBUG]\x20Emit\x20voice_outbound_channel:remove\x20event','[%s][voiceDialReport][varset]','memberrealtime','[%s][voiceDialReport][dialbegin]\x20sending\x20voice_outbound_channel:save\x20event:','holdtime','channel','voice:outbound','bridgepvtcallid','ami','starttime','dialend','rtpaudioqosjitterbridged','seconds','syncVarSet','[%s][voiceDialReport][dialend]\x20sending\x20voice_outbound_channel:save\x20event:','endtime','sumDuration','[%s][voiceDialReport][dialend]\x20event:','syncHangup','syncDialBegin','info','isNotNull','answertime'];(function(_0x3ec8e2,_0x529872){const _0x3f6fa6=function(_0x4f9572){while(--_0x4f9572){_0x3ec8e2['push'](_0x3ec8e2['shift']());}};_0x3f6fa6(++_0x529872);}(a1265_0x3f6f,0xbc));const a1265_0x4f95=function(_0x3ec8e2,_0x529872){_0x3ec8e2=_0x3ec8e2-0x1d4;let _0x3f6fa6=a1265_0x3f6f[_0x3ec8e2];return _0x3f6fa6;};const a1265_0x2e0874=a1265_0x4f95;'use strict';const _=require(a1265_0x2e0874(0x1f6)),moment=require(a1265_0x2e0874(0x227)),util=require(a1265_0x2e0874(0x21e)),logger=require(a1265_0x2e0874(0x206))(a1265_0x2e0874(0x1e1)),ami=require(a1265_0x2e0874(0x221)),{getSocket}=require(a1265_0x2e0874(0x23b)),io=getSocket();function VoiceDialReport(_0x2a45b7){const _0x227881=a1265_0x2e0874;this[_0x227881(0x212)]=_0x2a45b7[_0x227881(0x231)],this[_0x227881(0x200)]=_0x2a45b7[_0x227881(0x200)],this['variables']={},ami['on'](_0x227881(0x1fe),this[_0x227881(0x1ec)][_0x227881(0x20d)](this)),ami['on'](_0x227881(0x1e3),this['syncDialEnd']['bind'](this)),ami['on'](_0x227881(0x1f2),this[_0x227881(0x1e6)][_0x227881(0x20d)](this)),ami['on']('hangup',this[_0x227881(0x1eb)][_0x227881(0x20d)](this));}VoiceDialReport[a1265_0x2e0874(0x207)][a1265_0x2e0874(0x1ee)]=function(_0x258c9b){const _0x29c046=a1265_0x2e0874;return _0x258c9b!==null&&!_[_0x29c046(0x235)](_0x258c9b);},VoiceDialReport[a1265_0x2e0874(0x207)][a1265_0x2e0874(0x222)]=function(_0x1848de,_0x218e68,_0x52f7f3){const _0xec043d=a1265_0x2e0874;io['to'](_0x1848de)[_0xec043d(0x222)](_0x218e68,_0x52f7f3);},VoiceDialReport[a1265_0x2e0874(0x207)]['syncDialBegin']=function(_0x5098b7){const _0xc13a7=a1265_0x2e0874;try{this[_0xc13a7(0x1ee)](_0x5098b7)&&(logger['debug'](_0xc13a7(0x220),_0x5098b7['uniqueid'],util[_0xc13a7(0x213)](_0x5098b7,{'showHidden':![],'depth':null})),this[_0xc13a7(0x212)][_0x5098b7[_0xc13a7(0x1f7)]]&&(_['merge'](this['channels'][_0x5098b7[_0xc13a7(0x1f7)]],{'starttime':moment()[_0xc13a7(0x1d4)]('YYYY-MM-DD\x20HH:mm:ss'),'lastevent':_0xc13a7(0x21a),'interface':_0x5098b7[_0xc13a7(0x1de)][_0xc13a7(0x1d7)](0x0,_0x5098b7[_0xc13a7(0x1de)][_0xc13a7(0x229)]('-')),'membername':_0x5098b7['channel'][_0xc13a7(0x1d7)](_0x5098b7[_0xc13a7(0x1de)][_0xc13a7(0x229)]('/')+0x1,_0x5098b7['channel']['lastIndexOf']('-'))},_['omit'](_0x5098b7,['event',_0xc13a7(0x217)])),logger[_0xc13a7(0x1ed)](_0xc13a7(0x211),_0x5098b7[_0xc13a7(0x1f7)],this[_0xc13a7(0x212)][_0x5098b7['uniqueid']]['membername'],this['channels'][_0x5098b7[_0xc13a7(0x1f7)]][_0xc13a7(0x233)]),logger[_0xc13a7(0x1fc)](_0xc13a7(0x1dc),_0x5098b7[_0xc13a7(0x1f7)],util[_0xc13a7(0x213)](this[_0xc13a7(0x212)][_0x5098b7[_0xc13a7(0x1f7)]],{'showHidden':![],'depth':null})),this[_0xc13a7(0x222)](_0xc13a7(0x1df),_0xc13a7(0x214),this['channels'][_0x5098b7['uniqueid']]),logger[_0xc13a7(0x1fc)](_0xc13a7(0x203),_0x5098b7[_0xc13a7(0x1f7)],util[_0xc13a7(0x213)](this[_0xc13a7(0x212)][_0x5098b7['uniqueid']],{'showHidden':![],'depth':null})),ami[_0xc13a7(0x222)](_0xc13a7(0x205),this['channels'][_0x5098b7[_0xc13a7(0x1f7)]])));}catch(_0x1c7df9){logger[_0xc13a7(0x21b)](_0xc13a7(0x201),_0x5098b7[_0xc13a7(0x1f7)],util['inspect'](_0x1c7df9,{'showHidden':![],'depth':null}));}},VoiceDialReport['prototype'][a1265_0x2e0874(0x22f)]=function(_0x39e277){const _0x17c5b1=a1265_0x2e0874;try{this[_0x17c5b1(0x1ee)](_0x39e277)&&(logger[_0x17c5b1(0x1fc)](_0x17c5b1(0x1ea),_0x39e277['uniqueid'],util[_0x17c5b1(0x213)](_0x39e277,{'showHidden':![],'depth':null})),this[_0x17c5b1(0x212)][_0x39e277[_0x17c5b1(0x1f7)]]&&(this['channels'][_0x39e277['uniqueid']]['dialstatus']=_0x39e277[_0x17c5b1(0x208)],_0x39e277[_0x17c5b1(0x208)]===_0x17c5b1(0x1f4)&&(this[_0x17c5b1(0x212)][_0x39e277['uniqueid']]['connectedlinenum']=_0x39e277['connectedlinenum'],this[_0x17c5b1(0x212)][_0x39e277[_0x17c5b1(0x1f7)]]['connectedlinename']=_0x39e277[_0x17c5b1(0x20c)],this[_0x17c5b1(0x212)][_0x39e277[_0x17c5b1(0x1f7)]]['answertime']=moment()[_0x17c5b1(0x1d4)](_0x17c5b1(0x22e)),this[_0x17c5b1(0x212)][_0x39e277['uniqueid']][_0x17c5b1(0x219)]=_0x17c5b1(0x230),logger[_0x17c5b1(0x1ed)]('[%s][voiceDialReport][dialend]\x20agent:%s\x20lastevent:connect',_0x39e277[_0x17c5b1(0x1f7)],_0x39e277[_0x17c5b1(0x1de)][_0x17c5b1(0x1d7)](_0x39e277[_0x17c5b1(0x1de)][_0x17c5b1(0x229)]('/')+0x1,_0x39e277[_0x17c5b1(0x1de)][_0x17c5b1(0x229)]('-'))),logger[_0x17c5b1(0x1fc)](_0x17c5b1(0x20a),_0x39e277[_0x17c5b1(0x1f7)],util['inspect'](this['channels'][_0x39e277[_0x17c5b1(0x1f7)]],{'showHidden':![],'depth':null})),ami['emit'](_0x17c5b1(0x22a),this[_0x17c5b1(0x212)][_0x39e277[_0x17c5b1(0x1f7)]])),logger['debug'](_0x17c5b1(0x1e7),_0x39e277[_0x17c5b1(0x1f7)],util['inspect'](this['channels'][_0x39e277[_0x17c5b1(0x1f7)]],{'showHidden':![],'depth':null})),this['emit']('voice:outbound',_0x17c5b1(0x214),this[_0x17c5b1(0x212)][_0x39e277[_0x17c5b1(0x1f7)]])));}catch(_0x226b52){logger[_0x17c5b1(0x21b)]('[%s][voiceDialReport][dialend]',_0x39e277[_0x17c5b1(0x1f7)],util[_0x17c5b1(0x213)](_0x226b52,{'showHidden':![],'depth':null}));}},VoiceDialReport[a1265_0x2e0874(0x207)][a1265_0x2e0874(0x1e6)]=function(_0x226e27){const _0x4d3642=a1265_0x2e0874;try{this[_0x4d3642(0x1ee)](_0x226e27)&&(logger[_0x4d3642(0x1fc)](_0x4d3642(0x20f),_0x226e27[_0x4d3642(0x1f7)],util[_0x4d3642(0x213)](_0x226e27,{'showHidden':![],'depth':null})),this[_0x4d3642(0x1f3)](_0x226e27['uniqueid'],_[_0x4d3642(0x1f1)](_0x226e27[_0x4d3642(0x23f)])[0x0],_0x226e27[_0x4d3642(0x232)]),this[_0x4d3642(0x1ee)](_0x226e27['variable'])&&this[_0x4d3642(0x1ee)](_0x226e27[_0x4d3642(0x23f)][_0x4d3642(0x226)])&&(_[_0x4d3642(0x235)](this[_0x4d3642(0x212)][_0x226e27['uniqueid']])&&(this[_0x4d3642(0x212)][_0x226e27[_0x4d3642(0x1f7)]]={'routeId':_0x226e27[_0x4d3642(0x232)],'variables':this[_0x4d3642(0x224)][_0x226e27[_0x4d3642(0x1f7)]]},logger[_0x4d3642(0x1ed)](_0x4d3642(0x1f9),_0x226e27['uniqueid'],_0x226e27[_0x4d3642(0x23f)][_0x4d3642(0x226)],_[_0x4d3642(0x1f1)](_0x226e27['variable'])[0x0],_0x226e27[_0x4d3642(0x232)]),logger[_0x4d3642(0x1fc)](_0x4d3642(0x23a),_0x226e27[_0x4d3642(0x1f7)],util[_0x4d3642(0x213)](this[_0x4d3642(0x212)][_0x226e27['uniqueid']],{'showHidden':![],'depth':null})),this[_0x4d3642(0x222)]('voice:outbound',_0x4d3642(0x214),this[_0x4d3642(0x212)][_0x226e27[_0x4d3642(0x1f7)]]))));}catch(_0x402893){logger['error'](_0x4d3642(0x1da),_0x226e27[_0x4d3642(0x1f7)],util[_0x4d3642(0x213)](_0x402893,{'showHidden':![],'depth':null}));}},VoiceDialReport[a1265_0x2e0874(0x207)][a1265_0x2e0874(0x1f3)]=function(_0x59cce6,_0x2e8887,_0x3b4e01){const _0x49c711=a1265_0x2e0874,_0x59d941=[_0x49c711(0x218),'rtpaudioqosbridged',_0x49c711(0x1d8),_0x49c711(0x1e4),'rtpaudioqosloss',_0x49c711(0x1fd),_0x49c711(0x21c),_0x49c711(0x1d6),_0x49c711(0x21d),_0x49c711(0x238),_0x49c711(0x23e),_0x49c711(0x1e0),_0x49c711(0x22c),_0x49c711(0x204),'memberinterface',_0x49c711(0x202),_0x49c711(0x1ff),_0x49c711(0x22b),_0x49c711(0x1db)];!_[_0x49c711(0x1f8)](_0x2e8887)&&!_[_0x49c711(0x210)](_0x59d941,_0x2e8887)&&(_[_0x49c711(0x235)](this['variables'][_0x59cce6])&&(this[_0x49c711(0x224)][_0x59cce6]={}),this[_0x49c711(0x224)][_0x59cce6][_0x2e8887]=_0x3b4e01);},VoiceDialReport[a1265_0x2e0874(0x207)]['syncHangup']=function(_0x1badc3){const _0x4f42df=a1265_0x2e0874;try{if(this[_0x4f42df(0x1ee)](_0x1badc3)){logger[_0x4f42df(0x1fc)](_0x4f42df(0x216),_0x1badc3['uniqueid'],util[_0x4f42df(0x213)](_0x1badc3,{'showHidden':![],'depth':null}));if(this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x1f7)]])logger['info']('[%s][voiceDialReport][hangup]\x20reason:%s\x20lasteevent:complete',_0x1badc3[_0x4f42df(0x1f7)],_0x1badc3[_0x4f42df(0x21f)]),this['channels'][_0x1badc3[_0x4f42df(0x1f7)]][_0x4f42df(0x1e8)]=moment()[_0x4f42df(0x1d4)](_0x4f42df(0x22e)),this['channels'][_0x1badc3['uniqueid']]['duration']=moment(this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x1f7)]][_0x4f42df(0x1e8)])[_0x4f42df(0x1fb)](this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x1f7)]][_0x4f42df(0x1e2)],_0x4f42df(0x1e5)),this['channels'][_0x1badc3[_0x4f42df(0x1f7)]]['lastevent']=_0x4f42df(0x20e),this[_0x4f42df(0x200)][_0x4f42df(0x234)]+=0x1,this[_0x4f42df(0x212)][_0x1badc3['uniqueid']][_0x4f42df(0x1ef)]&&(this[_0x4f42df(0x200)][_0x4f42df(0x23c)]+=0x1,this['channels'][_0x1badc3[_0x4f42df(0x1f7)]][_0x4f42df(0x1dd)]=moment(this[_0x4f42df(0x212)][_0x1badc3['uniqueid']][_0x4f42df(0x1ef)])[_0x4f42df(0x1fb)](this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x1f7)]][_0x4f42df(0x1e2)],_0x4f42df(0x1e5)),this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x1f7)]][_0x4f42df(0x225)]=moment(this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x1f7)]]['endtime'])[_0x4f42df(0x1fb)](this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x1f7)]][_0x4f42df(0x1ef)],_0x4f42df(0x1e5)),this[_0x4f42df(0x200)][_0x4f42df(0x223)]+=this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x1f7)]][_0x4f42df(0x1dd)]||0x0,this[_0x4f42df(0x200)][_0x4f42df(0x1f0)]+=this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x1f7)]][_0x4f42df(0x225)]),this[_0x4f42df(0x200)][_0x4f42df(0x1e9)]+=this['channels'][_0x1badc3[_0x4f42df(0x1f7)]]['duration'],logger['debug'](_0x4f42df(0x23d),_0x1badc3['uniqueid'],util[_0x4f42df(0x213)](this['channels'][_0x1badc3['uniqueid']],{'showHidden':![],'depth':null})),ami[_0x4f42df(0x222)](_0x4f42df(0x228),this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x1f7)]]),logger[_0x4f42df(0x1fc)](_0x4f42df(0x237),_0x1badc3[_0x4f42df(0x1f7)],util[_0x4f42df(0x213)](this['channels'][_0x1badc3[_0x4f42df(0x1f7)]],{'showHidden':![],'depth':null})),ami[_0x4f42df(0x222)](_0x4f42df(0x209),this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x1f7)]]),logger[_0x4f42df(0x1fc)](_0x4f42df(0x215),_0x1badc3['uniqueid'],util[_0x4f42df(0x213)](this[_0x4f42df(0x212)][_0x1badc3['uniqueid']],{'showHidden':![],'depth':null})),this[_0x4f42df(0x222)](_0x4f42df(0x1df),_0x4f42df(0x236),this[_0x4f42df(0x200)]),logger[_0x4f42df(0x1ed)](_0x4f42df(0x1d9),JSON[_0x4f42df(0x20b)](this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x1f7)]])),logger[_0x4f42df(0x1fc)](_0x4f42df(0x1f5),_0x1badc3['uniqueid'],util[_0x4f42df(0x213)](this[_0x4f42df(0x212)][_0x1badc3['uniqueid']],{'showHidden':![],'depth':null})),this['emit']('voice:outbound',_0x4f42df(0x1d5),this[_0x4f42df(0x212)][_0x1badc3['uniqueid']]),delete this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x1f7)]];else this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x239)]]&&(this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x239)]]['uniqueid']=this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x239)]]['destuniqueid']);this[_0x4f42df(0x224)][_0x1badc3[_0x4f42df(0x1f7)]]&&delete this['variables'][_0x1badc3[_0x4f42df(0x1f7)]];}}catch(_0x9afeac){logger[_0x4f42df(0x21b)](_0x4f42df(0x22d),_0x1badc3[_0x4f42df(0x1f7)],util['inspect'](_0x9afeac,{'showHidden':![],'depth':null}));}},module[a1265_0x2e0874(0x1fa)]=VoiceDialReport;
\ No newline at end of file