Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / services / ami / dialer / agentComplete.js
index e10c6d7..355d53d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9b12=['moment','milliseconds','diff','seconds','state','statedesc','Answer','scheduledat','type','outbound','queue','countbusyretry','countnoanswerretry','countglobal','countcongestionretry','countdropretry','countmachineretry','countagentrejectretry','countnosuchnumberretry','uniqueid','calleridname','name','calleridnum','number','starttime','responsetime','answertime','endtime','YYYY-MM-DD\x20HH:mm:ss','membername','reason','callback','callbackuniqueid','callbackat','recallme','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','exports','lodash'];(function(_0x193f83,_0x5d25ba){var _0x55bdc9=function(_0x2f1e31){while(--_0x2f1e31){_0x193f83['push'](_0x193f83['shift']());}};_0x55bdc9(++_0x5d25ba);}(_0x9b12,0x1d8));var _0x29b1=function(_0x406089,_0x57017c){_0x406089=_0x406089-0x0;var _0x451282=_0x9b12[_0x406089];return _0x451282;};'use strict';var util=require('util');var _=require(_0x29b1('0x0'));var moment=require(_0x29b1('0x1'));function getSeconds(_0x347f35,_0x208f05){var _0x58c5cd=moment(_0x347f35)[_0x29b1('0x2')](0x0);var _0x1e8532=moment(_0x208f05)['milliseconds'](0x0);return _0x58c5cd[_0x29b1('0x3')](_0x1e8532,_0x29b1('0x4'));}function AgentComplete(_0x344d90,_0x182c2e){this[_0x29b1('0x5')]=0x4;this[_0x29b1('0x6')]=_0x29b1('0x7');this[_0x29b1('0x8')]=_0x344d90[_0x29b1('0x8')];this[_0x29b1('0x9')]=_0x344d90[_0x29b1('0x9')];this['campaigntype']=_0x344d90[_0x29b1('0x9')]===_0x29b1('0xa')?_0x29b1('0xb'):_0x344d90['type'];this['countbusyretry']=_0x344d90[_0x29b1('0xc')];this['countcongestionretry']=_0x344d90['countcongestionretry'];this['countnoanswerretry']=_0x344d90[_0x29b1('0xd')];this[_0x29b1('0xe')]=_0x344d90[_0x29b1('0xc')]+_0x344d90[_0x29b1('0xf')]+_0x344d90[_0x29b1('0xd')]+_0x344d90['countnosuchnumberretry']+_0x344d90[_0x29b1('0x10')]+_0x344d90['countabandonedretry']+_0x344d90[_0x29b1('0x11')]+_0x344d90[_0x29b1('0x12')];this['countnosuchnumberretry']=_0x344d90[_0x29b1('0x13')];this[_0x29b1('0x10')]=_0x344d90[_0x29b1('0x10')];this['countabandonedretry']=_0x344d90['countabandonedretry'];this[_0x29b1('0x11')]=_0x344d90['countmachineretry'];this[_0x29b1('0x12')]=_0x344d90['countagentrejectretry'];this[_0x29b1('0x14')]=_0x182c2e['uniqueid'];this[_0x29b1('0x15')]=_0x344d90[_0x29b1('0x16')];this[_0x29b1('0x17')]=_0x344d90[_0x29b1('0x18')];this[_0x29b1('0x19')]=_0x344d90[_0x29b1('0x19')];this[_0x29b1('0x1a')]=_0x344d90['responsetime'];this['answertime']=_0x344d90[_0x29b1('0x1b')];this[_0x29b1('0x1c')]=moment()['format'](_0x29b1('0x1d'));this['ringtime']=getSeconds(_0x344d90[_0x29b1('0x1a')],_0x344d90[_0x29b1('0x19')]);this['holdtime']=getSeconds(_0x344d90[_0x29b1('0x1b')],_0x344d90[_0x29b1('0x1a')]);this['talktime']=getSeconds(this[_0x29b1('0x1c')],_0x344d90[_0x29b1('0x1b')]);this[_0x29b1('0xb')]=_0x182c2e[_0x29b1('0xb')];this['membername']=_0x182c2e[_0x29b1('0x1e')];this[_0x29b1('0x1f')]=_0x182c2e[_0x29b1('0x1f')];this[_0x29b1('0x20')]=_0x344d90[_0x29b1('0x20')];this[_0x29b1('0x21')]=_0x344d90['callbackuniqueid'];this['callbackat']=_0x344d90[_0x29b1('0x22')];this[_0x29b1('0x23')]=_0x344d90[_0x29b1('0x23')];this['ContactId']=_0x344d90['ContactId'];this[_0x29b1('0x24')]=_0x344d90[_0x29b1('0x24')];this[_0x29b1('0x25')]=_0x344d90['UserId'];this[_0x29b1('0x26')]=_0x344d90[_0x29b1('0x26')];this[_0x29b1('0x27')]=_0x344d90[_0x29b1('0x27')];this['originatecalleridnum']=_0x344d90[_0x29b1('0x28')]||'';this[_0x29b1('0x29')]=_0x344d90['originatecalleridname']||'';}module[_0x29b1('0x2a')]=AgentComplete;
\ No newline at end of file
+var _0x991a=['countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countabandonedretry','countmachineretry','countagentrejectretry','countdropretry','uniqueid','calleridname','name','calleridnum','number','starttime','responsetime','answertime','format','ringtime','holdtime','talktime','queue','membername','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','exports','util','lodash','moment','milliseconds','diff','seconds','state','scheduledat','type','campaigntype','countbusyretry'];(function(_0x378752,_0x158b32){var _0xd5a262=function(_0x3c6f94){while(--_0x3c6f94){_0x378752['push'](_0x378752['shift']());}};_0xd5a262(++_0x158b32);}(_0x991a,0x1c1));var _0xa991=function(_0x2a341e,_0x515d38){_0x2a341e=_0x2a341e-0x0;var _0x211412=_0x991a[_0x2a341e];return _0x211412;};'use strict';var util=require(_0xa991('0x0'));var _=require(_0xa991('0x1'));var moment=require(_0xa991('0x2'));function getSeconds(_0x4ee072,_0xee3a50){var _0x59cd57=moment(_0x4ee072)[_0xa991('0x3')](0x0);var _0x48052f=moment(_0xee3a50)[_0xa991('0x3')](0x0);return _0x59cd57[_0xa991('0x4')](_0x48052f,_0xa991('0x5'));}function AgentComplete(_0x15029e,_0x5ca732){this[_0xa991('0x6')]=0x4;this['statedesc']='Answer';this[_0xa991('0x7')]=_0x15029e['scheduledat'];this[_0xa991('0x8')]=_0x15029e['type'];this[_0xa991('0x9')]=_0x15029e[_0xa991('0x8')]==='outbound'?'queue':_0x15029e[_0xa991('0x8')];this[_0xa991('0xa')]=_0x15029e[_0xa991('0xa')];this[_0xa991('0xb')]=_0x15029e['countcongestionretry'];this[_0xa991('0xc')]=_0x15029e[_0xa991('0xc')];this[_0xa991('0xd')]=_0x15029e[_0xa991('0xa')]+_0x15029e[_0xa991('0xb')]+_0x15029e[_0xa991('0xc')]+_0x15029e[_0xa991('0xe')]+_0x15029e['countdropretry']+_0x15029e[_0xa991('0xf')]+_0x15029e[_0xa991('0x10')]+_0x15029e[_0xa991('0x11')];this[_0xa991('0xe')]=_0x15029e[_0xa991('0xe')];this[_0xa991('0x12')]=_0x15029e[_0xa991('0x12')];this[_0xa991('0xf')]=_0x15029e[_0xa991('0xf')];this[_0xa991('0x10')]=_0x15029e[_0xa991('0x10')];this[_0xa991('0x11')]=_0x15029e[_0xa991('0x11')];this['uniqueid']=_0x5ca732[_0xa991('0x13')];this[_0xa991('0x14')]=_0x15029e[_0xa991('0x15')];this[_0xa991('0x16')]=_0x15029e[_0xa991('0x17')];this[_0xa991('0x18')]=_0x15029e[_0xa991('0x18')];this[_0xa991('0x19')]=_0x15029e[_0xa991('0x19')];this[_0xa991('0x1a')]=_0x15029e['answertime'];this['endtime']=moment()[_0xa991('0x1b')]('YYYY-MM-DD\x20HH:mm:ss');this[_0xa991('0x1c')]=getSeconds(_0x15029e['responsetime'],_0x15029e['starttime']);this[_0xa991('0x1d')]=getSeconds(_0x15029e['answertime'],_0x15029e['responsetime']);this[_0xa991('0x1e')]=getSeconds(this['endtime'],_0x15029e[_0xa991('0x1a')]);this[_0xa991('0x1f')]=_0x5ca732['queue'];this[_0xa991('0x20')]=_0x5ca732[_0xa991('0x20')];this['reason']=_0x5ca732[_0xa991('0x21')];this['callback']=_0x15029e[_0xa991('0x22')];this[_0xa991('0x23')]=_0x15029e[_0xa991('0x23')];this[_0xa991('0x24')]=_0x15029e[_0xa991('0x24')];this[_0xa991('0x25')]=_0x15029e[_0xa991('0x25')];this[_0xa991('0x26')]=_0x15029e[_0xa991('0x26')];this[_0xa991('0x27')]=_0x15029e[_0xa991('0x27')];this[_0xa991('0x28')]=_0x15029e[_0xa991('0x28')];this[_0xa991('0x29')]=_0x15029e['VoiceQueueId'];this[_0xa991('0x2a')]=_0x15029e[_0xa991('0x2a')];this[_0xa991('0x2b')]=_0x15029e[_0xa991('0x2b')]||'';this[_0xa991('0x2c')]=_0x15029e[_0xa991('0x2c')]||'';}module[_0xa991('0x2d')]=AgentComplete;
\ No newline at end of file