Built motion from commit (unavailable).|2.5.31
[motion2.git] / server / services / ami / dialer / agentComplete.js
index 34bc998..1178617 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xdce9=['seconds','state','statedesc','Answer','scheduledat','type','campaigntype','outbound','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','uniqueid','calleridname','name','calleridnum','starttime','responsetime','answertime','endtime','format','holdtime','talktime','queue','membername','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','exports','util','lodash','moment','milliseconds','diff'];(function(_0x52285a,_0x4fa3fc){var _0x423654=function(_0x9774f5){while(--_0x9774f5){_0x52285a['push'](_0x52285a['shift']());}};_0x423654(++_0x4fa3fc);}(_0xdce9,0x199));var _0x9dce=function(_0xc38d85,_0x300ceb){_0xc38d85=_0xc38d85-0x0;var _0x47731b=_0xdce9[_0xc38d85];return _0x47731b;};'use strict';var util=require(_0x9dce('0x0'));var _=require(_0x9dce('0x1'));var moment=require(_0x9dce('0x2'));function getSeconds(_0xd0a2e5,_0x597367){var _0x378a81=moment(_0xd0a2e5)[_0x9dce('0x3')](0x0);var _0x1835c9=moment(_0x597367)[_0x9dce('0x3')](0x0);return _0x378a81[_0x9dce('0x4')](_0x1835c9,_0x9dce('0x5'));}function AgentComplete(_0x1136f2,_0x52867b){this[_0x9dce('0x6')]=0x4;this[_0x9dce('0x7')]=_0x9dce('0x8');this[_0x9dce('0x9')]=_0x1136f2[_0x9dce('0x9')];this[_0x9dce('0xa')]=_0x1136f2['type'];this[_0x9dce('0xb')]=_0x1136f2[_0x9dce('0xa')]===_0x9dce('0xc')?'queue':_0x1136f2['type'];this['countbusyretry']=_0x1136f2[_0x9dce('0xd')];this['countcongestionretry']=_0x1136f2[_0x9dce('0xe')];this[_0x9dce('0xf')]=_0x1136f2[_0x9dce('0xf')];this['countglobal']=_0x1136f2['countbusyretry']+_0x1136f2[_0x9dce('0xe')]+_0x1136f2[_0x9dce('0xf')]+_0x1136f2[_0x9dce('0x10')]+_0x1136f2[_0x9dce('0x11')]+_0x1136f2[_0x9dce('0x12')]+_0x1136f2[_0x9dce('0x13')]+_0x1136f2['countagentrejectretry'];this['countnosuchnumberretry']=_0x1136f2[_0x9dce('0x10')];this[_0x9dce('0x11')]=_0x1136f2[_0x9dce('0x11')];this[_0x9dce('0x12')]=_0x1136f2[_0x9dce('0x12')];this['countmachineretry']=_0x1136f2[_0x9dce('0x13')];this['countagentrejectretry']=_0x1136f2[_0x9dce('0x14')];this[_0x9dce('0x15')]=_0x52867b[_0x9dce('0x15')];this[_0x9dce('0x16')]=_0x1136f2[_0x9dce('0x17')];this[_0x9dce('0x18')]=_0x1136f2['number'];this[_0x9dce('0x19')]=_0x1136f2[_0x9dce('0x19')];this['responsetime']=_0x1136f2[_0x9dce('0x1a')];this[_0x9dce('0x1b')]=_0x1136f2[_0x9dce('0x1b')];this[_0x9dce('0x1c')]=moment()[_0x9dce('0x1d')]('YYYY-MM-DD\x20HH:mm:ss');this['ringtime']=getSeconds(_0x1136f2[_0x9dce('0x1a')],_0x1136f2[_0x9dce('0x19')]);this[_0x9dce('0x1e')]=getSeconds(_0x1136f2[_0x9dce('0x1b')],_0x1136f2[_0x9dce('0x1a')]);this[_0x9dce('0x1f')]=getSeconds(this[_0x9dce('0x1c')],_0x1136f2[_0x9dce('0x1b')]);this['queue']=_0x52867b[_0x9dce('0x20')];this[_0x9dce('0x21')]=_0x52867b[_0x9dce('0x21')];this['reason']=_0x52867b[_0x9dce('0x22')];this[_0x9dce('0x23')]=_0x1136f2['callback'];this['callbackuniqueid']=_0x1136f2[_0x9dce('0x24')];this['callbackat']=_0x1136f2[_0x9dce('0x25')];this[_0x9dce('0x26')]=_0x1136f2['recallme'];this[_0x9dce('0x27')]=_0x1136f2['ContactId'];this[_0x9dce('0x28')]=_0x1136f2['ListId'];this['UserId']=_0x1136f2['UserId'];this[_0x9dce('0x29')]=_0x1136f2[_0x9dce('0x29')];this[_0x9dce('0x2a')]=_0x1136f2['CampaignId'];this['originatecalleridnum']=_0x1136f2[_0x9dce('0x2b')]||'';this['originatecalleridname']=_0x1136f2[_0x9dce('0x2c')]||'';}module[_0x9dce('0x2d')]=AgentComplete;
\ No newline at end of file
+var _0xb625=['countnoanswerretry','countglobal','countdropretry','countabandonedretry','countmachineretry','countnosuchnumberretry','countagentrejectretry','uniqueid','calleridname','name','calleridnum','number','starttime','responsetime','answertime','endtime','format','YYYY-MM-DD\x20HH:mm:ss','ringtime','holdtime','talktime','queue','membername','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','exports','util','lodash','milliseconds','state','statedesc','Answer','scheduledat','type','campaigntype','countbusyretry','countcongestionretry'];(function(_0x5096f6,_0x203b13){var _0x45bf69=function(_0x2ddf7b){while(--_0x2ddf7b){_0x5096f6['push'](_0x5096f6['shift']());}};_0x45bf69(++_0x203b13);}(_0xb625,0xe0));var _0x5b62=function(_0x4d729f,_0x52bf8b){_0x4d729f=_0x4d729f-0x0;var _0x5ce12a=_0xb625[_0x4d729f];return _0x5ce12a;};'use strict';var util=require(_0x5b62('0x0'));var _=require(_0x5b62('0x1'));var moment=require('moment');function getSeconds(_0x45809a,_0xe43777){var _0x55fcc9=moment(_0x45809a)[_0x5b62('0x2')](0x0);var _0x4d0002=moment(_0xe43777)['milliseconds'](0x0);return _0x55fcc9['diff'](_0x4d0002,'seconds');}function AgentComplete(_0xcfe1f7,_0x444736){this[_0x5b62('0x3')]=0x4;this[_0x5b62('0x4')]=_0x5b62('0x5');this[_0x5b62('0x6')]=_0xcfe1f7['scheduledat'];this['type']=_0xcfe1f7[_0x5b62('0x7')];this[_0x5b62('0x8')]=_0xcfe1f7[_0x5b62('0x7')]==='outbound'?'queue':_0xcfe1f7[_0x5b62('0x7')];this[_0x5b62('0x9')]=_0xcfe1f7[_0x5b62('0x9')];this[_0x5b62('0xa')]=_0xcfe1f7[_0x5b62('0xa')];this[_0x5b62('0xb')]=_0xcfe1f7['countnoanswerretry'];this[_0x5b62('0xc')]=_0xcfe1f7['countbusyretry']+_0xcfe1f7['countcongestionretry']+_0xcfe1f7[_0x5b62('0xb')]+_0xcfe1f7['countnosuchnumberretry']+_0xcfe1f7[_0x5b62('0xd')]+_0xcfe1f7[_0x5b62('0xe')]+_0xcfe1f7[_0x5b62('0xf')]+_0xcfe1f7['countagentrejectretry'];this[_0x5b62('0x10')]=_0xcfe1f7['countnosuchnumberretry'];this[_0x5b62('0xd')]=_0xcfe1f7[_0x5b62('0xd')];this[_0x5b62('0xe')]=_0xcfe1f7[_0x5b62('0xe')];this[_0x5b62('0xf')]=_0xcfe1f7[_0x5b62('0xf')];this[_0x5b62('0x11')]=_0xcfe1f7['countagentrejectretry'];this['uniqueid']=_0x444736[_0x5b62('0x12')];this[_0x5b62('0x13')]=_0xcfe1f7[_0x5b62('0x14')];this[_0x5b62('0x15')]=_0xcfe1f7[_0x5b62('0x16')];this[_0x5b62('0x17')]=_0xcfe1f7[_0x5b62('0x17')];this[_0x5b62('0x18')]=_0xcfe1f7['responsetime'];this[_0x5b62('0x19')]=_0xcfe1f7[_0x5b62('0x19')];this[_0x5b62('0x1a')]=moment()[_0x5b62('0x1b')](_0x5b62('0x1c'));this[_0x5b62('0x1d')]=getSeconds(_0xcfe1f7[_0x5b62('0x18')],_0xcfe1f7['starttime']);this[_0x5b62('0x1e')]=getSeconds(_0xcfe1f7[_0x5b62('0x19')],_0xcfe1f7[_0x5b62('0x18')]);this[_0x5b62('0x1f')]=getSeconds(this[_0x5b62('0x1a')],_0xcfe1f7['answertime']);this[_0x5b62('0x20')]=_0x444736[_0x5b62('0x20')];this['membername']=_0x444736[_0x5b62('0x21')];this[_0x5b62('0x22')]=_0x444736['reason'];this[_0x5b62('0x23')]=_0xcfe1f7[_0x5b62('0x23')];this['callbackuniqueid']=_0xcfe1f7[_0x5b62('0x24')];this['callbackat']=_0xcfe1f7[_0x5b62('0x25')];this[_0x5b62('0x26')]=_0xcfe1f7['recallme'];this[_0x5b62('0x27')]=_0xcfe1f7['ContactId'];this[_0x5b62('0x28')]=_0xcfe1f7[_0x5b62('0x28')];this['UserId']=_0xcfe1f7[_0x5b62('0x29')];this['VoiceQueueId']=_0xcfe1f7[_0x5b62('0x2a')];this['CampaignId']=_0xcfe1f7[_0x5b62('0x2b')];this[_0x5b62('0x2c')]=_0xcfe1f7[_0x5b62('0x2c')]||'';this[_0x5b62('0x2d')]=_0xcfe1f7[_0x5b62('0x2d')]||'';}module[_0x5b62('0x2e')]=AgentComplete;
\ No newline at end of file