Built motion from commit b0a9a629.|2.6.33
[motion2.git] / server / services / ami / dialer / utils / hopper.js
index 7cc9056..ebb0691 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7b84=['swapAdditionalPhones','[avgHandleTime]','[createHistory]','util','../../../../config/logger','dialer','../../rpc/cmHopper','../../rpc/cmHopperAdditionalPhone','../../rpc/cmHopperBlack','../../rpc/cmHopperHistory','inspect','getContactDialer','dialOrderByScheduledAt','temp','error','[getContactDialer]','getContactDialerIvr','catch','[getContactDialerIvr]','countReScheduled','[countReScheduled]','rescheduleContact','unlockContact','[unlockContact]','checkIsBlackList','[checkIsBlackList]','checkIsBlackListIvr','[checkIsBlackListIvr]','[verifyAdditionalPhone]'];(function(_0x397e5f,_0x454c8f){var _0x5302b8=function(_0x1a29ef){while(--_0x1a29ef){_0x397e5f['push'](_0x397e5f['shift']());}};_0x5302b8(++_0x454c8f);}(_0x7b84,0x17c));var _0x47b8=function(_0x2ddb89,_0x1ad76d){_0x2ddb89=_0x2ddb89-0x0;var _0x1cacef=_0x7b84[_0x2ddb89];return _0x1cacef;};'use strict';var util=require(_0x47b8('0x0'));var logger=require(_0x47b8('0x1'))(_0x47b8('0x2'));var cmHopper=require(_0x47b8('0x3'));var cmHopperAdditionalPhone=require(_0x47b8('0x4'));var cmHopperBlack=require(_0x47b8('0x5'));var cmHopperHistory=require(_0x47b8('0x6'));function inspectError(_0x5c7cda){return util[_0x47b8('0x7')](_0x5c7cda,{'showHidden':![],'depth':null});}function getContactDialer(_0x1fa41a,_0x2279ea,_0x7013d7){return cmHopper[_0x47b8('0x8')](_0x1fa41a['id'],_0x2279ea,_0x7013d7,_0x1fa41a[_0x47b8('0x9')])['catch'](function(_0x3867ca){_0x1fa41a[_0x47b8('0xa')]=0x0;logger[_0x47b8('0xb')](_0x47b8('0xc'),inspectError(_0x3867ca));});}exports[_0x47b8('0x8')]=getContactDialer;function getContactDialerIvr(_0x1af17f,_0x24d240){return cmHopper[_0x47b8('0xd')](_0x1af17f['id'],_0x24d240,_0x1af17f[_0x47b8('0x9')])[_0x47b8('0xe')](function(_0x289f98){_0x1af17f[_0x47b8('0xa')]=0x0;logger[_0x47b8('0xb')](_0x47b8('0xf'),inspectError(_0x289f98));});}exports[_0x47b8('0xd')]=getContactDialerIvr;function countReScheduled(_0x2a1af3){return cmHopper[_0x47b8('0x10')](_0x2a1af3)[_0x47b8('0xe')](function(_0x25a224){logger[_0x47b8('0xb')](_0x47b8('0x11'),inspectError(_0x25a224));});}exports[_0x47b8('0x10')]=countReScheduled;function rescheduleContact(_0x2d1aaf){return cmHopper[_0x47b8('0x12')](_0x2d1aaf)[_0x47b8('0xe')](function(_0x223121){logger[_0x47b8('0xb')]('[rescheduleContact]',inspectError(_0x223121));});}exports[_0x47b8('0x12')]=rescheduleContact;function unlockContact(_0x340da0,_0x3e760a,_0x1217a4){return cmHopper[_0x47b8('0x13')](_0x340da0,_0x3e760a,_0x1217a4)[_0x47b8('0xe')](function(_0x4765ad){logger['error'](_0x47b8('0x14'),inspectError(_0x4765ad));});}exports['unlockContact']=unlockContact;function moveContactManagedDialer(_0x525fd6){return cmHopper['moveContactManagedDialer'](_0x525fd6)[_0x47b8('0xe')](function(_0x36faf1){logger[_0x47b8('0xb')]('[moveContactManagedDialer]',inspectError(_0x36faf1));});}exports['moveContactManagedDialer']=moveContactManagedDialer;function checkIsBlackList(_0x4f6716){return cmHopperBlack[_0x47b8('0x15')](_0x4f6716)['catch'](function(_0x2a4fa7){logger[_0x47b8('0xb')](_0x47b8('0x16'),inspectError(_0x2a4fa7));});}exports[_0x47b8('0x15')]=checkIsBlackList;function checkIsBlackListIvr(_0x4eba33){return cmHopperBlack[_0x47b8('0x17')](_0x4eba33)[_0x47b8('0xe')](function(_0x2840c3){logger[_0x47b8('0xb')](_0x47b8('0x18'),inspectError(_0x2840c3));});}exports[_0x47b8('0x17')]=checkIsBlackListIvr;function verifyAdditionalPhones(_0x54f6bc,_0x31555d,_0x2a22e3){return cmHopperAdditionalPhone['verifyAdditionalPhones'](_0x54f6bc,_0x31555d,_0x2a22e3)[_0x47b8('0xe')](function(_0x247429){logger[_0x47b8('0xb')](_0x47b8('0x19'),inspectError(_0x247429));});}exports['verifyAdditionalPhones']=verifyAdditionalPhones;function swapAdditionalPhones(_0x35b327,_0x332c23,_0x319d17){return cmHopperAdditionalPhone[_0x47b8('0x1a')](_0x35b327,_0x332c23,_0x319d17)[_0x47b8('0xe')](function(_0xbf5ce9){logger[_0x47b8('0xb')]('[swapAdditionalPhone]',inspectError(_0xbf5ce9));});}exports[_0x47b8('0x1a')]=swapAdditionalPhones;function avgHandleTime(_0x1f719a){return cmHopperHistory['avgHandleTime'](_0x1f719a)[_0x47b8('0xe')](function(_0x6d517a){logger[_0x47b8('0xb')](_0x47b8('0x1b'),inspectError(_0x6d517a));});}exports['avgHandleTime']=avgHandleTime;function createHistory(_0x162d96){return cmHopperHistory['createHistory'](_0x162d96)[_0x47b8('0xe')](function(_0x2255ab){logger[_0x47b8('0xb')](_0x47b8('0x1c'),inspectError(_0x2255ab));});}exports['createHistory']=createHistory;
\ No newline at end of file
+var _0xd101=['createHistory','util','dialer','../../rpc/cmHopper','../../rpc/cmHopperAdditionalPhone','../../rpc/cmHopperBlack','../../rpc/cmHopperHistory','inspect','getContactDialer','dialOrderByScheduledAt','catch','temp','error','[getContactDialer]','getContactDialerIvr','countReScheduled','[countReScheduled]','rescheduleContact','[rescheduleContact]','unlockContact','[unlockContact]','[moveContactManagedDialer]','moveContactManagedDialer','checkIsBlackList','checkIsBlackListIvr','[checkIsBlackListIvr]','verifyAdditionalPhones','[verifyAdditionalPhone]','swapAdditionalPhones','[swapAdditionalPhone]','avgHandleTime','[createHistory]'];(function(_0x5dceb0,_0x204cd1){var _0x74ff42=function(_0x13bfed){while(--_0x13bfed){_0x5dceb0['push'](_0x5dceb0['shift']());}};_0x74ff42(++_0x204cd1);}(_0xd101,0xc1));var _0x1d10=function(_0x356515,_0x573a0c){_0x356515=_0x356515-0x0;var _0x20c5b6=_0xd101[_0x356515];return _0x20c5b6;};'use strict';var util=require(_0x1d10('0x0'));var logger=require('../../../../config/logger')(_0x1d10('0x1'));var cmHopper=require(_0x1d10('0x2'));var cmHopperAdditionalPhone=require(_0x1d10('0x3'));var cmHopperBlack=require(_0x1d10('0x4'));var cmHopperHistory=require(_0x1d10('0x5'));function inspectError(_0x25b425){return util[_0x1d10('0x6')](_0x25b425,{'showHidden':![],'depth':null});}function getContactDialer(_0x1e83e0,_0x5c5c42,_0x42b6d2){return cmHopper[_0x1d10('0x7')](_0x1e83e0['id'],_0x5c5c42,_0x42b6d2,_0x1e83e0[_0x1d10('0x8')])[_0x1d10('0x9')](function(_0xb9e08){_0x1e83e0[_0x1d10('0xa')]=0x0;logger[_0x1d10('0xb')](_0x1d10('0xc'),inspectError(_0xb9e08));});}exports[_0x1d10('0x7')]=getContactDialer;function getContactDialerIvr(_0x182c87,_0xf7926b){return cmHopper[_0x1d10('0xd')](_0x182c87['id'],_0xf7926b,_0x182c87[_0x1d10('0x8')])[_0x1d10('0x9')](function(_0x42efad){_0x182c87[_0x1d10('0xa')]=0x0;logger[_0x1d10('0xb')]('[getContactDialerIvr]',inspectError(_0x42efad));});}exports[_0x1d10('0xd')]=getContactDialerIvr;function countReScheduled(_0x93cb59){return cmHopper[_0x1d10('0xe')](_0x93cb59)[_0x1d10('0x9')](function(_0x268506){logger['error'](_0x1d10('0xf'),inspectError(_0x268506));});}exports[_0x1d10('0xe')]=countReScheduled;function rescheduleContact(_0x1a6586){return cmHopper[_0x1d10('0x10')](_0x1a6586)[_0x1d10('0x9')](function(_0x183bc4){logger['error'](_0x1d10('0x11'),inspectError(_0x183bc4));});}exports[_0x1d10('0x10')]=rescheduleContact;function unlockContact(_0x306953,_0x2ad3c0,_0x4f014a){return cmHopper[_0x1d10('0x12')](_0x306953,_0x2ad3c0,_0x4f014a)[_0x1d10('0x9')](function(_0x41152c){logger[_0x1d10('0xb')](_0x1d10('0x13'),inspectError(_0x41152c));});}exports[_0x1d10('0x12')]=unlockContact;function moveContactManagedDialer(_0x4528a6){return cmHopper['moveContactManagedDialer'](_0x4528a6)[_0x1d10('0x9')](function(_0x1163dd){logger[_0x1d10('0xb')](_0x1d10('0x14'),inspectError(_0x1163dd));});}exports[_0x1d10('0x15')]=moveContactManagedDialer;function checkIsBlackList(_0x5e61f8){return cmHopperBlack['checkIsBlackList'](_0x5e61f8)[_0x1d10('0x9')](function(_0x57ec1c){logger['error']('[checkIsBlackList]',inspectError(_0x57ec1c));});}exports[_0x1d10('0x16')]=checkIsBlackList;function checkIsBlackListIvr(_0x2496bc){return cmHopperBlack[_0x1d10('0x17')](_0x2496bc)[_0x1d10('0x9')](function(_0x4ce84a){logger['error'](_0x1d10('0x18'),inspectError(_0x4ce84a));});}exports['checkIsBlackListIvr']=checkIsBlackListIvr;function verifyAdditionalPhones(_0x68b09,_0x474321,_0x160802){return cmHopperAdditionalPhone[_0x1d10('0x19')](_0x68b09,_0x474321,_0x160802)[_0x1d10('0x9')](function(_0x3601ba){logger[_0x1d10('0xb')](_0x1d10('0x1a'),inspectError(_0x3601ba));});}exports[_0x1d10('0x19')]=verifyAdditionalPhones;function swapAdditionalPhones(_0x84055f,_0xf1e4c8,_0x5abc58){return cmHopperAdditionalPhone[_0x1d10('0x1b')](_0x84055f,_0xf1e4c8,_0x5abc58)[_0x1d10('0x9')](function(_0x475934){logger[_0x1d10('0xb')](_0x1d10('0x1c'),inspectError(_0x475934));});}exports[_0x1d10('0x1b')]=swapAdditionalPhones;function avgHandleTime(_0x38f583){return cmHopperHistory[_0x1d10('0x1d')](_0x38f583)['catch'](function(_0x355e10){logger[_0x1d10('0xb')]('[avgHandleTime]',inspectError(_0x355e10));});}exports[_0x1d10('0x1d')]=avgHandleTime;function createHistory(_0x52d514){return cmHopperHistory['createHistory'](_0x52d514)[_0x1d10('0x9')](function(_0x597aea){logger[_0x1d10('0xb')](_0x1d10('0x1e'),inspectError(_0x597aea));});}exports[_0x1d10('0x1f')]=createHistory;
\ No newline at end of file