Built motion from commit (unavailable).|2.4.2
[motion2.git] / server / services / ami / dialer / queueCallerAbandon.js
index f0c3ad6..a9d3706 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x24e6=['originatecalleridname','exports','util','lodash','moment','milliseconds','diff','seconds','scheduledat','type','campaigntype','outbound','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','uniqueid','calleridname','calleridnum','number','starttime','responsetime','droptime','holdtime','talktime','queue','membername','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','VoiceQueueId','CampaignId','originatecalleridnum'];(function(_0x1d031a,_0x53658d){var _0x5d8cc0=function(_0x5e83db){while(--_0x5e83db){_0x1d031a['push'](_0x1d031a['shift']());}};_0x5d8cc0(++_0x53658d);}(_0x24e6,0x105));var _0x624e=function(_0x501510,_0x61caa9){_0x501510=_0x501510-0x0;var _0x1e6ee5=_0x24e6[_0x501510];return _0x1e6ee5;};'use strict';var util=require(_0x624e('0x0'));var _=require(_0x624e('0x1'));var moment=require(_0x624e('0x2'));function getSeconds(_0x28fe2d,_0x5f0af4){var _0x1259e3=moment(_0x28fe2d)['milliseconds'](0x0);var _0x193ed5=moment(_0x5f0af4)[_0x624e('0x3')](0x0);return _0x1259e3[_0x624e('0x4')](_0x193ed5,_0x624e('0x5'));}function QueueCallerAbandon(_0x5d2376,_0x513064){this[_0x624e('0x6')]=_0x5d2376['scheduledat'];this[_0x624e('0x7')]=_0x5d2376['type'];this[_0x624e('0x8')]=_0x5d2376[_0x624e('0x7')]===_0x624e('0x9')?'queue':_0x5d2376[_0x624e('0x7')];this[_0x624e('0xa')]=_0x5d2376[_0x624e('0xa')];this[_0x624e('0xb')]=_0x5d2376[_0x624e('0xb')];this[_0x624e('0xc')]=_0x5d2376[_0x624e('0xc')];this[_0x624e('0xd')]=_0x5d2376['countbusyretry']+_0x5d2376[_0x624e('0xb')]+_0x5d2376['countnoanswerretry'];this[_0x624e('0xe')]=_0x513064['uniqueid'];this[_0x624e('0xf')]=_0x5d2376['name'];this[_0x624e('0x10')]=_0x5d2376[_0x624e('0x11')];this[_0x624e('0x12')]=_0x5d2376[_0x624e('0x12')];this['responsetime']=_0x5d2376[_0x624e('0x13')];this[_0x624e('0x14')]=_0x5d2376[_0x624e('0x14')];this['endtime']=this['droptime'];this['ringtime']=getSeconds(_0x5d2376[_0x624e('0x13')],_0x5d2376[_0x624e('0x12')]);this[_0x624e('0x15')]=getSeconds(this[_0x624e('0x14')],_0x5d2376[_0x624e('0x13')]);this[_0x624e('0x16')]=0x0;this[_0x624e('0x17')]=_0x513064[_0x624e('0x17')];this[_0x624e('0x18')]=_0x513064['connectedlinename'];this[_0x624e('0x19')]=_0x513064['reason'];this[_0x624e('0x1a')]=_0x5d2376[_0x624e('0x1a')];this[_0x624e('0x1b')]=_0x5d2376[_0x624e('0x1b')];this['callbackat']=_0x5d2376[_0x624e('0x1c')];this[_0x624e('0x1d')]=_0x5d2376[_0x624e('0x1d')];this[_0x624e('0x1e')]=_0x5d2376['ContactId'];this['ListId']=_0x5d2376[_0x624e('0x1f')];this['UserId']=_0x5d2376['UserId'];this[_0x624e('0x20')]=_0x5d2376[_0x624e('0x20')];this[_0x624e('0x21')]=_0x5d2376['CampaignId'];this[_0x624e('0x22')]=_0x5d2376[_0x624e('0x22')]||'';this[_0x624e('0x23')]=_0x5d2376[_0x624e('0x23')]||'';}module[_0x624e('0x24')]=QueueCallerAbandon;
\ No newline at end of file
+var _0xa562=['util','lodash','moment','milliseconds','diff','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','uniqueid','calleridnum','number','starttime','responsetime','droptime','endtime','ringtime','holdtime','talktime','connectedlinename','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','originatecalleridnum','originatecalleridname','exports'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xa562,0x18c));var _0x2a56=function(_0x2ace72,_0x814809){_0x2ace72=_0x2ace72-0x0;var _0x33d102=_0xa562[_0x2ace72];return _0x33d102;};'use strict';var util=require(_0x2a56('0x0'));var _=require(_0x2a56('0x1'));var moment=require(_0x2a56('0x2'));function getSeconds(_0x393d48,_0x4a3dc5){var _0x104c57=moment(_0x393d48)[_0x2a56('0x3')](0x0);var _0x10a654=moment(_0x4a3dc5)['milliseconds'](0x0);return _0x104c57[_0x2a56('0x4')](_0x10a654,'seconds');}function QueueCallerAbandon(_0x325f0f,_0x4ee5d2){this[_0x2a56('0x5')]=_0x325f0f[_0x2a56('0x5')];this[_0x2a56('0x6')]=_0x325f0f[_0x2a56('0x6')];this[_0x2a56('0x7')]=_0x325f0f[_0x2a56('0x6')]===_0x2a56('0x8')?_0x2a56('0x9'):_0x325f0f[_0x2a56('0x6')];this[_0x2a56('0xa')]=_0x325f0f['countbusyretry'];this['countcongestionretry']=_0x325f0f[_0x2a56('0xb')];this[_0x2a56('0xc')]=_0x325f0f[_0x2a56('0xc')];this[_0x2a56('0xd')]=_0x325f0f[_0x2a56('0xa')]+_0x325f0f['countcongestionretry']+_0x325f0f[_0x2a56('0xc')];this[_0x2a56('0xe')]=_0x4ee5d2[_0x2a56('0xe')];this['calleridname']=_0x325f0f['name'];this[_0x2a56('0xf')]=_0x325f0f[_0x2a56('0x10')];this['starttime']=_0x325f0f[_0x2a56('0x11')];this['responsetime']=_0x325f0f[_0x2a56('0x12')];this[_0x2a56('0x13')]=_0x325f0f['droptime'];this[_0x2a56('0x14')]=this[_0x2a56('0x13')];this[_0x2a56('0x15')]=getSeconds(_0x325f0f[_0x2a56('0x12')],_0x325f0f[_0x2a56('0x11')]);this[_0x2a56('0x16')]=getSeconds(this['droptime'],_0x325f0f[_0x2a56('0x12')]);this[_0x2a56('0x17')]=0x0;this[_0x2a56('0x9')]=_0x4ee5d2[_0x2a56('0x9')];this['membername']=_0x4ee5d2[_0x2a56('0x18')];this['reason']=_0x4ee5d2['reason'];this[_0x2a56('0x19')]=_0x325f0f['callback'];this[_0x2a56('0x1a')]=_0x325f0f[_0x2a56('0x1a')];this[_0x2a56('0x1b')]=_0x325f0f[_0x2a56('0x1b')];this[_0x2a56('0x1c')]=_0x325f0f[_0x2a56('0x1c')];this[_0x2a56('0x1d')]=_0x325f0f[_0x2a56('0x1d')];this[_0x2a56('0x1e')]=_0x325f0f[_0x2a56('0x1e')];this[_0x2a56('0x1f')]=_0x325f0f['UserId'];this[_0x2a56('0x20')]=_0x325f0f[_0x2a56('0x20')];this['CampaignId']=_0x325f0f['CampaignId'];this[_0x2a56('0x21')]=_0x325f0f['originatecalleridnum']||'';this[_0x2a56('0x22')]=_0x325f0f[_0x2a56('0x22')]||'';}module[_0x2a56('0x23')]=QueueCallerAbandon;
\ No newline at end of file