Built motion from commit eddce310.|2.6.12
[motion2.git] / server / services / ami / dialer / index.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 _0x1186=['reason\x2011\x20abandoned','outboundRejectCallsDay','AgentReject','custom:agentreject','agentreject','reason\x2020\x20agentreject','Success','[moveContactManagedDialer][0]','contact\x20not\x20moved','dialPredictiveOptimizationPercentage','outboundDropCallsDayTimeout','round','predictiveIntervalAvailable','predictiveIntervalMinThreshold','available','floor','predictiveIntervalHitRate','predictiveIntervalMultiplicativeFactor','[startMethodPredictive][StartProgressive]','check\x20predictive\x20is\x20not\x20undefine','check\x20handlePredictive\x20is\x20not\x20undefine','collection\x20data\x20in\x20progressive\x20at','dialPredictiveInterval','[startMethodPredictive][StartProgressive][Loop]','predictiveIntervalErlangCallsDroppedCalls','dialPredictiveOptimization','dropRate','[stopMethodPredictive][ReStartProgressive][ExceededDropDay]','Dropped\x20calls\x20day','[stopMethodPredictive][ReStartProgressive][ExceededDropInterval]','Max\x20Drop\x20','Drop\x20in\x20this\x20interval','started\x20in\x20predictive\x20at','avgHandleTime','getDataPredictive','startMethodPredictive','Predictive\x20after\x20first\x20interval','recalculate\x20predictive\x20at','Predictive\x20for\x20every\x20interval',')\x20are\x20less\x20than\x20threshold\x20(','switch\x20in\x20progressive\x20because\x20available\x20agents\x20(',')\x20are\x20more\x20than\x20threshold\x20(','predictiveIntervalDroppedCallsCallersExit','abandonmentRate','busyFactor','[getDataPredictive]','check\x20failure','getDataPredictiveOld','loggedIn','outboundQueuePauses','predictiveIntervalPauses','[CatchErlangB]','agentBusyFactor','predictiveIntervalAnsweredCalls','one\x20call\x20every:','[handlePredictive]','checkContactBlack','[booked][checkContactBlack]','queueStatusComplete:\x20','Queue:\x20','queuestatus','[unlockOriginate][syncQueueStatusComplete]','[booked][checkContactBlack][else]','scheduledat','dialRecallMeTimeout','voicePause','unlockContact','outboundReCallsDay','[rescheduleContact][dialRecallInQueue]','QUEUE_RECALL','RecallInQueue','[Originate][HistoryDialRecallInQueue][historyCatch]','RECALL_TIMEOUT','RecallFailedTimeout','[Originate][HistoryRecallClose][historyCatch]','[Originate][HistoryRecallClose]','BLACKLIST','Blacklist','[Originate][historyBlacklist]','[Originate][MoveBlacklist]','inBlackList','limitCalls','temp','getContactDialerIvr','checkContactEmpty','[getContactCampaign2][Empty]','RUNNING','ivrTotalCallsDays','checkIsBlackListIvr','[actionOriginateIvr]\x20','[getContactCampaign2]','dialLimitQueue','not_inuse','getContactDialer','countReScheduled','[countReScheduled]\x20','checkIsBlackList','[actionOriginate]\x20','[getContactDialer2]','[handlePredictive][limitChannel]','tryOriginatePredictive','dialOrderByScheduledAt','[actionOriginatePredictive]\x20','--------\x20Drop\x20Rate\x20--------','M:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Interval:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Ts:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','P:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Amax:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','m\x20=\x20','[abandonmentRate]','p\x20=\x20','Amax\x20=\x20','erlangb','[busyFactor]','Ts\x20=\x20','exports','util','lodash','moment','ioredis','./utils/hopper','../../../config/environment/','dialer','../../../config/logger','booked','predictiveCalls','redis','defaults','localhost','socket.io-emitter','../rpc/cmHopper','./models/action','./models/history','./models/final','XCALLY_IP_AGI','prototype','tail','finally','sequence','preview','voiceQueues','campaigns','trunks','maxNumberOriginate','channels','actions','contactsId','uniqueId','optionPredictive','startPredictive','startProgressive','ivrOriginated','queueBooked','queueBookedRR','queuesSummary','bind','originateresponse','agentcomplete','syncAgentComplete','syncQueueSummary','newexten','syncNewExten','varset','syncVarSet','loopCampaigns','loopClearZombieChannels','getSettings','then','previewRecallmeReminderInterval','isUndefined','emit','type','[voiceQueueReport][queuesummary]\x20sending\x20voice_queue:save\x20event:','inspect','format','voice:queue:%s','voice_queue:save','isEmpty','info','Total\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','predictiveIntervalTotalCalls','Answered\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Dropped\x20Timeout:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Dropped\x20Exit:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','AVG\x20Hold\x20Time:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','predictiveIntervalAvgHoldtime','AVG\x20Talk\x20Time:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','---------------------------','predictiveIntervalAvgTalktime','Avg\x20Talk\x20Time\x20is\x20not\x20enough\x20for\x20predictive','Total\x20Calls\x20are\x20not\x20enough\x20for\x20predictive','---------\x20ErlangB\x20---------','erlangCalls','One\x20call\x20every:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','erlangCallToSecond','erlangAbandonmentRate','Agent\x20Busy\x20Factor:\x20\x20\x20\x20\x20\x20\x20\x20\x20','erlangBusyFactor','merge','getSeconds','debug','startProgressive\x20value\x20cleared','name','startPredictive\x20value\x20cleared','handlePredictive','handlePredictive\x20interval\x20cleared','error','stack','checkContactLowerLimitOriginate','contactsRescheduled','message','CONTACTS_RESCHEDULED','[getContactDialer2][ReScheduled]','contacts','NO_AVAILABLE_CONTACTS','[getContactDialer2][Empty]','state','statedesc','endtime','queueStatusComplete','stringify','pick','Interval','CAMPAIGN_STATUS','NULL_INTERVAL','\x20INTERVAL_IS_NULL','Intervals','isIVRCampaignActive','INACTIVE','\x20NOT\x20Active','isIVRCampaign','campaign:ivr:%s','campaign:save','sendMessageOneNotActive','originated','[syncQueueSummary]\x20Campaign\x20Ivr:\x20','is\x20disactive','[ifTime][Action]','Error','isTrunkReachable','active','SIP/%s','status','reachable','checkIsTrunkReachable','TrunkBackup','TRUNK_NOT_REACHABLE','\x20trunk\x20is\x20not\x20reachable','checkIfTime','ifTimeIvr','checkIfTimeIntervals','ifTime','Failure','\x20Intervals\x20is\x20null\x20','EMPTY_INTERVAL','\x20Intervals\x20is\x20empty\x20','timezones','UNKNOWN_TIMEZONE','\x20Timezone\x20unknow\x20','length','push','iftime\x20%s,%s','interval','content','indexOf','true','catch','Action','command','all','some','OVERTIME_GLOBAL_INTERVAL','\x20Interval\x20is\x20overtime:\x20','Timezone:\x20','resetActiveCalls','syncCampaigns','resolve','dialGlobalInterval','dialTimezone','launchHandleIvr','checkDialMethod','dialMethod','predictive','progressive','handlePower','power','dialPowerLevel','Queue','method\x20not\x20recognized','silly','Dialer::ifTime()','Voice\x20Queue\x20%s\x20$s','intervalIftime','OVERTIME_INTERVAL','[ifTime][promiseAll]','Global:\x20','Dialer::ifTime()\x20errResponse\x20NOT\x20NULL:','isGlobal','AMI\x20IfTime','syncAgentConnect','queue','uniqueid','ivr','answertime','YYYY-MM-DD\x20HH:mm:ss','outboundAnswerCallsDay','agent','agiafterat','dialAgiAfterHangupAgent','createHistory','[syncAgentComplete][createHistory]','[syncAgentComplete]','syncQueueCallerAbandon','updateOriginated','droptime','responsetime','dialQueueTimeout','predictiveIntervalDroppedCallsTimeout','dropreason','TIMEOUT','dialQueueProject2','countdropretry','dialDropRetryFrequency','callAdditionalPhoneAfterMin','verifyAdditionalPhones','additional','queueCallerAbandonCreateState','rescheduleContact','add','ContactId','[rescheduleContact][Drop]','Drop','starttime','calleridname','calleridnum','outboundDropCallsDayCallersExit','CALLEREXIT','countabandonedretry','countglobal','dialAbandonedMaxRetry','dialAbandonedRetryFrequency','minutes','ListId','VoiceQueueId','CampaignId','[rescheduleContact][Abandoned]','Abandoned','swapAdditionalPhones','channel','actionid','strategy','rrmemory','locked','paused','agents','stateinterface','isNil','idHopper','syncQueueStatusComplete','roundrobin','run','[Catch][Preview][syncQueueStatusComplete]','[unlock][syncQueueStatusComplete]','_rr','unlockRR','Agent:\x20','[booked][RR][finaly]','contactAgent-idHopper:\x20','[booked][unlock]','[booked][unlock2]','[booked][unlock3]','[unlock3][syncQueueStatusComplete]','syncOriginateResponse','getQueue','response','[callProgressDetecting]\x20','amdstatus','exten','xcally-motion-dialer','dialAMDActive','value','HANGUP','outboundAnswerAgiCallsDay','HangupInAMD','membername','AMD','custom:amd','amd','[syncHangupInAMD][createHistory]','[syncHangupInAMD]','MACHINE','Machine','countmachineretry','buildObj','[syncAgentComplete][createHistory][0]','countbusyretry','countcongestionretry','countnosuchnumberretry','dialGlobalMaxRetry','stateGlobal','reason19\x20machine....','dialMachineMaxRetry','reason\x2019\x20machine....','dialMachineRetryFrequency','[rescheduleContact][Machine]','saveInDb','[syncHangupInAMDIvr][createHistory]','countnoanswerretry','countagentrejectretry','createStateFinal','syncHangup','ivrAnswerCallsDay','moveContactManagedDialer','dialQueueProject','AGI','[syncHangupIvr][createHistory]','outboundUnknownCallsDay','cause-txt','Unknow','[syncHangupIvr]','running','isPreviewCampaign','statusMessage','getQueueCampaignStatusMessage','inUse','talking','pTalking','ACTIVE','[syncQueueSummary]','compareToOutboundQueue','queueSummaryCountersUpdated','updateReportFromOutboundQueue','assign','syncQueueSummaryComplete','throttle','dialPreviewRecallmeReminder','filter','online','handlePreviewRecallNotifications','map','Agent','user:%s','user:dialPreviewRecallReminder','[uniqueid]','clearZombieChannels','[actions]','undefined','No\x20such\x20channel','[Dialer][checkChannel][ivr]','getVoiceQueueRtPauses','[getVoiceQueueRtPauses]\x20','[updateOriginated]\x20object\x20originated\x20is\x20negative','[updateOriginated]\x20is\x20null\x20or\x20undefined','loggerHandler','emptyContact','[emptyContact][createHistory]','[emptyContact]','checkPreviewRecallReminder','handleIvr','actionOriginate','object','originate','phone','contact\x20is\x20undefine','getCaller','\x22agi://%s/square,%s\x22','NONE','isOutboundQueue','XMD-AMDGREETING','dialAMDGreeting','XMD-AMDTOTALANALYSISTIME','dialAMDTotalAnalysisTime','XMD-AMDMINWORDLENGTH','dialAMDMinWordLength','XMD-AMDBETWEENWORDSSILENCE','dialAMDBetweenWordsSilence','dialAMDMaximumNumberOfWords','XMD-AMDSILENCETHRESHOLD','dialAMDSilenceThreshold','dialAMDMaximumWordLength','XMD-CAMPAIGNID','Contact','tags','updatedAt','%s%s','XMD-','toUpper','Trunk','getCallerId','callerid','dialOriginateCallerIdName','dialRandomLastDigitCallerIdNumber','getCallerIdRandom','dialOriginateCallerIdNumber','XMD-ORIGINATECALLERIDNAME','originatecalleridname','extractCalleridName','XMD-ORIGINATECALLERIDNUM','variables','SIP/%s/%s%s','dialPrefix','dialCutDigit','substring','trim','dialOriginateTimeout','outboundOriginateFailureCallsDay','[originateError]:\x20%s','OriginateError','[originate][error]','originate\x20action\x20Error','checkRetriveMax','dialNoAnswerRetryFrequency','[rescheduleContact][NoAnswer]','dialBusyMaxRetry','dialBusyRetryFrequency','dialCongestionRetryFrequency','[rescheduleContact]\x20[Congestion]','dialNoSuchNumberMaxRetry','dialNoSuchNumberRetryFrequency','[rescheduleContact][NoSuchNumber]','dialDropMaxRetry','dialAgentRejectMaxRetry','dialAgentRejectRetryFrequency','[callProgressDetecting]','reason','outboundNoSuchCallsDay','NoSuchNumber','custom:agentnosuchnumber','reason\x200\x20no\x20such\x20number....','outboundNoAnswerCallsDay','NoAnswer','buildNoAnswerEventPayload','custom:agentnoanswer','[syncAgentComplete][createHistory][3]','dialNoAnswerMaxRetry','reason\x203\x20ringing\x20no\x20answer','outboundBusyCallsDay','Busy','custom:agentbusy','busy','[syncAgentComplete][createHistory][5]','reason\x205\x20busy','outboundCongestionCallsDay','Congestion','congestion','dialCongestionMaxRetry','reason\x208\x20congestion','outboundAbandonedCallsDay','[syncAgentComplete][createHistory][11]'];(function(_0x4e676e,_0x2a7c6d){var _0x336a3c=function(_0x4767c4){while(--_0x4767c4){_0x4e676e['push'](_0x4e676e['shift']());}};_0x336a3c(++_0x2a7c6d);}(_0x1186,0x75));var _0x6118=function(_0x4fa76b,_0x3ab755){_0x4fa76b=_0x4fa76b-0x0;var _0x5d4237=_0x1186[_0x4fa76b];return _0x5d4237;};'use strict';var util=require(_0x6118('0x0'));var _=require(_0x6118('0x1'));var uuid=require('uuid');var moment=require(_0x6118('0x2'));var rr=require('rr');var Redis=require(_0x6118('0x3'));var utils=require('./utils');var hopperUtils=require(_0x6118('0x4'));var ut=require('../preview/util/util');var config=require(_0x6118('0x5'));var logger=require('../../../config/logger')(_0x6118('0x6'));var loggerBooked=require(_0x6118('0x7'))(_0x6118('0x8'));var loggerPredictive=require(_0x6118('0x7'))('predictive');var loggerPredictiveCalls=require(_0x6118('0x7'))(_0x6118('0x9'));var loggerSyncQueueSummary=require(_0x6118('0x7'))('syncQueueSummary');var ami=require('../ami');config[_0x6118('0xa')]=_[_0x6118('0xb')](config[_0x6118('0xa')],{'host':_0x6118('0xc'),'port':0x18eb});var io=require(_0x6118('0xd'))(new Redis(config['redis']));var cmHopper=require(_0x6118('0xe'));var voiceQueueRt=require('../rpc/voiceQueueRt');var RpcSetting=require('../rpc/setting');var Interval=require('../rpc/interval');var Action=require(_0x6118('0xf'));var History=require(_0x6118('0x10'));var Final=require(_0x6118('0x11'));var AgentComplete=require('./models/agentComplete');var QueueCallerAbandon=require('./models/queueCallerAbandon');var Hangup=require('./models/hangup');var ipAgi=process['env'][_0x6118('0x12')]||'127.0.0.1';var previewRecallmeReminderInterval=0x1;var Sequence=function(){};Sequence[_0x6118('0x13')]['enqueue']=function(_0x413e4f){this['tail']=this[_0x6118('0x14')]?this[_0x6118('0x14')][_0x6118('0x15')](_0x413e4f):_0x413e4f();};function Dialer(_0x425a6b,_0x2761df){this[_0x6118('0x16')]=new Sequence();this[_0x6118('0x17')]=_0x2761df;this[_0x6118('0x18')]=_0x425a6b[_0x6118('0x18')];this[_0x6118('0x19')]=_0x425a6b[_0x6118('0x19')];this['agents']=_0x425a6b['agents'];this[_0x6118('0x1a')]=_0x425a6b['trunks'];this[_0x6118('0x1b')]=config['maxNumberOriginate']||0x2;this[_0x6118('0x1c')]={};this[_0x6118('0x1d')]={};this[_0x6118('0x1e')]={};this[_0x6118('0x1f')]={};this[_0x6118('0x20')]={};this[_0x6118('0x21')]={};this[_0x6118('0x22')]={};this[_0x6118('0x23')]={};this[_0x6118('0x24')]={};this[_0x6118('0x25')]={};this[_0x6118('0x26')]={};ami['on']('agentconnect',this['syncAgentConnect'][_0x6118('0x27')](this));ami['on']('queuecallerabandon',this['syncQueueCallerAbandon']['bind'](this));ami['on'](_0x6118('0x28'),this['syncOriginateResponse'][_0x6118('0x27')](this));ami['on'](_0x6118('0x29'),this[_0x6118('0x2a')][_0x6118('0x27')](this));ami['on']('custom:queuesummary',this[_0x6118('0x2b')][_0x6118('0x27')](this));ami['on']('custom:queuesummarycomplete',this['syncQueueSummaryComplete'][_0x6118('0x27')](this));ami['on']('hangup',this['syncHangup'][_0x6118('0x27')](this));ami['on'](_0x6118('0x2c'),this[_0x6118('0x2d')]['bind'](this));ami['on'](_0x6118('0x2e'),this[_0x6118('0x2f')][_0x6118('0x27')](this));ami['on']('queuemember',this['syncQueueMember'][_0x6118('0x27')](this));ami['on']('queuestatuscomplete',this['syncQueueStatusComplete']['bind'](this));this[_0x6118('0x30')]();this[_0x6118('0x31')]();RpcSetting[_0x6118('0x32')]()[_0x6118('0x33')](function(_0x544137){previewRecallmeReminderInterval=_0x544137[_0x6118('0x34')];});}function isNotNull(_0x59474){return _0x59474!==null&&!_[_0x6118('0x35')](_0x59474);}function msgResponse(_0x21212f,_0x50e2ac,_0x39fcca){return{'action':_0x21212f,'response':_0x50e2ac,'message':_0x39fcca,'stack':_0x39fcca};}function emit(_0x248d0b,_0x331832,_0x1fd19b){io['to'](_0x248d0b)[_0x6118('0x36')](_0x331832,_0x1fd19b);}function emitOutboundVoiceQueueSummary(_0x6ce7e1){if(_0x6ce7e1[_0x6118('0x37')]==='outbound'){logger['debug'](_0x6118('0x38'),util[_0x6118('0x39')](_0x6ce7e1,{'showHidden':![],'depth':null}));emit(util[_0x6118('0x3a')](_0x6118('0x3b'),_0x6ce7e1['name']),_0x6118('0x3c'),_0x6ce7e1);}}function checkGetDataPredictive(_0x37488d){if(isNotNull(_0x37488d)&&!_[_0x6118('0x3d')](_0x37488d)){loggerPredictive[_0x6118('0x3e')]('-----\x20Stats\x20Predictive\x20---');loggerPredictive[_0x6118('0x3e')](_0x6118('0x3f'),_0x37488d[_0x6118('0x40')]);loggerPredictive[_0x6118('0x3e')](_0x6118('0x41'),_0x37488d['predictiveIntervalAnsweredCalls']);loggerPredictive['info'](_0x6118('0x42'),_0x37488d['predictiveIntervalDroppedCallsTimeout']);loggerPredictive['info'](_0x6118('0x43'),_0x37488d['predictiveIntervalDroppedCallsCallersExit']);loggerPredictive[_0x6118('0x3e')](_0x6118('0x44'),_0x37488d[_0x6118('0x45')]);loggerPredictive['info'](_0x6118('0x46'),_0x37488d['predictiveIntervalAvgTalktime']);loggerPredictive[_0x6118('0x3e')](_0x6118('0x47'));if(_0x37488d[_0x6118('0x40')]>0x0){if(!_['isUndefined'](_0x37488d[_0x6118('0x48')])&&_0x37488d['predictiveIntervalAvgTalktime']>0x0){return!![];}loggerPredictive['info'](_0x6118('0x49'));if(!_[_0x6118('0x35')](_0x37488d[_0x6118('0x45')])&&_0x37488d[_0x6118('0x45')]>0x0){return!![];}loggerPredictive[_0x6118('0x3e')]('Avg\x20Hold\x20Time\x20is\x20not\x20enough\x20for\x20predictive');}else{loggerPredictive[_0x6118('0x3e')](_0x6118('0x4a'));}}else{loggerPredictive[_0x6118('0x3e')]('History\x20information\x20are\x20empty');}return![];}function mergeDataErlangB(_0x318f8a){return function(_0x17a52d){loggerPredictive['info'](_0x6118('0x4b'));loggerPredictive[_0x6118('0x3e')]('Scheduled\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x17a52d[_0x6118('0x4c')]);loggerPredictive[_0x6118('0x3e')](_0x6118('0x4d'),_0x17a52d[_0x6118('0x4e')]);loggerPredictive['info']('Drop\x20Rate:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x17a52d[_0x6118('0x4f')]);loggerPredictive[_0x6118('0x3e')](_0x6118('0x50'),_0x17a52d[_0x6118('0x51')]);loggerPredictive[_0x6118('0x3e')]('Drop\x20Rate:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x17a52d[_0x6118('0x4f')]);loggerPredictive[_0x6118('0x3e')]('---------------------------');_[_0x6118('0x52')](_0x318f8a,_0x17a52d);};}function ifInterval(_0x387e50,_0x365fd9){if(_[_0x6118('0x35')](_0x365fd9)){return![];}return utils[_0x6118('0x53')](undefined,_0x365fd9)<_0x387e50*0x3c;}function clearPredictiveAttributes(_0x15901){if(_0x15901['startProgressive']){_0x15901[_0x6118('0x22')]=undefined;loggerPredictive[_0x6118('0x54')](_0x15901['name'],_0x6118('0x55'));}if(_0x15901[_0x6118('0x21')]){_0x15901[_0x6118('0x21')]=undefined;loggerPredictive[_0x6118('0x54')](_0x15901[_0x6118('0x56')],_0x6118('0x57'));}if(_0x15901[_0x6118('0x58')]){clearInterval(_0x15901['handlePredictive']);_0x15901['handlePredictive']=undefined;loggerPredictive[_0x6118('0x54')](_0x15901[_0x6118('0x56')],_0x6118('0x59'));}}function loggerCatchPredictive(_0xa0f279,_0x3c0381){return function(_0x20a1a9){loggerPredictive[_0x6118('0x5a')](_0x3c0381[_0x6118('0x56')],_0xa0f279);loggerPredictive['error'](_0x20a1a9[_0x6118('0x5b')]);clearPredictiveAttributes(_0x3c0381);};}function loggerCatch(_0x1e2ee8){return function(_0x30912f){logger[_0x6118('0x5a')](_0x1e2ee8,util[_0x6118('0x39')](_0x30912f,{'showHidden':![],'depth':null}));};}function loggerGetContactDialer(_0x24d8d4,_0x578cf8,_0x189a33){return function(_0x926bca){utils[_0x6118('0x5c')](_0x578cf8,_0x189a33,0x0);logger[_0x6118('0x5a')](_0x24d8d4,util[_0x6118('0x39')](_0x926bca,{'showHidden':![],'depth':null}));};}function sendMessageReschedule(_0x607e8a){return function(_0x45e8ec){if(isNotNull(_0x45e8ec)&&isNotNull(_0x45e8ec[0x0])){if(_0x45e8ec[0x0][_0x6118('0x5d')]>0x0){_0x607e8a[_0x6118('0x5e')]=utils['CAMPAIGN_STATUS'][_0x6118('0x5f')];logger['info'](_0x6118('0x60')+_0x607e8a['name'],_0x45e8ec[0x0][_0x6118('0x5d')],_0x6118('0x61'));}else{_0x607e8a[_0x6118('0x5e')]=utils['CAMPAIGN_STATUS'][_0x6118('0x62')];logger[_0x6118('0x3e')](_0x6118('0x63')+_0x607e8a[_0x6118('0x56')]);}}};}function createObjHistory(_0x5331b6,_0x4e217d,_0x8302d7,_0x475138,_0x150047){_0x5331b6[_0x6118('0x5e')]=_0x8302d7;var _0x5aa2d3=new Action(_0x5331b6,_0x4e217d);var _0x2e6703=new History(_0x5aa2d3);_0x2e6703[_0x6118('0x64')]=_0x475138;_0x2e6703[_0x6118('0x65')]=_0x150047;_0x2e6703[_0x6118('0x66')]=_0x5aa2d3['starttime'];return _0x2e6703;}function unlockQueueStatus(_0x30031d,_0x43400d){setTimeout(function(){if(_[_0x6118('0x35')](_0x30031d['queueStatusComplete'])){loggerBooked[_0x6118('0x5a')]('[unlockQueueStatus][undefined]',_0x43400d);}_0x30031d[_0x6118('0x67')]=!![];loggerBooked[_0x6118('0x3e')]('[booked][unlockQueueStatus]',_0x43400d,JSON[_0x6118('0x68')](_[_0x6118('0x69')](_0x30031d,['name',_0x6118('0x67')])));},0x1f3);}function checkInterval(_0x7d4ece){return function(){if(!isNotNull(_0x7d4ece[_0x6118('0x6a')])){_0x7d4ece[_0x6118('0x5e')]=utils[_0x6118('0x6b')][_0x6118('0x6c')];throw _0x7d4ece['name']+_0x6118('0x6d');}if(!isNotNull(_0x7d4ece[_0x6118('0x6a')][_0x6118('0x6e')])){_0x7d4ece[_0x6118('0x5e')]=utils[_0x6118('0x6b')][_0x6118('0x6c')];throw _0x7d4ece[_0x6118('0x56')]+_0x6118('0x6d');}if(!isNotNull(_[_0x6118('0x3d')](_0x7d4ece[_0x6118('0x6a')]['Intervals']))){_0x7d4ece[_0x6118('0x5e')]=utils['CAMPAIGN_STATUS']['NULL_INTERVAL'];throw _0x7d4ece[_0x6118('0x56')]+_0x6118('0x6d');}};}function checkIsIVRCampaignActive(_0x5f2ac6){return function(){if(!utils[_0x6118('0x6f')](_0x5f2ac6)){_0x5f2ac6[_0x6118('0x5e')]=utils[_0x6118('0x6b')][_0x6118('0x70')];throw _0x5f2ac6[_0x6118('0x56')]+_0x6118('0x71');}};}function emitCampaignSummary(_0x37395e){if(utils[_0x6118('0x72')](_0x37395e)){emit(util[_0x6118('0x3a')](_0x6118('0x73'),_0x37395e[_0x6118('0x56')]),_0x6118('0x74'),_0x37395e);}}function loggerCatchQueueSummary(_0xb50900,_0x3449d9){return function(_0x32546f){clearPredictiveAttributes(_0x3449d9);emitCampaignSummary(_0x3449d9);loggerSyncQueueSummary[_0x6118('0x54')](_0xb50900,util['inspect'](_0x32546f,{'showHidden':![],'depth':null}));};}function notSendMessagesCampaign(_0x30bde3){if(_0x30bde3[_0x6118('0x75')]){if(_0x30bde3[_0x6118('0x76')]===0x0){_0x30bde3['sendMessageOneNotActive']=![];_0x30bde3[_0x6118('0x5e')]=utils['CAMPAIGN_STATUS'][_0x6118('0x70')];loggerSyncQueueSummary[_0x6118('0x54')]('[syncQueueSummary]\x20Campaign\x20Ivr:\x20',_0x30bde3['name'],'is\x20not\x20active');}else{_0x30bde3[_0x6118('0x5e')]=utils['CAMPAIGN_STATUS']['DISACTIVED'];loggerSyncQueueSummary['debug'](_0x6118('0x77'),_0x30bde3[_0x6118('0x56')],_0x6118('0x78'));}emitCampaignSummary(_0x30bde3);}}function myreject(_0x12efc0){return function(_0x1c67dc){return _0x12efc0(msgResponse(_0x6118('0x79'),_0x6118('0x7a'),JSON['stringify'](_0x1c67dc)));};}Dialer['prototype'][_0x6118('0x7b')]=function(_0x3ef924){return!_[_0x6118('0x35')](_0x3ef924)&&_0x3ef924&&!_['isUndefined'](_0x3ef924[_0x6118('0x56')])&&!_[_0x6118('0x35')](_0x3ef924['active'])&&_0x3ef924[_0x6118('0x7c')]&&(this[_0x6118('0x1a')][util[_0x6118('0x3a')](_0x6118('0x7d'),_0x3ef924['name'])][_0x6118('0x7e')]===_0x6118('0x7f')||this[_0x6118('0x1a')][util[_0x6118('0x3a')]('SIP/%s',_0x3ef924['name'])][_0x6118('0x7e')]==='unmonitored');};Dialer['prototype'][_0x6118('0x80')]=function(_0x43489e){var _0x3e0ba3=this;return function(){if(!_0x3e0ba3[_0x6118('0x7b')](_0x43489e['Trunk'])){if(!_0x3e0ba3[_0x6118('0x7b')](_0x43489e[_0x6118('0x81')])){_0x43489e['message']=utils['CAMPAIGN_STATUS'][_0x6118('0x82')];throw _0x43489e[_0x6118('0x56')]+_0x6118('0x83');}}};};Dialer['prototype'][_0x6118('0x84')]=function(_0x39dac9,_0x37e0c3,_0x28d801,_0x5e1bee){var _0x2a7535=this;return function(){var _0x13fd6d=!![];return _0x2a7535[_0x6118('0x85')](_0x39dac9,_0x37e0c3,_0x28d801,_0x5e1bee,_0x13fd6d);};};Dialer[_0x6118('0x13')][_0x6118('0x86')]=function(_0x5d1ae6,_0x258902,_0x555fc4,_0x1599f1){var _0x3d5128=this;return function(){var _0x29306d=![];return _0x3d5128['ifTimeIvr'](_0x5d1ae6[_0x6118('0x6e')],_0x258902,_0x555fc4,_0x1599f1,_0x29306d);};};Dialer['prototype']['ifTimeIvr']=function(_0x3f19d7,_0x58b6d7,_0x1b9333,_0xa56969,_0x2ce2b8){var _0x3dd990=[];return new Promise(function(_0x3369f1,_0x47e019){if(!isNotNull(_0x3f19d7)){_0xa56969[_0x6118('0x5e')]=utils[_0x6118('0x6b')][_0x6118('0x6c')];return _0x47e019(msgResponse(_0x6118('0x87'),_0x6118('0x88'),_0x1b9333+_0x6118('0x89')));}if(_[_0x6118('0x3d')](_0x3f19d7)){_0xa56969[_0x6118('0x5e')]=utils[_0x6118('0x6b')][_0x6118('0x8a')];return _0x47e019(msgResponse(_0x6118('0x87'),_0x6118('0x88'),_0x1b9333+_0x6118('0x8b')));}if(_0x58b6d7&&_[_0x6118('0x35')](config[_0x6118('0x8c')][_0x58b6d7])){_0xa56969[_0x6118('0x5e')]=utils[_0x6118('0x6b')][_0x6118('0x8d')];return _0x47e019(msgResponse(_0x6118('0x87'),_0x6118('0x88'),_0x1b9333+_0x6118('0x8e')+_0x58b6d7));}if(_['isArray'](_0x3f19d7)){for(var _0x4f7d40=0x0;_0x4f7d40<_0x3f19d7[_0x6118('0x8f')];_0x4f7d40+=0x1){_0x3dd990[_0x6118('0x90')](ami['Action']({'action':'command','command':util['format'](_0x6118('0x91'),_0x3f19d7[_0x4f7d40][_0x6118('0x92')],!_[_0x6118('0x35')](config[_0x6118('0x8c')][_0x58b6d7])?_0x58b6d7:'')})[_0x6118('0x33')](function(_0x4653b7){return _0x4653b7[_0x6118('0x93')][_0x6118('0x94')](_0x6118('0x95'))>=0x0;})[_0x6118('0x96')](myreject(_0x47e019)));}}else{_0x3dd990['push'](ami[_0x6118('0x97')]({'action':_0x6118('0x98'),'command':util['format']('iftime\x20%s,%s',_0x3f19d7,!_[_0x6118('0x35')](config[_0x6118('0x8c')][_0x58b6d7])?_0x58b6d7:'')})[_0x6118('0x33')](function(_0x33da45){return _0x33da45[_0x6118('0x93')][_0x6118('0x94')](_0x6118('0x95'))>=0x0;})['catch'](myreject(_0x47e019)));}Promise[_0x6118('0x99')](_0x3dd990)[_0x6118('0x33')](function(_0x45f7f9){var _0x5d6a7d=_[_0x6118('0x9a')](_0x45f7f9);if(_0x5d6a7d){return _0x3369f1(_0x5d6a7d);}else{_0xa56969[_0x6118('0x5e')]=_0x2ce2b8?utils[_0x6118('0x6b')][_0x6118('0x9b')]:utils[_0x6118('0x6b')]['OVERTIME_INTERVAL'];return _0x47e019(msgResponse('[ifTime][promiseAll]',_0x6118('0x88'),'Global:\x20'+_0x2ce2b8+'\x20'+_0x1b9333+_0x6118('0x9c')+util['inspect'](_0x3f19d7,{'showHidden':![],'depth':null})+_0x6118('0x9d')+_0x58b6d7));}})['catch'](function(_0x264431){return _0x47e019(msgResponse('ifTime','Failure',JSON['stringify'](_0x264431)));});});};Dialer[_0x6118('0x13')]['loopCampaigns']=function(){var _0x5226ff=this;return cmHopper[_0x6118('0x9e')]({'active':![]},{'where':{'active':!![]}})[_0x6118('0x33')](function(){setInterval(function(){_0x5226ff[_0x6118('0x9f')]();},0x3e8);});};Dialer['prototype'][_0x6118('0x9f')]=function(){var _0x1051b0=this;var _0x48bdb3;for(var _0x17141a in this[_0x6118('0x19')]){if(typeof this['campaigns'][_0x17141a]!=='undefined'){_0x48bdb3=this[_0x6118('0x19')][_0x17141a];if(utils['isIVRCampaign'](_0x48bdb3)&&utils[_0x6118('0x6f')](_0x48bdb3)){_0x48bdb3[_0x6118('0x75')]=!![];Promise[_0x6118('0xa0')]()['then'](checkIsIVRCampaignActive(_0x48bdb3))[_0x6118('0x33')](checkInterval(_0x48bdb3))[_0x6118('0x33')](_0x1051b0[_0x6118('0x80')](_0x48bdb3))['then'](_0x1051b0[_0x6118('0x84')](_0x48bdb3[_0x6118('0xa1')],_0x48bdb3['dialTimezone'],_0x48bdb3[_0x6118('0x56')],_0x48bdb3))[_0x6118('0x33')](_0x1051b0['checkIfTimeIntervals'](_0x48bdb3[_0x6118('0x6a')],_0x48bdb3[_0x6118('0xa2')],_0x48bdb3[_0x6118('0x56')],_0x48bdb3))[_0x6118('0x33')](_0x1051b0[_0x6118('0xa3')](_0x48bdb3))['catch'](loggerCatchQueueSummary('[syncCampaigns]',_0x48bdb3));}else{notSendMessagesCampaign(_0x48bdb3);}}}};Dialer['prototype'][_0x6118('0xa4')]=function(_0x900ea){if(_0x900ea[_0x6118('0xa5')]!==_0x6118('0xa6')){clearPredictiveAttributes(_0x900ea);}switch(_0x900ea['dialMethod']){case _0x6118('0xa7'):this[_0x6118('0xa8')](_0x900ea,0x1);break;case _0x6118('0xa9'):this[_0x6118('0xa8')](_0x900ea,_0x900ea[_0x6118('0xaa')]);break;case _0x6118('0xa6'):this[_0x6118('0xa6')](_0x900ea);break;case _0x6118('0x8'):this[_0x6118('0xa8')](_0x900ea,0x1);break;default:logger[_0x6118('0x5a')](_0x6118('0xab'),_0x900ea[_0x6118('0x56')],_0x6118('0xac'));}};Dialer[_0x6118('0x13')][_0x6118('0x87')]=function(_0x1c3b0f,_0x39d198){var _0x16de8b=_0x1c3b0f[_0x6118('0xa2')];var _0x538ffb=_0x39d198?_0x1c3b0f[_0x6118('0xa1')]:_0x1c3b0f[_0x6118('0x6a')][_0x6118('0x6e')];logger[_0x6118('0xad')](_0x6118('0xae'),_0x538ffb,_0x16de8b,_0x1c3b0f['name'],util[_0x6118('0x3a')](_0x6118('0xaf'),_0x1c3b0f['name'],_0x1c3b0f['id']));var _0x209c73=null;return Interval[_0x6118('0xb0')](_0x538ffb,_0x16de8b)[_0x6118('0x33')](function(_0x167204){if(_0x167204===!![]){return _0x167204;}else{_0x1c3b0f['message']=_0x39d198?utils[_0x6118('0x6b')][_0x6118('0x9b')]:utils['CAMPAIGN_STATUS'][_0x6118('0xb1')];_0x209c73=msgResponse(_0x6118('0xb2'),_0x6118('0x88'),_0x6118('0xb3')+_0x39d198+'\x20'+_0x1c3b0f[_0x6118('0x56')]+'\x20Interval\x20is\x20overtime:\x20'+util[_0x6118('0x39')](_0x538ffb,{'showHidden':![],'depth':null})+_0x6118('0x9d')+_0x16de8b);}if(_0x209c73!==null){logger[_0x6118('0xad')](_0x6118('0xb4'),_0x209c73);_0x209c73[_0x6118('0xb5')]=_0x39d198;throw _0x209c73;}})[_0x6118('0x96')](function(_0x54c609){logger[_0x6118('0x5a')](_0x6118('0xb6'),_0x54c609);throw msgResponse(_0x6118('0x79'),_0x6118('0x7a'),util[_0x6118('0x39')](_0x54c609,{'showHidden':![],'depth':null}));});};Dialer['prototype'][_0x6118('0xb7')]=function(_0x22e7d0){if(this['voiceQueues'][_0x22e7d0[_0x6118('0xb8')]]){if(this['uniqueId'][_0x22e7d0[_0x6118('0xb9')]]&&this[_0x6118('0x1f')][_0x22e7d0['uniqueid']]['type']!==_0x6118('0xba')){this['updateOriginated'](this[_0x6118('0x18')][_0x22e7d0[_0x6118('0xb8')]]);this['uniqueId'][_0x22e7d0[_0x6118('0xb9')]][_0x6118('0xbb')]=moment()[_0x6118('0x3a')](_0x6118('0xbc'));}}};Dialer['prototype'][_0x6118('0x2a')]=function(_0x49606a){var _0x4f8f01=this['uniqueId'][_0x49606a[_0x6118('0xb9')]];if(this[_0x6118('0x18')][_0x49606a[_0x6118('0xb8')]]){if(_0x4f8f01&&_0x4f8f01[_0x6118('0x37')]!=='ivr'){delete this['uniqueId'][_0x49606a[_0x6118('0xb9')]];this[_0x6118('0x18')][_0x49606a[_0x6118('0xb8')]][_0x6118('0xbd')]+=0x1;var _0x257fa1=new AgentComplete(_0x4f8f01,_0x49606a);if(_0x49606a['reason']===_0x6118('0xbe')){_0x257fa1[_0x6118('0xbf')]=this['voiceQueues'][_0x49606a[_0x6118('0xb8')]]['dialQueueProject2']&&this[_0x6118('0x18')][_0x49606a[_0x6118('0xb8')]][_0x6118('0xc0')]?moment()[_0x6118('0x3a')](_0x6118('0xbc')):undefined;}hopperUtils[_0x6118('0xc1')](_0x257fa1)['catch'](loggerCatch(_0x6118('0xc2')));hopperUtils['moveContactManagedDialer'](_0x257fa1)[_0x6118('0x96')](loggerCatch(_0x6118('0xc3')));}}};Dialer[_0x6118('0x13')][_0x6118('0xc4')]=function(_0x8668ec){var _0x50a61=this[_0x6118('0x1f')][_0x8668ec['uniqueid']];var _0x345e0b=this;var _0x1dd3d3=![];var _0x210f99;var _0x3a5f7a;if(this[_0x6118('0x18')][_0x8668ec[_0x6118('0xb8')]]){if(_0x50a61&&_0x50a61[_0x6118('0x37')]!==_0x6118('0xba')){delete this[_0x6118('0x1f')][_0x8668ec[_0x6118('0xb9')]];this[_0x6118('0xc5')](this[_0x6118('0x18')][_0x8668ec['queue']]);_0x50a61[_0x6118('0xc6')]=moment()['format'](_0x6118('0xbc'));var _0x2e3425=new QueueCallerAbandon(_0x50a61,_0x8668ec);if(utils[_0x6118('0x53')](_0x50a61[_0x6118('0xc6')],_0x50a61[_0x6118('0xc7')])>=_0x50a61[_0x6118('0xc8')]){this[_0x6118('0x18')][_0x8668ec[_0x6118('0xb8')]][_0x6118('0xc9')]+=0x1;this[_0x6118('0x18')][_0x8668ec[_0x6118('0xb8')]]['outboundDropCallsDayTimeout']+=0x1;this[_0x6118('0x18')][_0x8668ec['queue']]['predictiveIntervalErlangCallsDroppedCalls']+=0x1;_0x2e3425[_0x6118('0x64')]=0xa;_0x2e3425['statedesc']='Drop';_0x2e3425[_0x6118('0xca')]=_0x6118('0xcb');_0x2e3425[_0x6118('0xbf')]=this[_0x6118('0x18')][_0x8668ec[_0x6118('0xb8')]][_0x6118('0xcc')]?moment()[_0x6118('0x3a')](_0x6118('0xbc')):undefined;_0x2e3425[_0x6118('0xcd')]+=0x1;_0x2e3425['countglobal']+=0x1;_0x210f99=this[_0x6118('0x18')][_0x8668ec[_0x6118('0xb8')]][_0x6118('0xce')];_0x3a5f7a=this['voiceQueues'][_0x8668ec[_0x6118('0xb8')]][_0x6118('0xcf')];hopperUtils[_0x6118('0xd0')](_0x2e3425,_0x2e3425['state'],_0x50a61['voiceQueue'])[_0x6118('0x33')](function(_0xdf4e0e){_0x1dd3d3=_0xdf4e0e[_0x6118('0xd1')]==0x1;if(_0x2e3425[_0x6118('0xcd')]>=_0x345e0b[_0x6118('0x18')][_0x8668ec[_0x6118('0xb8')]]['dialDropMaxRetry']){_0x345e0b[_0x6118('0xd2')](_0x2e3425,_0xdf4e0e[_0x6118('0xd1')]);}else{hopperUtils[_0x6118('0xd3')]({'active':![],'countdropretry':_0x2e3425[_0x6118('0xcd')],'scheduledat':moment()[_0x6118('0xd4')](_0x345e0b[_0x6118('0x18')][_0x8668ec[_0x6118('0xb8')]][_0x6118('0xce')],'minutes')['format'](_0x6118('0xbc')),'ContactId':_0x50a61[_0x6118('0xd5')],'ListId':_0x50a61['ListId'],'VoiceQueueId':_0x50a61['VoiceQueueId']||undefined,'CampaignId':_0x50a61['CampaignId']||undefined})['catch'](loggerCatch(_0x6118('0xd6')));var _0x53f6a1=new History(_0x2e3425);_0x53f6a1[_0x6118('0x64')]=0xa;_0x53f6a1[_0x6118('0x65')]=_0x6118('0xd7');_0x53f6a1[_0x6118('0xd8')]=moment()[_0x6118('0x3a')](_0x6118('0xbc'));_0x53f6a1[_0x6118('0x66')]=_0x53f6a1[_0x6118('0xd8')];_0x53f6a1['calleridname']=_0x2e3425[_0x6118('0xd9')];_0x53f6a1[_0x6118('0xda')]=_0x2e3425['calleridnum'];hopperUtils[_0x6118('0xc1')](_0x53f6a1)['catch'](loggerCatch('[syncAgentComplete][createHistory][10]'));}})[_0x6118('0x33')](function(){if(_0x1dd3d3)hopperUtils['swapAdditionalPhones'](_0x2e3425,_0x210f99,_0x3a5f7a)[_0x6118('0x33')](function(){return 0x1;});});}else{this[_0x6118('0x18')][_0x8668ec[_0x6118('0xb8')]]['predictiveIntervalDroppedCallsCallersExit']+=0x1;this['voiceQueues'][_0x8668ec[_0x6118('0xb8')]][_0x6118('0xdb')]+=0x1;_0x2e3425[_0x6118('0x64')]=0xb;_0x2e3425[_0x6118('0x65')]='Abandoned';_0x2e3425['dropreason']=_0x6118('0xdc');_0x2e3425[_0x6118('0xdd')]+=0x1;_0x2e3425[_0x6118('0xde')]+=0x1;_0x210f99=this[_0x6118('0x18')][_0x8668ec['queue']]['dialAbandonedRetryFrequency'];_0x3a5f7a=this[_0x6118('0x18')][_0x8668ec[_0x6118('0xb8')]][_0x6118('0xcf')];hopperUtils[_0x6118('0xd0')](_0x2e3425,_0x2e3425['state'],_0x50a61['voiceQueue'])['then'](function(_0x4b9749){if(_0x2e3425[_0x6118('0xdd')]>=_0x345e0b[_0x6118('0x18')][_0x8668ec[_0x6118('0xb8')]][_0x6118('0xdf')]){_0x345e0b['queueCallerAbandonCreateState'](_0x2e3425,_0x4b9749[_0x6118('0xd1')]);}else{hopperUtils[_0x6118('0xd3')]({'active':![],'countabandonedretry':_0x2e3425[_0x6118('0xdd')],'scheduledat':moment()[_0x6118('0xd4')](_0x345e0b[_0x6118('0x18')][_0x8668ec[_0x6118('0xb8')]][_0x6118('0xe0')],_0x6118('0xe1'))['format']('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0x50a61[_0x6118('0xd5')],'ListId':_0x50a61[_0x6118('0xe2')],'VoiceQueueId':_0x50a61[_0x6118('0xe3')]||undefined,'CampaignId':_0x50a61[_0x6118('0xe4')]||undefined})[_0x6118('0x96')](loggerCatch(_0x6118('0xe5')));var _0x334b6e=new History(_0x2e3425);_0x334b6e[_0x6118('0x64')]=0xb;_0x334b6e[_0x6118('0x65')]=_0x6118('0xe6');_0x334b6e[_0x6118('0xd8')]=moment()[_0x6118('0x3a')](_0x6118('0xbc'));_0x334b6e[_0x6118('0x66')]=_0x334b6e[_0x6118('0xd8')];_0x334b6e[_0x6118('0xd9')]=_0x2e3425[_0x6118('0xd9')];_0x334b6e[_0x6118('0xda')]=_0x2e3425[_0x6118('0xda')];hopperUtils[_0x6118('0xc1')](_0x334b6e)[_0x6118('0x96')](loggerCatch('[syncAgentComplete][createHistory][11]'));}})[_0x6118('0x33')](function(){if(_0x1dd3d3)hopperUtils[_0x6118('0xe7')](_0x2e3425,_0x210f99,_0x3a5f7a)['then'](function(){return 0x1;});});}}}};Dialer[_0x6118('0x13')][_0x6118('0x2d')]=function(_0x1539b3){if(this['actions'][_0x1539b3['uniqueid']]){this[_0x6118('0x1d')][_0x1539b3[_0x6118('0xb9')]]['channel']=_0x1539b3[_0x6118('0xe8')];}if(this[_0x6118('0x1f')][_0x1539b3['uniqueid']]){this[_0x6118('0x1f')][_0x1539b3[_0x6118('0xb9')]][_0x6118('0xe8')]=_0x1539b3[_0x6118('0xe8')];}};Dialer[_0x6118('0x13')]['syncQueueMember']=function(_0x4bbb23){if(!this['actions'][_0x4bbb23[_0x6118('0xe9')]]){return;}var _0x8d8071=this[_0x6118('0x18')][this[_0x6118('0x1d')][_0x4bbb23[_0x6118('0xe9')]][_0x6118('0xb8')]][_0x6118('0xea')]||_0x6118('0xeb');if(_0x8d8071==='roundrobin'){if(this['actions'][_0x4bbb23['actionid']]&&_['isNil'](this[_0x6118('0x1d')][_0x4bbb23[_0x6118('0xe9')]][_0x6118('0xec')])&&_0x4bbb23['status']==='1'&&_0x4bbb23[_0x6118('0xed')]==='0'){if(this[_0x6118('0xee')][_0x4bbb23[_0x6118('0xef')]]){if(!this[_0x6118('0xee')][_0x4bbb23[_0x6118('0xef')]][_0x6118('0xec')]){this[_0x6118('0xee')][_0x4bbb23[_0x6118('0xef')]][_0x6118('0xec')]=!![];this['actions'][_0x4bbb23['actionid']]['locked']=!![];this['actions'][_0x4bbb23[_0x6118('0xe9')]][_0x6118('0xef')]=_0x4bbb23['stateinterface'];}}}}else if(_0x8d8071===_0x6118('0xeb')){if(this[_0x6118('0x1d')][_0x4bbb23[_0x6118('0xe9')]]){if(this[_0x6118('0xee')][_0x4bbb23[_0x6118('0xef')]]){this[_0x6118('0x1d')][_0x4bbb23[_0x6118('0xe9')]][_0x6118('0xef')]=_0x4bbb23[_0x6118('0xef')];if(_[_0x6118('0xf0')](this[_0x6118('0x24')][this[_0x6118('0x1d')][_0x4bbb23[_0x6118('0xe9')]][_0x6118('0xb8')]])){this[_0x6118('0x24')][this[_0x6118('0x1d')][_0x4bbb23['actionid']][_0x6118('0xb8')]]=[];}this[_0x6118('0x24')][this[_0x6118('0x1d')][_0x4bbb23[_0x6118('0xe9')]][_0x6118('0xb8')]][_0x6118('0x90')](_[_0x6118('0x52')](_[_0x6118('0x69')](this[_0x6118('0x1d')][_0x4bbb23[_0x6118('0xe9')]],[_0x6118('0xf1'),_0x6118('0xef')]),{'status':_0x4bbb23[_0x6118('0x7e')],'paused':_0x4bbb23['paused']}));}}}};Dialer[_0x6118('0x13')][_0x6118('0xf2')]=function(_0x294316){if(!this[_0x6118('0x1d')][_0x294316[_0x6118('0xe9')]]){return;}var _0x150a04=this;var _0x5d6879=this['voiceQueues'][this[_0x6118('0x1d')][_0x294316['actionid']][_0x6118('0xb8')]];var _0x39e7d4=_0x5d6879[_0x6118('0xea')]||_0x6118('0xeb');if(_0x39e7d4===_0x6118('0xf3')){if(this[_0x6118('0x1d')][_0x294316[_0x6118('0xe9')]]&&this[_0x6118('0x1d')][_0x294316[_0x6118('0xe9')]]['stateinterface']){this[_0x6118('0x17')][_0x6118('0xf4')](this[_0x6118('0x1d')][_0x294316['actionid']]['idHopper'],this[_0x6118('0x1d')][_0x294316[_0x6118('0xe9')]]['stateinterface'])[_0x6118('0x96')](function(_0x2cf4ec){logger['error'](_0x6118('0xf5'),util[_0x6118('0x39')](_0x2cf4ec,{'showHidden':![],'depth':null}));})['finally'](function(){_0x150a04[_0x6118('0xc5')](_0x150a04[_0x6118('0x18')][_0x150a04[_0x6118('0x1d')][_0x294316[_0x6118('0xe9')]][_0x6118('0xb8')]]);_0x150a04['agents'][_0x150a04['actions'][_0x294316[_0x6118('0xe9')]]['stateinterface']]['locked']=![];delete _0x150a04['actions'][_0x294316[_0x6118('0xe9')]];unlockQueueStatus(_0x5d6879);});}else{this['updateOriginated'](this[_0x6118('0x18')][this[_0x6118('0x1d')][_0x294316[_0x6118('0xe9')]]['queue']]);hopperUtils[_0x6118('0xd3')]({'active':![],'ContactId':this['actions'][_0x294316['actionid']][_0x6118('0xd5')],'ListId':this['actions'][_0x294316['actionid']][_0x6118('0xe2')],'VoiceQueueId':this['actions'][_0x294316[_0x6118('0xe9')]][_0x6118('0xe3')]||undefined,'CampaignId':this[_0x6118('0x1d')][_0x294316['actionid']]['CampaignId']||undefined})[_0x6118('0x96')](loggerCatch(_0x6118('0xf6')));delete this[_0x6118('0x1d')][_0x294316[_0x6118('0xe9')]];unlockQueueStatus(_0x5d6879);}}else if(_0x39e7d4==='rrmemory'){var _0x5ce3d1;if(this['actions'][_0x294316[_0x6118('0xe9')]]&&!_['isEmpty'](this[_0x6118('0x24')][this['actions'][_0x294316['actionid']][_0x6118('0xb8')]])){if(this[_0x6118('0x25')][_0x150a04['actions'][_0x294316[_0x6118('0xe9')]][_0x6118('0xb8')]]){this[_0x6118('0x25')][_0x150a04[_0x6118('0x1d')][_0x294316['actionid']][_0x6118('0xb8')]]=this[_0x6118('0x25')][this['actions'][_0x294316['actionid']][_0x6118('0xb8')]]?this[_0x6118('0x25')][this[_0x6118('0x1d')][_0x294316[_0x6118('0xe9')]][_0x6118('0xb8')]]:this[_0x6118('0x24')][this[_0x6118('0x1d')][_0x294316[_0x6118('0xe9')]][_0x6118('0xb8')]]?this['queueBooked'][this[_0x6118('0x1d')][_0x294316[_0x6118('0xe9')]][_0x6118('0xb8')]][_0x6118('0xf7')]||0x0:0x0;}this['queueBooked'][this[_0x6118('0x1d')][_0x294316[_0x6118('0xe9')]][_0x6118('0xb8')]][_0x6118('0xf7')]=this['queueBookedRR'][this[_0x6118('0x1d')][_0x294316['actionid']][_0x6118('0xb8')]];for(var _0xb0e56b=0x0;_0xb0e56b<this[_0x6118('0x24')][this[_0x6118('0x1d')][_0x294316[_0x6118('0xe9')]][_0x6118('0xb8')]]['length'];_0xb0e56b+=0x1){_0x5ce3d1=rr(this[_0x6118('0x24')][this[_0x6118('0x1d')][_0x294316[_0x6118('0xe9')]]['queue']]);this[_0x6118('0x25')][_0x150a04[_0x6118('0x1d')][_0x294316[_0x6118('0xe9')]][_0x6118('0xb8')]]=this[_0x6118('0x24')][this[_0x6118('0x1d')][_0x294316[_0x6118('0xe9')]]['queue']][_0x6118('0xf7')];if(_0x5ce3d1[_0x6118('0x7e')]==='1'&&_0x5ce3d1['paused']==='0'){break;}}if(!_[_0x6118('0xf0')](_0x5ce3d1)){this['agents'][_0x5ce3d1['stateinterface']][_0x6118('0xf8')]=_[_0x6118('0x35')](this[_0x6118('0xee')][_0x5ce3d1['stateinterface']][_0x6118('0xf8')])?!![]:this['agents'][_0x5ce3d1[_0x6118('0xef')]][_0x6118('0xf8')];}loggerBooked[_0x6118('0x3e')]('[booked][RR]',_0x294316['actionid'],_0x6118('0xf9'),JSON[_0x6118('0x68')](_['pick'](this[_0x6118('0xee')][_0x5ce3d1[_0x6118('0xef')]],['name',_0x6118('0xf8')])),'contactAgent-idHopper:\x20',JSON[_0x6118('0x68')](_0x5ce3d1[_0x6118('0xf1')]));if(!_[_0x6118('0xf0')](_0x5ce3d1)&&_0x5ce3d1[_0x6118('0x7e')]==='1'&&_0x5ce3d1[_0x6118('0xed')]==='0'&&this[_0x6118('0xee')][_0x5ce3d1[_0x6118('0xef')]][_0x6118('0xf8')]){this['agents'][_0x5ce3d1['stateinterface']][_0x6118('0xf8')]=![];this[_0x6118('0x24')][_0x150a04['actions'][_0x294316[_0x6118('0xe9')]][_0x6118('0xb8')]]=[];this[_0x6118('0x17')][_0x6118('0xf4')](_0x5ce3d1['idHopper'],_0x5ce3d1['stateinterface'])[_0x6118('0x96')](function(_0x519587){logger[_0x6118('0x5a')](_0x6118('0xf5'),util[_0x6118('0x39')](_0x519587,{'showHidden':![],'depth':null}));})[_0x6118('0x15')](function(){_0x150a04[_0x6118('0xc5')](_0x150a04[_0x6118('0x18')][_0x150a04[_0x6118('0x1d')][_0x294316[_0x6118('0xe9')]][_0x6118('0xb8')]]);setTimeout(function(){_0x150a04[_0x6118('0xee')][_0x5ce3d1[_0x6118('0xef')]][_0x6118('0xf8')]=!![];loggerBooked['info'](_0x6118('0xfa'),_0x294316['actionid'],_0x6118('0xf9'),JSON[_0x6118('0x68')](_['pick'](_0x150a04[_0x6118('0xee')][_0x5ce3d1[_0x6118('0xef')]],[_0x6118('0x56'),'unlockRR'])),_0x6118('0xfb'),JSON['stringify'](_0x5ce3d1[_0x6118('0xf1')]));},0xc7);delete _0x150a04[_0x6118('0x1d')][_0x294316[_0x6118('0xe9')]];unlockQueueStatus(_0x5d6879,_0x294316['actionid']);});}else{loggerBooked[_0x6118('0x3e')](_0x6118('0xfc'));this[_0x6118('0xc5')](this[_0x6118('0x18')][this[_0x6118('0x1d')][_0x294316['actionid']][_0x6118('0xb8')]]);hopperUtils[_0x6118('0xd3')]({'active':![],'ContactId':this['actions'][_0x294316[_0x6118('0xe9')]][_0x6118('0xd5')],'ListId':this[_0x6118('0x1d')][_0x294316[_0x6118('0xe9')]]['ListId'],'VoiceQueueId':this[_0x6118('0x1d')][_0x294316['actionid']]['VoiceQueueId']||undefined,'CampaignId':this[_0x6118('0x1d')][_0x294316[_0x6118('0xe9')]][_0x6118('0xe4')]||undefined})[_0x6118('0x96')](loggerCatch('[unlock][syncQueueStatusComplete]'));delete this['actions'][_0x294316[_0x6118('0xe9')]];unlockQueueStatus(_0x5d6879);}}else{loggerBooked[_0x6118('0x3e')](_0x6118('0xfd'));this['updateOriginated'](this[_0x6118('0x18')][this[_0x6118('0x1d')][_0x294316[_0x6118('0xe9')]][_0x6118('0xb8')]]);hopperUtils[_0x6118('0xd3')]({'active':![],'ContactId':this[_0x6118('0x1d')][_0x294316[_0x6118('0xe9')]][_0x6118('0xd5')],'ListId':this['actions'][_0x294316[_0x6118('0xe9')]][_0x6118('0xe2')],'VoiceQueueId':this[_0x6118('0x1d')][_0x294316[_0x6118('0xe9')]][_0x6118('0xe3')]||undefined,'CampaignId':this[_0x6118('0x1d')][_0x294316[_0x6118('0xe9')]]['CampaignId']||undefined})[_0x6118('0x96')](loggerCatch('[unlock2][syncQueueStatusComplete]'));delete this[_0x6118('0x1d')][_0x294316[_0x6118('0xe9')]];unlockQueueStatus(_0x5d6879);}}else{loggerBooked['info'](_0x6118('0xfe'));this[_0x6118('0xc5')](this[_0x6118('0x18')][this[_0x6118('0x1d')][_0x294316[_0x6118('0xe9')]][_0x6118('0xb8')]]);hopperUtils[_0x6118('0xd3')]({'active':![],'ContactId':this[_0x6118('0x1d')][_0x294316['actionid']][_0x6118('0xd5')],'ListId':this[_0x6118('0x1d')][_0x294316[_0x6118('0xe9')]][_0x6118('0xe2')],'VoiceQueueId':this[_0x6118('0x1d')][_0x294316[_0x6118('0xe9')]][_0x6118('0xe3')]||undefined,'CampaignId':this[_0x6118('0x1d')][_0x294316['actionid']][_0x6118('0xe4')]||undefined})[_0x6118('0x96')](loggerCatch(_0x6118('0xff')));delete this['actions'][_0x294316['actionid']];unlockQueueStatus(_0x5d6879);}};Dialer[_0x6118('0x13')][_0x6118('0x100')]=function(_0x3570fb){var _0x188f06=this[_0x6118('0x1d')][_0x3570fb['actionid']];if(_0x188f06){delete this['actions'][_0x3570fb[_0x6118('0xe9')]];_0x188f06['responsetime']=moment()['format'](_0x6118('0xbc'));var _0x2c9df7=_0x188f06[_0x6118('0x37')]===_0x6118('0xba')?this['campaigns'][_0x188f06[_0x6118('0xb8')]]:this['voiceQueues'][_0x188f06[_0x6118('0x101')]()];if(_0x3570fb[_0x6118('0x102')]!=='Success'){this[_0x6118('0xc5')](_0x2c9df7);return this['callProgressDetecting'](_0x188f06,_0x2c9df7,_0x3570fb)[_0x6118('0x96')](loggerCatch(_0x6118('0x103')));}this[_0x6118('0x1f')][_0x3570fb[_0x6118('0xb9')]]=_0x188f06;}};Dialer[_0x6118('0x13')][_0x6118('0x2f')]=function(_0x5c0f0a){var _0x3bcf3d=this;var _0x24e32f=this['uniqueId'][_0x5c0f0a[_0x6118('0xb9')]];var _0x22e19f;if(!_[_0x6118('0xf0')](_0x5c0f0a)&&!_[_0x6118('0xf0')](_0x5c0f0a['variable'])&&!_[_0x6118('0xf0')](_0x5c0f0a['variable'][_0x6118('0x104')])&&_0x5c0f0a[_0x6118('0x105')]===_0x6118('0x106')&&_0x24e32f){if(_0x24e32f[_0x6118('0x37')]!==_0x6118('0xba')&&this[_0x6118('0x18')][_0x24e32f[_0x6118('0xb8')]][_0x6118('0x107')]&&_0x5c0f0a[_0x6118('0x108')]===_0x6118('0x109')){delete this[_0x6118('0x1f')][_0x5c0f0a['uniqueid']];this[_0x6118('0xc5')](this['voiceQueues'][_0x24e32f[_0x6118('0xb8')]]);this['voiceQueues'][_0x24e32f[_0x6118('0xb8')]][_0x6118('0xbd')]+=0x1;this[_0x6118('0x18')][_0x24e32f['queue']][_0x6118('0x10a')]+=0x1;_0x22e19f=new Hangup(_0x24e32f,_0x5c0f0a);_0x22e19f[_0x6118('0x64')]=0x12;_0x22e19f['statedesc']=_0x6118('0x10b');_0x22e19f[_0x6118('0x10c')]=_0x6118('0x10d');ami[_0x6118('0x36')](_0x6118('0x10e'),ut['buildObj'](_0x22e19f,_0x6118('0x10f')));this['saveInDb'](_0x22e19f,_0x6118('0x110'),_0x6118('0x111'));}if(_0x24e32f[_0x6118('0x37')]!=='ivr'&&this[_0x6118('0x18')][_0x24e32f[_0x6118('0xb8')]][_0x6118('0x107')]&&_0x5c0f0a['value']===_0x6118('0x112')){return new Promise(function(_0x1e95a5,_0x77dcaf){delete _0x3bcf3d[_0x6118('0x1f')][_0x5c0f0a[_0x6118('0xb9')]];_0x3bcf3d[_0x6118('0xc5')](_0x3bcf3d[_0x6118('0x18')][_0x24e32f[_0x6118('0xb8')]]);_0x3bcf3d[_0x6118('0x18')][_0x24e32f[_0x6118('0xb8')]][_0x6118('0xbd')]+=0x1;_0x3bcf3d['voiceQueues'][_0x24e32f[_0x6118('0xb8')]][_0x6118('0x10a')]+=0x1;var _0x5b0a2f=_0x3bcf3d[_0x6118('0x18')][_0x24e32f[_0x6118('0xb8')]];var _0x1c9926=new Hangup(_0x24e32f,_0x5c0f0a);_0x1c9926['state']=0x13;_0x1c9926[_0x6118('0x65')]=_0x6118('0x113');_0x1c9926['membername']=_0x6118('0x10d');_0x1c9926[_0x6118('0x114')]+=0x1;_0x1c9926[_0x6118('0xde')]+=0x1;_0x1c9926[_0x6118('0x10f')]=!![];ami['emit'](_0x6118('0x10e'),ut[_0x6118('0x115')](_0x1c9926,_0x6118('0x10f')));hopperUtils[_0x6118('0xc1')](_0x1c9926)[_0x6118('0x96')](loggerCatch(_0x6118('0x116')));if(_0x1c9926[_0x6118('0x117')]+_0x1c9926[_0x6118('0x118')]+_0x1c9926['countnoanswerretry']+_0x1c9926[_0x6118('0x119')]+_0x1c9926[_0x6118('0xcd')]+_0x1c9926[_0x6118('0xdd')]+_0x1c9926[_0x6118('0x114')]+_0x1c9926['countagentrejectretry']>=_0x5b0a2f[_0x6118('0x11a')]){_0x3bcf3d[_0x6118('0x11b')](_0x1c9926,_0x1e95a5,_0x77dcaf,_0x6118('0x11c'));}else{if(_0x1c9926[_0x6118('0x114')]>=_0x5b0a2f[_0x6118('0x11d')]){_0x3bcf3d['createStateFinal'](_0x1c9926,_0x1e95a5,_0x77dcaf,_0x6118('0x11e'));}else{hopperUtils['rescheduleContact']({'active':![],'countmachineretry':_0x1c9926[_0x6118('0x114')],'scheduledat':moment()[_0x6118('0xd4')](_0x5b0a2f[_0x6118('0x11f')],_0x6118('0xe1'))[_0x6118('0x3a')](_0x6118('0xbc')),'ContactId':_0x1c9926[_0x6118('0xd5')],'ListId':_0x1c9926['ListId'],'VoiceQueueId':_0x1c9926[_0x6118('0xe3')]||undefined,'CampaignId':_0x1c9926[_0x6118('0xe4')]||undefined})[_0x6118('0x96')](loggerCatch(_0x6118('0x120')));_0x1e95a5({'reschedule':0x1});}}});}if(_0x24e32f['type']===_0x6118('0xba')&&this[_0x6118('0x19')][_0x24e32f['queue']][_0x6118('0x107')]&&_0x5c0f0a[_0x6118('0x108')]===_0x6118('0x109')){delete this[_0x6118('0x1f')][_0x5c0f0a[_0x6118('0xb9')]];this[_0x6118('0xc5')](this['campaigns'][_0x24e32f[_0x6118('0xb8')]]);_0x22e19f=new Hangup(_0x24e32f,_0x5c0f0a);_0x22e19f['state']=0x12;_0x22e19f[_0x6118('0x65')]=_0x6118('0x10b');_0x22e19f[_0x6118('0x10c')]='AMD';ami['emit'](_0x6118('0x10e'),ut['buildObj'](_0x22e19f,_0x6118('0x10f')));this[_0x6118('0x121')](_0x22e19f,_0x6118('0x122'),'[syncHangupInAMDIvr]');}if(_0x24e32f[_0x6118('0x37')]===_0x6118('0xba')&&this[_0x6118('0x19')][_0x24e32f[_0x6118('0xb8')]][_0x6118('0x107')]&&_0x5c0f0a[_0x6118('0x108')]===_0x6118('0x112')){return new Promise(function(_0x2b7f8e,_0x540ec0){delete _0x3bcf3d[_0x6118('0x1f')][_0x5c0f0a['uniqueid']];_0x3bcf3d[_0x6118('0xc5')](_0x3bcf3d[_0x6118('0x19')][_0x24e32f[_0x6118('0xb8')]]);_0x3bcf3d[_0x6118('0x19')][_0x24e32f[_0x6118('0xb8')]]['outboundAnswerCallsDay']+=0x1;_0x3bcf3d[_0x6118('0x19')][_0x24e32f[_0x6118('0xb8')]][_0x6118('0x10a')]+=0x1;var _0x27ca16=_0x3bcf3d[_0x6118('0x19')][_0x24e32f[_0x6118('0xb8')]];var _0x3739f4=new Hangup(_0x24e32f,_0x5c0f0a);_0x3739f4[_0x6118('0x64')]=0x13;_0x3739f4[_0x6118('0x65')]=_0x6118('0x113');_0x3739f4[_0x6118('0x10c')]='AMD';_0x3739f4[_0x6118('0x114')]+=0x1;_0x3739f4[_0x6118('0xde')]+=0x1;_0x3739f4[_0x6118('0x10f')]=!![];ami[_0x6118('0x36')](_0x6118('0x10e'),ut['buildObj'](_0x3739f4,_0x6118('0x10f')));hopperUtils[_0x6118('0xc1')](_0x3739f4)[_0x6118('0x96')](loggerCatch(_0x6118('0x116')));if(_0x3739f4[_0x6118('0x117')]+_0x3739f4['countcongestionretry']+_0x3739f4[_0x6118('0x123')]+_0x3739f4[_0x6118('0x119')]+_0x3739f4['countdropretry']+_0x3739f4[_0x6118('0xdd')]+_0x3739f4['countmachineretry']+_0x3739f4[_0x6118('0x124')]>=_0x27ca16[_0x6118('0x11a')]){_0x3bcf3d[_0x6118('0x11b')](_0x3739f4,_0x2b7f8e,_0x540ec0,'reason19\x20machine....');}else{if(_0x3739f4[_0x6118('0x114')]>=_0x27ca16[_0x6118('0x11d')]){_0x3bcf3d[_0x6118('0x125')](_0x3739f4,_0x2b7f8e,_0x540ec0,_0x6118('0x11e'));}else{hopperUtils[_0x6118('0xd3')]({'active':![],'countmachineretry':_0x3739f4[_0x6118('0x114')],'scheduledat':moment()[_0x6118('0xd4')](_0x27ca16['dialMachineRetryFrequency'],_0x6118('0xe1'))[_0x6118('0x3a')]('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0x3739f4['ContactId'],'ListId':_0x3739f4[_0x6118('0xe2')],'VoiceQueueId':_0x3739f4[_0x6118('0xe3')]||undefined,'CampaignId':_0x3739f4['CampaignId']||undefined})[_0x6118('0x96')](loggerCatch('[rescheduleContact][Machine]'));_0x2b7f8e({'reschedule':0x1});}}});}}};Dialer[_0x6118('0x13')][_0x6118('0x126')]=function(_0x16ba14){var _0x133c2e=this[_0x6118('0x1f')][_0x16ba14[_0x6118('0xb9')]];var _0x2ba41c;if(_0x133c2e&&_0x133c2e[_0x6118('0x37')]===_0x6118('0xba')){delete this[_0x6118('0x1f')][_0x16ba14['uniqueid']];this['updateOriginated'](this['campaigns'][_0x133c2e[_0x6118('0xb8')]]);this['campaigns'][_0x133c2e['queue']][_0x6118('0x127')]+=0x1;_0x2ba41c=new Hangup(_0x133c2e,_0x16ba14);hopperUtils[_0x6118('0xc1')](_0x2ba41c)['catch'](loggerCatch('[syncHangupIvr][createHistory]'));hopperUtils[_0x6118('0x128')](_0x2ba41c)[_0x6118('0x96')](loggerCatch('[syncHangupIvr]'));}if(_0x133c2e&&_0x133c2e[_0x6118('0x37')]!==_0x6118('0xba')&&isNotNull(this[_0x6118('0x18')][_0x133c2e['queue']][_0x6118('0x129')])){delete this[_0x6118('0x1f')][_0x16ba14[_0x6118('0xb9')]];this[_0x6118('0xc5')](this['voiceQueues'][_0x133c2e[_0x6118('0xb8')]]);this[_0x6118('0x18')][_0x133c2e[_0x6118('0xb8')]][_0x6118('0xbd')]+=0x1;this['voiceQueues'][_0x133c2e[_0x6118('0xb8')]][_0x6118('0x10a')]+=0x1;_0x2ba41c=new Hangup(_0x133c2e,_0x16ba14);_0x2ba41c['state']=0x10;_0x2ba41c[_0x6118('0x65')]='AnswerAGI';_0x2ba41c['membername']=_0x6118('0x12a');hopperUtils['createHistory'](_0x2ba41c)['catch'](loggerCatch(_0x6118('0x12b')));hopperUtils['moveContactManagedDialer'](_0x2ba41c)[_0x6118('0x96')](loggerCatch('[syncHangupIvr]'));}if(_0x133c2e&&_0x133c2e['type']!==_0x6118('0xba')&&!isNotNull(this[_0x6118('0x18')][_0x133c2e[_0x6118('0xb8')]][_0x6118('0x129')])){delete this[_0x6118('0x1f')][_0x16ba14[_0x6118('0xb9')]];this[_0x6118('0xc5')](this[_0x6118('0x18')][_0x133c2e[_0x6118('0xb8')]]);this[_0x6118('0x18')][_0x133c2e[_0x6118('0xb8')]][_0x6118('0x12c')]+=0x1;_0x2ba41c=new Hangup(_0x133c2e,_0x16ba14);_0x2ba41c[_0x6118('0x64')]=0xc;_0x2ba41c['statedesc']=_0x16ba14[_0x6118('0x12d')];_0x2ba41c[_0x6118('0x10c')]=_0x6118('0x12e');hopperUtils['createHistory'](_0x2ba41c)['catch'](loggerCatch(_0x6118('0x12b')));hopperUtils[_0x6118('0x128')](_0x2ba41c)[_0x6118('0x96')](loggerCatch(_0x6118('0x12f')));}};Dialer[_0x6118('0x13')][_0x6118('0x2b')]=function(_0x37079b){var _0x5683b3=this;if(!_0x5683b3[_0x6118('0x26')][_0x37079b[_0x6118('0x56')]]){_0x5683b3['queuesSummary'][_0x37079b['name']]={'running':![]};}else if(_0x5683b3[_0x6118('0x26')][_0x37079b['name']][_0x6118('0x130')]===!![]){return;}else if(_0x5683b3[_0x6118('0x26')][_0x37079b[_0x6118('0x56')]][_0x6118('0x130')]===![]){_0x5683b3[_0x6118('0x26')][_0x37079b['name']][_0x6118('0x130')]=!![];}var _0xbcd557=_0x5683b3[_0x6118('0x18')][_0x37079b[_0x6118('0x56')]];var _0x226ad5=_0xbcd557[_0x6118('0x5e')]!==utils['CAMPAIGN_STATUS'][_0x6118('0x70')];var _0x477706=utils[_0x6118('0x131')](_0xbcd557);_0xbcd557[_0x6118('0x132')]=utils[_0x6118('0x133')](_0xbcd557,_0x5683b3[_0x6118('0x1a')]);Promise[_0x6118('0xa0')]()[_0x6118('0x33')](function(){if(_0xbcd557['statusMessage']===utils['CAMPAIGN_STATUS'][_0x6118('0x70')]){if(_0x226ad5){clearPredictiveAttributes(_0xbcd557);_0x37079b['startPredictive']=undefined;_0x37079b[_0x6118('0x22')]=undefined;}if(_0xbcd557['statusMessage']===utils[_0x6118('0x6b')][_0x6118('0x70')]){_0x37079b['available']=0x0;_0x37079b['paused']=0x0;_0x37079b[_0x6118('0x134')]=0x0;_0x37079b[_0x6118('0x135')]=0x0;_0x37079b[_0x6118('0x136')]=0x0;}}else if(_0xbcd557[_0x6118('0x132')]===utils[_0x6118('0x6b')][_0x6118('0x137')]&&!_0x477706){return _0x5683b3['ifTime'](_0xbcd557,!![])[_0x6118('0x33')](function(){return _0x5683b3[_0x6118('0x87')](_0xbcd557,![]);})[_0x6118('0x33')](function(){return _0x5683b3[_0x6118('0xa4')](_0xbcd557);})['catch'](function(_0x57a2db){loggerSyncQueueSummary[_0x6118('0x54')](_0x6118('0x138'),util['inspect'](_0x57a2db,{'showHidden':![],'depth':null}));clearPredictiveAttributes(_0xbcd557);});}else{clearPredictiveAttributes(_0xbcd557);}})[_0x6118('0x33')](function(){var _0x997df8=_0x37079b[_0x6118('0x139')](_0xbcd557);if(_0x997df8||_0xbcd557[_0x6118('0x13a')]){_0xbcd557[_0x6118('0x13a')]=![];_0x37079b[_0x6118('0x13b')](_0xbcd557);Object[_0x6118('0x13c')](_0xbcd557,_0x37079b);emitOutboundVoiceQueueSummary(_0x37079b);}_0x5683b3[_0x6118('0x26')][_0xbcd557['name']][_0x6118('0x130')]=![];})[_0x6118('0x96')](function(_0x1e672d){logger[_0x6118('0x5a')](_0x6118('0x138'),util[_0x6118('0x39')](_0x1e672d,{'showHidden':![],'depth':null}));_0x5683b3[_0x6118('0x26')][_0xbcd557['name']][_0x6118('0x130')]=![];});};Dialer[_0x6118('0x13')][_0x6118('0x13d')]=_[_0x6118('0x13e')](function(){var _0x8d92af=_['filter'](this[_0x6118('0x18')],function(_0x1bcfd2){return _0x1bcfd2[_0x6118('0x13f')];});var _0x43d816=_[_0x6118('0x140')](this['agents'],function(_0x5ad399){return _0x5ad399[_0x6118('0x141')]&&_0x5ad399[_0x6118('0x7e')]===_0x6118('0x7f');});if(_0x8d92af[_0x6118('0x8f')]>0x0&&_0x43d816['length']>0x0){return Promise[_0x6118('0xa0')]()[_0x6118('0x33')](cmHopper[_0x6118('0x142')](_[_0x6118('0x143')](_0x8d92af,'id'),previewRecallmeReminderInterval,_[_0x6118('0x143')](_0x43d816,'id')))['then'](function(_0x14212e){for(var _0x25d43d=0x0;_0x25d43d<_0x14212e[_0x6118('0x8f')];_0x25d43d++){var _0x4f459f=_0x14212e[_0x25d43d][_0x6118('0x144')][_0x6118('0x56')];if(_0x4f459f)io['to'](util['format'](_0x6118('0x145'),_0x4f459f))[_0x6118('0x36')](_0x6118('0x146'),{'hopper':_0x14212e[_0x25d43d]});}})['catch'](function(_0x23cca5){logger['error']('checkPreviewRecallReminder',_0x23cca5);});}},0x3c*0x3e8,{'leading':!![]});Dialer[_0x6118('0x13')][_0x6118('0x31')]=function(){var _0x1729af=this;setInterval(function(){_0x1729af['clearZombieChannels'](_0x1729af[_0x6118('0x1f')],_0x6118('0x147'));_0x1729af[_0x6118('0x148')](_0x1729af['actions'],_0x6118('0x149'));},0x32c8);};Dialer['prototype'][_0x6118('0x148')]=function(_0x47cc43,_0x5114ec){var _0x3664de=this;for(var _0x2b8983 in _0x47cc43){if(typeof _0x47cc43[_0x2b8983]!==_0x6118('0x14a')){this[_0x6118('0x16')]['enqueue'](function(){if(!_[_0x6118('0xf0')](_0x47cc43[_0x2b8983])){return ami[_0x6118('0x97')]({'action':_0x6118('0x7e'),'channel':_0x47cc43[_0x2b8983]['channel']})[_0x6118('0x96')](function(_0x42688e){if(_0x42688e[_0x6118('0x5e')]===_0x6118('0x14b')){setTimeout(function(){if(_0x47cc43[_0x2b8983]&&_0x47cc43[_0x2b8983][_0x6118('0x37')]!==_0x6118('0xba')){_0x3664de['updateOriginated'](_0x3664de[_0x6118('0x18')][_0x47cc43[_0x2b8983]['queue']]);logger[_0x6118('0x5a')]('[Dialer][checkChannel]',_0x5114ec,_0x2b8983,_0x47cc43[_0x2b8983][_0x6118('0xb8')]);delete _0x47cc43[_0x2b8983];}if(_0x47cc43[_0x2b8983]&&_0x47cc43[_0x2b8983][_0x6118('0x37')]===_0x6118('0xba')){_0x3664de[_0x6118('0xc5')](_0x3664de[_0x6118('0x19')][_0x47cc43[_0x2b8983][_0x6118('0xb8')]]);logger[_0x6118('0x5a')](_0x6118('0x14c'),_0x5114ec,_0x2b8983,_0x47cc43[_0x2b8983]['queue']);delete _0x47cc43[_0x2b8983];}},0x2328);}});}});}}};Dialer[_0x6118('0x13')][_0x6118('0x14d')]=function(_0xd6db15){return Promise['resolve']()[_0x6118('0x33')](voiceQueueRt[_0x6118('0x14d')](_0xd6db15))[_0x6118('0x96')](loggerCatch(_0x6118('0x14e')));};Dialer[_0x6118('0x13')][_0x6118('0xc5')]=function(_0x8b593a){if(!_[_0x6118('0x35')](_0x8b593a)&&_0x8b593a!==null){if(typeof _0x8b593a[_0x6118('0x76')]!==_0x6118('0x14a')){if(_0x8b593a[_0x6118('0x76')]>0x0){_0x8b593a['originated']-=0x1;}else{logger[_0x6118('0x5a')](_0x6118('0x14f'));}}}else{logger[_0x6118('0x5a')](_0x6118('0x150'));}};Dialer[_0x6118('0x13')][_0x6118('0x151')]=function(_0x410e77,_0x28703d){var _0x50d7d4=this;return function(_0x10693e){_0x50d7d4[_0x6118('0xc5')](_0x28703d);logger[_0x6118('0x5a')](_0x410e77,util['inspect'](_0x10693e,{'showHidden':![],'depth':null}));};};Dialer[_0x6118('0x13')][_0x6118('0x152')]=function(_0x3fc886,_0x177910,_0x21c58b){var _0x448bac={'state':0x19,'statedesc':'notFound'};this[_0x6118('0xc5')](_0x177910);this[_0x6118('0x121')](_[_0x6118('0x52')](_0x448bac,_[_0x6118('0x69')](_0x21c58b,[_0x6118('0xd5'),_0x6118('0xe2'),'UserId',_0x6118('0xe3'),_0x6118('0xe4')])),_0x6118('0x153'),_0x6118('0x154'));logger[_0x6118('0x5a')](_0x3fc886);};Dialer[_0x6118('0x13')]['saveInDb']=function(_0xc814db,_0x16741c,_0x29b745){hopperUtils['createHistory'](_0xc814db)[_0x6118('0x96')](loggerCatch(_0x16741c));hopperUtils['moveContactManagedDialer'](_0xc814db)[_0x6118('0x96')](loggerCatch(_0x29b745));};Dialer[_0x6118('0x13')][_0x6118('0xd2')]=function(_0x575f6b,_0x4ae4ba){hopperUtils['createHistory'](_0x575f6b)[_0x6118('0x96')](loggerCatch(_0x6118('0xc2')));if(_0x4ae4ba==0x0){hopperUtils[_0x6118('0x128')](_0x575f6b)[_0x6118('0x96')](loggerCatch('[syncQueueCallerAbandon]\x20[Drop]'));}};Dialer[_0x6118('0x13')][_0x6118('0x155')]=function(_0x4e6b10){return Promise[_0x6118('0xa0')]()['then'](cmHopper['handlePreviewRecallNotifications'](_0x4e6b10['id'],previewRecallmeReminderInterval))['then'](function(_0x5a9044){for(var _0x17ecb3=0x0;_0x17ecb3<_0x5a9044[_0x6118('0x8f')];_0x17ecb3++){var _0x542440=_0x5a9044[_0x17ecb3][_0x6118('0x144')][_0x6118('0x56')];if(_0x542440)io['to'](util[_0x6118('0x3a')](_0x6118('0x145'),_0x542440))[_0x6118('0x36')](_0x6118('0x146'),{'hopper':_0x5a9044[_0x17ecb3]});}})[_0x6118('0x96')](function(){});};Dialer[_0x6118('0x13')][_0x6118('0xa3')]=function(_0x2c46a8){var _0xf05def=this;return function(){_0xf05def[_0x6118('0x156')](_0x2c46a8);};};Dialer[_0x6118('0x13')][_0x6118('0x157')]=function(_0x3620d2,_0x4b4725){var _0x3b5df3=this;var _0xbeaf51=uuid['v4']();this['actions'][_0xbeaf51]=new Action(_0x3620d2,_0x4b4725,_0xbeaf51);return new Promise(function(_0x851a84,_0x53e850){if(_[_0x6118('0x35')](_0x3620d2)&&typeof _0x3620d2!==_0x6118('0x158')){return _0x53e850(msgResponse(_0x6118('0x159'),_0x6118('0x88'),'voiceQueue\x20is\x20undefine'));}if(_[_0x6118('0x35')](_0x4b4725[_0x6118('0x15a')])||_0x4b4725[_0x6118('0x15a')]===null){return _0x53e850(msgResponse(_0x6118('0x159'),_0x6118('0x88'),_0x6118('0x15b')));}var _0x2d4a4e={'XMD-CALLERID':_0x3b5df3[_0x6118('0x1d')][_0xbeaf51][_0x6118('0x15c')](),'XMD-AGI':_0x3620d2['dialQueueProject']?util['format'](_0x6118('0x15d'),ipAgi,_0x3620d2[_0x6118('0x129')]):_0x6118('0x15e'),'XMD-AGIAFTER':_0x3620d2[_0x6118('0xcc')]?util[_0x6118('0x3a')](_0x6118('0x15d'),ipAgi,_0x3620d2['dialQueueProject2']):_0x6118('0x15e'),'XMD-QUEUE':utils[_0x6118('0x15f')](_0x3620d2)?util[_0x6118('0x3a')]('\x22%s,%s%s,,,%s\x22',_0x3620d2[_0x6118('0x56')],_0x3620d2['dialQueueOptions']||'',_0x3620d2['dialAgiAfterHangupAgent']?'c':'',_0x3620d2[_0x6118('0xc8')]||0x3):_0x6118('0x15e'),'XMD-CONTACTID':_0x4b4725[_0x6118('0xd5')],'XMD-CDRTYPE':_0x6118('0x6'),'CALLERID(all)':_0x3b5df3[_0x6118('0x1d')][_0xbeaf51][_0x6118('0x15c')](),'XMD-AMD':_0x3620d2[_0x6118('0x107')]?'ACTIVE':_0x6118('0x15e'),'XMD-DESTINATION':_0x6118('0x106')};if(_0x3620d2[_0x6118('0x107')]){_0x2d4a4e['XMD-AMDINITIALSILENCE']=_0x3620d2['dialAMDInitialSilence']||0x9c4;_0x2d4a4e[_0x6118('0x160')]=_0x3620d2[_0x6118('0x161')]||0x5dc;_0x2d4a4e['XMD-AMDAFTERGREETINGSILENCE']=_0x3620d2['dialAMDAfterGreetingSilence']||0x320;_0x2d4a4e[_0x6118('0x162')]=_0x3620d2[_0x6118('0x163')]||0x1388;_0x2d4a4e[_0x6118('0x164')]=_0x3620d2[_0x6118('0x165')]||0x64;_0x2d4a4e[_0x6118('0x166')]=_0x3620d2[_0x6118('0x167')]||0x32;_0x2d4a4e['XMD-AMDMAXIMUMNUMBEROFWORDS']=_0x3620d2[_0x6118('0x168')]||0x3;_0x2d4a4e[_0x6118('0x169')]=_0x3620d2[_0x6118('0x16a')]||0x100;_0x2d4a4e['XMD-AMDMAXIMUMWORDLENGTH']=_0x3620d2[_0x6118('0x16b')]||0x1388;}if(utils[_0x6118('0x15f')](_0x3620d2)){_0x2d4a4e['XMD-VOICEQUEUEID']=_0x4b4725[_0x6118('0xe3')];}else{_0x2d4a4e[_0x6118('0x16c')]=_0x4b4725[_0x6118('0xe4')];}for(var _0xebd396 in _0x4b4725['Contact']){if(typeof _0x4b4725[_0x6118('0x16d')][_0xebd396]!==_0x6118('0x14a')){if(isNotNull(_0x4b4725['Contact'][_0xebd396])&&_0xebd396!=='id'&&_0xebd396!==_0x6118('0x16e')&&_0xebd396!=='createdAt'&&_0xebd396!==_0x6118('0x16f')){_0x2d4a4e[util['format'](_0x6118('0x170'),_0x6118('0x171'),_[_0x6118('0x172')](_0xebd396))]=_0x4b4725[_0x6118('0x16d')][_0xebd396];}}}var _0x13bd2b=_0x3b5df3[_0x6118('0x7b')](_0x3620d2[_0x6118('0x173')])?utils[_0x6118('0x174')](_0x3620d2[_0x6118('0x173')][_0x6118('0x175')],_0x3620d2[_0x6118('0x176')],_0x3620d2[_0x6118('0x177')]>0x0?utils[_0x6118('0x178')](_0x3620d2[_0x6118('0x179')],_0x3620d2[_0x6118('0x177')]):_0x3620d2[_0x6118('0x179')]):utils['getCallerId'](_[_0x6118('0xf0')](_0x3620d2[_0x6118('0x81')])?_0x3620d2[_0x6118('0x173')][_0x6118('0x175')]:_0x3620d2[_0x6118('0x81')][_0x6118('0x175')],_0x3620d2[_0x6118('0x176')],_0x3620d2[_0x6118('0x177')]>0x0?utils[_0x6118('0x178')](_0x3620d2[_0x6118('0x179')],_0x3620d2[_0x6118('0x177')]):_0x3620d2[_0x6118('0x179')]);if(_0x13bd2b){_0x2d4a4e[_0x6118('0x17a')]=_0x3b5df3[_0x6118('0x1d')][_0xbeaf51][_0x6118('0x17b')]=utils[_0x6118('0x17c')](_0x13bd2b);_0x2d4a4e[_0x6118('0x17d')]=_0x4b4725[_0x6118('0x15a')];}_0x3620d2[_0x6118('0x17e')]=_0x2d4a4e;return ami[_0x6118('0x97')]({'actionid':_0xbeaf51,'action':'originate','channel':_0x3b5df3[_0x6118('0x7b')](_0x3620d2[_0x6118('0x173')])?util['format'](_0x6118('0x17f'),_0x3620d2['Trunk']['name'],isNotNull(_0x3620d2[_0x6118('0x180')])?_0x3620d2[_0x6118('0x180')]['trim']()||'':'',_0x3620d2[_0x6118('0x181')]>0x0?_0x4b4725[_0x6118('0x15a')][_0x6118('0x182')](_0x3620d2[_0x6118('0x181')]):_0x4b4725[_0x6118('0x15a')]):util[_0x6118('0x3a')]('SIP/%s/%s%s',_[_0x6118('0xf0')](_0x3620d2[_0x6118('0x81')])?_0x3620d2[_0x6118('0x173')][_0x6118('0x56')]:_0x3620d2[_0x6118('0x81')][_0x6118('0x56')],isNotNull(_0x3620d2[_0x6118('0x180')])?_0x3620d2[_0x6118('0x180')][_0x6118('0x183')]()||'':'',_0x3620d2[_0x6118('0x181')]>0x0?_0x4b4725['phone']['substring'](_0x3620d2[_0x6118('0x181')]):_0x4b4725[_0x6118('0x15a')]),'callerid':_0x13bd2b,'Exten':_0x6118('0x106'),'Context':'from-sip','Priority':'1','variable':_0x2d4a4e,'timeout':(_0x3620d2[_0x6118('0x184')]||0x1e)*0x3e8,'async':!![],'channelid':_0xbeaf51})[_0x6118('0x33')](function(_0x17e602){return _0x851a84(_0x17e602);})['catch'](function(_0x290d36){_0x3620d2[_0x6118('0x185')]+=0x1;var _0x179618=new History(_0x3b5df3[_0x6118('0x1d')][_0xbeaf51]);logger['error'](util[_0x6118('0x3a')](_0x6118('0x186'),JSON[_0x6118('0x68')](_0x290d36)));_0x179618['state']=0xe;_0x179618[_0x6118('0x65')]=_0x6118('0x187');_0x179618[_0x6118('0xd8')]=moment()[_0x6118('0x3a')](_0x6118('0xbc'));_0x179618[_0x6118('0x66')]=_0x179618['starttime'];hopperUtils[_0x6118('0xc1')](_0x179618)[_0x6118('0x96')](loggerCatch(_0x6118('0x188')));_0x3b5df3['moveContactManagedDialer'](_0x179618)[_0x6118('0x96')](loggerCatch(_0x6118('0x188')))[_0x6118('0x15')](function(){delete _0x3b5df3['actions'][_0xbeaf51];return _0x53e850(msgResponse(_0x6118('0x159'),_0x6118('0x7a'),_0x6118('0x189')));});});});};Dialer[_0x6118('0x13')][_0x6118('0x18a')]=function(_0x57fae,_0x2c6383,_0x2e6caf){var _0x13c3c1=new History(_0x2c6383);if(_0x13c3c1[_0x6118('0x117')]+_0x13c3c1[_0x6118('0x118')]+_0x13c3c1[_0x6118('0x123')]+_0x13c3c1[_0x6118('0x119')]+_0x13c3c1[_0x6118('0xcd')]+_0x13c3c1[_0x6118('0xdd')]+_0x13c3c1['countmachineretry']+_0x13c3c1[_0x6118('0x124')]>=_0x2e6caf[_0x6118('0x11a')]-0x1){return!![];}switch(_0x57fae){case 0x3:if(_0x13c3c1[_0x6118('0x123')]>=_0x2e6caf['dialNoAnswerMaxRetry']-0x1){return!![];}hopperUtils['rescheduleContact']({'active':![],'countnoanswerretry':_0x13c3c1['countnoanswerretry']+=0x1,'scheduledat':moment()[_0x6118('0xd4')](_0x2e6caf[_0x6118('0x18b')],_0x6118('0xe1'))[_0x6118('0x3a')](_0x6118('0xbc')),'ContactId':_0x13c3c1[_0x6118('0xd5')],'ListId':_0x13c3c1[_0x6118('0xe2')],'VoiceQueueId':_0x13c3c1['VoiceQueueId']||undefined,'CampaignId':_0x13c3c1['CampaignId']||undefined})['catch'](loggerCatch(_0x6118('0x18c')));break;case 0x5:if(_0x13c3c1[_0x6118('0x117')]>=_0x2e6caf[_0x6118('0x18d')]-0x1){return!![];}hopperUtils['rescheduleContact']({'active':![],'countbusyretry':_0x13c3c1['countbusyretry']+=0x1,'scheduledat':moment()['add'](_0x2e6caf[_0x6118('0x18e')],'minutes')[_0x6118('0x3a')](_0x6118('0xbc')),'ContactId':_0x13c3c1['ContactId'],'ListId':_0x13c3c1[_0x6118('0xe2')],'VoiceQueueId':_0x13c3c1[_0x6118('0xe3')]||undefined,'CampaignId':_0x13c3c1[_0x6118('0xe4')]||undefined})[_0x6118('0x96')](loggerCatch('[rescheduleContact]\x20[Busy]'));break;case 0x8:if(_0x13c3c1['countcongestionretry']>=_0x2e6caf['dialCongestionMaxRetry']-0x1){return!![];}hopperUtils['rescheduleContact']({'active':![],'countcongestionretry':_0x13c3c1['countcongestionretry']+=0x1,'scheduledat':moment()['add'](_0x2e6caf[_0x6118('0x18f')],'minutes')[_0x6118('0x3a')](_0x6118('0xbc')),'ContactId':_0x13c3c1[_0x6118('0xd5')],'ListId':_0x13c3c1['ListId'],'VoiceQueueId':_0x13c3c1[_0x6118('0xe3')]||undefined,'CampaignId':_0x13c3c1[_0x6118('0xe4')]||undefined})['catch'](loggerCatch(_0x6118('0x190')));break;case 0x0:if(_0x13c3c1[_0x6118('0x119')]>=_0x2e6caf[_0x6118('0x191')]-0x1){return!![];}else{hopperUtils[_0x6118('0xd3')]({'active':![],'countnosuchnumberretry':_0x13c3c1[_0x6118('0x119')]+=0x1,'scheduledat':moment()[_0x6118('0xd4')](_0x2e6caf[_0x6118('0x192')],_0x6118('0xe1'))['format'](_0x6118('0xbc')),'ContactId':_0x13c3c1['ContactId'],'ListId':_0x13c3c1[_0x6118('0xe2')],'VoiceQueueId':_0x13c3c1[_0x6118('0xe3')]||undefined,'CampaignId':_0x13c3c1[_0x6118('0xe4')]||undefined})[_0x6118('0x96')](loggerCatch(_0x6118('0x193')));}break;case 0xa:if(_0x13c3c1[_0x6118('0xcd')]>=_0x2e6caf[_0x6118('0x194')]-0x1){return!![];}hopperUtils[_0x6118('0xd3')]({'active':![],'countdropretry':_0x13c3c1['countdropretry']+=0x1,'scheduledat':moment()[_0x6118('0xd4')](_0x2e6caf[_0x6118('0xce')],'minutes')[_0x6118('0x3a')]('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0x13c3c1[_0x6118('0xd5')],'ListId':_0x13c3c1[_0x6118('0xe2')],'VoiceQueueId':_0x13c3c1['VoiceQueueId']||undefined,'CampaignId':_0x13c3c1[_0x6118('0xe4')]||undefined})[_0x6118('0x96')](loggerCatch(_0x6118('0xd6')));break;case 0xb:if(_0x13c3c1[_0x6118('0xdd')]>=_0x2e6caf['dialAbandonedMaxRetry']-0x1){return!![];}hopperUtils[_0x6118('0xd3')]({'active':![],'countabandonedretry':_0x13c3c1[_0x6118('0xdd')]+=0x1,'scheduledat':moment()[_0x6118('0xd4')](_0x2e6caf[_0x6118('0xe0')],_0x6118('0xe1'))['format']('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0x13c3c1[_0x6118('0xd5')],'ListId':_0x13c3c1[_0x6118('0xe2')],'VoiceQueueId':_0x13c3c1[_0x6118('0xe3')]||undefined,'CampaignId':_0x13c3c1['CampaignId']||undefined})[_0x6118('0x96')](loggerCatch(_0x6118('0xe5')));break;case 0x13:if(_0x13c3c1[_0x6118('0x114')]>=_0x2e6caf[_0x6118('0x11d')]-0x1){return!![];}hopperUtils[_0x6118('0xd3')]({'active':![],'countmachineretry':_0x13c3c1[_0x6118('0x114')]+=0x1,'scheduledat':moment()[_0x6118('0xd4')](_0x2e6caf[_0x6118('0x11f')],_0x6118('0xe1'))[_0x6118('0x3a')]('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0x13c3c1[_0x6118('0xd5')],'ListId':_0x13c3c1[_0x6118('0xe2')],'VoiceQueueId':_0x13c3c1['VoiceQueueId']||undefined,'CampaignId':_0x13c3c1['CampaignId']||undefined})[_0x6118('0x96')](loggerCatch('[rescheduleContact][Machine]'));break;case 0x14:if(_0x13c3c1[_0x6118('0x124')]>=_0x2e6caf[_0x6118('0x195')]-0x1){return!![];}hopperUtils[_0x6118('0xd3')]({'active':![],'countagentrejectretry':_0x13c3c1[_0x6118('0x124')]+=0x1,'scheduledat':moment()[_0x6118('0xd4')](_0x2e6caf[_0x6118('0x196')],_0x6118('0xe1'))[_0x6118('0x3a')](_0x6118('0xbc')),'ContactId':_0x13c3c1[_0x6118('0xd5')],'ListId':_0x13c3c1[_0x6118('0xe2')],'VoiceQueueId':_0x13c3c1[_0x6118('0xe3')]||undefined,'CampaignId':_0x13c3c1['CampaignId']||undefined})[_0x6118('0x96')](loggerCatch('[rescheduleContact][AgentReject]'));break;default:return!![];}};Dialer[_0x6118('0x13')]['callProgressDetecting']=function(_0xf89c0c,_0x2eb3e8,_0x3ed5fa){var _0x4035a2=this;var _0x39db90=new History(_0xf89c0c);var _0x52d732=![];var _0x599c6b;var _0x4e3933;return new Promise(function(_0x2d3f26,_0x1c74e8){if(_['isUndefined'](_0x2eb3e8)&&typeof _0x2eb3e8!==_0x6118('0x158')){return _0x1c74e8(msgResponse(_0x6118('0x197'),_0x6118('0x88'),'entity\x20is\x20undefine'));}if(_[_0x6118('0x35')](_0x3ed5fa)&&typeof _0x3ed5fa!==_0x6118('0x158')){return _0x1c74e8(msgResponse(_0x6118('0x197'),_0x6118('0x88'),'evt\x20is\x20undefine'));}hopperUtils['verifyAdditionalPhones'](_0x39db90,_0x3ed5fa[_0x6118('0x198')],_0x2eb3e8)[_0x6118('0x33')](function(_0x343a42){if(_0x343a42['additional']==0x1)_0x52d732=!![];switch(_0x3ed5fa[_0x6118('0x198')]){case'0':_0x2eb3e8[_0x6118('0x199')]+=0x1;_0x39db90[_0x6118('0x64')]=0x0;_0x39db90[_0x6118('0x65')]=_0x6118('0x19a');_0x39db90[_0x6118('0x119')]+=0x1;_0x39db90[_0x6118('0xde')]+=0x1;ami['emit'](_0x6118('0x19b'),ut[_0x6118('0x115')](_0xf89c0c,'nosuchnumber'));_0x599c6b=_0x2eb3e8[_0x6118('0x192')];_0x4e3933=_0x2eb3e8[_0x6118('0xcf')];hopperUtils[_0x6118('0xc1')](_0x39db90)[_0x6118('0x96')](loggerCatch(_0x6118('0x116')));if(_0x4035a2['checkRetriveMax'](0x0,_0xf89c0c,_0x2eb3e8)&&!_0x52d732){if(_0x39db90[_0x6118('0x119')]>=_0x2eb3e8[_0x6118('0x191')]){_0x4035a2[_0x6118('0x125')](_0x39db90,_0x2d3f26,_0x1c74e8,_0x6118('0x19c'));}else{_0x4035a2[_0x6118('0x11b')](_0x39db90,_0x2d3f26,_0x1c74e8,'reason\x200\x20no\x20such\x20number....');}}break;case'3':_0x2eb3e8[_0x6118('0x19d')]+=0x1;_0x39db90['state']=0x3;_0x39db90['statedesc']=_0x6118('0x19e');_0x39db90['countnoanswerretry']+=0x1;_0x39db90[_0x6118('0xde')]+=0x1;var _0x3f70b4=ut[_0x6118('0x19f')](_0xf89c0c,_0x2eb3e8);ami['emit'](_0x6118('0x1a0'),_0x3f70b4);_0x599c6b=_0x2eb3e8[_0x6118('0x18b')];_0x4e3933=_0x2eb3e8[_0x6118('0xcf')];hopperUtils[_0x6118('0xc1')](_0x39db90)[_0x6118('0x96')](loggerCatch(_0x6118('0x1a1')));if(_0x4035a2['checkRetriveMax'](0x3,_0xf89c0c,_0x2eb3e8)&&!_0x52d732){if(_0x39db90[_0x6118('0x123')]>=_0x2eb3e8[_0x6118('0x1a2')]){_0x4035a2['createStateFinal'](_0x39db90,_0x2d3f26,_0x1c74e8,_0x6118('0x1a3'));}else{_0x4035a2['stateGlobal'](_0x39db90,_0x2d3f26,_0x1c74e8,_0x6118('0x1a3'));}}break;case'5':_0x2eb3e8[_0x6118('0x1a4')]+=0x1;_0x39db90[_0x6118('0x64')]=0x5;_0x39db90[_0x6118('0x65')]=_0x6118('0x1a5');_0x39db90[_0x6118('0x117')]+=0x1;_0x39db90[_0x6118('0xde')]+=0x1;ami[_0x6118('0x36')](_0x6118('0x1a6'),ut[_0x6118('0x115')](_0xf89c0c,_0x6118('0x1a7')));_0x599c6b=_0x2eb3e8['dialBusyRetryFrequency'];_0x4e3933=_0x2eb3e8[_0x6118('0xcf')];hopperUtils[_0x6118('0xc1')](_0x39db90)['catch'](loggerCatch(_0x6118('0x1a8')));if(_0x4035a2['checkRetriveMax'](0x5,_0xf89c0c,_0x2eb3e8)&&!_0x52d732){if(_0x39db90[_0x6118('0x117')]>=_0x2eb3e8[_0x6118('0x18d')]){_0x4035a2[_0x6118('0x125')](_0x39db90,_0x2d3f26,_0x1c74e8,'reason\x205\x20busy');}else{_0x4035a2[_0x6118('0x11b')](_0x39db90,_0x2d3f26,_0x1c74e8,_0x6118('0x1a9'));}}break;case'8':_0x2eb3e8[_0x6118('0x1aa')]+=0x1;_0x39db90[_0x6118('0x64')]=0x8;_0x39db90['statedesc']=_0x6118('0x1ab');_0x39db90[_0x6118('0x118')]+=0x1;_0x39db90['countglobal']+=0x1;_0x599c6b=_0x2eb3e8[_0x6118('0x18f')];_0x4e3933=_0x2eb3e8[_0x6118('0xcf')];ami[_0x6118('0x36')]('custom:agentcongestion',ut[_0x6118('0x115')](_0xf89c0c,_0x6118('0x1ac')));hopperUtils['createHistory'](_0x39db90)[_0x6118('0x96')](loggerCatch('[syncAgentComplete][createHistory][8]'));if(_0x4035a2[_0x6118('0x18a')](0x8,_0xf89c0c,_0x2eb3e8)&&!_0x52d732){if(_0x39db90[_0x6118('0x118')]>=_0x2eb3e8[_0x6118('0x1ad')]){_0x4035a2[_0x6118('0x125')](_0x39db90,_0x2d3f26,_0x1c74e8,'reason\x208\x20congestion');}else{_0x4035a2[_0x6118('0x11b')](_0x39db90,_0x2d3f26,_0x1c74e8,_0x6118('0x1ae'));}}break;case'11':_0x2eb3e8[_0x6118('0x1af')]+=0x1;_0x39db90[_0x6118('0x64')]=0xb;_0x39db90[_0x6118('0x65')]=_0x6118('0xe6');_0x39db90[_0x6118('0xdd')]+=0x1;_0x39db90['countglobal']+=0x1;_0x599c6b=_0x2eb3e8[_0x6118('0xe0')];_0x4e3933=_0x2eb3e8[_0x6118('0xcf')];hopperUtils[_0x6118('0xc1')](_0x39db90)[_0x6118('0x96')](loggerCatch(_0x6118('0x1b0')));if(_0x4035a2[_0x6118('0x18a')](0xb,_0xf89c0c,_0x2eb3e8)&&!_0x52d732){if(_0x39db90[_0x6118('0xdd')]>=_0x2eb3e8['dialAbandonedMaxRetry']){_0x4035a2[_0x6118('0x125')](_0x39db90,_0x2d3f26,_0x1c74e8,_0x6118('0x1b1'));}else{_0x4035a2[_0x6118('0x11b')](_0x39db90,_0x2d3f26,_0x1c74e8,_0x6118('0x1b1'));}}break;case'20':_0x2eb3e8[_0x6118('0x1b2')]+=0x1;_0x39db90[_0x6118('0x64')]=0x14;_0x39db90[_0x6118('0x65')]=_0x6118('0x1b3');_0x39db90['countagentrejectretry']+=0x1;_0x39db90[_0x6118('0xde')]+=0x1;_0x599c6b=_0x2eb3e8['dialAgentRejectRetryFrequency'];_0x4e3933=_0x2eb3e8[_0x6118('0xcf')];ami[_0x6118('0x36')](_0x6118('0x1b4'),ut[_0x6118('0x115')](_0xf89c0c,_0x6118('0x1b5')));hopperUtils[_0x6118('0xc1')](_0x39db90)[_0x6118('0x96')](loggerCatch('[syncAgentComplete][createHistory][20]'));if(_0x4035a2[_0x6118('0x18a')](0x14,_0xf89c0c,_0x2eb3e8)&&!_0x52d732){if(_0x39db90[_0x6118('0x124')]>=_0x2eb3e8[_0x6118('0x195')]){_0x4035a2[_0x6118('0x125')](_0x39db90,_0x2d3f26,_0x1c74e8,_0x6118('0x1b6'));}else{_0x4035a2[_0x6118('0x11b')](_0x39db90,_0x2d3f26,_0x1c74e8,_0x6118('0x1b6'));}}break;default:_0x2eb3e8['outboundUnknownCallsDay']+=0x1;_0x39db90[_0x6118('0x64')]=0xc;_0x39db90['statedesc']=_0x3ed5fa[_0x6118('0x198')];_0x599c6b=_0x2eb3e8[_0x6118('0x196')];_0x4e3933=_0x2eb3e8[_0x6118('0xcf')];hopperUtils[_0x6118('0xc1')](_0x39db90)[_0x6118('0x96')](loggerCatch('[syncAgentComplete][createHistory][?]'));if(_0x4035a2[_0x6118('0x18a')](_0x3ed5fa[_0x6118('0x198')],_0xf89c0c,_0x2eb3e8)&&!_0x52d732){if(_0x39db90[_0x6118('0x117')]+_0x39db90[_0x6118('0x118')]+_0x39db90['countnoanswerretry']+_0x39db90[_0x6118('0x119')]+_0x39db90[_0x6118('0xcd')]+_0x39db90[_0x6118('0xdd')]+_0x39db90[_0x6118('0x114')]+_0x39db90[_0x6118('0x124')]>=_0x2eb3e8[_0x6118('0x11a')]){_0x4035a2['stateGlobal'](_0x39db90,_0x2d3f26,_0x1c74e8,_0x3ed5fa['reason']);}else{_0x4035a2[_0x6118('0x125')](_0x39db90,_0x2d3f26,_0x1c74e8,_0x3ed5fa['reason']);}}}})[_0x6118('0x33')](function(){if(_0x52d732){hopperUtils[_0x6118('0xe7')](_0x39db90,_0x599c6b,_0x4e3933)[_0x6118('0x33')](function(){return _0x2d3f26(0x1);});}});});};Dialer[_0x6118('0x13')][_0x6118('0x11b')]=function(_0x48e46b,_0x41cfa9,_0x259522,_0x2c8c92){var _0x1927ff=new Final(_0x48e46b);_0x1927ff[_0x6118('0x64')]=0xf;_0x1927ff[_0x6118('0x65')]='Global';this[_0x6118('0x125')](_0x1927ff,_0x41cfa9,_0x259522,_0x2c8c92);};Dialer[_0x6118('0x13')]['createStateFinal']=function(_0x5be0c3,_0x58ef2a,_0x298783,_0xe783bb){hopperUtils[_0x6118('0x128')](_0x5be0c3)['then'](function(){return _0x58ef2a(msgResponse('[callProgressDetecting]',_0x6118('0x1b7'),_0xe783bb));})[_0x6118('0x96')](function(){return _0x298783(msgResponse(_0x6118('0x1b8'),'Failure',_0x6118('0x1b9')));});};Dialer[_0x6118('0x13')]['predictive']=function(_0x37e6f7){var _0x4d2aea=_0x37e6f7[_0x6118('0x1ba')]/0x64;var _0x8b3084=_0x37e6f7[_0x6118('0x1bb')]/(_0x37e6f7[_0x6118('0x1bb')]+_0x37e6f7[_0x6118('0xbd')]);var _0x3c9862=Math[_0x6118('0x1bc')](_0x37e6f7[_0x6118('0x1bd')]*(_0x37e6f7['predictiveIntervalMaxThreshold']/0x64));var _0x46a56b=Math['round'](_0x37e6f7[_0x6118('0x1bd')]*(_0x37e6f7[_0x6118('0x1be')]/0x64));var _0x326122=_0x37e6f7[_0x6118('0x1bf')]+_0x37e6f7['talking'];var _0x517d83=Math[_0x6118('0x1c0')](_0x37e6f7[_0x6118('0x4c')]*_0x37e6f7[_0x6118('0x4f')]*_0x37e6f7[_0x6118('0x1c1')]*_0x37e6f7[_0x6118('0x1c2')]);if(_[_0x6118('0x35')](_0x37e6f7[_0x6118('0x22')])){if(!_[_0x6118('0x35')](_0x37e6f7['startPredictive'])){_0x37e6f7[_0x6118('0x21')]=undefined;loggerPredictive[_0x6118('0x5a')](_0x6118('0x1c3'),_0x6118('0x1c4'));}if(!_[_0x6118('0x35')](_0x37e6f7[_0x6118('0x58')])){loggerPredictive[_0x6118('0x5a')](_0x6118('0x1c3'),_0x6118('0x1c5'));clearInterval(_0x37e6f7[_0x6118('0x58')]);_0x37e6f7[_0x6118('0x58')]=undefined;}_0x37e6f7[_0x6118('0x22')]=moment()[_0x6118('0x3a')](_0x6118('0xbc'));loggerPredictive[_0x6118('0x3e')](_0x37e6f7['name'],_0x6118('0x1c6'),_0x37e6f7[_0x6118('0x22')]);this[_0x6118('0xa8')](_0x37e6f7,0x1);}else if(ifInterval(_0x37e6f7[_0x6118('0x1c7')],_0x37e6f7['startProgressive'])){this[_0x6118('0xa8')](_0x37e6f7,0x1);loggerPredictiveCalls[_0x6118('0x3e')](_0x6118('0x1c8'),_0x37e6f7[_0x6118('0x22')],_0x37e6f7['name']);_0x37e6f7[_0x6118('0x4c')]=0x0;_0x37e6f7[_0x6118('0x1c9')]=0x0;}else if(_0x4d2aea<_0x8b3084&&_0x37e6f7[_0x6118('0x1ca')]===_0x6118('0x1cb')){clearPredictiveAttributes(_0x37e6f7);loggerPredictive['info'](_0x6118('0x1cc'),_0x6118('0x1cd'),_0x8b3084,_0x6118('0x22'),_0x37e6f7[_0x6118('0x56')]);}else if(_0x517d83<_0x37e6f7[_0x6118('0x1c9')]&&_0x37e6f7[_0x6118('0x1ca')]===_0x6118('0x1cb')){clearPredictiveAttributes(_0x37e6f7);loggerPredictive['info'](_0x6118('0x1ce'),_0x6118('0x1cf'),_0x517d83,_0x6118('0x1d0'),_0x37e6f7[_0x6118('0x1c9')],_0x6118('0x22'),_0x37e6f7[_0x6118('0x56')]);}else if(!ifInterval(_0x37e6f7[_0x6118('0x1c7')],_0x37e6f7['startProgressive'])&&_[_0x6118('0x35')](_0x37e6f7[_0x6118('0x21')])&&!_[_0x6118('0x35')](_0x37e6f7[_0x6118('0x22')])){_0x37e6f7[_0x6118('0x21')]=moment()['format'](_0x6118('0xbc'));loggerPredictive[_0x6118('0x3e')](_0x37e6f7['name'],_0x6118('0x1d1'),_0x37e6f7['startPredictive']);hopperUtils[_0x6118('0x1d2')](_0x37e6f7[_0x6118('0x1c7')])['then'](this[_0x6118('0x1d3')](_0x37e6f7))[_0x6118('0x33')](mergeDataErlangB(_0x37e6f7))[_0x6118('0x33')](this[_0x6118('0x1d4')](_0x37e6f7))[_0x6118('0x96')](loggerCatchPredictive(_0x6118('0x1d5'),_0x37e6f7));}else if(!ifInterval(_0x37e6f7[_0x6118('0x1c7')],_0x37e6f7[_0x6118('0x21')])){_0x37e6f7[_0x6118('0x1c9')]=0x0;_0x37e6f7[_0x6118('0x21')]=moment()[_0x6118('0x3a')](_0x6118('0xbc'));loggerPredictive[_0x6118('0x3e')](_0x37e6f7[_0x6118('0x56')],_0x6118('0x1d6'),_0x37e6f7[_0x6118('0x21')]);clearInterval(_0x37e6f7['handlePredictive']);_0x37e6f7[_0x6118('0x58')]=undefined;hopperUtils['avgHandleTime'](_0x37e6f7[_0x6118('0x1c7')])['then'](this['getDataPredictive'](_0x37e6f7))[_0x6118('0x33')](mergeDataErlangB(_0x37e6f7))[_0x6118('0x33')](this[_0x6118('0x1d4')](_0x37e6f7))[_0x6118('0x96')](loggerCatchPredictive(_0x6118('0x1d7'),_0x37e6f7));}else if(_0x37e6f7[_0x6118('0x1bd')]&&_0x326122<_0x37e6f7['predictiveIntervalAvailable']-_0x46a56b){clearPredictiveAttributes(_0x37e6f7);loggerPredictive[_0x6118('0x3e')](_0x37e6f7['name'],'switch\x20in\x20progressive\x20because\x20available\x20agents\x20(',_0x326122,_0x6118('0x1d8'),_0x37e6f7['predictiveIntervalAvailable'],'-',_0x46a56b,'=',_0x37e6f7[_0x6118('0x1bd')]-_0x46a56b,')');}else if(_0x37e6f7[_0x6118('0x1bd')]&&_0x326122>_0x37e6f7[_0x6118('0x1bd')]+_0x3c9862){clearPredictiveAttributes(_0x37e6f7);loggerPredictive[_0x6118('0x3e')](_0x37e6f7['name'],_0x6118('0x1d9'),_0x326122,_0x6118('0x1da'),_0x37e6f7['predictiveIntervalAvailable'],'+',_0x3c9862,'=',_0x37e6f7[_0x6118('0x1bd')]+_0x3c9862,')');}};Dialer[_0x6118('0x13')][_0x6118('0x1d3')]=function(_0x48870f){var _0x16321b=this;return function(_0x1ec0da){return new Promise(function(_0x42a364,_0x53e46e){_[_0x6118('0x52')](_0x48870f,_0x1ec0da[0x0]);if(checkGetDataPredictive(_0x1ec0da[0x0])){var _0x12f50b=_0x48870f[_0x6118('0x1bd')]=_0x48870f[_0x6118('0x135')]+_0x48870f[_0x6118('0x1bf')];var _0x544c00=_0x48870f[_0x6118('0x1c7')]*0x3c;var _0x51ef20=_0x1ec0da[0x0][_0x6118('0x48')]+_0x1ec0da[0x0][_0x6118('0x45')];var _0x3b61c2=(_0x1ec0da[0x0]['predictiveIntervalAnsweredCalls']+_0x1ec0da[0x0][_0x6118('0xc9')]+_0x1ec0da[0x0][_0x6118('0x1db')])/_0x1ec0da[0x0][_0x6118('0x40')];_0x48870f[_0x6118('0x1c1')]=_0x3b61c2>0x0?_0x3b61c2:0x1;switch(_0x48870f[_0x6118('0x1ca')]){case'dropRate':var _0x5e9d3d=_0x48870f[_0x6118('0x1ba')]/0x64;return _0x16321b[_0x6118('0x1dc')](_0x12f50b,_0x544c00,_0x51ef20,_0x3b61c2,_0x5e9d3d)[_0x6118('0x33')](function(_0x40e88a){return _0x42a364(_0x40e88a);});case'agentBusyFactor':var _0x2feacf=_0x48870f['dialPredictiveOptimizationPercentage']/0x64;return _0x16321b[_0x6118('0x1dd')](_0x12f50b,_0x544c00,_0x51ef20,_0x3b61c2,_0x2feacf)['then'](function(_0x24073d){return _0x42a364(_0x24073d);});default:return _0x53e46e(msgResponse(_0x6118('0x1de'),_0x6118('0x88'),'Unknown\x20Predictive'));}}else{return _0x53e46e(msgResponse(_0x6118('0x1de'),'Failure',_0x6118('0x1df')));}});};};Dialer[_0x6118('0x13')][_0x6118('0x1e0')]=function(_0x23ace5){var _0x524a03=this;return function(_0x3601ed){return new Promise(function(_0x3dba22,_0x7d7231){_['merge'](_0x23ace5,_0x3601ed[0x0]);if(checkGetDataPredictive(_0x3601ed[0x0])){loggerPredictive[_0x6118('0x3e')](JSON['stringify'](_0x3601ed[0x0]));if(_0x23ace5[_0x6118('0x1ca')]===_0x6118('0x1cb')){return _0x524a03[_0x6118('0x14d')](_0x23ace5['id'])['then'](function(_0x37927d){var _0x43706f=_0x23ace5[_0x6118('0x1e1')]-_0x37927d[0x0][_0x6118('0x1e2')];var _0x4f8220=_0x23ace5[_0x6118('0x1c7')]*0x3c;var _0x28f391=_0x3601ed[0x0][_0x6118('0x48')]+_0x3601ed[0x0][_0x6118('0x45')];var _0xc5e9de=(_0x3601ed[0x0]['predictiveIntervalAnsweredCalls']+_0x3601ed[0x0][_0x6118('0xc9')]+_0x3601ed[0x0][_0x6118('0x1db')])/_0x3601ed[0x0][_0x6118('0x40')];var _0x401a28=_0x23ace5['dialPredictiveOptimizationPercentage']/0x64;_0x23ace5[_0x6118('0x1e3')]=_0x37927d[0x0]['outboundQueuePauses']||0x0;_0x23ace5['predictiveIntervalHitRate']=_0xc5e9de>0x0?_0xc5e9de:0x1;return _0x524a03[_0x6118('0x1dc')](_0x43706f,_0x4f8220,_0x28f391,_0xc5e9de,_0x401a28);})['then'](function(_0xa83561){return _0x3dba22(_0xa83561);})[_0x6118('0x96')](function(_0x435405){return _0x7d7231(msgResponse(_0x6118('0x1e4'),_0x6118('0x88'),JSON[_0x6118('0x68')](_0x435405)));});}if(_0x23ace5[_0x6118('0x1ca')]===_0x6118('0x1e5')){return _0x524a03[_0x6118('0x14d')](_0x23ace5['id'])[_0x6118('0x33')](function(_0x92e9be){var _0x159bcd=_0x23ace5['loggedIn']-_0x92e9be[0x0][_0x6118('0x1e2')];var _0x55c8e5=_0x23ace5[_0x6118('0x1c7')]*0x3c;var _0x40f0fe=_0x3601ed[0x0][_0x6118('0x48')]+_0x3601ed[0x0]['predictiveIntervalAvgHoldtime'];var _0x288e43=(_0x3601ed[0x0][_0x6118('0x1e6')]+_0x3601ed[0x0][_0x6118('0xc9')]+_0x3601ed[0x0][_0x6118('0x1db')])/_0x3601ed[0x0]['predictiveIntervalTotalCalls'];var _0x1e6c1c=_0x23ace5[_0x6118('0x1ba')]/0x64;_0x23ace5[_0x6118('0x1e3')]=_0x92e9be[0x0]['outboundQueuePauses']||0x0;_0x23ace5[_0x6118('0x1c1')]=_0x288e43>0x0?_0x288e43:0x1;return _0x524a03[_0x6118('0x1dd')](_0x159bcd,_0x55c8e5,_0x40f0fe,_0x288e43,_0x1e6c1c);})['then'](function(_0xbaaf14){return _0x3dba22(_0xbaaf14);})[_0x6118('0x96')](function(_0x3cc1fb){return _0x7d7231(msgResponse('[CatchErlangB]',_0x6118('0x88'),JSON['stringify'](_0x3cc1fb)));});}}else{return _0x7d7231(msgResponse(_0x6118('0x1de'),'Failure',_0x6118('0x1df')));}});};};Dialer[_0x6118('0x13')][_0x6118('0x1d4')]=function(_0x52a19f){var _0x44ce31=this;return function(){var _0x1a60ab=0x0;var _0x4d8e50=Math[_0x6118('0x1c0')](_0x52a19f['erlangCallToSecond']*0x3e8);if(_0x4d8e50>0x0){_0x4d8e50=_0x4d8e50<0x64?0x64:_0x4d8e50;loggerPredictive[_0x6118('0x3e')](_0x52a19f[_0x6118('0x56')],_0x6118('0x1e7'),_0x4d8e50,'milliseconds');_0x52a19f[_0x6118('0x58')]=setInterval(function(){_0x44ce31[_0x6118('0x58')](_0x52a19f);loggerPredictiveCalls[_0x6118('0x3e')](_0x6118('0x1e8'),_0x1a60ab+=0x1);},_0x4d8e50);}else{loggerPredictive[_0x6118('0x3e')](_0x52a19f[_0x6118('0x56')],'fail\x20to\x20scheduled\x20calls');}};};Dialer['prototype'][_0x6118('0x1e9')]=function(_0x35bff7,_0x193351){var _0x4f6119=this;return function(_0xe1e40d){if(_[_0x6118('0x3d')](_0xe1e40d)){if(_[_0x6118('0xf0')](_0x193351['UserId'])||!_0x193351['recallme']){if(_0x35bff7[_0x6118('0xa5')]==='booked'){_0x35bff7['queueStatusComplete']=_['isUndefined'](_0x35bff7[_0x6118('0x67')])?!![]:_0x35bff7['queueStatusComplete'];var _0x4a327b=uuid['v4']();_0x4f6119['actions'][_0x4a327b]=new Action(_0x35bff7,_0x193351,_0x4a327b);loggerBooked[_0x6118('0x3e')](_0x6118('0x1ea'),_0x4a327b,_0x6118('0x1eb'),JSON[_0x6118('0x68')](_0x35bff7['queueStatusComplete']),_0x6118('0x1ec'),_0x35bff7[_0x6118('0x56')]);if(_0x35bff7[_0x6118('0x67')]){_0x35bff7[_0x6118('0x67')]=![];_0x4f6119[_0x6118('0x24')][_0x4f6119[_0x6118('0x1d')][_0x4a327b][_0x6118('0xb8')]]=[];ami['Action']({'actionid':_0x4a327b,'action':_0x6118('0x1ed'),'queue':_0x35bff7[_0x6118('0x56')]})['catch'](function(){_0x4f6119[_0x6118('0xc5')](_0x35bff7);hopperUtils['rescheduleContact']({'active':![],'ContactId':_0x4f6119[_0x6118('0x1d')][_0x4a327b][_0x6118('0xd5')],'ListId':_0x4f6119[_0x6118('0x1d')][_0x4a327b][_0x6118('0xe2')],'VoiceQueueId':_0x4f6119[_0x6118('0x1d')][_0x4a327b][_0x6118('0xe3')]||undefined,'CampaignId':_0x4f6119[_0x6118('0x1d')][_0x4a327b][_0x6118('0xe4')]||undefined})[_0x6118('0x96')](loggerCatch(_0x6118('0x1ee')));delete _0x4f6119[_0x6118('0x1d')][_0x4a327b];});}else{loggerBooked[_0x6118('0x3e')](_0x6118('0x1ef'),JSON['stringify'](_0x35bff7[_0x6118('0x67')]),'Queue:\x20',_0x35bff7['name']);_0x4f6119[_0x6118('0xc5')](_0x35bff7);hopperUtils[_0x6118('0xd3')]({'active':![],'ContactId':_0x4f6119[_0x6118('0x1d')][_0x4a327b]['ContactId'],'ListId':_0x4f6119['actions'][_0x4a327b]['ListId'],'VoiceQueueId':_0x4f6119[_0x6118('0x1d')][_0x4a327b][_0x6118('0xe3')]||undefined,'CampaignId':_0x4f6119[_0x6118('0x1d')][_0x4a327b]['CampaignId']||undefined})[_0x6118('0x96')](loggerCatch(_0x6118('0x1ee')));delete _0x4f6119[_0x6118('0x1d')][_0x4a327b];}}else{return _0x4f6119[_0x6118('0x157')](_0x35bff7,_0x193351);}}else{if(utils[_0x6118('0x53')](undefined,_0x193351[_0x6118('0x1f0')])<_0x35bff7[_0x6118('0x1f1')]*0x3c){if(_0x193351[_0x6118('0x144')]&&!_0x193351['Agent'][_0x6118('0x1f2')]){_0x4f6119['preview'][_0x6118('0xf4')](_0x193351['id'])[_0x6118('0x15')](function(){_0x4f6119[_0x6118('0xc5')](_0x35bff7);});}else{hopperUtils[_0x6118('0x1f3')]({'active':![]},_0x193351['id'],0x1)['finally'](function(){_0x4f6119['updateOriginated'](_0x35bff7);});}}else{_0x35bff7[_0x6118('0x1f4')]+=0x1;_0x4f6119[_0x6118('0xc5')](_0x35bff7);if(_0x35bff7['dialRecallInQueue']){hopperUtils[_0x6118('0xd3')]({'active':![],'recallme':![],'UserId':null,'ContactId':_0x193351[_0x6118('0xd5')],'ListId':_0x193351[_0x6118('0xe2')],'VoiceQueueId':_0x193351[_0x6118('0xe3')]||undefined,'CampaignId':_0x193351[_0x6118('0xe4')]||undefined})[_0x6118('0x96')](loggerCatch(_0x6118('0x1f5')));hopperUtils[_0x6118('0xc1')](createObjHistory(_0x35bff7,_0x193351,utils['CAMPAIGN_STATUS'][_0x6118('0x1f6')],0x17,_0x6118('0x1f7')))[_0x6118('0x96')](loggerCatch(_0x6118('0x1f8')));}else{_0x4f6119[_0x6118('0x121')](createObjHistory(_0x35bff7,_0x193351,utils[_0x6118('0x6b')][_0x6118('0x1f9')],0x16,_0x6118('0x1fa')),_0x6118('0x1fb'),_0x6118('0x1fc'));}}}}else{_0x35bff7['outboundBlacklistCallsDay']+=0x1;_0x4f6119[_0x6118('0x121')](createObjHistory(_0x35bff7,_0x193351,utils['CAMPAIGN_STATUS'][_0x6118('0x1fd')],0xd,_0x6118('0x1fe')),_0x6118('0x1ff'),_0x6118('0x200'));throw _0x6118('0x201');}};};Dialer[_0x6118('0x13')][_0x6118('0x156')]=function(_0x4f1a7a){var _0x380a8c=this;var _0x4c97ad=_0x4f1a7a[_0x6118('0x202')]-_0x4f1a7a['originated']-_0x4f1a7a[_0x6118('0x203')];emitCampaignSummary(_0x4f1a7a);if(_0x4c97ad>0x0){if(_0x4c97ad>this['maxNumberOriginate']){_0x4c97ad=this[_0x6118('0x1b')];}_0x4f1a7a[_0x6118('0x203')]+=_0x4c97ad;hopperUtils[_0x6118('0x204')](_0x4f1a7a,_0x4c97ad)[_0x6118('0x33')](function(_0x30008c){_0x4f1a7a[_0x6118('0x203')]-=_0x4c97ad;_0x4f1a7a[_0x6118('0x203')]=_0x4f1a7a[_0x6118('0x203')]>0x0?_0x4f1a7a[_0x6118('0x203')]:0x0;if(!utils[_0x6118('0x205')](_0x30008c)){_0x4f1a7a[_0x6118('0x5e')]=utils[_0x6118('0x6b')][_0x6118('0x62')];logger[_0x6118('0x3e')](_0x6118('0x206')+_0x4f1a7a[_0x6118('0x56')]);}else{_0x4f1a7a[_0x6118('0x76')]+=_0x30008c[_0x6118('0x8f')];_0x4f1a7a[_0x6118('0x5e')]=utils[_0x6118('0x6b')][_0x6118('0x207')];for(var _0x122764=0x0;_0x122764<_0x30008c['length'];_0x122764+=0x1){_0x4f1a7a[_0x6118('0x208')]+=0x1;if(_['isNil'](_0x30008c[_0x122764])||_[_0x6118('0xf0')](_0x30008c[_0x122764]['Contact'])||_[_0x6118('0xf0')](_0x30008c[_0x122764][_0x6118('0x15a')])){_0x380a8c[_0x6118('0x152')]('[actionOriginate]\x20',_0x4f1a7a,_0x30008c[_0x122764]);}else{hopperUtils[_0x6118('0x209')](_[_0x6118('0x69')](_0x30008c[_0x122764],[_0x6118('0xe4'),_0x6118('0x15a')]))[_0x6118('0x33')](_0x380a8c['checkContactBlack'](_0x4f1a7a,_0x30008c[_0x122764]))[_0x6118('0x96')](_0x380a8c['loggerHandler'](_0x6118('0x20a'),_0x4f1a7a));}}}})[_0x6118('0x96')](loggerGetContactDialer(_0x6118('0x20b'),_0x4f1a7a,_0x4c97ad));}};Dialer['prototype'][_0x6118('0xa8')]=function(_0x4e742d,_0x4e6c7d){var _0x202d4d=this;var _0x5872a9=[];if(_0x4e6c7d<0x1||_0x4e742d[_0x6118('0xa5')]===_0x6118('0x8')){_0x4e6c7d=0x1;}var _0x4d2043=Math['floor'](_0x4e742d['available']*_0x4e6c7d)-_0x4e742d['originated']-_0x4e742d[_0x6118('0x203')];if(_0x4e742d[_0x6118('0x20c')]>0x0){var _0x334695=_0x4e742d[_0x6118('0x20c')]-_0x4e742d[_0x6118('0x76')]-_0x4e742d[_0x6118('0x135')]-_0x4e742d['temp']-_0x4e742d['pTalking'];if(_0x4d2043>_0x334695){_0x4d2043=_0x334695;}}if(_0x4d2043>0x0){if(_0x4e742d[_0x6118('0xa5')]===_0x6118('0x8')){_0x4d2043=0x1;}if(_0x4d2043>this[_0x6118('0x1b')]){_0x4d2043=this[_0x6118('0x1b')];}_0x4e742d[_0x6118('0x203')]+=_0x4d2043;for(var _0x47cfea in this[_0x6118('0xee')]){if(typeof this[_0x6118('0xee')][_0x47cfea]!==_0x6118('0x14a')){if(this[_0x6118('0xee')][_0x47cfea]['state']===_0x6118('0x20d')&&this[_0x6118('0xee')][_0x47cfea]['status']===_0x6118('0x7f')){_0x5872a9[_0x6118('0x90')](this[_0x6118('0xee')][_0x47cfea]['id']);}}}hopperUtils[_0x6118('0x20e')](_0x4e742d,_0x5872a9,_0x4d2043)[_0x6118('0x33')](function(_0x1a1668){_0x4e742d[_0x6118('0x203')]-=_0x4d2043;_0x4e742d[_0x6118('0x203')]=_0x4e742d[_0x6118('0x203')]>0x0?_0x4e742d[_0x6118('0x203')]:0x0;if(!utils[_0x6118('0x205')](_0x1a1668)){hopperUtils[_0x6118('0x20f')](_0x4e742d)[_0x6118('0x33')](sendMessageReschedule(_0x4e742d))['catch'](loggerCatch(_0x6118('0x210')));}else{_0x4e742d[_0x6118('0x76')]+=_0x1a1668['length'];_0x4e742d[_0x6118('0x5e')]=_0x4e742d[_0x6118('0xa5')]===_0x6118('0x8')?utils['CAMPAIGN_STATUS'][_0x6118('0x137')]:utils[_0x6118('0x6b')][_0x6118('0x207')];for(var _0x222e2c=0x0;_0x222e2c<_0x1a1668[_0x6118('0x8f')];_0x222e2c+=0x1){if(_[_0x6118('0xf0')](_0x1a1668[_0x222e2c])||_[_0x6118('0xf0')](_0x1a1668[_0x222e2c]['Contact'])||_[_0x6118('0xf0')](_0x1a1668[_0x222e2c][_0x6118('0x15a')])){_0x202d4d['emptyContact']('[actionOriginate]\x20',_0x4e742d,_0x1a1668[_0x222e2c]);}else{hopperUtils[_0x6118('0x211')](_[_0x6118('0x69')](_0x1a1668[_0x222e2c],[_0x6118('0xe3'),_0x6118('0x15a')]))[_0x6118('0x33')](_0x202d4d[_0x6118('0x1e9')](_0x4e742d,_0x1a1668[_0x222e2c]))[_0x6118('0x96')](_0x202d4d[_0x6118('0x151')](_0x6118('0x212'),_0x4e742d));}}}})[_0x6118('0x96')](loggerGetContactDialer(_0x6118('0x213'),_0x4e742d,_0x4d2043));}};Dialer['prototype']['handlePredictive']=function(_0x18b2ea){if(_0x18b2ea[_0x6118('0x20c')]>0x0){var _0x541caa=_0x18b2ea[_0x6118('0x20c')]-_0x18b2ea[_0x6118('0x76')]-_0x18b2ea['talking'];if(_0x541caa>0x0){this['tryOriginatePredictive'](_0x18b2ea);}else{loggerPredictiveCalls['info'](_0x6118('0x214'));}}else{this[_0x6118('0x215')](_0x18b2ea);}};Dialer[_0x6118('0x13')]['tryOriginatePredictive']=function(_0x15d8b2){var _0x296320=this;var _0x5cd135=[];_0x15d8b2['originated']+=0x1;for(var _0x210526 in this['agents']){if(typeof this['agents'][_0x210526]!==_0x6118('0x14a')){if(this[_0x6118('0xee')][_0x210526][_0x6118('0x64')]===_0x6118('0x20d')&&this[_0x6118('0xee')][_0x210526][_0x6118('0x7e')]===_0x6118('0x7f')){_0x5cd135['push'](this[_0x6118('0xee')][_0x210526]['id']);}}}return this[_0x6118('0x20e')](_0x15d8b2['id'],_0x5cd135,0x1,_0x15d8b2[_0x6118('0x216')],_0x15d8b2)[_0x6118('0x33')](function(_0x11dc47){if(!utils[_0x6118('0x205')](_0x11dc47)){utils[_0x6118('0x5c')](_0x15d8b2,0x1,0x0);return hopperUtils[_0x6118('0x20f')](_0x15d8b2)[_0x6118('0x33')](sendMessageReschedule(_0x15d8b2))[_0x6118('0x96')](loggerCatch(_0x6118('0x210')));}else{_0x15d8b2[_0x6118('0x5e')]=utils['CAMPAIGN_STATUS']['RUNNING'];if(_[_0x6118('0xf0')](_0x11dc47[0x0])||_['isNil'](_0x11dc47[0x0][_0x6118('0x16d')])||_[_0x6118('0xf0')](_0x11dc47[0x0][_0x6118('0x15a')])){_0x296320[_0x6118('0x152')](_0x6118('0x212'),_0x15d8b2,_0x11dc47[0x0]);}else{return hopperUtils[_0x6118('0x211')](_[_0x6118('0x69')](_0x11dc47[0x0],['VoiceQueueId',_0x6118('0x15a')]))[_0x6118('0x33')](_0x296320[_0x6118('0x1e9')](_0x15d8b2,_0x11dc47[0x0]))[_0x6118('0x96')](_0x296320[_0x6118('0x151')](_0x6118('0x217'),_0x15d8b2));}}})[_0x6118('0x96')](loggerGetContactDialer('[getContactDialerPredictive]',_0x15d8b2,0x1));};Dialer[_0x6118('0x13')][_0x6118('0x1dc')]=function(_0x44573f,_0xfae32a,_0x7470ed,_0x1fbaf2,_0x518a23,_0x44d8e1){loggerPredictive[_0x6118('0x3e')](_0x6118('0x218'));loggerPredictive[_0x6118('0x3e')](_0x6118('0x219'),_0x44573f);loggerPredictive['info'](_0x6118('0x21a'),_0xfae32a);loggerPredictive[_0x6118('0x3e')](_0x6118('0x21b'),_0x7470ed);loggerPredictive['info'](_0x6118('0x21c'),_0x1fbaf2);loggerPredictive[_0x6118('0x3e')](_0x6118('0x21d'),_0x518a23);loggerPredictive[_0x6118('0x3e')](_0x6118('0x47'));return new Promise(function(_0x469e8c,_0x192529){if(_0x44573f<=0x0||isNaN(_0x44573f)){return _0x192529(msgResponse('[abandonmentRate]',_0x6118('0x7a'),_0x6118('0x21e')+_0x44573f));}if(_0x7470ed<=0x0||isNaN(_0x7470ed)){return _0x192529(msgResponse(_0x6118('0x21f'),_0x6118('0x7a'),'Ts\x20=\x20'+_0x7470ed));}if(_0x1fbaf2<=0x0||isNaN(_0x1fbaf2)){return _0x192529(msgResponse(_0x6118('0x21f'),_0x6118('0x7a'),_0x6118('0x220')+_0x1fbaf2));}if(_0xfae32a<=0x0||isNaN(_0xfae32a)){return _0x192529(msgResponse('[abandonmentRate]',_0x6118('0x7a'),'interval\x20=\x20'+_0xfae32a));}if(_0x518a23<=0x0||isNaN(_0x518a23)){return _0x192529(msgResponse(_0x6118('0x21f'),_0x6118('0x7a'),_0x6118('0x221')+_0x518a23));}_0x44d8e1=_0x44d8e1||0x0;var _0x4ac845=0x1/_0x7470ed;var _0x3a4417=0x0;var _0x1a16ba=0x0;var _0x2841eb=0x0;var _0x2b9d42=0x0;for(var _0x74bda2=0x0;_0x2841eb<_0x518a23;_0x74bda2+=0x1){_0x1a16ba=_0x74bda2/_0xfae32a;_0x3a4417=(_0x1fbaf2*_0x1a16ba+_0x44d8e1)/_0x4ac845;_0x2841eb=utils['erlangb'](_0x3a4417,_0x44573f);_0x2b9d42=_0x3a4417/_0x44573f*(0x1-utils[_0x6118('0x222')](_0x3a4417,_0x44573f));}return _0x469e8c({'erlangCalls':_0x74bda2,'erlangCallToSecond':_0xfae32a/_0x74bda2,'erlangAbandonmentRate':_0x2841eb,'erlangBusyFactor':_0x2b9d42});});};Dialer[_0x6118('0x13')][_0x6118('0x1dd')]=function(_0x22e376,_0x1b88ba,_0x193163,_0x1801b3,_0x8dc3b1,_0x1d362c){loggerPredictive[_0x6118('0x3e')]('----\x20Agent\x20Busy\x20Factor\x20----');loggerPredictive[_0x6118('0x3e')](_0x6118('0x219'),_0x22e376);loggerPredictive[_0x6118('0x3e')]('Interval:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x1b88ba);loggerPredictive['info'](_0x6118('0x21b'),_0x193163);loggerPredictive[_0x6118('0x3e')](_0x6118('0x21c'),_0x1801b3);loggerPredictive[_0x6118('0x3e')]('Umin:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x8dc3b1);loggerPredictive['info'](_0x6118('0x47'));return new Promise(function(_0x1881c7,_0x77cd7c){if(_0x22e376<=0x0||isNaN(_0x22e376)){return _0x77cd7c(msgResponse(_0x6118('0x223'),'Error',_0x6118('0x21e')+_0x22e376));}if(_0x193163<=0x0||isNaN(_0x193163)){return _0x77cd7c(msgResponse(_0x6118('0x223'),_0x6118('0x7a'),_0x6118('0x224')+_0x193163));}if(_0x1801b3<=0x0||isNaN(_0x1801b3)){return _0x77cd7c(msgResponse(_0x6118('0x223'),_0x6118('0x7a'),_0x6118('0x220')+_0x1801b3));}if(_0x1b88ba<=0x0||isNaN(_0x1b88ba)){return _0x77cd7c(msgResponse(_0x6118('0x223'),_0x6118('0x7a'),'interval\x20=\x20'+_0x1b88ba));}if(_0x8dc3b1<=0x0||isNaN(_0x8dc3b1)){return _0x77cd7c(msgResponse(_0x6118('0x223'),_0x6118('0x7a'),'Umin\x20=\x20'+_0x8dc3b1));}_0x1d362c=_0x1d362c||0x0;var _0x406ad1=0x1/_0x193163;var _0x4cab0c=0x0;var _0x369636=0x0;var _0x1fa81f=0x0;var _0x4da032=0x0;for(var _0x19b555=0x0;_0x4da032<_0x8dc3b1;_0x19b555+=0x1){_0x369636=_0x19b555/_0x1b88ba;_0x4cab0c=(_0x1801b3*_0x369636+_0x1d362c)/_0x406ad1;_0x1fa81f=utils[_0x6118('0x222')](_0x4cab0c,_0x22e376);_0x4da032=_0x4cab0c/_0x22e376*(0x1-utils[_0x6118('0x222')](_0x4cab0c,_0x22e376));}return _0x1881c7({'erlangCalls':_0x19b555,'erlangCallToSecond':_0x1b88ba/_0x19b555,'erlangAbandonmentRate':_0x1fa81f,'erlangBusyFactor':_0x4da032});});};module[_0x6118('0x225')]=Dialer;