Built motion from commit e1760111.|2.6.18
[motion2.git] / server / services / ami / dialer / utils / hopper.js
index 06a487e..1980289 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5fdc=['dialer','../../rpc/cmHopper','../../rpc/cmHopperAdditionalPhone','../../rpc/cmHopperBlack','../../rpc/cmHopperHistory','inspect','getContactDialer','dialOrderByScheduledAt','catch','[getContactDialer]','temp','error','[getContactDialerIvr]','getContactDialerIvr','countReScheduled','[countReScheduled]','rescheduleContact','unlockContact','moveContactManagedDialer','[moveContactManagedDialer]','checkIsBlackList','checkIsBlackListIvr','[checkIsBlackListIvr]','verifyAdditionalPhones','[verifyAdditionalPhone]','[swapAdditionalPhone]','swapAdditionalPhones','[avgHandleTime]','avgHandleTime','[createHistory]','createHistory','util','../../../../config/logger'];(function(_0x2ad885,_0x491224){var _0xf13f27=function(_0x2ed1bc){while(--_0x2ed1bc){_0x2ad885['push'](_0x2ad885['shift']());}};_0xf13f27(++_0x491224);}(_0x5fdc,0x127));var _0xc5fd=function(_0x50d99e,_0x194252){_0x50d99e=_0x50d99e-0x0;var _0x59380f=_0x5fdc[_0x50d99e];return _0x59380f;};'use strict';var util=require(_0xc5fd('0x0'));var logger=require(_0xc5fd('0x1'))(_0xc5fd('0x2'));var cmHopper=require(_0xc5fd('0x3'));var cmHopperAdditionalPhone=require(_0xc5fd('0x4'));var cmHopperBlack=require(_0xc5fd('0x5'));var cmHopperHistory=require(_0xc5fd('0x6'));function inspectError(_0x4d015c){return util[_0xc5fd('0x7')](_0x4d015c,{'showHidden':![],'depth':null});}function getContactDialer(_0x1b6205,_0xca27a0,_0xea5748){return cmHopper[_0xc5fd('0x8')](_0x1b6205['id'],_0xca27a0,_0xea5748,_0x1b6205[_0xc5fd('0x9')])[_0xc5fd('0xa')](function(_0x5a2eb4){_0x1b6205['temp']=0x0;logger['error'](_0xc5fd('0xb'),inspectError(_0x5a2eb4));});}exports[_0xc5fd('0x8')]=getContactDialer;function getContactDialerIvr(_0x158e58,_0x45c91f){return cmHopper['getContactDialerIvr'](_0x158e58['id'],_0x45c91f,_0x158e58['dialOrderByScheduledAt'])[_0xc5fd('0xa')](function(_0x1edeec){_0x158e58[_0xc5fd('0xc')]=0x0;logger[_0xc5fd('0xd')](_0xc5fd('0xe'),inspectError(_0x1edeec));});}exports[_0xc5fd('0xf')]=getContactDialerIvr;function countReScheduled(_0x484bbd){return cmHopper[_0xc5fd('0x10')](_0x484bbd)['catch'](function(_0x558939){logger[_0xc5fd('0xd')](_0xc5fd('0x11'),inspectError(_0x558939));});}exports[_0xc5fd('0x10')]=countReScheduled;function rescheduleContact(_0x23ac5d){return cmHopper[_0xc5fd('0x12')](_0x23ac5d)[_0xc5fd('0xa')](function(_0x27447e){logger[_0xc5fd('0xd')]('[rescheduleContact]',inspectError(_0x27447e));});}exports[_0xc5fd('0x12')]=rescheduleContact;function unlockContact(_0x103c3d,_0x2221da,_0x3404e0){return cmHopper['unlockContact'](_0x103c3d,_0x2221da,_0x3404e0)['catch'](function(_0x4efafd){logger['error']('[unlockContact]',inspectError(_0x4efafd));});}exports[_0xc5fd('0x13')]=unlockContact;function moveContactManagedDialer(_0x430e52){return cmHopper[_0xc5fd('0x14')](_0x430e52)[_0xc5fd('0xa')](function(_0x2ee392){logger[_0xc5fd('0xd')](_0xc5fd('0x15'),inspectError(_0x2ee392));});}exports['moveContactManagedDialer']=moveContactManagedDialer;function checkIsBlackList(_0xb7bab1){return cmHopperBlack[_0xc5fd('0x16')](_0xb7bab1)[_0xc5fd('0xa')](function(_0x9c12e4){logger[_0xc5fd('0xd')]('[checkIsBlackList]',inspectError(_0x9c12e4));});}exports[_0xc5fd('0x16')]=checkIsBlackList;function checkIsBlackListIvr(_0x24e5e9){return cmHopperBlack[_0xc5fd('0x17')](_0x24e5e9)[_0xc5fd('0xa')](function(_0x5a7bdc){logger['error'](_0xc5fd('0x18'),inspectError(_0x5a7bdc));});}exports[_0xc5fd('0x17')]=checkIsBlackListIvr;function verifyAdditionalPhones(_0x3d7211,_0x42d7f4,_0x334401){return cmHopperAdditionalPhone[_0xc5fd('0x19')](_0x3d7211,_0x42d7f4,_0x334401)['catch'](function(_0x1a3f21){logger[_0xc5fd('0xd')](_0xc5fd('0x1a'),inspectError(_0x1a3f21));});}exports[_0xc5fd('0x19')]=verifyAdditionalPhones;function swapAdditionalPhones(_0x39bb5e,_0x4020af,_0x475b91){return cmHopperAdditionalPhone['swapAdditionalPhones'](_0x39bb5e,_0x4020af,_0x475b91)[_0xc5fd('0xa')](function(_0x48cd1d){logger[_0xc5fd('0xd')](_0xc5fd('0x1b'),inspectError(_0x48cd1d));});}exports[_0xc5fd('0x1c')]=swapAdditionalPhones;function avgHandleTime(_0x2bee22){return cmHopperHistory['avgHandleTime'](_0x2bee22)[_0xc5fd('0xa')](function(_0x1bbdc4){logger[_0xc5fd('0xd')](_0xc5fd('0x1d'),inspectError(_0x1bbdc4));});}exports[_0xc5fd('0x1e')]=avgHandleTime;function createHistory(_0x209975){return cmHopperHistory['createHistory'](_0x209975)[_0xc5fd('0xa')](function(_0x5d4f70){logger['error'](_0xc5fd('0x1f'),inspectError(_0x5d4f70));});}exports[_0xc5fd('0x20')]=createHistory;
\ No newline at end of file
+var _0x9536=['countReScheduled','[countReScheduled]','rescheduleContact','[rescheduleContact]','[unlockContact]','moveContactManagedDialer','[moveContactManagedDialer]','[checkIsBlackList]','checkIsBlackList','checkIsBlackListIvr','[checkIsBlackListIvr]','verifyAdditionalPhones','[swapAdditionalPhone]','swapAdditionalPhones','[avgHandleTime]','createHistory','[createHistory]','util','../../../../config/logger','dialer','../../rpc/cmHopper','../../rpc/cmHopperBlack','inspect','dialOrderByScheduledAt','catch','temp','error','getContactDialer','[getContactDialerIvr]','getContactDialerIvr'];(function(_0x1ab0b5,_0x3cf535){var _0x41ffef=function(_0x4f2eb3){while(--_0x4f2eb3){_0x1ab0b5['push'](_0x1ab0b5['shift']());}};_0x41ffef(++_0x3cf535);}(_0x9536,0x179));var _0x6953=function(_0x4da356,_0x5235e1){_0x4da356=_0x4da356-0x0;var _0x321b07=_0x9536[_0x4da356];return _0x321b07;};'use strict';var util=require(_0x6953('0x0'));var logger=require(_0x6953('0x1'))(_0x6953('0x2'));var cmHopper=require(_0x6953('0x3'));var cmHopperAdditionalPhone=require('../../rpc/cmHopperAdditionalPhone');var cmHopperBlack=require(_0x6953('0x4'));var cmHopperHistory=require('../../rpc/cmHopperHistory');function inspectError(_0x42fb54){return util[_0x6953('0x5')](_0x42fb54,{'showHidden':![],'depth':null});}function getContactDialer(_0x1dee7c,_0x3ba964,_0x2f3cc3){return cmHopper['getContactDialer'](_0x1dee7c['id'],_0x3ba964,_0x2f3cc3,_0x1dee7c[_0x6953('0x6')])[_0x6953('0x7')](function(_0x385f2d){_0x1dee7c[_0x6953('0x8')]=0x0;logger[_0x6953('0x9')]('[getContactDialer]',inspectError(_0x385f2d));});}exports[_0x6953('0xa')]=getContactDialer;function getContactDialerIvr(_0x36bc9e,_0x449acb){return cmHopper['getContactDialerIvr'](_0x36bc9e['id'],_0x449acb,_0x36bc9e[_0x6953('0x6')])[_0x6953('0x7')](function(_0x300c48){_0x36bc9e[_0x6953('0x8')]=0x0;logger[_0x6953('0x9')](_0x6953('0xb'),inspectError(_0x300c48));});}exports[_0x6953('0xc')]=getContactDialerIvr;function countReScheduled(_0x2144c5){return cmHopper[_0x6953('0xd')](_0x2144c5)['catch'](function(_0x358388){logger['error'](_0x6953('0xe'),inspectError(_0x358388));});}exports[_0x6953('0xd')]=countReScheduled;function rescheduleContact(_0x3e83d5){return cmHopper[_0x6953('0xf')](_0x3e83d5)[_0x6953('0x7')](function(_0x244713){logger[_0x6953('0x9')](_0x6953('0x10'),inspectError(_0x244713));});}exports[_0x6953('0xf')]=rescheduleContact;function unlockContact(_0x31d182,_0xae5515,_0x548473){return cmHopper['unlockContact'](_0x31d182,_0xae5515,_0x548473)[_0x6953('0x7')](function(_0x44e8a2){logger[_0x6953('0x9')](_0x6953('0x11'),inspectError(_0x44e8a2));});}exports['unlockContact']=unlockContact;function moveContactManagedDialer(_0x1b6dcb){return cmHopper[_0x6953('0x12')](_0x1b6dcb)['catch'](function(_0x10858a){logger[_0x6953('0x9')](_0x6953('0x13'),inspectError(_0x10858a));});}exports[_0x6953('0x12')]=moveContactManagedDialer;function checkIsBlackList(_0xc714d3){return cmHopperBlack['checkIsBlackList'](_0xc714d3)[_0x6953('0x7')](function(_0x1b7123){logger[_0x6953('0x9')](_0x6953('0x14'),inspectError(_0x1b7123));});}exports[_0x6953('0x15')]=checkIsBlackList;function checkIsBlackListIvr(_0x5e33ec){return cmHopperBlack[_0x6953('0x16')](_0x5e33ec)[_0x6953('0x7')](function(_0x559ae3){logger[_0x6953('0x9')](_0x6953('0x17'),inspectError(_0x559ae3));});}exports[_0x6953('0x16')]=checkIsBlackListIvr;function verifyAdditionalPhones(_0x171dd8,_0x53640a,_0x37f339){return cmHopperAdditionalPhone[_0x6953('0x18')](_0x171dd8,_0x53640a,_0x37f339)[_0x6953('0x7')](function(_0x508ea7){logger['error']('[verifyAdditionalPhone]',inspectError(_0x508ea7));});}exports[_0x6953('0x18')]=verifyAdditionalPhones;function swapAdditionalPhones(_0x1bf5a9,_0x550be4,_0x1a32f4){return cmHopperAdditionalPhone['swapAdditionalPhones'](_0x1bf5a9,_0x550be4,_0x1a32f4)[_0x6953('0x7')](function(_0x2bf39b){logger[_0x6953('0x9')](_0x6953('0x19'),inspectError(_0x2bf39b));});}exports[_0x6953('0x1a')]=swapAdditionalPhones;function avgHandleTime(_0x1497e3){return cmHopperHistory['avgHandleTime'](_0x1497e3)[_0x6953('0x7')](function(_0x3c1075){logger['error'](_0x6953('0x1b'),inspectError(_0x3c1075));});}exports['avgHandleTime']=avgHandleTime;function createHistory(_0x173b3c){return cmHopperHistory[_0x6953('0x1c')](_0x173b3c)[_0x6953('0x7')](function(_0x4b0325){logger[_0x6953('0x9')](_0x6953('0x1d'),inspectError(_0x4b0325));});}exports[_0x6953('0x1c')]=createHistory;
\ No newline at end of file