Built motion from commit f651e4b0a7312c0adceb5e57d6684a801a3aaf0d. Version 3.0.0...
[motion-next.git] / server / services / ami / dialer / agentComplete.js
1 const a1053_0x4d4c=['format','responsetime','countnoanswerretry','YYYY-MM-DD\x20HH:mm:ss','countbusyretry','calleridnum','VoiceQueueId','countmachineretry','answertime','queue','membername','ContactId','callbackat','diff','endtime','calleridname','callbackuniqueid','outbound','Answer','UserId','statedesc','countagentrejectretry','countdropretry','originatecalleridname','ListId','starttime','milliseconds','countcongestionretry','countnosuchnumberretry','originatecalleridnum','ringtime','CampaignId','uniqueid','countglobal','callback','scheduledat','talktime','type','holdtime','moment','recallme','countabandonedretry'];(function(_0x4af57d,_0x4d4cf4){const _0x52c945=function(_0x42d213){while(--_0x42d213){_0x4af57d['push'](_0x4af57d['shift']());}};_0x52c945(++_0x4d4cf4);}(a1053_0x4d4c,0x12d));const a1053_0x52c9=function(_0x4af57d,_0x4d4cf4){_0x4af57d=_0x4af57d-0x0;let _0x52c945=a1053_0x4d4c[_0x4af57d];return _0x52c945;};const _0x1d9fee=a1053_0x52c9;'use strict';const moment=require(_0x1d9fee('0x20'));function getSeconds(_0x42d213,_0x35b371){const _0x157a14=_0x1d9fee,_0x3eda19=moment(_0x42d213)[_0x157a14('0x13')](0x0),_0x11ec75=moment(_0x35b371)[_0x157a14('0x13')](0x0);return _0x3eda19[_0x157a14('0x6')](_0x11ec75,'seconds');}function AgentComplete(_0x4d4853,_0x310fec){const _0x1a6a0b=_0x1d9fee;this['state']=0x4,this[_0x1a6a0b('0xd')]=_0x1a6a0b('0xb'),this[_0x1a6a0b('0x1c')]=_0x4d4853[_0x1a6a0b('0x1c')],this['type']=_0x4d4853[_0x1a6a0b('0x1e')],this['campaigntype']=_0x4d4853[_0x1a6a0b('0x1e')]===_0x1a6a0b('0xa')?_0x1a6a0b('0x2'):_0x4d4853['type'],this['countbusyretry']=_0x4d4853[_0x1a6a0b('0x27')],this[_0x1a6a0b('0x14')]=_0x4d4853[_0x1a6a0b('0x14')],this[_0x1a6a0b('0x25')]=_0x4d4853[_0x1a6a0b('0x25')],this[_0x1a6a0b('0x1a')]=_0x4d4853['countbusyretry']+_0x4d4853[_0x1a6a0b('0x14')]+_0x4d4853[_0x1a6a0b('0x25')]+_0x4d4853[_0x1a6a0b('0x15')]+_0x4d4853[_0x1a6a0b('0xf')]+_0x4d4853[_0x1a6a0b('0x22')]+_0x4d4853[_0x1a6a0b('0x0')]+_0x4d4853['countagentrejectretry'],this[_0x1a6a0b('0x15')]=_0x4d4853[_0x1a6a0b('0x15')],this[_0x1a6a0b('0xf')]=_0x4d4853[_0x1a6a0b('0xf')],this[_0x1a6a0b('0x22')]=_0x4d4853['countabandonedretry'],this['countmachineretry']=_0x4d4853[_0x1a6a0b('0x0')],this[_0x1a6a0b('0xe')]=_0x4d4853[_0x1a6a0b('0xe')],this[_0x1a6a0b('0x19')]=_0x310fec[_0x1a6a0b('0x19')],this[_0x1a6a0b('0x8')]=_0x4d4853['name'],this[_0x1a6a0b('0x28')]=_0x4d4853['number'],this['starttime']=_0x4d4853['starttime'],this[_0x1a6a0b('0x24')]=_0x4d4853['responsetime'],this['answertime']=_0x4d4853[_0x1a6a0b('0x1')],this[_0x1a6a0b('0x7')]=moment()[_0x1a6a0b('0x23')](_0x1a6a0b('0x26')),this[_0x1a6a0b('0x17')]=getSeconds(_0x4d4853[_0x1a6a0b('0x24')],_0x4d4853[_0x1a6a0b('0x12')]),this[_0x1a6a0b('0x1f')]=getSeconds(_0x4d4853['answertime'],_0x4d4853[_0x1a6a0b('0x24')]),this[_0x1a6a0b('0x1d')]=getSeconds(this[_0x1a6a0b('0x7')],_0x4d4853[_0x1a6a0b('0x1')]),this[_0x1a6a0b('0x2')]=_0x310fec['queue'],this[_0x1a6a0b('0x3')]=_0x310fec[_0x1a6a0b('0x3')],this['reason']=_0x310fec['reason'],this[_0x1a6a0b('0x1b')]=_0x4d4853[_0x1a6a0b('0x1b')],this[_0x1a6a0b('0x9')]=_0x4d4853[_0x1a6a0b('0x9')],this['callbackat']=_0x4d4853[_0x1a6a0b('0x5')],this['recallme']=_0x4d4853[_0x1a6a0b('0x21')],this[_0x1a6a0b('0x4')]=_0x4d4853[_0x1a6a0b('0x4')],this['ListId']=_0x4d4853[_0x1a6a0b('0x11')],this[_0x1a6a0b('0xc')]=_0x4d4853[_0x1a6a0b('0xc')],this[_0x1a6a0b('0x29')]=_0x4d4853['VoiceQueueId'],this[_0x1a6a0b('0x18')]=_0x4d4853[_0x1a6a0b('0x18')],this['originatecalleridnum']=_0x4d4853[_0x1a6a0b('0x16')]||'',this[_0x1a6a0b('0x10')]=_0x4d4853[_0x1a6a0b('0x10')]||'';}module['exports']=AgentComplete;