Built motion from commit 8c034dcd.|2.6.31
[motion2.git] / server / services / ami / dialer / utils / hopper.js
index 1ce3f29..ff7baf4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-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(_0x422905,_0x3bce3a){var _0x33dc6c=function(_0x4852c9){while(--_0x4852c9){_0x422905['push'](_0x422905['shift']());}};_0x33dc6c(++_0x3bce3a);}(_0xdb28,0x106));var _0x8db2=function(_0x3e8042,_0x29844e){_0x3e8042=_0x3e8042-0x0;var _0x42e179=_0xdb28[_0x3e8042];return _0x42e179;};'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
+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(_0x150a25,_0x393c27){var _0x3d3f41=function(_0x38be66){while(--_0x38be66){_0x150a25['push'](_0x150a25['shift']());}};_0x3d3f41(++_0x393c27);}(_0x5fdc,0x127));var _0xc5fd=function(_0x37869a,_0x1944fa){_0x37869a=_0x37869a-0x0;var _0x2d64df=_0x5fdc[_0x37869a];return _0x2d64df;};'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