Built motion from commit 953226e6.|2.6.32
[motion2.git] / server / services / ami / dialer / utils / hopper.js
index 8848dd8..b596cff 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4fb4=['moveContactManagedDialer','[moveContactManagedDialer]','[checkIsBlackList]','checkIsBlackList','checkIsBlackListIvr','verifyAdditionalPhones','swapAdditionalPhones','avgHandleTime','[avgHandleTime]','createHistory','../../../../config/logger','dialer','../../rpc/cmHopper','../../rpc/cmHopperAdditionalPhone','../../rpc/cmHopperBlack','../../rpc/cmHopperHistory','inspect','getContactDialer','dialOrderByScheduledAt','catch','error','[getContactDialer]','getContactDialerIvr','temp','[getContactDialerIvr]','countReScheduled','[countReScheduled]','rescheduleContact','unlockContact','[unlockContact]'];(function(_0x5ade16,_0x3ab6c0){var _0x13696b=function(_0x2e16b5){while(--_0x2e16b5){_0x5ade16['push'](_0x5ade16['shift']());}};_0x13696b(++_0x3ab6c0);}(_0x4fb4,0x190));var _0x44fb=function(_0x57bcaa,_0x229400){_0x57bcaa=_0x57bcaa-0x0;var _0x56f274=_0x4fb4[_0x57bcaa];return _0x56f274;};'use strict';var util=require('util');var logger=require(_0x44fb('0x0'))(_0x44fb('0x1'));var cmHopper=require(_0x44fb('0x2'));var cmHopperAdditionalPhone=require(_0x44fb('0x3'));var cmHopperBlack=require(_0x44fb('0x4'));var cmHopperHistory=require(_0x44fb('0x5'));function inspectError(_0x53ee5d){return util[_0x44fb('0x6')](_0x53ee5d,{'showHidden':![],'depth':null});}function getContactDialer(_0x953327,_0x308b96,_0x26fbd6){return cmHopper[_0x44fb('0x7')](_0x953327['id'],_0x308b96,_0x26fbd6,_0x953327[_0x44fb('0x8')])[_0x44fb('0x9')](function(_0x2a4d75){_0x953327['temp']=0x0;logger[_0x44fb('0xa')](_0x44fb('0xb'),inspectError(_0x2a4d75));});}exports['getContactDialer']=getContactDialer;function getContactDialerIvr(_0x42fcc2,_0x3d9002){return cmHopper[_0x44fb('0xc')](_0x42fcc2['id'],_0x3d9002,_0x42fcc2[_0x44fb('0x8')])[_0x44fb('0x9')](function(_0x44c83b){_0x42fcc2[_0x44fb('0xd')]=0x0;logger[_0x44fb('0xa')](_0x44fb('0xe'),inspectError(_0x44c83b));});}exports[_0x44fb('0xc')]=getContactDialerIvr;function countReScheduled(_0x4b202d){return cmHopper[_0x44fb('0xf')](_0x4b202d)[_0x44fb('0x9')](function(_0x40cb86){logger[_0x44fb('0xa')](_0x44fb('0x10'),inspectError(_0x40cb86));});}exports['countReScheduled']=countReScheduled;function rescheduleContact(_0x1fc8fa){return cmHopper[_0x44fb('0x11')](_0x1fc8fa)[_0x44fb('0x9')](function(_0x449150){logger[_0x44fb('0xa')]('[rescheduleContact]',inspectError(_0x449150));});}exports[_0x44fb('0x11')]=rescheduleContact;function unlockContact(_0x18268c,_0x472658,_0x147fe0){return cmHopper[_0x44fb('0x12')](_0x18268c,_0x472658,_0x147fe0)[_0x44fb('0x9')](function(_0x19b828){logger['error'](_0x44fb('0x13'),inspectError(_0x19b828));});}exports[_0x44fb('0x12')]=unlockContact;function moveContactManagedDialer(_0x2e0efd){return cmHopper[_0x44fb('0x14')](_0x2e0efd)[_0x44fb('0x9')](function(_0x22c2eb){logger[_0x44fb('0xa')](_0x44fb('0x15'),inspectError(_0x22c2eb));});}exports[_0x44fb('0x14')]=moveContactManagedDialer;function checkIsBlackList(_0x1fc48c){return cmHopperBlack['checkIsBlackList'](_0x1fc48c)['catch'](function(_0x4b50f5){logger[_0x44fb('0xa')](_0x44fb('0x16'),inspectError(_0x4b50f5));});}exports[_0x44fb('0x17')]=checkIsBlackList;function checkIsBlackListIvr(_0x544647){return cmHopperBlack[_0x44fb('0x18')](_0x544647)[_0x44fb('0x9')](function(_0x3394e2){logger['error']('[checkIsBlackListIvr]',inspectError(_0x3394e2));});}exports[_0x44fb('0x18')]=checkIsBlackListIvr;function verifyAdditionalPhones(_0x5cf7ec,_0x441d79,_0x4fc66d){return cmHopperAdditionalPhone[_0x44fb('0x19')](_0x5cf7ec,_0x441d79,_0x4fc66d)[_0x44fb('0x9')](function(_0x1f3d5c){logger['error']('[verifyAdditionalPhone]',inspectError(_0x1f3d5c));});}exports[_0x44fb('0x19')]=verifyAdditionalPhones;function swapAdditionalPhones(_0xa50a49,_0x1c831e,_0x733c){return cmHopperAdditionalPhone['swapAdditionalPhones'](_0xa50a49,_0x1c831e,_0x733c)[_0x44fb('0x9')](function(_0x3a7cd1){logger['error']('[swapAdditionalPhone]',inspectError(_0x3a7cd1));});}exports[_0x44fb('0x1a')]=swapAdditionalPhones;function avgHandleTime(_0x2611d6){return cmHopperHistory[_0x44fb('0x1b')](_0x2611d6)[_0x44fb('0x9')](function(_0xb7e5e8){logger[_0x44fb('0xa')](_0x44fb('0x1c'),inspectError(_0xb7e5e8));});}exports[_0x44fb('0x1b')]=avgHandleTime;function createHistory(_0x6bd0b4){return cmHopperHistory['createHistory'](_0x6bd0b4)['catch'](function(_0x587984){logger[_0x44fb('0xa')]('[createHistory]',inspectError(_0x587984));});}exports[_0x44fb('0x1d')]=createHistory;
\ No newline at end of file
+var _0xdb28=['createHistory','util','../../../../config/logger','dialer','../../rpc/cmHopper','../../rpc/cmHopperBlack','../../rpc/cmHopperHistory','inspect','getContactDialer','temp','error','[getContactDialer]','dialOrderByScheduledAt','catch','[getContactDialerIvr]','countReScheduled','rescheduleContact','[rescheduleContact]','[unlockContact]','unlockContact','moveContactManagedDialer','checkIsBlackList','[checkIsBlackList]','checkIsBlackListIvr','[checkIsBlackListIvr]','swapAdditionalPhones','[swapAdditionalPhone]','avgHandleTime','[avgHandleTime]'];(function(_0x50a0c2,_0x4befab){var _0x5ebadd=function(_0x3a3342){while(--_0x3a3342){_0x50a0c2['push'](_0x50a0c2['shift']());}};_0x5ebadd(++_0x4befab);}(_0xdb28,0x106));var _0x8db2=function(_0x248a9f,_0x67ddc8){_0x248a9f=_0x248a9f-0x0;var _0x1e1f91=_0xdb28[_0x248a9f];return _0x1e1f91;};'use strict';var util=require(_0x8db2('0x0'));var logger=require(_0x8db2('0x1'))(_0x8db2('0x2'));var cmHopper=require(_0x8db2('0x3'));var cmHopperAdditionalPhone=require('../../rpc/cmHopperAdditionalPhone');var cmHopperBlack=require(_0x8db2('0x4'));var cmHopperHistory=require(_0x8db2('0x5'));function inspectError(_0xfcf49f){return util[_0x8db2('0x6')](_0xfcf49f,{'showHidden':![],'depth':null});}function getContactDialer(_0x11109e,_0x52bf99,_0x21a03e){return cmHopper[_0x8db2('0x7')](_0x11109e['id'],_0x52bf99,_0x21a03e,_0x11109e['dialOrderByScheduledAt'])['catch'](function(_0x477f50){_0x11109e[_0x8db2('0x8')]=0x0;logger[_0x8db2('0x9')](_0x8db2('0xa'),inspectError(_0x477f50));});}exports[_0x8db2('0x7')]=getContactDialer;function getContactDialerIvr(_0x1ff362,_0x126c78){return cmHopper['getContactDialerIvr'](_0x1ff362['id'],_0x126c78,_0x1ff362[_0x8db2('0xb')])[_0x8db2('0xc')](function(_0x1f62af){_0x1ff362['temp']=0x0;logger[_0x8db2('0x9')](_0x8db2('0xd'),inspectError(_0x1f62af));});}exports['getContactDialerIvr']=getContactDialerIvr;function countReScheduled(_0x41beda){return cmHopper[_0x8db2('0xe')](_0x41beda)[_0x8db2('0xc')](function(_0x204f49){logger[_0x8db2('0x9')]('[countReScheduled]',inspectError(_0x204f49));});}exports['countReScheduled']=countReScheduled;function rescheduleContact(_0x15070d){return cmHopper[_0x8db2('0xf')](_0x15070d)[_0x8db2('0xc')](function(_0x1d6a15){logger[_0x8db2('0x9')](_0x8db2('0x10'),inspectError(_0x1d6a15));});}exports[_0x8db2('0xf')]=rescheduleContact;function unlockContact(_0x3c96a7,_0x131252,_0x16c8c2){return cmHopper['unlockContact'](_0x3c96a7,_0x131252,_0x16c8c2)[_0x8db2('0xc')](function(_0x24da1b){logger['error'](_0x8db2('0x11'),inspectError(_0x24da1b));});}exports[_0x8db2('0x12')]=unlockContact;function moveContactManagedDialer(_0x21db8c){return cmHopper[_0x8db2('0x13')](_0x21db8c)[_0x8db2('0xc')](function(_0x46ce14){logger['error']('[moveContactManagedDialer]',inspectError(_0x46ce14));});}exports[_0x8db2('0x13')]=moveContactManagedDialer;function checkIsBlackList(_0x104e33){return cmHopperBlack[_0x8db2('0x14')](_0x104e33)[_0x8db2('0xc')](function(_0x58562e){logger[_0x8db2('0x9')](_0x8db2('0x15'),inspectError(_0x58562e));});}exports[_0x8db2('0x14')]=checkIsBlackList;function checkIsBlackListIvr(_0x297ba3){return cmHopperBlack[_0x8db2('0x16')](_0x297ba3)['catch'](function(_0x124467){logger[_0x8db2('0x9')](_0x8db2('0x17'),inspectError(_0x124467));});}exports[_0x8db2('0x16')]=checkIsBlackListIvr;function verifyAdditionalPhones(_0x2260d8,_0x21704c,_0x796ec1){return cmHopperAdditionalPhone['verifyAdditionalPhones'](_0x2260d8,_0x21704c,_0x796ec1)[_0x8db2('0xc')](function(_0x4f6516){logger['error']('[verifyAdditionalPhone]',inspectError(_0x4f6516));});}exports['verifyAdditionalPhones']=verifyAdditionalPhones;function swapAdditionalPhones(_0xec8cd2,_0x29b5cd,_0x3be281){return cmHopperAdditionalPhone[_0x8db2('0x18')](_0xec8cd2,_0x29b5cd,_0x3be281)[_0x8db2('0xc')](function(_0x8d4f54){logger['error'](_0x8db2('0x19'),inspectError(_0x8d4f54));});}exports[_0x8db2('0x18')]=swapAdditionalPhones;function avgHandleTime(_0x430dd5){return cmHopperHistory[_0x8db2('0x1a')](_0x430dd5)['catch'](function(_0x2e0691){logger[_0x8db2('0x9')](_0x8db2('0x1b'),inspectError(_0x2e0691));});}exports[_0x8db2('0x1a')]=avgHandleTime;function createHistory(_0xbe5ece){return cmHopperHistory[_0x8db2('0x1c')](_0xbe5ece)[_0x8db2('0xc')](function(_0x3124d5){logger[_0x8db2('0x9')]('[createHistory]',inspectError(_0x3124d5));});}exports[_0x8db2('0x1c')]=createHistory;
\ No newline at end of file