Built motion from commit 980b26c3.|2.6.29
[motion2.git] / server / services / ami / dialer / utils / hopper.js
index bdbef9d..6401fc3 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5d58=['../../rpc/cmHopperHistory','inspect','getContactDialer','dialOrderByScheduledAt','catch','temp','error','getContactDialerIvr','[getContactDialerIvr]','countReScheduled','rescheduleContact','[rescheduleContact]','unlockContact','[unlockContact]','moveContactManagedDialer','[moveContactManagedDialer]','checkIsBlackList','[checkIsBlackList]','checkIsBlackListIvr','[verifyAdditionalPhone]','verifyAdditionalPhones','swapAdditionalPhones','[swapAdditionalPhone]','[avgHandleTime]','avgHandleTime','createHistory','[createHistory]','../../rpc/cmHopperBlack'];(function(_0x11d44f,_0x29e5bc){var _0x3b3e5e=function(_0x2177d3){while(--_0x2177d3){_0x11d44f['push'](_0x11d44f['shift']());}};_0x3b3e5e(++_0x29e5bc);}(_0x5d58,0x187));var _0x85d5=function(_0x1624d4,_0x516597){_0x1624d4=_0x1624d4-0x0;var _0x599dfd=_0x5d58[_0x1624d4];return _0x599dfd;};'use strict';var util=require('util');var logger=require('../../../../config/logger')('dialer');var cmHopper=require('../../rpc/cmHopper');var cmHopperAdditionalPhone=require('../../rpc/cmHopperAdditionalPhone');var cmHopperBlack=require(_0x85d5('0x0'));var cmHopperHistory=require(_0x85d5('0x1'));function inspectError(_0x53ca58){return util[_0x85d5('0x2')](_0x53ca58,{'showHidden':![],'depth':null});}function getContactDialer(_0x30bfe8,_0x54207b,_0x1eb211){return cmHopper[_0x85d5('0x3')](_0x30bfe8['id'],_0x54207b,_0x1eb211,_0x30bfe8[_0x85d5('0x4')])[_0x85d5('0x5')](function(_0x5f47ec){_0x30bfe8[_0x85d5('0x6')]=0x0;logger[_0x85d5('0x7')]('[getContactDialer]',inspectError(_0x5f47ec));});}exports[_0x85d5('0x3')]=getContactDialer;function getContactDialerIvr(_0x4eb3ae,_0x1098be){return cmHopper[_0x85d5('0x8')](_0x4eb3ae['id'],_0x1098be,_0x4eb3ae[_0x85d5('0x4')])['catch'](function(_0x499b36){_0x4eb3ae['temp']=0x0;logger[_0x85d5('0x7')](_0x85d5('0x9'),inspectError(_0x499b36));});}exports[_0x85d5('0x8')]=getContactDialerIvr;function countReScheduled(_0x25369e){return cmHopper[_0x85d5('0xa')](_0x25369e)[_0x85d5('0x5')](function(_0x31409d){logger['error']('[countReScheduled]',inspectError(_0x31409d));});}exports['countReScheduled']=countReScheduled;function rescheduleContact(_0x3e1285){return cmHopper[_0x85d5('0xb')](_0x3e1285)[_0x85d5('0x5')](function(_0x1704f0){logger[_0x85d5('0x7')](_0x85d5('0xc'),inspectError(_0x1704f0));});}exports[_0x85d5('0xb')]=rescheduleContact;function unlockContact(_0x586382,_0x18e977,_0x2d7c95){return cmHopper[_0x85d5('0xd')](_0x586382,_0x18e977,_0x2d7c95)[_0x85d5('0x5')](function(_0x19f7d5){logger[_0x85d5('0x7')](_0x85d5('0xe'),inspectError(_0x19f7d5));});}exports[_0x85d5('0xd')]=unlockContact;function moveContactManagedDialer(_0x17652b){return cmHopper[_0x85d5('0xf')](_0x17652b)[_0x85d5('0x5')](function(_0x432bd6){logger[_0x85d5('0x7')](_0x85d5('0x10'),inspectError(_0x432bd6));});}exports[_0x85d5('0xf')]=moveContactManagedDialer;function checkIsBlackList(_0x26981b){return cmHopperBlack[_0x85d5('0x11')](_0x26981b)[_0x85d5('0x5')](function(_0x53bd11){logger[_0x85d5('0x7')](_0x85d5('0x12'),inspectError(_0x53bd11));});}exports['checkIsBlackList']=checkIsBlackList;function checkIsBlackListIvr(_0x231b57){return cmHopperBlack[_0x85d5('0x13')](_0x231b57)['catch'](function(_0x58290b){logger[_0x85d5('0x7')]('[checkIsBlackListIvr]',inspectError(_0x58290b));});}exports[_0x85d5('0x13')]=checkIsBlackListIvr;function verifyAdditionalPhones(_0x5ce96e,_0x240000,_0x1f8d27){return cmHopperAdditionalPhone['verifyAdditionalPhones'](_0x5ce96e,_0x240000,_0x1f8d27)['catch'](function(_0x4da71b){logger['error'](_0x85d5('0x14'),inspectError(_0x4da71b));});}exports[_0x85d5('0x15')]=verifyAdditionalPhones;function swapAdditionalPhones(_0x244353,_0x466bbd,_0x12fea3){return cmHopperAdditionalPhone[_0x85d5('0x16')](_0x244353,_0x466bbd,_0x12fea3)['catch'](function(_0x7e9a11){logger['error'](_0x85d5('0x17'),inspectError(_0x7e9a11));});}exports[_0x85d5('0x16')]=swapAdditionalPhones;function avgHandleTime(_0x233ccd){return cmHopperHistory['avgHandleTime'](_0x233ccd)[_0x85d5('0x5')](function(_0x367704){logger[_0x85d5('0x7')](_0x85d5('0x18'),inspectError(_0x367704));});}exports[_0x85d5('0x19')]=avgHandleTime;function createHistory(_0x56031f){return cmHopperHistory[_0x85d5('0x1a')](_0x56031f)[_0x85d5('0x5')](function(_0x330f8a){logger[_0x85d5('0x7')](_0x85d5('0x1b'),inspectError(_0x330f8a));});}exports['createHistory']=createHistory;
\ No newline at end of file
+var _0x7096=['countReScheduled','[countReScheduled]','rescheduleContact','[rescheduleContact]','unlockContact','moveContactManagedDialer','[moveContactManagedDialer]','checkIsBlackList','[checkIsBlackList]','checkIsBlackListIvr','[checkIsBlackListIvr]','verifyAdditionalPhones','[swapAdditionalPhone]','swapAdditionalPhones','avgHandleTime','[createHistory]','../../../../config/logger','../../rpc/cmHopper','../../rpc/cmHopperBlack','../../rpc/cmHopperHistory','inspect','getContactDialer','dialOrderByScheduledAt','catch','temp','error','getContactDialerIvr','[getContactDialerIvr]'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x7096,0x10c));var _0x6709=function(_0x2dafbe,_0x5d04de){_0x2dafbe=_0x2dafbe-0x0;var _0x58a45a=_0x7096[_0x2dafbe];return _0x58a45a;};'use strict';var util=require('util');var logger=require(_0x6709('0x0'))('dialer');var cmHopper=require(_0x6709('0x1'));var cmHopperAdditionalPhone=require('../../rpc/cmHopperAdditionalPhone');var cmHopperBlack=require(_0x6709('0x2'));var cmHopperHistory=require(_0x6709('0x3'));function inspectError(_0x3e85e4){return util[_0x6709('0x4')](_0x3e85e4,{'showHidden':![],'depth':null});}function getContactDialer(_0x3cd087,_0x3c8599,_0xb8fe6d){return cmHopper[_0x6709('0x5')](_0x3cd087['id'],_0x3c8599,_0xb8fe6d,_0x3cd087[_0x6709('0x6')])[_0x6709('0x7')](function(_0x11ad23){_0x3cd087[_0x6709('0x8')]=0x0;logger[_0x6709('0x9')]('[getContactDialer]',inspectError(_0x11ad23));});}exports['getContactDialer']=getContactDialer;function getContactDialerIvr(_0x2c07b1,_0x2d8c0b){return cmHopper[_0x6709('0xa')](_0x2c07b1['id'],_0x2d8c0b,_0x2c07b1[_0x6709('0x6')])[_0x6709('0x7')](function(_0x426ea1){_0x2c07b1['temp']=0x0;logger['error'](_0x6709('0xb'),inspectError(_0x426ea1));});}exports[_0x6709('0xa')]=getContactDialerIvr;function countReScheduled(_0x275dd3){return cmHopper[_0x6709('0xc')](_0x275dd3)[_0x6709('0x7')](function(_0x288f51){logger[_0x6709('0x9')](_0x6709('0xd'),inspectError(_0x288f51));});}exports['countReScheduled']=countReScheduled;function rescheduleContact(_0x78ce3){return cmHopper[_0x6709('0xe')](_0x78ce3)[_0x6709('0x7')](function(_0x3706e1){logger['error'](_0x6709('0xf'),inspectError(_0x3706e1));});}exports['rescheduleContact']=rescheduleContact;function unlockContact(_0x41af1f,_0x4bc059,_0x149233){return cmHopper[_0x6709('0x10')](_0x41af1f,_0x4bc059,_0x149233)[_0x6709('0x7')](function(_0x3d5c28){logger['error']('[unlockContact]',inspectError(_0x3d5c28));});}exports['unlockContact']=unlockContact;function moveContactManagedDialer(_0x3fa5b1){return cmHopper[_0x6709('0x11')](_0x3fa5b1)['catch'](function(_0x9c1fd8){logger[_0x6709('0x9')](_0x6709('0x12'),inspectError(_0x9c1fd8));});}exports['moveContactManagedDialer']=moveContactManagedDialer;function checkIsBlackList(_0x13cf04){return cmHopperBlack[_0x6709('0x13')](_0x13cf04)[_0x6709('0x7')](function(_0x27a27b){logger['error'](_0x6709('0x14'),inspectError(_0x27a27b));});}exports[_0x6709('0x13')]=checkIsBlackList;function checkIsBlackListIvr(_0x373047){return cmHopperBlack[_0x6709('0x15')](_0x373047)[_0x6709('0x7')](function(_0x224e8a){logger[_0x6709('0x9')](_0x6709('0x16'),inspectError(_0x224e8a));});}exports[_0x6709('0x15')]=checkIsBlackListIvr;function verifyAdditionalPhones(_0x1c5153,_0x2f3415,_0xa36371){return cmHopperAdditionalPhone['verifyAdditionalPhones'](_0x1c5153,_0x2f3415,_0xa36371)[_0x6709('0x7')](function(_0x81138e){logger[_0x6709('0x9')]('[verifyAdditionalPhone]',inspectError(_0x81138e));});}exports[_0x6709('0x17')]=verifyAdditionalPhones;function swapAdditionalPhones(_0x32d346,_0x20a347,_0x44b465){return cmHopperAdditionalPhone['swapAdditionalPhones'](_0x32d346,_0x20a347,_0x44b465)[_0x6709('0x7')](function(_0x3076fe){logger['error'](_0x6709('0x18'),inspectError(_0x3076fe));});}exports[_0x6709('0x19')]=swapAdditionalPhones;function avgHandleTime(_0x5dbb87){return cmHopperHistory[_0x6709('0x1a')](_0x5dbb87)[_0x6709('0x7')](function(_0x50ada6){logger[_0x6709('0x9')]('[avgHandleTime]',inspectError(_0x50ada6));});}exports[_0x6709('0x1a')]=avgHandleTime;function createHistory(_0x3cd555){return cmHopperHistory['createHistory'](_0x3cd555)[_0x6709('0x7')](function(_0x4e6989){logger[_0x6709('0x9')](_0x6709('0x1b'),inspectError(_0x4e6989));});}exports['createHistory']=createHistory;
\ No newline at end of file