Built motion from commit 21186556.|2.6.19
[motion2.git] / server / services / ami / dialer / utils / hopper.js
index 421aa50..f00b8c6 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf2e3=['../../rpc/cmHopperHistory','inspect','getContactDialer','dialOrderByScheduledAt','catch','temp','error','[getContactDialer]','getContactDialerIvr','[getContactDialerIvr]','[countReScheduled]','countReScheduled','rescheduleContact','[rescheduleContact]','unlockContact','[unlockContact]','moveContactManagedDialer','[moveContactManagedDialer]','checkIsBlackList','[checkIsBlackList]','checkIsBlackListIvr','[checkIsBlackListIvr]','swapAdditionalPhones','[swapAdditionalPhone]','avgHandleTime','[avgHandleTime]','createHistory','util','dialer','../../rpc/cmHopper','../../rpc/cmHopperAdditionalPhone','../../rpc/cmHopperBlack'];(function(_0x2927e1,_0x1e98ff){var _0x38cc3a=function(_0x2158fc){while(--_0x2158fc){_0x2927e1['push'](_0x2927e1['shift']());}};_0x38cc3a(++_0x1e98ff);}(_0xf2e3,0x9b));var _0x3f2e=function(_0x45b034,_0x3a57dd){_0x45b034=_0x45b034-0x0;var _0x509cb0=_0xf2e3[_0x45b034];return _0x509cb0;};'use strict';var util=require(_0x3f2e('0x0'));var logger=require('../../../../config/logger')(_0x3f2e('0x1'));var cmHopper=require(_0x3f2e('0x2'));var cmHopperAdditionalPhone=require(_0x3f2e('0x3'));var cmHopperBlack=require(_0x3f2e('0x4'));var cmHopperHistory=require(_0x3f2e('0x5'));function inspectError(_0x1634cd){return util[_0x3f2e('0x6')](_0x1634cd,{'showHidden':![],'depth':null});}function getContactDialer(_0xabcf5c,_0x216b26,_0x5f254a){return cmHopper[_0x3f2e('0x7')](_0xabcf5c['id'],_0x216b26,_0x5f254a,_0xabcf5c[_0x3f2e('0x8')])[_0x3f2e('0x9')](function(_0xdf499f){_0xabcf5c[_0x3f2e('0xa')]=0x0;logger[_0x3f2e('0xb')](_0x3f2e('0xc'),inspectError(_0xdf499f));});}exports[_0x3f2e('0x7')]=getContactDialer;function getContactDialerIvr(_0x2676a7,_0x29a6cc){return cmHopper[_0x3f2e('0xd')](_0x2676a7['id'],_0x29a6cc,_0x2676a7[_0x3f2e('0x8')])[_0x3f2e('0x9')](function(_0x10a392){_0x2676a7[_0x3f2e('0xa')]=0x0;logger[_0x3f2e('0xb')](_0x3f2e('0xe'),inspectError(_0x10a392));});}exports[_0x3f2e('0xd')]=getContactDialerIvr;function countReScheduled(_0x39b819){return cmHopper['countReScheduled'](_0x39b819)[_0x3f2e('0x9')](function(_0xaa6ef5){logger['error'](_0x3f2e('0xf'),inspectError(_0xaa6ef5));});}exports[_0x3f2e('0x10')]=countReScheduled;function rescheduleContact(_0x9dd50b){return cmHopper[_0x3f2e('0x11')](_0x9dd50b)[_0x3f2e('0x9')](function(_0x57cba7){logger[_0x3f2e('0xb')](_0x3f2e('0x12'),inspectError(_0x57cba7));});}exports[_0x3f2e('0x11')]=rescheduleContact;function unlockContact(_0x4f2e38,_0x43f69e,_0x218b44){return cmHopper[_0x3f2e('0x13')](_0x4f2e38,_0x43f69e,_0x218b44)[_0x3f2e('0x9')](function(_0x1dc5d0){logger[_0x3f2e('0xb')](_0x3f2e('0x14'),inspectError(_0x1dc5d0));});}exports[_0x3f2e('0x13')]=unlockContact;function moveContactManagedDialer(_0x178283){return cmHopper[_0x3f2e('0x15')](_0x178283)[_0x3f2e('0x9')](function(_0x5b9989){logger[_0x3f2e('0xb')](_0x3f2e('0x16'),inspectError(_0x5b9989));});}exports[_0x3f2e('0x15')]=moveContactManagedDialer;function checkIsBlackList(_0xbe899c){return cmHopperBlack[_0x3f2e('0x17')](_0xbe899c)['catch'](function(_0x4ba868){logger[_0x3f2e('0xb')](_0x3f2e('0x18'),inspectError(_0x4ba868));});}exports[_0x3f2e('0x17')]=checkIsBlackList;function checkIsBlackListIvr(_0x2ac500){return cmHopperBlack[_0x3f2e('0x19')](_0x2ac500)[_0x3f2e('0x9')](function(_0x552443){logger['error'](_0x3f2e('0x1a'),inspectError(_0x552443));});}exports[_0x3f2e('0x19')]=checkIsBlackListIvr;function verifyAdditionalPhones(_0x5a66d6,_0x541292,_0x46bb1c){return cmHopperAdditionalPhone['verifyAdditionalPhones'](_0x5a66d6,_0x541292,_0x46bb1c)[_0x3f2e('0x9')](function(_0x401ed9){logger['error']('[verifyAdditionalPhone]',inspectError(_0x401ed9));});}exports['verifyAdditionalPhones']=verifyAdditionalPhones;function swapAdditionalPhones(_0x265bf1,_0x3d7631,_0x4c61d9){return cmHopperAdditionalPhone[_0x3f2e('0x1b')](_0x265bf1,_0x3d7631,_0x4c61d9)['catch'](function(_0x1ad875){logger['error'](_0x3f2e('0x1c'),inspectError(_0x1ad875));});}exports[_0x3f2e('0x1b')]=swapAdditionalPhones;function avgHandleTime(_0x12926e){return cmHopperHistory[_0x3f2e('0x1d')](_0x12926e)[_0x3f2e('0x9')](function(_0x4799d3){logger[_0x3f2e('0xb')](_0x3f2e('0x1e'),inspectError(_0x4799d3));});}exports['avgHandleTime']=avgHandleTime;function createHistory(_0x528063){return cmHopperHistory[_0x3f2e('0x1f')](_0x528063)[_0x3f2e('0x9')](function(_0x35f421){logger[_0x3f2e('0xb')]('[createHistory]',inspectError(_0x35f421));});}exports[_0x3f2e('0x1f')]=createHistory;
\ No newline at end of file
+var _0x33af=['../../rpc/cmHopperHistory','inspect','dialOrderByScheduledAt','catch','temp','error','[getContactDialer]','getContactDialerIvr','[getContactDialerIvr]','countReScheduled','[countReScheduled]','rescheduleContact','[rescheduleContact]','unlockContact','[moveContactManagedDialer]','checkIsBlackList','[checkIsBlackList]','checkIsBlackListIvr','[checkIsBlackListIvr]','verifyAdditionalPhones','[verifyAdditionalPhone]','swapAdditionalPhones','[avgHandleTime]','avgHandleTime','createHistory','[createHistory]','../../../../config/logger','../../rpc/cmHopper','../../rpc/cmHopperAdditionalPhone','../../rpc/cmHopperBlack'];(function(_0x4c1325,_0x331163){var _0x4637b7=function(_0x2605f4){while(--_0x2605f4){_0x4c1325['push'](_0x4c1325['shift']());}};_0x4637b7(++_0x331163);}(_0x33af,0xec));var _0xf33a=function(_0x5690a4,_0x572d64){_0x5690a4=_0x5690a4-0x0;var _0x170f91=_0x33af[_0x5690a4];return _0x170f91;};'use strict';var util=require('util');var logger=require(_0xf33a('0x0'))('dialer');var cmHopper=require(_0xf33a('0x1'));var cmHopperAdditionalPhone=require(_0xf33a('0x2'));var cmHopperBlack=require(_0xf33a('0x3'));var cmHopperHistory=require(_0xf33a('0x4'));function inspectError(_0x169f02){return util[_0xf33a('0x5')](_0x169f02,{'showHidden':![],'depth':null});}function getContactDialer(_0x4c734e,_0x433e25,_0x44cfa5){return cmHopper['getContactDialer'](_0x4c734e['id'],_0x433e25,_0x44cfa5,_0x4c734e[_0xf33a('0x6')])[_0xf33a('0x7')](function(_0x1b2b01){_0x4c734e[_0xf33a('0x8')]=0x0;logger[_0xf33a('0x9')](_0xf33a('0xa'),inspectError(_0x1b2b01));});}exports['getContactDialer']=getContactDialer;function getContactDialerIvr(_0x29bb24,_0x14eb0e){return cmHopper[_0xf33a('0xb')](_0x29bb24['id'],_0x14eb0e,_0x29bb24[_0xf33a('0x6')])[_0xf33a('0x7')](function(_0x27f30a){_0x29bb24['temp']=0x0;logger['error'](_0xf33a('0xc'),inspectError(_0x27f30a));});}exports[_0xf33a('0xb')]=getContactDialerIvr;function countReScheduled(_0x170468){return cmHopper[_0xf33a('0xd')](_0x170468)[_0xf33a('0x7')](function(_0x5959c9){logger[_0xf33a('0x9')](_0xf33a('0xe'),inspectError(_0x5959c9));});}exports['countReScheduled']=countReScheduled;function rescheduleContact(_0x506924){return cmHopper[_0xf33a('0xf')](_0x506924)[_0xf33a('0x7')](function(_0x17043){logger[_0xf33a('0x9')](_0xf33a('0x10'),inspectError(_0x17043));});}exports[_0xf33a('0xf')]=rescheduleContact;function unlockContact(_0x45e311,_0x1f2b1b,_0x507cb9){return cmHopper[_0xf33a('0x11')](_0x45e311,_0x1f2b1b,_0x507cb9)['catch'](function(_0x75848d){logger[_0xf33a('0x9')]('[unlockContact]',inspectError(_0x75848d));});}exports[_0xf33a('0x11')]=unlockContact;function moveContactManagedDialer(_0x25c931){return cmHopper['moveContactManagedDialer'](_0x25c931)[_0xf33a('0x7')](function(_0x23d9e2){logger[_0xf33a('0x9')](_0xf33a('0x12'),inspectError(_0x23d9e2));});}exports['moveContactManagedDialer']=moveContactManagedDialer;function checkIsBlackList(_0x11efa0){return cmHopperBlack[_0xf33a('0x13')](_0x11efa0)[_0xf33a('0x7')](function(_0x30e383){logger[_0xf33a('0x9')](_0xf33a('0x14'),inspectError(_0x30e383));});}exports[_0xf33a('0x13')]=checkIsBlackList;function checkIsBlackListIvr(_0x288275){return cmHopperBlack[_0xf33a('0x15')](_0x288275)[_0xf33a('0x7')](function(_0x520dc4){logger[_0xf33a('0x9')](_0xf33a('0x16'),inspectError(_0x520dc4));});}exports[_0xf33a('0x15')]=checkIsBlackListIvr;function verifyAdditionalPhones(_0x27faa1,_0x2ab756,_0x51d3fd){return cmHopperAdditionalPhone[_0xf33a('0x17')](_0x27faa1,_0x2ab756,_0x51d3fd)['catch'](function(_0x492986){logger[_0xf33a('0x9')](_0xf33a('0x18'),inspectError(_0x492986));});}exports[_0xf33a('0x17')]=verifyAdditionalPhones;function swapAdditionalPhones(_0x429b83,_0x4b9801,_0x57cb1d){return cmHopperAdditionalPhone[_0xf33a('0x19')](_0x429b83,_0x4b9801,_0x57cb1d)['catch'](function(_0x4af24a){logger[_0xf33a('0x9')]('[swapAdditionalPhone]',inspectError(_0x4af24a));});}exports['swapAdditionalPhones']=swapAdditionalPhones;function avgHandleTime(_0x38eba2){return cmHopperHistory['avgHandleTime'](_0x38eba2)[_0xf33a('0x7')](function(_0x553480){logger[_0xf33a('0x9')](_0xf33a('0x1a'),inspectError(_0x553480));});}exports[_0xf33a('0x1b')]=avgHandleTime;function createHistory(_0x729fca){return cmHopperHistory[_0xf33a('0x1c')](_0x729fca)[_0xf33a('0x7')](function(_0x1d19ee){logger[_0xf33a('0x9')](_0xf33a('0x1d'),inspectError(_0x1d19ee));});}exports[_0xf33a('0x1c')]=createHistory;
\ No newline at end of file