Built motion from commit da617fac.|2.6.6
[motion2.git] / server / services / ami / dialer / queueCallerAbandon.js
index 3068efa..a0f4a79 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6ef5=['ContactId','ListId','UserId','CampaignId','originatecalleridnum','originatecalleridname','exports','util','lodash','moment','milliseconds','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','countnosuchnumberretry','uniqueid','calleridname','name','calleridnum','number','starttime','responsetime','droptime','ringtime','holdtime','talktime','membername','connectedlinename','callback','callbackat','recallme'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x6ef5,0x1a1));var _0x56ef=function(_0x55fc23,_0x5a1848){_0x55fc23=_0x55fc23-0x0;var _0x24cc90=_0x6ef5[_0x55fc23];return _0x24cc90;};'use strict';var util=require(_0x56ef('0x0'));var _=require(_0x56ef('0x1'));var moment=require(_0x56ef('0x2'));function getSeconds(_0x32d903,_0x1e1f21){var _0x14965e=moment(_0x32d903)[_0x56ef('0x3')](0x0);var _0x403624=moment(_0x1e1f21)[_0x56ef('0x3')](0x0);return _0x14965e['diff'](_0x403624,'seconds');}function QueueCallerAbandon(_0x75e12d,_0x2c0568){this[_0x56ef('0x4')]=_0x75e12d[_0x56ef('0x4')];this[_0x56ef('0x5')]=_0x75e12d[_0x56ef('0x5')];this[_0x56ef('0x6')]=_0x75e12d['type']===_0x56ef('0x7')?_0x56ef('0x8'):_0x75e12d[_0x56ef('0x5')];this[_0x56ef('0x9')]=_0x75e12d[_0x56ef('0x9')];this[_0x56ef('0xa')]=_0x75e12d[_0x56ef('0xa')];this[_0x56ef('0xb')]=_0x75e12d[_0x56ef('0xb')];this[_0x56ef('0xc')]=_0x75e12d[_0x56ef('0x9')]+_0x75e12d['countcongestionretry']+_0x75e12d[_0x56ef('0xb')]+_0x75e12d['countnosuchnumberretry']+_0x75e12d[_0x56ef('0xd')]+_0x75e12d[_0x56ef('0xe')]+_0x75e12d[_0x56ef('0xf')]+_0x75e12d[_0x56ef('0x10')];this[_0x56ef('0x11')]=_0x75e12d[_0x56ef('0x11')];this[_0x56ef('0xd')]=_0x75e12d['countdropretry'];this[_0x56ef('0xe')]=_0x75e12d[_0x56ef('0xe')];this['countmachineretry']=_0x75e12d[_0x56ef('0xf')];this[_0x56ef('0x10')]=_0x75e12d[_0x56ef('0x10')];this['uniqueid']=_0x2c0568[_0x56ef('0x12')];this[_0x56ef('0x13')]=_0x75e12d[_0x56ef('0x14')];this[_0x56ef('0x15')]=_0x75e12d[_0x56ef('0x16')];this[_0x56ef('0x17')]=_0x75e12d[_0x56ef('0x17')];this[_0x56ef('0x18')]=_0x75e12d['responsetime'];this['droptime']=_0x75e12d[_0x56ef('0x19')];this['endtime']=this[_0x56ef('0x19')];this[_0x56ef('0x1a')]=getSeconds(_0x75e12d[_0x56ef('0x18')],_0x75e12d[_0x56ef('0x17')]);this[_0x56ef('0x1b')]=getSeconds(this[_0x56ef('0x19')],_0x75e12d[_0x56ef('0x18')]);this[_0x56ef('0x1c')]=0x0;this[_0x56ef('0x8')]=_0x2c0568['queue'];this[_0x56ef('0x1d')]=_0x2c0568[_0x56ef('0x1e')];this['reason']=_0x2c0568['reason'];this[_0x56ef('0x1f')]=_0x75e12d[_0x56ef('0x1f')];this['callbackuniqueid']=_0x75e12d['callbackuniqueid'];this['callbackat']=_0x75e12d[_0x56ef('0x20')];this[_0x56ef('0x21')]=_0x75e12d['recallme'];this[_0x56ef('0x22')]=_0x75e12d[_0x56ef('0x22')];this[_0x56ef('0x23')]=_0x75e12d[_0x56ef('0x23')];this[_0x56ef('0x24')]=_0x75e12d[_0x56ef('0x24')];this['VoiceQueueId']=_0x75e12d['VoiceQueueId'];this[_0x56ef('0x25')]=_0x75e12d[_0x56ef('0x25')];this[_0x56ef('0x26')]=_0x75e12d[_0x56ef('0x26')]||'';this[_0x56ef('0x27')]=_0x75e12d[_0x56ef('0x27')]||'';}module[_0x56ef('0x28')]=QueueCallerAbandon;
\ No newline at end of file
+var _0xf15d=['originatecalleridnum','originatecalleridname','exports','util','lodash','moment','milliseconds','scheduledat','type','campaigntype','queue','countcongestionretry','countnoanswerretry','countglobal','countbusyretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','uniqueid','calleridname','name','calleridnum','number','starttime','responsetime','droptime','endtime','holdtime','membername','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId'];(function(_0x3b14ad,_0x5e4401){var _0x392677=function(_0x4c9139){while(--_0x4c9139){_0x3b14ad['push'](_0x3b14ad['shift']());}};_0x392677(++_0x5e4401);}(_0xf15d,0x122));var _0xdf15=function(_0x5ade1f,_0x1dc916){_0x5ade1f=_0x5ade1f-0x0;var _0x357d1f=_0xf15d[_0x5ade1f];return _0x357d1f;};'use strict';var util=require(_0xdf15('0x0'));var _=require(_0xdf15('0x1'));var moment=require(_0xdf15('0x2'));function getSeconds(_0x4aa09e,_0x433a95){var _0x39d67b=moment(_0x4aa09e)[_0xdf15('0x3')](0x0);var _0x5b98ef=moment(_0x433a95)[_0xdf15('0x3')](0x0);return _0x39d67b['diff'](_0x5b98ef,'seconds');}function QueueCallerAbandon(_0x44f5ba,_0x26c243){this['scheduledat']=_0x44f5ba[_0xdf15('0x4')];this[_0xdf15('0x5')]=_0x44f5ba[_0xdf15('0x5')];this[_0xdf15('0x6')]=_0x44f5ba[_0xdf15('0x5')]==='outbound'?_0xdf15('0x7'):_0x44f5ba[_0xdf15('0x5')];this['countbusyretry']=_0x44f5ba['countbusyretry'];this[_0xdf15('0x8')]=_0x44f5ba['countcongestionretry'];this[_0xdf15('0x9')]=_0x44f5ba[_0xdf15('0x9')];this[_0xdf15('0xa')]=_0x44f5ba[_0xdf15('0xb')]+_0x44f5ba[_0xdf15('0x8')]+_0x44f5ba[_0xdf15('0x9')]+_0x44f5ba[_0xdf15('0xc')]+_0x44f5ba[_0xdf15('0xd')]+_0x44f5ba[_0xdf15('0xe')]+_0x44f5ba[_0xdf15('0xf')]+_0x44f5ba[_0xdf15('0x10')];this['countnosuchnumberretry']=_0x44f5ba[_0xdf15('0xc')];this[_0xdf15('0xd')]=_0x44f5ba[_0xdf15('0xd')];this['countabandonedretry']=_0x44f5ba['countabandonedretry'];this[_0xdf15('0xf')]=_0x44f5ba[_0xdf15('0xf')];this[_0xdf15('0x10')]=_0x44f5ba['countagentrejectretry'];this[_0xdf15('0x11')]=_0x26c243['uniqueid'];this[_0xdf15('0x12')]=_0x44f5ba[_0xdf15('0x13')];this[_0xdf15('0x14')]=_0x44f5ba[_0xdf15('0x15')];this['starttime']=_0x44f5ba[_0xdf15('0x16')];this[_0xdf15('0x17')]=_0x44f5ba[_0xdf15('0x17')];this[_0xdf15('0x18')]=_0x44f5ba[_0xdf15('0x18')];this[_0xdf15('0x19')]=this[_0xdf15('0x18')];this['ringtime']=getSeconds(_0x44f5ba[_0xdf15('0x17')],_0x44f5ba[_0xdf15('0x16')]);this[_0xdf15('0x1a')]=getSeconds(this[_0xdf15('0x18')],_0x44f5ba['responsetime']);this['talktime']=0x0;this[_0xdf15('0x7')]=_0x26c243[_0xdf15('0x7')];this[_0xdf15('0x1b')]=_0x26c243['connectedlinename'];this[_0xdf15('0x1c')]=_0x26c243['reason'];this['callback']=_0x44f5ba[_0xdf15('0x1d')];this[_0xdf15('0x1e')]=_0x44f5ba[_0xdf15('0x1e')];this[_0xdf15('0x1f')]=_0x44f5ba[_0xdf15('0x1f')];this['recallme']=_0x44f5ba[_0xdf15('0x20')];this[_0xdf15('0x21')]=_0x44f5ba[_0xdf15('0x21')];this[_0xdf15('0x22')]=_0x44f5ba[_0xdf15('0x22')];this[_0xdf15('0x23')]=_0x44f5ba[_0xdf15('0x23')];this[_0xdf15('0x24')]=_0x44f5ba[_0xdf15('0x24')];this[_0xdf15('0x25')]=_0x44f5ba[_0xdf15('0x25')];this[_0xdf15('0x26')]=_0x44f5ba['originatecalleridnum']||'';this[_0xdf15('0x27')]=_0x44f5ba['originatecalleridname']||'';}module[_0xdf15('0x28')]=QueueCallerAbandon;
\ No newline at end of file