Built motion from commit (unavailable).|2.5.31
[motion2.git] / server / services / ami / dialer / queueCallerAbandon.js
index a582406..8c60a0f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3c6a=['uniqueid','calleridname','name','calleridnum','number','starttime','responsetime','droptime','endtime','ringtime','holdtime','talktime','membername','connectedlinename','reason','callback','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','exports','util','lodash','moment','milliseconds','diff','seconds','scheduledat','type','campaigntype','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countabandonedretry','countmachineretry','countagentrejectretry','countnosuchnumberretry','countdropretry'];(function(_0x1d5c12,_0x12777e){var _0x553d6f=function(_0x5d0f53){while(--_0x5d0f53){_0x1d5c12['push'](_0x1d5c12['shift']());}};_0x553d6f(++_0x12777e);}(_0x3c6a,0x128));var _0xa3c6=function(_0x151721,_0x20d5bc){_0x151721=_0x151721-0x0;var _0x2deaa7=_0x3c6a[_0x151721];return _0x2deaa7;};'use strict';var util=require(_0xa3c6('0x0'));var _=require(_0xa3c6('0x1'));var moment=require(_0xa3c6('0x2'));function getSeconds(_0x34fbcf,_0x4dd418){var _0x93f44b=moment(_0x34fbcf)[_0xa3c6('0x3')](0x0);var _0x313ea2=moment(_0x4dd418)[_0xa3c6('0x3')](0x0);return _0x93f44b[_0xa3c6('0x4')](_0x313ea2,_0xa3c6('0x5'));}function QueueCallerAbandon(_0x7ed03a,_0x4f0658){this[_0xa3c6('0x6')]=_0x7ed03a[_0xa3c6('0x6')];this[_0xa3c6('0x7')]=_0x7ed03a[_0xa3c6('0x7')];this[_0xa3c6('0x8')]=_0x7ed03a[_0xa3c6('0x7')]==='outbound'?_0xa3c6('0x9'):_0x7ed03a['type'];this[_0xa3c6('0xa')]=_0x7ed03a[_0xa3c6('0xa')];this[_0xa3c6('0xb')]=_0x7ed03a[_0xa3c6('0xb')];this[_0xa3c6('0xc')]=_0x7ed03a[_0xa3c6('0xc')];this[_0xa3c6('0xd')]=_0x7ed03a[_0xa3c6('0xa')]+_0x7ed03a[_0xa3c6('0xb')]+_0x7ed03a[_0xa3c6('0xc')]+_0x7ed03a['countnosuchnumberretry']+_0x7ed03a['countdropretry']+_0x7ed03a[_0xa3c6('0xe')]+_0x7ed03a[_0xa3c6('0xf')]+_0x7ed03a[_0xa3c6('0x10')];this[_0xa3c6('0x11')]=_0x7ed03a[_0xa3c6('0x11')];this['countdropretry']=_0x7ed03a[_0xa3c6('0x12')];this[_0xa3c6('0xe')]=_0x7ed03a[_0xa3c6('0xe')];this[_0xa3c6('0xf')]=_0x7ed03a[_0xa3c6('0xf')];this[_0xa3c6('0x10')]=_0x7ed03a[_0xa3c6('0x10')];this[_0xa3c6('0x13')]=_0x4f0658[_0xa3c6('0x13')];this[_0xa3c6('0x14')]=_0x7ed03a[_0xa3c6('0x15')];this[_0xa3c6('0x16')]=_0x7ed03a[_0xa3c6('0x17')];this[_0xa3c6('0x18')]=_0x7ed03a['starttime'];this[_0xa3c6('0x19')]=_0x7ed03a[_0xa3c6('0x19')];this['droptime']=_0x7ed03a[_0xa3c6('0x1a')];this[_0xa3c6('0x1b')]=this[_0xa3c6('0x1a')];this[_0xa3c6('0x1c')]=getSeconds(_0x7ed03a[_0xa3c6('0x19')],_0x7ed03a['starttime']);this[_0xa3c6('0x1d')]=getSeconds(this[_0xa3c6('0x1a')],_0x7ed03a[_0xa3c6('0x19')]);this[_0xa3c6('0x1e')]=0x0;this['queue']=_0x4f0658[_0xa3c6('0x9')];this[_0xa3c6('0x1f')]=_0x4f0658[_0xa3c6('0x20')];this[_0xa3c6('0x21')]=_0x4f0658[_0xa3c6('0x21')];this[_0xa3c6('0x22')]=_0x7ed03a[_0xa3c6('0x22')];this['callbackuniqueid']=_0x7ed03a['callbackuniqueid'];this[_0xa3c6('0x23')]=_0x7ed03a[_0xa3c6('0x23')];this[_0xa3c6('0x24')]=_0x7ed03a['recallme'];this[_0xa3c6('0x25')]=_0x7ed03a[_0xa3c6('0x25')];this[_0xa3c6('0x26')]=_0x7ed03a[_0xa3c6('0x26')];this[_0xa3c6('0x27')]=_0x7ed03a['UserId'];this[_0xa3c6('0x28')]=_0x7ed03a[_0xa3c6('0x28')];this[_0xa3c6('0x29')]=_0x7ed03a[_0xa3c6('0x29')];this['originatecalleridnum']=_0x7ed03a[_0xa3c6('0x2a')]||'';this[_0xa3c6('0x2b')]=_0x7ed03a[_0xa3c6('0x2b')]||'';}module[_0xa3c6('0x2c')]=QueueCallerAbandon;
\ No newline at end of file
+var _0xdfb0=['campaigntype','outbound','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countdropretry','countnosuchnumberretry','countabandonedretry','countmachineretry','countagentrejectretry','calleridname','number','starttime','responsetime','droptime','endtime','holdtime','queue','membername','connectedlinename','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','lodash','moment','milliseconds','seconds','scheduledat','type'];(function(_0x12d3bd,_0x8c8608){var _0x365ffd=function(_0x1a981d){while(--_0x1a981d){_0x12d3bd['push'](_0x12d3bd['shift']());}};_0x365ffd(++_0x8c8608);}(_0xdfb0,0x92));var _0x0dfb=function(_0x304936,_0x1e1b63){_0x304936=_0x304936-0x0;var _0x4b5074=_0xdfb0[_0x304936];return _0x4b5074;};'use strict';var util=require('util');var _=require(_0x0dfb('0x0'));var moment=require(_0x0dfb('0x1'));function getSeconds(_0x56f2d3,_0x130ad4){var _0x1d719d=moment(_0x56f2d3)[_0x0dfb('0x2')](0x0);var _0xc3e4c=moment(_0x130ad4)[_0x0dfb('0x2')](0x0);return _0x1d719d['diff'](_0xc3e4c,_0x0dfb('0x3'));}function QueueCallerAbandon(_0x29fea6,_0x330e96){this[_0x0dfb('0x4')]=_0x29fea6[_0x0dfb('0x4')];this[_0x0dfb('0x5')]=_0x29fea6[_0x0dfb('0x5')];this[_0x0dfb('0x6')]=_0x29fea6[_0x0dfb('0x5')]===_0x0dfb('0x7')?'queue':_0x29fea6[_0x0dfb('0x5')];this['countbusyretry']=_0x29fea6[_0x0dfb('0x8')];this[_0x0dfb('0x9')]=_0x29fea6['countcongestionretry'];this['countnoanswerretry']=_0x29fea6[_0x0dfb('0xa')];this[_0x0dfb('0xb')]=_0x29fea6['countbusyretry']+_0x29fea6[_0x0dfb('0x9')]+_0x29fea6[_0x0dfb('0xa')]+_0x29fea6['countnosuchnumberretry']+_0x29fea6[_0x0dfb('0xc')]+_0x29fea6['countabandonedretry']+_0x29fea6['countmachineretry']+_0x29fea6['countagentrejectretry'];this['countnosuchnumberretry']=_0x29fea6[_0x0dfb('0xd')];this[_0x0dfb('0xc')]=_0x29fea6[_0x0dfb('0xc')];this[_0x0dfb('0xe')]=_0x29fea6[_0x0dfb('0xe')];this[_0x0dfb('0xf')]=_0x29fea6['countmachineretry'];this[_0x0dfb('0x10')]=_0x29fea6[_0x0dfb('0x10')];this['uniqueid']=_0x330e96['uniqueid'];this[_0x0dfb('0x11')]=_0x29fea6['name'];this['calleridnum']=_0x29fea6[_0x0dfb('0x12')];this[_0x0dfb('0x13')]=_0x29fea6[_0x0dfb('0x13')];this[_0x0dfb('0x14')]=_0x29fea6[_0x0dfb('0x14')];this[_0x0dfb('0x15')]=_0x29fea6[_0x0dfb('0x15')];this[_0x0dfb('0x16')]=this[_0x0dfb('0x15')];this['ringtime']=getSeconds(_0x29fea6['responsetime'],_0x29fea6[_0x0dfb('0x13')]);this[_0x0dfb('0x17')]=getSeconds(this['droptime'],_0x29fea6[_0x0dfb('0x14')]);this['talktime']=0x0;this[_0x0dfb('0x18')]=_0x330e96[_0x0dfb('0x18')];this[_0x0dfb('0x19')]=_0x330e96[_0x0dfb('0x1a')];this[_0x0dfb('0x1b')]=_0x330e96[_0x0dfb('0x1b')];this[_0x0dfb('0x1c')]=_0x29fea6['callback'];this[_0x0dfb('0x1d')]=_0x29fea6['callbackuniqueid'];this[_0x0dfb('0x1e')]=_0x29fea6[_0x0dfb('0x1e')];this['recallme']=_0x29fea6[_0x0dfb('0x1f')];this[_0x0dfb('0x20')]=_0x29fea6[_0x0dfb('0x20')];this['ListId']=_0x29fea6['ListId'];this['UserId']=_0x29fea6[_0x0dfb('0x21')];this['VoiceQueueId']=_0x29fea6[_0x0dfb('0x22')];this[_0x0dfb('0x23')]=_0x29fea6[_0x0dfb('0x23')];this['originatecalleridnum']=_0x29fea6[_0x0dfb('0x24')]||'';this[_0x0dfb('0x25')]=_0x29fea6[_0x0dfb('0x25')]||'';}module['exports']=QueueCallerAbandon;
\ No newline at end of file