Built motion from commit ded33658aad58fc8de845a8299a9db59a88cc353. Version 3.0.0...
[motion-next.git] / server / services / ami / dialer / agentComplete.js
index 3686580..9eed468 100644 (file)
@@ -1 +1 @@
-const a1052_0x29ce=['countagentrejectretry','UserId','endtime','queue','starttime','originatecalleridnum','scheduledat','countglobal','originatecalleridname','number','countbusyretry','countnosuchnumberretry','type','calleridname','VoiceQueueId','countcongestionretry','CampaignId','state','callbackat','callbackuniqueid','format','campaigntype','recallme','calleridnum','diff','membername','countdropretry','answertime','uniqueid','reason','countnoanswerretry','ListId','name','milliseconds','ContactId','YYYY-MM-DD\x20HH:mm:ss','responsetime','callback','countmachineretry','statedesc','exports','countabandonedretry'];(function(_0x1d9374,_0x29ce48){const _0x38e076=function(_0x3c68f8){while(--_0x3c68f8){_0x1d9374['push'](_0x1d9374['shift']());}};_0x38e076(++_0x29ce48);}(a1052_0x29ce,0x186));const a1052_0x38e0=function(_0x1d9374,_0x29ce48){_0x1d9374=_0x1d9374-0x0;let _0x38e076=a1052_0x29ce[_0x1d9374];return _0x38e076;};const _0x5be666=a1052_0x38e0;'use strict';const moment=require('moment');function getSeconds(_0x3c68f8,_0x15b66e){const _0x8d2b80=a1052_0x38e0,_0x4114c5=moment(_0x3c68f8)[_0x8d2b80('0x15')](0x0),_0x2432cb=moment(_0x15b66e)['milliseconds'](0x0);return _0x4114c5[_0x8d2b80('0xc')](_0x2432cb,'seconds');}function AgentComplete(_0x2d2bc7,_0x218988){const _0x3c6e70=a1052_0x38e0;this[_0x3c6e70('0x5')]=0x4,this[_0x3c6e70('0x1b')]='Answer',this['scheduledat']=_0x2d2bc7[_0x3c6e70('0x24')],this['type']=_0x2d2bc7[_0x3c6e70('0x0')],this[_0x3c6e70('0x9')]=_0x2d2bc7[_0x3c6e70('0x0')]==='outbound'?_0x3c6e70('0x21'):_0x2d2bc7['type'],this[_0x3c6e70('0x28')]=_0x2d2bc7[_0x3c6e70('0x28')],this[_0x3c6e70('0x3')]=_0x2d2bc7[_0x3c6e70('0x3')],this['countnoanswerretry']=_0x2d2bc7[_0x3c6e70('0x12')],this[_0x3c6e70('0x25')]=_0x2d2bc7['countbusyretry']+_0x2d2bc7[_0x3c6e70('0x3')]+_0x2d2bc7[_0x3c6e70('0x12')]+_0x2d2bc7[_0x3c6e70('0x29')]+_0x2d2bc7['countdropretry']+_0x2d2bc7[_0x3c6e70('0x1d')]+_0x2d2bc7[_0x3c6e70('0x1a')]+_0x2d2bc7['countagentrejectretry'],this[_0x3c6e70('0x29')]=_0x2d2bc7[_0x3c6e70('0x29')],this[_0x3c6e70('0xe')]=_0x2d2bc7[_0x3c6e70('0xe')],this[_0x3c6e70('0x1d')]=_0x2d2bc7[_0x3c6e70('0x1d')],this[_0x3c6e70('0x1a')]=_0x2d2bc7[_0x3c6e70('0x1a')],this[_0x3c6e70('0x1e')]=_0x2d2bc7[_0x3c6e70('0x1e')],this[_0x3c6e70('0x10')]=_0x218988[_0x3c6e70('0x10')],this[_0x3c6e70('0x1')]=_0x2d2bc7[_0x3c6e70('0x14')],this[_0x3c6e70('0xb')]=_0x2d2bc7[_0x3c6e70('0x27')],this['starttime']=_0x2d2bc7[_0x3c6e70('0x22')],this['responsetime']=_0x2d2bc7[_0x3c6e70('0x18')],this['answertime']=_0x2d2bc7[_0x3c6e70('0xf')],this['endtime']=moment()[_0x3c6e70('0x8')](_0x3c6e70('0x17')),this['ringtime']=getSeconds(_0x2d2bc7[_0x3c6e70('0x18')],_0x2d2bc7[_0x3c6e70('0x22')]),this['holdtime']=getSeconds(_0x2d2bc7[_0x3c6e70('0xf')],_0x2d2bc7[_0x3c6e70('0x18')]),this['talktime']=getSeconds(this[_0x3c6e70('0x20')],_0x2d2bc7['answertime']),this[_0x3c6e70('0x21')]=_0x218988[_0x3c6e70('0x21')],this['membername']=_0x218988[_0x3c6e70('0xd')],this[_0x3c6e70('0x11')]=_0x218988[_0x3c6e70('0x11')],this[_0x3c6e70('0x19')]=_0x2d2bc7[_0x3c6e70('0x19')],this[_0x3c6e70('0x7')]=_0x2d2bc7['callbackuniqueid'],this[_0x3c6e70('0x6')]=_0x2d2bc7[_0x3c6e70('0x6')],this[_0x3c6e70('0xa')]=_0x2d2bc7[_0x3c6e70('0xa')],this[_0x3c6e70('0x16')]=_0x2d2bc7[_0x3c6e70('0x16')],this[_0x3c6e70('0x13')]=_0x2d2bc7[_0x3c6e70('0x13')],this['UserId']=_0x2d2bc7[_0x3c6e70('0x1f')],this[_0x3c6e70('0x2')]=_0x2d2bc7['VoiceQueueId'],this[_0x3c6e70('0x4')]=_0x2d2bc7[_0x3c6e70('0x4')],this[_0x3c6e70('0x23')]=_0x2d2bc7[_0x3c6e70('0x23')]||'',this[_0x3c6e70('0x26')]=_0x2d2bc7[_0x3c6e70('0x26')]||'';}module[_0x5be666('0x1c')]=AgentComplete;
\ No newline at end of file
+const a1052_0x2519=['reason','VoiceQueueId','campaigntype','ringtime','milliseconds','countcongestionretry','countnosuchnumberretry','format','talktime','responsetime','countnoanswerretry','countagentrejectretry','membername','countabandonedretry','diff','YYYY-MM-DD\x20HH:mm:ss','ListId','answertime','scheduledat','uniqueid','countdropretry','starttime','callback','holdtime','callbackat','name','moment','ContactId','number','countmachineretry','queue','type','recallme','originatecalleridname','CampaignId','statedesc','Answer','callbackuniqueid','endtime','originatecalleridnum','UserId','calleridname','countbusyretry'];(function(_0x3f076c,_0x251966){const _0xb95f76=function(_0x3e7339){while(--_0x3e7339){_0x3f076c['push'](_0x3f076c['shift']());}};_0xb95f76(++_0x251966);}(a1052_0x2519,0x1b2));const a1052_0xb95f=function(_0x3f076c,_0x251966){_0x3f076c=_0x3f076c-0x0;let _0xb95f76=a1052_0x2519[_0x3f076c];return _0xb95f76;};const _0xe71d87=a1052_0xb95f;'use strict';const moment=require(_0xe71d87('0x16'));function getSeconds(_0x3e7339,_0x25fd13){const _0x299456=_0xe71d87,_0x36dd7c=moment(_0x3e7339)[_0x299456('0x0')](0x0),_0x1da85c=moment(_0x25fd13)[_0x299456('0x0')](0x0);return _0x36dd7c[_0x299456('0xa')](_0x1da85c,'seconds');}function AgentComplete(_0x70ee6b,_0x3f288d){const _0x1079a5=_0xe71d87;this['state']=0x4,this[_0x1079a5('0x1f')]=_0x1079a5('0x20'),this['scheduledat']=_0x70ee6b[_0x1079a5('0xe')],this[_0x1079a5('0x1b')]=_0x70ee6b[_0x1079a5('0x1b')],this[_0x1079a5('0x29')]=_0x70ee6b['type']==='outbound'?_0x1079a5('0x1a'):_0x70ee6b[_0x1079a5('0x1b')],this[_0x1079a5('0x26')]=_0x70ee6b[_0x1079a5('0x26')],this['countcongestionretry']=_0x70ee6b[_0x1079a5('0x1')],this[_0x1079a5('0x6')]=_0x70ee6b['countnoanswerretry'],this['countglobal']=_0x70ee6b[_0x1079a5('0x26')]+_0x70ee6b[_0x1079a5('0x1')]+_0x70ee6b[_0x1079a5('0x6')]+_0x70ee6b[_0x1079a5('0x2')]+_0x70ee6b[_0x1079a5('0x10')]+_0x70ee6b[_0x1079a5('0x9')]+_0x70ee6b[_0x1079a5('0x19')]+_0x70ee6b[_0x1079a5('0x7')],this[_0x1079a5('0x2')]=_0x70ee6b[_0x1079a5('0x2')],this[_0x1079a5('0x10')]=_0x70ee6b[_0x1079a5('0x10')],this['countabandonedretry']=_0x70ee6b[_0x1079a5('0x9')],this[_0x1079a5('0x19')]=_0x70ee6b[_0x1079a5('0x19')],this['countagentrejectretry']=_0x70ee6b['countagentrejectretry'],this[_0x1079a5('0xf')]=_0x3f288d[_0x1079a5('0xf')],this[_0x1079a5('0x25')]=_0x70ee6b[_0x1079a5('0x15')],this['calleridnum']=_0x70ee6b[_0x1079a5('0x18')],this[_0x1079a5('0x11')]=_0x70ee6b[_0x1079a5('0x11')],this['responsetime']=_0x70ee6b[_0x1079a5('0x5')],this[_0x1079a5('0xd')]=_0x70ee6b[_0x1079a5('0xd')],this[_0x1079a5('0x22')]=moment()[_0x1079a5('0x3')](_0x1079a5('0xb')),this[_0x1079a5('0x2a')]=getSeconds(_0x70ee6b[_0x1079a5('0x5')],_0x70ee6b[_0x1079a5('0x11')]),this[_0x1079a5('0x13')]=getSeconds(_0x70ee6b[_0x1079a5('0xd')],_0x70ee6b['responsetime']),this[_0x1079a5('0x4')]=getSeconds(this['endtime'],_0x70ee6b[_0x1079a5('0xd')]),this[_0x1079a5('0x1a')]=_0x3f288d['queue'],this[_0x1079a5('0x8')]=_0x3f288d[_0x1079a5('0x8')],this[_0x1079a5('0x27')]=_0x3f288d['reason'],this['callback']=_0x70ee6b[_0x1079a5('0x12')],this['callbackuniqueid']=_0x70ee6b[_0x1079a5('0x21')],this[_0x1079a5('0x14')]=_0x70ee6b[_0x1079a5('0x14')],this[_0x1079a5('0x1c')]=_0x70ee6b[_0x1079a5('0x1c')],this['ContactId']=_0x70ee6b[_0x1079a5('0x17')],this[_0x1079a5('0xc')]=_0x70ee6b['ListId'],this[_0x1079a5('0x24')]=_0x70ee6b[_0x1079a5('0x24')],this['VoiceQueueId']=_0x70ee6b[_0x1079a5('0x28')],this['CampaignId']=_0x70ee6b[_0x1079a5('0x1e')],this[_0x1079a5('0x23')]=_0x70ee6b[_0x1079a5('0x23')]||'',this[_0x1079a5('0x1d')]=_0x70ee6b[_0x1079a5('0x1d')]||'';}module['exports']=AgentComplete;
\ No newline at end of file