Built motion from commit fade34fd.|2.5.41
[motion2.git] / server / services / ami / dialer / agentComplete.js
index 7d4468c..a14b204 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x25a9=['uniqueid','calleridname','name','number','starttime','responsetime','endtime','format','ringtime','holdtime','answertime','talktime','queue','membername','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','lodash','moment','milliseconds','state','statedesc','Answer','scheduledat','type','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry'];(function(_0x46f3f8,_0x12c74b){var _0xbc57cd=function(_0x34df37){while(--_0x34df37){_0x46f3f8['push'](_0x46f3f8['shift']());}};_0xbc57cd(++_0x12c74b);}(_0x25a9,0xf1));var _0x925a=function(_0x5a6da9,_0x32df4d){_0x5a6da9=_0x5a6da9-0x0;var _0x29d30f=_0x25a9[_0x5a6da9];return _0x29d30f;};'use strict';var util=require('util');var _=require(_0x925a('0x0'));var moment=require(_0x925a('0x1'));function getSeconds(_0x345707,_0x3052f3){var _0x6114d9=moment(_0x345707)['milliseconds'](0x0);var _0x240e80=moment(_0x3052f3)[_0x925a('0x2')](0x0);return _0x6114d9['diff'](_0x240e80,'seconds');}function AgentComplete(_0x9f96e2,_0x5271bc){this[_0x925a('0x3')]=0x4;this[_0x925a('0x4')]=_0x925a('0x5');this[_0x925a('0x6')]=_0x9f96e2[_0x925a('0x6')];this[_0x925a('0x7')]=_0x9f96e2[_0x925a('0x7')];this['campaigntype']=_0x9f96e2[_0x925a('0x7')]==='outbound'?'queue':_0x9f96e2['type'];this[_0x925a('0x8')]=_0x9f96e2['countbusyretry'];this[_0x925a('0x9')]=_0x9f96e2[_0x925a('0x9')];this[_0x925a('0xa')]=_0x9f96e2[_0x925a('0xa')];this[_0x925a('0xb')]=_0x9f96e2[_0x925a('0x8')]+_0x9f96e2['countcongestionretry']+_0x9f96e2[_0x925a('0xa')]+_0x9f96e2[_0x925a('0xc')]+_0x9f96e2[_0x925a('0xd')]+_0x9f96e2[_0x925a('0xe')]+_0x9f96e2[_0x925a('0xf')]+_0x9f96e2[_0x925a('0x10')];this[_0x925a('0xc')]=_0x9f96e2['countnosuchnumberretry'];this[_0x925a('0xd')]=_0x9f96e2[_0x925a('0xd')];this[_0x925a('0xe')]=_0x9f96e2[_0x925a('0xe')];this['countmachineretry']=_0x9f96e2[_0x925a('0xf')];this[_0x925a('0x10')]=_0x9f96e2['countagentrejectretry'];this[_0x925a('0x11')]=_0x5271bc[_0x925a('0x11')];this[_0x925a('0x12')]=_0x9f96e2[_0x925a('0x13')];this['calleridnum']=_0x9f96e2[_0x925a('0x14')];this[_0x925a('0x15')]=_0x9f96e2[_0x925a('0x15')];this[_0x925a('0x16')]=_0x9f96e2[_0x925a('0x16')];this['answertime']=_0x9f96e2['answertime'];this[_0x925a('0x17')]=moment()[_0x925a('0x18')]('YYYY-MM-DD\x20HH:mm:ss');this[_0x925a('0x19')]=getSeconds(_0x9f96e2[_0x925a('0x16')],_0x9f96e2[_0x925a('0x15')]);this[_0x925a('0x1a')]=getSeconds(_0x9f96e2[_0x925a('0x1b')],_0x9f96e2[_0x925a('0x16')]);this[_0x925a('0x1c')]=getSeconds(this[_0x925a('0x17')],_0x9f96e2['answertime']);this[_0x925a('0x1d')]=_0x5271bc[_0x925a('0x1d')];this[_0x925a('0x1e')]=_0x5271bc['membername'];this[_0x925a('0x1f')]=_0x5271bc[_0x925a('0x1f')];this['callback']=_0x9f96e2[_0x925a('0x20')];this['callbackuniqueid']=_0x9f96e2[_0x925a('0x21')];this[_0x925a('0x22')]=_0x9f96e2[_0x925a('0x22')];this[_0x925a('0x23')]=_0x9f96e2[_0x925a('0x23')];this[_0x925a('0x24')]=_0x9f96e2[_0x925a('0x24')];this[_0x925a('0x25')]=_0x9f96e2[_0x925a('0x25')];this[_0x925a('0x26')]=_0x9f96e2['UserId'];this[_0x925a('0x27')]=_0x9f96e2[_0x925a('0x27')];this[_0x925a('0x28')]=_0x9f96e2[_0x925a('0x28')];this['originatecalleridnum']=_0x9f96e2[_0x925a('0x29')]||'';this['originatecalleridname']=_0x9f96e2[_0x925a('0x2a')]||'';}module['exports']=AgentComplete;
\ No newline at end of file
+var _0xc09b=['responsetime','answertime','endtime','format','YYYY-MM-DD\x20HH:mm:ss','ringtime','holdtime','talktime','membername','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','exports','util','lodash','diff','seconds','state','statedesc','Answer','scheduledat','type','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countmachineretry','countagentrejectretry','countdropretry','countabandonedretry','uniqueid','name','number','starttime'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0xc09b,0x151));var _0xbc09=function(_0xaa6078,_0x44eadc){_0xaa6078=_0xaa6078-0x0;var _0x46000b=_0xc09b[_0xaa6078];return _0x46000b;};'use strict';var util=require(_0xbc09('0x0'));var _=require(_0xbc09('0x1'));var moment=require('moment');function getSeconds(_0x1d77d2,_0x188306){var _0x20cbd4=moment(_0x1d77d2)['milliseconds'](0x0);var _0x555903=moment(_0x188306)['milliseconds'](0x0);return _0x20cbd4[_0xbc09('0x2')](_0x555903,_0xbc09('0x3'));}function AgentComplete(_0x4f4dc1,_0x3921b1){this[_0xbc09('0x4')]=0x4;this[_0xbc09('0x5')]=_0xbc09('0x6');this[_0xbc09('0x7')]=_0x4f4dc1[_0xbc09('0x7')];this[_0xbc09('0x8')]=_0x4f4dc1[_0xbc09('0x8')];this['campaigntype']=_0x4f4dc1[_0xbc09('0x8')]===_0xbc09('0x9')?_0xbc09('0xa'):_0x4f4dc1[_0xbc09('0x8')];this[_0xbc09('0xb')]=_0x4f4dc1[_0xbc09('0xb')];this[_0xbc09('0xc')]=_0x4f4dc1[_0xbc09('0xc')];this[_0xbc09('0xd')]=_0x4f4dc1[_0xbc09('0xd')];this['countglobal']=_0x4f4dc1[_0xbc09('0xb')]+_0x4f4dc1[_0xbc09('0xc')]+_0x4f4dc1[_0xbc09('0xd')]+_0x4f4dc1[_0xbc09('0xe')]+_0x4f4dc1['countdropretry']+_0x4f4dc1['countabandonedretry']+_0x4f4dc1[_0xbc09('0xf')]+_0x4f4dc1[_0xbc09('0x10')];this[_0xbc09('0xe')]=_0x4f4dc1[_0xbc09('0xe')];this[_0xbc09('0x11')]=_0x4f4dc1[_0xbc09('0x11')];this[_0xbc09('0x12')]=_0x4f4dc1[_0xbc09('0x12')];this[_0xbc09('0xf')]=_0x4f4dc1['countmachineretry'];this[_0xbc09('0x10')]=_0x4f4dc1[_0xbc09('0x10')];this[_0xbc09('0x13')]=_0x3921b1[_0xbc09('0x13')];this['calleridname']=_0x4f4dc1[_0xbc09('0x14')];this['calleridnum']=_0x4f4dc1[_0xbc09('0x15')];this[_0xbc09('0x16')]=_0x4f4dc1[_0xbc09('0x16')];this[_0xbc09('0x17')]=_0x4f4dc1[_0xbc09('0x17')];this[_0xbc09('0x18')]=_0x4f4dc1[_0xbc09('0x18')];this[_0xbc09('0x19')]=moment()[_0xbc09('0x1a')](_0xbc09('0x1b'));this[_0xbc09('0x1c')]=getSeconds(_0x4f4dc1['responsetime'],_0x4f4dc1[_0xbc09('0x16')]);this[_0xbc09('0x1d')]=getSeconds(_0x4f4dc1[_0xbc09('0x18')],_0x4f4dc1['responsetime']);this[_0xbc09('0x1e')]=getSeconds(this['endtime'],_0x4f4dc1[_0xbc09('0x18')]);this['queue']=_0x3921b1[_0xbc09('0xa')];this[_0xbc09('0x1f')]=_0x3921b1[_0xbc09('0x1f')];this[_0xbc09('0x20')]=_0x3921b1[_0xbc09('0x20')];this[_0xbc09('0x21')]=_0x4f4dc1[_0xbc09('0x21')];this[_0xbc09('0x22')]=_0x4f4dc1['callbackuniqueid'];this['callbackat']=_0x4f4dc1[_0xbc09('0x23')];this[_0xbc09('0x24')]=_0x4f4dc1[_0xbc09('0x24')];this[_0xbc09('0x25')]=_0x4f4dc1[_0xbc09('0x25')];this['ListId']=_0x4f4dc1[_0xbc09('0x26')];this[_0xbc09('0x27')]=_0x4f4dc1[_0xbc09('0x27')];this['VoiceQueueId']=_0x4f4dc1[_0xbc09('0x28')];this[_0xbc09('0x29')]=_0x4f4dc1['CampaignId'];this[_0xbc09('0x2a')]=_0x4f4dc1['originatecalleridnum']||'';this[_0xbc09('0x2b')]=_0x4f4dc1['originatecalleridname']||'';}module[_0xbc09('0x2c')]=AgentComplete;
\ No newline at end of file