Built motion from commit (unavailable).|2.5.30
[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 _0x7117=['rtpaudioqosbridged','rtpaudioqosjitter','rtpaudioqosjitterbridged','rtpaudioqosrttbridged','sipcallid','sipuri','bridgepeer','bridgepvtcallid','membercalls','memberdynamic','memberlastcall','memberpenalty','memberrealtime','isNil','includes','[%s][voiceQueueReport][hangup]','diff','length','milliseconds','[%s][voiceQueueReport][hangup]\x20sending\x20queuecallerunmanaged\x20event:','custom:queuecallerunmanaged','lastevent','custom:queuecallerabandon','[%s][voiceQueueReport][hangup]\x20name:%s\x20type:%s\x20reason:%s','cause-txt','[%s][voiceQueueReport][hangup]\x20sending\x20voiceQueueReport\x20event:','[%s][voiceQueueReport][attendedtransfer]','transfereeuniqueid','secondtransfererexten','secondtransfereruniqueid','transfertype','ATTENDED','[%s][voiceQueueReport][attendedTransfer]\x20name:%s\x20type:%s\x20transferexten:%s\x20transferuniqueid:%s','transfertargetuniqueid','origtransfererexten','origtransfereruniqueid','ATTENDEDTRANSFER','[%s][voiceQueueReport][blindtransfer]','BLINDTRANSFER','BLIND','[%s][voiceQueueReport][blindTransfer]\x20name:%s\x20type:%s\x20transferexten:%s\x20transferuniqueid:%s','transfererchannel','[%s][voiceQueueReport][musiconholdstart]','mohstarttime','[%s][voiceQueueReport][musiconholdstop]','mohtime','[%s][voiceQueueReport][musiconholdstop]\x20mohtime:%s','exports','lodash','moment','util','md5','../../../config/environment','../../../config/logger','../ami','redis','defaults','enqueue','tail','finally','sequence','queueReports','agents','channels','queueChannels','voiceQueues','flagQueueSummary','campaigns','variables','queuesummary','bind','queuesummarycomplete','syncQueueSummaryComplete','syncQueueCallerJoin','queuecallerabandon','syncQueueCallerAbandon','queuecallerleave','syncQueueCallerLeave','agentcomplete','syncAgentComplete','agentconnect','varset','syncVarSet','hangup','syncHangup','fullybooted','syncFullyBooted','musiconholdstart','syncMusicOnHoldStart','syncMusicOnHoldStop','attendedtransfer','syncAttendedTransfer','blindtransfer','syncBlindTransfer','loopQueueSummary','loopQueueShow','isEmpty','hasOwnProperty','originated','talking','pTalking','waiting','queueStatusComplete','prototype','clearZombieChannels','switch','Action','channel','catch','error','[%s][voiceQueueReport][checkQueueReport]','inspect','[FullyBooted]\x20clear\x20realtime','clearQueueReport','emitVoiceQueueChannelRemove','clearqueuereport','emit','debug','[%s][voiceQueueReport][',']\x20sending\x20voice_queue_channel:save\x20event:','uniqueid','voice:queue:%s','name','voice_queue_channel:save',']\x20sending\x20voice_queue_channel:remove\x20event:','format','voice_queue_presence:remove','emitVoiceQueueSummary','type','inbound','answered','available','sumBillable','sumDuration','total','unmanaged','abandoned','Trunk','callerid','Interval','stringify','[voiceQueueReport][',']\x20sending\x20voice_queue:save\x20event:','voice_queue:save','isNotNull','isUndefined','queues','[voiceQueueReport][queues]','then','[voiceQueueReport][queuesummary]','syncQueueSummary','[voiceQueueReport][queuesummary]\x20event:','queue','info','countBy','toNumber','loggedIn','loggedin','callers','[voiceQueueReport][queuesummary]\x20sending\x20queuesummary\x20event:','[voiceQueueReport][queuesummarycomplete]\x20event:','[%s][voiceQueueReport][queuecallerjoin]','YYYY-MM-DD\x20HH:mm:ss','position','count','[voiceQueueReport][queuecallerjoin]\x20name:%s\x20type:%s','pick','keys','emitVoiceQueueChannelSave','queuecallerjoin','[%s][voiceQueueReport][queuecallerabandon]','last','queuecallercomplete','queuecallercompleteAt','holdtime','originalposition','queuecallerabandonAt','queuecallerexitreason','ABANDONED','lastAssignedTo','[%s][voiceQueueReport][queuecallerleave]','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','[%s][voiceQueueReport][agentcomplete]','assigned','membername','queuecallerexit','queuecallerexitAt','transfer','reason','COMPLETED','startsWith','toLowerCase','local/','linkedid','queuecallerjoinAt','add','seconds','FORWARDTRANSFER','FORWARD','transferexten','transferuniqueid','[voiceQueueReport][agentcomplete]\x20name:%s\x20type:%s\x20queuecallerexitreason:FORWARDTRANSFER','COMPLETEDBY','toUpperCase','[voiceQueueReport][agentcomplete]\x20name:%s\x20type:%s\x20queuecallerexitreason:%s','[%s][voiceQueueReport][varset]','variable','value','TIMEOUT','timeout','[%s][voiceQueueReport][varset]\x20sending\x20timeout\x20event:','EXITWITHKEY','[%s][voiceQueueReport][varset]\x20name:%s\x20type:%s\x20variable:%s\x20value:%s','addVariable','rtpaudioqos'];(function(_0x1dcd91,_0x4a5fa3){var _0xb71e10=function(_0x46d437){while(--_0x46d437){_0x1dcd91['push'](_0x1dcd91['shift']());}};_0xb71e10(++_0x4a5fa3);}(_0x7117,0x1ec));var _0x7711=function(_0x100412,_0x459c1d){_0x100412=_0x100412-0x0;var _0x53ab3a=_0x7117[_0x100412];return _0x53ab3a;};'use strict';var _=require(_0x7711('0x0'));var moment=require(_0x7711('0x1'));var util=require(_0x7711('0x2'));var md5=require(_0x7711('0x3'));var Redis=require('ioredis');var config=require(_0x7711('0x4'));var logger=require(_0x7711('0x5'))('ami');var ami=require(_0x7711('0x6'));var QueueReport=require('../model/queueReport');config[_0x7711('0x7')]=_[_0x7711('0x8')](config[_0x7711('0x7')],{'host':'localhost','port':0x18eb});var io=require('socket.io-emitter')(new Redis(config['redis']));var Sequence=function(){};Sequence['prototype'][_0x7711('0x9')]=function(_0xb9cae4){this[_0x7711('0xa')]=this[_0x7711('0xa')]?this['tail'][_0x7711('0xb')](_0xb9cae4):_0xb9cae4();};function VoiceQueueReport(_0x33057b){this[_0x7711('0xc')]=new Sequence();this[_0x7711('0xd')]={};this[_0x7711('0xe')]=_0x33057b['agents'];this[_0x7711('0xf')]=_0x33057b[_0x7711('0x10')];this['voiceQueues']=_0x33057b[_0x7711('0x11')];this[_0x7711('0x12')]=!![];this[_0x7711('0x13')]=_0x33057b[_0x7711('0x13')];this[_0x7711('0x14')]={};ami['on'](_0x7711('0x15'),this['syncQueueSummary'][_0x7711('0x16')](this));ami['on'](_0x7711('0x17'),this[_0x7711('0x18')][_0x7711('0x16')](this));ami['on']('queuecallerjoin',this[_0x7711('0x19')][_0x7711('0x16')](this));ami['on'](_0x7711('0x1a'),this[_0x7711('0x1b')][_0x7711('0x16')](this));ami['on'](_0x7711('0x1c'),this[_0x7711('0x1d')][_0x7711('0x16')](this));ami['on'](_0x7711('0x1e'),this[_0x7711('0x1f')]['bind'](this));ami['on'](_0x7711('0x20'),this['syncAgentConnect'][_0x7711('0x16')](this));ami['on'](_0x7711('0x21'),this[_0x7711('0x22')][_0x7711('0x16')](this));ami['on'](_0x7711('0x23'),this[_0x7711('0x24')][_0x7711('0x16')](this));ami['on'](_0x7711('0x25'),this[_0x7711('0x26')][_0x7711('0x16')](this));ami['on'](_0x7711('0x27'),this[_0x7711('0x28')][_0x7711('0x16')](this));ami['on']('musiconholdstop',this[_0x7711('0x29')]['bind'](this));ami['on'](_0x7711('0x2a'),this[_0x7711('0x2b')][_0x7711('0x16')](this));ami['on'](_0x7711('0x2c'),this[_0x7711('0x2d')][_0x7711('0x16')](this));this[_0x7711('0x2e')]();this[_0x7711('0x2f')]();}function clearChannels(_0xabd84a){if(!_[_0x7711('0x30')](_0xabd84a)){for(var _0x2f9657 in _0xabd84a){if(_0xabd84a[_0x7711('0x31')](_0x2f9657)){delete _0xabd84a[_0x2f9657];}}}}function clearCampaigns(_0xb2a5aa){if(!_[_0x7711('0x30')](_0xb2a5aa)){for(var _0x460330 in _0xb2a5aa){if(_0xb2a5aa[_0x7711('0x31')](_0x460330)){_0xb2a5aa[_0x460330][_0x7711('0x32')]=0x0;}}}}function clearVoiceQueues(_0x2b1afe){if(!_[_0x7711('0x30')](_0x2b1afe)){for(var _0x447f33 in _0x2b1afe){if(_0x2b1afe[_0x7711('0x31')](_0x447f33)){_0x2b1afe[_0x447f33][_0x7711('0x32')]=0x0;_0x2b1afe[_0x447f33][_0x7711('0x33')]=0x0;_0x2b1afe[_0x447f33][_0x7711('0x34')]=0x0;_0x2b1afe[_0x447f33][_0x7711('0x35')]=0x0;_0x2b1afe[_0x447f33][_0x7711('0x36')]=!![];}}}}function clearAgentBooked(_0x4d1fd9){if(!_[_0x7711('0x30')](_0x4d1fd9)){for(var _0x2873e8 in _0x4d1fd9){if(_0x4d1fd9['hasOwnProperty'](_0x2873e8)){_0x4d1fd9[_0x2873e8]['unlockRR']=!![];}}}}VoiceQueueReport[_0x7711('0x37')][_0x7711('0x38')]=function(){var _0x5012cc=this;for(var _0x5ad2f0 in this[_0x7711('0xf')]){if(this['channels'][_0x7711('0x31')](_0x5ad2f0)&&!this[_0x7711('0xf')][_0x5ad2f0][_0x7711('0x39')]){this[_0x7711('0xc')][_0x7711('0x9')](function(){if(!_['isNil'](_0x5012cc['channels'][_0x5ad2f0])){return ami[_0x7711('0x3a')]({'action':'status','channel':_0x5012cc[_0x7711('0xf')][_0x5ad2f0][_0x7711('0x3b')]})[_0x7711('0x3c')](function(_0x2eb9fc){if(_0x2eb9fc['message']==='No\x20such\x20channel'){setTimeout(function(){if(_0x5012cc['channels'][_0x5ad2f0]){delete _0x5012cc[_0x7711('0xf')][_0x5ad2f0];logger[_0x7711('0x3d')]('[%s][voiceQueueReport][checkChannel]',_0x5ad2f0,util['inspect'](_0x2eb9fc,{'showHidden':![],'depth':null}));}if(_0x5012cc[_0x7711('0xd')][_0x5ad2f0]){delete _0x5012cc[_0x7711('0xd')][_0x5ad2f0];logger[_0x7711('0x3d')](_0x7711('0x3e'),_0x5ad2f0,util[_0x7711('0x3f')](_0x2eb9fc,{'showHidden':![],'depth':null}));}if(_0x5012cc[_0x7711('0x14')][_0x5ad2f0]){delete _0x5012cc[_0x7711('0x14')][_0x5ad2f0];logger['error']('[%s][voiceQueueReport][checkVariables]',_0x5ad2f0,util[_0x7711('0x3f')](_0x2eb9fc,{'showHidden':![],'depth':null}));}},0x1f40);}});}});}}};VoiceQueueReport['prototype']['syncFullyBooted']=function(){logger['error'](_0x7711('0x40'));clearChannels(this[_0x7711('0xf')]);this[_0x7711('0x41')](this['queueReports']);clearAgentBooked(this[_0x7711('0xe')]);clearVoiceQueues(this['voiceQueues']);clearCampaigns(this[_0x7711('0x13')]);};VoiceQueueReport['prototype'][_0x7711('0x41')]=function(_0x224537){var _0x12a5bf=this;if(!_[_0x7711('0x30')](_0x224537)){for(var _0x5294d9 in _0x224537){if(_0x224537[_0x7711('0x31')](_0x5294d9)){_0x12a5bf[_0x7711('0x42')](_0x224537[_0x5294d9],_0x7711('0x43'));delete _0x224537[_0x5294d9];}}}};VoiceQueueReport[_0x7711('0x37')]['emit']=function(_0x2bd389,_0x49c045,_0x26d736){io['to'](_0x2bd389)[_0x7711('0x44')](_0x49c045,_0x26d736);};VoiceQueueReport[_0x7711('0x37')]['emitVoiceQueueChannelSave']=function(_0x388522,_0x54883c){logger[_0x7711('0x45')](_0x7711('0x46')+_0x54883c+_0x7711('0x47'),_0x388522[_0x7711('0x48')],util[_0x7711('0x3f')](_0x388522,{'showHidden':![],'depth':null}));this[_0x7711('0x44')](util['format'](_0x7711('0x49'),_0x388522[_0x7711('0x4a')]),_0x7711('0x4b'),_0x388522);io['emit']('voice_queue_presence:save',_0x388522);};VoiceQueueReport[_0x7711('0x37')]['emitVoiceQueueChannelRemove']=function(_0x40a69e,_0x3ab92b){logger['debug'](_0x7711('0x46')+_0x3ab92b+_0x7711('0x4c'),_0x40a69e[_0x7711('0x48')],util['inspect'](_0x40a69e,{'showHidden':![],'depth':null}));this[_0x7711('0x44')](util[_0x7711('0x4d')](_0x7711('0x49'),_0x40a69e[_0x7711('0x4a')]),'voice_queue_channel:remove',_0x40a69e);io[_0x7711('0x44')](_0x7711('0x4e'),_0x40a69e);};VoiceQueueReport[_0x7711('0x37')][_0x7711('0x4f')]=function(_0x31aaf9,_0x5c38aa){if(_0x31aaf9[_0x7711('0x50')]===_0x7711('0x51')){var _0xf58b52={'id':_0x31aaf9['id'],'name':_0x31aaf9[_0x7711('0x4a')],'strategy':_0x31aaf9['strategy'],'answered':_0x31aaf9[_0x7711('0x52')],'available':_0x31aaf9[_0x7711('0x53')],'loggedIn':_0x31aaf9['loggedIn'],'pTalking':_0x31aaf9[_0x7711('0x34')],'sumBillable':_0x31aaf9[_0x7711('0x54')],'sumDuration':_0x31aaf9[_0x7711('0x55')],'sumHoldTime':_0x31aaf9['sumHoldTime']||0x0,'talking':_0x31aaf9[_0x7711('0x33')],'total':_0x31aaf9[_0x7711('0x56')],'type':_0x31aaf9[_0x7711('0x50')],'unmanaged':_0x31aaf9[_0x7711('0x57')],'abandoned':_0x31aaf9[_0x7711('0x58')],'waiting':_0x31aaf9['waiting']};if(_0x31aaf9[_0x7711('0x59')]){_0xf58b52[_0x7711('0x59')]={'id':_0x31aaf9[_0x7711('0x59')]['id'],'name':_0x31aaf9[_0x7711('0x59')]['name'],'active':_0x31aaf9[_0x7711('0x59')]['active'],'callerid':_0x31aaf9[_0x7711('0x59')][_0x7711('0x5a')]};}if(_0x31aaf9[_0x7711('0x5b')]){_0xf58b52[_0x7711('0x5b')]={'id':_0x31aaf9[_0x7711('0x5b')]['id'],'name':_0x31aaf9[_0x7711('0x5b')][_0x7711('0x4a')]};}var _0x226578=md5(JSON[_0x7711('0x5c')](_0xf58b52));if(_0x31aaf9['md5']!==_0x226578){_0x31aaf9[_0x7711('0x3')]=_0x226578;logger['debug'](_0x7711('0x5d')+_0x5c38aa+_0x7711('0x5e'),util['inspect'](_0xf58b52,{'showHidden':![],'depth':null}));this[_0x7711('0x44')](util[_0x7711('0x4d')](_0x7711('0x49'),_0xf58b52[_0x7711('0x4a')]),_0x7711('0x5f'),_0xf58b52);}}};VoiceQueueReport[_0x7711('0x37')][_0x7711('0x60')]=function(_0x2fa27d){return _0x2fa27d!==null&&!_[_0x7711('0x61')](_0x2fa27d);};VoiceQueueReport[_0x7711('0x37')][_0x7711('0x2f')]=function(){var _0x1df72f=this;setInterval(function(){_0x1df72f[_0x7711('0x38')]();ami[_0x7711('0x3a')]({'action':_0x7711('0x62')})['catch'](function(_0x3b7a0f){logger['error'](_0x7711('0x63'),util[_0x7711('0x3f')](_0x3b7a0f,{'showHidden':![],'depth':null}));});},0x2710);};VoiceQueueReport[_0x7711('0x37')][_0x7711('0x2e')]=function(){var _0x43b4fb=this;setInterval(function(){if(_0x43b4fb[_0x7711('0x12')]){return ami['Action']({'action':_0x7711('0x15')})[_0x7711('0x64')](function(_0x2615fa){_0x43b4fb[_0x7711('0x12')]=![];})['catch'](function(_0x5173c6){logger[_0x7711('0x3d')](_0x7711('0x65'),util[_0x7711('0x3f')](_0x5173c6,{'showHidden':![],'depth':null}));});}},0x3e8);};VoiceQueueReport[_0x7711('0x37')][_0x7711('0x66')]=function(_0xc27fe){try{if(this[_0x7711('0x60')](_0xc27fe)&&this[_0x7711('0x60')](_0xc27fe['queue'])){logger[_0x7711('0x45')](_0x7711('0x67'),util[_0x7711('0x3f')](_0xc27fe,{'showHidden':![],'depth':null}));if(this[_0x7711('0x11')][_0xc27fe[_0x7711('0x68')]]){logger[_0x7711('0x69')]('[voiceQueueReport][queuesummary]\x20name:%s',_0xc27fe[_0x7711('0x68')]);var _0x3e9bc2=_[_0x7711('0x6a')](this[_0x7711('0xf')],_0x7711('0x68'))[_0xc27fe['queue']]||0x0;var _0xf1d874=_0x3e9bc2-_0xc27fe['callers'];if(this[_0x7711('0x11')][_0xc27fe['queue']]['waiting']!==_[_0x7711('0x6b')](_0xc27fe['callers'])||this['voiceQueues'][_0xc27fe[_0x7711('0x68')]][_0x7711('0x6c')]!==_[_0x7711('0x6b')](_0xc27fe[_0x7711('0x6d')])||this[_0x7711('0x11')][_0xc27fe[_0x7711('0x68')]][_0x7711('0x53')]!==_[_0x7711('0x6b')](_0xc27fe[_0x7711('0x53')])||this[_0x7711('0x11')][_0xc27fe[_0x7711('0x68')]][_0x7711('0x33')]!==_0xf1d874){this[_0x7711('0x11')][_0xc27fe[_0x7711('0x68')]][_0x7711('0x35')]=_[_0x7711('0x6b')](_0xc27fe[_0x7711('0x6e')]);this[_0x7711('0x11')][_0xc27fe[_0x7711('0x68')]][_0x7711('0x6c')]=_[_0x7711('0x6b')](_0xc27fe[_0x7711('0x6d')]);this['voiceQueues'][_0xc27fe[_0x7711('0x68')]][_0x7711('0x53')]=_[_0x7711('0x6b')](_0xc27fe['available']);this[_0x7711('0x11')][_0xc27fe[_0x7711('0x68')]][_0x7711('0x33')]=_0xf1d874>0x0?_0xf1d874:0x0;this['voiceQueues'][_0xc27fe[_0x7711('0x68')]][_0x7711('0x33')]=this[_0x7711('0x11')][_0xc27fe[_0x7711('0x68')]][_0x7711('0x33')]>_[_0x7711('0x6b')](_0xc27fe[_0x7711('0x6d')])?_['toNumber'](_0xc27fe['loggedin']):this[_0x7711('0x11')][_0xc27fe['queue']]['talking'];this[_0x7711('0x4f')](this['voiceQueues'][_0xc27fe[_0x7711('0x68')]],_0x7711('0x15'));}logger[_0x7711('0x45')](_0x7711('0x6f'),util['inspect'](this[_0x7711('0x11')][_0xc27fe[_0x7711('0x68')]],{'showHidden':![],'depth':null}));ami['emit']('custom:queuesummary',this[_0x7711('0x11')][_0xc27fe[_0x7711('0x68')]]);}}}catch(_0x4cff22){logger[_0x7711('0x3d')](_0x7711('0x65'),util[_0x7711('0x3f')](_0x4cff22,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x7711('0x37')]['syncQueueSummaryComplete']=function(_0x11fb8e){logger['debug'](_0x7711('0x70'),util['inspect'](_0x11fb8e,{'showHidden':![],'depth':null}));this[_0x7711('0x12')]=!![];};VoiceQueueReport['prototype'][_0x7711('0x19')]=function(_0x5c6801){try{if(this['isNotNull'](_0x5c6801)){logger[_0x7711('0x45')](_0x7711('0x71'),_0x5c6801[_0x7711('0x48')],util[_0x7711('0x3f')](_0x5c6801,{'showHidden':![],'depth':null}));if(_['isUndefined'](this['queueReports'][_0x5c6801['uniqueid']])){this[_0x7711('0xd')][_0x5c6801[_0x7711('0x48')]]=[];this['channels'][_0x5c6801[_0x7711('0x48')]]={};}var _0x1a6c7b=new QueueReport();_0x1a6c7b['name']=_0x5c6801['queue'];_0x1a6c7b['type']=this[_0x7711('0x11')][_0x1a6c7b[_0x7711('0x4a')]]&&this[_0x7711('0x11')][_0x1a6c7b[_0x7711('0x4a')]][_0x7711('0x50')]?this[_0x7711('0x11')][_0x1a6c7b['name']][_0x7711('0x50')]||_0x7711('0x51'):_0x7711('0x51');_0x1a6c7b[_0x7711('0x68')]=_0x5c6801[_0x7711('0x68')];_0x1a6c7b['queuecallerjoinAt']=moment()[_0x7711('0x4d')](_0x7711('0x72'));_0x1a6c7b[_0x7711('0x73')]=_0x5c6801[_0x7711('0x73')];_0x1a6c7b[_0x7711('0x74')]=_0x5c6801[_0x7711('0x74')];_0x1a6c7b[_0x7711('0x48')]=_0x5c6801[_0x7711('0x48')];logger['info'](_0x7711('0x75'),_0x1a6c7b[_0x7711('0x4a')],_0x1a6c7b[_0x7711('0x50')]);_['merge'](_0x1a6c7b,_[_0x7711('0x76')](_0x5c6801,_[_0x7711('0x77')](_0x1a6c7b)));this[_0x7711('0xd')][_0x5c6801['uniqueid']]['push'](_0x1a6c7b);this[_0x7711('0xf')][_0x5c6801[_0x7711('0x48')]]=_0x1a6c7b;this[_0x7711('0x78')](_0x1a6c7b,_0x7711('0x79'));}}catch(_0x57a6ba){logger['error'](_0x7711('0x71'),_0x5c6801[_0x7711('0x48')],util[_0x7711('0x3f')](_0x57a6ba,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x7711('0x37')]['syncQueueCallerAbandon']=function(_0x20151b){try{if(this['isNotNull'](_0x20151b)){logger[_0x7711('0x45')](_0x7711('0x7a'),_0x20151b[_0x7711('0x48')],util['inspect'](_0x20151b,{'showHidden':![],'depth':null}));if(this['queueReports'][_0x20151b[_0x7711('0x48')]]){var _0xe4251b=_[_0x7711('0x7b')](this[_0x7711('0xd')][_0x20151b[_0x7711('0x48')]]);_0xe4251b[_0x7711('0x7c')]=![];_0xe4251b[_0x7711('0x7d')]=null;_0xe4251b[_0x7711('0x7e')]=_0x20151b[_0x7711('0x7e')];_0xe4251b[_0x7711('0x7f')]=_0x20151b[_0x7711('0x7f')];_0xe4251b[_0x7711('0x1a')]=!![];_0xe4251b[_0x7711('0x80')]=moment()['format'](_0x7711('0x72'));_0xe4251b[_0x7711('0x81')]=_0x7711('0x82');_0xe4251b[_0x7711('0x83')]=null;logger[_0x7711('0x69')]('[voiceQueueReport][queuecallerabandon]\x20name:%s\x20type:%s',_0xe4251b[_0x7711('0x4a')],_0xe4251b[_0x7711('0x50')]);this[_0x7711('0xf')][_0x20151b['uniqueid']]=_0xe4251b;this['emitVoiceQueueChannelRemove'](_0xe4251b,_0x7711('0x1a'));}}}catch(_0x46b16d){logger[_0x7711('0x3d')](_0x7711('0x7a'),_0x20151b[_0x7711('0x48')],util[_0x7711('0x3f')](_0x46b16d,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x7711('0x37')][_0x7711('0x1d')]=function(_0x2e1ae7){try{if(this['isNotNull'](_0x2e1ae7)){logger[_0x7711('0x45')](_0x7711('0x84'),_0x2e1ae7[_0x7711('0x48')],util[_0x7711('0x3f')](_0x2e1ae7,{'showHidden':![],'depth':null}));if(this[_0x7711('0xd')][_0x2e1ae7[_0x7711('0x48')]]){var _0x49a5c2=_[_0x7711('0x7b')](this[_0x7711('0xd')][_0x2e1ae7[_0x7711('0x48')]]);_0x49a5c2[_0x7711('0x85')]=moment()[_0x7711('0x4d')](_0x7711('0x72'));_0x49a5c2[_0x7711('0x86')]=_0x2e1ae7[_0x7711('0x86')];_0x49a5c2[_0x7711('0x87')]=_0x2e1ae7[_0x7711('0x87')];logger[_0x7711('0x69')](_0x7711('0x88'),_0x49a5c2[_0x7711('0x4a')],_0x49a5c2['type'],_0x2e1ae7[_0x7711('0x86')],_0x2e1ae7[_0x7711('0x87')]);this['channels'][_0x2e1ae7[_0x7711('0x48')]]=_0x49a5c2;this['emitVoiceQueueChannelSave'](_0x49a5c2,'queuecallerleave');}}}catch(_0x3b5297){logger['error'](_0x7711('0x84'),_0x2e1ae7['uniqueid'],util[_0x7711('0x3f')](_0x3b5297,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x7711('0x37')][_0x7711('0x89')]=function(_0x23706f){try{if(this[_0x7711('0x60')](_0x23706f)){logger[_0x7711('0x45')](_0x7711('0x8a'),_0x23706f['uniqueid'],util[_0x7711('0x3f')](_0x23706f,{'showHidden':![],'depth':null}));if(this['queueReports'][_0x23706f['uniqueid']]){var _0x2b1a21=_[_0x7711('0x7b')](this[_0x7711('0xd')][_0x23706f['uniqueid']]);_0x2b1a21['queuecallercomplete']=!![];_0x2b1a21[_0x7711('0x81')]=_0x7711('0x8b');logger[_0x7711('0x69')](_0x7711('0x8c'),_0x2b1a21[_0x7711('0x4a')],_0x2b1a21[_0x7711('0x50')]);}}}catch(_0x53fd68){logger[_0x7711('0x3d')](_0x7711('0x8a'),_0x23706f[_0x7711('0x48')],util['inspect'](_0x53fd68,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x7711('0x37')]['syncAgentComplete']=function(_0x463f7a){try{if(this[_0x7711('0x60')](_0x463f7a)){logger['debug'](_0x7711('0x8d'),_0x463f7a['uniqueid'],util[_0x7711('0x3f')](_0x463f7a,{'showHidden':![],'depth':null}));if(this[_0x7711('0xd')][_0x463f7a[_0x7711('0x48')]]){var _0x57a4af=_[_0x7711('0x7b')](this[_0x7711('0xd')][_0x463f7a[_0x7711('0x48')]]);_0x57a4af[_0x7711('0x1a')]=![];_0x57a4af[_0x7711('0x80')]=null;_0x57a4af[_0x7711('0x8e')]=!![];_0x57a4af[_0x7711('0x83')]=_0x463f7a[_0x7711('0x8f')];_0x57a4af[_0x7711('0x7e')]=_0x463f7a[_0x7711('0x7e')];_0x57a4af['queuecallercomplete']=!![];_0x57a4af[_0x7711('0x90')]=![];_0x57a4af[_0x7711('0x91')]=null;if(!_0x57a4af[_0x7711('0x92')]){if(_0x463f7a[_0x7711('0x93')]==_0x7711('0x92')){_0x57a4af[_0x7711('0x81')]=_0x7711('0x94');logger['info']('[voiceQueueReport][agentcomplete]\x20name:%s\x20type:%s\x20queuecallerexitreason:COMPLETED',_0x57a4af[_0x7711('0x4a')],_0x57a4af[_0x7711('0x50')]);}else{if(_[_0x7711('0x95')](_0x463f7a['channel'][_0x7711('0x96')](),_0x7711('0x97'))){if(this['queueReports'][_0x463f7a[_0x7711('0x98')]]){var _0x4c9d7a=_[_0x7711('0x7b')](this['queueReports'][_0x463f7a[_0x7711('0x98')]]);_0x4c9d7a['queuecallercomplete']=![];_0x4c9d7a[_0x7711('0x90')]=!![];_0x4c9d7a[_0x7711('0x91')]=moment(_0x57a4af[_0x7711('0x99')])[_0x7711('0x9a')](_0x463f7a[_0x7711('0x7e')],_0x7711('0x9b'))['format'](_0x7711('0x72'));_0x4c9d7a[_0x7711('0x81')]=_0x7711('0x9c');_0x4c9d7a[_0x7711('0x92')]=!![];_0x4c9d7a['transfertype']=_0x7711('0x9d');_0x4c9d7a[_0x7711('0x9e')]=_0x463f7a['destexten'];_0x4c9d7a[_0x7711('0x9f')]=_0x463f7a[_0x7711('0x48')];logger[_0x7711('0x69')](_0x7711('0xa0'),_0x4c9d7a[_0x7711('0x4a')],_0x4c9d7a[_0x7711('0x50')]);var _0x453ef7=this[_0x7711('0xd')][_0x463f7a['linkedid']];this['queueReports'][_0x463f7a[_0x7711('0x98')]]=this[_0x7711('0xd')][_0x463f7a[_0x7711('0x48')]];this[_0x7711('0xd')][_0x463f7a[_0x7711('0x48')]]=_0x453ef7;}}else{_0x57a4af[_0x7711('0x81')]=_0x7711('0xa1')+_0x463f7a[_0x7711('0x93')][_0x7711('0xa2')]();logger[_0x7711('0x69')](_0x7711('0xa3'),_0x57a4af[_0x7711('0x4a')],_0x57a4af[_0x7711('0x50')],_0x57a4af['queuecallerexitreason']);}}}this['channels'][_0x463f7a[_0x7711('0x48')]]=_0x57a4af;this[_0x7711('0x42')](_0x57a4af,_0x7711('0x1e'));}}}catch(_0x371c5d){logger[_0x7711('0x3d')](_0x7711('0x8d'),_0x463f7a[_0x7711('0x48')],util[_0x7711('0x3f')](_0x371c5d,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x7711('0x37')][_0x7711('0x22')]=function(_0x5b697f){try{if(this['isNotNull'](_0x5b697f)){logger[_0x7711('0x45')](_0x7711('0xa4'),_0x5b697f['uniqueid'],util['inspect'](_0x5b697f,{'showHidden':![],'depth':null}));this['addVariable'](_0x5b697f['uniqueid'],_['keys'](_0x5b697f[_0x7711('0xa5')])[0x0],_0x5b697f[_0x7711('0xa6')]);if(this[_0x7711('0xd')][_0x5b697f[_0x7711('0x48')]]){var _0xacacb9=_[_0x7711('0x7b')](this[_0x7711('0xd')][_0x5b697f[_0x7711('0x48')]]);if(_0xacacb9){if(this[_0x7711('0x60')](_0x5b697f[_0x7711('0xa5')])&&this['isNotNull'](_0x5b697f['variable']['queuestatus'])){switch(_0x5b697f[_0x7711('0xa6')]){case'CONTINUE':_0xacacb9[_0x7711('0x90')]=![];_0xacacb9['queuecallerexitAt']=null;break;case _0x7711('0xa7'):_0xacacb9['lastevent']=_0x7711('0xa8');_0xacacb9['queuecallerexit']=!![];_0xacacb9[_0x7711('0x91')]=moment()[_0x7711('0x4d')](_0x7711('0x72'));_0xacacb9[_0x7711('0x85')]=moment()[_0x7711('0x4d')](_0x7711('0x72'));logger['debug'](_0x7711('0xa9'),_0x5b697f[_0x7711('0x48')],util[_0x7711('0x3f')](_0xacacb9,{'showHidden':![],'depth':null}));ami['emit']('custom:timeout',_0xacacb9);break;default:_0xacacb9[_0x7711('0x90')]=!![];_0xacacb9[_0x7711('0x91')]=moment()[_0x7711('0x4d')](_0x7711('0x72'));_0xacacb9[_0x7711('0x85')]=moment()[_0x7711('0x4d')](_0x7711('0x72'));}_0xacacb9['queuecallerabandon']=![];_0xacacb9[_0x7711('0x80')]=null;_0xacacb9['queuecallerexitreason']=_0x5b697f['value'];this[_0x7711('0xf')][_0x5b697f[_0x7711('0x48')]]=_0xacacb9;this[_0x7711('0x42')](_0xacacb9,'varset');}else if(this['isNotNull'](_0x5b697f[_0x7711('0xa5')])&&this[_0x7711('0x60')](_0x5b697f['variable']['queueposition'])){if(!_0xacacb9[_0x7711('0x1a')]){_0xacacb9[_0x7711('0x90')]=!![];_0xacacb9[_0x7711('0x91')]=moment()[_0x7711('0x4d')]('YYYY-MM-DD\x20HH:mm:ss');_0xacacb9[_0x7711('0x81')]=_0x7711('0xaa');_0xacacb9[_0x7711('0x85')]=moment()['format'](_0x7711('0x72'));this[_0x7711('0xf')][_0x5b697f['uniqueid']]=_0xacacb9;}}logger[_0x7711('0x69')](_0x7711('0xab'),_0x5b697f[_0x7711('0x48')],_0xacacb9['name'],_0xacacb9[_0x7711('0x50')],_[_0x7711('0x77')](_0x5b697f[_0x7711('0xa5')])[0x0],_0x5b697f['value']);_0xacacb9['variables']=this[_0x7711('0x14')][_0x5b697f[_0x7711('0x48')]];}}}}catch(_0x438da0){logger[_0x7711('0x3d')](_0x7711('0xa4'),_0x5b697f[_0x7711('0x48')],util[_0x7711('0x3f')](_0x438da0,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x7711('0x37')][_0x7711('0xac')]=function(_0x32bd30,_0x5b7167,_0x26dd69){var _0x101a77=[_0x7711('0xad'),_0x7711('0xae'),_0x7711('0xaf'),_0x7711('0xb0'),'rtpaudioqosloss','rtpaudioqoslossbridged','rtpaudioqosrtt',_0x7711('0xb1'),_0x7711('0xb2'),_0x7711('0xb3'),_0x7711('0xb4'),_0x7711('0xb5'),_0x7711('0xb6'),_0x7711('0xb7'),'memberinterface',_0x7711('0xb8'),'membername',_0x7711('0xb9'),_0x7711('0xba')];if(!_[_0x7711('0xbb')](_0x5b7167)&&!_[_0x7711('0xbc')](_0x101a77,_0x5b7167)){if(_[_0x7711('0x61')](this[_0x7711('0x14')][_0x32bd30])){this['variables'][_0x32bd30]={};}this['variables'][_0x32bd30][_0x5b7167]=_0x26dd69;}};VoiceQueueReport[_0x7711('0x37')]['syncHangup']=function(_0x46d940){try{if(this[_0x7711('0x60')](_0x46d940)){logger[_0x7711('0x45')](_0x7711('0xbd'),_0x46d940[_0x7711('0x48')],util[_0x7711('0x3f')](_0x46d940,{'showHidden':![],'depth':null}));if(this[_0x7711('0xd')][_0x46d940[_0x7711('0x48')]]){for(var _0x42d34c=0x0,_0x4e0653={};_0x42d34c<this[_0x7711('0xd')][_0x46d940[_0x7711('0x48')]]['length'];_0x42d34c+=0x1){_0x4e0653=this[_0x7711('0xd')][_0x46d940[_0x7711('0x48')]][_0x42d34c];if(this[_0x7711('0x11')][_0x4e0653[_0x7711('0x68')]]){if(_0x4e0653[_0x7711('0x90')]&&_0x4e0653[_0x7711('0x92')]!=!![]){this['voiceQueues'][_0x4e0653[_0x7711('0x68')]][_0x7711('0x57')]+=0x1;}if(_0x4e0653[_0x7711('0x1a')]){this[_0x7711('0x11')][_0x4e0653[_0x7711('0x68')]][_0x7711('0x58')]+=0x1;}this[_0x7711('0x11')][_0x4e0653[_0x7711('0x68')]]['sumHoldTime']+=moment(_0x4e0653[_0x7711('0x85')])[_0x7711('0xbe')](_0x4e0653[_0x7711('0x99')],'seconds')||0x0;if(_0x42d34c===this[_0x7711('0xd')][_0x46d940[_0x7711('0x48')]][_0x7711('0xbf')]-0x1){this[_0x7711('0x11')][_0x4e0653[_0x7711('0x68')]][_0x7711('0x55')]+=moment()[_0x7711('0xc0')](0x0)[_0x7711('0xbe')](_0x4e0653[_0x7711('0x99')],_0x7711('0x9b'));this['voiceQueues'][_0x4e0653['queue']]['total']+=0x1;if(_0x4e0653['queuecallercomplete']){this[_0x7711('0x11')][_0x4e0653[_0x7711('0x68')]][_0x7711('0x52')]+=0x1;this[_0x7711('0x11')][_0x4e0653[_0x7711('0x68')]]['sumBillable']+=moment()[_0x7711('0xc0')](0x0)[_0x7711('0xbe')](_0x4e0653[_0x7711('0x85')],_0x7711('0x9b'));_0x4e0653[_0x7711('0x7d')]=moment()['format'](_0x7711('0x72'));_0x4e0653[_0x7711('0x90')]=![];_0x4e0653[_0x7711('0x91')]=null;}if(_0x4e0653[_0x7711('0x90')]&&_0x4e0653[_0x7711('0x92')]!=!![]){_0x4e0653['lastevent']=_0x7711('0x57');logger['debug'](_0x7711('0xc1'),_0x46d940[_0x7711('0x48')],util[_0x7711('0x3f')](_0x4e0653,{'showHidden':![],'depth':null}));ami[_0x7711('0x44')](_0x7711('0xc2'),_0x4e0653);}if(_0x4e0653['queuecallerabandon']){_0x4e0653[_0x7711('0xc3')]=_0x7711('0x58');logger[_0x7711('0x45')]('[%s][voiceQueueReport][hangup]\x20sending\x20queuecallerabandon\x20event:',_0x46d940['uniqueid'],util[_0x7711('0x3f')](_0x4e0653,{'showHidden':![],'depth':null}));ami['emit'](_0x7711('0xc4'),_0x4e0653);}}else{this[_0x7711('0x11')][_0x4e0653['queue']]['sumDuration']+=this[_0x7711('0x11')][_0x4e0653[_0x7711('0x68')]]['sumHoldTime'];}logger[_0x7711('0x69')](_0x7711('0xc5'),_0x46d940[_0x7711('0x48')],_0x4e0653[_0x7711('0x4a')],_0x4e0653[_0x7711('0x50')],_0x46d940[_0x7711('0xc6')]);this[_0x7711('0xf')][_0x46d940[_0x7711('0x48')]]=_0x4e0653;this[_0x7711('0x42')](_0x4e0653,_0x7711('0x23'));this[_0x7711('0x4f')](this['voiceQueues'][_0x4e0653['queue']],_0x7711('0x23'));}}logger[_0x7711('0x45')](_0x7711('0xc7'),_0x46d940[_0x7711('0x48')],util[_0x7711('0x3f')](this['queueReports'][_0x46d940[_0x7711('0x48')]],{'showHidden':![],'depth':null}));ami[_0x7711('0x44')]('custom:voiceQueueReport',this[_0x7711('0xd')][_0x46d940[_0x7711('0x48')]]);delete this[_0x7711('0xd')][_0x46d940[_0x7711('0x48')]];delete this[_0x7711('0xf')][_0x46d940[_0x7711('0x48')]];}if(this[_0x7711('0x14')][_0x46d940[_0x7711('0x48')]]){delete this['variables'][_0x46d940['uniqueid']];}}}catch(_0x3ef847){logger[_0x7711('0x3d')](_0x7711('0xbd'),_0x46d940[_0x7711('0x48')],util[_0x7711('0x3f')](_0x3ef847,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x7711('0x37')][_0x7711('0x2b')]=function(_0x3bb357){try{if(this[_0x7711('0x60')](_0x3bb357)){logger['debug'](_0x7711('0xc8'),_0x3bb357[_0x7711('0x48')],util['inspect'](_0x3bb357,{'showHidden':![],'depth':null}));var _0x3bf20c;if(this['queueReports'][_0x3bb357['transfereeuniqueid']]){_0x3bf20c=_['last'](this[_0x7711('0xd')][_0x3bb357[_0x7711('0xc9')]]);_0x3bf20c['transferexten']=_0x3bb357[_0x7711('0xca')];_0x3bf20c[_0x7711('0x9f')]=_0x3bb357[_0x7711('0xcb')];_0x3bf20c[_0x7711('0x81')]='ATTENDEDTRANSFER';_0x3bf20c[_0x7711('0x92')]=!![];_0x3bf20c[_0x7711('0xcc')]=_0x7711('0xcd');if(this[_0x7711('0xd')][_0x3bb357[_0x7711('0xcb')]]){var _0x1f5984=this[_0x7711('0xd')][_0x3bb357[_0x7711('0xcb')]];this[_0x7711('0xd')][_0x3bb357['secondtransfereruniqueid']]=this[_0x7711('0xd')][_0x3bb357[_0x7711('0xc9')]];this['queueReports'][_0x3bb357[_0x7711('0xc9')]]=_0x1f5984;var _0x1d0306=_[_0x7711('0x7b')](this[_0x7711('0xd')][_0x3bb357[_0x7711('0xc9')]]);_0x1d0306[_0x7711('0x39')]=!![];}logger[_0x7711('0x69')](_0x7711('0xce'),_0x3bb357[_0x7711('0x48')],_0x3bf20c[_0x7711('0x4a')],_0x3bf20c[_0x7711('0x50')],_0x3bf20c[_0x7711('0x9e')],_0x3bf20c[_0x7711('0x9f')]);}else if(this[_0x7711('0xd')][_0x3bb357[_0x7711('0xcf')]]){_0x3bf20c=_['last'](this['queueReports'][_0x3bb357['transfertargetuniqueid']]);_0x3bf20c[_0x7711('0x9e')]=_0x3bb357[_0x7711('0xd0')];_0x3bf20c[_0x7711('0x9f')]=_0x3bb357[_0x7711('0xd1')];_0x3bf20c[_0x7711('0x81')]=_0x7711('0xd2');_0x3bf20c['transfer']=!![];_0x3bf20c['transfertype']=_0x7711('0xcd');if(this[_0x7711('0xd')][_0x3bb357['origtransfereruniqueid']]){var _0x1f5984=this[_0x7711('0xd')][_0x3bb357['origtransfereruniqueid']];this['queueReports'][_0x3bb357[_0x7711('0xd1')]]=this[_0x7711('0xd')][_0x3bb357['transfertargetuniqueid']];this[_0x7711('0xd')][_0x3bb357[_0x7711('0xcf')]]=_0x1f5984;var _0x1d0306=_[_0x7711('0x7b')](this[_0x7711('0xd')][_0x3bb357[_0x7711('0xcf')]]);_0x1d0306[_0x7711('0x39')]=!![];}logger['info']('[%s][voiceQueueReport][attendedTransfer]\x20name:%s\x20type:%s\x20transferexten:%s\x20transferuniqueid:%s',_0x3bb357[_0x7711('0x48')],_0x3bf20c[_0x7711('0x4a')],_0x3bf20c[_0x7711('0x50')],_0x3bf20c['transferexten'],_0x3bf20c['transferuniqueid']);}}}catch(_0x2ac50f){logger[_0x7711('0x3d')]('[%s][voiceQueueReport][attendedtransfer]',_0x3bb357[_0x7711('0x48')],util[_0x7711('0x3f')](_0x2ac50f,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x7711('0x37')][_0x7711('0x2d')]=function(_0x2a4e5b){try{if(this[_0x7711('0x60')](_0x2a4e5b)){logger['debug'](_0x7711('0xd3'),_0x2a4e5b[_0x7711('0x48')],util[_0x7711('0x3f')](_0x2a4e5b,{'showHidden':![],'depth':null}));if(this[_0x7711('0xd')][_0x2a4e5b[_0x7711('0xc9')]]){var _0x19593a=_['last'](this['queueReports'][_0x2a4e5b[_0x7711('0xc9')]]);_0x19593a[_0x7711('0x81')]=_0x7711('0xd4');_0x19593a['transfer']=!![];_0x19593a[_0x7711('0xcc')]=_0x7711('0xd5');_0x19593a[_0x7711('0x9e')]=_0x2a4e5b['extension'];_0x19593a['transferuniqueid']=_0x2a4e5b[_0x7711('0xc9')];logger[_0x7711('0x69')](_0x7711('0xd6'),_0x2a4e5b['uniqueid'],_0x19593a[_0x7711('0x4a')],_0x19593a[_0x7711('0x50')],_0x19593a['transferexten'],_0x19593a[_0x7711('0x9f')]);this[_0x7711('0x24')]({'event':'BlindTransfer','uniqueid':_0x2a4e5b[_0x7711('0xc9')],'context':_0x2a4e5b['context'],'channel':_0x2a4e5b[_0x7711('0xd7')]});}}}catch(_0x1eb69f){logger[_0x7711('0x3d')](_0x7711('0xd3'),_0x2a4e5b[_0x7711('0x48')],util[_0x7711('0x3f')](_0x1eb69f,{'showHidden':![],'depth':null}));}};VoiceQueueReport['prototype'][_0x7711('0x28')]=function(_0xe3620f){try{if(this['isNotNull'](_0xe3620f)){logger[_0x7711('0x45')](_0x7711('0xd8'),_0xe3620f[_0x7711('0x48')],util[_0x7711('0x3f')](_0xe3620f,{'showHidden':![],'depth':null}));if(this['queueReports'][_0xe3620f[_0x7711('0x48')]]){var _0x584b24=_[_0x7711('0x7b')](this['queueReports'][_0xe3620f[_0x7711('0x48')]]);if(!_[_0x7711('0xbb')](_0x584b24[_0x7711('0x85')])){_0x584b24[_0x7711('0xd9')]=moment()[_0x7711('0x4d')](_0x7711('0x72'));logger[_0x7711('0x69')]('[%s][voiceQueueReport][musiconholdstart]\x20mohstarttime:%s',_0xe3620f['uniqueid'],_0x584b24[_0x7711('0xd9')]);}}}}catch(_0xeee068){logger[_0x7711('0x3d')](_0x7711('0xd8'),_0xe3620f[_0x7711('0x48')],util[_0x7711('0x3f')](_0xeee068,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x7711('0x37')][_0x7711('0x29')]=function(_0x544289){try{if(this[_0x7711('0x60')](_0x544289)){logger[_0x7711('0x45')](_0x7711('0xda'),_0x544289['uniqueid'],util[_0x7711('0x3f')](_0x544289,{'showHidden':![],'depth':null}));if(this[_0x7711('0xd')][_0x544289[_0x7711('0x48')]]){var _0x5cf038=_['last'](this['queueReports'][_0x544289[_0x7711('0x48')]]);if(!_[_0x7711('0xbb')](_0x5cf038[_0x7711('0xd9')])){_0x5cf038[_0x7711('0xdb')]+=moment()['milliseconds'](0x0)['diff'](_0x5cf038[_0x7711('0xd9')],_0x7711('0x9b'));logger[_0x7711('0x69')](_0x7711('0xdc'),_0x544289[_0x7711('0x48')],_0x5cf038['mohtime']);delete _0x5cf038[_0x7711('0xd9')];}}}}catch(_0x5481c3){logger[_0x7711('0x3d')](_0x7711('0xda'),_0x544289[_0x7711('0x48')],util[_0x7711('0x3f')](_0x5481c3,{'showHidden':![],'depth':null}));}};module[_0x7711('0xdd')]=VoiceQueueReport;