Built motion from commit ddca4d0d.|2.5.47
[motion2.git] / server / services / ami / dialer / queueCallerAbandon.js
index 6c9d903..32c2d81 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x607c=['ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','exports','lodash','moment','milliseconds','seconds','scheduledat','type','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','calleridname','name','calleridnum','number','starttime','responsetime','droptime','ringtime','holdtime','talktime','queue','membername','reason','callback','callbackuniqueid','recallme'];(function(_0x4ffa64,_0x271035){var _0x5da001=function(_0x7d1940){while(--_0x7d1940){_0x4ffa64['push'](_0x4ffa64['shift']());}};_0x5da001(++_0x271035);}(_0x607c,0x1dc));var _0xc607=function(_0x4c4fba,_0x399c5e){_0x4c4fba=_0x4c4fba-0x0;var _0x10e4d0=_0x607c[_0x4c4fba];return _0x10e4d0;};'use strict';var util=require('util');var _=require(_0xc607('0x0'));var moment=require(_0xc607('0x1'));function getSeconds(_0x4cbaf0,_0x43cac1){var _0x2f0680=moment(_0x4cbaf0)[_0xc607('0x2')](0x0);var _0xe7ef3b=moment(_0x43cac1)[_0xc607('0x2')](0x0);return _0x2f0680['diff'](_0xe7ef3b,_0xc607('0x3'));}function QueueCallerAbandon(_0x10d6c9,_0x4debe7){this['scheduledat']=_0x10d6c9[_0xc607('0x4')];this[_0xc607('0x5')]=_0x10d6c9[_0xc607('0x5')];this['campaigntype']=_0x10d6c9[_0xc607('0x5')]==='outbound'?'queue':_0x10d6c9['type'];this['countbusyretry']=_0x10d6c9[_0xc607('0x6')];this[_0xc607('0x7')]=_0x10d6c9[_0xc607('0x7')];this[_0xc607('0x8')]=_0x10d6c9[_0xc607('0x8')];this[_0xc607('0x9')]=_0x10d6c9['countbusyretry']+_0x10d6c9[_0xc607('0x7')]+_0x10d6c9[_0xc607('0x8')]+_0x10d6c9[_0xc607('0xa')]+_0x10d6c9[_0xc607('0xb')]+_0x10d6c9[_0xc607('0xc')]+_0x10d6c9[_0xc607('0xd')]+_0x10d6c9['countagentrejectretry'];this['countnosuchnumberretry']=_0x10d6c9['countnosuchnumberretry'];this[_0xc607('0xb')]=_0x10d6c9[_0xc607('0xb')];this[_0xc607('0xc')]=_0x10d6c9['countabandonedretry'];this[_0xc607('0xd')]=_0x10d6c9[_0xc607('0xd')];this[_0xc607('0xe')]=_0x10d6c9[_0xc607('0xe')];this['uniqueid']=_0x4debe7['uniqueid'];this[_0xc607('0xf')]=_0x10d6c9[_0xc607('0x10')];this[_0xc607('0x11')]=_0x10d6c9[_0xc607('0x12')];this[_0xc607('0x13')]=_0x10d6c9['starttime'];this[_0xc607('0x14')]=_0x10d6c9[_0xc607('0x14')];this[_0xc607('0x15')]=_0x10d6c9[_0xc607('0x15')];this['endtime']=this[_0xc607('0x15')];this[_0xc607('0x16')]=getSeconds(_0x10d6c9[_0xc607('0x14')],_0x10d6c9[_0xc607('0x13')]);this[_0xc607('0x17')]=getSeconds(this[_0xc607('0x15')],_0x10d6c9['responsetime']);this[_0xc607('0x18')]=0x0;this[_0xc607('0x19')]=_0x4debe7[_0xc607('0x19')];this[_0xc607('0x1a')]=_0x4debe7['connectedlinename'];this[_0xc607('0x1b')]=_0x4debe7[_0xc607('0x1b')];this[_0xc607('0x1c')]=_0x10d6c9['callback'];this[_0xc607('0x1d')]=_0x10d6c9[_0xc607('0x1d')];this['callbackat']=_0x10d6c9['callbackat'];this[_0xc607('0x1e')]=_0x10d6c9[_0xc607('0x1e')];this[_0xc607('0x1f')]=_0x10d6c9[_0xc607('0x1f')];this[_0xc607('0x20')]=_0x10d6c9['ListId'];this[_0xc607('0x21')]=_0x10d6c9[_0xc607('0x21')];this[_0xc607('0x22')]=_0x10d6c9[_0xc607('0x22')];this['CampaignId']=_0x10d6c9[_0xc607('0x23')];this[_0xc607('0x24')]=_0x10d6c9[_0xc607('0x24')]||'';this[_0xc607('0x25')]=_0x10d6c9[_0xc607('0x25')]||'';}module[_0xc607('0x26')]=QueueCallerAbandon;
\ No newline at end of file
+var _0x3302=['originatecalleridnum','originatecalleridname','exports','util','lodash','milliseconds','diff','seconds','scheduledat','type','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','uniqueid','calleridname','name','calleridnum','number','responsetime','droptime','ringtime','holdtime','talktime','membername','connectedlinename','reason','callback','callbackuniqueid','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId'];(function(_0x3fbc83,_0x47a239){var _0x4b8438=function(_0x2a972f){while(--_0x2a972f){_0x3fbc83['push'](_0x3fbc83['shift']());}};_0x4b8438(++_0x47a239);}(_0x3302,0xff));var _0x2330=function(_0x11bfb4,_0xda2042){_0x11bfb4=_0x11bfb4-0x0;var _0x28f0a9=_0x3302[_0x11bfb4];return _0x28f0a9;};'use strict';var util=require(_0x2330('0x0'));var _=require(_0x2330('0x1'));var moment=require('moment');function getSeconds(_0x8707ad,_0x28ef13){var _0x3428ea=moment(_0x8707ad)['milliseconds'](0x0);var _0x366a60=moment(_0x28ef13)[_0x2330('0x2')](0x0);return _0x3428ea[_0x2330('0x3')](_0x366a60,_0x2330('0x4'));}function QueueCallerAbandon(_0x1de464,_0x3c9c33){this[_0x2330('0x5')]=_0x1de464[_0x2330('0x5')];this[_0x2330('0x6')]=_0x1de464[_0x2330('0x6')];this['campaigntype']=_0x1de464[_0x2330('0x6')]===_0x2330('0x7')?_0x2330('0x8'):_0x1de464['type'];this[_0x2330('0x9')]=_0x1de464[_0x2330('0x9')];this[_0x2330('0xa')]=_0x1de464[_0x2330('0xa')];this[_0x2330('0xb')]=_0x1de464['countnoanswerretry'];this[_0x2330('0xc')]=_0x1de464['countbusyretry']+_0x1de464[_0x2330('0xa')]+_0x1de464[_0x2330('0xb')]+_0x1de464[_0x2330('0xd')]+_0x1de464[_0x2330('0xe')]+_0x1de464[_0x2330('0xf')]+_0x1de464['countmachineretry']+_0x1de464['countagentrejectretry'];this[_0x2330('0xd')]=_0x1de464[_0x2330('0xd')];this[_0x2330('0xe')]=_0x1de464[_0x2330('0xe')];this[_0x2330('0xf')]=_0x1de464[_0x2330('0xf')];this[_0x2330('0x10')]=_0x1de464[_0x2330('0x10')];this[_0x2330('0x11')]=_0x1de464['countagentrejectretry'];this[_0x2330('0x12')]=_0x3c9c33['uniqueid'];this[_0x2330('0x13')]=_0x1de464[_0x2330('0x14')];this[_0x2330('0x15')]=_0x1de464[_0x2330('0x16')];this['starttime']=_0x1de464['starttime'];this[_0x2330('0x17')]=_0x1de464[_0x2330('0x17')];this[_0x2330('0x18')]=_0x1de464[_0x2330('0x18')];this['endtime']=this[_0x2330('0x18')];this[_0x2330('0x19')]=getSeconds(_0x1de464[_0x2330('0x17')],_0x1de464['starttime']);this[_0x2330('0x1a')]=getSeconds(this[_0x2330('0x18')],_0x1de464[_0x2330('0x17')]);this[_0x2330('0x1b')]=0x0;this[_0x2330('0x8')]=_0x3c9c33[_0x2330('0x8')];this[_0x2330('0x1c')]=_0x3c9c33[_0x2330('0x1d')];this[_0x2330('0x1e')]=_0x3c9c33['reason'];this[_0x2330('0x1f')]=_0x1de464[_0x2330('0x1f')];this[_0x2330('0x20')]=_0x1de464[_0x2330('0x20')];this['callbackat']=_0x1de464['callbackat'];this[_0x2330('0x21')]=_0x1de464[_0x2330('0x21')];this[_0x2330('0x22')]=_0x1de464[_0x2330('0x22')];this[_0x2330('0x23')]=_0x1de464[_0x2330('0x23')];this[_0x2330('0x24')]=_0x1de464[_0x2330('0x24')];this[_0x2330('0x25')]=_0x1de464[_0x2330('0x25')];this[_0x2330('0x26')]=_0x1de464[_0x2330('0x26')];this[_0x2330('0x27')]=_0x1de464[_0x2330('0x27')]||'';this['originatecalleridname']=_0x1de464[_0x2330('0x28')]||'';}module[_0x2330('0x29')]=QueueCallerAbandon;
\ No newline at end of file