Built motion from commit (unavailable).|2.5.17
[motion2.git] / server / services / ami / report / voiceQueueReport.js
index b3d5f06..f4b6892 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5327=['[%s][voiceQueueReport][musiconholdstop]\x20mohtime:%s','mohtime','lodash','moment','util','md5','ioredis','../../../config/environment','../../../config/logger','ami','../ami','../model/queueReport','redis','socket.io-emitter','enqueue','tail','finally','queueReports','agents','channels','voiceQueues','campaigns','queuesummary','syncQueueSummary','bind','queuesummarycomplete','syncQueueSummaryComplete','queuecallerjoin','queuecallerabandon','syncQueueCallerAbandon','queuecallerleave','syncQueueCallerLeave','agentcomplete','syncAgentComplete','agentconnect','varset','syncVarSet','hangup','syncHangup','fullybooted','musiconholdstart','syncMusicOnHoldStart','syncMusicOnHoldStop','attendedtransfer','blindtransfer','syncBlindTransfer','isEmpty','hasOwnProperty','originated','talking','clearZombieChannels','switch','isNil','status','catch','No\x20such\x20channel','[%s][voiceQueueReport][checkChannel]','inspect','error','[%s][voiceQueueReport][checkQueueReport]','variables','[%s][voiceQueueReport][checkVariables]','prototype','syncFullyBooted','[FullyBooted]\x20clear\x20realtime','clearQueueReport','[%s][voiceQueueReport][','uniqueid','emit','name','debug',']\x20sending\x20voice_queue_channel:remove\x20event:','format','voice:queue:%s','voice_queue_channel:remove','type','inbound','strategy','answered','available','sumBillable','sumDuration','sumHoldTime','abandoned','waiting','Trunk','active','callerid','Interval','stringify','[voiceQueueReport][',']\x20sending\x20voice_queue:save\x20event:','isNotNull','queues','[voiceQueueReport][queues]','loopQueueSummary','flagQueueSummary','Action','then','queue','[voiceQueueReport][queuesummary]\x20event:','[voiceQueueReport][queuesummary]\x20name:%s','countBy','callers','toNumber','loggedIn','loggedin','emitVoiceQueueSummary','[voiceQueueReport][queuesummary]\x20sending\x20queuesummary\x20event:','[voiceQueueReport][queuesummary]','syncQueueCallerJoin','YYYY-MM-DD\x20HH:mm:ss','position','count','info','[voiceQueueReport][queuecallerjoin]\x20name:%s\x20type:%s','merge','keys','push','emitVoiceQueueChannelSave','[%s][voiceQueueReport][queuecallerabandon]','queuecallercomplete','queuecallercompleteAt','holdtime','originalposition','lastAssignedTo','[voiceQueueReport][queuecallerabandon]\x20name:%s\x20type:%s','[%s][voiceQueueReport][queuecallerleave]','queuecallerleaveAt','connectedlinenum','connectedlinename','[voiceQueueReport][queuecallerleave]\x20name:%s\x20type:%s\x20connectedlinenum:%s\x20connectedlinename:%s','syncAgentConnect','queuecallerexitreason','COMPLETEDBYAGENT','[voiceQueueReport][agentconnect]\x20name:%s\x20type:%s\x20queuecallerexitreason:COMPLETEDBYAGENT','[%s][voiceQueueReport][agentconnect]','[%s][voiceQueueReport][agentcomplete]','last','assigned','membername','queuecallerexit','queuecallerexitAt','transfer','reason','COMPLETED','[voiceQueueReport][agentcomplete]\x20name:%s\x20type:%s\x20queuecallerexitreason:COMPLETED','channel','local/','linkedid','add','FORWARDTRANSFER','FORWARD','transferexten','destexten','transferuniqueid','[voiceQueueReport][agentcomplete]\x20name:%s\x20type:%s\x20queuecallerexitreason:FORWARDTRANSFER','COMPLETEDBY','toUpperCase','emitVoiceQueueChannelRemove','[%s][voiceQueueReport][varset]','variable','value','TIMEOUT','lastevent','timeout','[%s][voiceQueueReport][varset]\x20sending\x20timeout\x20event:','custom:timeout','[%s][voiceQueueReport][varset]\x20name:%s\x20type:%s\x20variable:%s\x20value:%s','rtpaudioqosjitter','rtpaudioqosjitterbridged','rtpaudioqosloss','rtpaudioqoslossbridged','rtpaudioqosrtt','rtpaudioqosrttbridged','sipcallid','sipuri','bridgepeer','bridgepvtcallid','memberdynamic','memberinterface','memberlastcall','memberpenalty','memberrealtime','includes','isUndefined','length','BLINDTRANSFER','diff','seconds','milliseconds','queuecallerjoinAt','total','unmanaged','[%s][voiceQueueReport][hangup]\x20sending\x20queuecallerunmanaged\x20event:','custom:queuecallerunmanaged','custom:queuecallerabandon','[%s][voiceQueueReport][hangup]\x20name:%s\x20type:%s\x20reason:%s','cause-txt','custom:voiceQueueReport','[%s][voiceQueueReport][hangup]','[%s][voiceQueueReport][attendedtransfer]','transfereeuniqueid','secondtransfererexten','secondtransfereruniqueid','transfertype','ATTENDED','transfertargetuniqueid','origtransfererexten','origtransfereruniqueid','ATTENDEDTRANSFER','[%s][voiceQueueReport][attendedTransfer]\x20name:%s\x20type:%s\x20transferexten:%s\x20transferuniqueid:%s','[%s][voiceQueueReport][blindtransfer]','BLIND','[%s][voiceQueueReport][blindTransfer]\x20name:%s\x20type:%s\x20transferexten:%s\x20transferuniqueid:%s','context','transfererchannel','[%s][voiceQueueReport][musiconholdstart]','mohstarttime','[%s][voiceQueueReport][musiconholdstart]\x20mohstarttime:%s','[%s][voiceQueueReport][musiconholdstop]'];(function(_0xa90e84,_0x19a470){var _0x5d264d=function(_0x5bce1b){while(--_0x5bce1b){_0xa90e84['push'](_0xa90e84['shift']());}};_0x5d264d(++_0x19a470);}(_0x5327,0x1bc));var _0x7532=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x5327[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0x7532('0x0'));var moment=require(_0x7532('0x1'));var util=require(_0x7532('0x2'));var md5=require(_0x7532('0x3'));var Redis=require(_0x7532('0x4'));var config=require(_0x7532('0x5'));var logger=require(_0x7532('0x6'))(_0x7532('0x7'));var ami=require(_0x7532('0x8'));var QueueReport=require(_0x7532('0x9'));config[_0x7532('0xa')]=_['defaults'](config['redis'],{'host':'localhost','port':0x18eb});var io=require(_0x7532('0xb'))(new Redis(config[_0x7532('0xa')]));var Sequence=function(){};Sequence['prototype'][_0x7532('0xc')]=function(_0xa8e9a6){this[_0x7532('0xd')]=this[_0x7532('0xd')]?this[_0x7532('0xd')][_0x7532('0xe')](_0xa8e9a6):_0xa8e9a6();};function VoiceQueueReport(_0x4c53be){this['sequence']=new Sequence();this[_0x7532('0xf')]={};this[_0x7532('0x10')]=_0x4c53be[_0x7532('0x10')];this[_0x7532('0x11')]=_0x4c53be['queueChannels'];this[_0x7532('0x12')]=_0x4c53be['voiceQueues'];this['flagQueueSummary']=!![];this['campaigns']=_0x4c53be[_0x7532('0x13')];this['variables']={};ami['on'](_0x7532('0x14'),this[_0x7532('0x15')][_0x7532('0x16')](this));ami['on'](_0x7532('0x17'),this[_0x7532('0x18')][_0x7532('0x16')](this));ami['on'](_0x7532('0x19'),this['syncQueueCallerJoin'][_0x7532('0x16')](this));ami['on'](_0x7532('0x1a'),this[_0x7532('0x1b')][_0x7532('0x16')](this));ami['on'](_0x7532('0x1c'),this[_0x7532('0x1d')][_0x7532('0x16')](this));ami['on'](_0x7532('0x1e'),this[_0x7532('0x1f')][_0x7532('0x16')](this));ami['on'](_0x7532('0x20'),this['syncAgentConnect'][_0x7532('0x16')](this));ami['on'](_0x7532('0x21'),this[_0x7532('0x22')][_0x7532('0x16')](this));ami['on'](_0x7532('0x23'),this[_0x7532('0x24')][_0x7532('0x16')](this));ami['on'](_0x7532('0x25'),this['syncFullyBooted'][_0x7532('0x16')](this));ami['on'](_0x7532('0x26'),this[_0x7532('0x27')][_0x7532('0x16')](this));ami['on']('musiconholdstop',this[_0x7532('0x28')][_0x7532('0x16')](this));ami['on'](_0x7532('0x29'),this['syncAttendedTransfer']['bind'](this));ami['on'](_0x7532('0x2a'),this[_0x7532('0x2b')][_0x7532('0x16')](this));this['loopQueueSummary']();this['loopQueueShow']();}function clearChannels(_0x985bd7){if(!_[_0x7532('0x2c')](_0x985bd7)){for(var _0x4ddcc9 in _0x985bd7){if(_0x985bd7[_0x7532('0x2d')](_0x4ddcc9)){delete _0x985bd7[_0x4ddcc9];}}}}function clearCampaigns(_0x19d516){if(!_[_0x7532('0x2c')](_0x19d516)){for(var _0x4f5273 in _0x19d516){if(_0x19d516[_0x7532('0x2d')](_0x4f5273)){_0x19d516[_0x4f5273][_0x7532('0x2e')]=0x0;}}}}function clearVoiceQueues(_0x4290d3){if(!_[_0x7532('0x2c')](_0x4290d3)){for(var _0x59bce2 in _0x4290d3){if(_0x4290d3['hasOwnProperty'](_0x59bce2)){_0x4290d3[_0x59bce2][_0x7532('0x2e')]=0x0;_0x4290d3[_0x59bce2][_0x7532('0x2f')]=0x0;_0x4290d3[_0x59bce2]['pTalking']=0x0;_0x4290d3[_0x59bce2]['waiting']=0x0;_0x4290d3[_0x59bce2]['queueStatusComplete']=!![];}}}}function clearAgentBooked(_0x34994e){if(!_[_0x7532('0x2c')](_0x34994e)){for(var _0xd140fa in _0x34994e){if(_0x34994e['hasOwnProperty'](_0xd140fa)){_0x34994e[_0xd140fa]['unlockRR']=!![];}}}}VoiceQueueReport['prototype'][_0x7532('0x30')]=function(){var _0x58dec2=this;for(var _0x5827bc in this[_0x7532('0x11')]){if(this[_0x7532('0x11')][_0x7532('0x2d')](_0x5827bc)&&!this[_0x7532('0x11')][_0x5827bc][_0x7532('0x31')]){this['sequence']['enqueue'](function(){if(!_[_0x7532('0x32')](_0x58dec2[_0x7532('0x11')][_0x5827bc])){return ami['Action']({'action':_0x7532('0x33'),'channel':_0x58dec2[_0x7532('0x11')][_0x5827bc]['channel']})[_0x7532('0x34')](function(_0x4cf023){if(_0x4cf023['message']===_0x7532('0x35')){setTimeout(function(){if(_0x58dec2[_0x7532('0x11')][_0x5827bc]){delete _0x58dec2[_0x7532('0x11')][_0x5827bc];logger['error'](_0x7532('0x36'),_0x5827bc,util[_0x7532('0x37')](_0x4cf023,{'showHidden':![],'depth':null}));}if(_0x58dec2[_0x7532('0xf')][_0x5827bc]){delete _0x58dec2[_0x7532('0xf')][_0x5827bc];logger[_0x7532('0x38')](_0x7532('0x39'),_0x5827bc,util[_0x7532('0x37')](_0x4cf023,{'showHidden':![],'depth':null}));}if(_0x58dec2[_0x7532('0x3a')][_0x5827bc]){delete _0x58dec2['variables'][_0x5827bc];logger['error'](_0x7532('0x3b'),_0x5827bc,util[_0x7532('0x37')](_0x4cf023,{'showHidden':![],'depth':null}));}},0x1f40);}});}});}}};VoiceQueueReport[_0x7532('0x3c')][_0x7532('0x3d')]=function(){logger[_0x7532('0x38')](_0x7532('0x3e'));clearChannels(this[_0x7532('0x11')]);this['clearQueueReport'](this[_0x7532('0xf')]);clearAgentBooked(this['agents']);clearVoiceQueues(this[_0x7532('0x12')]);clearCampaigns(this[_0x7532('0x13')]);};VoiceQueueReport[_0x7532('0x3c')][_0x7532('0x3f')]=function(_0xe6bb87){var _0x1d29ea=this;if(!_[_0x7532('0x2c')](_0xe6bb87)){for(var _0x32484d in _0xe6bb87){if(_0xe6bb87[_0x7532('0x2d')](_0x32484d)){_0x1d29ea['emitVoiceQueueChannelRemove'](_0xe6bb87[_0x32484d],'clearqueuereport');delete _0xe6bb87[_0x32484d];}}}};VoiceQueueReport[_0x7532('0x3c')]['emit']=function(_0x51ec3d,_0x251f46,_0x2f9100){io['to'](_0x51ec3d)['emit'](_0x251f46,_0x2f9100);};VoiceQueueReport[_0x7532('0x3c')]['emitVoiceQueueChannelSave']=function(_0xabd9c9,_0x548f42){logger['debug'](_0x7532('0x40')+_0x548f42+']\x20sending\x20voice_queue_channel:save\x20event:',_0xabd9c9[_0x7532('0x41')],util['inspect'](_0xabd9c9,{'showHidden':![],'depth':null}));this[_0x7532('0x42')](util['format']('voice:queue:%s',_0xabd9c9[_0x7532('0x43')]),'voice_queue_channel:save',_0xabd9c9);};VoiceQueueReport[_0x7532('0x3c')]['emitVoiceQueueChannelRemove']=function(_0xe9916b,_0x1f9e75){logger[_0x7532('0x44')](_0x7532('0x40')+_0x1f9e75+_0x7532('0x45'),_0xe9916b['uniqueid'],util['inspect'](_0xe9916b,{'showHidden':![],'depth':null}));this['emit'](util[_0x7532('0x46')](_0x7532('0x47'),_0xe9916b[_0x7532('0x43')]),_0x7532('0x48'),_0xe9916b);};VoiceQueueReport[_0x7532('0x3c')]['emitVoiceQueueSummary']=function(_0x2684b8,_0x4d6217){if(_0x2684b8[_0x7532('0x49')]===_0x7532('0x4a')){var _0x2eb124={'id':_0x2684b8['id'],'name':_0x2684b8[_0x7532('0x43')],'strategy':_0x2684b8[_0x7532('0x4b')],'answered':_0x2684b8[_0x7532('0x4c')],'available':_0x2684b8[_0x7532('0x4d')],'loggedIn':_0x2684b8['loggedIn'],'pTalking':_0x2684b8['pTalking'],'sumBillable':_0x2684b8[_0x7532('0x4e')],'sumDuration':_0x2684b8[_0x7532('0x4f')],'sumHoldTime':_0x2684b8[_0x7532('0x50')]||0x0,'talking':_0x2684b8[_0x7532('0x2f')],'total':_0x2684b8['total'],'type':_0x2684b8[_0x7532('0x49')],'unmanaged':_0x2684b8['unmanaged'],'abandoned':_0x2684b8[_0x7532('0x51')],'waiting':_0x2684b8[_0x7532('0x52')]};if(_0x2684b8[_0x7532('0x53')]){_0x2eb124[_0x7532('0x53')]={'id':_0x2684b8[_0x7532('0x53')]['id'],'name':_0x2684b8[_0x7532('0x53')]['name'],'active':_0x2684b8[_0x7532('0x53')][_0x7532('0x54')],'callerid':_0x2684b8[_0x7532('0x53')][_0x7532('0x55')]};}if(_0x2684b8[_0x7532('0x56')]){_0x2eb124[_0x7532('0x56')]={'id':_0x2684b8[_0x7532('0x56')]['id'],'name':_0x2684b8[_0x7532('0x56')]['name']};}var _0x2e7b74=md5(JSON[_0x7532('0x57')](_0x2eb124));if(_0x2684b8[_0x7532('0x3')]!==_0x2e7b74){_0x2684b8[_0x7532('0x3')]=_0x2e7b74;logger[_0x7532('0x44')](_0x7532('0x58')+_0x4d6217+_0x7532('0x59'),util[_0x7532('0x37')](_0x2eb124,{'showHidden':![],'depth':null}));this['emit'](util[_0x7532('0x46')](_0x7532('0x47'),_0x2eb124[_0x7532('0x43')]),'voice_queue:save',_0x2eb124);}}};VoiceQueueReport[_0x7532('0x3c')][_0x7532('0x5a')]=function(_0xbf64c4){return _0xbf64c4!==null&&!_['isUndefined'](_0xbf64c4);};VoiceQueueReport['prototype']['loopQueueShow']=function(){var _0x99bd76=this;setInterval(function(){_0x99bd76['clearZombieChannels']();ami['Action']({'action':_0x7532('0x5b')})[_0x7532('0x34')](function(_0x5adcad){logger[_0x7532('0x38')](_0x7532('0x5c'),util[_0x7532('0x37')](_0x5adcad,{'showHidden':![],'depth':null}));});},0x2710);};VoiceQueueReport['prototype'][_0x7532('0x5d')]=function(){var _0xed0ad4=this;setInterval(function(){if(_0xed0ad4[_0x7532('0x5e')]){return ami[_0x7532('0x5f')]({'action':_0x7532('0x14')})[_0x7532('0x60')](function(_0x11f5f7){_0xed0ad4[_0x7532('0x5e')]=![];})[_0x7532('0x34')](function(_0x3ca08c){logger[_0x7532('0x38')]('[voiceQueueReport][queuesummary]',util[_0x7532('0x37')](_0x3ca08c,{'showHidden':![],'depth':null}));});}},0x3e8);};VoiceQueueReport[_0x7532('0x3c')][_0x7532('0x15')]=function(_0x35aa5b){try{if(this[_0x7532('0x5a')](_0x35aa5b)&&this[_0x7532('0x5a')](_0x35aa5b[_0x7532('0x61')])){logger[_0x7532('0x44')](_0x7532('0x62'),util[_0x7532('0x37')](_0x35aa5b,{'showHidden':![],'depth':null}));if(this['voiceQueues'][_0x35aa5b[_0x7532('0x61')]]){logger['info'](_0x7532('0x63'),_0x35aa5b['queue']);var _0x4e32c9=_[_0x7532('0x64')](this[_0x7532('0x11')],_0x7532('0x61'))[_0x35aa5b['queue']]||0x0;var _0x4b8562=_0x4e32c9-_0x35aa5b[_0x7532('0x65')];if(this[_0x7532('0x12')][_0x35aa5b[_0x7532('0x61')]][_0x7532('0x52')]!==_[_0x7532('0x66')](_0x35aa5b['callers'])||this[_0x7532('0x12')][_0x35aa5b['queue']]['loggedIn']!==_[_0x7532('0x66')](_0x35aa5b['loggedin'])||this['voiceQueues'][_0x35aa5b[_0x7532('0x61')]][_0x7532('0x4d')]!==_['toNumber'](_0x35aa5b[_0x7532('0x4d')])||this[_0x7532('0x12')][_0x35aa5b[_0x7532('0x61')]][_0x7532('0x2f')]!==_0x4b8562){this['voiceQueues'][_0x35aa5b['queue']][_0x7532('0x52')]=_['toNumber'](_0x35aa5b[_0x7532('0x65')]);this['voiceQueues'][_0x35aa5b[_0x7532('0x61')]][_0x7532('0x67')]=_[_0x7532('0x66')](_0x35aa5b[_0x7532('0x68')]);this[_0x7532('0x12')][_0x35aa5b[_0x7532('0x61')]][_0x7532('0x4d')]=_[_0x7532('0x66')](_0x35aa5b[_0x7532('0x4d')]);this[_0x7532('0x12')][_0x35aa5b[_0x7532('0x61')]][_0x7532('0x2f')]=_0x4b8562>0x0?_0x4b8562:0x0;this[_0x7532('0x12')][_0x35aa5b[_0x7532('0x61')]][_0x7532('0x2f')]=this[_0x7532('0x12')][_0x35aa5b['queue']][_0x7532('0x2f')]>_[_0x7532('0x66')](_0x35aa5b[_0x7532('0x68')])?_[_0x7532('0x66')](_0x35aa5b[_0x7532('0x68')]):this[_0x7532('0x12')][_0x35aa5b[_0x7532('0x61')]][_0x7532('0x2f')];this[_0x7532('0x69')](this['voiceQueues'][_0x35aa5b[_0x7532('0x61')]],_0x7532('0x14'));}logger[_0x7532('0x44')](_0x7532('0x6a'),util[_0x7532('0x37')](this[_0x7532('0x12')][_0x35aa5b[_0x7532('0x61')]],{'showHidden':![],'depth':null}));ami['emit']('custom:queuesummary',this[_0x7532('0x12')][_0x35aa5b['queue']]);}}}catch(_0x36977f){logger[_0x7532('0x38')](_0x7532('0x6b'),util['inspect'](_0x36977f,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x7532('0x3c')][_0x7532('0x18')]=function(_0x2281aa){logger[_0x7532('0x44')]('[voiceQueueReport][queuesummarycomplete]\x20event:',util['inspect'](_0x2281aa,{'showHidden':![],'depth':null}));this[_0x7532('0x5e')]=!![];};VoiceQueueReport[_0x7532('0x3c')][_0x7532('0x6c')]=function(_0x161f4d){try{if(this[_0x7532('0x5a')](_0x161f4d)){logger[_0x7532('0x44')]('[%s][voiceQueueReport][queuecallerjoin]',_0x161f4d['uniqueid'],util[_0x7532('0x37')](_0x161f4d,{'showHidden':![],'depth':null}));if(_['isUndefined'](this[_0x7532('0xf')][_0x161f4d[_0x7532('0x41')]])){this[_0x7532('0xf')][_0x161f4d[_0x7532('0x41')]]=[];this['channels'][_0x161f4d[_0x7532('0x41')]]={};}var _0x3b4c32=new QueueReport();_0x3b4c32[_0x7532('0x43')]=_0x161f4d[_0x7532('0x61')];_0x3b4c32['type']=this[_0x7532('0x12')][_0x3b4c32['name']]&&this[_0x7532('0x12')][_0x3b4c32[_0x7532('0x43')]][_0x7532('0x49')]?this[_0x7532('0x12')][_0x3b4c32[_0x7532('0x43')]][_0x7532('0x49')]||_0x7532('0x4a'):'inbound';_0x3b4c32['queue']=_0x161f4d[_0x7532('0x61')];_0x3b4c32['queuecallerjoinAt']=moment()[_0x7532('0x46')](_0x7532('0x6d'));_0x3b4c32['position']=_0x161f4d[_0x7532('0x6e')];_0x3b4c32[_0x7532('0x6f')]=_0x161f4d[_0x7532('0x6f')];_0x3b4c32[_0x7532('0x41')]=_0x161f4d['uniqueid'];logger[_0x7532('0x70')](_0x7532('0x71'),_0x3b4c32[_0x7532('0x43')],_0x3b4c32[_0x7532('0x49')]);_[_0x7532('0x72')](_0x3b4c32,_['pick'](_0x161f4d,_[_0x7532('0x73')](_0x3b4c32)));this['queueReports'][_0x161f4d[_0x7532('0x41')]][_0x7532('0x74')](_0x3b4c32);this['channels'][_0x161f4d[_0x7532('0x41')]]=_0x3b4c32;this[_0x7532('0x75')](_0x3b4c32,_0x7532('0x19'));}}catch(_0x52e403){logger[_0x7532('0x38')]('[%s][voiceQueueReport][queuecallerjoin]',_0x161f4d[_0x7532('0x41')],util[_0x7532('0x37')](_0x52e403,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x7532('0x3c')][_0x7532('0x1b')]=function(_0x30e536){try{if(this[_0x7532('0x5a')](_0x30e536)){logger[_0x7532('0x44')](_0x7532('0x76'),_0x30e536[_0x7532('0x41')],util[_0x7532('0x37')](_0x30e536,{'showHidden':![],'depth':null}));if(this['queueReports'][_0x30e536['uniqueid']]){var _0x494b92=_['last'](this[_0x7532('0xf')][_0x30e536['uniqueid']]);_0x494b92[_0x7532('0x77')]=![];_0x494b92[_0x7532('0x78')]=null;_0x494b92['holdtime']=_0x30e536[_0x7532('0x79')];_0x494b92[_0x7532('0x7a')]=_0x30e536[_0x7532('0x7a')];_0x494b92['queuecallerabandon']=!![];_0x494b92['queuecallerabandonAt']=moment()[_0x7532('0x46')](_0x7532('0x6d'));_0x494b92['queuecallerexitreason']='ABANDONED';_0x494b92[_0x7532('0x7b')]=null;logger['info'](_0x7532('0x7c'),_0x494b92['name'],_0x494b92[_0x7532('0x49')]);this['channels'][_0x30e536[_0x7532('0x41')]]=_0x494b92;this['emitVoiceQueueChannelRemove'](_0x494b92,_0x7532('0x1a'));}}}catch(_0x49d692){logger[_0x7532('0x38')](_0x7532('0x76'),_0x30e536[_0x7532('0x41')],util[_0x7532('0x37')](_0x49d692,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x7532('0x3c')][_0x7532('0x1d')]=function(_0x4af9ec){try{if(this[_0x7532('0x5a')](_0x4af9ec)){logger['debug'](_0x7532('0x7d'),_0x4af9ec['uniqueid'],util[_0x7532('0x37')](_0x4af9ec,{'showHidden':![],'depth':null}));if(this[_0x7532('0xf')][_0x4af9ec[_0x7532('0x41')]]){var _0x270e70=_['last'](this['queueReports'][_0x4af9ec[_0x7532('0x41')]]);_0x270e70[_0x7532('0x7e')]=moment()[_0x7532('0x46')](_0x7532('0x6d'));_0x270e70[_0x7532('0x7f')]=_0x4af9ec[_0x7532('0x7f')];_0x270e70[_0x7532('0x80')]=_0x4af9ec[_0x7532('0x80')];logger[_0x7532('0x70')](_0x7532('0x81'),_0x270e70[_0x7532('0x43')],_0x270e70[_0x7532('0x49')],_0x4af9ec[_0x7532('0x7f')],_0x4af9ec[_0x7532('0x80')]);this['channels'][_0x4af9ec[_0x7532('0x41')]]=_0x270e70;this[_0x7532('0x75')](_0x270e70,_0x7532('0x1c'));}}}catch(_0x15d700){logger[_0x7532('0x38')](_0x7532('0x7d'),_0x4af9ec[_0x7532('0x41')],util['inspect'](_0x15d700,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x7532('0x3c')][_0x7532('0x82')]=function(_0x5ae8c4){try{if(this[_0x7532('0x5a')](_0x5ae8c4)){logger[_0x7532('0x44')]('[%s][voiceQueueReport][agentconnect]',_0x5ae8c4[_0x7532('0x41')],util[_0x7532('0x37')](_0x5ae8c4,{'showHidden':![],'depth':null}));if(this[_0x7532('0xf')][_0x5ae8c4[_0x7532('0x41')]]){var _0x17fd50=_['last'](this[_0x7532('0xf')][_0x5ae8c4[_0x7532('0x41')]]);_0x17fd50['queuecallercomplete']=!![];_0x17fd50[_0x7532('0x83')]=_0x7532('0x84');logger[_0x7532('0x70')](_0x7532('0x85'),_0x17fd50[_0x7532('0x43')],_0x17fd50[_0x7532('0x49')]);}}}catch(_0x2f7dc0){logger[_0x7532('0x38')](_0x7532('0x86'),_0x5ae8c4[_0x7532('0x41')],util['inspect'](_0x2f7dc0,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x7532('0x3c')][_0x7532('0x1f')]=function(_0xfdfb42){try{if(this[_0x7532('0x5a')](_0xfdfb42)){logger[_0x7532('0x44')](_0x7532('0x87'),_0xfdfb42[_0x7532('0x41')],util[_0x7532('0x37')](_0xfdfb42,{'showHidden':![],'depth':null}));if(this['queueReports'][_0xfdfb42[_0x7532('0x41')]]){var _0x457e57=_[_0x7532('0x88')](this[_0x7532('0xf')][_0xfdfb42[_0x7532('0x41')]]);_0x457e57[_0x7532('0x1a')]=![];_0x457e57['queuecallerabandonAt']=null;_0x457e57[_0x7532('0x89')]=!![];_0x457e57[_0x7532('0x7b')]=_0xfdfb42[_0x7532('0x8a')];_0x457e57['holdtime']=_0xfdfb42[_0x7532('0x79')];_0x457e57[_0x7532('0x77')]=!![];_0x457e57[_0x7532('0x8b')]=![];_0x457e57[_0x7532('0x8c')]=null;if(!_0x457e57[_0x7532('0x8d')]){if(_0xfdfb42[_0x7532('0x8e')]==_0x7532('0x8d')){_0x457e57[_0x7532('0x83')]=_0x7532('0x8f');logger['info'](_0x7532('0x90'),_0x457e57[_0x7532('0x43')],_0x457e57[_0x7532('0x49')]);}else{if(_['startsWith'](_0xfdfb42[_0x7532('0x91')]['toLowerCase'](),_0x7532('0x92'))){if(this[_0x7532('0xf')][_0xfdfb42[_0x7532('0x93')]]){var _0x6dc4d6=_[_0x7532('0x88')](this[_0x7532('0xf')][_0xfdfb42[_0x7532('0x93')]]);_0x6dc4d6['queuecallercomplete']=![];_0x6dc4d6['queuecallerexit']=!![];_0x6dc4d6[_0x7532('0x8c')]=moment(_0x457e57['queuecallerjoinAt'])[_0x7532('0x94')](_0xfdfb42['holdtime'],'seconds')[_0x7532('0x46')](_0x7532('0x6d'));_0x6dc4d6[_0x7532('0x83')]=_0x7532('0x95');_0x6dc4d6['transfer']=!![];_0x6dc4d6['transfertype']=_0x7532('0x96');_0x6dc4d6[_0x7532('0x97')]=_0xfdfb42[_0x7532('0x98')];_0x6dc4d6[_0x7532('0x99')]=_0xfdfb42[_0x7532('0x41')];logger[_0x7532('0x70')](_0x7532('0x9a'),_0x6dc4d6['name'],_0x6dc4d6['type']);var _0x1e4100=this[_0x7532('0xf')][_0xfdfb42['linkedid']];this[_0x7532('0xf')][_0xfdfb42[_0x7532('0x93')]]=this[_0x7532('0xf')][_0xfdfb42[_0x7532('0x41')]];this[_0x7532('0xf')][_0xfdfb42[_0x7532('0x41')]]=_0x1e4100;}}else{_0x457e57[_0x7532('0x83')]=_0x7532('0x9b')+_0xfdfb42[_0x7532('0x8e')][_0x7532('0x9c')]();logger[_0x7532('0x70')]('[voiceQueueReport][agentcomplete]\x20name:%s\x20type:%s\x20queuecallerexitreason:%s',_0x457e57[_0x7532('0x43')],_0x457e57['type'],_0x457e57[_0x7532('0x83')]);}}}this[_0x7532('0x11')][_0xfdfb42[_0x7532('0x41')]]=_0x457e57;this[_0x7532('0x9d')](_0x457e57,_0x7532('0x1e'));}}}catch(_0x654325){logger[_0x7532('0x38')](_0x7532('0x87'),_0xfdfb42['uniqueid'],util[_0x7532('0x37')](_0x654325,{'showHidden':![],'depth':null}));}};VoiceQueueReport['prototype']['syncVarSet']=function(_0x56f22a){try{if(this[_0x7532('0x5a')](_0x56f22a)){logger[_0x7532('0x44')](_0x7532('0x9e'),_0x56f22a['uniqueid'],util[_0x7532('0x37')](_0x56f22a,{'showHidden':![],'depth':null}));this['addVariable'](_0x56f22a['uniqueid'],_[_0x7532('0x73')](_0x56f22a[_0x7532('0x9f')])[0x0],_0x56f22a[_0x7532('0xa0')]);if(this[_0x7532('0xf')][_0x56f22a['uniqueid']]){var _0xadac1e=_[_0x7532('0x88')](this[_0x7532('0xf')][_0x56f22a['uniqueid']]);if(_0xadac1e){if(this[_0x7532('0x5a')](_0x56f22a[_0x7532('0x9f')])&&this[_0x7532('0x5a')](_0x56f22a[_0x7532('0x9f')]['queuestatus'])){switch(_0x56f22a[_0x7532('0xa0')]){case'CONTINUE':_0xadac1e['queuecallerexit']=![];_0xadac1e[_0x7532('0x8c')]=null;break;case _0x7532('0xa1'):_0xadac1e[_0x7532('0xa2')]=_0x7532('0xa3');_0xadac1e[_0x7532('0x8b')]=!![];_0xadac1e[_0x7532('0x8c')]=moment()[_0x7532('0x46')](_0x7532('0x6d'));_0xadac1e[_0x7532('0x7e')]=moment()[_0x7532('0x46')](_0x7532('0x6d'));logger[_0x7532('0x44')](_0x7532('0xa4'),_0x56f22a[_0x7532('0x41')],util[_0x7532('0x37')](_0xadac1e,{'showHidden':![],'depth':null}));ami['emit'](_0x7532('0xa5'),_0xadac1e);break;default:_0xadac1e['queuecallerexit']=!![];_0xadac1e[_0x7532('0x8c')]=moment()[_0x7532('0x46')](_0x7532('0x6d'));_0xadac1e['queuecallerleaveAt']=moment()[_0x7532('0x46')](_0x7532('0x6d'));}_0xadac1e[_0x7532('0x1a')]=![];_0xadac1e['queuecallerabandonAt']=null;_0xadac1e['queuecallerexitreason']=_0x56f22a[_0x7532('0xa0')];this[_0x7532('0x11')][_0x56f22a[_0x7532('0x41')]]=_0xadac1e;this[_0x7532('0x9d')](_0xadac1e,_0x7532('0x21'));}else if(this[_0x7532('0x5a')](_0x56f22a[_0x7532('0x9f')])&&this[_0x7532('0x5a')](_0x56f22a[_0x7532('0x9f')]['queueposition'])){if(!_0xadac1e[_0x7532('0x1a')]){_0xadac1e['queuecallerexit']=!![];_0xadac1e[_0x7532('0x8c')]=moment()[_0x7532('0x46')]('YYYY-MM-DD\x20HH:mm:ss');_0xadac1e[_0x7532('0x83')]='EXITWITHKEY';_0xadac1e[_0x7532('0x7e')]=moment()[_0x7532('0x46')](_0x7532('0x6d'));this[_0x7532('0x11')][_0x56f22a[_0x7532('0x41')]]=_0xadac1e;}}logger[_0x7532('0x70')](_0x7532('0xa6'),_0x56f22a[_0x7532('0x41')],_0xadac1e[_0x7532('0x43')],_0xadac1e[_0x7532('0x49')],_[_0x7532('0x73')](_0x56f22a[_0x7532('0x9f')])[0x0],_0x56f22a[_0x7532('0xa0')]);_0xadac1e[_0x7532('0x3a')]=this[_0x7532('0x3a')][_0x56f22a[_0x7532('0x41')]];}}}}catch(_0x4ce5d4){logger[_0x7532('0x38')](_0x7532('0x9e'),_0x56f22a[_0x7532('0x41')],util[_0x7532('0x37')](_0x4ce5d4,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x7532('0x3c')]['addVariable']=function(_0x3c2a21,_0x222e44,_0x3353c8){var _0x52a863=['rtpaudioqos','rtpaudioqosbridged',_0x7532('0xa7'),_0x7532('0xa8'),_0x7532('0xa9'),_0x7532('0xaa'),_0x7532('0xab'),_0x7532('0xac'),_0x7532('0xad'),_0x7532('0xae'),_0x7532('0xaf'),_0x7532('0xb0'),'membercalls',_0x7532('0xb1'),_0x7532('0xb2'),_0x7532('0xb3'),_0x7532('0x8a'),_0x7532('0xb4'),_0x7532('0xb5')];if(!_[_0x7532('0x32')](_0x222e44)&&!_[_0x7532('0xb6')](_0x52a863,_0x222e44)){if(_[_0x7532('0xb7')](this['variables'][_0x3c2a21])){this[_0x7532('0x3a')][_0x3c2a21]={};}this['variables'][_0x3c2a21][_0x222e44]=_0x3353c8;}};VoiceQueueReport[_0x7532('0x3c')][_0x7532('0x24')]=function(_0x363f72){try{if(this[_0x7532('0x5a')](_0x363f72)){logger[_0x7532('0x44')]('[%s][voiceQueueReport][hangup]',_0x363f72[_0x7532('0x41')],util['inspect'](_0x363f72,{'showHidden':![],'depth':null}));if(this[_0x7532('0xf')][_0x363f72[_0x7532('0x41')]]){for(var _0x1c58a6=0x0,_0x17ddad={};_0x1c58a6<this[_0x7532('0xf')][_0x363f72['uniqueid']][_0x7532('0xb8')];_0x1c58a6+=0x1){_0x17ddad=this['queueReports'][_0x363f72[_0x7532('0x41')]][_0x1c58a6];if(this[_0x7532('0x12')][_0x17ddad[_0x7532('0x61')]]){if(_0x17ddad[_0x7532('0x8b')]&&_0x17ddad[_0x7532('0x83')]!==_0x7532('0xb9')){this[_0x7532('0x12')][_0x17ddad[_0x7532('0x61')]]['unmanaged']+=0x1;}if(_0x17ddad[_0x7532('0x1a')]){this['voiceQueues'][_0x17ddad[_0x7532('0x61')]][_0x7532('0x51')]+=0x1;}this[_0x7532('0x12')][_0x17ddad[_0x7532('0x61')]]['sumHoldTime']+=moment(_0x17ddad[_0x7532('0x7e')])[_0x7532('0xba')](_0x17ddad['queuecallerjoinAt'],_0x7532('0xbb'))||0x0;if(_0x1c58a6===this[_0x7532('0xf')][_0x363f72['uniqueid']][_0x7532('0xb8')]-0x1){this[_0x7532('0x12')][_0x17ddad[_0x7532('0x61')]]['sumDuration']+=moment()[_0x7532('0xbc')](0x0)[_0x7532('0xba')](_0x17ddad[_0x7532('0xbd')],'seconds');this[_0x7532('0x12')][_0x17ddad[_0x7532('0x61')]][_0x7532('0xbe')]+=0x1;if(_0x17ddad['queuecallercomplete']){this[_0x7532('0x12')][_0x17ddad['queue']][_0x7532('0x4c')]+=0x1;this[_0x7532('0x12')][_0x17ddad['queue']][_0x7532('0x4e')]+=moment()[_0x7532('0xbc')](0x0)['diff'](_0x17ddad[_0x7532('0x7e')],_0x7532('0xbb'));_0x17ddad[_0x7532('0x78')]=moment()[_0x7532('0x46')](_0x7532('0x6d'));_0x17ddad[_0x7532('0x8b')]=![];_0x17ddad[_0x7532('0x8c')]=null;}if(_0x17ddad[_0x7532('0x8b')]&&_0x17ddad[_0x7532('0x83')]!==_0x7532('0xb9')){_0x17ddad['lastevent']=_0x7532('0xbf');logger['debug'](_0x7532('0xc0'),_0x363f72['uniqueid'],util[_0x7532('0x37')](_0x17ddad,{'showHidden':![],'depth':null}));ami['emit'](_0x7532('0xc1'),_0x17ddad);}if(_0x17ddad[_0x7532('0x1a')]){_0x17ddad[_0x7532('0xa2')]=_0x7532('0x51');logger['debug']('[%s][voiceQueueReport][hangup]\x20sending\x20queuecallerabandon\x20event:',_0x363f72[_0x7532('0x41')],util[_0x7532('0x37')](_0x17ddad,{'showHidden':![],'depth':null}));ami[_0x7532('0x42')](_0x7532('0xc2'),_0x17ddad);}}else{this['voiceQueues'][_0x17ddad[_0x7532('0x61')]]['sumDuration']+=this[_0x7532('0x12')][_0x17ddad[_0x7532('0x61')]]['sumHoldTime'];}logger[_0x7532('0x70')](_0x7532('0xc3'),_0x363f72[_0x7532('0x41')],_0x17ddad[_0x7532('0x43')],_0x17ddad[_0x7532('0x49')],_0x363f72[_0x7532('0xc4')]);this[_0x7532('0x11')][_0x363f72[_0x7532('0x41')]]=_0x17ddad;this['emitVoiceQueueChannelRemove'](_0x17ddad,'hangup');this[_0x7532('0x69')](this[_0x7532('0x12')][_0x17ddad[_0x7532('0x61')]],_0x7532('0x23'));}}logger[_0x7532('0x44')]('[%s][voiceQueueReport][hangup]\x20sending\x20voiceQueueReport\x20event:',_0x363f72[_0x7532('0x41')],util['inspect'](this[_0x7532('0xf')][_0x363f72['uniqueid']],{'showHidden':![],'depth':null}));ami['emit'](_0x7532('0xc5'),this[_0x7532('0xf')][_0x363f72['uniqueid']]);delete this['queueReports'][_0x363f72[_0x7532('0x41')]];delete this[_0x7532('0x11')][_0x363f72['uniqueid']];}if(this[_0x7532('0x3a')][_0x363f72[_0x7532('0x41')]]){delete this[_0x7532('0x3a')][_0x363f72['uniqueid']];}}}catch(_0x39d0bf){logger[_0x7532('0x38')](_0x7532('0xc6'),_0x363f72[_0x7532('0x41')],util[_0x7532('0x37')](_0x39d0bf,{'showHidden':![],'depth':null}));}};VoiceQueueReport['prototype']['syncAttendedTransfer']=function(_0x5e6b1f){try{if(this[_0x7532('0x5a')](_0x5e6b1f)){logger[_0x7532('0x44')](_0x7532('0xc7'),_0x5e6b1f[_0x7532('0x41')],util[_0x7532('0x37')](_0x5e6b1f,{'showHidden':![],'depth':null}));var _0x548df2;if(this[_0x7532('0xf')][_0x5e6b1f['transfereeuniqueid']]){_0x548df2=_['last'](this[_0x7532('0xf')][_0x5e6b1f[_0x7532('0xc8')]]);_0x548df2[_0x7532('0x97')]=_0x5e6b1f[_0x7532('0xc9')];_0x548df2[_0x7532('0x99')]=_0x5e6b1f[_0x7532('0xca')];_0x548df2[_0x7532('0x83')]='ATTENDEDTRANSFER';_0x548df2[_0x7532('0x8d')]=!![];_0x548df2[_0x7532('0xcb')]=_0x7532('0xcc');if(this['queueReports'][_0x5e6b1f[_0x7532('0xca')]]){var _0x2ec395=this[_0x7532('0xf')][_0x5e6b1f[_0x7532('0xca')]];this[_0x7532('0xf')][_0x5e6b1f[_0x7532('0xca')]]=this['queueReports'][_0x5e6b1f[_0x7532('0xc8')]];this[_0x7532('0xf')][_0x5e6b1f[_0x7532('0xc8')]]=_0x2ec395;var _0x3a5af0=_['last'](this[_0x7532('0xf')][_0x5e6b1f['transfereeuniqueid']]);_0x3a5af0[_0x7532('0x31')]=!![];}logger[_0x7532('0x70')]('[%s][voiceQueueReport][attendedTransfer]\x20name:%s\x20type:%s\x20transferexten:%s\x20transferuniqueid:%s',_0x5e6b1f[_0x7532('0x41')],_0x548df2[_0x7532('0x43')],_0x548df2[_0x7532('0x49')],_0x548df2[_0x7532('0x97')],_0x548df2['transferuniqueid']);}else if(this[_0x7532('0xf')][_0x5e6b1f['transfertargetuniqueid']]){_0x548df2=_[_0x7532('0x88')](this[_0x7532('0xf')][_0x5e6b1f[_0x7532('0xcd')]]);_0x548df2[_0x7532('0x97')]=_0x5e6b1f[_0x7532('0xce')];_0x548df2[_0x7532('0x99')]=_0x5e6b1f[_0x7532('0xcf')];_0x548df2['queuecallerexitreason']=_0x7532('0xd0');_0x548df2[_0x7532('0x8d')]=!![];_0x548df2['transfertype']=_0x7532('0xcc');if(this[_0x7532('0xf')][_0x5e6b1f['origtransfereruniqueid']]){var _0x2ec395=this[_0x7532('0xf')][_0x5e6b1f[_0x7532('0xcf')]];this[_0x7532('0xf')][_0x5e6b1f['origtransfereruniqueid']]=this[_0x7532('0xf')][_0x5e6b1f['transfertargetuniqueid']];this[_0x7532('0xf')][_0x5e6b1f['transfertargetuniqueid']]=_0x2ec395;var _0x3a5af0=_['last'](this[_0x7532('0xf')][_0x5e6b1f[_0x7532('0xcd')]]);_0x3a5af0[_0x7532('0x31')]=!![];}logger[_0x7532('0x70')](_0x7532('0xd1'),_0x5e6b1f[_0x7532('0x41')],_0x548df2[_0x7532('0x43')],_0x548df2[_0x7532('0x49')],_0x548df2[_0x7532('0x97')],_0x548df2[_0x7532('0x99')]);}}}catch(_0x51490c){logger[_0x7532('0x38')](_0x7532('0xc7'),_0x5e6b1f[_0x7532('0x41')],util[_0x7532('0x37')](_0x51490c,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x7532('0x3c')]['syncBlindTransfer']=function(_0x43b6c5){try{if(this[_0x7532('0x5a')](_0x43b6c5)){logger[_0x7532('0x44')](_0x7532('0xd2'),_0x43b6c5[_0x7532('0x41')],util[_0x7532('0x37')](_0x43b6c5,{'showHidden':![],'depth':null}));if(this[_0x7532('0xf')][_0x43b6c5[_0x7532('0xc8')]]){var _0x18f93a=_[_0x7532('0x88')](this['queueReports'][_0x43b6c5[_0x7532('0xc8')]]);_0x18f93a[_0x7532('0x83')]=_0x7532('0xb9');_0x18f93a[_0x7532('0x8d')]=!![];_0x18f93a[_0x7532('0xcb')]=_0x7532('0xd3');_0x18f93a[_0x7532('0x97')]=_0x43b6c5['extension'];_0x18f93a[_0x7532('0x99')]=_0x43b6c5['transfereeuniqueid'];logger[_0x7532('0x70')](_0x7532('0xd4'),_0x43b6c5[_0x7532('0x41')],_0x18f93a['name'],_0x18f93a['type'],_0x18f93a[_0x7532('0x97')],_0x18f93a[_0x7532('0x99')]);this[_0x7532('0x24')]({'event':'BlindTransfer','uniqueid':_0x43b6c5[_0x7532('0xc8')],'context':_0x43b6c5[_0x7532('0xd5')],'channel':_0x43b6c5[_0x7532('0xd6')]});}}}catch(_0xb2e757){logger[_0x7532('0x38')](_0x7532('0xd2'),_0x43b6c5[_0x7532('0x41')],util[_0x7532('0x37')](_0xb2e757,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x7532('0x3c')][_0x7532('0x27')]=function(_0xc3a403){try{if(this[_0x7532('0x5a')](_0xc3a403)){logger['debug'](_0x7532('0xd7'),_0xc3a403['uniqueid'],util[_0x7532('0x37')](_0xc3a403,{'showHidden':![],'depth':null}));if(this[_0x7532('0xf')][_0xc3a403[_0x7532('0x41')]]){var _0x52e4a4=_[_0x7532('0x88')](this[_0x7532('0xf')][_0xc3a403['uniqueid']]);if(!_[_0x7532('0x32')](_0x52e4a4[_0x7532('0x7e')])){_0x52e4a4[_0x7532('0xd8')]=moment()[_0x7532('0x46')](_0x7532('0x6d'));logger[_0x7532('0x70')](_0x7532('0xd9'),_0xc3a403[_0x7532('0x41')],_0x52e4a4[_0x7532('0xd8')]);}}}}catch(_0x244202){logger[_0x7532('0x38')](_0x7532('0xd7'),_0xc3a403[_0x7532('0x41')],util[_0x7532('0x37')](_0x244202,{'showHidden':![],'depth':null}));}};VoiceQueueReport['prototype'][_0x7532('0x28')]=function(_0x38b88e){try{if(this['isNotNull'](_0x38b88e)){logger[_0x7532('0x44')](_0x7532('0xda'),_0x38b88e[_0x7532('0x41')],util[_0x7532('0x37')](_0x38b88e,{'showHidden':![],'depth':null}));if(this['queueReports'][_0x38b88e[_0x7532('0x41')]]){var _0x5a0203=_[_0x7532('0x88')](this['queueReports'][_0x38b88e[_0x7532('0x41')]]);if(!_[_0x7532('0x32')](_0x5a0203[_0x7532('0xd8')])){_0x5a0203['mohtime']+=moment()['milliseconds'](0x0)['diff'](_0x5a0203[_0x7532('0xd8')],_0x7532('0xbb'));logger[_0x7532('0x70')](_0x7532('0xdb'),_0x38b88e['uniqueid'],_0x5a0203[_0x7532('0xdc')]);delete _0x5a0203[_0x7532('0xd8')];}}}}catch(_0x61d45c){logger[_0x7532('0x38')](_0x7532('0xda'),_0x38b88e[_0x7532('0x41')],util['inspect'](_0x61d45c,{'showHidden':![],'depth':null}));}};module['exports']=VoiceQueueReport;
\ No newline at end of file
+var _0x53a7=['then','[voiceQueueReport][queuesummary]','syncQueueSummary','[voiceQueueReport][queuesummary]\x20event:','queue','[voiceQueueReport][queuesummary]\x20name:%s','countBy','toNumber','loggedIn','loggedin','available','talking','callers','emitVoiceQueueSummary','[voiceQueueReport][queuesummary]\x20sending\x20queuesummary\x20event:','syncQueueSummaryComplete','isNotNull','[%s][voiceQueueReport][queuecallerjoin]','queuecallerjoinAt','position','count','[voiceQueueReport][queuecallerjoin]\x20name:%s\x20type:%s','merge','pick','push','emitVoiceQueueChannelSave','[%s][voiceQueueReport][queuecallerabandon]','queuecallercomplete','queuecallercompleteAt','holdtime','originalposition','YYYY-MM-DD\x20HH:mm:ss','queuecallerexitreason','lastAssignedTo','info','[voiceQueueReport][queuecallerabandon]\x20name:%s\x20type:%s','syncQueueCallerLeave','[%s][voiceQueueReport][queuecallerleave]','last','queuecallerleaveAt','connectedlinenum','connectedlinename','[voiceQueueReport][queuecallerleave]\x20name:%s\x20type:%s\x20connectedlinenum:%s\x20connectedlinename:%s','syncAgentConnect','[%s][voiceQueueReport][agentconnect]','COMPLETEDBYAGENT','[voiceQueueReport][agentconnect]\x20name:%s\x20type:%s\x20queuecallerexitreason:COMPLETEDBYAGENT','assigned','membername','queuecallerexit','queuecallerexitAt','reason','transfer','COMPLETED','startsWith','channel','toLowerCase','local/','linkedid','add','seconds','FORWARDTRANSFER','transfertype','FORWARD','transferexten','destexten','transferuniqueid','COMPLETEDBY','toUpperCase','[voiceQueueReport][agentcomplete]\x20name:%s\x20type:%s\x20queuecallerexitreason:%s','[%s][voiceQueueReport][agentcomplete]','[%s][voiceQueueReport][varset]','keys','variable','value','queuestatus','CONTINUE','TIMEOUT','lastevent','timeout','[%s][voiceQueueReport][varset]\x20sending\x20timeout\x20event:','custom:timeout','queuecallerabandonAt','queueposition','EXITWITHKEY','[%s][voiceQueueReport][varset]\x20name:%s\x20type:%s\x20variable:%s\x20value:%s','addVariable','rtpaudioqos','rtpaudioqosbridged','rtpaudioqosjitterbridged','rtpaudioqosloss','rtpaudioqoslossbridged','rtpaudioqosrtt','rtpaudioqosrttbridged','sipcallid','sipuri','bridgepeer','bridgepvtcallid','membercalls','memberdynamic','memberinterface','memberlastcall','memberrealtime','syncHangup','[%s][voiceQueueReport][hangup]','abandoned','length','milliseconds','diff','[%s][voiceQueueReport][hangup]\x20sending\x20queuecallerunmanaged\x20event:','custom:queuecallerabandon','cause-txt','hangup','[%s][voiceQueueReport][hangup]\x20sending\x20voiceQueueReport\x20event:','custom:voiceQueueReport','[%s][voiceQueueReport][attendedtransfer]','transfereeuniqueid','secondtransfererexten','secondtransfereruniqueid','ATTENDEDTRANSFER','ATTENDED','[%s][voiceQueueReport][attendedTransfer]\x20name:%s\x20type:%s\x20transferexten:%s\x20transferuniqueid:%s','transfertargetuniqueid','origtransfererexten','origtransfereruniqueid','[%s][voiceQueueReport][blindtransfer]','BLINDTRANSFER','BLIND','extension','[%s][voiceQueueReport][blindTransfer]\x20name:%s\x20type:%s\x20transferexten:%s\x20transferuniqueid:%s','context','transfererchannel','[%s][voiceQueueReport][musiconholdstart]','[%s][voiceQueueReport][musiconholdstart]\x20mohstarttime:%s','[%s][voiceQueueReport][musiconholdstop]','mohstarttime','[%s][voiceQueueReport][musiconholdstop]\x20mohtime:%s','exports','moment','util','md5','ioredis','ami','../ami','../model/queueReport','redis','defaults','localhost','socket.io-emitter','prototype','tail','finally','queueReports','agents','channels','queueChannels','voiceQueues','flagQueueSummary','campaigns','queuesummary','queuesummarycomplete','queuecallerjoin','syncQueueCallerJoin','queuecallerabandon','bind','queuecallerleave','agentcomplete','syncAgentComplete','varset','syncVarSet','syncFullyBooted','musiconholdstart','syncMusicOnHoldStart','syncMusicOnHoldStop','attendedtransfer','syncAttendedTransfer','blindtransfer','syncBlindTransfer','loopQueueSummary','loopQueueShow','isEmpty','hasOwnProperty','originated','pTalking','waiting','unlockRR','switch','enqueue','isNil','Action','message','error','[%s][voiceQueueReport][checkChannel]','inspect','[%s][voiceQueueReport][checkQueueReport]','variables','[%s][voiceQueueReport][checkVariables]','[FullyBooted]\x20clear\x20realtime','clearQueueReport','emitVoiceQueueChannelRemove','clearqueuereport','emit','debug','[%s][voiceQueueReport][',']\x20sending\x20voice_queue_channel:save\x20event:','uniqueid','format','voice:queue:%s','name','voice_queue_channel:save',']\x20sending\x20voice_queue_channel:remove\x20event:','voice_queue_channel:remove','type','inbound','answered','sumBillable','sumDuration','sumHoldTime','total','unmanaged','Trunk','active','Interval','[voiceQueueReport][',']\x20sending\x20voice_queue:save\x20event:','voice_queue:save','isUndefined','catch','[voiceQueueReport][queues]'];(function(_0xfae23b,_0x2be4ba){var _0x200640=function(_0x4ae258){while(--_0x4ae258){_0xfae23b['push'](_0xfae23b['shift']());}};_0x200640(++_0x2be4ba);}(_0x53a7,0x8a));var _0x753a=function(_0x4cef78,_0xb8076a){_0x4cef78=_0x4cef78-0x0;var _0x4f6385=_0x53a7[_0x4cef78];return _0x4f6385;};'use strict';var _=require('lodash');var moment=require(_0x753a('0x0'));var util=require(_0x753a('0x1'));var md5=require(_0x753a('0x2'));var Redis=require(_0x753a('0x3'));var config=require('../../../config/environment');var logger=require('../../../config/logger')(_0x753a('0x4'));var ami=require(_0x753a('0x5'));var QueueReport=require(_0x753a('0x6'));config[_0x753a('0x7')]=_[_0x753a('0x8')](config[_0x753a('0x7')],{'host':_0x753a('0x9'),'port':0x18eb});var io=require(_0x753a('0xa'))(new Redis(config[_0x753a('0x7')]));var Sequence=function(){};Sequence[_0x753a('0xb')]['enqueue']=function(_0x94afe4){this[_0x753a('0xc')]=this[_0x753a('0xc')]?this[_0x753a('0xc')][_0x753a('0xd')](_0x94afe4):_0x94afe4();};function VoiceQueueReport(_0xd2fccd){this['sequence']=new Sequence();this[_0x753a('0xe')]={};this[_0x753a('0xf')]=_0xd2fccd['agents'];this[_0x753a('0x10')]=_0xd2fccd[_0x753a('0x11')];this[_0x753a('0x12')]=_0xd2fccd[_0x753a('0x12')];this[_0x753a('0x13')]=!![];this[_0x753a('0x14')]=_0xd2fccd[_0x753a('0x14')];this['variables']={};ami['on'](_0x753a('0x15'),this['syncQueueSummary']['bind'](this));ami['on'](_0x753a('0x16'),this['syncQueueSummaryComplete']['bind'](this));ami['on'](_0x753a('0x17'),this[_0x753a('0x18')]['bind'](this));ami['on'](_0x753a('0x19'),this['syncQueueCallerAbandon'][_0x753a('0x1a')](this));ami['on'](_0x753a('0x1b'),this['syncQueueCallerLeave'][_0x753a('0x1a')](this));ami['on'](_0x753a('0x1c'),this[_0x753a('0x1d')][_0x753a('0x1a')](this));ami['on']('agentconnect',this['syncAgentConnect']['bind'](this));ami['on'](_0x753a('0x1e'),this[_0x753a('0x1f')][_0x753a('0x1a')](this));ami['on']('hangup',this['syncHangup'][_0x753a('0x1a')](this));ami['on']('fullybooted',this[_0x753a('0x20')][_0x753a('0x1a')](this));ami['on'](_0x753a('0x21'),this[_0x753a('0x22')][_0x753a('0x1a')](this));ami['on']('musiconholdstop',this[_0x753a('0x23')]['bind'](this));ami['on'](_0x753a('0x24'),this[_0x753a('0x25')][_0x753a('0x1a')](this));ami['on'](_0x753a('0x26'),this[_0x753a('0x27')]['bind'](this));this[_0x753a('0x28')]();this[_0x753a('0x29')]();}function clearChannels(_0x4d784b){if(!_['isEmpty'](_0x4d784b)){for(var _0x318bb4 in _0x4d784b){if(_0x4d784b['hasOwnProperty'](_0x318bb4)){delete _0x4d784b[_0x318bb4];}}}}function clearCampaigns(_0x5787f3){if(!_[_0x753a('0x2a')](_0x5787f3)){for(var _0xf27a0 in _0x5787f3){if(_0x5787f3[_0x753a('0x2b')](_0xf27a0)){_0x5787f3[_0xf27a0][_0x753a('0x2c')]=0x0;}}}}function clearVoiceQueues(_0x1115b4){if(!_['isEmpty'](_0x1115b4)){for(var _0x509e26 in _0x1115b4){if(_0x1115b4[_0x753a('0x2b')](_0x509e26)){_0x1115b4[_0x509e26]['originated']=0x0;_0x1115b4[_0x509e26]['talking']=0x0;_0x1115b4[_0x509e26][_0x753a('0x2d')]=0x0;_0x1115b4[_0x509e26][_0x753a('0x2e')]=0x0;_0x1115b4[_0x509e26]['queueStatusComplete']=!![];}}}}function clearAgentBooked(_0x5dde71){if(!_['isEmpty'](_0x5dde71)){for(var _0x2c3fec in _0x5dde71){if(_0x5dde71[_0x753a('0x2b')](_0x2c3fec)){_0x5dde71[_0x2c3fec][_0x753a('0x2f')]=!![];}}}}VoiceQueueReport[_0x753a('0xb')]['clearZombieChannels']=function(){var _0x4bc678=this;for(var _0x2147fa in this['channels']){if(this[_0x753a('0x10')]['hasOwnProperty'](_0x2147fa)&&!this['channels'][_0x2147fa][_0x753a('0x30')]){this['sequence'][_0x753a('0x31')](function(){if(!_[_0x753a('0x32')](_0x4bc678[_0x753a('0x10')][_0x2147fa])){return ami[_0x753a('0x33')]({'action':'status','channel':_0x4bc678[_0x753a('0x10')][_0x2147fa]['channel']})['catch'](function(_0x41b86c){if(_0x41b86c[_0x753a('0x34')]==='No\x20such\x20channel'){setTimeout(function(){if(_0x4bc678[_0x753a('0x10')][_0x2147fa]){delete _0x4bc678[_0x753a('0x10')][_0x2147fa];logger[_0x753a('0x35')](_0x753a('0x36'),_0x2147fa,util[_0x753a('0x37')](_0x41b86c,{'showHidden':![],'depth':null}));}if(_0x4bc678['queueReports'][_0x2147fa]){delete _0x4bc678['queueReports'][_0x2147fa];logger[_0x753a('0x35')](_0x753a('0x38'),_0x2147fa,util['inspect'](_0x41b86c,{'showHidden':![],'depth':null}));}if(_0x4bc678[_0x753a('0x39')][_0x2147fa]){delete _0x4bc678['variables'][_0x2147fa];logger[_0x753a('0x35')](_0x753a('0x3a'),_0x2147fa,util[_0x753a('0x37')](_0x41b86c,{'showHidden':![],'depth':null}));}},0x1f40);}});}});}}};VoiceQueueReport[_0x753a('0xb')]['syncFullyBooted']=function(){logger[_0x753a('0x35')](_0x753a('0x3b'));clearChannels(this[_0x753a('0x10')]);this['clearQueueReport'](this['queueReports']);clearAgentBooked(this['agents']);clearVoiceQueues(this[_0x753a('0x12')]);clearCampaigns(this[_0x753a('0x14')]);};VoiceQueueReport[_0x753a('0xb')][_0x753a('0x3c')]=function(_0x4b6f7c){var _0x329c74=this;if(!_['isEmpty'](_0x4b6f7c)){for(var _0x24601e in _0x4b6f7c){if(_0x4b6f7c[_0x753a('0x2b')](_0x24601e)){_0x329c74[_0x753a('0x3d')](_0x4b6f7c[_0x24601e],_0x753a('0x3e'));delete _0x4b6f7c[_0x24601e];}}}};VoiceQueueReport[_0x753a('0xb')][_0x753a('0x3f')]=function(_0x9ef945,_0x19eea6,_0x28a251){io['to'](_0x9ef945)[_0x753a('0x3f')](_0x19eea6,_0x28a251);};VoiceQueueReport['prototype']['emitVoiceQueueChannelSave']=function(_0x44a265,_0x7c103c){logger[_0x753a('0x40')](_0x753a('0x41')+_0x7c103c+_0x753a('0x42'),_0x44a265[_0x753a('0x43')],util[_0x753a('0x37')](_0x44a265,{'showHidden':![],'depth':null}));this[_0x753a('0x3f')](util[_0x753a('0x44')](_0x753a('0x45'),_0x44a265[_0x753a('0x46')]),_0x753a('0x47'),_0x44a265);};VoiceQueueReport[_0x753a('0xb')]['emitVoiceQueueChannelRemove']=function(_0x5d0323,_0x4b69d7){logger[_0x753a('0x40')]('[%s][voiceQueueReport]['+_0x4b69d7+_0x753a('0x48'),_0x5d0323['uniqueid'],util[_0x753a('0x37')](_0x5d0323,{'showHidden':![],'depth':null}));this[_0x753a('0x3f')](util[_0x753a('0x44')](_0x753a('0x45'),_0x5d0323[_0x753a('0x46')]),_0x753a('0x49'),_0x5d0323);};VoiceQueueReport['prototype']['emitVoiceQueueSummary']=function(_0x4fea6c,_0x29e0a4){if(_0x4fea6c[_0x753a('0x4a')]===_0x753a('0x4b')){var _0x19007f={'id':_0x4fea6c['id'],'name':_0x4fea6c[_0x753a('0x46')],'strategy':_0x4fea6c['strategy'],'answered':_0x4fea6c[_0x753a('0x4c')],'available':_0x4fea6c['available'],'loggedIn':_0x4fea6c['loggedIn'],'pTalking':_0x4fea6c[_0x753a('0x2d')],'sumBillable':_0x4fea6c[_0x753a('0x4d')],'sumDuration':_0x4fea6c[_0x753a('0x4e')],'sumHoldTime':_0x4fea6c[_0x753a('0x4f')]||0x0,'talking':_0x4fea6c['talking'],'total':_0x4fea6c[_0x753a('0x50')],'type':_0x4fea6c[_0x753a('0x4a')],'unmanaged':_0x4fea6c[_0x753a('0x51')],'abandoned':_0x4fea6c['abandoned'],'waiting':_0x4fea6c['waiting']};if(_0x4fea6c[_0x753a('0x52')]){_0x19007f[_0x753a('0x52')]={'id':_0x4fea6c[_0x753a('0x52')]['id'],'name':_0x4fea6c[_0x753a('0x52')]['name'],'active':_0x4fea6c[_0x753a('0x52')][_0x753a('0x53')],'callerid':_0x4fea6c['Trunk']['callerid']};}if(_0x4fea6c[_0x753a('0x54')]){_0x19007f[_0x753a('0x54')]={'id':_0x4fea6c[_0x753a('0x54')]['id'],'name':_0x4fea6c[_0x753a('0x54')][_0x753a('0x46')]};}var _0x185897=md5(JSON['stringify'](_0x19007f));if(_0x4fea6c['md5']!==_0x185897){_0x4fea6c['md5']=_0x185897;logger[_0x753a('0x40')](_0x753a('0x55')+_0x29e0a4+_0x753a('0x56'),util[_0x753a('0x37')](_0x19007f,{'showHidden':![],'depth':null}));this[_0x753a('0x3f')](util[_0x753a('0x44')](_0x753a('0x45'),_0x19007f[_0x753a('0x46')]),_0x753a('0x57'),_0x19007f);}}};VoiceQueueReport[_0x753a('0xb')]['isNotNull']=function(_0xee05e7){return _0xee05e7!==null&&!_[_0x753a('0x58')](_0xee05e7);};VoiceQueueReport[_0x753a('0xb')][_0x753a('0x29')]=function(){var _0x442dc1=this;setInterval(function(){_0x442dc1['clearZombieChannels']();ami[_0x753a('0x33')]({'action':'queues'})[_0x753a('0x59')](function(_0x2d9530){logger[_0x753a('0x35')](_0x753a('0x5a'),util[_0x753a('0x37')](_0x2d9530,{'showHidden':![],'depth':null}));});},0x2710);};VoiceQueueReport[_0x753a('0xb')][_0x753a('0x28')]=function(){var _0x35f615=this;setInterval(function(){if(_0x35f615[_0x753a('0x13')]){return ami[_0x753a('0x33')]({'action':_0x753a('0x15')})[_0x753a('0x5b')](function(_0x54eca2){_0x35f615[_0x753a('0x13')]=![];})[_0x753a('0x59')](function(_0x243233){logger[_0x753a('0x35')](_0x753a('0x5c'),util[_0x753a('0x37')](_0x243233,{'showHidden':![],'depth':null}));});}},0x3e8);};VoiceQueueReport['prototype'][_0x753a('0x5d')]=function(_0x4d978b){try{if(this['isNotNull'](_0x4d978b)&&this['isNotNull'](_0x4d978b['queue'])){logger[_0x753a('0x40')](_0x753a('0x5e'),util[_0x753a('0x37')](_0x4d978b,{'showHidden':![],'depth':null}));if(this[_0x753a('0x12')][_0x4d978b[_0x753a('0x5f')]]){logger['info'](_0x753a('0x60'),_0x4d978b[_0x753a('0x5f')]);var _0x4215b4=_[_0x753a('0x61')](this['channels'],_0x753a('0x5f'))[_0x4d978b['queue']]||0x0;var _0xc56eb=_0x4215b4-_0x4d978b['callers'];if(this[_0x753a('0x12')][_0x4d978b['queue']][_0x753a('0x2e')]!==_[_0x753a('0x62')](_0x4d978b['callers'])||this['voiceQueues'][_0x4d978b['queue']][_0x753a('0x63')]!==_[_0x753a('0x62')](_0x4d978b[_0x753a('0x64')])||this[_0x753a('0x12')][_0x4d978b[_0x753a('0x5f')]][_0x753a('0x65')]!==_[_0x753a('0x62')](_0x4d978b[_0x753a('0x65')])||this[_0x753a('0x12')][_0x4d978b[_0x753a('0x5f')]][_0x753a('0x66')]!==_0xc56eb){this[_0x753a('0x12')][_0x4d978b[_0x753a('0x5f')]]['waiting']=_[_0x753a('0x62')](_0x4d978b[_0x753a('0x67')]);this['voiceQueues'][_0x4d978b['queue']][_0x753a('0x63')]=_[_0x753a('0x62')](_0x4d978b['loggedin']);this[_0x753a('0x12')][_0x4d978b['queue']]['available']=_[_0x753a('0x62')](_0x4d978b[_0x753a('0x65')]);this[_0x753a('0x12')][_0x4d978b[_0x753a('0x5f')]]['talking']=_0xc56eb>0x0?_0xc56eb:0x0;this[_0x753a('0x12')][_0x4d978b[_0x753a('0x5f')]][_0x753a('0x66')]=this[_0x753a('0x12')][_0x4d978b['queue']][_0x753a('0x66')]>_['toNumber'](_0x4d978b[_0x753a('0x64')])?_[_0x753a('0x62')](_0x4d978b[_0x753a('0x64')]):this['voiceQueues'][_0x4d978b[_0x753a('0x5f')]][_0x753a('0x66')];this[_0x753a('0x68')](this[_0x753a('0x12')][_0x4d978b[_0x753a('0x5f')]],_0x753a('0x15'));}logger['debug'](_0x753a('0x69'),util['inspect'](this['voiceQueues'][_0x4d978b[_0x753a('0x5f')]],{'showHidden':![],'depth':null}));ami[_0x753a('0x3f')]('custom:queuesummary',this[_0x753a('0x12')][_0x4d978b[_0x753a('0x5f')]]);}}}catch(_0x37cce0){logger[_0x753a('0x35')](_0x753a('0x5c'),util[_0x753a('0x37')](_0x37cce0,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x753a('0xb')][_0x753a('0x6a')]=function(_0x1c93fb){logger[_0x753a('0x40')]('[voiceQueueReport][queuesummarycomplete]\x20event:',util['inspect'](_0x1c93fb,{'showHidden':![],'depth':null}));this['flagQueueSummary']=!![];};VoiceQueueReport[_0x753a('0xb')][_0x753a('0x18')]=function(_0x104250){try{if(this[_0x753a('0x6b')](_0x104250)){logger[_0x753a('0x40')](_0x753a('0x6c'),_0x104250[_0x753a('0x43')],util['inspect'](_0x104250,{'showHidden':![],'depth':null}));if(_[_0x753a('0x58')](this[_0x753a('0xe')][_0x104250[_0x753a('0x43')]])){this[_0x753a('0xe')][_0x104250[_0x753a('0x43')]]=[];this['channels'][_0x104250[_0x753a('0x43')]]={};}var _0x92b551=new QueueReport();_0x92b551[_0x753a('0x46')]=_0x104250['queue'];_0x92b551[_0x753a('0x4a')]=this['voiceQueues'][_0x92b551[_0x753a('0x46')]]&&this['voiceQueues'][_0x92b551[_0x753a('0x46')]][_0x753a('0x4a')]?this['voiceQueues'][_0x92b551[_0x753a('0x46')]]['type']||'inbound':_0x753a('0x4b');_0x92b551[_0x753a('0x5f')]=_0x104250['queue'];_0x92b551[_0x753a('0x6d')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss');_0x92b551[_0x753a('0x6e')]=_0x104250[_0x753a('0x6e')];_0x92b551[_0x753a('0x6f')]=_0x104250[_0x753a('0x6f')];_0x92b551[_0x753a('0x43')]=_0x104250[_0x753a('0x43')];logger['info'](_0x753a('0x70'),_0x92b551[_0x753a('0x46')],_0x92b551[_0x753a('0x4a')]);_[_0x753a('0x71')](_0x92b551,_[_0x753a('0x72')](_0x104250,_['keys'](_0x92b551)));this[_0x753a('0xe')][_0x104250[_0x753a('0x43')]][_0x753a('0x73')](_0x92b551);this['channels'][_0x104250['uniqueid']]=_0x92b551;this[_0x753a('0x74')](_0x92b551,_0x753a('0x17'));}}catch(_0x174506){logger[_0x753a('0x35')](_0x753a('0x6c'),_0x104250[_0x753a('0x43')],util[_0x753a('0x37')](_0x174506,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x753a('0xb')]['syncQueueCallerAbandon']=function(_0x503774){try{if(this[_0x753a('0x6b')](_0x503774)){logger[_0x753a('0x40')](_0x753a('0x75'),_0x503774['uniqueid'],util['inspect'](_0x503774,{'showHidden':![],'depth':null}));if(this[_0x753a('0xe')][_0x503774[_0x753a('0x43')]]){var _0x5771e3=_['last'](this[_0x753a('0xe')][_0x503774[_0x753a('0x43')]]);_0x5771e3[_0x753a('0x76')]=![];_0x5771e3[_0x753a('0x77')]=null;_0x5771e3[_0x753a('0x78')]=_0x503774[_0x753a('0x78')];_0x5771e3[_0x753a('0x79')]=_0x503774[_0x753a('0x79')];_0x5771e3['queuecallerabandon']=!![];_0x5771e3['queuecallerabandonAt']=moment()[_0x753a('0x44')](_0x753a('0x7a'));_0x5771e3[_0x753a('0x7b')]='ABANDONED';_0x5771e3[_0x753a('0x7c')]=null;logger[_0x753a('0x7d')](_0x753a('0x7e'),_0x5771e3['name'],_0x5771e3[_0x753a('0x4a')]);this[_0x753a('0x10')][_0x503774[_0x753a('0x43')]]=_0x5771e3;this[_0x753a('0x3d')](_0x5771e3,_0x753a('0x19'));}}}catch(_0x232044){logger['error']('[%s][voiceQueueReport][queuecallerabandon]',_0x503774['uniqueid'],util['inspect'](_0x232044,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x753a('0xb')][_0x753a('0x7f')]=function(_0x19117f){try{if(this[_0x753a('0x6b')](_0x19117f)){logger[_0x753a('0x40')](_0x753a('0x80'),_0x19117f[_0x753a('0x43')],util[_0x753a('0x37')](_0x19117f,{'showHidden':![],'depth':null}));if(this[_0x753a('0xe')][_0x19117f[_0x753a('0x43')]]){var _0x3cafeb=_[_0x753a('0x81')](this[_0x753a('0xe')][_0x19117f[_0x753a('0x43')]]);_0x3cafeb[_0x753a('0x82')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss');_0x3cafeb[_0x753a('0x83')]=_0x19117f['connectedlinenum'];_0x3cafeb['connectedlinename']=_0x19117f[_0x753a('0x84')];logger[_0x753a('0x7d')](_0x753a('0x85'),_0x3cafeb[_0x753a('0x46')],_0x3cafeb[_0x753a('0x4a')],_0x19117f[_0x753a('0x83')],_0x19117f[_0x753a('0x84')]);this['channels'][_0x19117f['uniqueid']]=_0x3cafeb;this['emitVoiceQueueChannelSave'](_0x3cafeb,_0x753a('0x1b'));}}}catch(_0x235961){logger[_0x753a('0x35')]('[%s][voiceQueueReport][queuecallerleave]',_0x19117f[_0x753a('0x43')],util[_0x753a('0x37')](_0x235961,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x753a('0xb')][_0x753a('0x86')]=function(_0x4dc038){try{if(this[_0x753a('0x6b')](_0x4dc038)){logger[_0x753a('0x40')](_0x753a('0x87'),_0x4dc038[_0x753a('0x43')],util[_0x753a('0x37')](_0x4dc038,{'showHidden':![],'depth':null}));if(this['queueReports'][_0x4dc038[_0x753a('0x43')]]){var _0x59ef13=_[_0x753a('0x81')](this[_0x753a('0xe')][_0x4dc038[_0x753a('0x43')]]);_0x59ef13[_0x753a('0x76')]=!![];_0x59ef13['queuecallerexitreason']=_0x753a('0x88');logger[_0x753a('0x7d')](_0x753a('0x89'),_0x59ef13[_0x753a('0x46')],_0x59ef13[_0x753a('0x4a')]);}}}catch(_0xb5bdac){logger[_0x753a('0x35')](_0x753a('0x87'),_0x4dc038[_0x753a('0x43')],util[_0x753a('0x37')](_0xb5bdac,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x753a('0xb')][_0x753a('0x1d')]=function(_0x46d8ba){try{if(this['isNotNull'](_0x46d8ba)){logger[_0x753a('0x40')]('[%s][voiceQueueReport][agentcomplete]',_0x46d8ba['uniqueid'],util[_0x753a('0x37')](_0x46d8ba,{'showHidden':![],'depth':null}));if(this[_0x753a('0xe')][_0x46d8ba[_0x753a('0x43')]]){var _0x2d03a5=_[_0x753a('0x81')](this[_0x753a('0xe')][_0x46d8ba[_0x753a('0x43')]]);_0x2d03a5[_0x753a('0x19')]=![];_0x2d03a5['queuecallerabandonAt']=null;_0x2d03a5[_0x753a('0x8a')]=!![];_0x2d03a5[_0x753a('0x7c')]=_0x46d8ba[_0x753a('0x8b')];_0x2d03a5[_0x753a('0x78')]=_0x46d8ba[_0x753a('0x78')];_0x2d03a5[_0x753a('0x76')]=!![];_0x2d03a5[_0x753a('0x8c')]=![];_0x2d03a5[_0x753a('0x8d')]=null;if(!_0x2d03a5['transfer']){if(_0x46d8ba[_0x753a('0x8e')]==_0x753a('0x8f')){_0x2d03a5[_0x753a('0x7b')]=_0x753a('0x90');logger['info']('[voiceQueueReport][agentcomplete]\x20name:%s\x20type:%s\x20queuecallerexitreason:COMPLETED',_0x2d03a5[_0x753a('0x46')],_0x2d03a5[_0x753a('0x4a')]);}else{if(_[_0x753a('0x91')](_0x46d8ba[_0x753a('0x92')][_0x753a('0x93')](),_0x753a('0x94'))){if(this['queueReports'][_0x46d8ba[_0x753a('0x95')]]){var _0x5ed275=_[_0x753a('0x81')](this['queueReports'][_0x46d8ba[_0x753a('0x95')]]);_0x5ed275[_0x753a('0x76')]=![];_0x5ed275[_0x753a('0x8c')]=!![];_0x5ed275[_0x753a('0x8d')]=moment(_0x2d03a5['queuecallerjoinAt'])[_0x753a('0x96')](_0x46d8ba['holdtime'],_0x753a('0x97'))[_0x753a('0x44')]('YYYY-MM-DD\x20HH:mm:ss');_0x5ed275['queuecallerexitreason']=_0x753a('0x98');_0x5ed275['transfer']=!![];_0x5ed275[_0x753a('0x99')]=_0x753a('0x9a');_0x5ed275[_0x753a('0x9b')]=_0x46d8ba[_0x753a('0x9c')];_0x5ed275[_0x753a('0x9d')]=_0x46d8ba[_0x753a('0x43')];logger[_0x753a('0x7d')]('[voiceQueueReport][agentcomplete]\x20name:%s\x20type:%s\x20queuecallerexitreason:FORWARDTRANSFER',_0x5ed275[_0x753a('0x46')],_0x5ed275[_0x753a('0x4a')]);var _0xc80b7a=this[_0x753a('0xe')][_0x46d8ba[_0x753a('0x95')]];this[_0x753a('0xe')][_0x46d8ba[_0x753a('0x95')]]=this[_0x753a('0xe')][_0x46d8ba['uniqueid']];this[_0x753a('0xe')][_0x46d8ba[_0x753a('0x43')]]=_0xc80b7a;}}else{_0x2d03a5[_0x753a('0x7b')]=_0x753a('0x9e')+_0x46d8ba[_0x753a('0x8e')][_0x753a('0x9f')]();logger['info'](_0x753a('0xa0'),_0x2d03a5[_0x753a('0x46')],_0x2d03a5[_0x753a('0x4a')],_0x2d03a5['queuecallerexitreason']);}}}this['channels'][_0x46d8ba[_0x753a('0x43')]]=_0x2d03a5;this['emitVoiceQueueChannelRemove'](_0x2d03a5,'agentcomplete');}}}catch(_0xfea190){logger['error'](_0x753a('0xa1'),_0x46d8ba['uniqueid'],util[_0x753a('0x37')](_0xfea190,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x753a('0xb')][_0x753a('0x1f')]=function(_0x1038a9){try{if(this[_0x753a('0x6b')](_0x1038a9)){logger[_0x753a('0x40')](_0x753a('0xa2'),_0x1038a9[_0x753a('0x43')],util[_0x753a('0x37')](_0x1038a9,{'showHidden':![],'depth':null}));this['addVariable'](_0x1038a9['uniqueid'],_[_0x753a('0xa3')](_0x1038a9[_0x753a('0xa4')])[0x0],_0x1038a9[_0x753a('0xa5')]);if(this[_0x753a('0xe')][_0x1038a9['uniqueid']]){var _0x45909a=_[_0x753a('0x81')](this[_0x753a('0xe')][_0x1038a9[_0x753a('0x43')]]);if(_0x45909a){if(this[_0x753a('0x6b')](_0x1038a9['variable'])&&this[_0x753a('0x6b')](_0x1038a9['variable'][_0x753a('0xa6')])){switch(_0x1038a9[_0x753a('0xa5')]){case _0x753a('0xa7'):_0x45909a[_0x753a('0x8c')]=![];_0x45909a[_0x753a('0x8d')]=null;break;case _0x753a('0xa8'):_0x45909a[_0x753a('0xa9')]=_0x753a('0xaa');_0x45909a[_0x753a('0x8c')]=!![];_0x45909a[_0x753a('0x8d')]=moment()[_0x753a('0x44')](_0x753a('0x7a'));_0x45909a[_0x753a('0x82')]=moment()['format'](_0x753a('0x7a'));logger[_0x753a('0x40')](_0x753a('0xab'),_0x1038a9[_0x753a('0x43')],util[_0x753a('0x37')](_0x45909a,{'showHidden':![],'depth':null}));ami[_0x753a('0x3f')](_0x753a('0xac'),_0x45909a);break;default:_0x45909a['queuecallerexit']=!![];_0x45909a[_0x753a('0x8d')]=moment()[_0x753a('0x44')](_0x753a('0x7a'));_0x45909a[_0x753a('0x82')]=moment()['format'](_0x753a('0x7a'));}_0x45909a['queuecallerabandon']=![];_0x45909a[_0x753a('0xad')]=null;_0x45909a[_0x753a('0x7b')]=_0x1038a9[_0x753a('0xa5')];this[_0x753a('0x10')][_0x1038a9[_0x753a('0x43')]]=_0x45909a;this[_0x753a('0x3d')](_0x45909a,'varset');}else if(this[_0x753a('0x6b')](_0x1038a9['variable'])&&this['isNotNull'](_0x1038a9['variable'][_0x753a('0xae')])){if(!_0x45909a['queuecallerabandon']){_0x45909a[_0x753a('0x8c')]=!![];_0x45909a[_0x753a('0x8d')]=moment()[_0x753a('0x44')]('YYYY-MM-DD\x20HH:mm:ss');_0x45909a[_0x753a('0x7b')]=_0x753a('0xaf');_0x45909a[_0x753a('0x82')]=moment()[_0x753a('0x44')](_0x753a('0x7a'));this[_0x753a('0x10')][_0x1038a9[_0x753a('0x43')]]=_0x45909a;}}logger[_0x753a('0x7d')](_0x753a('0xb0'),_0x1038a9[_0x753a('0x43')],_0x45909a['name'],_0x45909a[_0x753a('0x4a')],_[_0x753a('0xa3')](_0x1038a9['variable'])[0x0],_0x1038a9[_0x753a('0xa5')]);_0x45909a[_0x753a('0x39')]=this[_0x753a('0x39')][_0x1038a9[_0x753a('0x43')]];}}}}catch(_0x65366e){logger[_0x753a('0x35')](_0x753a('0xa2'),_0x1038a9[_0x753a('0x43')],util[_0x753a('0x37')](_0x65366e,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x753a('0xb')][_0x753a('0xb1')]=function(_0x2ae705,_0x41661a,_0x3fcb8e){var _0x5d0b03=[_0x753a('0xb2'),_0x753a('0xb3'),'rtpaudioqosjitter',_0x753a('0xb4'),_0x753a('0xb5'),_0x753a('0xb6'),_0x753a('0xb7'),_0x753a('0xb8'),_0x753a('0xb9'),_0x753a('0xba'),_0x753a('0xbb'),_0x753a('0xbc'),_0x753a('0xbd'),_0x753a('0xbe'),_0x753a('0xbf'),_0x753a('0xc0'),'membername','memberpenalty',_0x753a('0xc1')];if(!_[_0x753a('0x32')](_0x41661a)&&!_['includes'](_0x5d0b03,_0x41661a)){if(_[_0x753a('0x58')](this[_0x753a('0x39')][_0x2ae705])){this['variables'][_0x2ae705]={};}this['variables'][_0x2ae705][_0x41661a]=_0x3fcb8e;}};VoiceQueueReport['prototype'][_0x753a('0xc2')]=function(_0x112c1f){try{if(this[_0x753a('0x6b')](_0x112c1f)){logger[_0x753a('0x40')](_0x753a('0xc3'),_0x112c1f[_0x753a('0x43')],util['inspect'](_0x112c1f,{'showHidden':![],'depth':null}));if(this['queueReports'][_0x112c1f['uniqueid']]){for(var _0x400d94=0x0,_0x13bc34={};_0x400d94<this[_0x753a('0xe')][_0x112c1f[_0x753a('0x43')]]['length'];_0x400d94+=0x1){_0x13bc34=this[_0x753a('0xe')][_0x112c1f[_0x753a('0x43')]][_0x400d94];if(this[_0x753a('0x12')][_0x13bc34[_0x753a('0x5f')]]){if(_0x13bc34['queuecallerexit']&&_0x13bc34['transfer']!=!![]){this['voiceQueues'][_0x13bc34['queue']][_0x753a('0x51')]+=0x1;}if(_0x13bc34[_0x753a('0x19')]){this[_0x753a('0x12')][_0x13bc34[_0x753a('0x5f')]][_0x753a('0xc4')]+=0x1;}this['voiceQueues'][_0x13bc34[_0x753a('0x5f')]][_0x753a('0x4f')]+=moment(_0x13bc34[_0x753a('0x82')])['diff'](_0x13bc34[_0x753a('0x6d')],_0x753a('0x97'))||0x0;if(_0x400d94===this[_0x753a('0xe')][_0x112c1f[_0x753a('0x43')]][_0x753a('0xc5')]-0x1){this['voiceQueues'][_0x13bc34[_0x753a('0x5f')]][_0x753a('0x4e')]+=moment()[_0x753a('0xc6')](0x0)[_0x753a('0xc7')](_0x13bc34[_0x753a('0x6d')],_0x753a('0x97'));this[_0x753a('0x12')][_0x13bc34[_0x753a('0x5f')]]['total']+=0x1;if(_0x13bc34['queuecallercomplete']){this['voiceQueues'][_0x13bc34[_0x753a('0x5f')]][_0x753a('0x4c')]+=0x1;this[_0x753a('0x12')][_0x13bc34['queue']][_0x753a('0x4d')]+=moment()[_0x753a('0xc6')](0x0)[_0x753a('0xc7')](_0x13bc34['queuecallerleaveAt'],_0x753a('0x97'));_0x13bc34[_0x753a('0x77')]=moment()[_0x753a('0x44')](_0x753a('0x7a'));_0x13bc34[_0x753a('0x8c')]=![];_0x13bc34['queuecallerexitAt']=null;}if(_0x13bc34[_0x753a('0x8c')]&&_0x13bc34['transfer']!=!![]){_0x13bc34['lastevent']=_0x753a('0x51');logger[_0x753a('0x40')](_0x753a('0xc8'),_0x112c1f[_0x753a('0x43')],util[_0x753a('0x37')](_0x13bc34,{'showHidden':![],'depth':null}));ami[_0x753a('0x3f')]('custom:queuecallerunmanaged',_0x13bc34);}if(_0x13bc34[_0x753a('0x19')]){_0x13bc34[_0x753a('0xa9')]=_0x753a('0xc4');logger['debug']('[%s][voiceQueueReport][hangup]\x20sending\x20queuecallerabandon\x20event:',_0x112c1f[_0x753a('0x43')],util[_0x753a('0x37')](_0x13bc34,{'showHidden':![],'depth':null}));ami[_0x753a('0x3f')](_0x753a('0xc9'),_0x13bc34);}}else{this[_0x753a('0x12')][_0x13bc34[_0x753a('0x5f')]][_0x753a('0x4e')]+=this[_0x753a('0x12')][_0x13bc34[_0x753a('0x5f')]]['sumHoldTime'];}logger[_0x753a('0x7d')]('[%s][voiceQueueReport][hangup]\x20name:%s\x20type:%s\x20reason:%s',_0x112c1f['uniqueid'],_0x13bc34[_0x753a('0x46')],_0x13bc34[_0x753a('0x4a')],_0x112c1f[_0x753a('0xca')]);this[_0x753a('0x10')][_0x112c1f[_0x753a('0x43')]]=_0x13bc34;this[_0x753a('0x3d')](_0x13bc34,'hangup');this[_0x753a('0x68')](this[_0x753a('0x12')][_0x13bc34[_0x753a('0x5f')]],_0x753a('0xcb'));}}logger['debug'](_0x753a('0xcc'),_0x112c1f[_0x753a('0x43')],util['inspect'](this[_0x753a('0xe')][_0x112c1f[_0x753a('0x43')]],{'showHidden':![],'depth':null}));ami['emit'](_0x753a('0xcd'),this[_0x753a('0xe')][_0x112c1f[_0x753a('0x43')]]);delete this[_0x753a('0xe')][_0x112c1f[_0x753a('0x43')]];delete this[_0x753a('0x10')][_0x112c1f[_0x753a('0x43')]];}if(this[_0x753a('0x39')][_0x112c1f[_0x753a('0x43')]]){delete this[_0x753a('0x39')][_0x112c1f['uniqueid']];}}}catch(_0x15d3c2){logger[_0x753a('0x35')](_0x753a('0xc3'),_0x112c1f[_0x753a('0x43')],util[_0x753a('0x37')](_0x15d3c2,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x753a('0xb')][_0x753a('0x25')]=function(_0x2ca39b){try{if(this['isNotNull'](_0x2ca39b)){logger[_0x753a('0x40')](_0x753a('0xce'),_0x2ca39b[_0x753a('0x43')],util[_0x753a('0x37')](_0x2ca39b,{'showHidden':![],'depth':null}));var _0x4ee746;if(this['queueReports'][_0x2ca39b[_0x753a('0xcf')]]){_0x4ee746=_[_0x753a('0x81')](this[_0x753a('0xe')][_0x2ca39b[_0x753a('0xcf')]]);_0x4ee746[_0x753a('0x9b')]=_0x2ca39b[_0x753a('0xd0')];_0x4ee746[_0x753a('0x9d')]=_0x2ca39b[_0x753a('0xd1')];_0x4ee746[_0x753a('0x7b')]=_0x753a('0xd2');_0x4ee746[_0x753a('0x8f')]=!![];_0x4ee746[_0x753a('0x99')]=_0x753a('0xd3');if(this[_0x753a('0xe')][_0x2ca39b[_0x753a('0xd1')]]){var _0x5ea0b2=this[_0x753a('0xe')][_0x2ca39b['secondtransfereruniqueid']];this['queueReports'][_0x2ca39b[_0x753a('0xd1')]]=this['queueReports'][_0x2ca39b[_0x753a('0xcf')]];this['queueReports'][_0x2ca39b[_0x753a('0xcf')]]=_0x5ea0b2;var _0xb297d2=_[_0x753a('0x81')](this[_0x753a('0xe')][_0x2ca39b[_0x753a('0xcf')]]);_0xb297d2['switch']=!![];}logger['info'](_0x753a('0xd4'),_0x2ca39b[_0x753a('0x43')],_0x4ee746[_0x753a('0x46')],_0x4ee746[_0x753a('0x4a')],_0x4ee746[_0x753a('0x9b')],_0x4ee746['transferuniqueid']);}else if(this['queueReports'][_0x2ca39b[_0x753a('0xd5')]]){_0x4ee746=_[_0x753a('0x81')](this[_0x753a('0xe')][_0x2ca39b[_0x753a('0xd5')]]);_0x4ee746[_0x753a('0x9b')]=_0x2ca39b[_0x753a('0xd6')];_0x4ee746[_0x753a('0x9d')]=_0x2ca39b['origtransfereruniqueid'];_0x4ee746[_0x753a('0x7b')]=_0x753a('0xd2');_0x4ee746[_0x753a('0x8f')]=!![];_0x4ee746['transfertype']='ATTENDED';if(this[_0x753a('0xe')][_0x2ca39b['origtransfereruniqueid']]){var _0x5ea0b2=this[_0x753a('0xe')][_0x2ca39b[_0x753a('0xd7')]];this[_0x753a('0xe')][_0x2ca39b[_0x753a('0xd7')]]=this[_0x753a('0xe')][_0x2ca39b['transfertargetuniqueid']];this[_0x753a('0xe')][_0x2ca39b[_0x753a('0xd5')]]=_0x5ea0b2;var _0xb297d2=_[_0x753a('0x81')](this[_0x753a('0xe')][_0x2ca39b['transfertargetuniqueid']]);_0xb297d2['switch']=!![];}logger[_0x753a('0x7d')](_0x753a('0xd4'),_0x2ca39b[_0x753a('0x43')],_0x4ee746[_0x753a('0x46')],_0x4ee746['type'],_0x4ee746[_0x753a('0x9b')],_0x4ee746[_0x753a('0x9d')]);}}}catch(_0x8d1cd9){logger[_0x753a('0x35')](_0x753a('0xce'),_0x2ca39b[_0x753a('0x43')],util[_0x753a('0x37')](_0x8d1cd9,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x753a('0xb')]['syncBlindTransfer']=function(_0x14277e){try{if(this['isNotNull'](_0x14277e)){logger[_0x753a('0x40')](_0x753a('0xd8'),_0x14277e['uniqueid'],util['inspect'](_0x14277e,{'showHidden':![],'depth':null}));if(this[_0x753a('0xe')][_0x14277e['transfereeuniqueid']]){var _0xd06a13=_[_0x753a('0x81')](this[_0x753a('0xe')][_0x14277e[_0x753a('0xcf')]]);_0xd06a13[_0x753a('0x7b')]=_0x753a('0xd9');_0xd06a13[_0x753a('0x8f')]=!![];_0xd06a13[_0x753a('0x99')]=_0x753a('0xda');_0xd06a13[_0x753a('0x9b')]=_0x14277e[_0x753a('0xdb')];_0xd06a13[_0x753a('0x9d')]=_0x14277e[_0x753a('0xcf')];logger[_0x753a('0x7d')](_0x753a('0xdc'),_0x14277e['uniqueid'],_0xd06a13[_0x753a('0x46')],_0xd06a13[_0x753a('0x4a')],_0xd06a13[_0x753a('0x9b')],_0xd06a13[_0x753a('0x9d')]);this[_0x753a('0xc2')]({'event':'BlindTransfer','uniqueid':_0x14277e[_0x753a('0xcf')],'context':_0x14277e[_0x753a('0xdd')],'channel':_0x14277e[_0x753a('0xde')]});}}}catch(_0x3d7c8e){logger[_0x753a('0x35')](_0x753a('0xd8'),_0x14277e['uniqueid'],util[_0x753a('0x37')](_0x3d7c8e,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x753a('0xb')][_0x753a('0x22')]=function(_0xbe7386){try{if(this[_0x753a('0x6b')](_0xbe7386)){logger[_0x753a('0x40')](_0x753a('0xdf'),_0xbe7386['uniqueid'],util[_0x753a('0x37')](_0xbe7386,{'showHidden':![],'depth':null}));if(this[_0x753a('0xe')][_0xbe7386[_0x753a('0x43')]]){var _0x6587a8=_[_0x753a('0x81')](this[_0x753a('0xe')][_0xbe7386['uniqueid']]);if(!_['isNil'](_0x6587a8[_0x753a('0x82')])){_0x6587a8['mohstarttime']=moment()[_0x753a('0x44')]('YYYY-MM-DD\x20HH:mm:ss');logger['info'](_0x753a('0xe0'),_0xbe7386['uniqueid'],_0x6587a8['mohstarttime']);}}}}catch(_0x11bfee){logger['error']('[%s][voiceQueueReport][musiconholdstart]',_0xbe7386[_0x753a('0x43')],util['inspect'](_0x11bfee,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x753a('0xb')][_0x753a('0x23')]=function(_0x3cf0eb){try{if(this[_0x753a('0x6b')](_0x3cf0eb)){logger[_0x753a('0x40')](_0x753a('0xe1'),_0x3cf0eb['uniqueid'],util[_0x753a('0x37')](_0x3cf0eb,{'showHidden':![],'depth':null}));if(this[_0x753a('0xe')][_0x3cf0eb[_0x753a('0x43')]]){var _0x2b4ad6=_['last'](this['queueReports'][_0x3cf0eb[_0x753a('0x43')]]);if(!_['isNil'](_0x2b4ad6[_0x753a('0xe2')])){_0x2b4ad6['mohtime']+=moment()['milliseconds'](0x0)[_0x753a('0xc7')](_0x2b4ad6[_0x753a('0xe2')],'seconds');logger['info'](_0x753a('0xe3'),_0x3cf0eb[_0x753a('0x43')],_0x2b4ad6['mohtime']);delete _0x2b4ad6[_0x753a('0xe2')];}}}}catch(_0xde3b6a){logger['error'](_0x753a('0xe1'),_0x3cf0eb[_0x753a('0x43')],util[_0x753a('0x37')](_0xde3b6a,{'showHidden':![],'depth':null}));}};module[_0x753a('0xe4')]=VoiceQueueReport;
\ No newline at end of file