Built motion from commit 994c64e1.|2.6.1
[motion2.git] / server / services / ami / dialer / queueCallerAbandon.js
index 23da35a..1b0778f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc830=['callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','exports','util','milliseconds','diff','seconds','scheduledat','type','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countagentrejectretry','countabandonedretry','countmachineretry','uniqueid','calleridname','name','calleridnum','number','starttime','responsetime','droptime','endtime','membername','connectedlinename','reason','callback','callbackuniqueid'];(function(_0x3446af,_0x3b2f92){var _0x252b14=function(_0x1caaca){while(--_0x1caaca){_0x3446af['push'](_0x3446af['shift']());}};_0x252b14(++_0x3b2f92);}(_0xc830,0x85));var _0x0c83=function(_0x33d534,_0x13aa85){_0x33d534=_0x33d534-0x0;var _0xb07093=_0xc830[_0x33d534];return _0xb07093;};'use strict';var util=require(_0x0c83('0x0'));var _=require('lodash');var moment=require('moment');function getSeconds(_0x32874e,_0x872e2){var _0xbcef1c=moment(_0x32874e)[_0x0c83('0x1')](0x0);var _0x3efd05=moment(_0x872e2)[_0x0c83('0x1')](0x0);return _0xbcef1c[_0x0c83('0x2')](_0x3efd05,_0x0c83('0x3'));}function QueueCallerAbandon(_0x10a7f8,_0x2d61a3){this['scheduledat']=_0x10a7f8[_0x0c83('0x4')];this[_0x0c83('0x5')]=_0x10a7f8[_0x0c83('0x5')];this['campaigntype']=_0x10a7f8[_0x0c83('0x5')]===_0x0c83('0x6')?_0x0c83('0x7'):_0x10a7f8[_0x0c83('0x5')];this[_0x0c83('0x8')]=_0x10a7f8[_0x0c83('0x8')];this[_0x0c83('0x9')]=_0x10a7f8[_0x0c83('0x9')];this['countnoanswerretry']=_0x10a7f8[_0x0c83('0xa')];this[_0x0c83('0xb')]=_0x10a7f8[_0x0c83('0x8')]+_0x10a7f8[_0x0c83('0x9')]+_0x10a7f8[_0x0c83('0xa')]+_0x10a7f8[_0x0c83('0xc')]+_0x10a7f8[_0x0c83('0xd')]+_0x10a7f8['countabandonedretry']+_0x10a7f8['countmachineretry']+_0x10a7f8[_0x0c83('0xe')];this[_0x0c83('0xc')]=_0x10a7f8[_0x0c83('0xc')];this[_0x0c83('0xd')]=_0x10a7f8[_0x0c83('0xd')];this[_0x0c83('0xf')]=_0x10a7f8[_0x0c83('0xf')];this['countmachineretry']=_0x10a7f8[_0x0c83('0x10')];this[_0x0c83('0xe')]=_0x10a7f8[_0x0c83('0xe')];this[_0x0c83('0x11')]=_0x2d61a3['uniqueid'];this[_0x0c83('0x12')]=_0x10a7f8[_0x0c83('0x13')];this[_0x0c83('0x14')]=_0x10a7f8[_0x0c83('0x15')];this['starttime']=_0x10a7f8[_0x0c83('0x16')];this[_0x0c83('0x17')]=_0x10a7f8[_0x0c83('0x17')];this[_0x0c83('0x18')]=_0x10a7f8[_0x0c83('0x18')];this[_0x0c83('0x19')]=this[_0x0c83('0x18')];this['ringtime']=getSeconds(_0x10a7f8[_0x0c83('0x17')],_0x10a7f8[_0x0c83('0x16')]);this['holdtime']=getSeconds(this[_0x0c83('0x18')],_0x10a7f8['responsetime']);this['talktime']=0x0;this['queue']=_0x2d61a3[_0x0c83('0x7')];this[_0x0c83('0x1a')]=_0x2d61a3[_0x0c83('0x1b')];this[_0x0c83('0x1c')]=_0x2d61a3[_0x0c83('0x1c')];this[_0x0c83('0x1d')]=_0x10a7f8['callback'];this[_0x0c83('0x1e')]=_0x10a7f8['callbackuniqueid'];this['callbackat']=_0x10a7f8[_0x0c83('0x1f')];this['recallme']=_0x10a7f8[_0x0c83('0x20')];this[_0x0c83('0x21')]=_0x10a7f8[_0x0c83('0x21')];this[_0x0c83('0x22')]=_0x10a7f8['ListId'];this[_0x0c83('0x23')]=_0x10a7f8[_0x0c83('0x23')];this[_0x0c83('0x24')]=_0x10a7f8[_0x0c83('0x24')];this['CampaignId']=_0x10a7f8[_0x0c83('0x25')];this[_0x0c83('0x26')]=_0x10a7f8['originatecalleridnum']||'';this[_0x0c83('0x27')]=_0x10a7f8[_0x0c83('0x27')]||'';}module[_0x0c83('0x28')]=QueueCallerAbandon;
\ No newline at end of file
+var _0x2a82=['callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','moment','milliseconds','diff','seconds','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','uniqueid','calleridname','name','number','starttime','responsetime','droptime','endtime','ringtime','talktime','membername','connectedlinename','reason'];(function(_0x33686b,_0x1f90f7){var _0x4b99d8=function(_0x520930){while(--_0x520930){_0x33686b['push'](_0x33686b['shift']());}};_0x4b99d8(++_0x1f90f7);}(_0x2a82,0xb3));var _0x22a8=function(_0x404499,_0x1a2fe6){_0x404499=_0x404499-0x0;var _0x43f7cb=_0x2a82[_0x404499];return _0x43f7cb;};'use strict';var util=require('util');var _=require('lodash');var moment=require(_0x22a8('0x0'));function getSeconds(_0x4c4d19,_0x487b06){var _0x648a7d=moment(_0x4c4d19)['milliseconds'](0x0);var _0x2819b0=moment(_0x487b06)[_0x22a8('0x1')](0x0);return _0x648a7d[_0x22a8('0x2')](_0x2819b0,_0x22a8('0x3'));}function QueueCallerAbandon(_0x55bb12,_0xb6d12a){this[_0x22a8('0x4')]=_0x55bb12[_0x22a8('0x4')];this[_0x22a8('0x5')]=_0x55bb12[_0x22a8('0x5')];this[_0x22a8('0x6')]=_0x55bb12[_0x22a8('0x5')]===_0x22a8('0x7')?_0x22a8('0x8'):_0x55bb12[_0x22a8('0x5')];this[_0x22a8('0x9')]=_0x55bb12['countbusyretry'];this[_0x22a8('0xa')]=_0x55bb12[_0x22a8('0xa')];this[_0x22a8('0xb')]=_0x55bb12[_0x22a8('0xb')];this[_0x22a8('0xc')]=_0x55bb12[_0x22a8('0x9')]+_0x55bb12[_0x22a8('0xa')]+_0x55bb12['countnoanswerretry']+_0x55bb12[_0x22a8('0xd')]+_0x55bb12[_0x22a8('0xe')]+_0x55bb12[_0x22a8('0xf')]+_0x55bb12[_0x22a8('0x10')]+_0x55bb12[_0x22a8('0x11')];this[_0x22a8('0xd')]=_0x55bb12['countnosuchnumberretry'];this[_0x22a8('0xe')]=_0x55bb12[_0x22a8('0xe')];this[_0x22a8('0xf')]=_0x55bb12['countabandonedretry'];this[_0x22a8('0x10')]=_0x55bb12[_0x22a8('0x10')];this['countagentrejectretry']=_0x55bb12['countagentrejectretry'];this['uniqueid']=_0xb6d12a[_0x22a8('0x12')];this[_0x22a8('0x13')]=_0x55bb12[_0x22a8('0x14')];this['calleridnum']=_0x55bb12[_0x22a8('0x15')];this[_0x22a8('0x16')]=_0x55bb12[_0x22a8('0x16')];this[_0x22a8('0x17')]=_0x55bb12[_0x22a8('0x17')];this[_0x22a8('0x18')]=_0x55bb12[_0x22a8('0x18')];this[_0x22a8('0x19')]=this[_0x22a8('0x18')];this[_0x22a8('0x1a')]=getSeconds(_0x55bb12[_0x22a8('0x17')],_0x55bb12[_0x22a8('0x16')]);this['holdtime']=getSeconds(this[_0x22a8('0x18')],_0x55bb12[_0x22a8('0x17')]);this[_0x22a8('0x1b')]=0x0;this['queue']=_0xb6d12a[_0x22a8('0x8')];this[_0x22a8('0x1c')]=_0xb6d12a[_0x22a8('0x1d')];this['reason']=_0xb6d12a[_0x22a8('0x1e')];this[_0x22a8('0x1f')]=_0x55bb12[_0x22a8('0x1f')];this[_0x22a8('0x20')]=_0x55bb12[_0x22a8('0x20')];this[_0x22a8('0x21')]=_0x55bb12[_0x22a8('0x21')];this[_0x22a8('0x22')]=_0x55bb12['recallme'];this['ContactId']=_0x55bb12[_0x22a8('0x23')];this[_0x22a8('0x24')]=_0x55bb12[_0x22a8('0x24')];this[_0x22a8('0x25')]=_0x55bb12[_0x22a8('0x25')];this['VoiceQueueId']=_0x55bb12[_0x22a8('0x26')];this['CampaignId']=_0x55bb12[_0x22a8('0x27')];this[_0x22a8('0x28')]=_0x55bb12[_0x22a8('0x28')]||'';this['originatecalleridname']=_0x55bb12[_0x22a8('0x29')]||'';}module['exports']=QueueCallerAbandon;
\ No newline at end of file