Built motion from commit fe909640.|2.6.8
[motion2.git] / server / services / ami / preview / 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 _0xce7f=['voice_queue_presence:remove','sendMessageOneNotActive','available','paused','NOT_ACTIVE','logger','[CampaignPreview]\x20Campaign\x20Queue:\x20','DEACTIVATED','\x20is\x20deactivated','loopCampaigns','syncCampaigns','hasOwnProperty','booked','clockClearZombieChannels','clearZombieChannels','setMessage','dialPreviewAutoRecallMe','recallMe','clearZombieChannel','isNil','[clearZombieChannels][talking]','Queue','originated:\x20','queue','pTalking:\x20','dialAnswer','pick','contactId','UserId','VoiceQueueId','ListId','Action','status','channel','catch','No\x20such\x20channel','[clearZombieChannel]','decrementTalkink','loggerError','[Dialer][checkChannel][pTalking][Preview]','[action]','size','getContactRecallMe','getDiff','scheduledat','dialRecallMeTimeout','Agent','voicePause','logger2','disableContact','starttime','YYYY-MM-DD\x20HH:mm:ss','logCustomer','RecallInQueue','dialRecallInQueue','rescheduleContactInQueue','createBody','createCustomerHistory','[HistoryDialRecallInQueue][historyCatch]','RecallFailedTimeout','[HistoryRecallClose]','IsNotLoggedIn','AGENTS_NOT_LOGGED','isActive','isTrunkReachable','TrunkBackup','ACTIVE','countnosuchnumberretry','countglobal','totalGlobal','custom:agentnosuchnumber','buildObj','nosuchnumber','[callProgressDetectingCustomer][logNoSuch]','verifyAdditionalPhones','then','callAdditionalPhoneAfterMin','dialGlobalMaxRetry','cloneAction','Global','createCustomerFinal','[callProgressDetectingCustomer][logNoSuchGlobal]','rescheduleContact','scheduledAt','dialNoSuchNumberRetryFrequency','unlockAgent','activeContact','linkedid','actioncountonusuch','incrementPreviewCounters','idContact','swapAdditionalPhones','ANSWER','responsetime','answertime','[syncHangup][talking][increment]','uniqueid','\x20Queue','custom:agentconnect','connect','acw','custom:agentcomplete','complete','[callProgressDetectingCustomer][logAnswer]','[callProgressDetectingCustomer][logAnswerGlobal]','talktime','[syncHangup][talking][decrement]','countbusyretry','dialBusyRetryFrequency','custom:agentbusy','[callProgressDetectingCustomer][logBusy]','additional','dialBusyMaxRetry','NOANSWER','countnoanswerretry','dialNoAnswerRetryFrequency','buildNoAnswerEventPayload','custom:agentnoanswer','[callProgressDetectingCustomer][logNoAnswer]','[callProgressDetectingCustomer][logNoAnswerGlobal]','dialNoAnswerMaxRetry','CONGESTION','countcongestionretry','dialCongestionRetryFrequency','custom:agentcongestion','congestion','[callProgressDetectingCustomer][logCongestion]','[callProgressDetectingCustomer][logCongestionGlobal]','dialCongestionMaxRetry','CANCEL','countagentrejectretry','AgentReject','custom:agentreject','agentreject','[syncHangupRequest][logAgentReject]','[callProgressDetectingCustomer][logAgentReject]','dialAgentRejectRetryFrequency','ABANDONED','outboundAbandonedCallsDay','countabandonedretry','[callProgressDetectingCustomer][logAbandoned]','countabandonedetry','outboundUnknownCallsDay','countmachineretry','cause-txt','dialstatus','custom:amd','amd','[callProgressDetectingCustomer][hangupInAMD]','[callProgressDetectingCustomer][machine]','[callProgressDetectingCustomer][logUnknown]','[callProgressDetectingCustomer][logUnknownGlobal]','updateOriginated','[callProgressDetectingCustomer]','[originated][decrement][callProgressDetectingCustomer]','destlinkedid','callProgressDetectingAgent','isUndefined','object','logAgent','NoSuchNumber','[callProgressDetectingAgent][logNoAnswer]','Busy','createAgentHistory','[callProgressDetectingAgent][logBusy]','Congestion','[callProgressDetectingAgent][logCongestion]','AnswerAGI','reason','[callProgressDetectingAgent]','[originated][decrement][callProgressDetectingAgent]','resolve','[verifyAdditionalPhone]\x20','[swapAdditionalPhone]\x20','[incrementPreviewCounters]\x20','checkInBlack','Contact','Contact\x20is\x20undefined','lookAgent','execCall','Queue:\x20','custom:agentcalled','Call\x20failed','logBlacklist','createHistory','[Blacklist][error]','Contact\x20in\x20black\x20List','SIP/%s','reachable','execRun','unlock','unlockContact','active','getContactPreview','recallme','validateContact','isValid','checkIsBlackList','[Preview][checkIsBlackList]','[Preview][getContactPreview]','Call\x20unsuccessful','isEmpty','[Preview][validateContact][Empty\x20Contact]','Empty\x20Contact','Empty\x20Campaign','\x20Trunk\x20is\x20not\x20active','[Preview][validateContact][Trunk\x20not\x20working\x20correctly]','\x20Trunk\x20Backup\x20is\x20not\x20active','Trunk\x20not\x20working\x20correctly','\x20Not\x20Active','campaign\x20Name:\x20','Is\x20Valid','SIP/%s/%s%s','trim','dialCutDigit','phone','substring','getCallerId','getCallerIdRandom','dialRandomLastDigitCallerIdNumber','originatecalleridname','extractCalleridName','originatecalleridnum','addVariables','merge','toLowerVariables','[originated][increment]','syncOriginateResponse','logLookAgent','clone','response','custom:agentringnoanswer','rejected','Answer','[callProgressDetectingAgent][logAnswer]','callProgressDetectingCustomer','cause','dialQueueProject','channelstate','transfer','[syncHangup][talking][transfer]','[syncHangup][talking][cause]','syncDialEnd','destuniqueid','variables','filterKey','keys','variable','error','[syncVarSet][Preview]','inspect','transfertargetlinkedid','transfererlinkedid','util','uuid','moment','ioredis','../../../config/logger','actionPreview','../ami','./rpcDb','./action','./util/util','redis','defaults','localhost','socket.io-emitter','prototype','enqueue','tail','finally','sequence','campaignsPreview','voiceQueues','trunks','actions','agents','originateresponse','syncHangup','hanguprequest','syncHangupRequest','bind','dialend','syncNewExten','varset','syncVarSet','attendedtransfer','syncAttendedTransfer','blindtransfer','syncBlindTransfer','emit','type','outbound','name','strategy','answered','loggedIn','pTalking','sumBillable','sumDuration','sumHoldTime','talking','unmanaged','abandoned','waiting','loggedInDb','dialActive','dialMethod','dialOriginateCallerIdName','dialOriginateCallerIdNumber','dialOriginateTimeout','dialPrefix','outboundAnswerAgiCallsDay','outboundAnswerCallsDay','outboundBlacklistCallsDay','outboundCongestionCallsDay','outboundDropCallsDayACS','outboundDropCallsDayCallersExit','outboundDropCallsDayTimeout','outboundNoAnswerCallsDay','outboundNoSuchCallsDay','outboundOriginateFailureCallsDay','outboundReCallsDay','outboundRejectCallsDay','predictiveIntervalAnsweredCalls','predictiveIntervalAvgHoldtime','predictiveIntervalAvgTalktime','predictiveIntervalDroppedCallsCallersExit','predictiveIntervalDroppedCallsTimeout','predictiveIntervalErlangCallsDroppedCalls','predictiveIntervalHitRate','predictiveIntervalMultiplicativeFactor','predictiveIntervalPauses','predictiveIntervalAvailable','predictiveIntervalTotalCalls','message','originated','erlangCalls','erlangAbandonmentRate','erlangBusyFactor','startPredictive','startProgressive','Trunk','callerid','Interval','stringify','md5','voice:queue:%s','info','[DEBUG]\x20Emit\x20voice_queue_channel:remove\x20event','format','voice_queue_channel:remove'];(function(_0x297fd3,_0x115406){var _0x2af381=function(_0x1dd31b){while(--_0x1dd31b){_0x297fd3['push'](_0x297fd3['shift']());}};_0x2af381(++_0x115406);}(_0xce7f,0xfd));var _0xfce7=function(_0x8d9399,_0x490955){_0x8d9399=_0x8d9399-0x0;var _0x5a0645=_0xce7f[_0x8d9399];return _0x5a0645;};'use strict';var util=require(_0xfce7('0x0'));var _=require('lodash');var uuid=require(_0xfce7('0x1'));var moment=require(_0xfce7('0x2'));var md5=require('md5');var Redis=require(_0xfce7('0x3'));var config=require('../../../config/environment');var logger=require(_0xfce7('0x4'))('preview');var loggerAction=require('../../../config/logger')(_0xfce7('0x5'));var ami=require(_0xfce7('0x6'));var rpcDb=require(_0xfce7('0x7'));var cmHopperAdditionalPhone=require('../rpc/cmHopperAdditionalPhone');var Action=require(_0xfce7('0x8'));var ut=require(_0xfce7('0x9'));config[_0xfce7('0xa')]=_[_0xfce7('0xb')](config[_0xfce7('0xa')],{'host':_0xfce7('0xc'),'port':0x18eb});var io=require(_0xfce7('0xd'))(new Redis(config[_0xfce7('0xa')]));var Sequence=function(){};Sequence[_0xfce7('0xe')][_0xfce7('0xf')]=function(_0x48ae73){this[_0xfce7('0x10')]=this['tail']?this[_0xfce7('0x10')][_0xfce7('0x11')](_0x48ae73):_0x48ae73();};function Preview(_0xe282fd){this[_0xfce7('0x12')]=new Sequence();this[_0xfce7('0x13')]=_0xe282fd[_0xfce7('0x14')];this[_0xfce7('0x15')]=_0xe282fd['trunks'];this[_0xfce7('0x16')]={};this[_0xfce7('0x17')]=_0xe282fd[_0xfce7('0x17')];this['clockClearZombieChannels']=0x0;ami['on'](_0xfce7('0x18'),this['syncOriginateResponse']['bind'](this));ami['on']('hangup',this[_0xfce7('0x19')]['bind'](this));ami['on'](_0xfce7('0x1a'),this[_0xfce7('0x1b')][_0xfce7('0x1c')](this));ami['on'](_0xfce7('0x1d'),this['syncDialEnd'][_0xfce7('0x1c')](this));ami['on']('newexten',this[_0xfce7('0x1e')][_0xfce7('0x1c')](this));ami['on'](_0xfce7('0x1f'),this[_0xfce7('0x20')][_0xfce7('0x1c')](this));ami['on'](_0xfce7('0x21'),this[_0xfce7('0x22')][_0xfce7('0x1c')](this));ami['on'](_0xfce7('0x23'),this[_0xfce7('0x24')][_0xfce7('0x1c')](this));this['loopCampaigns'](this[_0xfce7('0x13')]);}function emit(_0x5d1f7b,_0x229c2c,_0x3f3411){io['to'](_0x5d1f7b)[_0xfce7('0x25')](_0x229c2c,_0x3f3411);}function emitCampaignPreview(_0x42746b){if(_0x42746b[_0xfce7('0x26')]===_0xfce7('0x27')){var _0x197197={'id':_0x42746b['id'],'name':_0x42746b[_0xfce7('0x28')],'strategy':_0x42746b[_0xfce7('0x29')],'answered':_0x42746b[_0xfce7('0x2a')],'available':_0x42746b['available'],'loggedIn':_0x42746b[_0xfce7('0x2b')],'pTalking':_0x42746b[_0xfce7('0x2c')],'sumBillable':_0x42746b[_0xfce7('0x2d')],'sumDuration':_0x42746b[_0xfce7('0x2e')],'sumHoldTime':_0x42746b[_0xfce7('0x2f')]||0x0,'talking':_0x42746b[_0xfce7('0x30')],'total':_0x42746b['total'],'type':_0x42746b[_0xfce7('0x26')],'unmanaged':_0x42746b[_0xfce7('0x31')],'abandoned':_0x42746b[_0xfce7('0x32')],'waiting':_0x42746b[_0xfce7('0x33')],'loggedInDb':_0x42746b[_0xfce7('0x34')],'dialActive':_0x42746b[_0xfce7('0x35')],'dialMethod':_0x42746b[_0xfce7('0x36')],'dialOriginateCallerIdName':_0x42746b[_0xfce7('0x37')],'dialOriginateCallerIdNumber':_0x42746b[_0xfce7('0x38')],'dialOriginateTimeout':_0x42746b[_0xfce7('0x39')],'dialPrefix':_0x42746b[_0xfce7('0x3a')],'outboundAnswerAgiCallsDay':_0x42746b[_0xfce7('0x3b')],'outboundAnswerCallsDay':_0x42746b[_0xfce7('0x3c')],'outboundBlacklistCallsDay':_0x42746b[_0xfce7('0x3d')],'outboundBusyCallsDay':_0x42746b['outboundBusyCallsDay'],'outboundCongestionCallsDay':_0x42746b[_0xfce7('0x3e')],'outboundDropCallsDayACS':_0x42746b[_0xfce7('0x3f')],'outboundDropCallsDayCallersExit':_0x42746b[_0xfce7('0x40')],'outboundDropCallsDayTimeout':_0x42746b[_0xfce7('0x41')],'outboundNoAnswerCallsDay':_0x42746b[_0xfce7('0x42')],'outboundNoSuchCallsDay':_0x42746b[_0xfce7('0x43')],'outboundOriginateFailureCallsDay':_0x42746b[_0xfce7('0x44')],'outboundReCallsDay':_0x42746b[_0xfce7('0x45')],'outboundRejectCallsDay':_0x42746b[_0xfce7('0x46')],'outboundUnknownCallsDay':_0x42746b['outboundUnknownCallsDay'],'outboundAbandonedCallsDay':_0x42746b['outboundAbandonedCallsDay'],'predictiveIntervalAnsweredCalls':_0x42746b[_0xfce7('0x47')],'predictiveIntervalAvgHoldtime':_0x42746b[_0xfce7('0x48')],'predictiveIntervalAvgTalktime':_0x42746b[_0xfce7('0x49')],'predictiveIntervalDroppedCallsCallersExit':_0x42746b[_0xfce7('0x4a')],'predictiveIntervalDroppedCallsTimeout':_0x42746b[_0xfce7('0x4b')],'predictiveIntervalErlangCalls':_0x42746b['predictiveIntervalErlangCalls'],'predictiveIntervalErlangCallsDroppedCalls':_0x42746b[_0xfce7('0x4c')],'predictiveIntervalHitRate':_0x42746b[_0xfce7('0x4d')],'predictiveIntervalMultiplicativeFactor':_0x42746b[_0xfce7('0x4e')],'predictiveIntervalPauses':_0x42746b[_0xfce7('0x4f')],'predictiveIntervalAvailable':_0x42746b[_0xfce7('0x50')],'predictiveIntervalTotalCalls':_0x42746b[_0xfce7('0x51')],'message':_0x42746b[_0xfce7('0x52')],'originated':_0x42746b[_0xfce7('0x53')],'erlangCalls':_0x42746b[_0xfce7('0x54')],'erlangCallToSecond':_0x42746b['erlangCallToSecond'],'erlangAbandonmentRate':_0x42746b[_0xfce7('0x55')],'erlangBusyFactor':_0x42746b[_0xfce7('0x56')],'startPredictive':_0x42746b[_0xfce7('0x57')],'startProgressive':_0x42746b[_0xfce7('0x58')]};if(_0x42746b[_0xfce7('0x59')]){_0x197197[_0xfce7('0x59')]={'id':_0x42746b[_0xfce7('0x59')]['id'],'name':_0x42746b[_0xfce7('0x59')][_0xfce7('0x28')],'active':_0x42746b[_0xfce7('0x59')]['active'],'callerid':_0x42746b['Trunk'][_0xfce7('0x5a')]};}if(_0x42746b[_0xfce7('0x5b')]){_0x197197[_0xfce7('0x5b')]={'id':_0x42746b[_0xfce7('0x5b')]['id'],'name':_0x42746b['Interval'][_0xfce7('0x28')]};}var _0x134d52=md5(JSON[_0xfce7('0x5c')](_0x197197));if(_0x42746b['md5']!==_0x134d52){_0x42746b[_0xfce7('0x5d')]=_0x134d52;emit(util['format'](_0xfce7('0x5e'),_0x197197[_0xfce7('0x28')]),'voice_queue:save',_0x197197);}}}function emitVoiceQueueChannelRemove(_0xbfdbb5){logger[_0xfce7('0x5f')](_0xfce7('0x60'),JSON[_0xfce7('0x5c')](_0xbfdbb5));emit(util[_0xfce7('0x61')](_0xfce7('0x5e'),_0xbfdbb5['name']),_0xfce7('0x62'),_0xbfdbb5);io[_0xfce7('0x25')](_0xfce7('0x63'),_0xbfdbb5);}function notSendMessagesQueue(_0x300ffc){if(_0x300ffc[_0xfce7('0x64')]){if(_0x300ffc['originated']===0x0&&_0x300ffc[_0xfce7('0x2c')]===0x0){_0x300ffc[_0xfce7('0x64')]=![];_0x300ffc[_0xfce7('0x65')]=0x0;_0x300ffc[_0xfce7('0x66')]=0x0;_0x300ffc[_0xfce7('0x52')]=_0xfce7('0x67');ut[_0xfce7('0x68')](_0xfce7('0x69'),_0x300ffc[_0xfce7('0x28')]+'\x20is\x20not\x20active');}else{_0x300ffc[_0xfce7('0x52')]=_0xfce7('0x6a');ut[_0xfce7('0x68')](_0xfce7('0x69'),_0x300ffc[_0xfce7('0x28')]+_0xfce7('0x6b'));}emitCampaignPreview(_0x300ffc);}}Preview['prototype'][_0xfce7('0x6c')]=function(){var _0x50876d=this;setInterval(function(){_0x50876d['syncCampaigns']();},0x7cf);};Preview[_0xfce7('0xe')][_0xfce7('0x6d')]=function(){var _0x794e8a=this['campaignsPreview'];this['clockClearZombieChannels']+=0x1;for(var _0x1d80e6 in _0x794e8a){if(_0x794e8a[_0xfce7('0x6e')](_0x1d80e6)&&(_0x794e8a[_0x1d80e6][_0xfce7('0x36')]==='preview'||_0x794e8a[_0x1d80e6]['dialMethod']===_0xfce7('0x6f'))&&_0x794e8a[_0x1d80e6][_0xfce7('0x26')]===_0xfce7('0x27')){if(this[_0xfce7('0x70')]>0x7){this['clockClearZombieChannels']=0x0;this[_0xfce7('0x71')]();}}if(_0x794e8a[_0xfce7('0x6e')](_0x1d80e6)&&_0x794e8a[_0x1d80e6][_0xfce7('0x36')]==='preview'&&_0x794e8a[_0x1d80e6]['type']===_0xfce7('0x27')){if(_0x794e8a[_0x1d80e6][_0xfce7('0x35')]){this[_0xfce7('0x72')](_0x794e8a[_0x1d80e6]);if(_0x794e8a[_0x1d80e6][_0xfce7('0x73')])this[_0xfce7('0x74')](_0x794e8a[_0x1d80e6]);}else{notSendMessagesQueue(_0x794e8a[_0x1d80e6]);}}}};Preview[_0xfce7('0xe')][_0xfce7('0x75')]=function(_0x2c804b){var _0x377958=this;this[_0xfce7('0x12')][_0xfce7('0xf')](function(){if(!_[_0xfce7('0x76')](_0x377958[_0xfce7('0x16')][_0x2c804b])){loggerAction[_0xfce7('0x5f')](_0xfce7('0x77'),_0x2c804b,_0xfce7('0x78'),_0x377958[_0xfce7('0x16')][_0x2c804b]['queue'],_0xfce7('0x79'),JSON[_0xfce7('0x5c')](_0x377958[_0xfce7('0x13')][_0x377958[_0xfce7('0x16')][_0x2c804b][_0xfce7('0x7a')]][_0xfce7('0x53')]),_0xfce7('0x7b'),JSON[_0xfce7('0x5c')](_0x377958[_0xfce7('0x13')][_0x377958[_0xfce7('0x16')][_0x2c804b][_0xfce7('0x7a')]][_0xfce7('0x2c')]),JSON[_0xfce7('0x5c')](_0x377958[_0xfce7('0x16')][_0x2c804b][_0xfce7('0x7c')]),JSON[_0xfce7('0x5c')](_[_0xfce7('0x7d')](_0x377958[_0xfce7('0x16')][_0x2c804b],[_0xfce7('0x7e'),_0xfce7('0x7f'),_0xfce7('0x80'),_0xfce7('0x81')])));return ami[_0xfce7('0x82')]({'action':_0xfce7('0x83'),'channel':_0x377958['actions'][_0x2c804b][_0xfce7('0x84')]})[_0xfce7('0x85')](function(_0x52e558){if(_0x52e558[_0xfce7('0x52')]===_0xfce7('0x86')){setTimeout(function(){if(_0x377958['actions'][_0x2c804b]){ut['updateOriginated'](_0x377958[_0xfce7('0x13')][_0x377958[_0xfce7('0x16')][_0x2c804b]['queue']],_0xfce7('0x87'));if(_0x377958[_0xfce7('0x16')][_0x2c804b][_0xfce7('0x7c')]===!![]){ut[_0xfce7('0x88')](_0x377958[_0xfce7('0x13')][_0x377958[_0xfce7('0x16')][_0x2c804b][_0xfce7('0x7a')]],_0xfce7('0x87'));ut[_0xfce7('0x89')](_0xfce7('0x8a')+_0x2c804b,_0x377958[_0xfce7('0x16')][_0x2c804b][_0xfce7('0x7a')]);}ut[_0xfce7('0x89')]('[Dialer][checkChannel][Preview]'+_0x2c804b,_0x377958[_0xfce7('0x16')][_0x2c804b][_0xfce7('0x7a')]);delete _0x377958['actions'][_0x2c804b];}},0x2328);}});}});};Preview[_0xfce7('0xe')][_0xfce7('0x71')]=function(){var _0x2bcdc4=this;loggerAction['info'](_0xfce7('0x8b'),_[_0xfce7('0x8c')](this[_0xfce7('0x16')]));for(var _0x4feb31 in this[_0xfce7('0x16')]){if(_0x2bcdc4['actions'][_0xfce7('0x6e')](_0x4feb31)){_0x2bcdc4[_0xfce7('0x75')](_0x4feb31);}}};Preview[_0xfce7('0xe')][_0xfce7('0x74')]=function(_0x50af6f){var _0x49729b=this;rpcDb[_0xfce7('0x8d')](_0x50af6f['id'],ut['agentReadyId'](this[_0xfce7('0x17')]))['then'](function(_0x2cce31){if(!_['isNil'](_0x2cce31)){for(var _0x234bf5=0x0;_0x234bf5<_0x2cce31['length'];_0x234bf5+=0x1){if(ut[_0xfce7('0x8e')](_0x2cce31[_0x234bf5][_0xfce7('0x8f')])<_0x50af6f[_0xfce7('0x90')]*0x3c){if(_0x2cce31[_0x234bf5][_0xfce7('0x91')]&&!_0x2cce31[_0x234bf5][_0xfce7('0x91')][_0xfce7('0x92')]){_0x49729b['run'](_0x2cce31[_0x234bf5]['id'])['then'](ut[_0xfce7('0x93')]('[RecallMe]'))[_0xfce7('0x85')](ut[_0xfce7('0x93')]('[RecallMe]'));}else{rpcDb[_0xfce7('0x94')](_0x2cce31[_0x234bf5]['id']);}}else{var _0x35599a=new Action(_0x2cce31[_0x234bf5],_0x50af6f);_0x35599a[_0xfce7('0x95')]=moment()[_0xfce7('0x61')](_0xfce7('0x96'));_0x50af6f['outboundReCallsDay']+=0x1;ut[_0xfce7('0x97')](_0x35599a,0x17,_0xfce7('0x98'));if(_0x50af6f[_0xfce7('0x99')]){rpcDb[_0xfce7('0x9a')](ut[_0xfce7('0x9b')](_0x2cce31[_0x234bf5]));rpcDb[_0xfce7('0x9c')](_0x35599a,_0xfce7('0x9d'));}else{ut['logCustomer'](_0x35599a,0x16,_0xfce7('0x9e'));rpcDb[_0xfce7('0x9c')](_0x35599a,'[HistoryRecallClose]');rpcDb['createCustomerFinal'](_0x35599a,_0xfce7('0x9f'));}}}}})[_0xfce7('0x85')](ut['logger2']('[getContactRecallMe]'));};Preview[_0xfce7('0xe')]['setMessage']=function(_0x3f3e25){_0x3f3e25[_0xfce7('0x64')]=!![];if(ut[_0xfce7('0xa0')](_0x3f3e25['loggedIn'])){_0x3f3e25['message']=_0xfce7('0xa1');}else if(!ut[_0xfce7('0xa2')](_0x3f3e25[_0xfce7('0x35')])){_0x3f3e25[_0xfce7('0x52')]=_0xfce7('0x67');}else if(!this[_0xfce7('0xa3')](_0x3f3e25[_0xfce7('0x59')])){if(!this[_0xfce7('0xa3')](_0x3f3e25[_0xfce7('0xa4')])){_0x3f3e25[_0xfce7('0x52')]='TRUNK_IS_NOT_REACHABLE';}else{_0x3f3e25[_0xfce7('0x52')]='ACTIVE';}}else{_0x3f3e25[_0xfce7('0x52')]=_0xfce7('0xa5');}emitCampaignPreview(_0x3f3e25);};Preview[_0xfce7('0xe')]['callProgressDetectingCustomer']=function(_0x2c5f81,_0x1d2efa,_0x54a150){var _0x12b9e3=this;var _0x8ae68b=this[_0xfce7('0x16')][_0x1d2efa];var _0x96d0e3=this[_0xfce7('0x13')][_0x8ae68b['queue']];var _0x5ea116;var _0xedaba1=![];var _0x3a268e=0x2;var _0x588400=0x3;if(_0x96d0e3){switch(_0x54a150){case'1':_0x96d0e3[_0xfce7('0x43')]+=0x1;_0x8ae68b[_0xfce7('0xa6')]+=0x1;_0x8ae68b[_0xfce7('0xa7')]=ut[_0xfce7('0xa8')](_0x8ae68b);ut[_0xfce7('0x97')](_0x8ae68b,0x0,'NoSuchNumber');ami[_0xfce7('0x25')](_0xfce7('0xa9'),ut[_0xfce7('0xaa')](_0x8ae68b,_0xfce7('0xab')));rpcDb[_0xfce7('0x9c')](_0x8ae68b,_0xfce7('0xac'));_0x12b9e3[_0xfce7('0xad')](_0x8ae68b,'0',_0x96d0e3)[_0xfce7('0xae')](function(_0x4cee98){_0xedaba1=_0x4cee98['additional']==0x1;_0x3a268e=_0x96d0e3['dialNoSuchNumberRetryFrequency'];_0x588400=_0x96d0e3[_0xfce7('0xaf')];if(!_0xedaba1){if(ut['totalGlobal'](_0x8ae68b)>=_0x96d0e3[_0xfce7('0xb0')]){_0x5ea116=ut[_0xfce7('0xb1')](_0x8ae68b,0xf,_0xfce7('0xb2'));rpcDb[_0xfce7('0xb3')](_0x5ea116,_0xfce7('0xb4'));}else{if(_0x8ae68b[_0xfce7('0xa6')]>=_0x96d0e3['dialNoSuchNumberMaxRetry']){rpcDb[_0xfce7('0xb3')](_0x8ae68b,_0xfce7('0xb4'));}else{rpcDb[_0xfce7('0xb5')](ut[_0xfce7('0xb6')](_0x8ae68b,_0xfce7('0xa6'),_0x96d0e3[_0xfce7('0xb7')]),_0x8ae68b[_0xfce7('0xb8')],_0x8ae68b[_0xfce7('0xb9')]);}}delete this[_0xfce7('0x16')][_0x2c5f81[_0xfce7('0xba')]];}else{_0x8ae68b[_0xfce7('0xa6')]++;logger[_0xfce7('0x5f')](_0xfce7('0xbb'),_0x8ae68b['countnosuchnumberretry']);logger['info']('id',_0x8ae68b['idContact']);_0x12b9e3[_0xfce7('0xbc')]({'id':_0x8ae68b[_0xfce7('0xbd')],'field':{'countnosuchnumberretry':_0x8ae68b[_0xfce7('0xa6')]}})[_0xfce7('0xae')](function(){_0x12b9e3[_0xfce7('0xbe')](_0x8ae68b,_0x3a268e,_0x588400)[_0xfce7('0xae')](function(){});});}});break;case _0xfce7('0xbf'):var _0x3bc099=moment()['format'](_0xfce7('0x96'));_0x8ae68b[_0xfce7('0xc0')]=_0x3bc099;_0x8ae68b[_0xfce7('0xc1')]=_0x3bc099;_0x8ae68b[_0xfce7('0x7c')]=!![];_0x96d0e3[_0xfce7('0x2c')]+=0x1;logger[_0xfce7('0x5f')](_0xfce7('0xc2'),_0x8ae68b[_0xfce7('0xc3')],_0xfce7('0xc4'),_0x96d0e3[_0xfce7('0x28')],'pTalking:\x20',_0x96d0e3[_0xfce7('0x2c')]);ami['emit'](_0xfce7('0xc5'),ut['buildObj'](_0x8ae68b,_0xfce7('0xc6'),this[_0xfce7('0x13')][_0x8ae68b[_0xfce7('0x7a')]]));if(_0x96d0e3[_0xfce7('0xc7')]){ami[_0xfce7('0x25')]('custom:agentConnectPreview',ut['buildAcw'](_0x8ae68b));}break;case'16':ami[_0xfce7('0x25')](_0xfce7('0xc8'),ut[_0xfce7('0xaa')](_0x8ae68b,_0xfce7('0xc9'),this[_0xfce7('0x13')][_0x8ae68b[_0xfce7('0x7a')]]));emitVoiceQueueChannelRemove(ut[_0xfce7('0xaa')](_0x8ae68b,_0xfce7('0xc9')));_0x96d0e3[_0xfce7('0x3c')]+=0x1;_0x96d0e3['total']+=0x1;_0x96d0e3[_0xfce7('0x2a')]+=0x1;ut['decrementTalkink'](_0x96d0e3,'[16]');_0x8ae68b[_0xfce7('0xa7')]=ut[_0xfce7('0xa8')](_0x8ae68b);ut[_0xfce7('0x97')](_0x8ae68b,0x4,'Answer');rpcDb['createCustomerHistory'](_0x8ae68b,_0xfce7('0xca'));rpcDb[_0xfce7('0xb3')](_0x8ae68b,_0xfce7('0xcb'));rpcDb['crateCustomerReportQueue'](_0x8ae68b);_0x96d0e3[_0xfce7('0x2e')]+=_0x8ae68b[_0xfce7('0xcc')];_0x96d0e3[_0xfce7('0x2d')]+=_0x8ae68b[_0xfce7('0xcc')];logger['info'](_0xfce7('0xcd'),_0x8ae68b['uniqueid'],_0xfce7('0xc4'),_0x96d0e3[_0xfce7('0x28')],_0xfce7('0x7b'),_0x96d0e3['pTalking']);delete this[_0xfce7('0x16')][_0x2c5f81[_0xfce7('0xba')]];break;case'BUSY':_0x96d0e3['outboundBusyCallsDay']+=0x1;_0x8ae68b[_0xfce7('0xce')]+=0x1;_0x8ae68b[_0xfce7('0xa7')]=ut[_0xfce7('0xa8')](_0x8ae68b);ut['logCustomer'](_0x8ae68b,0x5,'Busy');_0x3a268e=_0x96d0e3[_0xfce7('0xcf')];_0x588400=_0x96d0e3['callAdditionalPhoneAfterMin'];ami['emit'](_0xfce7('0xd0'),ut['buildObj'](_0x8ae68b,'busy'));rpcDb[_0xfce7('0x9c')](_0x8ae68b,_0xfce7('0xd1'));_0x12b9e3[_0xfce7('0xad')](_0x8ae68b,'5',_0x96d0e3)[_0xfce7('0xae')](function(_0x5772e0){_0xedaba1=_0x5772e0[_0xfce7('0xd2')]==0x1;if(!_0xedaba1){if(ut[_0xfce7('0xa8')](_0x8ae68b)>=_0x96d0e3['dialGlobalMaxRetry']){_0x5ea116=ut[_0xfce7('0xb1')](_0x8ae68b,0xf,_0xfce7('0xb2'));rpcDb['createCustomerFinal'](_0x5ea116,'[callProgressDetectingCustomer][logBusyGlobal]');}else{if(_0x8ae68b[_0xfce7('0xce')]>=_0x96d0e3[_0xfce7('0xd3')]){rpcDb[_0xfce7('0xb3')](_0x8ae68b,_0xfce7('0xd1'));}else{rpcDb[_0xfce7('0xb5')](ut[_0xfce7('0xb6')](_0x8ae68b,_0xfce7('0xce'),_0x96d0e3['dialBusyRetryFrequency']),_0x8ae68b[_0xfce7('0xb8')],_0x8ae68b[_0xfce7('0xb9')]);}}}else{_0x8ae68b[_0xfce7('0xce')]++;_0x12b9e3[_0xfce7('0xbc')]({'id':_0x8ae68b[_0xfce7('0xbd')],'field':{'countbusyretry':_0x8ae68b[_0xfce7('0xce')]}})[_0xfce7('0xae')](function(){_0x12b9e3[_0xfce7('0xbe')](_0x8ae68b,_0x3a268e,_0x588400)[_0xfce7('0xae')](function(){});});}});break;case _0xfce7('0xd4'):_0x96d0e3['outboundNoAnswerCallsDay']+=0x1;_0x8ae68b[_0xfce7('0xd5')]+=0x1;_0x8ae68b[_0xfce7('0xa7')]=ut[_0xfce7('0xa8')](_0x8ae68b);ut[_0xfce7('0x97')](_0x8ae68b,0x3,'NoAnswer');_0x3a268e=_0x96d0e3[_0xfce7('0xd6')];_0x588400=_0x96d0e3[_0xfce7('0xaf')];var _0xc4a45e=ut[_0xfce7('0xd7')](_0x8ae68b,_0x96d0e3);ami[_0xfce7('0x25')](_0xfce7('0xd8'),_0xc4a45e);rpcDb['createCustomerHistory'](_0x8ae68b,_0xfce7('0xd9'));_0x12b9e3[_0xfce7('0xad')](_0x8ae68b,'3',_0x96d0e3)['then'](function(_0x5966a4){_0xedaba1=_0x5966a4['additional']==0x1;if(!_0xedaba1){if(ut[_0xfce7('0xa8')](_0x8ae68b)>=_0x96d0e3[_0xfce7('0xb0')]){_0x5ea116=ut[_0xfce7('0xb1')](_0x8ae68b,0xf,'Global');rpcDb[_0xfce7('0xb3')](_0x5ea116,_0xfce7('0xda'));}else{if(_0x8ae68b[_0xfce7('0xd5')]>=_0x96d0e3[_0xfce7('0xdb')]){rpcDb[_0xfce7('0xb3')](_0x8ae68b,'[callProgressDetectingCustomer][logNoAnswer]');}else{rpcDb['rescheduleContact'](ut['scheduledAt'](_0x8ae68b,'countnoanswerretry',_0x96d0e3[_0xfce7('0xd6')]),_0x8ae68b[_0xfce7('0xb8')],_0x8ae68b['activeContact']);}}}else{_0x8ae68b[_0xfce7('0xd5')]++;_0x12b9e3[_0xfce7('0xbc')]({'id':_0x8ae68b[_0xfce7('0xbd')],'field':{'countnoanswerretry':_0x8ae68b['countnoanswerretry']}})['then'](function(){_0x12b9e3[_0xfce7('0xbe')](_0x8ae68b,_0x3a268e,_0x588400)['then'](function(){});});}});break;case _0xfce7('0xdc'):_0x96d0e3[_0xfce7('0x3e')]+=0x1;_0x8ae68b[_0xfce7('0xdd')]+=0x1;_0x8ae68b[_0xfce7('0xa7')]=ut[_0xfce7('0xa8')](_0x8ae68b);ut[_0xfce7('0x97')](_0x8ae68b,0x8,'Congestion');_0x3a268e=_0x96d0e3[_0xfce7('0xde')];_0x588400=_0x96d0e3[_0xfce7('0xaf')];ami[_0xfce7('0x25')](_0xfce7('0xdf'),ut[_0xfce7('0xaa')](_0x8ae68b,_0xfce7('0xe0')));rpcDb[_0xfce7('0x9c')](_0x8ae68b,_0xfce7('0xe1'));_0x12b9e3[_0xfce7('0xad')](_0x8ae68b,'8',_0x96d0e3)[_0xfce7('0xae')](function(_0x502356){_0xedaba1=_0x502356[_0xfce7('0xd2')]==0x1;if(!_0xedaba1){if(ut[_0xfce7('0xa8')](_0x8ae68b)>=_0x96d0e3[_0xfce7('0xb0')]){_0x5ea116=ut[_0xfce7('0xb1')](_0x8ae68b,0xf,'Global');rpcDb['createCustomerFinal'](_0x5ea116,_0xfce7('0xe2'));}else{if(_0x8ae68b[_0xfce7('0xdd')]>=_0x96d0e3[_0xfce7('0xe3')]){rpcDb['createCustomerFinal'](_0x8ae68b,_0xfce7('0xe1'));}else{rpcDb[_0xfce7('0xb5')](ut[_0xfce7('0xb6')](_0x8ae68b,_0xfce7('0xdd'),_0x96d0e3[_0xfce7('0xcf')]),_0x8ae68b[_0xfce7('0xb8')],_0x8ae68b[_0xfce7('0xb9')]);}}}else{_0x8ae68b['countcongestionretry']++;_0x12b9e3[_0xfce7('0xbc')]({'id':_0x8ae68b[_0xfce7('0xbd')],'field':{'countcongestionretry':_0x8ae68b['countcongestionretry']}})['then'](function(){_0x12b9e3['swapAdditionalPhones'](_0x8ae68b,_0x3a268e,_0x588400)['then'](function(){});});}});break;case _0xfce7('0xe4'):_0x96d0e3[_0xfce7('0x46')]+=0x1;_0x8ae68b[_0xfce7('0xe5')]+=0x1;_0x8ae68b[_0xfce7('0xa7')]=ut[_0xfce7('0xa8')](_0x8ae68b);ut['logCustomer'](_0x8ae68b,0x14,_0xfce7('0xe6'));_0x3a268e=_0x96d0e3['dialAgentRejectRetryFrequency'];_0x588400=_0x96d0e3[_0xfce7('0xaf')];ami[_0xfce7('0x25')](_0xfce7('0xe7'),ut[_0xfce7('0xaa')](_0x8ae68b,_0xfce7('0xe8')));rpcDb[_0xfce7('0x9c')](_0x8ae68b,_0xfce7('0xe9'));_0x12b9e3['verifyAdditionalPhones'](_0x8ae68b,'20',_0x96d0e3)[_0xfce7('0xae')](function(_0xbf7145){_0xedaba1=_0xbf7145[_0xfce7('0xd2')]==0x1;if(!_0xedaba1){if(ut[_0xfce7('0xa8')](_0x8ae68b)>=_0x96d0e3['dialGlobalMaxRetry']){_0x5ea116=ut[_0xfce7('0xb1')](_0x8ae68b,0x14,'AgentReject');rpcDb['createCustomerFinal'](_0x5ea116,_0xfce7('0xea'));}else{if(_0x8ae68b[_0xfce7('0xe5')]>=_0x96d0e3['dialAgentRejectMaxRetry']){rpcDb[_0xfce7('0xb3')](_0x8ae68b,_0xfce7('0xea'));}else{rpcDb[_0xfce7('0xb5')](ut[_0xfce7('0xb6')](_0x8ae68b,'countagentrejectretry',_0x96d0e3[_0xfce7('0xeb')]),_0x8ae68b[_0xfce7('0xb8')],_0x8ae68b[_0xfce7('0xb9')]);}}}else{_0x8ae68b[_0xfce7('0xd5')]++;_0x12b9e3[_0xfce7('0xbc')]({'id':_0x8ae68b[_0xfce7('0xbd')],'field':{'countnoanswerretry':_0x8ae68b[_0xfce7('0xd5')]}})[_0xfce7('0xae')](function(){_0x12b9e3[_0xfce7('0xbe')](_0x8ae68b,_0x3a268e,_0x588400)[_0xfce7('0xae')](function(){});});}});break;case _0xfce7('0xec'):_0x96d0e3[_0xfce7('0xed')]+=0x1;_0x8ae68b[_0xfce7('0xee')]+=0x1;_0x8ae68b[_0xfce7('0xa7')]=ut[_0xfce7('0xa8')](_0x8ae68b);ut[_0xfce7('0x97')](_0x8ae68b,0xb,'Abandoned');rpcDb[_0xfce7('0x9c')](_0x8ae68b,_0xfce7('0xef'));_0x12b9e3[_0xfce7('0xad')](_0x8ae68b,'11',_0x96d0e3)[_0xfce7('0xae')](function(_0x2e2e31){_0xedaba1=_0x2e2e31[_0xfce7('0xd2')]==0x1;if(!_0xedaba1){if(ut[_0xfce7('0xa8')](_0x8ae68b)>=_0x96d0e3['dialGlobalMaxRetry']){_0x5ea116=ut[_0xfce7('0xb1')](_0x8ae68b,0xf,_0xfce7('0xb2'));rpcDb['createCustomerFinal'](_0x5ea116,'[callProgressDetectingCustomer][logAbandoned]');}else{if(_0x8ae68b[_0xfce7('0xf0')]>=_0x96d0e3['dialAbandonedMaxRety']){rpcDb[_0xfce7('0xb3')](_0x8ae68b,_0xfce7('0xef'));}else{rpcDb[_0xfce7('0xb5')](ut[_0xfce7('0xb6')](_0x8ae68b,_0xfce7('0xee'),_0x96d0e3['dialAbandonedRetryFrequency']),_0x8ae68b[_0xfce7('0xb8')],_0x8ae68b[_0xfce7('0xb9')]);}}}else{_0x8ae68b['countnoanswerretry']++;_0x12b9e3[_0xfce7('0xbc')]({'id':_0x8ae68b['idContact'],'field':{'countnoanswerretry':_0x8ae68b[_0xfce7('0xd5')]}})[_0xfce7('0xae')](function(){_0x12b9e3[_0xfce7('0xbe')](_0x8ae68b,_0x3a268e,_0x588400)[_0xfce7('0xae')](function(){});});}});break;case'18':_0x96d0e3[_0xfce7('0xf1')]+=0x1;_0x8ae68b[_0xfce7('0xf2')]+=0x1;_0x8ae68b[_0xfce7('0xa7')]=ut[_0xfce7('0xa8')](_0x8ae68b);ut['logCustomer'](_0x8ae68b,0x12,_0x2c5f81[_0xfce7('0xf3')]||_0x2c5f81[_0xfce7('0xf4')]);ami[_0xfce7('0x25')](_0xfce7('0xf5'),ut[_0xfce7('0xaa')](_0x8ae68b,_0xfce7('0xf6')));rpcDb[_0xfce7('0x9c')](_0x8ae68b,'[callProgressDetectingCustomer][hangupInAMD]');_0x12b9e3[_0xfce7('0xad')](_0x8ae68b,'18',_0x96d0e3)[_0xfce7('0xae')](function(_0x4f54f3){_0xedaba1=_0x4f54f3[_0xfce7('0xd2')]==0x1;if(!_0xedaba1){if(ut[_0xfce7('0xa8')](_0x8ae68b)>=_0x96d0e3[_0xfce7('0xb0')]){_0x5ea116=ut[_0xfce7('0xb1')](_0x8ae68b,0x12,_0xfce7('0xb2'));rpcDb[_0xfce7('0xb3')](_0x5ea116,_0xfce7('0xf7'));}else{rpcDb[_0xfce7('0xb3')](_0x8ae68b,_0xfce7('0xf7'));}}else{_0x8ae68b[_0xfce7('0xd5')]++;_0x12b9e3[_0xfce7('0xbc')]({'id':_0x8ae68b[_0xfce7('0xbd')],'field':{'countnoanswerretry':_0x8ae68b[_0xfce7('0xd5')]}})['then'](function(){_0x12b9e3[_0xfce7('0xbe')](_0x8ae68b,_0x3a268e,_0x588400)[_0xfce7('0xae')](function(){});});}});delete this[_0xfce7('0x16')][_0x2c5f81[_0xfce7('0xba')]];break;case'19':_0x96d0e3[_0xfce7('0xf1')]+=0x1;_0x8ae68b[_0xfce7('0xa7')]=ut['totalGlobal'](_0x8ae68b);ut[_0xfce7('0x97')](_0x8ae68b,0x13,_0x2c5f81['cause-txt']||_0x2c5f81[_0xfce7('0xf4')]);ami['emit']('custom:amd',ut[_0xfce7('0xaa')](_0x8ae68b,_0xfce7('0xf6')));rpcDb[_0xfce7('0x9c')](_0x8ae68b,_0xfce7('0xf8'));_0x12b9e3[_0xfce7('0xad')](_0x8ae68b,'18',_0x96d0e3)[_0xfce7('0xae')](function(_0x4bab16){_0xedaba1=_0x4bab16[_0xfce7('0xd2')]==0x1;if(!_0xedaba1){if(ut[_0xfce7('0xa8')](_0x8ae68b)>=_0x96d0e3[_0xfce7('0xb0')]){_0x5ea116=ut[_0xfce7('0xb1')](_0x8ae68b,0xf,_0xfce7('0xb2'));rpcDb[_0xfce7('0xb3')](_0x5ea116,_0xfce7('0xf8'));}else{rpcDb[_0xfce7('0xb3')](_0x8ae68b,'[callProgressDetectingCustomer][machine]');}}else{_0x8ae68b[_0xfce7('0xd5')]++;_0x12b9e3[_0xfce7('0xbc')]({'id':_0x8ae68b[_0xfce7('0xbd')],'field':{'countnoanswerretry':_0x8ae68b[_0xfce7('0xd5')]}})['then'](function(){_0x12b9e3[_0xfce7('0xbe')](_0x8ae68b,_0x3a268e,_0x588400)['then'](function(){});});}});delete this['actions'][_0x2c5f81[_0xfce7('0xba')]];break;default:if(_0x8ae68b[_0xfce7('0x7c')]){ut[_0xfce7('0x88')](_0x96d0e3,'[default]');ut[_0xfce7('0x89')]('[Dialer][decrementTalkink][no\x20Hangup][Preview]'+_0x96d0e3[_0xfce7('0x28')],_0x2c5f81);}_0x96d0e3[_0xfce7('0xf1')]+=0x1;_0x8ae68b[_0xfce7('0xa7')]=ut[_0xfce7('0xa8')](_0x8ae68b);ut[_0xfce7('0x97')](_0x8ae68b,0xc,_0x2c5f81[_0xfce7('0xf3')]||_0x2c5f81[_0xfce7('0xf4')]);_0x3a268e=_0x96d0e3[_0xfce7('0xeb')];_0x588400=_0x96d0e3[_0xfce7('0xaf')];rpcDb[_0xfce7('0x9c')](_0x8ae68b,_0xfce7('0xf9'));_0x12b9e3[_0xfce7('0xad')](_0x8ae68b,'20',_0x96d0e3)['then'](function(_0x4e6ef8){_0xedaba1=_0x4e6ef8['additional']==0x1;if(!_0xedaba1){if(ut[_0xfce7('0xa8')](_0x8ae68b)>=_0x96d0e3['dialGlobalMaxRetry']){_0x5ea116=ut[_0xfce7('0xb1')](_0x8ae68b,0xf,_0xfce7('0xb2'));rpcDb[_0xfce7('0xb3')](_0x5ea116,_0xfce7('0xfa'));}else{rpcDb[_0xfce7('0xb3')](_0x8ae68b,_0xfce7('0xfa'));}delete this[_0xfce7('0x16')][_0x2c5f81['linkedid']];}else{_0x12b9e3[_0xfce7('0xbe')](_0x8ae68b,_0x3a268e,_0x588400)[_0xfce7('0xae')](function(){});}});}if(!(_0x8ae68b[_0xfce7('0x7c')]&&_0x54a150==='16')){ut[_0xfce7('0xfb')](_0x96d0e3,_0xfce7('0xfc'));logger['info'](_0xfce7('0xfd'),_0x8ae68b[_0xfce7('0xc3')],_0xfce7('0xc4'),_0x96d0e3[_0xfce7('0x28')],_0xfce7('0x79'),_0x96d0e3[_0xfce7('0x53')]);}if(_0x54a150!==_0xfce7('0xbf')){delete this[_0xfce7('0x16')][_0x2c5f81[_0xfce7('0xba')]];delete this[_0xfce7('0x16')][_0x2c5f81[_0xfce7('0xfe')]];}}};Preview[_0xfce7('0xe')][_0xfce7('0xff')]=function(_0x553be8,_0x1e1ef6,_0x150c1f){if(_[_0xfce7('0x100')](_0x1e1ef6)&&_0xfce7('0x101')!==typeof _0x1e1ef6){return;}if(_[_0xfce7('0x100')](_0x150c1f)&&_0xfce7('0x101')!==typeof _0x150c1f){return;}switch(_0x150c1f['reason']){case'0':ut[_0xfce7('0x102')](_0x553be8,0x0,_0xfce7('0x103'));rpcDb['createAgentHistory'](_0x553be8,'[callProgressDetectingAgent][logNoSuch]');break;case'3':ut[_0xfce7('0x102')](_0x553be8,0x3,'NoAnswer');rpcDb['createAgentHistory'](_0x553be8,_0xfce7('0x104'));break;case'5':ut[_0xfce7('0x102')](_0x553be8,0x5,_0xfce7('0x105'));rpcDb[_0xfce7('0x106')](_0x553be8,_0xfce7('0x107'));break;case'8':ut[_0xfce7('0x102')](_0x553be8,0x8,_0xfce7('0x108'));rpcDb[_0xfce7('0x106')](_0x553be8,_0xfce7('0x109'));break;case'22':ut[_0xfce7('0x102')](_0x553be8,0x16,_0xfce7('0x10a'));rpcDb['createAgentHistory'](_0x553be8,'[callProgressDetectingAgent][logAnswerAGI]');break;default:ut[_0xfce7('0x102')](_0x553be8,0xc,_0x150c1f[_0xfce7('0x10b')]);rpcDb[_0xfce7('0x106')](_0x553be8,_0xfce7('0x109'));}ut[_0xfce7('0xfb')](_0x1e1ef6,_0xfce7('0x10c'));logger['info'](_0xfce7('0x10d'),_0x553be8['uniqueid'],_0xfce7('0xc4'),_0x1e1ef6[_0xfce7('0x28')],_0xfce7('0x79'),_0x1e1ef6[_0xfce7('0x53')]);delete this[_0xfce7('0x16')][_0x553be8['uniqueid']];};Preview[_0xfce7('0xe')]['verifyAdditionalPhones']=function(_0x17a603,_0x4ebc5a,_0x11a2c0){return Promise[_0xfce7('0x10e')]()[_0xfce7('0xae')](cmHopperAdditionalPhone[_0xfce7('0xad')](_0x17a603,_0x4ebc5a,_0x11a2c0))[_0xfce7('0x85')](logger['info'](_0xfce7('0x10f')));};Preview[_0xfce7('0xe')]['swapAdditionalPhones']=function(_0x29b73f,_0x3ee6ee,_0x4da26b){return Promise[_0xfce7('0x10e')]()[_0xfce7('0xae')](cmHopperAdditionalPhone[_0xfce7('0xbe')](_0x29b73f,_0x3ee6ee,_0x4da26b))[_0xfce7('0x85')](logger['info'](_0xfce7('0x110')));};Preview[_0xfce7('0xe')][_0xfce7('0xbc')]=function(_0x91e394){return Promise[_0xfce7('0x10e')]()['then'](cmHopperAdditionalPhone[_0xfce7('0xbc')](_0x91e394))[_0xfce7('0x85')](logger[_0xfce7('0x5f')](_0xfce7('0x111')));};Preview[_0xfce7('0xe')][_0xfce7('0x112')]=function(_0x4df76a,_0x3ff409,_0x113ed9,_0xc5a4aa,_0x1b41c3){var _0x149af4=this;return new Promise(function(_0x4f7919,_0xa3354d){if(_[_0xfce7('0x76')](_0x3ff409)||_[_0xfce7('0x76')](_0x3ff409[_0xfce7('0x113')])||_[_0xfce7('0x76')](_0x3ff409['phone'])||_[_0xfce7('0x76')](_0x3ff409[_0xfce7('0x80')])){_0xa3354d(ut[_0xfce7('0x52')](_0xfce7('0x114'),_0xc5a4aa,_0x1b41c3));return;}var _0x139850=uuid['v4']();var _0x55b064=_0x149af4['campaignsPreview'][_0x3ff409[_0xfce7('0x78')]['name']];var _0x1117a2=_0x113ed9?_0x149af4['agents'][_0x113ed9]['id']:undefined;_0x149af4[_0xfce7('0x16')][_0x139850]=new Action(_0x3ff409,_0x55b064,_0x139850,_0x113ed9,_0x1117a2);var _0x212574=_0x149af4[_0xfce7('0x16')][_0x139850];_0x212574[_0xfce7('0xb8')]=_0xc5a4aa;_0x212574[_0xfce7('0xb9')]=_0x1b41c3;_0x212574[_0xfce7('0x115')]=_0x113ed9;if(_['isEmpty'](_0x4df76a)){_0x149af4[_0xfce7('0x116')](_0x212574,_0x55b064,_0x3ff409,_0x113ed9)[_0xfce7('0xae')](function(_0x161ef4){logger[_0xfce7('0x5f')]('[Preview][execCall][success]',_0xfce7('0x117')+_0x212574[_0xfce7('0x7a')]+'\x20IdHopper:\x20'+_0x212574[_0xfce7('0xbd')],JSON[_0xfce7('0x5c')](_0x161ef4));ami[_0xfce7('0x25')](_0xfce7('0x118'),ut[_0xfce7('0xaa')](_0x212574,'called',_0x149af4[_0xfce7('0x13')][_0x212574[_0xfce7('0x7a')]]));_0x4f7919(ut['message']('Calling'));})[_0xfce7('0x85')](function(_0x19ee17){ut[_0xfce7('0x68')]('[Preview][execCall][failure]',_0x19ee17);_0xa3354d(ut[_0xfce7('0x52')](_0xfce7('0x119'),_0xc5a4aa,_0x1b41c3));});}else{_0x55b064[_0xfce7('0x3d')]+=0x1;ut[_0xfce7('0x11a')](_0x212574);rpcDb[_0xfce7('0x11b')](_0x212574,_0xfce7('0x11c'));delete _0x149af4[_0xfce7('0x16')][_0x139850];_0xa3354d(ut[_0xfce7('0x52')](_0xfce7('0x11d'),_0xc5a4aa,_0x1b41c3));}});};Preview['prototype']['isTrunkReachable']=function(_0x47dc86){return!_[_0xfce7('0x76')](_0x47dc86)&&!_[_0xfce7('0x76')](_0x47dc86[_0xfce7('0x28')])&&!_[_0xfce7('0x76')](_0x47dc86['active'])&&_0x47dc86['active']&&!_[_0xfce7('0x76')](this['trunks'][util[_0xfce7('0x61')](_0xfce7('0x11e'),_0x47dc86[_0xfce7('0x28')])])&&!_['isNil'](this[_0xfce7('0x15')][util[_0xfce7('0x61')](_0xfce7('0x11e'),_0x47dc86['name'])][_0xfce7('0x83')])&&(this[_0xfce7('0x15')][util[_0xfce7('0x61')](_0xfce7('0x11e'),_0x47dc86['name'])]['status']===_0xfce7('0x11f')||this[_0xfce7('0x15')][util[_0xfce7('0x61')]('SIP/%s',_0x47dc86[_0xfce7('0x28')])][_0xfce7('0x83')]==='unmonitored');};Preview['prototype']['run']=function(_0xcd06e6,_0x481a3a){var _0xed7cfb=this;return new Promise(function(_0x4f6415,_0x23f95a){_0xed7cfb[_0xfce7('0x120')](_0xcd06e6,_0x481a3a)[_0xfce7('0xae')](function(_0x3742cc){_0x4f6415(_[_0xfce7('0x7d')](_0x3742cc,[_0xfce7('0x52')]));})[_0xfce7('0x85')](function(_0x6f87f9){if(_0x6f87f9[_0xfce7('0x121')]){rpcDb[_0xfce7('0x122')](_0xcd06e6);}if(_0x6f87f9[_0xfce7('0x123')]){rpcDb['disableContact'](_0xcd06e6);}_0x23f95a(_['pick'](_0x6f87f9,[_0xfce7('0x52')]));});});};Preview[_0xfce7('0xe')]['execRun']=function(_0x1d93ea,_0x16f931){var _0x55d735=this;return new Promise(function(_0x564f01,_0x15230b){var _0x5ec4ec,_0x33b96b;rpcDb[_0xfce7('0x124')](_0x1d93ea)['then'](function(_0x153a5b){if(!_[_0xfce7('0x76')](_0x153a5b[0x0])){_0x33b96b=_0x153a5b[0x0]['recallme']?![]:!![];_0x5ec4ec=_0x153a5b[0x0][_0xfce7('0x125')]?!![]:![];_0x5ec4ec=_0x16f931?!![]:_0x5ec4ec;}var _0x20512b=_0x55d735[_0xfce7('0x126')](_0x153a5b);if(_0x20512b[_0xfce7('0x127')]){rpcDb[_0xfce7('0x128')](_[_0xfce7('0x7d')](_0x153a5b[0x0],[_0xfce7('0x80'),'phone']))['then'](function(_0x528255){_0x55d735[_0xfce7('0x112')](_0x528255,_0x153a5b[0x0],_0x16f931,_0x33b96b,_0x5ec4ec)[_0xfce7('0xae')](function(_0x431479){_0x564f01(_0x431479);})[_0xfce7('0x85')](function(_0x4b87ce){_0x15230b(_0x4b87ce);});})[_0xfce7('0x85')](function(_0x3d355a){ut[_0xfce7('0x68')](_0xfce7('0x129'),_0x3d355a);_0x15230b(ut[_0xfce7('0x52')]('Call\x20unsuccessful',_0x33b96b,_0x5ec4ec));});}else{_0x15230b(ut[_0xfce7('0x52')](_0x20512b['message'],_0x33b96b,_0x5ec4ec));}})[_0xfce7('0x85')](function(_0x21b742){ut[_0xfce7('0x68')](_0xfce7('0x12a'),_0x21b742);_0x15230b(ut[_0xfce7('0x52')](_0xfce7('0x12b'),![],!![]));});});};Preview[_0xfce7('0xe')]['validateContact']=function(_0x4104ec){if(_[_0xfce7('0x76')](_0x4104ec)||_[_0xfce7('0x12c')](_0x4104ec)||!_[_0xfce7('0x76')](_0x4104ec[0x0][_0xfce7('0x91')])&&_['isNil'](_0x4104ec[0x0][_0xfce7('0x91')][_0xfce7('0x28')])){ut['logger'](_0xfce7('0x12d'),_0x4104ec);return{'isValid':![],'message':_0xfce7('0x12e')};}var _0x2f8128=this[_0xfce7('0x13')][_0x4104ec[0x0][_0xfce7('0x78')]['name']];_0x2f8128[_0xfce7('0x52')]=_0xfce7('0xa5');if(_[_0xfce7('0x76')](_0x2f8128)){ut[_0xfce7('0x68')]('[Preview][validateContact][Empty\x20Campaign]',_0x2f8128);return{'isValid':![],'message':_0xfce7('0x12f')};}if(!this[_0xfce7('0xa3')](_0x2f8128[_0xfce7('0x59')])){ut[_0xfce7('0x68')]('[Preview][validateContact][Trunk\x20not\x20working\x20correctly]','campaign\x20Name:\x20'+_0x2f8128['name']+_0xfce7('0x130'));if(!this[_0xfce7('0xa3')](_0x2f8128['TrunkBackup'])){ut[_0xfce7('0x68')](_0xfce7('0x131'),_0x2f8128[_0xfce7('0x28')]+_0xfce7('0x132'));return{'isValid':![],'message':_0xfce7('0x133')};}}if(!ut[_0xfce7('0xa2')](_0x2f8128[_0xfce7('0x35')])){ut['logger']('[Preview][validateContact][Campaign\x20Active]',_0x2f8128[_0xfce7('0x28')]+_0xfce7('0x134'));return{'isValid':![],'message':_0xfce7('0x135')+_0x2f8128['name']+'\x20Not\x20Active'};}return{'isValid':!![],'message':_0xfce7('0x136')};};Preview['prototype'][_0xfce7('0x116')]=function(_0x33c755,_0x3f83d,_0x346669,_0x5e8b55){var _0x42fdbf=this;return new Promise(function(_0x5bbfed,_0x5e14d9){var _0x1ca58c=_0x33c755[_0xfce7('0xc3')];var _0x4b43fd=_0x42fdbf[_0xfce7('0xa3')](_0x3f83d['Trunk'])?util[_0xfce7('0x61')](_0xfce7('0x137'),_0x3f83d[_0xfce7('0x59')][_0xfce7('0x28')],_[_0xfce7('0x76')](_0x3f83d[_0xfce7('0x3a')])?'':_0x3f83d['dialPrefix'][_0xfce7('0x138')]()||'',_0x3f83d[_0xfce7('0x139')]>0x0?_0x346669[_0xfce7('0x13a')][_0xfce7('0x13b')](_0x3f83d[_0xfce7('0x139')]):_0x346669[_0xfce7('0x13a')]):util[_0xfce7('0x61')](_0xfce7('0x137'),_['isNil'](_0x3f83d[_0xfce7('0xa4')])?_0x3f83d[_0xfce7('0x59')]['name']:_0x3f83d[_0xfce7('0xa4')][_0xfce7('0x28')],_[_0xfce7('0x76')](_0x3f83d[_0xfce7('0x3a')])?'':_0x3f83d['dialPrefix']['trim']()||'',_0x3f83d[_0xfce7('0x139')]>0x0?_0x346669[_0xfce7('0x13a')][_0xfce7('0x13b')](_0x3f83d[_0xfce7('0x139')]):_0x346669['phone']);var _0x2f1719=_0x42fdbf['isTrunkReachable'](_0x3f83d[_0xfce7('0x59')])?ut[_0xfce7('0x13c')](_0x3f83d[_0xfce7('0x59')][_0xfce7('0x5a')],_0x3f83d[_0xfce7('0x37')],_0x3f83d['dialRandomLastDigitCallerIdNumber']>0x0?ut[_0xfce7('0x13d')](_0x3f83d[_0xfce7('0x38')],_0x3f83d[_0xfce7('0x13e')]):_0x3f83d['dialOriginateCallerIdNumber']):ut[_0xfce7('0x13c')](_[_0xfce7('0x76')](_0x3f83d[_0xfce7('0xa4')])?_0x3f83d[_0xfce7('0x59')][_0xfce7('0x5a')]:_0x3f83d[_0xfce7('0xa4')][_0xfce7('0x5a')],_0x3f83d[_0xfce7('0x37')],_0x3f83d[_0xfce7('0x13e')]>0x0?ut[_0xfce7('0x13d')](_0x3f83d['dialOriginateCallerIdNumber'],_0x3f83d[_0xfce7('0x13e')]):_0x3f83d[_0xfce7('0x38')]);if(_0x2f1719){_0x33c755[_0xfce7('0x13f')]=ut[_0xfce7('0x140')](_0x2f1719);_0x33c755[_0xfce7('0x141')]=ut['extractCalleridNumber'](_0x2f1719);}var _0x3bed16=ut[_0xfce7('0x142')](_0x3f83d,_0x346669,_0x4b43fd,_0x2f1719,_0x1ca58c,_0x33c755);_[_0xfce7('0x143')](_0x33c755,ut[_0xfce7('0x144')](_0x3bed16));_0x33c755[_0xfce7('0x95')]=moment()[_0xfce7('0x61')]('YYYY-MM-DD\x20HH:mm:ss');_0x3f83d['variables']=_0x3bed16;ami[_0xfce7('0x82')](ut['variablesAction'](_0x33c755,_0x3f83d,_0x3bed16,_0x33c755['activeContact'],_0x5e8b55))[_0xfce7('0xae')](function(_0x1cd8db){_0x3f83d[_0xfce7('0x53')]+=0x1;logger[_0xfce7('0x5f')](_0xfce7('0x145'),_0x1ca58c,_0xfce7('0xc4'),_0x3f83d[_0xfce7('0x28')],_0xfce7('0x79'),_0x3f83d['originated']);_0x5bbfed(_0x1cd8db);})['catch'](function(_0x4b391c){ut[_0xfce7('0x102')](_0x33c755,0xe,'OriginateError');rpcDb[_0xfce7('0x106')](_0x33c755,'[originateFailure][logOriginateFailure]');_0x5e14d9(_0x4b391c);});});};Preview[_0xfce7('0xe')][_0xfce7('0x1e')]=function(_0x1151c6){if(this[_0xfce7('0x16')][_0x1151c6[_0xfce7('0xba')]]){this[_0xfce7('0x16')][_0x1151c6[_0xfce7('0xba')]][_0xfce7('0x84')]=_0x1151c6[_0xfce7('0x84')];}};Preview[_0xfce7('0xe')][_0xfce7('0x146')]=function(_0x5e6608){var _0x450160=this;var _0x4285d7=this[_0xfce7('0x16')][_0x5e6608['actionid']];if(_0x4285d7){if(_0x4285d7[_0xfce7('0x115')]&&this[_0xfce7('0x17')][_0x4285d7[_0xfce7('0x115')]]){ut[_0xfce7('0x147')](_0x4285d7,this[_0xfce7('0x17')][_0x4285d7[_0xfce7('0x115')]][_0xfce7('0x28')],this[_0xfce7('0x17')][_0x4285d7[_0xfce7('0x115')]]['id']);}var _0x64cd30=_[_0xfce7('0x148')](_0x4285d7);_0x64cd30['responsetime']=moment()[_0xfce7('0x61')](_0xfce7('0x96'));var _0x4464b3=_0x450160[_0xfce7('0x13')][_0x4285d7[_0xfce7('0x7a')]];if(ut['isFailure'](_0x5e6608[_0xfce7('0x149')])){if(_0x4285d7['unlockAgent']){rpcDb[_0xfce7('0x122')](_0x4285d7[_0xfce7('0xbd')]);}if(_0x4285d7[_0xfce7('0xb9')]){rpcDb[_0xfce7('0x94')](_0x4285d7[_0xfce7('0xbd')]);}ami[_0xfce7('0x25')](_0xfce7('0x14a'),ut[_0xfce7('0xaa')](_0x4285d7,_0xfce7('0x14b'),this[_0xfce7('0x13')][_0x4285d7[_0xfce7('0x7a')]]));this['callProgressDetectingAgent'](_0x64cd30,_0x4464b3,_0x5e6608);}else{_0x4285d7[_0xfce7('0x95')]=moment()[_0xfce7('0x61')](_0xfce7('0x96'));ut[_0xfce7('0x102')](_0x64cd30,0x4,_0xfce7('0x14c'));rpcDb[_0xfce7('0x106')](_0x64cd30,_0xfce7('0x14d'));}}};Preview[_0xfce7('0xe')][_0xfce7('0x19')]=function(_0x399e3d){var _0x101bef=this[_0xfce7('0x16')][_0x399e3d[_0xfce7('0xba')]];var _0x3104cd;if(_0x101bef){_0x3104cd=this['campaignsPreview'][_0x101bef['queue']];logger[_0xfce7('0x5f')]('[syncHangup][talking]',_0x399e3d['linkedid'],'\x20Queue',_0x3104cd[_0xfce7('0x28')],'pTalking:\x20',_0x3104cd[_0xfce7('0x2c')]);}if(this[_0xfce7('0x16')][_0x399e3d[_0xfce7('0xba')]]&&_0x399e3d[_0xfce7('0xba')]!==_0x399e3d[_0xfce7('0xc3')]){if(_0x399e3d['cause']==='16'&&this['actions'][_0x399e3d[_0xfce7('0xba')]][_0xfce7('0x7c')]){this[_0xfce7('0x14e')](_0x399e3d,_0x399e3d['linkedid'],_0x399e3d[_0xfce7('0x14f')]);}else if(this[_0xfce7('0x16')][_0x399e3d[_0xfce7('0xba')]]['dialAnswer']){logger[_0xfce7('0x5f')]('[syncHangup][talking][cause]',_0x399e3d[_0xfce7('0xba')],_0x399e3d[_0xfce7('0x14f')],_0xfce7('0xc4'),_0x3104cd['name'],'pTalking:\x20',_0x3104cd[_0xfce7('0x2c')]);this['callProgressDetectingCustomer'](_0x399e3d,_0x399e3d['linkedid'],_0x399e3d['cause']);}}else if(_0x101bef&&_[_0xfce7('0x76')](_0x101bef['statedesc'])&&_0x3104cd[_0xfce7('0x150')]&&_0x399e3d[_0xfce7('0xba')]===_0x399e3d[_0xfce7('0xc3')]&&_[_0xfce7('0x76')](_0x399e3d[_0xfce7('0x10b')])&&_0x399e3d[_0xfce7('0x14f')]==='16'&&_0x399e3d[_0xfce7('0x151')]==='6'&&_[_0xfce7('0x100')](_0x101bef[_0xfce7('0x152')])){if(_0x101bef[_0xfce7('0xb8')]){rpcDb[_0xfce7('0x122')](_0x101bef['idContact']);}if(_0x101bef[_0xfce7('0xb9')]){rpcDb[_0xfce7('0x94')](_0x101bef[_0xfce7('0xbd')]);}_0x399e3d[_0xfce7('0x10b')]='22';this[_0xfce7('0xff')](_0x101bef,_0x3104cd,_0x399e3d);}else if(_0x101bef&&_0x101bef[_0xfce7('0x152')]){if(_0x399e3d['cause']==='16'&&this[_0xfce7('0x16')][_0x399e3d[_0xfce7('0xba')]][_0xfce7('0x7c')]){logger['info'](_0xfce7('0x153'),_0x399e3d[_0xfce7('0xba')],_0x399e3d[_0xfce7('0x14f')],_0xfce7('0xc4'),_0x3104cd['name'],_0xfce7('0x7b'),_0x3104cd['pTalking']);this[_0xfce7('0x14e')](_0x399e3d,_0x399e3d[_0xfce7('0xba')],_0x399e3d[_0xfce7('0x14f')]);}else if(this[_0xfce7('0x16')][_0x399e3d[_0xfce7('0xba')]]['dialAnswer']){logger['info'](_0xfce7('0x154'),_0x399e3d[_0xfce7('0xba')],_0x399e3d['cause'],_0xfce7('0xc4'),_0x3104cd[_0xfce7('0x28')],_0xfce7('0x7b'),_0x3104cd[_0xfce7('0x2c')]);this[_0xfce7('0x14e')](_0x399e3d,_0x399e3d['linkedid'],_0x399e3d['cause']);}}};Preview['prototype'][_0xfce7('0x155')]=function(_0x24120f){if(this['actions'][_0x24120f['destlinkedid']]&&_0x24120f[_0xfce7('0xfe')]!==_0x24120f[_0xfce7('0x156')]){this[_0xfce7('0x14e')](_0x24120f,_0x24120f['destlinkedid'],_0x24120f[_0xfce7('0xf4')]);}};Preview[_0xfce7('0xe')]['syncHangupRequest']=function(_0xd778b8){if(this[_0xfce7('0x16')][_0xd778b8['linkedid']]&&_0xd778b8[_0xfce7('0xba')]!==_0xd778b8[_0xfce7('0xc3')]&&!this['actions'][_0xd778b8['linkedid']][_0xfce7('0x7c')]){if(_0xd778b8[_0xfce7('0x14f')]==='1'){this[_0xfce7('0x14e')](_0xd778b8,_0xd778b8['linkedid'],_0xd778b8[_0xfce7('0x14f')]);}}};Preview[_0xfce7('0xe')]['addVariable']=function(_0xcfedab,_0x9cb9fb,_0x937729){if(this[_0xfce7('0x16')][_0xcfedab]){if(_[_0xfce7('0x76')](this[_0xfce7('0x16')][_0xcfedab][_0xfce7('0x157')])){this[_0xfce7('0x16')][_0xcfedab]['variables']={};}this[_0xfce7('0x16')][_0xcfedab][_0xfce7('0x157')][_0x9cb9fb]=_0x937729;}};Preview[_0xfce7('0xe')][_0xfce7('0x20')]=function(_0x49e70c){try{if(!_[_0xfce7('0x76')](_0x49e70c)){if(ut[_0xfce7('0x158')](_[_0xfce7('0x159')](_0x49e70c[_0xfce7('0x15a')])[0x0])){this['addVariable'](_0x49e70c[_0xfce7('0xc3')],_['keys'](_0x49e70c[_0xfce7('0x15a')])[0x0],_0x49e70c['value']);}}}catch(_0x49d651){logger[_0xfce7('0x15b')](_0xfce7('0x15c'),util[_0xfce7('0x15d')](_0x49d651,{'showHidden':![],'depth':null}));}};Preview[_0xfce7('0xe')]['syncAttendedTransfer']=function(_0xf5b731){if(_0xf5b731){if(this['actions'][_0xf5b731[_0xfce7('0x15e')]]){this[_0xfce7('0x16')][_0xf5b731['transfertargetlinkedid']]['transfer']=!![];}}};Preview['prototype'][_0xfce7('0x24')]=function(_0xadd21f){if(_0xadd21f){if(this[_0xfce7('0x16')][_0xadd21f[_0xfce7('0x15f')]]){this[_0xfce7('0x16')][_0xadd21f[_0xfce7('0x15f')]][_0xfce7('0x152')]=!![];}}};module['exports']=Preview;