Built motion from commit (unavailable).|2.6.0
[motion2.git] / server / services / ami / dialer / queueCallerAbandon.js
index 650d46d..f829bfd 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8ecd=['util','lodash','milliseconds','seconds','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','countnosuchnumberretry','uniqueid','calleridname','name','number','starttime','responsetime','droptime','holdtime','talktime','membername','reason','callback','callbackuniqueid','callbackat','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','exports'];(function(_0x2347f2,_0x5ce297){var _0x4081f6=function(_0x414d79){while(--_0x414d79){_0x2347f2['push'](_0x2347f2['shift']());}};_0x4081f6(++_0x5ce297);}(_0x8ecd,0xc8));var _0xd8ec=function(_0x337ef8,_0x3971ab){_0x337ef8=_0x337ef8-0x0;var _0x585b75=_0x8ecd[_0x337ef8];return _0x585b75;};'use strict';var util=require(_0xd8ec('0x0'));var _=require(_0xd8ec('0x1'));var moment=require('moment');function getSeconds(_0x28ef42,_0x1dfa81){var _0x430cd5=moment(_0x28ef42)['milliseconds'](0x0);var _0x227f7a=moment(_0x1dfa81)[_0xd8ec('0x2')](0x0);return _0x430cd5['diff'](_0x227f7a,_0xd8ec('0x3'));}function QueueCallerAbandon(_0x4b2a6a,_0x290a3f){this[_0xd8ec('0x4')]=_0x4b2a6a[_0xd8ec('0x4')];this[_0xd8ec('0x5')]=_0x4b2a6a[_0xd8ec('0x5')];this[_0xd8ec('0x6')]=_0x4b2a6a['type']===_0xd8ec('0x7')?_0xd8ec('0x8'):_0x4b2a6a['type'];this[_0xd8ec('0x9')]=_0x4b2a6a[_0xd8ec('0x9')];this[_0xd8ec('0xa')]=_0x4b2a6a['countcongestionretry'];this[_0xd8ec('0xb')]=_0x4b2a6a['countnoanswerretry'];this[_0xd8ec('0xc')]=_0x4b2a6a[_0xd8ec('0x9')]+_0x4b2a6a[_0xd8ec('0xa')]+_0x4b2a6a['countnoanswerretry']+_0x4b2a6a['countnosuchnumberretry']+_0x4b2a6a[_0xd8ec('0xd')]+_0x4b2a6a[_0xd8ec('0xe')]+_0x4b2a6a[_0xd8ec('0xf')]+_0x4b2a6a[_0xd8ec('0x10')];this['countnosuchnumberretry']=_0x4b2a6a[_0xd8ec('0x11')];this[_0xd8ec('0xd')]=_0x4b2a6a[_0xd8ec('0xd')];this[_0xd8ec('0xe')]=_0x4b2a6a[_0xd8ec('0xe')];this['countmachineretry']=_0x4b2a6a['countmachineretry'];this[_0xd8ec('0x10')]=_0x4b2a6a[_0xd8ec('0x10')];this[_0xd8ec('0x12')]=_0x290a3f['uniqueid'];this[_0xd8ec('0x13')]=_0x4b2a6a[_0xd8ec('0x14')];this['calleridnum']=_0x4b2a6a[_0xd8ec('0x15')];this[_0xd8ec('0x16')]=_0x4b2a6a[_0xd8ec('0x16')];this[_0xd8ec('0x17')]=_0x4b2a6a[_0xd8ec('0x17')];this[_0xd8ec('0x18')]=_0x4b2a6a['droptime'];this['endtime']=this[_0xd8ec('0x18')];this['ringtime']=getSeconds(_0x4b2a6a[_0xd8ec('0x17')],_0x4b2a6a['starttime']);this[_0xd8ec('0x19')]=getSeconds(this[_0xd8ec('0x18')],_0x4b2a6a['responsetime']);this[_0xd8ec('0x1a')]=0x0;this[_0xd8ec('0x8')]=_0x290a3f[_0xd8ec('0x8')];this[_0xd8ec('0x1b')]=_0x290a3f['connectedlinename'];this[_0xd8ec('0x1c')]=_0x290a3f[_0xd8ec('0x1c')];this[_0xd8ec('0x1d')]=_0x4b2a6a['callback'];this['callbackuniqueid']=_0x4b2a6a[_0xd8ec('0x1e')];this[_0xd8ec('0x1f')]=_0x4b2a6a[_0xd8ec('0x1f')];this['recallme']=_0x4b2a6a['recallme'];this[_0xd8ec('0x20')]=_0x4b2a6a[_0xd8ec('0x20')];this[_0xd8ec('0x21')]=_0x4b2a6a[_0xd8ec('0x21')];this[_0xd8ec('0x22')]=_0x4b2a6a[_0xd8ec('0x22')];this[_0xd8ec('0x23')]=_0x4b2a6a[_0xd8ec('0x23')];this['CampaignId']=_0x4b2a6a[_0xd8ec('0x24')];this[_0xd8ec('0x25')]=_0x4b2a6a[_0xd8ec('0x25')]||'';this['originatecalleridname']=_0x4b2a6a[_0xd8ec('0x26')]||'';}module[_0xd8ec('0x27')]=QueueCallerAbandon;
\ No newline at end of file
+var _0x9ea7=['VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','lodash','moment','milliseconds','seconds','scheduledat','type','campaigntype','outbound','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countmachineretry','countagentrejectretry','countabandonedretry','uniqueid','calleridnum','number','starttime','responsetime','droptime','endtime','talktime','queue','membername','connectedlinename','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId'];(function(_0x1035c1,_0x2d8583){var _0x308d67=function(_0x58ddb6){while(--_0x58ddb6){_0x1035c1['push'](_0x1035c1['shift']());}};_0x308d67(++_0x2d8583);}(_0x9ea7,0x18a));var _0x79ea=function(_0x5bff0,_0x20716d){_0x5bff0=_0x5bff0-0x0;var _0x3ead2e=_0x9ea7[_0x5bff0];return _0x3ead2e;};'use strict';var util=require('util');var _=require(_0x79ea('0x0'));var moment=require(_0x79ea('0x1'));function getSeconds(_0x5c28d1,_0x2086be){var _0x5d6cc9=moment(_0x5c28d1)[_0x79ea('0x2')](0x0);var _0x2385ae=moment(_0x2086be)['milliseconds'](0x0);return _0x5d6cc9['diff'](_0x2385ae,_0x79ea('0x3'));}function QueueCallerAbandon(_0xe9f8ff,_0x4d3588){this['scheduledat']=_0xe9f8ff[_0x79ea('0x4')];this[_0x79ea('0x5')]=_0xe9f8ff[_0x79ea('0x5')];this[_0x79ea('0x6')]=_0xe9f8ff[_0x79ea('0x5')]===_0x79ea('0x7')?'queue':_0xe9f8ff[_0x79ea('0x5')];this[_0x79ea('0x8')]=_0xe9f8ff['countbusyretry'];this['countcongestionretry']=_0xe9f8ff[_0x79ea('0x9')];this[_0x79ea('0xa')]=_0xe9f8ff[_0x79ea('0xa')];this[_0x79ea('0xb')]=_0xe9f8ff['countbusyretry']+_0xe9f8ff[_0x79ea('0x9')]+_0xe9f8ff[_0x79ea('0xa')]+_0xe9f8ff[_0x79ea('0xc')]+_0xe9f8ff[_0x79ea('0xd')]+_0xe9f8ff['countabandonedretry']+_0xe9f8ff[_0x79ea('0xe')]+_0xe9f8ff[_0x79ea('0xf')];this[_0x79ea('0xc')]=_0xe9f8ff[_0x79ea('0xc')];this['countdropretry']=_0xe9f8ff[_0x79ea('0xd')];this[_0x79ea('0x10')]=_0xe9f8ff[_0x79ea('0x10')];this[_0x79ea('0xe')]=_0xe9f8ff[_0x79ea('0xe')];this['countagentrejectretry']=_0xe9f8ff[_0x79ea('0xf')];this[_0x79ea('0x11')]=_0x4d3588[_0x79ea('0x11')];this['calleridname']=_0xe9f8ff['name'];this[_0x79ea('0x12')]=_0xe9f8ff[_0x79ea('0x13')];this['starttime']=_0xe9f8ff[_0x79ea('0x14')];this[_0x79ea('0x15')]=_0xe9f8ff[_0x79ea('0x15')];this['droptime']=_0xe9f8ff[_0x79ea('0x16')];this[_0x79ea('0x17')]=this[_0x79ea('0x16')];this['ringtime']=getSeconds(_0xe9f8ff[_0x79ea('0x15')],_0xe9f8ff[_0x79ea('0x14')]);this['holdtime']=getSeconds(this[_0x79ea('0x16')],_0xe9f8ff[_0x79ea('0x15')]);this[_0x79ea('0x18')]=0x0;this[_0x79ea('0x19')]=_0x4d3588[_0x79ea('0x19')];this[_0x79ea('0x1a')]=_0x4d3588[_0x79ea('0x1b')];this[_0x79ea('0x1c')]=_0x4d3588[_0x79ea('0x1c')];this[_0x79ea('0x1d')]=_0xe9f8ff[_0x79ea('0x1d')];this['callbackuniqueid']=_0xe9f8ff[_0x79ea('0x1e')];this[_0x79ea('0x1f')]=_0xe9f8ff[_0x79ea('0x1f')];this[_0x79ea('0x20')]=_0xe9f8ff[_0x79ea('0x20')];this['ContactId']=_0xe9f8ff[_0x79ea('0x21')];this[_0x79ea('0x22')]=_0xe9f8ff[_0x79ea('0x22')];this['UserId']=_0xe9f8ff['UserId'];this[_0x79ea('0x23')]=_0xe9f8ff['VoiceQueueId'];this['CampaignId']=_0xe9f8ff[_0x79ea('0x24')];this[_0x79ea('0x25')]=_0xe9f8ff[_0x79ea('0x25')]||'';this[_0x79ea('0x26')]=_0xe9f8ff['originatecalleridname']||'';}module['exports']=QueueCallerAbandon;
\ No newline at end of file