Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / services / ami / dialer / utils / hopper.js
index cb2fa2f..2f8b1c2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-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
+var _0x430c=['[checkIsBlackList]','checkIsBlackList','checkIsBlackListIvr','[checkIsBlackListIvr]','verifyAdditionalPhones','[verifyAdditionalPhone]','[swapAdditionalPhone]','swapAdditionalPhones','avgHandleTime','[avgHandleTime]','createHistory','util','../../rpc/cmHopper','../../rpc/cmHopperAdditionalPhone','../../rpc/cmHopperBlack','dialOrderByScheduledAt','temp','error','[getContactDialer]','getContactDialer','getContactDialerIvr','[getContactDialerIvr]','catch','[countReScheduled]','countReScheduled','rescheduleContact','[rescheduleContact]','unlockContact','[unlockContact]'];(function(_0x4ef478,_0xb7e570){var _0x5220d5=function(_0x52a7a7){while(--_0x52a7a7){_0x4ef478['push'](_0x4ef478['shift']());}};_0x5220d5(++_0xb7e570);}(_0x430c,0x1a1));var _0xc430=function(_0x374ccf,_0xa945c4){_0x374ccf=_0x374ccf-0x0;var _0x443cde=_0x430c[_0x374ccf];return _0x443cde;};'use strict';var util=require(_0xc430('0x0'));var logger=require('../../../../config/logger')('dialer');var cmHopper=require(_0xc430('0x1'));var cmHopperAdditionalPhone=require(_0xc430('0x2'));var cmHopperBlack=require(_0xc430('0x3'));var cmHopperHistory=require('../../rpc/cmHopperHistory');function inspectError(_0x4f0118){return util['inspect'](_0x4f0118,{'showHidden':![],'depth':null});}function getContactDialer(_0x47d8b9,_0x338a82,_0x2408f5){return cmHopper['getContactDialer'](_0x47d8b9['id'],_0x338a82,_0x2408f5,_0x47d8b9[_0xc430('0x4')])['catch'](function(_0x212354){_0x47d8b9[_0xc430('0x5')]=0x0;logger[_0xc430('0x6')](_0xc430('0x7'),inspectError(_0x212354));});}exports[_0xc430('0x8')]=getContactDialer;function getContactDialerIvr(_0x11f4b0,_0x861581){return cmHopper[_0xc430('0x9')](_0x11f4b0['id'],_0x861581,_0x11f4b0[_0xc430('0x4')])['catch'](function(_0x97fa5b){_0x11f4b0[_0xc430('0x5')]=0x0;logger['error'](_0xc430('0xa'),inspectError(_0x97fa5b));});}exports['getContactDialerIvr']=getContactDialerIvr;function countReScheduled(_0x3b84bc){return cmHopper['countReScheduled'](_0x3b84bc)[_0xc430('0xb')](function(_0x8aa2e6){logger[_0xc430('0x6')](_0xc430('0xc'),inspectError(_0x8aa2e6));});}exports[_0xc430('0xd')]=countReScheduled;function rescheduleContact(_0x2777af){return cmHopper[_0xc430('0xe')](_0x2777af)['catch'](function(_0x4e9134){logger[_0xc430('0x6')](_0xc430('0xf'),inspectError(_0x4e9134));});}exports[_0xc430('0xe')]=rescheduleContact;function unlockContact(_0x2ef538,_0x31d3b7,_0x55cc6c){return cmHopper[_0xc430('0x10')](_0x2ef538,_0x31d3b7,_0x55cc6c)['catch'](function(_0x4bf91f){logger[_0xc430('0x6')](_0xc430('0x11'),inspectError(_0x4bf91f));});}exports[_0xc430('0x10')]=unlockContact;function moveContactManagedDialer(_0x5830b0){return cmHopper['moveContactManagedDialer'](_0x5830b0)[_0xc430('0xb')](function(_0x4c1937){logger[_0xc430('0x6')]('[moveContactManagedDialer]',inspectError(_0x4c1937));});}exports['moveContactManagedDialer']=moveContactManagedDialer;function checkIsBlackList(_0x2f3203){return cmHopperBlack['checkIsBlackList'](_0x2f3203)[_0xc430('0xb')](function(_0x1eae3b){logger[_0xc430('0x6')](_0xc430('0x12'),inspectError(_0x1eae3b));});}exports[_0xc430('0x13')]=checkIsBlackList;function checkIsBlackListIvr(_0x5af282){return cmHopperBlack[_0xc430('0x14')](_0x5af282)['catch'](function(_0x4d2d43){logger[_0xc430('0x6')](_0xc430('0x15'),inspectError(_0x4d2d43));});}exports[_0xc430('0x14')]=checkIsBlackListIvr;function verifyAdditionalPhones(_0x56dd16,_0x3fd56b,_0x57d26e){return cmHopperAdditionalPhone[_0xc430('0x16')](_0x56dd16,_0x3fd56b,_0x57d26e)[_0xc430('0xb')](function(_0x4efecd){logger[_0xc430('0x6')](_0xc430('0x17'),inspectError(_0x4efecd));});}exports['verifyAdditionalPhones']=verifyAdditionalPhones;function swapAdditionalPhones(_0x2f9af4,_0x59c498,_0x3aa85e){return cmHopperAdditionalPhone['swapAdditionalPhones'](_0x2f9af4,_0x59c498,_0x3aa85e)[_0xc430('0xb')](function(_0x21e28a){logger['error'](_0xc430('0x18'),inspectError(_0x21e28a));});}exports[_0xc430('0x19')]=swapAdditionalPhones;function avgHandleTime(_0x2c0422){return cmHopperHistory[_0xc430('0x1a')](_0x2c0422)[_0xc430('0xb')](function(_0x57cd72){logger[_0xc430('0x6')](_0xc430('0x1b'),inspectError(_0x57cd72));});}exports[_0xc430('0x1a')]=avgHandleTime;function createHistory(_0x1591e3){return cmHopperHistory['createHistory'](_0x1591e3)[_0xc430('0xb')](function(_0x4cf56c){logger[_0xc430('0x6')]('[createHistory]',inspectError(_0x4cf56c));});}exports[_0xc430('0x1c')]=createHistory;
\ No newline at end of file