Built motion from commit 598073ad.|2.5.44
[motion2.git] / server / services / ami / dialer / agentComplete.js
index b2d13a2..85971ea 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xca7e=['originatecalleridnum','originatecalleridname','util','lodash','moment','milliseconds','diff','seconds','statedesc','Answer','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countagentrejectretry','countmachineretry','uniqueid','calleridname','name','calleridnum','number','starttime','responsetime','answertime','YYYY-MM-DD\x20HH:mm:ss','talktime','endtime','membername','reason','callback','callbackuniqueid','callbackat','ContactId','ListId','UserId','VoiceQueueId','CampaignId'];(function(_0x246f0c,_0x39f734){var _0x30fe50=function(_0x9a975c){while(--_0x9a975c){_0x246f0c['push'](_0x246f0c['shift']());}};_0x30fe50(++_0x39f734);}(_0xca7e,0xb2));var _0xeca7=function(_0x16d10f,_0x2ba2d5){_0x16d10f=_0x16d10f-0x0;var _0x50c823=_0xca7e[_0x16d10f];return _0x50c823;};'use strict';var util=require(_0xeca7('0x0'));var _=require(_0xeca7('0x1'));var moment=require(_0xeca7('0x2'));function getSeconds(_0x2799a4,_0x5e71d7){var _0x32bc2e=moment(_0x2799a4)[_0xeca7('0x3')](0x0);var _0x288250=moment(_0x5e71d7)['milliseconds'](0x0);return _0x32bc2e[_0xeca7('0x4')](_0x288250,_0xeca7('0x5'));}function AgentComplete(_0x5abca4,_0x591595){this['state']=0x4;this[_0xeca7('0x6')]=_0xeca7('0x7');this['scheduledat']=_0x5abca4[_0xeca7('0x8')];this[_0xeca7('0x9')]=_0x5abca4['type'];this[_0xeca7('0xa')]=_0x5abca4[_0xeca7('0x9')]===_0xeca7('0xb')?_0xeca7('0xc'):_0x5abca4[_0xeca7('0x9')];this[_0xeca7('0xd')]=_0x5abca4[_0xeca7('0xd')];this['countcongestionretry']=_0x5abca4[_0xeca7('0xe')];this['countnoanswerretry']=_0x5abca4[_0xeca7('0xf')];this['countglobal']=_0x5abca4[_0xeca7('0xd')]+_0x5abca4[_0xeca7('0xe')]+_0x5abca4['countnoanswerretry']+_0x5abca4[_0xeca7('0x10')]+_0x5abca4[_0xeca7('0x11')]+_0x5abca4[_0xeca7('0x12')]+_0x5abca4['countmachineretry']+_0x5abca4[_0xeca7('0x13')];this['countnosuchnumberretry']=_0x5abca4['countnosuchnumberretry'];this[_0xeca7('0x11')]=_0x5abca4[_0xeca7('0x11')];this[_0xeca7('0x12')]=_0x5abca4['countabandonedretry'];this[_0xeca7('0x14')]=_0x5abca4[_0xeca7('0x14')];this[_0xeca7('0x13')]=_0x5abca4[_0xeca7('0x13')];this[_0xeca7('0x15')]=_0x591595[_0xeca7('0x15')];this[_0xeca7('0x16')]=_0x5abca4[_0xeca7('0x17')];this[_0xeca7('0x18')]=_0x5abca4[_0xeca7('0x19')];this[_0xeca7('0x1a')]=_0x5abca4[_0xeca7('0x1a')];this[_0xeca7('0x1b')]=_0x5abca4[_0xeca7('0x1b')];this[_0xeca7('0x1c')]=_0x5abca4['answertime'];this['endtime']=moment()['format'](_0xeca7('0x1d'));this['ringtime']=getSeconds(_0x5abca4[_0xeca7('0x1b')],_0x5abca4['starttime']);this['holdtime']=getSeconds(_0x5abca4[_0xeca7('0x1c')],_0x5abca4[_0xeca7('0x1b')]);this[_0xeca7('0x1e')]=getSeconds(this[_0xeca7('0x1f')],_0x5abca4['answertime']);this['queue']=_0x591595['queue'];this[_0xeca7('0x20')]=_0x591595[_0xeca7('0x20')];this[_0xeca7('0x21')]=_0x591595[_0xeca7('0x21')];this[_0xeca7('0x22')]=_0x5abca4[_0xeca7('0x22')];this[_0xeca7('0x23')]=_0x5abca4[_0xeca7('0x23')];this[_0xeca7('0x24')]=_0x5abca4[_0xeca7('0x24')];this['recallme']=_0x5abca4['recallme'];this[_0xeca7('0x25')]=_0x5abca4[_0xeca7('0x25')];this['ListId']=_0x5abca4[_0xeca7('0x26')];this[_0xeca7('0x27')]=_0x5abca4[_0xeca7('0x27')];this[_0xeca7('0x28')]=_0x5abca4[_0xeca7('0x28')];this[_0xeca7('0x29')]=_0x5abca4[_0xeca7('0x29')];this[_0xeca7('0x2a')]=_0x5abca4[_0xeca7('0x2a')]||'';this[_0xeca7('0x2b')]=_0x5abca4['originatecalleridname']||'';}module['exports']=AgentComplete;
\ No newline at end of file
+var _0x8ffc=['state','statedesc','scheduledat','campaigntype','type','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','uniqueid','name','calleridnum','starttime','responsetime','answertime','endtime','format','YYYY-MM-DD\x20HH:mm:ss','holdtime','talktime','membername','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','exports','util','lodash','moment','milliseconds','diff','seconds'];(function(_0x5cb444,_0x3307f7){var _0x4791fc=function(_0x15214c){while(--_0x15214c){_0x5cb444['push'](_0x5cb444['shift']());}};_0x4791fc(++_0x3307f7);}(_0x8ffc,0x143));var _0xc8ff=function(_0x44268d,_0xad8443){_0x44268d=_0x44268d-0x0;var _0x4be92d=_0x8ffc[_0x44268d];return _0x4be92d;};'use strict';var util=require(_0xc8ff('0x0'));var _=require(_0xc8ff('0x1'));var moment=require(_0xc8ff('0x2'));function getSeconds(_0x8cdf5f,_0x5039da){var _0x1ad0bc=moment(_0x8cdf5f)[_0xc8ff('0x3')](0x0);var _0x575c12=moment(_0x5039da)['milliseconds'](0x0);return _0x1ad0bc[_0xc8ff('0x4')](_0x575c12,_0xc8ff('0x5'));}function AgentComplete(_0x4eb101,_0x2b0a4b){this[_0xc8ff('0x6')]=0x4;this[_0xc8ff('0x7')]='Answer';this[_0xc8ff('0x8')]=_0x4eb101[_0xc8ff('0x8')];this['type']=_0x4eb101['type'];this[_0xc8ff('0x9')]=_0x4eb101[_0xc8ff('0xa')]===_0xc8ff('0xb')?_0xc8ff('0xc'):_0x4eb101[_0xc8ff('0xa')];this[_0xc8ff('0xd')]=_0x4eb101[_0xc8ff('0xd')];this[_0xc8ff('0xe')]=_0x4eb101[_0xc8ff('0xe')];this[_0xc8ff('0xf')]=_0x4eb101[_0xc8ff('0xf')];this[_0xc8ff('0x10')]=_0x4eb101[_0xc8ff('0xd')]+_0x4eb101[_0xc8ff('0xe')]+_0x4eb101['countnoanswerretry']+_0x4eb101[_0xc8ff('0x11')]+_0x4eb101[_0xc8ff('0x12')]+_0x4eb101[_0xc8ff('0x13')]+_0x4eb101[_0xc8ff('0x14')]+_0x4eb101['countagentrejectretry'];this[_0xc8ff('0x11')]=_0x4eb101[_0xc8ff('0x11')];this['countdropretry']=_0x4eb101[_0xc8ff('0x12')];this[_0xc8ff('0x13')]=_0x4eb101[_0xc8ff('0x13')];this[_0xc8ff('0x14')]=_0x4eb101['countmachineretry'];this[_0xc8ff('0x15')]=_0x4eb101[_0xc8ff('0x15')];this[_0xc8ff('0x16')]=_0x2b0a4b[_0xc8ff('0x16')];this['calleridname']=_0x4eb101[_0xc8ff('0x17')];this[_0xc8ff('0x18')]=_0x4eb101['number'];this[_0xc8ff('0x19')]=_0x4eb101[_0xc8ff('0x19')];this[_0xc8ff('0x1a')]=_0x4eb101[_0xc8ff('0x1a')];this[_0xc8ff('0x1b')]=_0x4eb101[_0xc8ff('0x1b')];this[_0xc8ff('0x1c')]=moment()[_0xc8ff('0x1d')](_0xc8ff('0x1e'));this['ringtime']=getSeconds(_0x4eb101[_0xc8ff('0x1a')],_0x4eb101[_0xc8ff('0x19')]);this[_0xc8ff('0x1f')]=getSeconds(_0x4eb101[_0xc8ff('0x1b')],_0x4eb101[_0xc8ff('0x1a')]);this[_0xc8ff('0x20')]=getSeconds(this[_0xc8ff('0x1c')],_0x4eb101[_0xc8ff('0x1b')]);this[_0xc8ff('0xc')]=_0x2b0a4b[_0xc8ff('0xc')];this[_0xc8ff('0x21')]=_0x2b0a4b[_0xc8ff('0x21')];this[_0xc8ff('0x22')]=_0x2b0a4b['reason'];this[_0xc8ff('0x23')]=_0x4eb101[_0xc8ff('0x23')];this['callbackuniqueid']=_0x4eb101[_0xc8ff('0x24')];this[_0xc8ff('0x25')]=_0x4eb101[_0xc8ff('0x25')];this[_0xc8ff('0x26')]=_0x4eb101['recallme'];this[_0xc8ff('0x27')]=_0x4eb101['ContactId'];this[_0xc8ff('0x28')]=_0x4eb101[_0xc8ff('0x28')];this[_0xc8ff('0x29')]=_0x4eb101[_0xc8ff('0x29')];this[_0xc8ff('0x2a')]=_0x4eb101[_0xc8ff('0x2a')];this[_0xc8ff('0x2b')]=_0x4eb101[_0xc8ff('0x2b')];this[_0xc8ff('0x2c')]=_0x4eb101['originatecalleridnum']||'';this[_0xc8ff('0x2d')]=_0x4eb101[_0xc8ff('0x2d')]||'';}module[_0xc8ff('0x2e')]=AgentComplete;
\ No newline at end of file