Built motion from commit (unavailable).|2.5.21
[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 _0x4728=['redis','localhost','prototype','enqueue','tail','finally','sequence','agents','queueChannels','voiceQueues','flagQueueSummary','campaigns','variables','queuesummary','syncQueueSummary','syncQueueSummaryComplete','bind','queuecallerjoin','syncQueueCallerJoin','queuecallerabandon','syncQueueCallerAbandon','queuecallerleave','syncQueueCallerLeave','agentcomplete','syncAgentConnect','syncHangup','fullybooted','syncFullyBooted','syncMusicOnHoldStart','musiconholdstop','syncMusicOnHoldStop','attendedtransfer','syncAttendedTransfer','syncBlindTransfer','loopQueueSummary','isEmpty','hasOwnProperty','originated','pTalking','waiting','queueStatusComplete','unlockRR','channels','switch','Action','status','channel','catch','message','No\x20such\x20channel','queueReports','error','[%s][voiceQueueReport][checkQueueReport]','inspect','[%s][voiceQueueReport][checkVariables]','[FullyBooted]\x20clear\x20realtime','clearQueueReport','emitVoiceQueueChannelRemove','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:','format','voice_queue_channel:remove','emitVoiceQueueSummary','inbound','answered','loggedIn','sumDuration','sumHoldTime','talking','unmanaged','abandoned','Trunk','active','callerid','Interval','stringify','md5','voice_queue:save','isNotNull','isUndefined','loopQueueShow','queues','[voiceQueueReport][queues]','then','queue','[voiceQueueReport][queuesummary]\x20event:','[voiceQueueReport][queuesummary]\x20name:%s','callers','toNumber','loggedin','available','[voiceQueueReport][queuesummary]\x20sending\x20queuesummary\x20event:','custom:queuesummary','[voiceQueueReport][queuesummary]','[voiceQueueReport][queuesummarycomplete]\x20event:','[%s][voiceQueueReport][queuecallerjoin]','uniqueid','type','queuecallerjoinAt','YYYY-MM-DD\x20HH:mm:ss','position','count','[voiceQueueReport][queuecallerjoin]\x20name:%s\x20type:%s','pick','keys','push','[%s][voiceQueueReport][queuecallerabandon]','last','queuecallercompleteAt','holdtime','originalposition','queuecallerexitreason','ABANDONED','info','[voiceQueueReport][queuecallerabandon]\x20name:%s\x20type:%s','[%s][voiceQueueReport][queuecallerleave]','queuecallerleaveAt','connectedlinenum','connectedlinename','[%s][voiceQueueReport][agentconnect]','queuecallercomplete','COMPLETEDBYAGENT','[voiceQueueReport][agentconnect]\x20name:%s\x20type:%s\x20queuecallerexitreason:COMPLETEDBYAGENT','syncAgentComplete','[%s][voiceQueueReport][agentcomplete]','queuecallerabandonAt','lastAssignedTo','membername','queuecallerexit','queuecallerexitAt','reason','transfer','COMPLETED','[voiceQueueReport][agentcomplete]\x20name:%s\x20type:%s\x20queuecallerexitreason:COMPLETED','startsWith','linkedid','seconds','FORWARDTRANSFER','transfertype','FORWARD','transferuniqueid','toUpperCase','[voiceQueueReport][agentcomplete]\x20name:%s\x20type:%s\x20queuecallerexitreason:%s','syncVarSet','[%s][voiceQueueReport][varset]','addVariable','variable','value','CONTINUE','TIMEOUT','timeout','varset','queueposition','EXITWITHKEY','[%s][voiceQueueReport][varset]\x20name:%s\x20type:%s\x20variable:%s\x20value:%s','rtpaudioqos','rtpaudioqosbridged','rtpaudioqosjitter','rtpaudioqosjitterbridged','rtpaudioqosloss','rtpaudioqoslossbridged','rtpaudioqosrtt','rtpaudioqosrttbridged','sipcallid','sipuri','bridgepeer','bridgepvtcallid','membercalls','memberinterface','memberlastcall','memberpenalty','memberrealtime','isNil','includes','[%s][voiceQueueReport][hangup]','diff','length','milliseconds','lastevent','custom:queuecallerunmanaged','[%s][voiceQueueReport][hangup]\x20sending\x20queuecallerabandon\x20event:','custom:queuecallerabandon','[%s][voiceQueueReport][hangup]\x20name:%s\x20type:%s\x20reason:%s','cause-txt','hangup','[%s][voiceQueueReport][hangup]\x20sending\x20voiceQueueReport\x20event:','transfereeuniqueid','transferexten','secondtransfererexten','secondtransfereruniqueid','ATTENDEDTRANSFER','ATTENDED','[%s][voiceQueueReport][attendedTransfer]\x20name:%s\x20type:%s\x20transferexten:%s\x20transferuniqueid:%s','transfertargetuniqueid','origtransfererexten','origtransfereruniqueid','[%s][voiceQueueReport][blindtransfer]','extension','[%s][voiceQueueReport][blindTransfer]\x20name:%s\x20type:%s\x20transferexten:%s\x20transferuniqueid:%s','BlindTransfer','context','transfererchannel','[%s][voiceQueueReport][musiconholdstart]','mohstarttime','[%s][voiceQueueReport][musiconholdstart]\x20mohstarttime:%s','[%s][voiceQueueReport][musiconholdstop]','mohtime','exports','moment','util','ioredis','../../../config/environment','ami','../ami','defaults'];(function(_0x4d2e37,_0x1a60d4){var _0x223f0f=function(_0x4b4659){while(--_0x4b4659){_0x4d2e37['push'](_0x4d2e37['shift']());}};_0x223f0f(++_0x1a60d4);}(_0x4728,0x1b5));var _0x8472=function(_0x2dfc49,_0x16d7a3){_0x2dfc49=_0x2dfc49-0x0;var _0x1324e3=_0x4728[_0x2dfc49];return _0x1324e3;};'use strict';var _=require('lodash');var moment=require(_0x8472('0x0'));var util=require(_0x8472('0x1'));var md5=require('md5');var Redis=require(_0x8472('0x2'));var config=require(_0x8472('0x3'));var logger=require('../../../config/logger')(_0x8472('0x4'));var ami=require(_0x8472('0x5'));var QueueReport=require('../model/queueReport');config['redis']=_[_0x8472('0x6')](config[_0x8472('0x7')],{'host':_0x8472('0x8'),'port':0x18eb});var io=require('socket.io-emitter')(new Redis(config[_0x8472('0x7')]));var Sequence=function(){};Sequence[_0x8472('0x9')][_0x8472('0xa')]=function(_0x27861f){this[_0x8472('0xb')]=this[_0x8472('0xb')]?this[_0x8472('0xb')][_0x8472('0xc')](_0x27861f):_0x27861f();};function VoiceQueueReport(_0x1de38a){this[_0x8472('0xd')]=new Sequence();this['queueReports']={};this[_0x8472('0xe')]=_0x1de38a[_0x8472('0xe')];this['channels']=_0x1de38a[_0x8472('0xf')];this[_0x8472('0x10')]=_0x1de38a['voiceQueues'];this[_0x8472('0x11')]=!![];this['campaigns']=_0x1de38a[_0x8472('0x12')];this[_0x8472('0x13')]={};ami['on'](_0x8472('0x14'),this[_0x8472('0x15')]['bind'](this));ami['on']('queuesummarycomplete',this[_0x8472('0x16')][_0x8472('0x17')](this));ami['on'](_0x8472('0x18'),this[_0x8472('0x19')][_0x8472('0x17')](this));ami['on'](_0x8472('0x1a'),this[_0x8472('0x1b')][_0x8472('0x17')](this));ami['on'](_0x8472('0x1c'),this[_0x8472('0x1d')]['bind'](this));ami['on'](_0x8472('0x1e'),this['syncAgentComplete'][_0x8472('0x17')](this));ami['on']('agentconnect',this[_0x8472('0x1f')][_0x8472('0x17')](this));ami['on']('varset',this['syncVarSet'][_0x8472('0x17')](this));ami['on']('hangup',this[_0x8472('0x20')][_0x8472('0x17')](this));ami['on'](_0x8472('0x21'),this[_0x8472('0x22')][_0x8472('0x17')](this));ami['on']('musiconholdstart',this[_0x8472('0x23')][_0x8472('0x17')](this));ami['on'](_0x8472('0x24'),this[_0x8472('0x25')][_0x8472('0x17')](this));ami['on'](_0x8472('0x26'),this[_0x8472('0x27')][_0x8472('0x17')](this));ami['on']('blindtransfer',this[_0x8472('0x28')][_0x8472('0x17')](this));this[_0x8472('0x29')]();this['loopQueueShow']();}function clearChannels(_0x4f49af){if(!_[_0x8472('0x2a')](_0x4f49af)){for(var _0x15e4ac in _0x4f49af){if(_0x4f49af[_0x8472('0x2b')](_0x15e4ac)){delete _0x4f49af[_0x15e4ac];}}}}function clearCampaigns(_0x11dc7c){if(!_['isEmpty'](_0x11dc7c)){for(var _0x39f942 in _0x11dc7c){if(_0x11dc7c[_0x8472('0x2b')](_0x39f942)){_0x11dc7c[_0x39f942][_0x8472('0x2c')]=0x0;}}}}function clearVoiceQueues(_0x654df){if(!_[_0x8472('0x2a')](_0x654df)){for(var _0x54d48d in _0x654df){if(_0x654df[_0x8472('0x2b')](_0x54d48d)){_0x654df[_0x54d48d][_0x8472('0x2c')]=0x0;_0x654df[_0x54d48d]['talking']=0x0;_0x654df[_0x54d48d][_0x8472('0x2d')]=0x0;_0x654df[_0x54d48d][_0x8472('0x2e')]=0x0;_0x654df[_0x54d48d][_0x8472('0x2f')]=!![];}}}}function clearAgentBooked(_0x3bf0b2){if(!_[_0x8472('0x2a')](_0x3bf0b2)){for(var _0x473967 in _0x3bf0b2){if(_0x3bf0b2['hasOwnProperty'](_0x473967)){_0x3bf0b2[_0x473967][_0x8472('0x30')]=!![];}}}}VoiceQueueReport[_0x8472('0x9')]['clearZombieChannels']=function(){var _0x1771e2=this;for(var _0x231ff9 in this['channels']){if(this[_0x8472('0x31')][_0x8472('0x2b')](_0x231ff9)&&!this[_0x8472('0x31')][_0x231ff9][_0x8472('0x32')]){this[_0x8472('0xd')][_0x8472('0xa')](function(){if(!_['isNil'](_0x1771e2[_0x8472('0x31')][_0x231ff9])){return ami[_0x8472('0x33')]({'action':_0x8472('0x34'),'channel':_0x1771e2[_0x8472('0x31')][_0x231ff9][_0x8472('0x35')]})[_0x8472('0x36')](function(_0x384e64){if(_0x384e64[_0x8472('0x37')]===_0x8472('0x38')){setTimeout(function(){if(_0x1771e2[_0x8472('0x31')][_0x231ff9]){delete _0x1771e2[_0x8472('0x31')][_0x231ff9];logger['error']('[%s][voiceQueueReport][checkChannel]',_0x231ff9,util['inspect'](_0x384e64,{'showHidden':![],'depth':null}));}if(_0x1771e2[_0x8472('0x39')][_0x231ff9]){delete _0x1771e2[_0x8472('0x39')][_0x231ff9];logger[_0x8472('0x3a')](_0x8472('0x3b'),_0x231ff9,util[_0x8472('0x3c')](_0x384e64,{'showHidden':![],'depth':null}));}if(_0x1771e2[_0x8472('0x13')][_0x231ff9]){delete _0x1771e2[_0x8472('0x13')][_0x231ff9];logger['error'](_0x8472('0x3d'),_0x231ff9,util[_0x8472('0x3c')](_0x384e64,{'showHidden':![],'depth':null}));}},0x1f40);}});}});}}};VoiceQueueReport[_0x8472('0x9')][_0x8472('0x22')]=function(){logger[_0x8472('0x3a')](_0x8472('0x3e'));clearChannels(this[_0x8472('0x31')]);this[_0x8472('0x3f')](this[_0x8472('0x39')]);clearAgentBooked(this['agents']);clearVoiceQueues(this[_0x8472('0x10')]);clearCampaigns(this['campaigns']);};VoiceQueueReport[_0x8472('0x9')][_0x8472('0x3f')]=function(_0x375ceb){var _0x156992=this;if(!_[_0x8472('0x2a')](_0x375ceb)){for(var _0x17af56 in _0x375ceb){if(_0x375ceb[_0x8472('0x2b')](_0x17af56)){_0x156992[_0x8472('0x40')](_0x375ceb[_0x17af56],'clearqueuereport');delete _0x375ceb[_0x17af56];}}}};VoiceQueueReport[_0x8472('0x9')][_0x8472('0x41')]=function(_0x238297,_0x362ca6,_0x1daa69){io['to'](_0x238297)[_0x8472('0x41')](_0x362ca6,_0x1daa69);};VoiceQueueReport[_0x8472('0x9')][_0x8472('0x42')]=function(_0x5dca3e,_0x48a115){logger[_0x8472('0x43')](_0x8472('0x44')+_0x48a115+_0x8472('0x45'),_0x5dca3e['uniqueid'],util[_0x8472('0x3c')](_0x5dca3e,{'showHidden':![],'depth':null}));this['emit'](util['format'](_0x8472('0x46'),_0x5dca3e[_0x8472('0x47')]),_0x8472('0x48'),_0x5dca3e);};VoiceQueueReport[_0x8472('0x9')][_0x8472('0x40')]=function(_0x568495,_0xb22d84){logger[_0x8472('0x43')](_0x8472('0x44')+_0xb22d84+_0x8472('0x49'),_0x568495['uniqueid'],util[_0x8472('0x3c')](_0x568495,{'showHidden':![],'depth':null}));this['emit'](util[_0x8472('0x4a')]('voice:queue:%s',_0x568495[_0x8472('0x47')]),_0x8472('0x4b'),_0x568495);};VoiceQueueReport['prototype'][_0x8472('0x4c')]=function(_0x496a8b,_0x5e1115){if(_0x496a8b['type']===_0x8472('0x4d')){var _0x444eb8={'id':_0x496a8b['id'],'name':_0x496a8b[_0x8472('0x47')],'strategy':_0x496a8b['strategy'],'answered':_0x496a8b[_0x8472('0x4e')],'available':_0x496a8b['available'],'loggedIn':_0x496a8b[_0x8472('0x4f')],'pTalking':_0x496a8b[_0x8472('0x2d')],'sumBillable':_0x496a8b['sumBillable'],'sumDuration':_0x496a8b[_0x8472('0x50')],'sumHoldTime':_0x496a8b[_0x8472('0x51')]||0x0,'talking':_0x496a8b[_0x8472('0x52')],'total':_0x496a8b['total'],'type':_0x496a8b['type'],'unmanaged':_0x496a8b[_0x8472('0x53')],'abandoned':_0x496a8b[_0x8472('0x54')],'waiting':_0x496a8b[_0x8472('0x2e')]};if(_0x496a8b['Trunk']){_0x444eb8[_0x8472('0x55')]={'id':_0x496a8b[_0x8472('0x55')]['id'],'name':_0x496a8b['Trunk']['name'],'active':_0x496a8b[_0x8472('0x55')][_0x8472('0x56')],'callerid':_0x496a8b[_0x8472('0x55')][_0x8472('0x57')]};}if(_0x496a8b[_0x8472('0x58')]){_0x444eb8[_0x8472('0x58')]={'id':_0x496a8b['Interval']['id'],'name':_0x496a8b['Interval'][_0x8472('0x47')]};}var _0x394cda=md5(JSON[_0x8472('0x59')](_0x444eb8));if(_0x496a8b[_0x8472('0x5a')]!==_0x394cda){_0x496a8b[_0x8472('0x5a')]=_0x394cda;logger[_0x8472('0x43')]('[voiceQueueReport]['+_0x5e1115+']\x20sending\x20voice_queue:save\x20event:',util[_0x8472('0x3c')](_0x444eb8,{'showHidden':![],'depth':null}));this[_0x8472('0x41')](util['format'](_0x8472('0x46'),_0x444eb8[_0x8472('0x47')]),_0x8472('0x5b'),_0x444eb8);}}};VoiceQueueReport['prototype'][_0x8472('0x5c')]=function(_0x474b8f){return _0x474b8f!==null&&!_[_0x8472('0x5d')](_0x474b8f);};VoiceQueueReport[_0x8472('0x9')][_0x8472('0x5e')]=function(){var _0x2e1fb1=this;setInterval(function(){_0x2e1fb1['clearZombieChannels']();ami['Action']({'action':_0x8472('0x5f')})[_0x8472('0x36')](function(_0x3f83b8){logger[_0x8472('0x3a')](_0x8472('0x60'),util['inspect'](_0x3f83b8,{'showHidden':![],'depth':null}));});},0x2710);};VoiceQueueReport[_0x8472('0x9')][_0x8472('0x29')]=function(){var _0x3fbea3=this;setInterval(function(){if(_0x3fbea3[_0x8472('0x11')]){return ami[_0x8472('0x33')]({'action':_0x8472('0x14')})[_0x8472('0x61')](function(_0x5b0d40){_0x3fbea3[_0x8472('0x11')]=![];})[_0x8472('0x36')](function(_0xc6ef67){logger[_0x8472('0x3a')]('[voiceQueueReport][queuesummary]',util[_0x8472('0x3c')](_0xc6ef67,{'showHidden':![],'depth':null}));});}},0x3e8);};VoiceQueueReport[_0x8472('0x9')]['syncQueueSummary']=function(_0x2b3759){try{if(this[_0x8472('0x5c')](_0x2b3759)&&this[_0x8472('0x5c')](_0x2b3759[_0x8472('0x62')])){logger[_0x8472('0x43')](_0x8472('0x63'),util[_0x8472('0x3c')](_0x2b3759,{'showHidden':![],'depth':null}));if(this[_0x8472('0x10')][_0x2b3759[_0x8472('0x62')]]){logger['info'](_0x8472('0x64'),_0x2b3759[_0x8472('0x62')]);var _0x4054bb=_['countBy'](this[_0x8472('0x31')],_0x8472('0x62'))[_0x2b3759[_0x8472('0x62')]]||0x0;var _0x3bfbe4=_0x4054bb-_0x2b3759[_0x8472('0x65')];if(this[_0x8472('0x10')][_0x2b3759[_0x8472('0x62')]][_0x8472('0x2e')]!==_[_0x8472('0x66')](_0x2b3759[_0x8472('0x65')])||this[_0x8472('0x10')][_0x2b3759[_0x8472('0x62')]]['loggedIn']!==_[_0x8472('0x66')](_0x2b3759[_0x8472('0x67')])||this[_0x8472('0x10')][_0x2b3759[_0x8472('0x62')]]['available']!==_[_0x8472('0x66')](_0x2b3759[_0x8472('0x68')])||this[_0x8472('0x10')][_0x2b3759[_0x8472('0x62')]][_0x8472('0x52')]!==_0x3bfbe4){this[_0x8472('0x10')][_0x2b3759[_0x8472('0x62')]]['waiting']=_['toNumber'](_0x2b3759[_0x8472('0x65')]);this['voiceQueues'][_0x2b3759['queue']]['loggedIn']=_[_0x8472('0x66')](_0x2b3759[_0x8472('0x67')]);this[_0x8472('0x10')][_0x2b3759[_0x8472('0x62')]][_0x8472('0x68')]=_[_0x8472('0x66')](_0x2b3759['available']);this['voiceQueues'][_0x2b3759[_0x8472('0x62')]][_0x8472('0x52')]=_0x3bfbe4>0x0?_0x3bfbe4:0x0;this['voiceQueues'][_0x2b3759[_0x8472('0x62')]]['talking']=this['voiceQueues'][_0x2b3759['queue']]['talking']>_['toNumber'](_0x2b3759[_0x8472('0x67')])?_[_0x8472('0x66')](_0x2b3759[_0x8472('0x67')]):this[_0x8472('0x10')][_0x2b3759[_0x8472('0x62')]][_0x8472('0x52')];this[_0x8472('0x4c')](this[_0x8472('0x10')][_0x2b3759['queue']],_0x8472('0x14'));}logger['debug'](_0x8472('0x69'),util['inspect'](this[_0x8472('0x10')][_0x2b3759['queue']],{'showHidden':![],'depth':null}));ami[_0x8472('0x41')](_0x8472('0x6a'),this[_0x8472('0x10')][_0x2b3759[_0x8472('0x62')]]);}}}catch(_0x5a176a){logger['error'](_0x8472('0x6b'),util['inspect'](_0x5a176a,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x8472('0x9')][_0x8472('0x16')]=function(_0xb1ff5d){logger[_0x8472('0x43')](_0x8472('0x6c'),util['inspect'](_0xb1ff5d,{'showHidden':![],'depth':null}));this[_0x8472('0x11')]=!![];};VoiceQueueReport[_0x8472('0x9')][_0x8472('0x19')]=function(_0x5c9427){try{if(this['isNotNull'](_0x5c9427)){logger[_0x8472('0x43')](_0x8472('0x6d'),_0x5c9427['uniqueid'],util['inspect'](_0x5c9427,{'showHidden':![],'depth':null}));if(_[_0x8472('0x5d')](this[_0x8472('0x39')][_0x5c9427[_0x8472('0x6e')]])){this['queueReports'][_0x5c9427[_0x8472('0x6e')]]=[];this[_0x8472('0x31')][_0x5c9427[_0x8472('0x6e')]]={};}var _0xeb485f=new QueueReport();_0xeb485f['name']=_0x5c9427[_0x8472('0x62')];_0xeb485f[_0x8472('0x6f')]=this[_0x8472('0x10')][_0xeb485f['name']]&&this[_0x8472('0x10')][_0xeb485f[_0x8472('0x47')]][_0x8472('0x6f')]?this[_0x8472('0x10')][_0xeb485f[_0x8472('0x47')]][_0x8472('0x6f')]||_0x8472('0x4d'):'inbound';_0xeb485f['queue']=_0x5c9427[_0x8472('0x62')];_0xeb485f[_0x8472('0x70')]=moment()['format'](_0x8472('0x71'));_0xeb485f[_0x8472('0x72')]=_0x5c9427[_0x8472('0x72')];_0xeb485f[_0x8472('0x73')]=_0x5c9427[_0x8472('0x73')];_0xeb485f[_0x8472('0x6e')]=_0x5c9427[_0x8472('0x6e')];logger['info'](_0x8472('0x74'),_0xeb485f['name'],_0xeb485f[_0x8472('0x6f')]);_['merge'](_0xeb485f,_[_0x8472('0x75')](_0x5c9427,_[_0x8472('0x76')](_0xeb485f)));this[_0x8472('0x39')][_0x5c9427[_0x8472('0x6e')]][_0x8472('0x77')](_0xeb485f);this['channels'][_0x5c9427['uniqueid']]=_0xeb485f;this['emitVoiceQueueChannelSave'](_0xeb485f,_0x8472('0x18'));}}catch(_0x3b378c){logger[_0x8472('0x3a')](_0x8472('0x6d'),_0x5c9427[_0x8472('0x6e')],util[_0x8472('0x3c')](_0x3b378c,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x8472('0x9')][_0x8472('0x1b')]=function(_0x1fd92c){try{if(this['isNotNull'](_0x1fd92c)){logger['debug'](_0x8472('0x78'),_0x1fd92c[_0x8472('0x6e')],util[_0x8472('0x3c')](_0x1fd92c,{'showHidden':![],'depth':null}));if(this[_0x8472('0x39')][_0x1fd92c['uniqueid']]){var _0xe54f7a=_[_0x8472('0x79')](this[_0x8472('0x39')][_0x1fd92c[_0x8472('0x6e')]]);_0xe54f7a['queuecallercomplete']=![];_0xe54f7a[_0x8472('0x7a')]=null;_0xe54f7a[_0x8472('0x7b')]=_0x1fd92c[_0x8472('0x7b')];_0xe54f7a[_0x8472('0x7c')]=_0x1fd92c[_0x8472('0x7c')];_0xe54f7a[_0x8472('0x1a')]=!![];_0xe54f7a['queuecallerabandonAt']=moment()[_0x8472('0x4a')](_0x8472('0x71'));_0xe54f7a[_0x8472('0x7d')]=_0x8472('0x7e');_0xe54f7a['lastAssignedTo']=null;logger[_0x8472('0x7f')](_0x8472('0x80'),_0xe54f7a[_0x8472('0x47')],_0xe54f7a[_0x8472('0x6f')]);this['channels'][_0x1fd92c[_0x8472('0x6e')]]=_0xe54f7a;this[_0x8472('0x40')](_0xe54f7a,_0x8472('0x1a'));}}}catch(_0x40f4d1){logger[_0x8472('0x3a')](_0x8472('0x78'),_0x1fd92c[_0x8472('0x6e')],util[_0x8472('0x3c')](_0x40f4d1,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x8472('0x9')]['syncQueueCallerLeave']=function(_0x1c978a){try{if(this['isNotNull'](_0x1c978a)){logger['debug'](_0x8472('0x81'),_0x1c978a[_0x8472('0x6e')],util['inspect'](_0x1c978a,{'showHidden':![],'depth':null}));if(this[_0x8472('0x39')][_0x1c978a[_0x8472('0x6e')]]){var _0x20cc6=_[_0x8472('0x79')](this[_0x8472('0x39')][_0x1c978a[_0x8472('0x6e')]]);_0x20cc6[_0x8472('0x82')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss');_0x20cc6[_0x8472('0x83')]=_0x1c978a[_0x8472('0x83')];_0x20cc6[_0x8472('0x84')]=_0x1c978a[_0x8472('0x84')];logger['info']('[voiceQueueReport][queuecallerleave]\x20name:%s\x20type:%s\x20connectedlinenum:%s\x20connectedlinename:%s',_0x20cc6[_0x8472('0x47')],_0x20cc6[_0x8472('0x6f')],_0x1c978a['connectedlinenum'],_0x1c978a[_0x8472('0x84')]);this[_0x8472('0x31')][_0x1c978a[_0x8472('0x6e')]]=_0x20cc6;this['emitVoiceQueueChannelSave'](_0x20cc6,_0x8472('0x1c'));}}}catch(_0x33b965){logger[_0x8472('0x3a')](_0x8472('0x81'),_0x1c978a['uniqueid'],util[_0x8472('0x3c')](_0x33b965,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x8472('0x9')][_0x8472('0x1f')]=function(_0x4d788f){try{if(this['isNotNull'](_0x4d788f)){logger[_0x8472('0x43')](_0x8472('0x85'),_0x4d788f[_0x8472('0x6e')],util[_0x8472('0x3c')](_0x4d788f,{'showHidden':![],'depth':null}));if(this[_0x8472('0x39')][_0x4d788f[_0x8472('0x6e')]]){var _0x4958c2=_[_0x8472('0x79')](this[_0x8472('0x39')][_0x4d788f[_0x8472('0x6e')]]);_0x4958c2[_0x8472('0x86')]=!![];_0x4958c2[_0x8472('0x7d')]=_0x8472('0x87');logger[_0x8472('0x7f')](_0x8472('0x88'),_0x4958c2[_0x8472('0x47')],_0x4958c2[_0x8472('0x6f')]);}}}catch(_0x5449d3){logger['error']('[%s][voiceQueueReport][agentconnect]',_0x4d788f['uniqueid'],util[_0x8472('0x3c')](_0x5449d3,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x8472('0x9')][_0x8472('0x89')]=function(_0x3f2b48){try{if(this[_0x8472('0x5c')](_0x3f2b48)){logger[_0x8472('0x43')](_0x8472('0x8a'),_0x3f2b48['uniqueid'],util['inspect'](_0x3f2b48,{'showHidden':![],'depth':null}));if(this['queueReports'][_0x3f2b48['uniqueid']]){var _0x49ff03=_[_0x8472('0x79')](this[_0x8472('0x39')][_0x3f2b48[_0x8472('0x6e')]]);_0x49ff03[_0x8472('0x1a')]=![];_0x49ff03[_0x8472('0x8b')]=null;_0x49ff03['assigned']=!![];_0x49ff03[_0x8472('0x8c')]=_0x3f2b48[_0x8472('0x8d')];_0x49ff03[_0x8472('0x7b')]=_0x3f2b48[_0x8472('0x7b')];_0x49ff03['queuecallercomplete']=!![];_0x49ff03[_0x8472('0x8e')]=![];_0x49ff03[_0x8472('0x8f')]=null;if(!_0x49ff03['transfer']){if(_0x3f2b48[_0x8472('0x90')]==_0x8472('0x91')){_0x49ff03[_0x8472('0x7d')]=_0x8472('0x92');logger[_0x8472('0x7f')](_0x8472('0x93'),_0x49ff03[_0x8472('0x47')],_0x49ff03[_0x8472('0x6f')]);}else{if(_[_0x8472('0x94')](_0x3f2b48['channel']['toLowerCase'](),'local/')){if(this[_0x8472('0x39')][_0x3f2b48[_0x8472('0x95')]]){var _0x161921=_['last'](this[_0x8472('0x39')][_0x3f2b48[_0x8472('0x95')]]);_0x161921[_0x8472('0x86')]=![];_0x161921[_0x8472('0x8e')]=!![];_0x161921[_0x8472('0x8f')]=moment(_0x49ff03['queuecallerjoinAt'])['add'](_0x3f2b48[_0x8472('0x7b')],_0x8472('0x96'))[_0x8472('0x4a')](_0x8472('0x71'));_0x161921[_0x8472('0x7d')]=_0x8472('0x97');_0x161921['transfer']=!![];_0x161921[_0x8472('0x98')]=_0x8472('0x99');_0x161921['transferexten']=_0x3f2b48['destexten'];_0x161921[_0x8472('0x9a')]=_0x3f2b48[_0x8472('0x6e')];logger[_0x8472('0x7f')]('[voiceQueueReport][agentcomplete]\x20name:%s\x20type:%s\x20queuecallerexitreason:FORWARDTRANSFER',_0x161921[_0x8472('0x47')],_0x161921[_0x8472('0x6f')]);var _0x2c620b=this[_0x8472('0x39')][_0x3f2b48[_0x8472('0x95')]];this['queueReports'][_0x3f2b48[_0x8472('0x95')]]=this[_0x8472('0x39')][_0x3f2b48[_0x8472('0x6e')]];this[_0x8472('0x39')][_0x3f2b48['uniqueid']]=_0x2c620b;}}else{_0x49ff03[_0x8472('0x7d')]='COMPLETEDBY'+_0x3f2b48[_0x8472('0x90')][_0x8472('0x9b')]();logger[_0x8472('0x7f')](_0x8472('0x9c'),_0x49ff03[_0x8472('0x47')],_0x49ff03[_0x8472('0x6f')],_0x49ff03[_0x8472('0x7d')]);}}}this['channels'][_0x3f2b48[_0x8472('0x6e')]]=_0x49ff03;this['emitVoiceQueueChannelRemove'](_0x49ff03,_0x8472('0x1e'));}}}catch(_0x3024fc){logger[_0x8472('0x3a')](_0x8472('0x8a'),_0x3f2b48[_0x8472('0x6e')],util['inspect'](_0x3024fc,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x8472('0x9')][_0x8472('0x9d')]=function(_0x23d733){try{if(this[_0x8472('0x5c')](_0x23d733)){logger[_0x8472('0x43')](_0x8472('0x9e'),_0x23d733[_0x8472('0x6e')],util[_0x8472('0x3c')](_0x23d733,{'showHidden':![],'depth':null}));this[_0x8472('0x9f')](_0x23d733[_0x8472('0x6e')],_['keys'](_0x23d733[_0x8472('0xa0')])[0x0],_0x23d733[_0x8472('0xa1')]);if(this['queueReports'][_0x23d733[_0x8472('0x6e')]]){var _0x21036e=_[_0x8472('0x79')](this['queueReports'][_0x23d733[_0x8472('0x6e')]]);if(_0x21036e){if(this[_0x8472('0x5c')](_0x23d733['variable'])&&this[_0x8472('0x5c')](_0x23d733[_0x8472('0xa0')]['queuestatus'])){switch(_0x23d733[_0x8472('0xa1')]){case _0x8472('0xa2'):_0x21036e[_0x8472('0x8e')]=![];_0x21036e['queuecallerexitAt']=null;break;case _0x8472('0xa3'):_0x21036e['lastevent']=_0x8472('0xa4');_0x21036e[_0x8472('0x8e')]=!![];_0x21036e[_0x8472('0x8f')]=moment()['format'](_0x8472('0x71'));_0x21036e[_0x8472('0x82')]=moment()[_0x8472('0x4a')]('YYYY-MM-DD\x20HH:mm:ss');logger['debug']('[%s][voiceQueueReport][varset]\x20sending\x20timeout\x20event:',_0x23d733[_0x8472('0x6e')],util['inspect'](_0x21036e,{'showHidden':![],'depth':null}));ami[_0x8472('0x41')]('custom:timeout',_0x21036e);break;default:_0x21036e[_0x8472('0x8e')]=!![];_0x21036e[_0x8472('0x8f')]=moment()[_0x8472('0x4a')]('YYYY-MM-DD\x20HH:mm:ss');_0x21036e[_0x8472('0x82')]=moment()['format'](_0x8472('0x71'));}_0x21036e[_0x8472('0x1a')]=![];_0x21036e[_0x8472('0x8b')]=null;_0x21036e[_0x8472('0x7d')]=_0x23d733[_0x8472('0xa1')];this[_0x8472('0x31')][_0x23d733[_0x8472('0x6e')]]=_0x21036e;this[_0x8472('0x40')](_0x21036e,_0x8472('0xa5'));}else if(this['isNotNull'](_0x23d733[_0x8472('0xa0')])&&this['isNotNull'](_0x23d733[_0x8472('0xa0')][_0x8472('0xa6')])){if(!_0x21036e['queuecallerabandon']){_0x21036e[_0x8472('0x8e')]=!![];_0x21036e[_0x8472('0x8f')]=moment()[_0x8472('0x4a')](_0x8472('0x71'));_0x21036e[_0x8472('0x7d')]=_0x8472('0xa7');_0x21036e[_0x8472('0x82')]=moment()[_0x8472('0x4a')](_0x8472('0x71'));this[_0x8472('0x31')][_0x23d733[_0x8472('0x6e')]]=_0x21036e;}}logger[_0x8472('0x7f')](_0x8472('0xa8'),_0x23d733[_0x8472('0x6e')],_0x21036e['name'],_0x21036e[_0x8472('0x6f')],_[_0x8472('0x76')](_0x23d733[_0x8472('0xa0')])[0x0],_0x23d733[_0x8472('0xa1')]);_0x21036e[_0x8472('0x13')]=this[_0x8472('0x13')][_0x23d733['uniqueid']];}}}}catch(_0x24a620){logger['error']('[%s][voiceQueueReport][varset]',_0x23d733[_0x8472('0x6e')],util[_0x8472('0x3c')](_0x24a620,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x8472('0x9')][_0x8472('0x9f')]=function(_0x4ee810,_0x4e9c83,_0x590062){var _0x14bcf4=[_0x8472('0xa9'),_0x8472('0xaa'),_0x8472('0xab'),_0x8472('0xac'),_0x8472('0xad'),_0x8472('0xae'),_0x8472('0xaf'),_0x8472('0xb0'),_0x8472('0xb1'),_0x8472('0xb2'),_0x8472('0xb3'),_0x8472('0xb4'),_0x8472('0xb5'),'memberdynamic',_0x8472('0xb6'),_0x8472('0xb7'),'membername',_0x8472('0xb8'),_0x8472('0xb9')];if(!_[_0x8472('0xba')](_0x4e9c83)&&!_[_0x8472('0xbb')](_0x14bcf4,_0x4e9c83)){if(_[_0x8472('0x5d')](this[_0x8472('0x13')][_0x4ee810])){this[_0x8472('0x13')][_0x4ee810]={};}this['variables'][_0x4ee810][_0x4e9c83]=_0x590062;}};VoiceQueueReport[_0x8472('0x9')][_0x8472('0x20')]=function(_0x288ac9){try{if(this['isNotNull'](_0x288ac9)){logger[_0x8472('0x43')](_0x8472('0xbc'),_0x288ac9[_0x8472('0x6e')],util[_0x8472('0x3c')](_0x288ac9,{'showHidden':![],'depth':null}));if(this[_0x8472('0x39')][_0x288ac9[_0x8472('0x6e')]]){for(var _0x1f575a=0x0,_0x4cf127={};_0x1f575a<this['queueReports'][_0x288ac9['uniqueid']]['length'];_0x1f575a+=0x1){_0x4cf127=this[_0x8472('0x39')][_0x288ac9[_0x8472('0x6e')]][_0x1f575a];if(this[_0x8472('0x10')][_0x4cf127['queue']]){if(_0x4cf127['queuecallerexit']&&_0x4cf127['transfer']!=!![]){this[_0x8472('0x10')][_0x4cf127[_0x8472('0x62')]][_0x8472('0x53')]+=0x1;}if(_0x4cf127[_0x8472('0x1a')]){this[_0x8472('0x10')][_0x4cf127[_0x8472('0x62')]][_0x8472('0x54')]+=0x1;}this[_0x8472('0x10')][_0x4cf127[_0x8472('0x62')]][_0x8472('0x51')]+=moment(_0x4cf127['queuecallerleaveAt'])[_0x8472('0xbd')](_0x4cf127[_0x8472('0x70')],_0x8472('0x96'))||0x0;if(_0x1f575a===this[_0x8472('0x39')][_0x288ac9[_0x8472('0x6e')]][_0x8472('0xbe')]-0x1){this[_0x8472('0x10')][_0x4cf127['queue']]['sumDuration']+=moment()[_0x8472('0xbf')](0x0)['diff'](_0x4cf127['queuecallerjoinAt'],_0x8472('0x96'));this[_0x8472('0x10')][_0x4cf127[_0x8472('0x62')]]['total']+=0x1;if(_0x4cf127[_0x8472('0x86')]){this[_0x8472('0x10')][_0x4cf127[_0x8472('0x62')]]['answered']+=0x1;this[_0x8472('0x10')][_0x4cf127['queue']]['sumBillable']+=moment()[_0x8472('0xbf')](0x0)[_0x8472('0xbd')](_0x4cf127['queuecallerleaveAt'],_0x8472('0x96'));_0x4cf127[_0x8472('0x7a')]=moment()['format'](_0x8472('0x71'));_0x4cf127[_0x8472('0x8e')]=![];_0x4cf127[_0x8472('0x8f')]=null;}if(_0x4cf127[_0x8472('0x8e')]&&_0x4cf127[_0x8472('0x91')]!=!![]){_0x4cf127[_0x8472('0xc0')]=_0x8472('0x53');logger[_0x8472('0x43')]('[%s][voiceQueueReport][hangup]\x20sending\x20queuecallerunmanaged\x20event:',_0x288ac9[_0x8472('0x6e')],util[_0x8472('0x3c')](_0x4cf127,{'showHidden':![],'depth':null}));ami[_0x8472('0x41')](_0x8472('0xc1'),_0x4cf127);}if(_0x4cf127[_0x8472('0x1a')]){_0x4cf127[_0x8472('0xc0')]=_0x8472('0x54');logger[_0x8472('0x43')](_0x8472('0xc2'),_0x288ac9[_0x8472('0x6e')],util[_0x8472('0x3c')](_0x4cf127,{'showHidden':![],'depth':null}));ami[_0x8472('0x41')](_0x8472('0xc3'),_0x4cf127);}}else{this[_0x8472('0x10')][_0x4cf127[_0x8472('0x62')]]['sumDuration']+=this['voiceQueues'][_0x4cf127[_0x8472('0x62')]][_0x8472('0x51')];}logger[_0x8472('0x7f')](_0x8472('0xc4'),_0x288ac9[_0x8472('0x6e')],_0x4cf127[_0x8472('0x47')],_0x4cf127[_0x8472('0x6f')],_0x288ac9[_0x8472('0xc5')]);this[_0x8472('0x31')][_0x288ac9['uniqueid']]=_0x4cf127;this[_0x8472('0x40')](_0x4cf127,_0x8472('0xc6'));this[_0x8472('0x4c')](this['voiceQueues'][_0x4cf127[_0x8472('0x62')]],_0x8472('0xc6'));}}logger['debug'](_0x8472('0xc7'),_0x288ac9['uniqueid'],util['inspect'](this[_0x8472('0x39')][_0x288ac9['uniqueid']],{'showHidden':![],'depth':null}));ami['emit']('custom:voiceQueueReport',this[_0x8472('0x39')][_0x288ac9['uniqueid']]);delete this[_0x8472('0x39')][_0x288ac9['uniqueid']];delete this['channels'][_0x288ac9[_0x8472('0x6e')]];}if(this[_0x8472('0x13')][_0x288ac9[_0x8472('0x6e')]]){delete this[_0x8472('0x13')][_0x288ac9[_0x8472('0x6e')]];}}}catch(_0x3c1428){logger[_0x8472('0x3a')](_0x8472('0xbc'),_0x288ac9[_0x8472('0x6e')],util[_0x8472('0x3c')](_0x3c1428,{'showHidden':![],'depth':null}));}};VoiceQueueReport['prototype'][_0x8472('0x27')]=function(_0x5ec647){try{if(this['isNotNull'](_0x5ec647)){logger[_0x8472('0x43')]('[%s][voiceQueueReport][attendedtransfer]',_0x5ec647['uniqueid'],util[_0x8472('0x3c')](_0x5ec647,{'showHidden':![],'depth':null}));var _0x3cd2cf;if(this[_0x8472('0x39')][_0x5ec647['transfereeuniqueid']]){_0x3cd2cf=_[_0x8472('0x79')](this[_0x8472('0x39')][_0x5ec647[_0x8472('0xc8')]]);_0x3cd2cf[_0x8472('0xc9')]=_0x5ec647[_0x8472('0xca')];_0x3cd2cf[_0x8472('0x9a')]=_0x5ec647[_0x8472('0xcb')];_0x3cd2cf['queuecallerexitreason']=_0x8472('0xcc');_0x3cd2cf[_0x8472('0x91')]=!![];_0x3cd2cf['transfertype']=_0x8472('0xcd');if(this[_0x8472('0x39')][_0x5ec647['secondtransfereruniqueid']]){var _0x355caa=this[_0x8472('0x39')][_0x5ec647['secondtransfereruniqueid']];this[_0x8472('0x39')][_0x5ec647['secondtransfereruniqueid']]=this[_0x8472('0x39')][_0x5ec647[_0x8472('0xc8')]];this[_0x8472('0x39')][_0x5ec647[_0x8472('0xc8')]]=_0x355caa;var _0x23b383=_['last'](this[_0x8472('0x39')][_0x5ec647[_0x8472('0xc8')]]);_0x23b383[_0x8472('0x32')]=!![];}logger[_0x8472('0x7f')](_0x8472('0xce'),_0x5ec647[_0x8472('0x6e')],_0x3cd2cf[_0x8472('0x47')],_0x3cd2cf[_0x8472('0x6f')],_0x3cd2cf[_0x8472('0xc9')],_0x3cd2cf[_0x8472('0x9a')]);}else if(this['queueReports'][_0x5ec647[_0x8472('0xcf')]]){_0x3cd2cf=_[_0x8472('0x79')](this['queueReports'][_0x5ec647[_0x8472('0xcf')]]);_0x3cd2cf['transferexten']=_0x5ec647[_0x8472('0xd0')];_0x3cd2cf[_0x8472('0x9a')]=_0x5ec647[_0x8472('0xd1')];_0x3cd2cf[_0x8472('0x7d')]='ATTENDEDTRANSFER';_0x3cd2cf['transfer']=!![];_0x3cd2cf[_0x8472('0x98')]=_0x8472('0xcd');if(this['queueReports'][_0x5ec647[_0x8472('0xd1')]]){var _0x355caa=this['queueReports'][_0x5ec647[_0x8472('0xd1')]];this[_0x8472('0x39')][_0x5ec647[_0x8472('0xd1')]]=this[_0x8472('0x39')][_0x5ec647['transfertargetuniqueid']];this[_0x8472('0x39')][_0x5ec647['transfertargetuniqueid']]=_0x355caa;var _0x23b383=_[_0x8472('0x79')](this[_0x8472('0x39')][_0x5ec647[_0x8472('0xcf')]]);_0x23b383[_0x8472('0x32')]=!![];}logger[_0x8472('0x7f')](_0x8472('0xce'),_0x5ec647[_0x8472('0x6e')],_0x3cd2cf[_0x8472('0x47')],_0x3cd2cf[_0x8472('0x6f')],_0x3cd2cf[_0x8472('0xc9')],_0x3cd2cf['transferuniqueid']);}}}catch(_0xa7bf17){logger[_0x8472('0x3a')]('[%s][voiceQueueReport][attendedtransfer]',_0x5ec647[_0x8472('0x6e')],util[_0x8472('0x3c')](_0xa7bf17,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x8472('0x9')][_0x8472('0x28')]=function(_0xd1c8a2){try{if(this[_0x8472('0x5c')](_0xd1c8a2)){logger[_0x8472('0x43')](_0x8472('0xd2'),_0xd1c8a2[_0x8472('0x6e')],util[_0x8472('0x3c')](_0xd1c8a2,{'showHidden':![],'depth':null}));if(this['queueReports'][_0xd1c8a2[_0x8472('0xc8')]]){var _0x18a983=_[_0x8472('0x79')](this[_0x8472('0x39')][_0xd1c8a2[_0x8472('0xc8')]]);_0x18a983['queuecallerexitreason']='BLINDTRANSFER';_0x18a983['transfer']=!![];_0x18a983[_0x8472('0x98')]='BLIND';_0x18a983[_0x8472('0xc9')]=_0xd1c8a2[_0x8472('0xd3')];_0x18a983[_0x8472('0x9a')]=_0xd1c8a2[_0x8472('0xc8')];logger[_0x8472('0x7f')](_0x8472('0xd4'),_0xd1c8a2[_0x8472('0x6e')],_0x18a983[_0x8472('0x47')],_0x18a983[_0x8472('0x6f')],_0x18a983['transferexten'],_0x18a983[_0x8472('0x9a')]);this[_0x8472('0x20')]({'event':_0x8472('0xd5'),'uniqueid':_0xd1c8a2[_0x8472('0xc8')],'context':_0xd1c8a2[_0x8472('0xd6')],'channel':_0xd1c8a2[_0x8472('0xd7')]});}}}catch(_0x2486d5){logger[_0x8472('0x3a')](_0x8472('0xd2'),_0xd1c8a2[_0x8472('0x6e')],util[_0x8472('0x3c')](_0x2486d5,{'showHidden':![],'depth':null}));}};VoiceQueueReport[_0x8472('0x9')]['syncMusicOnHoldStart']=function(_0x4bdd5b){try{if(this['isNotNull'](_0x4bdd5b)){logger['debug'](_0x8472('0xd8'),_0x4bdd5b[_0x8472('0x6e')],util[_0x8472('0x3c')](_0x4bdd5b,{'showHidden':![],'depth':null}));if(this['queueReports'][_0x4bdd5b[_0x8472('0x6e')]]){var _0x1e6eca=_['last'](this[_0x8472('0x39')][_0x4bdd5b['uniqueid']]);if(!_[_0x8472('0xba')](_0x1e6eca[_0x8472('0x82')])){_0x1e6eca[_0x8472('0xd9')]=moment()['format'](_0x8472('0x71'));logger['info'](_0x8472('0xda'),_0x4bdd5b[_0x8472('0x6e')],_0x1e6eca[_0x8472('0xd9')]);}}}}catch(_0xe21167){logger[_0x8472('0x3a')](_0x8472('0xd8'),_0x4bdd5b['uniqueid'],util['inspect'](_0xe21167,{'showHidden':![],'depth':null}));}};VoiceQueueReport['prototype'][_0x8472('0x25')]=function(_0x34c80c){try{if(this[_0x8472('0x5c')](_0x34c80c)){logger[_0x8472('0x43')](_0x8472('0xdb'),_0x34c80c['uniqueid'],util[_0x8472('0x3c')](_0x34c80c,{'showHidden':![],'depth':null}));if(this[_0x8472('0x39')][_0x34c80c[_0x8472('0x6e')]]){var _0x3ef1f9=_[_0x8472('0x79')](this[_0x8472('0x39')][_0x34c80c[_0x8472('0x6e')]]);if(!_[_0x8472('0xba')](_0x3ef1f9[_0x8472('0xd9')])){_0x3ef1f9[_0x8472('0xdc')]+=moment()[_0x8472('0xbf')](0x0)[_0x8472('0xbd')](_0x3ef1f9['mohstarttime'],_0x8472('0x96'));logger[_0x8472('0x7f')]('[%s][voiceQueueReport][musiconholdstop]\x20mohtime:%s',_0x34c80c[_0x8472('0x6e')],_0x3ef1f9['mohtime']);delete _0x3ef1f9[_0x8472('0xd9')];}}}}catch(_0x379c5c){logger['error']('[%s][voiceQueueReport][musiconholdstop]',_0x34c80c[_0x8472('0x6e')],util[_0x8472('0x3c')](_0x379c5c,{'showHidden':![],'depth':null}));}};module[_0x8472('0xdd')]=VoiceQueueReport;