Built motion from commit 5fcd269f5146f10cf3129722d518881dfac64576. Version 3.0.0...
[motion-next.git] / server / services / ami / dialer / agentComplete.js
index 8bd7509..3961b7b 100644 (file)
@@ -1 +1 @@
-const a1053_0x27ca=['answertime','membername','starttime','uniqueid','diff','callback','callbackuniqueid','recallme','number','originatecalleridnum','queue','seconds','holdtime','ContactId','endtime','type','name','countglobal','countnoanswerretry','state','countcongestionretry','responsetime','moment','callbackat','campaigntype','countmachineretry','countdropretry','originatecalleridname','countnosuchnumberretry','scheduledat','countagentrejectretry','countbusyretry','exports','countabandonedretry','UserId','statedesc','ringtime','VoiceQueueId','reason','format','milliseconds'];(function(_0x4bd89b,_0x27cafb){const _0x18b1fd=function(_0x4a822a){while(--_0x4a822a){_0x4bd89b['push'](_0x4bd89b['shift']());}};_0x18b1fd(++_0x27cafb);}(a1053_0x27ca,0x194));const a1053_0x18b1=function(_0x4bd89b,_0x27cafb){_0x4bd89b=_0x4bd89b-0x0;let _0x18b1fd=a1053_0x27ca[_0x4bd89b];return _0x18b1fd;};const _0x2854fa=a1053_0x18b1;'use strict';const moment=require(_0x2854fa('0x1c'));function getSeconds(_0x4a822a,_0x99d658){const _0x12facd=_0x2854fa,_0x30a1c1=moment(_0x4a822a)[_0x12facd('0x5')](0x0),_0x1a375f=moment(_0x99d658)[_0x12facd('0x5')](0x0);return _0x30a1c1[_0x12facd('0xa')](_0x1a375f,_0x12facd('0x11'));}function AgentComplete(_0x30d91e,_0x3c011c){const _0x27c8bc=_0x2854fa;this[_0x27c8bc('0x19')]=0x4,this[_0x27c8bc('0x0')]='Answer',this[_0x27c8bc('0x23')]=_0x30d91e[_0x27c8bc('0x23')],this[_0x27c8bc('0x15')]=_0x30d91e[_0x27c8bc('0x15')],this[_0x27c8bc('0x1e')]=_0x30d91e['type']==='outbound'?_0x27c8bc('0x10'):_0x30d91e[_0x27c8bc('0x15')],this[_0x27c8bc('0x25')]=_0x30d91e[_0x27c8bc('0x25')],this['countcongestionretry']=_0x30d91e[_0x27c8bc('0x1a')],this[_0x27c8bc('0x18')]=_0x30d91e['countnoanswerretry'],this[_0x27c8bc('0x17')]=_0x30d91e[_0x27c8bc('0x25')]+_0x30d91e[_0x27c8bc('0x1a')]+_0x30d91e[_0x27c8bc('0x18')]+_0x30d91e[_0x27c8bc('0x22')]+_0x30d91e['countdropretry']+_0x30d91e[_0x27c8bc('0x27')]+_0x30d91e['countmachineretry']+_0x30d91e[_0x27c8bc('0x24')],this[_0x27c8bc('0x22')]=_0x30d91e[_0x27c8bc('0x22')],this[_0x27c8bc('0x20')]=_0x30d91e['countdropretry'],this['countabandonedretry']=_0x30d91e[_0x27c8bc('0x27')],this[_0x27c8bc('0x1f')]=_0x30d91e['countmachineretry'],this[_0x27c8bc('0x24')]=_0x30d91e[_0x27c8bc('0x24')],this[_0x27c8bc('0x9')]=_0x3c011c['uniqueid'],this['calleridname']=_0x30d91e[_0x27c8bc('0x16')],this['calleridnum']=_0x30d91e[_0x27c8bc('0xe')],this[_0x27c8bc('0x8')]=_0x30d91e[_0x27c8bc('0x8')],this[_0x27c8bc('0x1b')]=_0x30d91e['responsetime'],this[_0x27c8bc('0x6')]=_0x30d91e['answertime'],this[_0x27c8bc('0x14')]=moment()[_0x27c8bc('0x4')]('YYYY-MM-DD\x20HH:mm:ss'),this[_0x27c8bc('0x1')]=getSeconds(_0x30d91e[_0x27c8bc('0x1b')],_0x30d91e[_0x27c8bc('0x8')]),this[_0x27c8bc('0x12')]=getSeconds(_0x30d91e[_0x27c8bc('0x6')],_0x30d91e[_0x27c8bc('0x1b')]),this['talktime']=getSeconds(this[_0x27c8bc('0x14')],_0x30d91e[_0x27c8bc('0x6')]),this[_0x27c8bc('0x10')]=_0x3c011c[_0x27c8bc('0x10')],this[_0x27c8bc('0x7')]=_0x3c011c[_0x27c8bc('0x7')],this[_0x27c8bc('0x3')]=_0x3c011c[_0x27c8bc('0x3')],this[_0x27c8bc('0xb')]=_0x30d91e[_0x27c8bc('0xb')],this[_0x27c8bc('0xc')]=_0x30d91e[_0x27c8bc('0xc')],this[_0x27c8bc('0x1d')]=_0x30d91e[_0x27c8bc('0x1d')],this[_0x27c8bc('0xd')]=_0x30d91e['recallme'],this[_0x27c8bc('0x13')]=_0x30d91e[_0x27c8bc('0x13')],this['ListId']=_0x30d91e['ListId'],this[_0x27c8bc('0x28')]=_0x30d91e[_0x27c8bc('0x28')],this[_0x27c8bc('0x2')]=_0x30d91e[_0x27c8bc('0x2')],this['CampaignId']=_0x30d91e['CampaignId'],this[_0x27c8bc('0xf')]=_0x30d91e[_0x27c8bc('0xf')]||'',this[_0x27c8bc('0x21')]=_0x30d91e[_0x27c8bc('0x21')]||'';}module[_0x2854fa('0x26')]=AgentComplete;
\ No newline at end of file
+const a1053_0x11e1=['uniqueid','countnoanswerretry','countdropretry','number','endtime','diff','callbackat','countglobal','callbackuniqueid','campaigntype','VoiceQueueId','originatecalleridnum','Answer','calleridnum','countabandonedretry','outbound','countmachineretry','type','countcongestionretry','membername','name','ContactId','seconds','answertime','countagentrejectretry','moment','UserId','originatecalleridname','countbusyretry','reason','countnosuchnumberretry','CampaignId','state','queue','callback','ringtime','holdtime','responsetime','talktime','scheduledat','ListId','starttime','milliseconds','exports'];(function(_0x11dac7,_0x11e1e1){const _0x5813b0=function(_0x588896){while(--_0x588896){_0x11dac7['push'](_0x11dac7['shift']());}};_0x5813b0(++_0x11e1e1);}(a1053_0x11e1,0xcf));const a1053_0x5813=function(_0x11dac7,_0x11e1e1){_0x11dac7=_0x11dac7-0x0;let _0x5813b0=a1053_0x11e1[_0x11dac7];return _0x5813b0;};const _0x1d8eda=a1053_0x5813;'use strict';const moment=require(_0x1d8eda('0x26'));function getSeconds(_0x588896,_0xfec809){const _0x13774f=_0x1d8eda,_0x14e3e0=moment(_0x588896)['milliseconds'](0x0),_0x2db2ce=moment(_0xfec809)[_0x13774f('0xb')](0x0);return _0x14e3e0[_0x13774f('0x12')](_0x2db2ce,_0x13774f('0x23'));}function AgentComplete(_0x570e44,_0x54ea90){const _0x2a537d=_0x1d8eda;this[_0x2a537d('0x1')]=0x4,this['statedesc']=_0x2a537d('0x19'),this['scheduledat']=_0x570e44[_0x2a537d('0x8')],this[_0x2a537d('0x1e')]=_0x570e44[_0x2a537d('0x1e')],this[_0x2a537d('0x16')]=_0x570e44['type']===_0x2a537d('0x1c')?_0x2a537d('0x2'):_0x570e44['type'],this['countbusyretry']=_0x570e44[_0x2a537d('0x29')],this[_0x2a537d('0x1f')]=_0x570e44['countcongestionretry'],this['countnoanswerretry']=_0x570e44[_0x2a537d('0xe')],this[_0x2a537d('0x14')]=_0x570e44[_0x2a537d('0x29')]+_0x570e44[_0x2a537d('0x1f')]+_0x570e44[_0x2a537d('0xe')]+_0x570e44['countnosuchnumberretry']+_0x570e44[_0x2a537d('0xf')]+_0x570e44[_0x2a537d('0x1b')]+_0x570e44[_0x2a537d('0x1d')]+_0x570e44[_0x2a537d('0x25')],this[_0x2a537d('0x2b')]=_0x570e44[_0x2a537d('0x2b')],this[_0x2a537d('0xf')]=_0x570e44[_0x2a537d('0xf')],this['countabandonedretry']=_0x570e44[_0x2a537d('0x1b')],this[_0x2a537d('0x1d')]=_0x570e44[_0x2a537d('0x1d')],this[_0x2a537d('0x25')]=_0x570e44[_0x2a537d('0x25')],this[_0x2a537d('0xd')]=_0x54ea90[_0x2a537d('0xd')],this['calleridname']=_0x570e44[_0x2a537d('0x21')],this[_0x2a537d('0x1a')]=_0x570e44[_0x2a537d('0x10')],this['starttime']=_0x570e44[_0x2a537d('0xa')],this[_0x2a537d('0x6')]=_0x570e44[_0x2a537d('0x6')],this[_0x2a537d('0x24')]=_0x570e44[_0x2a537d('0x24')],this[_0x2a537d('0x11')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),this[_0x2a537d('0x4')]=getSeconds(_0x570e44[_0x2a537d('0x6')],_0x570e44[_0x2a537d('0xa')]),this[_0x2a537d('0x5')]=getSeconds(_0x570e44[_0x2a537d('0x24')],_0x570e44[_0x2a537d('0x6')]),this[_0x2a537d('0x7')]=getSeconds(this['endtime'],_0x570e44['answertime']),this[_0x2a537d('0x2')]=_0x54ea90[_0x2a537d('0x2')],this['membername']=_0x54ea90[_0x2a537d('0x20')],this[_0x2a537d('0x2a')]=_0x54ea90[_0x2a537d('0x2a')],this[_0x2a537d('0x3')]=_0x570e44['callback'],this[_0x2a537d('0x15')]=_0x570e44[_0x2a537d('0x15')],this[_0x2a537d('0x13')]=_0x570e44[_0x2a537d('0x13')],this['recallme']=_0x570e44['recallme'],this[_0x2a537d('0x22')]=_0x570e44[_0x2a537d('0x22')],this[_0x2a537d('0x9')]=_0x570e44[_0x2a537d('0x9')],this['UserId']=_0x570e44[_0x2a537d('0x27')],this[_0x2a537d('0x17')]=_0x570e44[_0x2a537d('0x17')],this[_0x2a537d('0x0')]=_0x570e44['CampaignId'],this[_0x2a537d('0x18')]=_0x570e44['originatecalleridnum']||'',this['originatecalleridname']=_0x570e44[_0x2a537d('0x28')]||'';}module[_0x1d8eda('0xc')]=AgentComplete;
\ No newline at end of file