Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / services / ami / dialer / queueCallerAbandon.js
index 60dfec1..cedf702 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbc8a=['starttime','responsetime','droptime','ringtime','holdtime','membername','connectedlinename','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','originatecalleridnum','originatecalleridname','util','lodash','milliseconds','scheduledat','type','campaigntype','queue','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','uniqueid','name','calleridnum','number'];(function(_0x98092f,_0xd66a2e){var _0x25aa3a=function(_0x1cacd1){while(--_0x1cacd1){_0x98092f['push'](_0x98092f['shift']());}};_0x25aa3a(++_0xd66a2e);}(_0xbc8a,0xf0));var _0xabc8=function(_0x5c2bef,_0x16806e){_0x5c2bef=_0x5c2bef-0x0;var _0xd60cc1=_0xbc8a[_0x5c2bef];return _0xd60cc1;};'use strict';var util=require(_0xabc8('0x0'));var _=require(_0xabc8('0x1'));var moment=require('moment');function getSeconds(_0x3cc483,_0xa5d99){var _0x5873d5=moment(_0x3cc483)['milliseconds'](0x0);var _0x5bc563=moment(_0xa5d99)[_0xabc8('0x2')](0x0);return _0x5873d5['diff'](_0x5bc563,'seconds');}function QueueCallerAbandon(_0x262730,_0x3e5a20){this[_0xabc8('0x3')]=_0x262730[_0xabc8('0x3')];this[_0xabc8('0x4')]=_0x262730[_0xabc8('0x4')];this[_0xabc8('0x5')]=_0x262730['type']==='outbound'?_0xabc8('0x6'):_0x262730[_0xabc8('0x4')];this[_0xabc8('0x7')]=_0x262730['countbusyretry'];this[_0xabc8('0x8')]=_0x262730[_0xabc8('0x8')];this[_0xabc8('0x9')]=_0x262730[_0xabc8('0x9')];this['countglobal']=_0x262730[_0xabc8('0x7')]+_0x262730[_0xabc8('0x8')]+_0x262730[_0xabc8('0x9')]+_0x262730[_0xabc8('0xa')]+_0x262730[_0xabc8('0xb')]+_0x262730[_0xabc8('0xc')]+_0x262730[_0xabc8('0xd')]+_0x262730[_0xabc8('0xe')];this[_0xabc8('0xa')]=_0x262730['countnosuchnumberretry'];this['countdropretry']=_0x262730['countdropretry'];this[_0xabc8('0xc')]=_0x262730['countabandonedretry'];this[_0xabc8('0xd')]=_0x262730[_0xabc8('0xd')];this[_0xabc8('0xe')]=_0x262730['countagentrejectretry'];this[_0xabc8('0xf')]=_0x3e5a20['uniqueid'];this['calleridname']=_0x262730[_0xabc8('0x10')];this[_0xabc8('0x11')]=_0x262730[_0xabc8('0x12')];this[_0xabc8('0x13')]=_0x262730[_0xabc8('0x13')];this[_0xabc8('0x14')]=_0x262730[_0xabc8('0x14')];this[_0xabc8('0x15')]=_0x262730[_0xabc8('0x15')];this['endtime']=this[_0xabc8('0x15')];this[_0xabc8('0x16')]=getSeconds(_0x262730[_0xabc8('0x14')],_0x262730[_0xabc8('0x13')]);this[_0xabc8('0x17')]=getSeconds(this[_0xabc8('0x15')],_0x262730[_0xabc8('0x14')]);this['talktime']=0x0;this[_0xabc8('0x6')]=_0x3e5a20[_0xabc8('0x6')];this[_0xabc8('0x18')]=_0x3e5a20[_0xabc8('0x19')];this[_0xabc8('0x1a')]=_0x3e5a20[_0xabc8('0x1a')];this[_0xabc8('0x1b')]=_0x262730[_0xabc8('0x1b')];this[_0xabc8('0x1c')]=_0x262730['callbackuniqueid'];this[_0xabc8('0x1d')]=_0x262730[_0xabc8('0x1d')];this[_0xabc8('0x1e')]=_0x262730[_0xabc8('0x1e')];this['ContactId']=_0x262730[_0xabc8('0x1f')];this['ListId']=_0x262730[_0xabc8('0x20')];this[_0xabc8('0x21')]=_0x262730[_0xabc8('0x21')];this[_0xabc8('0x22')]=_0x262730[_0xabc8('0x22')];this['CampaignId']=_0x262730['CampaignId'];this[_0xabc8('0x23')]=_0x262730['originatecalleridnum']||'';this[_0xabc8('0x24')]=_0x262730[_0xabc8('0x24')]||'';}module['exports']=QueueCallerAbandon;
\ No newline at end of file
+var _0xe741=['countnoanswerretry','countnosuchnumberretry','countmachineretry','countagentrejectretry','countdropretry','countabandonedretry','uniqueid','calleridname','name','calleridnum','starttime','responsetime','droptime','endtime','ringtime','holdtime','membername','connectedlinename','reason','callback','callbackuniqueid','callbackat','recallme','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridname','exports','util','lodash','moment','milliseconds','diff','scheduledat','type','outbound','queue','countbusyretry','countcongestionretry'];(function(_0x460306,_0x798677){var _0x34cfb3=function(_0x11d8aa){while(--_0x11d8aa){_0x460306['push'](_0x460306['shift']());}};_0x34cfb3(++_0x798677);}(_0xe741,0x185));var _0x1e74=function(_0x1969a7,_0x5a133a){_0x1969a7=_0x1969a7-0x0;var _0x3d665f=_0xe741[_0x1969a7];return _0x3d665f;};'use strict';var util=require(_0x1e74('0x0'));var _=require(_0x1e74('0x1'));var moment=require(_0x1e74('0x2'));function getSeconds(_0xe5d67e,_0xee7127){var _0x5d07c4=moment(_0xe5d67e)[_0x1e74('0x3')](0x0);var _0x297065=moment(_0xee7127)[_0x1e74('0x3')](0x0);return _0x5d07c4[_0x1e74('0x4')](_0x297065,'seconds');}function QueueCallerAbandon(_0x45ef9f,_0xffb8e6){this[_0x1e74('0x5')]=_0x45ef9f[_0x1e74('0x5')];this[_0x1e74('0x6')]=_0x45ef9f[_0x1e74('0x6')];this['campaigntype']=_0x45ef9f[_0x1e74('0x6')]===_0x1e74('0x7')?_0x1e74('0x8'):_0x45ef9f[_0x1e74('0x6')];this[_0x1e74('0x9')]=_0x45ef9f[_0x1e74('0x9')];this[_0x1e74('0xa')]=_0x45ef9f['countcongestionretry'];this['countnoanswerretry']=_0x45ef9f[_0x1e74('0xb')];this['countglobal']=_0x45ef9f[_0x1e74('0x9')]+_0x45ef9f[_0x1e74('0xa')]+_0x45ef9f[_0x1e74('0xb')]+_0x45ef9f[_0x1e74('0xc')]+_0x45ef9f['countdropretry']+_0x45ef9f['countabandonedretry']+_0x45ef9f[_0x1e74('0xd')]+_0x45ef9f[_0x1e74('0xe')];this['countnosuchnumberretry']=_0x45ef9f[_0x1e74('0xc')];this[_0x1e74('0xf')]=_0x45ef9f[_0x1e74('0xf')];this[_0x1e74('0x10')]=_0x45ef9f['countabandonedretry'];this[_0x1e74('0xd')]=_0x45ef9f['countmachineretry'];this['countagentrejectretry']=_0x45ef9f[_0x1e74('0xe')];this[_0x1e74('0x11')]=_0xffb8e6[_0x1e74('0x11')];this[_0x1e74('0x12')]=_0x45ef9f[_0x1e74('0x13')];this[_0x1e74('0x14')]=_0x45ef9f['number'];this[_0x1e74('0x15')]=_0x45ef9f[_0x1e74('0x15')];this[_0x1e74('0x16')]=_0x45ef9f[_0x1e74('0x16')];this['droptime']=_0x45ef9f[_0x1e74('0x17')];this[_0x1e74('0x18')]=this['droptime'];this[_0x1e74('0x19')]=getSeconds(_0x45ef9f[_0x1e74('0x16')],_0x45ef9f[_0x1e74('0x15')]);this[_0x1e74('0x1a')]=getSeconds(this[_0x1e74('0x17')],_0x45ef9f['responsetime']);this['talktime']=0x0;this[_0x1e74('0x8')]=_0xffb8e6['queue'];this[_0x1e74('0x1b')]=_0xffb8e6[_0x1e74('0x1c')];this[_0x1e74('0x1d')]=_0xffb8e6['reason'];this[_0x1e74('0x1e')]=_0x45ef9f[_0x1e74('0x1e')];this[_0x1e74('0x1f')]=_0x45ef9f['callbackuniqueid'];this[_0x1e74('0x20')]=_0x45ef9f[_0x1e74('0x20')];this[_0x1e74('0x21')]=_0x45ef9f['recallme'];this['ContactId']=_0x45ef9f['ContactId'];this[_0x1e74('0x22')]=_0x45ef9f['ListId'];this[_0x1e74('0x23')]=_0x45ef9f[_0x1e74('0x23')];this[_0x1e74('0x24')]=_0x45ef9f[_0x1e74('0x24')];this[_0x1e74('0x25')]=_0x45ef9f[_0x1e74('0x25')];this['originatecalleridnum']=_0x45ef9f['originatecalleridnum']||'';this['originatecalleridname']=_0x45ef9f[_0x1e74('0x26')]||'';}module[_0x1e74('0x27')]=QueueCallerAbandon;
\ No newline at end of file