Built motion from commit (unavailable).|2.5.22
[motion2.git] / server / services / ami / dialer / agentComplete.js
index 2e2ae14..cd4588d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x07ec=['callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','originatecalleridnum','originatecalleridname','exports','lodash','milliseconds','diff','seconds','state','statedesc','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','uniqueid','calleridname','name','calleridnum','starttime','responsetime','answertime','endtime','format','YYYY-MM-DD\x20HH:mm:ss','talktime','membername','reason','callback','callbackuniqueid'];(function(_0x4fcad5,_0x258deb){var _0x1dec8a=function(_0x3ac9f9){while(--_0x3ac9f9){_0x4fcad5['push'](_0x4fcad5['shift']());}};_0x1dec8a(++_0x258deb);}(_0x07ec,0xb9));var _0xc07e=function(_0x54c9dd,_0x233a86){_0x54c9dd=_0x54c9dd-0x0;var _0x855156=_0x07ec[_0x54c9dd];return _0x855156;};'use strict';var util=require('util');var _=require(_0xc07e('0x0'));var moment=require('moment');function getSeconds(_0x5c3c21,_0x402029){var _0x3e5cd8=moment(_0x5c3c21)[_0xc07e('0x1')](0x0);var _0x409ae6=moment(_0x402029)[_0xc07e('0x1')](0x0);return _0x3e5cd8[_0xc07e('0x2')](_0x409ae6,_0xc07e('0x3'));}function AgentComplete(_0x566e72,_0x1e355d){this[_0xc07e('0x4')]=0x4;this[_0xc07e('0x5')]='Answer';this[_0xc07e('0x6')]=_0x566e72['scheduledat'];this[_0xc07e('0x7')]=_0x566e72['type'];this[_0xc07e('0x8')]=_0x566e72['type']===_0xc07e('0x9')?_0xc07e('0xa'):_0x566e72[_0xc07e('0x7')];this['countbusyretry']=_0x566e72[_0xc07e('0xb')];this[_0xc07e('0xc')]=_0x566e72[_0xc07e('0xc')];this[_0xc07e('0xd')]=_0x566e72[_0xc07e('0xd')];this[_0xc07e('0xe')]=_0x566e72[_0xc07e('0xb')]+_0x566e72['countcongestionretry']+_0x566e72[_0xc07e('0xd')]+_0x566e72[_0xc07e('0xf')]+_0x566e72[_0xc07e('0x10')]+_0x566e72[_0xc07e('0x11')]+_0x566e72[_0xc07e('0x12')]+_0x566e72[_0xc07e('0x13')];this[_0xc07e('0xf')]=_0x566e72[_0xc07e('0xf')];this[_0xc07e('0x10')]=_0x566e72[_0xc07e('0x10')];this['countabandonedretry']=_0x566e72['countabandonedretry'];this[_0xc07e('0x12')]=_0x566e72[_0xc07e('0x12')];this[_0xc07e('0x13')]=_0x566e72[_0xc07e('0x13')];this[_0xc07e('0x14')]=_0x1e355d[_0xc07e('0x14')];this[_0xc07e('0x15')]=_0x566e72[_0xc07e('0x16')];this[_0xc07e('0x17')]=_0x566e72['number'];this[_0xc07e('0x18')]=_0x566e72['starttime'];this[_0xc07e('0x19')]=_0x566e72[_0xc07e('0x19')];this[_0xc07e('0x1a')]=_0x566e72[_0xc07e('0x1a')];this[_0xc07e('0x1b')]=moment()[_0xc07e('0x1c')](_0xc07e('0x1d'));this['ringtime']=getSeconds(_0x566e72[_0xc07e('0x19')],_0x566e72['starttime']);this['holdtime']=getSeconds(_0x566e72[_0xc07e('0x1a')],_0x566e72[_0xc07e('0x19')]);this[_0xc07e('0x1e')]=getSeconds(this[_0xc07e('0x1b')],_0x566e72[_0xc07e('0x1a')]);this['queue']=_0x1e355d[_0xc07e('0xa')];this[_0xc07e('0x1f')]=_0x1e355d[_0xc07e('0x1f')];this[_0xc07e('0x20')]=_0x1e355d[_0xc07e('0x20')];this['callback']=_0x566e72[_0xc07e('0x21')];this['callbackuniqueid']=_0x566e72[_0xc07e('0x22')];this[_0xc07e('0x23')]=_0x566e72[_0xc07e('0x23')];this[_0xc07e('0x24')]=_0x566e72[_0xc07e('0x24')];this[_0xc07e('0x25')]=_0x566e72['ContactId'];this[_0xc07e('0x26')]=_0x566e72['ListId'];this[_0xc07e('0x27')]=_0x566e72[_0xc07e('0x27')];this['VoiceQueueId']=_0x566e72[_0xc07e('0x28')];this['CampaignId']=_0x566e72['CampaignId'];this[_0xc07e('0x29')]=_0x566e72[_0xc07e('0x29')]||'';this[_0xc07e('0x2a')]=_0x566e72[_0xc07e('0x2a')]||'';}module[_0xc07e('0x2b')]=AgentComplete;
\ No newline at end of file
+var _0x0bf7=['type','campaigntype','queue','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countagentrejectretry','countmachineretry','uniqueid','calleridname','calleridnum','starttime','responsetime','answertime','endtime','format','YYYY-MM-DD\x20HH:mm:ss','ringtime','holdtime','membername','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','util','lodash','moment','milliseconds','diff','state','statedesc','Answer','scheduledat'];(function(_0x1f2cd3,_0x275010){var _0x165869=function(_0x70a5ee){while(--_0x70a5ee){_0x1f2cd3['push'](_0x1f2cd3['shift']());}};_0x165869(++_0x275010);}(_0x0bf7,0xd3));var _0x70bf=function(_0x45c5f0,_0x1822c7){_0x45c5f0=_0x45c5f0-0x0;var _0x4108af=_0x0bf7[_0x45c5f0];return _0x4108af;};'use strict';var util=require(_0x70bf('0x0'));var _=require(_0x70bf('0x1'));var moment=require(_0x70bf('0x2'));function getSeconds(_0x3ea430,_0x3f2453){var _0x181ad5=moment(_0x3ea430)[_0x70bf('0x3')](0x0);var _0xa2814a=moment(_0x3f2453)[_0x70bf('0x3')](0x0);return _0x181ad5[_0x70bf('0x4')](_0xa2814a,'seconds');}function AgentComplete(_0x187bfd,_0x2fe67d){this[_0x70bf('0x5')]=0x4;this[_0x70bf('0x6')]=_0x70bf('0x7');this[_0x70bf('0x8')]=_0x187bfd[_0x70bf('0x8')];this[_0x70bf('0x9')]=_0x187bfd['type'];this[_0x70bf('0xa')]=_0x187bfd[_0x70bf('0x9')]==='outbound'?_0x70bf('0xb'):_0x187bfd[_0x70bf('0x9')];this[_0x70bf('0xc')]=_0x187bfd[_0x70bf('0xc')];this[_0x70bf('0xd')]=_0x187bfd[_0x70bf('0xd')];this[_0x70bf('0xe')]=_0x187bfd[_0x70bf('0xe')];this['countglobal']=_0x187bfd[_0x70bf('0xc')]+_0x187bfd[_0x70bf('0xd')]+_0x187bfd[_0x70bf('0xe')]+_0x187bfd[_0x70bf('0xf')]+_0x187bfd[_0x70bf('0x10')]+_0x187bfd[_0x70bf('0x11')]+_0x187bfd['countmachineretry']+_0x187bfd[_0x70bf('0x12')];this[_0x70bf('0xf')]=_0x187bfd[_0x70bf('0xf')];this['countdropretry']=_0x187bfd['countdropretry'];this[_0x70bf('0x11')]=_0x187bfd[_0x70bf('0x11')];this[_0x70bf('0x13')]=_0x187bfd[_0x70bf('0x13')];this['countagentrejectretry']=_0x187bfd[_0x70bf('0x12')];this['uniqueid']=_0x2fe67d[_0x70bf('0x14')];this[_0x70bf('0x15')]=_0x187bfd['name'];this[_0x70bf('0x16')]=_0x187bfd['number'];this['starttime']=_0x187bfd[_0x70bf('0x17')];this[_0x70bf('0x18')]=_0x187bfd[_0x70bf('0x18')];this[_0x70bf('0x19')]=_0x187bfd['answertime'];this[_0x70bf('0x1a')]=moment()[_0x70bf('0x1b')](_0x70bf('0x1c'));this[_0x70bf('0x1d')]=getSeconds(_0x187bfd['responsetime'],_0x187bfd[_0x70bf('0x17')]);this[_0x70bf('0x1e')]=getSeconds(_0x187bfd[_0x70bf('0x19')],_0x187bfd[_0x70bf('0x18')]);this['talktime']=getSeconds(this['endtime'],_0x187bfd[_0x70bf('0x19')]);this[_0x70bf('0xb')]=_0x2fe67d['queue'];this[_0x70bf('0x1f')]=_0x2fe67d[_0x70bf('0x1f')];this[_0x70bf('0x20')]=_0x2fe67d[_0x70bf('0x20')];this[_0x70bf('0x21')]=_0x187bfd[_0x70bf('0x21')];this[_0x70bf('0x22')]=_0x187bfd['callbackuniqueid'];this[_0x70bf('0x23')]=_0x187bfd[_0x70bf('0x23')];this[_0x70bf('0x24')]=_0x187bfd[_0x70bf('0x24')];this['ContactId']=_0x187bfd[_0x70bf('0x25')];this['ListId']=_0x187bfd[_0x70bf('0x26')];this[_0x70bf('0x27')]=_0x187bfd[_0x70bf('0x27')];this[_0x70bf('0x28')]=_0x187bfd[_0x70bf('0x28')];this[_0x70bf('0x29')]=_0x187bfd[_0x70bf('0x29')];this[_0x70bf('0x2a')]=_0x187bfd[_0x70bf('0x2a')]||'';this[_0x70bf('0x2b')]=_0x187bfd[_0x70bf('0x2b')]||'';}module['exports']=AgentComplete;
\ No newline at end of file