18 var _0xcc38=['now','COMPLETEDBYAGENT','[%s][queues][hangup]\x20name:%s\x20queuecallerexitreason:%s','name','[%s][queues][hangup]\x20name:%s\x20transfereduniqueid:%s','queuecallerenterreason','varset','[%s][queues][varset]','isNil','variable','queuestatus','toUpperCase','CONTINUE','queuecallerabandonAt','queuecallerexitAt','[%s][queues][varset]\x20name:%s\x20variable:queuestatus\x20value:%s\x20queuecallerexitreason:%s','value','queueposition','EXITWITHKEY','[%s][queues][varset]\x20name:%s\x20variable:queueposition\x20value:%s\x20queuecallerexitreason:%s','[%s][queues][queuecallerabandon]','ABANDONED','queuecallerleave','[%s][queues][queuecallerleave]','[%s][queues][queuecallerleave]\x20name:%s\x20connectedlinenum:%s\x20connectedlinename:%s','connectedlinenum','connectedlinename','queuecallerleaveAt','holdtime','diffTime','queuecallerjoinAt','count','[%s][queues][agentconnect]','[%s][queues][agentconnect]\x20name:%s\x20agent:%s\x20accountcode:%s','membername','destaccountcode','assigned','agentcomplete','[%s][queues][agentcomplete]','reason','transfer','TRANSFER','COMPLETEDBY','[%s][queues][agentcomplete]\x20name:%s\x20agent:%s\x20queuecallerexitreason:%s','blindtransfer','transfereeuniqueid','[%s][queues][blindtransfer]','transfertype','BLIND','transferexten','extension','transferuniqueid','BLINDTRANSFER','[%s][queues][blindtransfer]\x20name:%s\x20transferuniqueid:%s\x20transferexten:%s\x20queuecallerexitreason:BLINDTRANSFER','attendedtransfer','[%s][queues][attendedtransfer]','origtransfereruniqueid','origtransfererlinkedid','secondtransfererlinkedid','origtransfererexten','ATTENDED','ATTENDEDTRANSFER','transfereelinkedid','clone','transfertargetuniqueid','calleridname','[%s][queues][attendedtransfer]\x20name:%s\x20transferuniqueid:%s\x20transferexten:%s\x20queuecallerexitreason:ATTENDEDTRANSFER','secondtransfereruniqueid','secondtransfererexten','transfertargetlinkedid','mohtime','[%s][queues][attendedtransfer]\x20name:%s\x20transfereduniqueid:%s\x20calleridnum:%s\x20calleridname:%s','musiconholdstartAt','[%s][queues][musiconholdstart]','musiconholdstop','[%s][queues][musiconholdstop]','[%s][queues][musiconholdstop]\x20name:%s\x20mohtime:%s','lodash','util','./utils','info','format','[%s][queues][writeDB]\x20channel:%s\x20queue:%s\x20lastAssignedTo:%s\x20calleridnum:%s\x20accountcode:%s\x20queuecallerexitreason:%s','uniqueid','channel','queue','lastAssignedTo','calleridnum','accountcode','queuecallerexitreason','getVoiceQueueByName','type','request','transfereduniqueid','queuecallerjoin','debug','[%s][queues][queuecallerjoin]','position','assign','error','hangup','[%s][queues][hangup]','queuecallerabandon','queuecallerexit','queuecallercomplete','queuecallercompleteAt'];(function(_0x1702fc,_0x5662be){var _0xb7d19=function(_0x283116){while(--_0x283116){_0x1702fc['push'](_0x1702fc['shift']());}};_0xb7d19(++_0x5662be);}(_0xcc38,0x18b));var _0x8cc3=function(_0x4565bf,_0x5ad9d6){_0x4565bf=_0x4565bf-0x0;var _0x5610ba=_0xcc38[_0x4565bf];return _0x5610ba;};'use strict';var _=require(_0x8cc3('0x0'));var util=require(_0x8cc3('0x1'));var utils=require(_0x8cc3('0x2'));var queues={};function writeDB(_0x4d788a){utils[_0x8cc3('0x3')](util[_0x8cc3('0x4')](_0x8cc3('0x5'),_0x4d788a[_0x8cc3('0x6')],_0x4d788a[_0x8cc3('0x7')],_0x4d788a[_0x8cc3('0x8')],_0x4d788a[_0x8cc3('0x9')],_0x4d788a[_0x8cc3('0xa')],_0x4d788a[_0x8cc3('0xb')],_0x4d788a[_0x8cc3('0xc')]));if(_0x4d788a['queue']){utils[_0x8cc3('0xd')](_0x4d788a[_0x8cc3('0x8')])['then'](function(_0xe5c5c0){if(_0xe5c5c0){_0x4d788a['type']=_0xe5c5c0[_0x8cc3('0xe')];}utils[_0x8cc3('0xf')]('CreateVoiceQueueReport',_0x4d788a);});}else{utils[_0x8cc3('0xf')]('CreateVoiceQueueReport',_0x4d788a);}if(_0x4d788a[_0x8cc3('0x10')]){delete queues[_0x4d788a[_0x8cc3('0x10')]];}else{delete queues[_0x4d788a['uniqueid']];}}exports[_0x8cc3('0x11')]=function(_0x231069){try{utils[_0x8cc3('0x12')](util[_0x8cc3('0x4')](_0x8cc3('0x13'),_0x231069[_0x8cc3('0x6')]),_0x231069);utils[_0x8cc3('0x3')](util[_0x8cc3('0x4')]('[%s][queues][queuecallerjoin]\x20name:%s\x20position:%s',_0x231069['uniqueid'],_0x231069[_0x8cc3('0x8')],_0x231069[_0x8cc3('0x14')]));queues[_0x231069[_0x8cc3('0x6')]]=_[_0x8cc3('0x15')](_0x231069,{'originalposition':_0x231069[_0x8cc3('0x14')],'queuecallerjoinAt':utils['now'](),'mohtime':0x0});}catch(_0x34b792){utils[_0x8cc3('0x16')](util['format']('[%s][queues][queuecallerjoin]',_0x231069[_0x8cc3('0x6')]),_0x34b792);}};exports[_0x8cc3('0x17')]=function(_0x4450ca){try{if(!_['isNil'](queues[_0x4450ca[_0x8cc3('0x6')]])){utils[_0x8cc3('0x12')](util[_0x8cc3('0x4')](_0x8cc3('0x18'),_0x4450ca[_0x8cc3('0x6')]),_0x4450ca);if(queues[_0x4450ca[_0x8cc3('0x6')]]['queuecallerleaveAt']){if(!queues[_0x4450ca[_0x8cc3('0x6')]][_0x8cc3('0x19')]&&!queues[_0x4450ca['uniqueid']][_0x8cc3('0x1a')]){queues[_0x4450ca[_0x8cc3('0x6')]][_0x8cc3('0x1b')]=!![];queues[_0x4450ca['uniqueid']][_0x8cc3('0x1c')]=utils[_0x8cc3('0x1d')]();queues[_0x4450ca['uniqueid']][_0x8cc3('0xc')]=_0x8cc3('0x1e');}utils[_0x8cc3('0x3')](util['format'](_0x8cc3('0x1f'),_0x4450ca[_0x8cc3('0x6')],queues[_0x4450ca['uniqueid']][_0x8cc3('0x20')],queues[_0x4450ca[_0x8cc3('0x6')]][_0x8cc3('0xc')]));writeDB(queues[_0x4450ca[_0x8cc3('0x6')]]);}else if(queues[_0x4450ca[_0x8cc3('0x6')]][_0x8cc3('0x10')]){utils['info'](util[_0x8cc3('0x4')](_0x8cc3('0x21'),_0x4450ca['uniqueid'],queues[_0x4450ca[_0x8cc3('0x6')]][_0x8cc3('0x20')],queues[_0x4450ca[_0x8cc3('0x6')]][_0x8cc3('0x10')]));queues[queues[_0x4450ca[_0x8cc3('0x6')]]['transfereduniqueid']]=queues[_0x4450ca[_0x8cc3('0x6')]];queues[queues[_0x4450ca[_0x8cc3('0x6')]]['transfereduniqueid']][_0x8cc3('0x22')]=0x2;delete queues[_0x4450ca['uniqueid']];}}}catch(_0x2b2d24){utils[_0x8cc3('0x16')](util[_0x8cc3('0x4')](_0x8cc3('0x18'),_0x4450ca['uniqueid']),_0x2b2d24);}};exports[_0x8cc3('0x23')]=function(_0x425f84){try{utils['debug'](util[_0x8cc3('0x4')](_0x8cc3('0x24'),_0x425f84[_0x8cc3('0x6')]),_0x425f84);if(!_[_0x8cc3('0x25')](_0x425f84[_0x8cc3('0x26')][_0x8cc3('0x27')])&&_0x425f84['value'][_0x8cc3('0x28')]()!==_0x8cc3('0x29')){if(!_[_0x8cc3('0x25')](queues[_0x425f84[_0x8cc3('0x6')]])){queues[_0x425f84[_0x8cc3('0x6')]]['queuecallerabandon']=![];queues[_0x425f84[_0x8cc3('0x6')]][_0x8cc3('0x2a')]=null;queues[_0x425f84[_0x8cc3('0x6')]][_0x8cc3('0x1a')]=!![];queues[_0x425f84[_0x8cc3('0x6')]][_0x8cc3('0x2b')]=utils[_0x8cc3('0x1d')]();queues[_0x425f84['uniqueid']][_0x8cc3('0xc')]=_0x425f84['value'][_0x8cc3('0x28')]();utils[_0x8cc3('0x3')](util[_0x8cc3('0x4')](_0x8cc3('0x2c'),_0x425f84[_0x8cc3('0x6')],queues[_0x425f84['uniqueid']][_0x8cc3('0x20')],_0x425f84[_0x8cc3('0x2d')],queues[_0x425f84[_0x8cc3('0x6')]][_0x8cc3('0xc')]));writeDB(queues[_0x425f84[_0x8cc3('0x6')]]);}}else if(!_['isNil'](_0x425f84[_0x8cc3('0x26')][_0x8cc3('0x2e')])){if(!_[_0x8cc3('0x25')](queues[_0x425f84[_0x8cc3('0x6')]])&&!queues[_0x425f84[_0x8cc3('0x6')]][_0x8cc3('0x19')]){queues[_0x425f84[_0x8cc3('0x6')]][_0x8cc3('0x19')]=![];queues[_0x425f84[_0x8cc3('0x6')]][_0x8cc3('0x2a')]=null;queues[_0x425f84[_0x8cc3('0x6')]][_0x8cc3('0x1a')]=!![];queues[_0x425f84['uniqueid']][_0x8cc3('0x2b')]=utils[_0x8cc3('0x1d')]();queues[_0x425f84['uniqueid']][_0x8cc3('0xc')]=_0x8cc3('0x2f');utils[_0x8cc3('0x3')](util[_0x8cc3('0x4')](_0x8cc3('0x30'),_0x425f84[_0x8cc3('0x6')],queues[_0x425f84[_0x8cc3('0x6')]][_0x8cc3('0x20')],_0x425f84[_0x8cc3('0x2d')],queues[_0x425f84[_0x8cc3('0x6')]][_0x8cc3('0xc')]));}}}catch(_0x471331){utils[_0x8cc3('0x16')](util['format']('[%s][queues][varset]',_0x425f84['uniqueid']),_0x471331);}};exports[_0x8cc3('0x19')]=function(_0x2a6cb7){try{if(!_['isNil'](queues[_0x2a6cb7[_0x8cc3('0x6')]])){utils['debug'](util[_0x8cc3('0x4')](_0x8cc3('0x31'),_0x2a6cb7[_0x8cc3('0x6')]),_0x2a6cb7);queues[_0x2a6cb7[_0x8cc3('0x6')]][_0x8cc3('0x1a')]=![];queues[_0x2a6cb7[_0x8cc3('0x6')]][_0x8cc3('0x2b')]=null;queues[_0x2a6cb7[_0x8cc3('0x6')]][_0x8cc3('0x19')]=!![];queues[_0x2a6cb7['uniqueid']][_0x8cc3('0x2a')]=utils['now']();queues[_0x2a6cb7['uniqueid']]['queuecallerexitreason']=_0x8cc3('0x32');utils[_0x8cc3('0x3')](util['format']('[%s][queues][queuecallerabandon]\x20name:%s\x20queuecallerexitreason:%s',_0x2a6cb7[_0x8cc3('0x6')],queues[_0x2a6cb7['uniqueid']]['name'],queues[_0x2a6cb7['uniqueid']][_0x8cc3('0xc')]));}}catch(_0x1d5143){utils[_0x8cc3('0x16')](util[_0x8cc3('0x4')]('[%s][queues][queuecallerabandon]',_0x2a6cb7[_0x8cc3('0x6')]),_0x1d5143);}};exports[_0x8cc3('0x33')]=function(_0x4816d6){try{if(!_['isNil'](queues[_0x4816d6[_0x8cc3('0x6')]])){utils[_0x8cc3('0x12')](util[_0x8cc3('0x4')](_0x8cc3('0x34'),_0x4816d6['uniqueid']),_0x4816d6);utils['info'](util[_0x8cc3('0x4')](_0x8cc3('0x35'),_0x4816d6[_0x8cc3('0x6')],queues[_0x4816d6[_0x8cc3('0x6')]][_0x8cc3('0x20')],_0x4816d6[_0x8cc3('0x36')],_0x4816d6[_0x8cc3('0x37')]));queues[_0x4816d6[_0x8cc3('0x6')]][_0x8cc3('0x33')]=!![];queues[_0x4816d6[_0x8cc3('0x6')]][_0x8cc3('0x38')]=utils[_0x8cc3('0x1d')]();queues[_0x4816d6[_0x8cc3('0x6')]][_0x8cc3('0x39')]=utils[_0x8cc3('0x3a')](queues[_0x4816d6[_0x8cc3('0x6')]][_0x8cc3('0x38')],queues[_0x4816d6['uniqueid']][_0x8cc3('0x3b')]);queues[_0x4816d6[_0x8cc3('0x6')]][_0x8cc3('0x14')]=_0x4816d6[_0x8cc3('0x14')];queues[_0x4816d6[_0x8cc3('0x6')]][_0x8cc3('0x3c')]=_0x4816d6[_0x8cc3('0x3c')];queues[_0x4816d6[_0x8cc3('0x6')]][_0x8cc3('0x36')]=_0x4816d6[_0x8cc3('0x36')];queues[_0x4816d6[_0x8cc3('0x6')]][_0x8cc3('0x37')]=_0x4816d6[_0x8cc3('0x37')];}}catch(_0x5188d5){utils['error'](util['format'](_0x8cc3('0x34'),_0x4816d6['uniqueid']),_0x5188d5);}};exports['agentconnect']=function(_0x40d8f1){try{if(!_[_0x8cc3('0x25')](queues[_0x40d8f1[_0x8cc3('0x6')]])){utils[_0x8cc3('0x12')](util[_0x8cc3('0x4')](_0x8cc3('0x3d'),_0x40d8f1[_0x8cc3('0x6')]),_0x40d8f1);utils['info'](util['format'](_0x8cc3('0x3e'),_0x40d8f1[_0x8cc3('0x6')],queues[_0x40d8f1[_0x8cc3('0x6')]]['name'],_0x40d8f1[_0x8cc3('0x3f')],_0x40d8f1[_0x8cc3('0x40')]));queues[_0x40d8f1[_0x8cc3('0x6')]][_0x8cc3('0x19')]=![];queues[_0x40d8f1[_0x8cc3('0x6')]][_0x8cc3('0x19')]=![];queues[_0x40d8f1[_0x8cc3('0x6')]][_0x8cc3('0x2a')]=null;queues[_0x40d8f1[_0x8cc3('0x6')]][_0x8cc3('0x1a')]=![];queues[_0x40d8f1[_0x8cc3('0x6')]][_0x8cc3('0xc')]=null;queues[_0x40d8f1[_0x8cc3('0x6')]]['queuecallerexitAt']=null;queues[_0x40d8f1['uniqueid']][_0x8cc3('0x41')]=!![];queues[_0x40d8f1[_0x8cc3('0x6')]][_0x8cc3('0xb')]=_0x40d8f1[_0x8cc3('0x40')];queues[_0x40d8f1[_0x8cc3('0x6')]][_0x8cc3('0x9')]=_0x40d8f1[_0x8cc3('0x3f')];}}catch(_0x2834a0){utils[_0x8cc3('0x16')](util['format']('[%s][queues][agentconnect]',_0x40d8f1[_0x8cc3('0x6')]),_0x2834a0);}};exports[_0x8cc3('0x42')]=function(_0x541554){try{if(!_[_0x8cc3('0x25')](queues[_0x541554['uniqueid']])){if(queues[_0x541554[_0x8cc3('0x6')]]['queuecallerleaveAt']){utils[_0x8cc3('0x12')](util[_0x8cc3('0x4')](_0x8cc3('0x43'),_0x541554[_0x8cc3('0x6')]),_0x541554);queues[_0x541554[_0x8cc3('0x6')]]['queuecallerabandon']=![];queues[_0x541554[_0x8cc3('0x6')]][_0x8cc3('0x19')]=![];queues[_0x541554['uniqueid']][_0x8cc3('0x2a')]=null;queues[_0x541554[_0x8cc3('0x6')]][_0x8cc3('0x1a')]=![];queues[_0x541554[_0x8cc3('0x6')]][_0x8cc3('0x2b')]=null;queues[_0x541554[_0x8cc3('0x6')]][_0x8cc3('0x41')]=!![];queues[_0x541554[_0x8cc3('0x6')]][_0x8cc3('0x9')]=_0x541554[_0x8cc3('0x3f')];queues[_0x541554[_0x8cc3('0x6')]][_0x8cc3('0x1b')]=!![];queues[_0x541554[_0x8cc3('0x6')]][_0x8cc3('0x1c')]=utils[_0x8cc3('0x1d')]();if(_0x541554[_0x8cc3('0x44')]==_0x8cc3('0x45')){if(!queues[_0x541554[_0x8cc3('0x6')]][_0x8cc3('0x45')]){queues[_0x541554[_0x8cc3('0x6')]][_0x8cc3('0xc')]=_0x8cc3('0x46');}}else{queues[_0x541554['uniqueid']][_0x8cc3('0xc')]=_0x8cc3('0x47')+_0x541554[_0x8cc3('0x44')][_0x8cc3('0x28')]();}utils[_0x8cc3('0x3')](util[_0x8cc3('0x4')](_0x8cc3('0x48'),_0x541554['uniqueid'],queues[_0x541554[_0x8cc3('0x6')]][_0x8cc3('0x20')],_0x541554[_0x8cc3('0x3f')],queues[_0x541554[_0x8cc3('0x6')]]['queuecallerexitreason']));writeDB(queues[_0x541554[_0x8cc3('0x6')]]);}}}catch(_0x22b556){utils[_0x8cc3('0x16')](util[_0x8cc3('0x4')](_0x8cc3('0x43'),_0x541554['uniqueid']),_0x22b556);}};exports[_0x8cc3('0x49')]=function(_0xd9e8d5){try{if(!_[_0x8cc3('0x25')](queues[_0xd9e8d5[_0x8cc3('0x4a')]])){utils[_0x8cc3('0x12')](util[_0x8cc3('0x4')](_0x8cc3('0x4b'),_0xd9e8d5['uniqueid']),_0xd9e8d5);queues[_0xd9e8d5['transfereeuniqueid']][_0x8cc3('0x45')]=!![];queues[_0xd9e8d5['transfereeuniqueid']][_0x8cc3('0x4c')]=_0x8cc3('0x4d');queues[_0xd9e8d5['transfereeuniqueid']][_0x8cc3('0x4e')]=_0xd9e8d5[_0x8cc3('0x4f')];queues[_0xd9e8d5[_0x8cc3('0x4a')]][_0x8cc3('0x50')]=_0xd9e8d5[_0x8cc3('0x4a')];queues[_0xd9e8d5['transfereeuniqueid']][_0x8cc3('0xc')]=_0x8cc3('0x51');utils[_0x8cc3('0x3')](util[_0x8cc3('0x4')](_0x8cc3('0x52'),_0xd9e8d5[_0x8cc3('0x6')],queues[_0xd9e8d5[_0x8cc3('0x4a')]][_0x8cc3('0x20')],_0xd9e8d5[_0x8cc3('0x4a')],_0xd9e8d5[_0x8cc3('0x4f')]));}}catch(_0x17c2b8){utils['error'](util[_0x8cc3('0x4')](_0x8cc3('0x4b'),_0xd9e8d5['uniqueid']),_0x17c2b8);}};exports[_0x8cc3('0x53')]=function(_0x106f02){try{utils[_0x8cc3('0x12')](util[_0x8cc3('0x4')](_0x8cc3('0x54'),_0x106f02[_0x8cc3('0x55')]),_0x106f02);if(_0x106f02[_0x8cc3('0x55')]==_0x106f02[_0x8cc3('0x56')]){if(!_[_0x8cc3('0x25')](queues[_0x106f02[_0x8cc3('0x57')]])){utils['info'](util['format']('[%s][queues][attendedtransfer]\x20name:%s\x20transferexten:%s\x20queuecallerexitreason:ATTENDEDTRANSFER',_0x106f02[_0x8cc3('0x55')],queues[_0x106f02[_0x8cc3('0x57')]][_0x8cc3('0x20')],_0x106f02[_0x8cc3('0x58')]));queues[_0x106f02[_0x8cc3('0x57')]]['transfer']=!![];queues[_0x106f02[_0x8cc3('0x57')]]['transfertype']=_0x8cc3('0x59');queues[_0x106f02[_0x8cc3('0x57')]][_0x8cc3('0x4e')]=_0x106f02['origtransfererexten'];queues[_0x106f02[_0x8cc3('0x57')]]['transferuniqueid']=_0x106f02['origtransfereruniqueid'];queues[_0x106f02[_0x8cc3('0x57')]]['queuecallerexitreason']=_0x8cc3('0x5a');}if(!_[_0x8cc3('0x25')](queues[_0x106f02[_0x8cc3('0x56')]])){if(_0x106f02[_0x8cc3('0x5b')]&&queues[_0x106f02[_0x8cc3('0x5b')]]){queues[_0x106f02[_0x8cc3('0x5b')]]['queuecallerenterreason']=0x1;queues[_0x106f02[_0x8cc3('0x4a')]]=_[_0x8cc3('0x5c')](queues[_0x106f02['transfereelinkedid']]);queues[_0x106f02[_0x8cc3('0x4a')]]['transfereduniqueid']=_0x106f02[_0x8cc3('0x5d')];queues[_0x106f02[_0x8cc3('0x4a')]]['queuecallerenterreason']=0x2;queues[_0x106f02[_0x8cc3('0x4a')]][_0x8cc3('0xa')]=queues[_0x106f02['secondtransfererlinkedid']][_0x8cc3('0xa')];queues[_0x106f02[_0x8cc3('0x4a')]]['calleridname']=queues[_0x106f02[_0x8cc3('0x57')]]['calleridname'];queues[_0x106f02[_0x8cc3('0x4a')]]['queuecallerjoinAt']=utils[_0x8cc3('0x1d')]();queues[_0x106f02[_0x8cc3('0x4a')]][_0x8cc3('0x38')]=utils[_0x8cc3('0x1d')]();queues[_0x106f02[_0x8cc3('0x4a')]][_0x8cc3('0x39')]=0x0;queues[_0x106f02[_0x8cc3('0x4a')]]['mohtime']=0x0;utils[_0x8cc3('0x3')](util[_0x8cc3('0x4')]('[%s][queues][attendedtransfer]\x20name:%s\x20calleridnum:%s\x20calleridname:%s',_0x106f02[_0x8cc3('0x55')],queues[_0x106f02[_0x8cc3('0x4a')]][_0x8cc3('0x20')],queues[_0x106f02[_0x8cc3('0x4a')]]['calleridnum'],queues[_0x106f02['transfereeuniqueid']][_0x8cc3('0x5e')]));}else{utils[_0x8cc3('0x3')](util[_0x8cc3('0x4')]('[%s][queues][attendedtransfer]\x20name:%s\x20transfereduniqueid:%s',_0x106f02[_0x8cc3('0x55')],queues[_0x106f02['origtransfererlinkedid']]['name'],_0x106f02[_0x8cc3('0x57')]));queues[_0x106f02[_0x8cc3('0x56')]][_0x8cc3('0x10')]=_0x106f02[_0x8cc3('0x57')];}}}else if(_0x106f02['secondtransfereruniqueid']==_0x106f02[_0x8cc3('0x57')]){if(!_[_0x8cc3('0x25')](queues[_0x106f02[_0x8cc3('0x56')]])){utils[_0x8cc3('0x3')](util[_0x8cc3('0x4')](_0x8cc3('0x5f'),_0x106f02['origtransfereruniqueid'],queues[_0x106f02['origtransfererlinkedid']]['name'],_0x106f02[_0x8cc3('0x60')],_0x106f02['secondtransfererexten']));queues[_0x106f02[_0x8cc3('0x56')]]['transfer']=!![];queues[_0x106f02['origtransfererlinkedid']]['transfertype']=_0x8cc3('0x59');queues[_0x106f02[_0x8cc3('0x56')]][_0x8cc3('0x4e')]=_0x106f02[_0x8cc3('0x61')];queues[_0x106f02[_0x8cc3('0x56')]]['transferuniqueid']=_0x106f02[_0x8cc3('0x60')];queues[_0x106f02[_0x8cc3('0x56')]][_0x8cc3('0xc')]='ATTENDEDTRANSFER';}if(!_['isNil'](queues[_0x106f02['secondtransfererlinkedid']])){if(_0x106f02[_0x8cc3('0x62')]&&queues[_0x106f02[_0x8cc3('0x62')]]){queues[_0x106f02['transfertargetlinkedid']][_0x8cc3('0x22')]=0x1;queues[_0x106f02['transfertargetuniqueid']]=_[_0x8cc3('0x5c')](queues[_0x106f02['transfertargetlinkedid']]);queues[_0x106f02[_0x8cc3('0x5d')]][_0x8cc3('0x10')]=_0x106f02[_0x8cc3('0x5d')];queues[_0x106f02['transfertargetuniqueid']][_0x8cc3('0x22')]=0x2;queues[_0x106f02[_0x8cc3('0x5d')]][_0x8cc3('0xa')]=queues[_0x106f02[_0x8cc3('0x56')]][_0x8cc3('0xa')];queues[_0x106f02['transfertargetuniqueid']][_0x8cc3('0x5e')]=queues[_0x106f02['origtransfererlinkedid']][_0x8cc3('0x5e')];queues[_0x106f02[_0x8cc3('0x5d')]][_0x8cc3('0x3b')]=utils['now']();queues[_0x106f02[_0x8cc3('0x5d')]][_0x8cc3('0x38')]=utils[_0x8cc3('0x1d')]();queues[_0x106f02[_0x8cc3('0x5d')]][_0x8cc3('0x39')]=0x0;queues[_0x106f02['transfertargetuniqueid']][_0x8cc3('0x63')]=0x0;utils['info'](util[_0x8cc3('0x4')](_0x8cc3('0x64'),_0x106f02[_0x8cc3('0x55')],queues[_0x106f02[_0x8cc3('0x5d')]][_0x8cc3('0x20')],queues[_0x106f02['transfertargetuniqueid']][_0x8cc3('0x10')],queues[_0x106f02[_0x8cc3('0x5d')]][_0x8cc3('0xa')],queues[_0x106f02[_0x8cc3('0x5d')]]['calleridname']));}else{utils[_0x8cc3('0x3')](util[_0x8cc3('0x4')]('[%s][queues][attendedtransfer]\x20name:%s\x20transfereduniqueid:%s',_0x106f02[_0x8cc3('0x55')],queues[_0x106f02['secondtransfererlinkedid']][_0x8cc3('0x20')],_0x106f02[_0x8cc3('0x56')]));queues[_0x106f02[_0x8cc3('0x57')]][_0x8cc3('0x10')]=_0x106f02[_0x8cc3('0x56')];}}}}catch(_0xa30ef6){utils[_0x8cc3('0x16')](util['format'](_0x8cc3('0x54'),_0x106f02[_0x8cc3('0x55')]),_0xa30ef6);}};exports['musiconholdstart']=function(_0x105d02){try{if(!_[_0x8cc3('0x25')](queues[_0x105d02[_0x8cc3('0x6')]])){utils['debug'](util[_0x8cc3('0x4')]('[%s][queues][musiconholdstart]',_0x105d02[_0x8cc3('0x6')]),_0x105d02);queues[_0x105d02[_0x8cc3('0x6')]][_0x8cc3('0x65')]=utils['now']();utils[_0x8cc3('0x3')](util[_0x8cc3('0x4')]('[%s][queues][musiconholdstop]\x20name:%s\x20musiconholdstartAt:%s',_0x105d02[_0x8cc3('0x6')],queues[_0x105d02[_0x8cc3('0x6')]][_0x8cc3('0x20')],queues[_0x105d02[_0x8cc3('0x6')]]['musiconholdstartAt']));}}catch(_0x3285ef){utils[_0x8cc3('0x16')](util[_0x8cc3('0x4')](_0x8cc3('0x66'),_0x105d02['uniqueid']),_0x3285ef);}};exports[_0x8cc3('0x67')]=function(_0x1784b8){try{if(!_[_0x8cc3('0x25')](queues[_0x1784b8[_0x8cc3('0x6')]])){if(!_[_0x8cc3('0x25')](queues[_0x1784b8['uniqueid']][_0x8cc3('0x65')])){utils[_0x8cc3('0x12')](util['format'](_0x8cc3('0x68'),_0x1784b8[_0x8cc3('0x6')]),_0x1784b8);queues[_0x1784b8[_0x8cc3('0x6')]][_0x8cc3('0x63')]+=utils['diffTime'](utils[_0x8cc3('0x1d')](),queues[_0x1784b8[_0x8cc3('0x6')]][_0x8cc3('0x65')]);utils[_0x8cc3('0x3')](util['format'](_0x8cc3('0x69'),_0x1784b8[_0x8cc3('0x6')],queues[_0x1784b8[_0x8cc3('0x6')]][_0x8cc3('0x20')],queues[_0x1784b8[_0x8cc3('0x6')]][_0x8cc3('0x63')]));delete queues[_0x1784b8['uniqueid']]['musiconholdstartAt'];}}}catch(_0x39ceb9){utils[_0x8cc3('0x16')](util[_0x8cc3('0x4')](_0x8cc3('0x68'),_0x1784b8[_0x8cc3('0x6')]),_0x39ceb9);}};