Built motion from commit (unavailable).|2.3.6
[motion2.git] / server / services / ami / dialer / agentComplete.js
index 58da67c..545231c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2e22=['ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','exports','util','moment','milliseconds','diff','statedesc','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','uniqueid','calleridname','name','calleridnum','number','starttime','answertime','format','YYYY-MM-DD\x20HH:mm:ss','responsetime','holdtime','endtime','membername','reason','callback','callbackuniqueid','callbackat','recallme'];(function(_0x126fb9,_0x122c59){var _0xc8a3b1=function(_0x355744){while(--_0x355744){_0x126fb9['push'](_0x126fb9['shift']());}};_0xc8a3b1(++_0x122c59);}(_0x2e22,0x148));var _0x22e2=function(_0x496ee9,_0x4dba12){_0x496ee9=_0x496ee9-0x0;var _0xb7016a=_0x2e22[_0x496ee9];return _0xb7016a;};'use strict';var util=require(_0x22e2('0x0'));var _=require('lodash');var moment=require(_0x22e2('0x1'));function getSeconds(_0x47b99f,_0x542189){var _0x49e7e1=moment(_0x47b99f)[_0x22e2('0x2')](0x0);var _0x5a6c55=moment(_0x542189)[_0x22e2('0x2')](0x0);return _0x49e7e1[_0x22e2('0x3')](_0x5a6c55,'seconds');}function AgentComplete(_0x5a5b74,_0x1ac757){this['state']=0x4;this[_0x22e2('0x4')]='Answer';this[_0x22e2('0x5')]=_0x5a5b74[_0x22e2('0x5')];this[_0x22e2('0x6')]=_0x5a5b74['type'];this[_0x22e2('0x7')]=_0x5a5b74[_0x22e2('0x6')]===_0x22e2('0x8')?_0x22e2('0x9'):_0x5a5b74[_0x22e2('0x6')];this[_0x22e2('0xa')]=_0x5a5b74['countbusyretry'];this[_0x22e2('0xb')]=_0x5a5b74['countcongestionretry'];this['countnoanswerretry']=_0x5a5b74[_0x22e2('0xc')];this[_0x22e2('0xd')]=_0x5a5b74[_0x22e2('0xa')]+_0x5a5b74[_0x22e2('0xb')]+_0x5a5b74[_0x22e2('0xc')];this[_0x22e2('0xe')]=_0x1ac757[_0x22e2('0xe')];this[_0x22e2('0xf')]=_0x5a5b74[_0x22e2('0x10')];this[_0x22e2('0x11')]=_0x5a5b74[_0x22e2('0x12')];this[_0x22e2('0x13')]=_0x5a5b74['starttime'];this['responsetime']=_0x5a5b74['responsetime'];this[_0x22e2('0x14')]=_0x5a5b74['answertime'];this['endtime']=moment()[_0x22e2('0x15')](_0x22e2('0x16'));this['ringtime']=getSeconds(_0x5a5b74[_0x22e2('0x17')],_0x5a5b74[_0x22e2('0x13')]);this[_0x22e2('0x18')]=getSeconds(_0x5a5b74[_0x22e2('0x14')],_0x5a5b74[_0x22e2('0x17')]);this['talktime']=getSeconds(this[_0x22e2('0x19')],_0x5a5b74[_0x22e2('0x14')]);this[_0x22e2('0x9')]=_0x1ac757[_0x22e2('0x9')];this[_0x22e2('0x1a')]=_0x1ac757[_0x22e2('0x1a')];this['reason']=_0x1ac757[_0x22e2('0x1b')];this[_0x22e2('0x1c')]=_0x5a5b74[_0x22e2('0x1c')];this['callbackuniqueid']=_0x5a5b74[_0x22e2('0x1d')];this[_0x22e2('0x1e')]=_0x5a5b74[_0x22e2('0x1e')];this[_0x22e2('0x1f')]=_0x5a5b74[_0x22e2('0x1f')];this[_0x22e2('0x20')]=_0x5a5b74[_0x22e2('0x20')];this[_0x22e2('0x21')]=_0x5a5b74['ListId'];this[_0x22e2('0x22')]=_0x5a5b74[_0x22e2('0x22')];this[_0x22e2('0x23')]=_0x5a5b74[_0x22e2('0x23')];this['CampaignId']=_0x5a5b74[_0x22e2('0x24')];this[_0x22e2('0x25')]=_0x5a5b74['originatecalleridnum']||'';this[_0x22e2('0x26')]=_0x5a5b74[_0x22e2('0x26')]||'';}module[_0x22e2('0x27')]=AgentComplete;
\ No newline at end of file
+var _0xd62f=['state','statedesc','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countglobal','uniqueid','calleridname','name','calleridnum','number','responsetime','answertime','endtime','format','talktime','membername','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','exports','lodash','moment','milliseconds','diff','seconds'];(function(_0x5a133a,_0x2ee83b){var _0x2bd765=function(_0x70ef28){while(--_0x70ef28){_0x5a133a['push'](_0x5a133a['shift']());}};_0x2bd765(++_0x2ee83b);}(_0xd62f,0xe5));var _0xfd62=function(_0x158c47,_0x33762b){_0x158c47=_0x158c47-0x0;var _0x23b2e0=_0xd62f[_0x158c47];return _0x23b2e0;};'use strict';var util=require('util');var _=require(_0xfd62('0x0'));var moment=require(_0xfd62('0x1'));function getSeconds(_0x547f23,_0x1b0301){var _0x3a7268=moment(_0x547f23)[_0xfd62('0x2')](0x0);var _0x5860dd=moment(_0x1b0301)[_0xfd62('0x2')](0x0);return _0x3a7268[_0xfd62('0x3')](_0x5860dd,_0xfd62('0x4'));}function AgentComplete(_0x104280,_0x1a992a){this[_0xfd62('0x5')]=0x4;this[_0xfd62('0x6')]='Answer';this['scheduledat']=_0x104280[_0xfd62('0x7')];this[_0xfd62('0x8')]=_0x104280[_0xfd62('0x8')];this[_0xfd62('0x9')]=_0x104280[_0xfd62('0x8')]===_0xfd62('0xa')?_0xfd62('0xb'):_0x104280[_0xfd62('0x8')];this['countbusyretry']=_0x104280[_0xfd62('0xc')];this[_0xfd62('0xd')]=_0x104280[_0xfd62('0xd')];this['countnoanswerretry']=_0x104280['countnoanswerretry'];this[_0xfd62('0xe')]=_0x104280['countbusyretry']+_0x104280['countcongestionretry']+_0x104280['countnoanswerretry'];this[_0xfd62('0xf')]=_0x1a992a[_0xfd62('0xf')];this[_0xfd62('0x10')]=_0x104280[_0xfd62('0x11')];this[_0xfd62('0x12')]=_0x104280[_0xfd62('0x13')];this['starttime']=_0x104280['starttime'];this['responsetime']=_0x104280[_0xfd62('0x14')];this[_0xfd62('0x15')]=_0x104280[_0xfd62('0x15')];this[_0xfd62('0x16')]=moment()[_0xfd62('0x17')]('YYYY-MM-DD\x20HH:mm:ss');this['ringtime']=getSeconds(_0x104280['responsetime'],_0x104280['starttime']);this['holdtime']=getSeconds(_0x104280[_0xfd62('0x15')],_0x104280[_0xfd62('0x14')]);this[_0xfd62('0x18')]=getSeconds(this['endtime'],_0x104280[_0xfd62('0x15')]);this[_0xfd62('0xb')]=_0x1a992a['queue'];this[_0xfd62('0x19')]=_0x1a992a[_0xfd62('0x19')];this[_0xfd62('0x1a')]=_0x1a992a[_0xfd62('0x1a')];this['callback']=_0x104280[_0xfd62('0x1b')];this[_0xfd62('0x1c')]=_0x104280[_0xfd62('0x1c')];this[_0xfd62('0x1d')]=_0x104280[_0xfd62('0x1d')];this[_0xfd62('0x1e')]=_0x104280['recallme'];this[_0xfd62('0x1f')]=_0x104280[_0xfd62('0x1f')];this[_0xfd62('0x20')]=_0x104280['ListId'];this['UserId']=_0x104280[_0xfd62('0x21')];this[_0xfd62('0x22')]=_0x104280[_0xfd62('0x22')];this[_0xfd62('0x23')]=_0x104280['CampaignId'];this[_0xfd62('0x24')]=_0x104280[_0xfd62('0x24')]||'';this['originatecalleridname']=_0x104280[_0xfd62('0x25')]||'';}module[_0xfd62('0x26')]=AgentComplete;
\ No newline at end of file