Built motion from commit 10af8726.|2.6.34
[motion2.git] / server / services / ami / dialer / utils / hopper.js
index d4c395b..ecaa2f1 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc1c6=['verifyAdditionalPhones','[verifyAdditionalPhone]','swapAdditionalPhones','avgHandleTime','[avgHandleTime]','createHistory','[createHistory]','util','../../../../config/logger','dialer','../../rpc/cmHopperAdditionalPhone','../../rpc/cmHopperHistory','inspect','dialOrderByScheduledAt','temp','error','[getContactDialer]','catch','[getContactDialerIvr]','getContactDialerIvr','countReScheduled','rescheduleContact','[rescheduleContact]','[unlockContact]','unlockContact','moveContactManagedDialer','checkIsBlackList','[checkIsBlackList]','checkIsBlackListIvr','[checkIsBlackListIvr]'];(function(_0x3a4f87,_0x3eb334){var _0x1ad862=function(_0x7bc77b){while(--_0x7bc77b){_0x3a4f87['push'](_0x3a4f87['shift']());}};_0x1ad862(++_0x3eb334);}(_0xc1c6,0xf7));var _0x6c1c=function(_0x4defcf,_0x1acf19){_0x4defcf=_0x4defcf-0x0;var _0xfa4a1=_0xc1c6[_0x4defcf];return _0xfa4a1;};'use strict';var util=require(_0x6c1c('0x0'));var logger=require(_0x6c1c('0x1'))(_0x6c1c('0x2'));var cmHopper=require('../../rpc/cmHopper');var cmHopperAdditionalPhone=require(_0x6c1c('0x3'));var cmHopperBlack=require('../../rpc/cmHopperBlack');var cmHopperHistory=require(_0x6c1c('0x4'));function inspectError(_0x40ff59){return util[_0x6c1c('0x5')](_0x40ff59,{'showHidden':![],'depth':null});}function getContactDialer(_0x59f799,_0x56ed6f,_0x32af84){return cmHopper['getContactDialer'](_0x59f799['id'],_0x56ed6f,_0x32af84,_0x59f799[_0x6c1c('0x6')])['catch'](function(_0xe510ca){_0x59f799[_0x6c1c('0x7')]=0x0;logger[_0x6c1c('0x8')](_0x6c1c('0x9'),inspectError(_0xe510ca));});}exports['getContactDialer']=getContactDialer;function getContactDialerIvr(_0x35f9ab,_0x3ca985){return cmHopper['getContactDialerIvr'](_0x35f9ab['id'],_0x3ca985,_0x35f9ab[_0x6c1c('0x6')])[_0x6c1c('0xa')](function(_0xb3bd12){_0x35f9ab[_0x6c1c('0x7')]=0x0;logger['error'](_0x6c1c('0xb'),inspectError(_0xb3bd12));});}exports[_0x6c1c('0xc')]=getContactDialerIvr;function countReScheduled(_0x40cebf){return cmHopper['countReScheduled'](_0x40cebf)[_0x6c1c('0xa')](function(_0x12a9e6){logger[_0x6c1c('0x8')]('[countReScheduled]',inspectError(_0x12a9e6));});}exports[_0x6c1c('0xd')]=countReScheduled;function rescheduleContact(_0x5e64b7){return cmHopper[_0x6c1c('0xe')](_0x5e64b7)[_0x6c1c('0xa')](function(_0x2d279e){logger[_0x6c1c('0x8')](_0x6c1c('0xf'),inspectError(_0x2d279e));});}exports[_0x6c1c('0xe')]=rescheduleContact;function unlockContact(_0x297c33,_0x41aa74,_0x448f35){return cmHopper['unlockContact'](_0x297c33,_0x41aa74,_0x448f35)[_0x6c1c('0xa')](function(_0x174657){logger['error'](_0x6c1c('0x10'),inspectError(_0x174657));});}exports[_0x6c1c('0x11')]=unlockContact;function moveContactManagedDialer(_0x494ffc){return cmHopper[_0x6c1c('0x12')](_0x494ffc)['catch'](function(_0x338dc2){logger[_0x6c1c('0x8')]('[moveContactManagedDialer]',inspectError(_0x338dc2));});}exports[_0x6c1c('0x12')]=moveContactManagedDialer;function checkIsBlackList(_0x59ab38){return cmHopperBlack[_0x6c1c('0x13')](_0x59ab38)[_0x6c1c('0xa')](function(_0x23470e){logger[_0x6c1c('0x8')](_0x6c1c('0x14'),inspectError(_0x23470e));});}exports[_0x6c1c('0x13')]=checkIsBlackList;function checkIsBlackListIvr(_0x1993c5){return cmHopperBlack[_0x6c1c('0x15')](_0x1993c5)[_0x6c1c('0xa')](function(_0x19f4af){logger[_0x6c1c('0x8')](_0x6c1c('0x16'),inspectError(_0x19f4af));});}exports[_0x6c1c('0x15')]=checkIsBlackListIvr;function verifyAdditionalPhones(_0x9c6c55,_0x31fed2,_0x19c269){return cmHopperAdditionalPhone[_0x6c1c('0x17')](_0x9c6c55,_0x31fed2,_0x19c269)[_0x6c1c('0xa')](function(_0x3a3f13){logger[_0x6c1c('0x8')](_0x6c1c('0x18'),inspectError(_0x3a3f13));});}exports[_0x6c1c('0x17')]=verifyAdditionalPhones;function swapAdditionalPhones(_0x2ef382,_0x7ff10d,_0x18452d){return cmHopperAdditionalPhone[_0x6c1c('0x19')](_0x2ef382,_0x7ff10d,_0x18452d)[_0x6c1c('0xa')](function(_0x1b9d7d){logger[_0x6c1c('0x8')]('[swapAdditionalPhone]',inspectError(_0x1b9d7d));});}exports[_0x6c1c('0x19')]=swapAdditionalPhones;function avgHandleTime(_0x4d73aa){return cmHopperHistory[_0x6c1c('0x1a')](_0x4d73aa)['catch'](function(_0xcd3179){logger['error'](_0x6c1c('0x1b'),inspectError(_0xcd3179));});}exports[_0x6c1c('0x1a')]=avgHandleTime;function createHistory(_0x504348){return cmHopperHistory[_0x6c1c('0x1c')](_0x504348)[_0x6c1c('0xa')](function(_0x4e13e3){logger[_0x6c1c('0x8')](_0x6c1c('0x1d'),inspectError(_0x4e13e3));});}exports[_0x6c1c('0x1c')]=createHistory;
\ No newline at end of file
+var _0x7046=['getContactDialer','dialOrderByScheduledAt','[getContactDialer]','getContactDialerIvr','catch','temp','error','[getContactDialerIvr]','countReScheduled','[countReScheduled]','rescheduleContact','unlockContact','[unlockContact]','moveContactManagedDialer','checkIsBlackList','[checkIsBlackList]','checkIsBlackListIvr','[checkIsBlackListIvr]','[verifyAdditionalPhone]','verifyAdditionalPhones','swapAdditionalPhones','[swapAdditionalPhone]','avgHandleTime','[createHistory]','util','../../../../config/logger','dialer','../../rpc/cmHopper','../../rpc/cmHopperBlack','../../rpc/cmHopperHistory'];(function(_0x3ec741,_0x1970b4){var _0x24a6b8=function(_0x58360b){while(--_0x58360b){_0x3ec741['push'](_0x3ec741['shift']());}};_0x24a6b8(++_0x1970b4);}(_0x7046,0x144));var _0x6704=function(_0x5d6456,_0x58ecc7){_0x5d6456=_0x5d6456-0x0;var _0x4d66c1=_0x7046[_0x5d6456];return _0x4d66c1;};'use strict';var util=require(_0x6704('0x0'));var logger=require(_0x6704('0x1'))(_0x6704('0x2'));var cmHopper=require(_0x6704('0x3'));var cmHopperAdditionalPhone=require('../../rpc/cmHopperAdditionalPhone');var cmHopperBlack=require(_0x6704('0x4'));var cmHopperHistory=require(_0x6704('0x5'));function inspectError(_0x2899c5){return util['inspect'](_0x2899c5,{'showHidden':![],'depth':null});}function getContactDialer(_0x1e9b2a,_0x35bcc6,_0x3f4169){return cmHopper[_0x6704('0x6')](_0x1e9b2a['id'],_0x35bcc6,_0x3f4169,_0x1e9b2a[_0x6704('0x7')])['catch'](function(_0x5ced8){_0x1e9b2a['temp']=0x0;logger['error'](_0x6704('0x8'),inspectError(_0x5ced8));});}exports['getContactDialer']=getContactDialer;function getContactDialerIvr(_0x578822,_0x3ca599){return cmHopper[_0x6704('0x9')](_0x578822['id'],_0x3ca599,_0x578822[_0x6704('0x7')])[_0x6704('0xa')](function(_0x356687){_0x578822[_0x6704('0xb')]=0x0;logger[_0x6704('0xc')](_0x6704('0xd'),inspectError(_0x356687));});}exports['getContactDialerIvr']=getContactDialerIvr;function countReScheduled(_0x2c8b0f){return cmHopper[_0x6704('0xe')](_0x2c8b0f)['catch'](function(_0x2feb52){logger[_0x6704('0xc')](_0x6704('0xf'),inspectError(_0x2feb52));});}exports[_0x6704('0xe')]=countReScheduled;function rescheduleContact(_0x34a538){return cmHopper[_0x6704('0x10')](_0x34a538)[_0x6704('0xa')](function(_0x2da4df){logger[_0x6704('0xc')]('[rescheduleContact]',inspectError(_0x2da4df));});}exports[_0x6704('0x10')]=rescheduleContact;function unlockContact(_0x1752bc,_0x35082b,_0x4fef80){return cmHopper[_0x6704('0x11')](_0x1752bc,_0x35082b,_0x4fef80)[_0x6704('0xa')](function(_0x3e7d1f){logger[_0x6704('0xc')](_0x6704('0x12'),inspectError(_0x3e7d1f));});}exports['unlockContact']=unlockContact;function moveContactManagedDialer(_0x1e5f6e){return cmHopper[_0x6704('0x13')](_0x1e5f6e)[_0x6704('0xa')](function(_0xe49450){logger[_0x6704('0xc')]('[moveContactManagedDialer]',inspectError(_0xe49450));});}exports[_0x6704('0x13')]=moveContactManagedDialer;function checkIsBlackList(_0x2f6eae){return cmHopperBlack[_0x6704('0x14')](_0x2f6eae)[_0x6704('0xa')](function(_0x35eb99){logger[_0x6704('0xc')](_0x6704('0x15'),inspectError(_0x35eb99));});}exports['checkIsBlackList']=checkIsBlackList;function checkIsBlackListIvr(_0x1df6d7){return cmHopperBlack[_0x6704('0x16')](_0x1df6d7)[_0x6704('0xa')](function(_0x59dc43){logger['error'](_0x6704('0x17'),inspectError(_0x59dc43));});}exports[_0x6704('0x16')]=checkIsBlackListIvr;function verifyAdditionalPhones(_0x3cd12e,_0x4ecf4c,_0x41f89e){return cmHopperAdditionalPhone['verifyAdditionalPhones'](_0x3cd12e,_0x4ecf4c,_0x41f89e)[_0x6704('0xa')](function(_0xabb97a){logger[_0x6704('0xc')](_0x6704('0x18'),inspectError(_0xabb97a));});}exports[_0x6704('0x19')]=verifyAdditionalPhones;function swapAdditionalPhones(_0x2476d6,_0x2acafd,_0x5d50ff){return cmHopperAdditionalPhone[_0x6704('0x1a')](_0x2476d6,_0x2acafd,_0x5d50ff)[_0x6704('0xa')](function(_0x36bea4){logger[_0x6704('0xc')](_0x6704('0x1b'),inspectError(_0x36bea4));});}exports['swapAdditionalPhones']=swapAdditionalPhones;function avgHandleTime(_0x5ac014){return cmHopperHistory[_0x6704('0x1c')](_0x5ac014)[_0x6704('0xa')](function(_0x86fc1d){logger[_0x6704('0xc')]('[avgHandleTime]',inspectError(_0x86fc1d));});}exports[_0x6704('0x1c')]=avgHandleTime;function createHistory(_0x18cd98){return cmHopperHistory['createHistory'](_0x18cd98)['catch'](function(_0x16e749){logger['error'](_0x6704('0x1d'),inspectError(_0x16e749));});}exports['createHistory']=createHistory;
\ No newline at end of file