Built motion from commit (unavailable).|2.5.14
[motion2.git] / server / services / ami / report / voiceQueueReport.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x7269=['[voiceQueueReport][queuesummary]','syncQueueSummary','isNotNull','queue','[voiceQueueReport][queuesummary]\x20event:','[voiceQueueReport][queuesummary]\x20name:%s','countBy','callers','toNumber','loggedIn','loggedin','[voiceQueueReport][queuesummarycomplete]\x20event:','[%s][voiceQueueReport][queuecallerjoin]','isUndefined','queuecallerjoinAt','YYYY-MM-DD\x20HH:mm:ss','position','count','info','[voiceQueueReport][queuecallerjoin]\x20name:%s\x20type:%s','merge','pick','keys','push','[%s][voiceQueueReport][queuecallerabandon]','last','queuecallercomplete','holdtime','originalposition','queuecallerexitreason','lastAssignedTo','[voiceQueueReport][queuecallerabandon]\x20name:%s\x20type:%s','[%s][voiceQueueReport][queuecallerleave]','queuecallerleaveAt','connectedlinenum','connectedlinename','[voiceQueueReport][queuecallerleave]\x20name:%s\x20type:%s\x20connectedlinenum:%s\x20connectedlinename:%s','[%s][voiceQueueReport][agentconnect]','[voiceQueueReport][agentconnect]\x20name:%s\x20type:%s\x20queuecallerexitreason:COMPLETEDBYAGENT','[%s][voiceQueueReport][agentcomplete]','queuecallerabandonAt','membername','queuecallerexit','queuecallerexitAt','reason','transfer','COMPLETED','[voiceQueueReport][agentcomplete]\x20name:%s\x20type:%s\x20queuecallerexitreason:COMPLETED','startsWith','local/','linkedid','add','seconds','FORWARDTRANSFER','transfertype','transferexten','destexten','transferuniqueid','[voiceQueueReport][agentcomplete]\x20name:%s\x20type:%s\x20queuecallerexitreason:FORWARDTRANSFER','toUpperCase','[voiceQueueReport][agentcomplete]\x20name:%s\x20type:%s\x20queuecallerexitreason:%s','agentcomplete','syncVarSet','addVariable','value','variable','queuestatus','TIMEOUT','lastevent','[%s][voiceQueueReport][varset]\x20sending\x20timeout\x20event:','custom:timeout','EXITWITHKEY','rtpaudioqosbridged','rtpaudioqosjitterbridged','rtpaudioqoslossbridged','rtpaudioqosrttbridged','sipcallid','sipuri','bridgepeer','bridgepvtcallid','membercalls','memberdynamic','memberinterface','memberlastcall','diff','length','milliseconds','queuecallercompleteAt','[%s][voiceQueueReport][hangup]\x20sending\x20queuecallerabandon\x20event:','custom:queuecallerabandon','[%s][voiceQueueReport][hangup]\x20name:%s\x20type:%s\x20reason:%s','cause-txt','[%s][voiceQueueReport][hangup]\x20sending\x20voiceQueueReport\x20event:','custom:voiceQueueReport','[%s][voiceQueueReport][hangup]','[%s][voiceQueueReport][attendedtransfer]','transfereeuniqueid','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','transfererchannel','[%s][voiceQueueReport][musiconholdstart]','isNil','mohstarttime','[%s][voiceQueueReport][musiconholdstart]\x20mohstarttime:%s','[%s][voiceQueueReport][musiconholdstop]','mohtime','[%s][voiceQueueReport][musiconholdstop]\x20mohtime:%s','exports','lodash','moment','util','../../../config/environment','../../../config/logger','../ami','../model/queueReport','redis','defaults','localhost','socket.io-emitter','prototype','tail','finally','sequence','queueReports','agents','channels','queueChannels','voiceQueues','flagQueueSummary','variables','queuesummary','bind','queuesummarycomplete','syncQueueSummaryComplete','syncQueueCallerJoin','queuecallerabandon','syncQueueCallerAbandon','queuecallerleave','syncQueueCallerLeave','syncAgentComplete','agentconnect','syncAgentConnect','varset','hangup','syncHangup','syncFullyBooted','syncMusicOnHoldStart','musiconholdstop','syncMusicOnHoldStop','attendedtransfer','syncAttendedTransfer','blindtransfer','loopQueueSummary','loopQueueShow','isEmpty','hasOwnProperty','originated','talking','pTalking','waiting','unlockRR','clearZombieChannels','switch','Action','status','channel','message','[%s][voiceQueueReport][checkChannel]','error','[%s][voiceQueueReport][checkQueueReport]','inspect','[FullyBooted]\x20clear\x20realtime','clearQueueReport','campaigns','emitVoiceQueueChannelRemove','clearqueuereport','emit','emitVoiceQueueChannelSave','debug','[%s][voiceQueueReport][',']\x20sending\x20voice_queue_channel:save\x20event:','voice:queue:%s','name','voice_queue_channel:save',']\x20sending\x20voice_queue_channel:remove\x20event:','uniqueid','voice_queue_channel:remove','emitVoiceQueueSummary','type','strategy','answered','available','sumBillable','sumDuration','sumHoldTime','total','unmanaged','abandoned','Trunk','active','Interval','stringify','md5','[voiceQueueReport][',']\x20sending\x20voice_queue:save\x20event:','format','voice_queue:save','queues','then','catch'];(function(_0x3eb630,_0x552586){var _0x1b840d=function(_0x2594a8){while(--_0x2594a8){_0x3eb630['push'](_0x3eb630['shift']());}};_0x1b840d(++_0x552586);}(_0x7269,0x76));var _0x9726=function(_0x2d30e1,_0x12d421){_0x2d30e1=_0x2d30e1-0x0;var _0x176f29=_0x7269[_0x2d30e1];return _0x176f29;};'use strict';var _=require(_0x9726('0x0'));var moment=require(_0x9726('0x1'));var util=require(_0x9726('0x2'));var md5=require('md5');var Redis=require('ioredis');var config=require(_0x9726('0x3'));var logger=require(_0x9726('0x4'))('ami');var ami=require(_0x9726('0x5'));var QueueReport=require(_0x9726('0x6'));config[_0x9726('0x7')]=_[_0x9726('0x8')](config[_0x9726('0x7')],{'host':_0x9726('0x9'),'port':0x18eb});var io=require(_0x9726('0xa'))(new Redis(config[_0x9726('0x7')]));var Sequence=function(){};Sequence[_0x9726('0xb')]['enqueue']=function(_0xcbdb72){this['tail']=this[_0x9726('0xc')]?this[_0x9726('0xc')][_0x9726('0xd')](_0xcbdb72):_0xcbdb72();};function VoiceQueueReport(_0x5b56ac){this[_0x9726('0xe')]=new Sequence();this[_0x9726('0xf')]={};this[_0x9726('0x10')]=_0x5b56ac['agents'];this[_0x9726('0x11')]=_0x5b56ac[_0x9726('0x12')];this[_0x9726('0x13')]=_0x5b56ac[_0x9726('0x13')];this[_0x9726('0x14')]=!![];this['campaigns']=_0x5b56ac['campaigns'];this[_0x9726('0x15')]={};ami['on'](_0x9726('0x16'),this['syncQueueSummary'][_0x9726('0x17')](this));ami['on'](_0x9726('0x18'),this[_0x9726('0x19')][_0x9726('0x17')](this));ami['on']('queuecallerjoin',this[_0x9726('0x1a')][_0x9726('0x17')](this));ami['on'](_0x9726('0x1b'),this[_0x9726('0x1c')][_0x9726('0x17')](this));ami['on'](_0x9726('0x1d'),this[_0x9726('0x1e')][_0x9726('0x17')](this));ami['on']('agentcomplete',this[_0x9726('0x1f')]['bind'](this));ami['on'](_0x9726('0x20'),this[_0x9726('0x21')][_0x9726('0x17')](this));ami['on'](_0x9726('0x22'),this['syncVarSet'][_0x9726('0x17')](this));ami['on'](_0x9726('0x23'),this[_0x9726('0x24')][_0x9726('0x17')](this));ami['on']('fullybooted',this[_0x9726('0x25')][_0x9726('0x17')](this));ami['on']('musiconholdstart',this[_0x9726('0x26')][_0x9726('0x17')](this));ami['on'](_0x9726('0x27'),this[_0x9726('0x28')]['bind'](this));ami['on'](_0x9726('0x29'),this[_0x9726('0x2a')][_0x9726('0x17')](this));ami['on'](_0x9726('0x2b'),this['syncBlindTransfer'][_0x9726('0x17')](this));this[_0x9726('0x2c')]();this[_0x9726('0x2d')]();}function clearChannels(_0x39e8f6){if(!_[_0x9726('0x2e')](_0x39e8f6)){for(var _0x2d19e9 in _0x39e8f6){if(_0x39e8f6[_0x9726('0x2f')](_0x2d19e9)){delete _0x39e8f6[_0x2d19e9];}}}}function clearCampaigns(_0x13ccae){if(!_[_0x9726('0x2e')](_0x13ccae)){for(var _0x48b018 in _0x13ccae){if(_0x13ccae[_0x9726('0x2f')](_0x48b018)){_0x13ccae[_0x48b018]['originated']=0x0;}}}}function clearVoiceQueues(_0xe74b18){if(!_[_0x9726('0x2e')](_0xe74b18)){for(var _0xe65804 in _0xe74b18){if(_0xe74b18[_0x9726('0x2f')](_0xe65804)){_0xe74b18[_0xe65804][_0x9726('0x30')]=0x0;_0xe74b18[_0xe65804][_0x9726('0x31')]=0x0;_0xe74b18[_0xe65804][_0x9726('0x32')]=0x0;_0xe74b18[_0xe65804][_0x9726('0x33')]=0x0;_0xe74b18[_0xe65804]['queueStatusComplete']=!![];}}}}function clearAgentBooked(_0x5cc55b){if(!_['isEmpty'](_0x5cc55b)){for(var _0x79ea9 in _0x5cc55b){if(_0x5cc55b[_0x9726('0x2f')](_0x79ea9)){_0x5cc55b[_0x79ea9][_0x9726('0x34')]=!![];}}}}VoiceQueueReport[_0x9726('0xb')][_0x9726('0x35')]=function(){var _0x5f1a35=this;for(var _0xebbd2d in this[_0x9726('0x11')]){if(this['channels'][_0x9726('0x2f')](_0xebbd2d)&&!this['channels'][_0xebbd2d][_0x9726('0x36')]){this[_0x9726('0xe')]['enqueue'](function(){if(!_['isNil'](_0x5f1a35[_0x9726('0x11')][_0xebbd2d])){return ami[_0x9726('0x37')]({'action':_0x9726('0x38'),'channel':_0x5f1a35[_0x9726('0x11')][_0xebbd2d][_0x9726('0x39')]})['catch'](function(_0xbe9153){if(_0xbe9153[_0x9726('0x3a')]==='No\x20such\x20channel'){setTimeout(function(){if(_0x5f1a35['channels'][_0xebbd2d]){delete _0x5f1a35[_0x9726('0x11')][_0xebbd2d];logger['error'](_0x9726('0x3b'),_0xebbd2d,util['inspect'](_0xbe9153,{'showHidden':![],'depth':null}));}if(_0x5f1a35['queueReports'][_0xebbd2d]){delete _0x5f1a35[_0x9726('0xf')][_0xebbd2d];logger[_0x9726('0x3c')](_0x9726('0x3d'),_0xebbd2d,util[_0x9726('0x3e')](_0xbe9153,{'showHidden':![],'depth':null}));}if(_0x5f1a35[_0x9726('0x15')][_0xebbd2d]){delete _0x5f1a35[_0x9726('0x15')][_0xebbd2d];logger[_0x9726('0x3c')]('[%s][voiceQueueReport][checkVariables]',_0xebbd2d,util['inspect'](_0xbe9153,{'showHidden':![],'depth':null}));}},0x1f40);}});}});}}};VoiceQueueReport['prototype'][_0x9726('0x25')]=function(){logger[_0x9726('0x3c')](_0x9726('0x3f'));clearChannels(this['channels']);this[_0x9726('0x40')](this[_0x9726('0xf')]);clearAgentBooked(this['agents']);clearVoiceQueues(this[_0x9726('0x13')]);clearCampaigns(this[_0x9726('0x41')]);};VoiceQueueReport[_0x9726('0xb')][_0x9726('0x40')]=function(_0x273145){var _0x17c157=this;if(!_[_0x9726('0x2e')](_0x273145)){for(var _0x50f3f0 in _0x273145){if(_0x273145[_0x9726('0x2f')](_0x50f3f0)){_0x17c157[_0x9726('0x42')](_0x273145[_0x50f3f0],_0x9726('0x43'));delete _0x273145[_0x50f3f0];}}}};VoiceQueueReport[_0x9726('0xb')][_0x9726('0x44')]=function(_0x5f1740,_0x12a9ef,_0x11020c){io['to'](_0x5f1740)[_0x9726('0x44')](_0x12a9ef,_0x11020c);};VoiceQueueReport['prototype'][_0x9726('0x45')]=function(_0x2dba54,_0x21ee67){logger[_0x9726('0x46')](_0x9726('0x47')+_0x21ee67+_0x9726('0x48'),_0x2dba54['uniqueid'],util[_0x9726('0x3e')](_0x2dba54,{'showHidden':![],'depth':null}));this[_0x9726('0x44')](util['format'](_0x9726('0x49'),_0x2dba54[_0x9726('0x4a')]),_0x9726('0x4b'),_0x2dba54);};VoiceQueueReport[_0x9726('0xb')][_0x9726('0x42')]=function(_0x3895ca,_0x3bc83b){logger[_0x9726('0x46')](_0x9726('0x47')+_0x3bc83b+_0x9726('0x4c'),_0x3895ca[_0x9726('0x4d')],util[_0x9726('0x3e')](_0x3895ca,{'showHidden':![],'depth':null}));this['emit'](util['format'](_0x9726('0x49'),_0x3895ca[_0x9726('0x4a')]),_0x9726('0x4e'),_0x3895ca);};VoiceQueueReport[_0x9726('0xb')][_0x9726('0x4f')]=function(_0xfeb030,_0x326700){if(_0xfeb030[_0x9726('0x50')]==='inbound'){var _0x43ecd6={'id':_0xfeb030['id'],'name':_0xfeb030['name'],'strategy':_0xfeb030[_0x9726('0x51')],'answered':_0xfeb030[_0x9726('0x52')],'available':_0xfeb030[_0x9726('0x53')],'loggedIn':_0xfeb030['loggedIn'],'pTalking':_0xfeb030[_0x9726('0x32')],'sumBillable':_0xfeb030[_0x9726('0x54')],'sumDuration':_0xfeb030[_0x9726('0x55')],'sumHoldTime':_0xfeb030[_0x9726('0x56')]||0x0,'talking':_0xfeb030[_0x9726('0x31')],'total':_0xfeb030[_0x9726('0x57')],'type':_0xfeb030[_0x9726('0x50')],'unmanaged':_0xfeb030[_0x9726('0x58')],'abandoned':_0xfeb030[_0x9726('0x59')],'waiting':_0xfeb030[_0x9726('0x33')]};if(_0xfeb030[_0x9726('0x5a')]){_0x43ecd6['Trunk']={'id':_0xfeb030['Trunk']['id'],'name':_0xfeb030[_0x9726('0x5a')][_0x9726('0x4a')],'active':_0xfeb030[_0x9726('0x5a')][_0x9726('0x5b')],'callerid':_0xfeb030['Trunk']['callerid']};}if(_0xfeb030[_0x9726('0x5c')]){_0x43ecd6[_0x9726('0x5c')]={'id':_0xfeb030['Interval']['id'],'name':_0xfeb030[_0x9726('0x5c')][_0x9726('0x4a')]};}var _0x393106=md5(JSON[_0x9726('0x5d')](_0x43ecd6));if(_0xfeb030[_0x9726('0x5e')]!==_0x393106){_0xfeb030[_0x9726('0x5e')]=_0x393106;logger[_0x9726('0x46')](_0x9726('0x5f')+_0x326700+_0x9726('0x60'),util['inspect'](_0x43ecd6,{'showHidden':![],'depth':null}));this[_0x9726('0x44')](util[_0x9726('0x61')](_0x9726('0x49'),_0x43ecd6[_0x9726('0x4a')]),_0x9726('0x62'),_0x43ecd6);}}};VoiceQueueReport[_0x9726('0xb')]['isNotNull']=function(_0x14af0b){return _0x14af0b!==null&&!_['isUndefined'](_0x14af0b);};VoiceQueueReport[_0x9726('0xb')][_0x9726('0x2d')]=function(){var _0x551cc8=this;setInterval(function(){_0x551cc8[_0x9726('0x35')]();ami[_0x9726('0x37')]({'action':_0x9726('0x63')})['catch'](function(_0x3c7756){logger[_0x9726('0x3c')]('[voiceQueueReport][queues]',util[_0x9726('0x3e')](_0x3c7756,{'showHidden':![],'depth':null}));});},0x2710);};VoiceQueueReport[_0x9726('0xb')][_0x9726('0x2c')]=function(){var _0x35728d=this;setInterval(function(){if(_0x35728d[_0x9726('0x14')]){return ami['Action']({'action':_0x9726('0x16')})[_0x9726('0x64')](function(_0x3be245){_0x35728d[_0x9726('0x14')]=![];})[_0x9726('0x65')](function(_0x26f27e){logger[_0x9726('0x3c')](_0x9726('0x66'),util[_0x9726('0x3e')](_0x26f27e,{'showHidden':![],'depth':null}));});}},0x3e8);};VoiceQueueReport['prototype'][_0x9726('0x67')]=function(_0x97f9f7){try{if(this[_0x9726('0x68')](_0x97f9f7)&&this[_0x9726('0x68')](_0x97f9f7[_0x9726('0x69')])){logger[_0x9726('0x46')](_0x9726('0x6a'),util['inspect'](_0x97f9f7,{'showHidden':![],'depth':null}));if(this[_0x9726('0x13')][_0x97f9f7['queue']]){logger['info'](_0x9726('0x6b'),_0x97f9f7['queue']);var _0x5a3135=_[_0x9726('0x6c')](this['channels'],_0x9726('0x69'))[_0x97f9f7['queue']]||0x0;var _0x299710=_0x5a3135-_0x97f9f7[_0x9726('0x6d')];if(this['voiceQueues'][_0x97f9f7[_0x9726('0x69')]][_0x9726('0x33')]!==_[_0x9726('0x6e')](_0x97f9f7[_0x9726('0x6d')])||this[_0x9726('0x13')][_0x97f9f7[_0x9726('0x69')]][_0x9726('0x6f')]!==_[_0x9726('0x6e')](_0x97f9f7[_0x9726('0x70')])||this[_0x9726('0x13')][_0x97f9f7['queue']]['available']!==_[_0x9726('0x6e')](_0x97f9f7['available'])||this[_0x9726('0x13')][_0x97f9f7[_0x9726('0x69')]]['talking']!==_0x299710){this[_0x9726('0x13')][_0x97f9f7[_0x9726('0x69')]]['waiting']=_['toNumber'](_0x97f9f7[_0x9726('0x6d')]);this['voiceQueues'][_0x97f9f7[_0x9726('0x69')]][_0x9726('0x6f')]=_[_0x9726('0x6e')](_0x97f9f7[_0x9726('0x70')]);this[_0x9726('0x13')][_0x97f9f7[_0x9726('0x69')]][_0x9726('0x53')]=_[_0x9726('0x6e')](_0x97f9f7['available']);this['voiceQueues'][_0x97f9f7['queue']][_0x9726('0x31')]=_0x299710>0x0?_0x299710:0x0;this['voiceQueues'][_0x97f9f7['queue']][_0x9726('0x31')]=this['voiceQueues'][_0x97f9f7[_0x9726('0x69')]][_0x9726('0x31')]>_[_0x9726('0x6e')](_0x97f9f7['loggedin'])?_[_0x9726('0x6e')](_0x97f9f7[_0x9726('0x70')]):this[_0x9726('0x13')][_0x97f9f7[_0x9726('0x69')]][_0x9726('0x31')];this[_0x9726('0x4f')](this['voiceQueues'][_0x97f9f7[_0x9726('0x69')]],_0x9726('0x16'));}logger[_0x9726('0x46')]('[voiceQueueReport][queuesummary]\x20sending\x20queuesummary\x20event:',util['inspect'](this[_0x9726('0x13')][_0x97f9f7[_0x9726('0x69')]],{'showHidden':![],'depth':null}));ami[_0x9726('0x44')]('custom:queuesummary',this['voiceQueues'][_0x97f9f7[_0x9726('0x69')]]);}}}catch(_0xf0c2a3){logger['error'](_0x9726('0x66'),util[_0x9726('0x3e')](_0xf0c2a3,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x9726('0xb')][_0x9726('0x19')]=function(_0x50679b){logger[_0x9726('0x46')](_0x9726('0x71'),util[_0x9726('0x3e')](_0x50679b,{'showHidden':![],'depth':null}));this[_0x9726('0x14')]=!![];};VoiceQueueReport[_0x9726('0xb')][_0x9726('0x1a')]=function(_0x322c77){try{if(this[_0x9726('0x68')](_0x322c77)){logger[_0x9726('0x46')](_0x9726('0x72'),_0x322c77[_0x9726('0x4d')],util[_0x9726('0x3e')](_0x322c77,{'showHidden':![],'depth':null}));if(_[_0x9726('0x73')](this['queueReports'][_0x322c77[_0x9726('0x4d')]])){this[_0x9726('0xf')][_0x322c77[_0x9726('0x4d')]]=[];this[_0x9726('0x11')][_0x322c77[_0x9726('0x4d')]]={};}var _0x3fd95f=new QueueReport();_0x3fd95f[_0x9726('0x4a')]=_0x322c77['queue'];_0x3fd95f[_0x9726('0x50')]=this[_0x9726('0x13')][_0x3fd95f[_0x9726('0x4a')]]&&this['voiceQueues'][_0x3fd95f[_0x9726('0x4a')]][_0x9726('0x50')]?this['voiceQueues'][_0x3fd95f[_0x9726('0x4a')]][_0x9726('0x50')]||'inbound':'inbound';_0x3fd95f['queue']=_0x322c77[_0x9726('0x69')];_0x3fd95f[_0x9726('0x74')]=moment()[_0x9726('0x61')](_0x9726('0x75'));_0x3fd95f[_0x9726('0x76')]=_0x322c77[_0x9726('0x76')];_0x3fd95f['count']=_0x322c77[_0x9726('0x77')];_0x3fd95f[_0x9726('0x4d')]=_0x322c77[_0x9726('0x4d')];logger[_0x9726('0x78')](_0x9726('0x79'),_0x3fd95f[_0x9726('0x4a')],_0x3fd95f[_0x9726('0x50')]);_[_0x9726('0x7a')](_0x3fd95f,_[_0x9726('0x7b')](_0x322c77,_[_0x9726('0x7c')](_0x3fd95f)));this[_0x9726('0xf')][_0x322c77[_0x9726('0x4d')]][_0x9726('0x7d')](_0x3fd95f);this['channels'][_0x322c77['uniqueid']]=_0x3fd95f;this[_0x9726('0x45')](_0x3fd95f,'queuecallerjoin');}}catch(_0x24e5be){logger[_0x9726('0x3c')](_0x9726('0x72'),_0x322c77[_0x9726('0x4d')],util[_0x9726('0x3e')](_0x24e5be,{'showHidden':![],'depth':null}));}};VoiceQueueReport['prototype'][_0x9726('0x1c')]=function(_0x4badff){try{if(this[_0x9726('0x68')](_0x4badff)){logger[_0x9726('0x46')](_0x9726('0x7e'),_0x4badff[_0x9726('0x4d')],util[_0x9726('0x3e')](_0x4badff,{'showHidden':![],'depth':null}));if(this[_0x9726('0xf')][_0x4badff['uniqueid']]){var _0x4853de=_[_0x9726('0x7f')](this['queueReports'][_0x4badff[_0x9726('0x4d')]]);_0x4853de[_0x9726('0x80')]=![];_0x4853de['queuecallercompleteAt']=null;_0x4853de['holdtime']=_0x4badff[_0x9726('0x81')];_0x4853de[_0x9726('0x82')]=_0x4badff[_0x9726('0x82')];_0x4853de[_0x9726('0x1b')]=!![];_0x4853de['queuecallerabandonAt']=moment()['format'](_0x9726('0x75'));_0x4853de[_0x9726('0x83')]='ABANDONED';_0x4853de[_0x9726('0x84')]=null;logger[_0x9726('0x78')](_0x9726('0x85'),_0x4853de['name'],_0x4853de[_0x9726('0x50')]);this[_0x9726('0x11')][_0x4badff[_0x9726('0x4d')]]=_0x4853de;this['emitVoiceQueueChannelRemove'](_0x4853de,'queuecallerabandon');}}}catch(_0x5b4b9e){logger[_0x9726('0x3c')](_0x9726('0x7e'),_0x4badff[_0x9726('0x4d')],util[_0x9726('0x3e')](_0x5b4b9e,{'showHidden':![],'depth':null}));}};VoiceQueueReport['prototype'][_0x9726('0x1e')]=function(_0x30389e){try{if(this[_0x9726('0x68')](_0x30389e)){logger['debug'](_0x9726('0x86'),_0x30389e[_0x9726('0x4d')],util['inspect'](_0x30389e,{'showHidden':![],'depth':null}));if(this['queueReports'][_0x30389e['uniqueid']]){var _0x355c21=_[_0x9726('0x7f')](this[_0x9726('0xf')][_0x30389e[_0x9726('0x4d')]]);_0x355c21[_0x9726('0x87')]=moment()['format'](_0x9726('0x75'));_0x355c21[_0x9726('0x88')]=_0x30389e['connectedlinenum'];_0x355c21['connectedlinename']=_0x30389e[_0x9726('0x89')];logger['info'](_0x9726('0x8a'),_0x355c21[_0x9726('0x4a')],_0x355c21[_0x9726('0x50')],_0x30389e[_0x9726('0x88')],_0x30389e[_0x9726('0x89')]);this[_0x9726('0x11')][_0x30389e[_0x9726('0x4d')]]=_0x355c21;this[_0x9726('0x45')](_0x355c21,'queuecallerleave');}}}catch(_0x122e71){logger[_0x9726('0x3c')](_0x9726('0x86'),_0x30389e[_0x9726('0x4d')],util['inspect'](_0x122e71,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x9726('0xb')][_0x9726('0x21')]=function(_0x2463e4){try{if(this[_0x9726('0x68')](_0x2463e4)){logger[_0x9726('0x46')](_0x9726('0x8b'),_0x2463e4['uniqueid'],util['inspect'](_0x2463e4,{'showHidden':![],'depth':null}));if(this['queueReports'][_0x2463e4[_0x9726('0x4d')]]){var _0xd556cd=_[_0x9726('0x7f')](this[_0x9726('0xf')][_0x2463e4[_0x9726('0x4d')]]);_0xd556cd['queuecallercomplete']=!![];_0xd556cd[_0x9726('0x83')]='COMPLETEDBYAGENT';logger[_0x9726('0x78')](_0x9726('0x8c'),_0xd556cd['name'],_0xd556cd['type']);}}}catch(_0x37f9b3){logger[_0x9726('0x3c')](_0x9726('0x8b'),_0x2463e4[_0x9726('0x4d')],util[_0x9726('0x3e')](_0x37f9b3,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x9726('0xb')][_0x9726('0x1f')]=function(_0x463db1){try{if(this[_0x9726('0x68')](_0x463db1)){logger[_0x9726('0x46')](_0x9726('0x8d'),_0x463db1['uniqueid'],util[_0x9726('0x3e')](_0x463db1,{'showHidden':![],'depth':null}));if(this[_0x9726('0xf')][_0x463db1['uniqueid']]){var _0x3c90b9=_['last'](this[_0x9726('0xf')][_0x463db1[_0x9726('0x4d')]]);_0x3c90b9[_0x9726('0x1b')]=![];_0x3c90b9[_0x9726('0x8e')]=null;_0x3c90b9['assigned']=!![];_0x3c90b9[_0x9726('0x84')]=_0x463db1[_0x9726('0x8f')];_0x3c90b9[_0x9726('0x81')]=_0x463db1[_0x9726('0x81')];_0x3c90b9[_0x9726('0x80')]=!![];_0x3c90b9[_0x9726('0x90')]=![];_0x3c90b9[_0x9726('0x91')]=null;if(!_0x3c90b9['transfer']){if(_0x463db1[_0x9726('0x92')]==_0x9726('0x93')){_0x3c90b9['queuecallerexitreason']=_0x9726('0x94');logger[_0x9726('0x78')](_0x9726('0x95'),_0x3c90b9[_0x9726('0x4a')],_0x3c90b9[_0x9726('0x50')]);}else{if(_[_0x9726('0x96')](_0x463db1[_0x9726('0x39')]['toLowerCase'](),_0x9726('0x97'))){if(this['queueReports'][_0x463db1[_0x9726('0x98')]]){var _0x288d52=_[_0x9726('0x7f')](this[_0x9726('0xf')][_0x463db1[_0x9726('0x98')]]);_0x288d52[_0x9726('0x80')]=![];_0x288d52[_0x9726('0x90')]=!![];_0x288d52['queuecallerexitAt']=moment(_0x3c90b9['queuecallerjoinAt'])[_0x9726('0x99')](_0x463db1['holdtime'],_0x9726('0x9a'))[_0x9726('0x61')]('YYYY-MM-DD\x20HH:mm:ss');_0x288d52[_0x9726('0x83')]=_0x9726('0x9b');_0x288d52[_0x9726('0x93')]=!![];_0x288d52[_0x9726('0x9c')]='FORWARD';_0x288d52[_0x9726('0x9d')]=_0x463db1[_0x9726('0x9e')];_0x288d52[_0x9726('0x9f')]=_0x463db1[_0x9726('0x4d')];logger[_0x9726('0x78')](_0x9726('0xa0'),_0x288d52[_0x9726('0x4a')],_0x288d52['type']);var _0x53a094=this['queueReports'][_0x463db1[_0x9726('0x98')]];this[_0x9726('0xf')][_0x463db1[_0x9726('0x98')]]=this[_0x9726('0xf')][_0x463db1['uniqueid']];this[_0x9726('0xf')][_0x463db1[_0x9726('0x4d')]]=_0x53a094;}}else{_0x3c90b9['queuecallerexitreason']='COMPLETEDBY'+_0x463db1[_0x9726('0x92')][_0x9726('0xa1')]();logger[_0x9726('0x78')](_0x9726('0xa2'),_0x3c90b9[_0x9726('0x4a')],_0x3c90b9[_0x9726('0x50')],_0x3c90b9[_0x9726('0x83')]);}}}this[_0x9726('0x11')][_0x463db1['uniqueid']]=_0x3c90b9;this[_0x9726('0x42')](_0x3c90b9,_0x9726('0xa3'));}}}catch(_0x45c71a){logger[_0x9726('0x3c')]('[%s][voiceQueueReport][agentcomplete]',_0x463db1['uniqueid'],util[_0x9726('0x3e')](_0x45c71a,{'showHidden':![],'depth':null}));}};VoiceQueueReport['prototype'][_0x9726('0xa4')]=function(_0x454d6a){try{if(this[_0x9726('0x68')](_0x454d6a)){logger['debug']('[%s][voiceQueueReport][varset]',_0x454d6a[_0x9726('0x4d')],util[_0x9726('0x3e')](_0x454d6a,{'showHidden':![],'depth':null}));this[_0x9726('0xa5')](_0x454d6a[_0x9726('0x4d')],_['keys'](_0x454d6a['variable'])[0x0],_0x454d6a[_0x9726('0xa6')]);if(this['queueReports'][_0x454d6a[_0x9726('0x4d')]]){var _0x5cc265=_['last'](this[_0x9726('0xf')][_0x454d6a[_0x9726('0x4d')]]);if(_0x5cc265){if(this[_0x9726('0x68')](_0x454d6a[_0x9726('0xa7')])&&this[_0x9726('0x68')](_0x454d6a[_0x9726('0xa7')][_0x9726('0xa8')])){switch(_0x454d6a[_0x9726('0xa6')]){case'CONTINUE':_0x5cc265[_0x9726('0x90')]=![];_0x5cc265[_0x9726('0x91')]=null;break;case _0x9726('0xa9'):_0x5cc265[_0x9726('0xaa')]='timeout';_0x5cc265['queuecallerexit']=!![];_0x5cc265[_0x9726('0x91')]=moment()[_0x9726('0x61')](_0x9726('0x75'));_0x5cc265[_0x9726('0x87')]=moment()[_0x9726('0x61')]('YYYY-MM-DD\x20HH:mm:ss');logger['debug'](_0x9726('0xab'),_0x454d6a['uniqueid'],util['inspect'](_0x5cc265,{'showHidden':![],'depth':null}));ami[_0x9726('0x44')](_0x9726('0xac'),_0x5cc265);break;default:_0x5cc265[_0x9726('0x90')]=!![];_0x5cc265[_0x9726('0x91')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss');_0x5cc265[_0x9726('0x87')]=moment()['format'](_0x9726('0x75'));}_0x5cc265[_0x9726('0x1b')]=![];_0x5cc265[_0x9726('0x8e')]=null;_0x5cc265[_0x9726('0x83')]=_0x454d6a[_0x9726('0xa6')];this[_0x9726('0x11')][_0x454d6a[_0x9726('0x4d')]]=_0x5cc265;this[_0x9726('0x42')](_0x5cc265,_0x9726('0x22'));}else if(this[_0x9726('0x68')](_0x454d6a[_0x9726('0xa7')])&&this[_0x9726('0x68')](_0x454d6a[_0x9726('0xa7')]['queueposition'])){if(!_0x5cc265['queuecallerabandon']){_0x5cc265[_0x9726('0x90')]=!![];_0x5cc265['queuecallerexitAt']=moment()[_0x9726('0x61')](_0x9726('0x75'));_0x5cc265[_0x9726('0x83')]=_0x9726('0xad');_0x5cc265[_0x9726('0x87')]=moment()['format'](_0x9726('0x75'));this['channels'][_0x454d6a['uniqueid']]=_0x5cc265;}}logger[_0x9726('0x78')]('[%s][voiceQueueReport][varset]\x20name:%s\x20type:%s\x20variable:%s\x20value:%s',_0x454d6a[_0x9726('0x4d')],_0x5cc265[_0x9726('0x4a')],_0x5cc265[_0x9726('0x50')],_[_0x9726('0x7c')](_0x454d6a[_0x9726('0xa7')])[0x0],_0x454d6a[_0x9726('0xa6')]);_0x5cc265[_0x9726('0x15')]=this['variables'][_0x454d6a['uniqueid']];}}}}catch(_0x410583){logger[_0x9726('0x3c')]('[%s][voiceQueueReport][varset]',_0x454d6a[_0x9726('0x4d')],util[_0x9726('0x3e')](_0x410583,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x9726('0xb')][_0x9726('0xa5')]=function(_0x56df7d,_0x153dd9,_0x5e76aa){var _0x5e68f0=['rtpaudioqos',_0x9726('0xae'),'rtpaudioqosjitter',_0x9726('0xaf'),'rtpaudioqosloss',_0x9726('0xb0'),'rtpaudioqosrtt',_0x9726('0xb1'),_0x9726('0xb2'),_0x9726('0xb3'),_0x9726('0xb4'),_0x9726('0xb5'),_0x9726('0xb6'),_0x9726('0xb7'),_0x9726('0xb8'),_0x9726('0xb9'),_0x9726('0x8f'),'memberpenalty','memberrealtime'];if(!_['isNil'](_0x153dd9)&&!_['includes'](_0x5e68f0,_0x153dd9)){if(_[_0x9726('0x73')](this[_0x9726('0x15')][_0x56df7d])){this[_0x9726('0x15')][_0x56df7d]={};}this[_0x9726('0x15')][_0x56df7d][_0x153dd9]=_0x5e76aa;}};VoiceQueueReport[_0x9726('0xb')][_0x9726('0x24')]=function(_0x5cf2d7){try{if(this['isNotNull'](_0x5cf2d7)){logger['debug']('[%s][voiceQueueReport][hangup]',_0x5cf2d7[_0x9726('0x4d')],util[_0x9726('0x3e')](_0x5cf2d7,{'showHidden':![],'depth':null}));if(this[_0x9726('0xf')][_0x5cf2d7[_0x9726('0x4d')]]){for(var _0xc88e02=0x0,_0x2c0c10={};_0xc88e02<this['queueReports'][_0x5cf2d7[_0x9726('0x4d')]]['length'];_0xc88e02+=0x1){_0x2c0c10=this['queueReports'][_0x5cf2d7[_0x9726('0x4d')]][_0xc88e02];if(this['voiceQueues'][_0x2c0c10[_0x9726('0x69')]]){if(_0x2c0c10['queuecallerexit']){this[_0x9726('0x13')][_0x2c0c10[_0x9726('0x69')]]['unmanaged']+=0x1;}if(_0x2c0c10[_0x9726('0x1b')]){this[_0x9726('0x13')][_0x2c0c10[_0x9726('0x69')]][_0x9726('0x59')]+=0x1;}this[_0x9726('0x13')][_0x2c0c10['queue']][_0x9726('0x56')]+=moment(_0x2c0c10['queuecallerleaveAt'])[_0x9726('0xba')](_0x2c0c10[_0x9726('0x74')],_0x9726('0x9a'))||0x0;if(_0xc88e02===this[_0x9726('0xf')][_0x5cf2d7[_0x9726('0x4d')]][_0x9726('0xbb')]-0x1){this['voiceQueues'][_0x2c0c10['queue']][_0x9726('0x55')]+=moment()[_0x9726('0xbc')](0x0)[_0x9726('0xba')](_0x2c0c10[_0x9726('0x74')],_0x9726('0x9a'));this[_0x9726('0x13')][_0x2c0c10[_0x9726('0x69')]]['total']+=0x1;if(_0x2c0c10[_0x9726('0x80')]){this[_0x9726('0x13')][_0x2c0c10[_0x9726('0x69')]]['answered']+=0x1;this[_0x9726('0x13')][_0x2c0c10['queue']][_0x9726('0x54')]+=moment()[_0x9726('0xbc')](0x0)[_0x9726('0xba')](_0x2c0c10[_0x9726('0x87')],_0x9726('0x9a'));_0x2c0c10[_0x9726('0xbd')]=moment()[_0x9726('0x61')](_0x9726('0x75'));_0x2c0c10[_0x9726('0x90')]=![];_0x2c0c10['queuecallerexitAt']=null;}if(_0x2c0c10['queuecallerexit']){_0x2c0c10[_0x9726('0xaa')]=_0x9726('0x58');logger[_0x9726('0x46')]('[%s][voiceQueueReport][hangup]\x20sending\x20queuecallerunmanaged\x20event:',_0x5cf2d7['uniqueid'],util['inspect'](_0x2c0c10,{'showHidden':![],'depth':null}));ami[_0x9726('0x44')]('custom:queuecallerunmanaged',_0x2c0c10);}if(_0x2c0c10['queuecallerabandon']){_0x2c0c10[_0x9726('0xaa')]=_0x9726('0x59');logger[_0x9726('0x46')](_0x9726('0xbe'),_0x5cf2d7['uniqueid'],util[_0x9726('0x3e')](_0x2c0c10,{'showHidden':![],'depth':null}));ami[_0x9726('0x44')](_0x9726('0xbf'),_0x2c0c10);}}else{this[_0x9726('0x13')][_0x2c0c10['queue']][_0x9726('0x55')]+=this['voiceQueues'][_0x2c0c10[_0x9726('0x69')]]['sumHoldTime'];}logger[_0x9726('0x78')](_0x9726('0xc0'),_0x5cf2d7[_0x9726('0x4d')],_0x2c0c10[_0x9726('0x4a')],_0x2c0c10[_0x9726('0x50')],_0x5cf2d7[_0x9726('0xc1')]);this[_0x9726('0x11')][_0x5cf2d7[_0x9726('0x4d')]]=_0x2c0c10;this[_0x9726('0x42')](_0x2c0c10,_0x9726('0x23'));this['emitVoiceQueueSummary'](this['voiceQueues'][_0x2c0c10['queue']],_0x9726('0x23'));}}logger[_0x9726('0x46')](_0x9726('0xc2'),_0x5cf2d7[_0x9726('0x4d')],util[_0x9726('0x3e')](this['queueReports'][_0x5cf2d7['uniqueid']],{'showHidden':![],'depth':null}));ami['emit'](_0x9726('0xc3'),this[_0x9726('0xf')][_0x5cf2d7['uniqueid']]);delete this[_0x9726('0xf')][_0x5cf2d7[_0x9726('0x4d')]];delete this[_0x9726('0x11')][_0x5cf2d7[_0x9726('0x4d')]];}if(this['variables'][_0x5cf2d7[_0x9726('0x4d')]]){delete this['variables'][_0x5cf2d7['uniqueid']];}}}catch(_0x3fff16){logger[_0x9726('0x3c')](_0x9726('0xc4'),_0x5cf2d7[_0x9726('0x4d')],util[_0x9726('0x3e')](_0x3fff16,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x9726('0xb')]['syncAttendedTransfer']=function(_0x4a022e){try{if(this[_0x9726('0x68')](_0x4a022e)){logger[_0x9726('0x46')](_0x9726('0xc5'),_0x4a022e[_0x9726('0x4d')],util[_0x9726('0x3e')](_0x4a022e,{'showHidden':![],'depth':null}));var _0x25524e;if(this[_0x9726('0xf')][_0x4a022e[_0x9726('0xc6')]]){_0x25524e=_[_0x9726('0x7f')](this[_0x9726('0xf')][_0x4a022e[_0x9726('0xc6')]]);_0x25524e[_0x9726('0x9d')]=_0x4a022e['secondtransfererexten'];_0x25524e[_0x9726('0x9f')]=_0x4a022e[_0x9726('0xc7')];_0x25524e[_0x9726('0x83')]=_0x9726('0xc8');_0x25524e['transfer']=!![];_0x25524e[_0x9726('0x9c')]=_0x9726('0xc9');if(this[_0x9726('0xf')][_0x4a022e[_0x9726('0xc7')]]){var _0x7baaa6=this[_0x9726('0xf')][_0x4a022e[_0x9726('0xc7')]];this[_0x9726('0xf')][_0x4a022e['secondtransfereruniqueid']]=this[_0x9726('0xf')][_0x4a022e['transfereeuniqueid']];this[_0x9726('0xf')][_0x4a022e[_0x9726('0xc6')]]=_0x7baaa6;var _0x15ced7=_[_0x9726('0x7f')](this['queueReports'][_0x4a022e[_0x9726('0xc6')]]);_0x15ced7[_0x9726('0x36')]=!![];}logger[_0x9726('0x78')](_0x9726('0xca'),_0x4a022e[_0x9726('0x4d')],_0x25524e[_0x9726('0x4a')],_0x25524e[_0x9726('0x50')],_0x25524e[_0x9726('0x9d')],_0x25524e[_0x9726('0x9f')]);}else if(this[_0x9726('0xf')][_0x4a022e[_0x9726('0xcb')]]){_0x25524e=_['last'](this[_0x9726('0xf')][_0x4a022e[_0x9726('0xcb')]]);_0x25524e[_0x9726('0x9d')]=_0x4a022e[_0x9726('0xcc')];_0x25524e[_0x9726('0x9f')]=_0x4a022e[_0x9726('0xcd')];_0x25524e['queuecallerexitreason']=_0x9726('0xc8');_0x25524e[_0x9726('0x93')]=!![];_0x25524e['transfertype']=_0x9726('0xc9');if(this['queueReports'][_0x4a022e[_0x9726('0xcd')]]){var _0x7baaa6=this['queueReports'][_0x4a022e[_0x9726('0xcd')]];this[_0x9726('0xf')][_0x4a022e[_0x9726('0xcd')]]=this[_0x9726('0xf')][_0x4a022e[_0x9726('0xcb')]];this[_0x9726('0xf')][_0x4a022e[_0x9726('0xcb')]]=_0x7baaa6;var _0x15ced7=_[_0x9726('0x7f')](this[_0x9726('0xf')][_0x4a022e['transfertargetuniqueid']]);_0x15ced7[_0x9726('0x36')]=!![];}logger[_0x9726('0x78')](_0x9726('0xca'),_0x4a022e[_0x9726('0x4d')],_0x25524e[_0x9726('0x4a')],_0x25524e['type'],_0x25524e[_0x9726('0x9d')],_0x25524e[_0x9726('0x9f')]);}}}catch(_0xe5669b){logger[_0x9726('0x3c')]('[%s][voiceQueueReport][attendedtransfer]',_0x4a022e[_0x9726('0x4d')],util[_0x9726('0x3e')](_0xe5669b,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x9726('0xb')]['syncBlindTransfer']=function(_0x156fc3){try{if(this['isNotNull'](_0x156fc3)){logger['debug'](_0x9726('0xce'),_0x156fc3[_0x9726('0x4d')],util[_0x9726('0x3e')](_0x156fc3,{'showHidden':![],'depth':null}));if(this[_0x9726('0xf')][_0x156fc3[_0x9726('0xc6')]]){var _0x59a2df=_['last'](this[_0x9726('0xf')][_0x156fc3[_0x9726('0xc6')]]);_0x59a2df['queuecallerexitreason']=_0x9726('0xcf');_0x59a2df[_0x9726('0x93')]=!![];_0x59a2df[_0x9726('0x9c')]=_0x9726('0xd0');_0x59a2df['transferexten']=_0x156fc3[_0x9726('0xd1')];_0x59a2df[_0x9726('0x9f')]=_0x156fc3[_0x9726('0xc6')];logger[_0x9726('0x78')](_0x9726('0xd2'),_0x156fc3[_0x9726('0x4d')],_0x59a2df[_0x9726('0x4a')],_0x59a2df[_0x9726('0x50')],_0x59a2df['transferexten'],_0x59a2df[_0x9726('0x9f')]);this['syncHangup']({'event':'BlindTransfer','uniqueid':_0x156fc3[_0x9726('0xc6')],'context':_0x156fc3['context'],'channel':_0x156fc3[_0x9726('0xd3')]});}}}catch(_0x2b3188){logger[_0x9726('0x3c')]('[%s][voiceQueueReport][blindtransfer]',_0x156fc3[_0x9726('0x4d')],util[_0x9726('0x3e')](_0x2b3188,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x9726('0xb')][_0x9726('0x26')]=function(_0x3ece07){try{if(this['isNotNull'](_0x3ece07)){logger[_0x9726('0x46')](_0x9726('0xd4'),_0x3ece07[_0x9726('0x4d')],util[_0x9726('0x3e')](_0x3ece07,{'showHidden':![],'depth':null}));if(this[_0x9726('0xf')][_0x3ece07[_0x9726('0x4d')]]){var _0x9a469c=_[_0x9726('0x7f')](this['queueReports'][_0x3ece07[_0x9726('0x4d')]]);if(!_[_0x9726('0xd5')](_0x9a469c[_0x9726('0x87')])){_0x9a469c[_0x9726('0xd6')]=moment()[_0x9726('0x61')]('YYYY-MM-DD\x20HH:mm:ss');logger[_0x9726('0x78')](_0x9726('0xd7'),_0x3ece07[_0x9726('0x4d')],_0x9a469c['mohstarttime']);}}}}catch(_0x5c6a40){logger[_0x9726('0x3c')](_0x9726('0xd4'),_0x3ece07[_0x9726('0x4d')],util[_0x9726('0x3e')](_0x5c6a40,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x9726('0xb')][_0x9726('0x28')]=function(_0x2cde7e){try{if(this[_0x9726('0x68')](_0x2cde7e)){logger['debug'](_0x9726('0xd8'),_0x2cde7e[_0x9726('0x4d')],util['inspect'](_0x2cde7e,{'showHidden':![],'depth':null}));if(this[_0x9726('0xf')][_0x2cde7e[_0x9726('0x4d')]]){var _0x27d63e=_[_0x9726('0x7f')](this[_0x9726('0xf')][_0x2cde7e[_0x9726('0x4d')]]);if(!_[_0x9726('0xd5')](_0x27d63e['mohstarttime'])){_0x27d63e[_0x9726('0xd9')]+=moment()[_0x9726('0xbc')](0x0)['diff'](_0x27d63e[_0x9726('0xd6')],_0x9726('0x9a'));logger[_0x9726('0x78')](_0x9726('0xda'),_0x2cde7e[_0x9726('0x4d')],_0x27d63e[_0x9726('0xd9')]);delete _0x27d63e[_0x9726('0xd6')];}}}}catch(_0x58630a){logger['error'](_0x9726('0xd8'),_0x2cde7e[_0x9726('0x4d')],util[_0x9726('0x3e')](_0x58630a,{'showHidden':![],'depth':null}));}};module[_0x9726('0xdb')]=VoiceQueueReport;