Built motion from commit efa66e19.|2.6.22
[motion2.git] / server / services / ami / dialer / utils / hopper.js
index 33d54b4..cb2fa2f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xfb11=['checkIsBlackListIvr','verifyAdditionalPhones','[verifyAdditionalPhone]','swapAdditionalPhones','[swapAdditionalPhone]','avgHandleTime','[avgHandleTime]','createHistory','[createHistory]','util','dialer','../../rpc/cmHopper','../../rpc/cmHopperBlack','getContactDialer','dialOrderByScheduledAt','temp','error','[getContactDialer]','getContactDialerIvr','catch','[getContactDialerIvr]','countReScheduled','[countReScheduled]','rescheduleContact','[rescheduleContact]','unlockContact','moveContactManagedDialer','[moveContactManagedDialer]','[checkIsBlackList]','checkIsBlackList'];(function(_0x3d9207,_0x475a3e){var _0xfdf3d4=function(_0x3107d7){while(--_0x3107d7){_0x3d9207['push'](_0x3d9207['shift']());}};_0xfdf3d4(++_0x475a3e);}(_0xfb11,0x1ad));var _0x1fb1=function(_0x13e741,_0x5d3c24){_0x13e741=_0x13e741-0x0;var _0x3f8bb3=_0xfb11[_0x13e741];return _0x3f8bb3;};'use strict';var util=require(_0x1fb1('0x0'));var logger=require('../../../../config/logger')(_0x1fb1('0x1'));var cmHopper=require(_0x1fb1('0x2'));var cmHopperAdditionalPhone=require('../../rpc/cmHopperAdditionalPhone');var cmHopperBlack=require(_0x1fb1('0x3'));var cmHopperHistory=require('../../rpc/cmHopperHistory');function inspectError(_0x18108f){return util['inspect'](_0x18108f,{'showHidden':![],'depth':null});}function getContactDialer(_0x190f74,_0x2ae20f,_0x5af469){return cmHopper[_0x1fb1('0x4')](_0x190f74['id'],_0x2ae20f,_0x5af469,_0x190f74[_0x1fb1('0x5')])['catch'](function(_0x1859da){_0x190f74[_0x1fb1('0x6')]=0x0;logger[_0x1fb1('0x7')](_0x1fb1('0x8'),inspectError(_0x1859da));});}exports[_0x1fb1('0x4')]=getContactDialer;function getContactDialerIvr(_0x2d6be9,_0x438d15){return cmHopper[_0x1fb1('0x9')](_0x2d6be9['id'],_0x438d15,_0x2d6be9[_0x1fb1('0x5')])[_0x1fb1('0xa')](function(_0x5bb066){_0x2d6be9[_0x1fb1('0x6')]=0x0;logger['error'](_0x1fb1('0xb'),inspectError(_0x5bb066));});}exports['getContactDialerIvr']=getContactDialerIvr;function countReScheduled(_0xa977b1){return cmHopper[_0x1fb1('0xc')](_0xa977b1)[_0x1fb1('0xa')](function(_0x10bcac){logger[_0x1fb1('0x7')](_0x1fb1('0xd'),inspectError(_0x10bcac));});}exports['countReScheduled']=countReScheduled;function rescheduleContact(_0x18d255){return cmHopper[_0x1fb1('0xe')](_0x18d255)[_0x1fb1('0xa')](function(_0x44f24c){logger[_0x1fb1('0x7')](_0x1fb1('0xf'),inspectError(_0x44f24c));});}exports[_0x1fb1('0xe')]=rescheduleContact;function unlockContact(_0x316fe5,_0x358b58,_0x4cbe42){return cmHopper['unlockContact'](_0x316fe5,_0x358b58,_0x4cbe42)[_0x1fb1('0xa')](function(_0x113988){logger[_0x1fb1('0x7')]('[unlockContact]',inspectError(_0x113988));});}exports[_0x1fb1('0x10')]=unlockContact;function moveContactManagedDialer(_0x23f1f5){return cmHopper[_0x1fb1('0x11')](_0x23f1f5)[_0x1fb1('0xa')](function(_0x33c6b6){logger[_0x1fb1('0x7')](_0x1fb1('0x12'),inspectError(_0x33c6b6));});}exports[_0x1fb1('0x11')]=moveContactManagedDialer;function checkIsBlackList(_0x4041ea){return cmHopperBlack['checkIsBlackList'](_0x4041ea)[_0x1fb1('0xa')](function(_0x55ba5b){logger['error'](_0x1fb1('0x13'),inspectError(_0x55ba5b));});}exports[_0x1fb1('0x14')]=checkIsBlackList;function checkIsBlackListIvr(_0x1eaf9e){return cmHopperBlack['checkIsBlackListIvr'](_0x1eaf9e)[_0x1fb1('0xa')](function(_0x4ed51a){logger['error']('[checkIsBlackListIvr]',inspectError(_0x4ed51a));});}exports[_0x1fb1('0x15')]=checkIsBlackListIvr;function verifyAdditionalPhones(_0x1f8e5a,_0x12c1d0,_0x10924f){return cmHopperAdditionalPhone[_0x1fb1('0x16')](_0x1f8e5a,_0x12c1d0,_0x10924f)['catch'](function(_0x4272c7){logger[_0x1fb1('0x7')](_0x1fb1('0x17'),inspectError(_0x4272c7));});}exports[_0x1fb1('0x16')]=verifyAdditionalPhones;function swapAdditionalPhones(_0x2bc885,_0x1353a4,_0x3680b5){return cmHopperAdditionalPhone[_0x1fb1('0x18')](_0x2bc885,_0x1353a4,_0x3680b5)['catch'](function(_0x1b25b3){logger[_0x1fb1('0x7')](_0x1fb1('0x19'),inspectError(_0x1b25b3));});}exports[_0x1fb1('0x18')]=swapAdditionalPhones;function avgHandleTime(_0x1898e7){return cmHopperHistory[_0x1fb1('0x1a')](_0x1898e7)[_0x1fb1('0xa')](function(_0x15992c){logger[_0x1fb1('0x7')](_0x1fb1('0x1b'),inspectError(_0x15992c));});}exports[_0x1fb1('0x1a')]=avgHandleTime;function createHistory(_0x497017){return cmHopperHistory[_0x1fb1('0x1c')](_0x497017)[_0x1fb1('0xa')](function(_0x2f6c88){logger['error'](_0x1fb1('0x1d'),inspectError(_0x2f6c88));});}exports[_0x1fb1('0x1c')]=createHistory;
\ No newline at end of file
+var _0xa456=['temp','error','[getContactDialer]','getContactDialerIvr','dialOrderByScheduledAt','[countReScheduled]','countReScheduled','rescheduleContact','[rescheduleContact]','unlockContact','[unlockContact]','checkIsBlackList','[checkIsBlackList]','checkIsBlackListIvr','verifyAdditionalPhones','[verifyAdditionalPhone]','[swapAdditionalPhone]','swapAdditionalPhones','avgHandleTime','[avgHandleTime]','createHistory','[createHistory]','util','../../../../config/logger','dialer','../../rpc/cmHopper','../../rpc/cmHopperBlack','../../rpc/cmHopperHistory','getContactDialer','catch'];(function(_0x55f288,_0xc1d971){var _0x217263=function(_0x5bc907){while(--_0x5bc907){_0x55f288['push'](_0x55f288['shift']());}};_0x217263(++_0xc1d971);}(_0xa456,0x142));var _0x6a45=function(_0x45f951,_0x2750c8){_0x45f951=_0x45f951-0x0;var _0x24756c=_0xa456[_0x45f951];return _0x24756c;};'use strict';var util=require(_0x6a45('0x0'));var logger=require(_0x6a45('0x1'))(_0x6a45('0x2'));var cmHopper=require(_0x6a45('0x3'));var cmHopperAdditionalPhone=require('../../rpc/cmHopperAdditionalPhone');var cmHopperBlack=require(_0x6a45('0x4'));var cmHopperHistory=require(_0x6a45('0x5'));function inspectError(_0x3f7448){return util['inspect'](_0x3f7448,{'showHidden':![],'depth':null});}function getContactDialer(_0x1f0701,_0x40acad,_0x1e5882){return cmHopper[_0x6a45('0x6')](_0x1f0701['id'],_0x40acad,_0x1e5882,_0x1f0701['dialOrderByScheduledAt'])[_0x6a45('0x7')](function(_0x26bfc0){_0x1f0701[_0x6a45('0x8')]=0x0;logger[_0x6a45('0x9')](_0x6a45('0xa'),inspectError(_0x26bfc0));});}exports['getContactDialer']=getContactDialer;function getContactDialerIvr(_0x3a5c20,_0x517040){return cmHopper[_0x6a45('0xb')](_0x3a5c20['id'],_0x517040,_0x3a5c20[_0x6a45('0xc')])[_0x6a45('0x7')](function(_0x147679){_0x3a5c20[_0x6a45('0x8')]=0x0;logger['error']('[getContactDialerIvr]',inspectError(_0x147679));});}exports[_0x6a45('0xb')]=getContactDialerIvr;function countReScheduled(_0x465b59){return cmHopper['countReScheduled'](_0x465b59)['catch'](function(_0x511b92){logger[_0x6a45('0x9')](_0x6a45('0xd'),inspectError(_0x511b92));});}exports[_0x6a45('0xe')]=countReScheduled;function rescheduleContact(_0x3f01f6){return cmHopper[_0x6a45('0xf')](_0x3f01f6)['catch'](function(_0x563c3b){logger[_0x6a45('0x9')](_0x6a45('0x10'),inspectError(_0x563c3b));});}exports['rescheduleContact']=rescheduleContact;function unlockContact(_0x2c20db,_0x171176,_0x3fab82){return cmHopper[_0x6a45('0x11')](_0x2c20db,_0x171176,_0x3fab82)['catch'](function(_0x54507b){logger['error'](_0x6a45('0x12'),inspectError(_0x54507b));});}exports[_0x6a45('0x11')]=unlockContact;function moveContactManagedDialer(_0x360b7f){return cmHopper['moveContactManagedDialer'](_0x360b7f)[_0x6a45('0x7')](function(_0x102981){logger[_0x6a45('0x9')]('[moveContactManagedDialer]',inspectError(_0x102981));});}exports['moveContactManagedDialer']=moveContactManagedDialer;function checkIsBlackList(_0x573453){return cmHopperBlack[_0x6a45('0x13')](_0x573453)[_0x6a45('0x7')](function(_0x5bdaef){logger[_0x6a45('0x9')](_0x6a45('0x14'),inspectError(_0x5bdaef));});}exports['checkIsBlackList']=checkIsBlackList;function checkIsBlackListIvr(_0x4f7110){return cmHopperBlack[_0x6a45('0x15')](_0x4f7110)[_0x6a45('0x7')](function(_0x458b99){logger[_0x6a45('0x9')]('[checkIsBlackListIvr]',inspectError(_0x458b99));});}exports['checkIsBlackListIvr']=checkIsBlackListIvr;function verifyAdditionalPhones(_0x3faae5,_0x59af4b,_0x11290c){return cmHopperAdditionalPhone[_0x6a45('0x16')](_0x3faae5,_0x59af4b,_0x11290c)[_0x6a45('0x7')](function(_0x3ad898){logger[_0x6a45('0x9')](_0x6a45('0x17'),inspectError(_0x3ad898));});}exports[_0x6a45('0x16')]=verifyAdditionalPhones;function swapAdditionalPhones(_0x18a5b8,_0x1310d7,_0x46587a){return cmHopperAdditionalPhone['swapAdditionalPhones'](_0x18a5b8,_0x1310d7,_0x46587a)[_0x6a45('0x7')](function(_0x5a0389){logger[_0x6a45('0x9')](_0x6a45('0x18'),inspectError(_0x5a0389));});}exports[_0x6a45('0x19')]=swapAdditionalPhones;function avgHandleTime(_0x2c7315){return cmHopperHistory[_0x6a45('0x1a')](_0x2c7315)['catch'](function(_0x2b8cc8){logger[_0x6a45('0x9')](_0x6a45('0x1b'),inspectError(_0x2b8cc8));});}exports[_0x6a45('0x1a')]=avgHandleTime;function createHistory(_0x8265d9){return cmHopperHistory[_0x6a45('0x1c')](_0x8265d9)[_0x6a45('0x7')](function(_0x313c13){logger['error'](_0x6a45('0x1d'),inspectError(_0x313c13));});}exports[_0x6a45('0x1c')]=createHistory;
\ No newline at end of file