Built motion from commit 9d5c653a.|2.5.44
[motion2.git] / server / services / ami / preview / rpcDb.js
index 078b02d..19edd77 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3fcf=['rescheduleContact','UserId','active','[rescheduleContact]\x20','countReScheduled','[countReScheduled]\x20','unlockContact','[unlockContact]\x20','disableContact','[activeContact]\x20','crateCustomerReportQueue','type','uniqueid','calleridnum','calleridname','queue','queuecallerjoinAt','answertime','queuecallerleaveAt','queuecallercomplete','endtime','connectedlinename','membername','context','from-sip','exten','xcally-motion-preview','lastAssignedTo','create','getContactRecallMe','[GetContactRecallMe]\x20','rescheduleContactInQueue','[rescheduleContactInQueue]\x20','util','bluebird','../../../config/logger','preview','../rpc/cmHopperFinal','../rpc/cmHopperHistory','../rpc/cmHopperBlack','../rpc/voiceQueueRt','../rpc/agentReportPreview','../rpc/voiceQueueReport','error','inspect','then','createHistory','resolve','catch','[createHistory]\x20','moveContactManagedDialer','[moveContactManagedDialer]\x20','checkIsBlackList','[checkIsBlackList]\x20','[getContactPreview]\x20','createAgentHistory','createCustomerFinal'];(function(_0x403442,_0x3d06fe){var _0x17d70c=function(_0x5b8139){while(--_0x5b8139){_0x403442['push'](_0x403442['shift']());}};_0x17d70c(++_0x3d06fe);}(_0x3fcf,0x1e9));var _0xf3fc=function(_0xa108c6,_0x382173){_0xa108c6=_0xa108c6-0x0;var _0x1bf573=_0x3fcf[_0xa108c6];return _0x1bf573;};'use strict';var util=require(_0xf3fc('0x0'));var BPromise=require(_0xf3fc('0x1'));var logger=require(_0xf3fc('0x2'))(_0xf3fc('0x3'));var _=require('lodash');var cmHopper=require('../rpc/cmHopper');var cmHopperFinal=require(_0xf3fc('0x4'));var cmHopperHistory=require(_0xf3fc('0x5'));var cmHopperBlack=require(_0xf3fc('0x6'));var voiceQueueRt=require(_0xf3fc('0x7'));var agentReportPreview=require(_0xf3fc('0x8'));var voiceQueueReport=require(_0xf3fc('0x9'));function loggerCatch(_0x2d7fa7){return function(_0x16fe53){logger[_0xf3fc('0xa')](_0x2d7fa7,util[_0xf3fc('0xb')](_0x16fe53,{'showHidden':![],'depth':null}));};}function create(_0x522973){return BPromise['resolve']()[_0xf3fc('0xc')](cmHopperHistory[_0xf3fc('0xd')](_0x522973))['catch'](loggerCatch('[createHistory]\x20'));}function createAgent(_0x269f92){return BPromise[_0xf3fc('0xe')]()['then'](agentReportPreview['createHistory'](_0x269f92))[_0xf3fc('0xf')](loggerCatch(_0xf3fc('0x10')));}function moveContact(_0x455f7f){return BPromise[_0xf3fc('0xe')]()[_0xf3fc('0xc')](cmHopper[_0xf3fc('0x11')](_0x455f7f,!![]))[_0xf3fc('0xf')](loggerCatch(_0xf3fc('0x12')));}exports[_0xf3fc('0x13')]=function(_0x1087f3){return BPromise[_0xf3fc('0xe')]()[_0xf3fc('0xc')](cmHopperBlack[_0xf3fc('0x13')](_0x1087f3))[_0xf3fc('0xf')](loggerCatch(_0xf3fc('0x14')));};exports['getContactPreview']=function(_0x387f9e){return BPromise[_0xf3fc('0xe')]()['then'](cmHopper['getContactPreview'](_0x387f9e))[_0xf3fc('0xf')](loggerCatch(_0xf3fc('0x15')));};exports[_0xf3fc('0xd')]=function(_0x4e066f,_0x4f5b43){create(_0x4e066f)[_0xf3fc('0xf')](loggerCatch(_0x4f5b43));moveContact(_0x4e066f)[_0xf3fc('0xf')](loggerCatch(_0x4f5b43));};exports[_0xf3fc('0x16')]=function(_0x256735,_0x1aa0f5){createAgent(_0x256735)[_0xf3fc('0xf')](loggerCatch(_0x1aa0f5));};exports['createCustomerHistory']=function(_0x1f0c9f,_0x158289){create(_0x1f0c9f)[_0xf3fc('0xf')](loggerCatch(_0x158289));};exports[_0xf3fc('0x17')]=function(_0x15233b,_0x587193){moveContact(_0x15233b)['catch'](loggerCatch(_0x587193));};exports[_0xf3fc('0x18')]=function(_0x540e5d,_0x230704,_0x7bd886){if(_0x230704){_0x540e5d[_0xf3fc('0x19')]=null;}if(_0x7bd886){_0x540e5d[_0xf3fc('0x1a')]=![];}return BPromise[_0xf3fc('0xe')]()['then'](cmHopper[_0xf3fc('0x18')](_0x540e5d))[_0xf3fc('0xf')](loggerCatch(_0xf3fc('0x1b')));};exports[_0xf3fc('0x1c')]=function(_0x34f169){return BPromise[_0xf3fc('0xe')]()[_0xf3fc('0xc')](cmHopper[_0xf3fc('0x1c')](_0x34f169))['catch'](loggerCatch(_0xf3fc('0x1d')));};exports[_0xf3fc('0x1e')]=function(_0x262c0a){return BPromise[_0xf3fc('0xe')]()[_0xf3fc('0xc')](cmHopper[_0xf3fc('0x1e')]({'UserId':null},_0x262c0a,0x1))['catch'](loggerCatch(_0xf3fc('0x1f')));};exports[_0xf3fc('0x20')]=function(_0x2dac15){return BPromise[_0xf3fc('0xe')]()[_0xf3fc('0xc')](cmHopper[_0xf3fc('0x1e')]({'active':![]},_0x2dac15,0x1))[_0xf3fc('0xf')](loggerCatch(_0xf3fc('0x21')));};exports[_0xf3fc('0x22')]=function(_0x569fff){var _0x2d1d5b={};_0x2d1d5b[_0xf3fc('0x23')]=_0x569fff[_0xf3fc('0x23')];_0x2d1d5b['uniqueid']=_0x569fff[_0xf3fc('0x24')];_0x2d1d5b[_0xf3fc('0x25')]=_0x569fff['calleridnum'];_0x2d1d5b[_0xf3fc('0x26')]=_0x569fff[_0xf3fc('0x26')];_0x2d1d5b['queue']=_0x569fff[_0xf3fc('0x27')];_0x2d1d5b[_0xf3fc('0x28')]=_0x569fff[_0xf3fc('0x29')];_0x2d1d5b[_0xf3fc('0x2a')]=_0x569fff[_0xf3fc('0x29')];_0x2d1d5b[_0xf3fc('0x2b')]=0x1;_0x2d1d5b['queuecallercompleteAt']=_0x569fff[_0xf3fc('0x2c')];_0x2d1d5b[_0xf3fc('0x2d')]=_0x569fff[_0xf3fc('0x2e')];_0x2d1d5b[_0xf3fc('0x2f')]=_0xf3fc('0x30');_0x2d1d5b[_0xf3fc('0x31')]=_0xf3fc('0x32');_0x2d1d5b['holdtime']=0x0;_0x2d1d5b['assigned']=0x1;_0x2d1d5b[_0xf3fc('0x33')]=_0x569fff[_0xf3fc('0x2e')];_0x2d1d5b['queuecallerexitreason']='COMPLETED';return BPromise['resolve']()['then'](voiceQueueReport[_0xf3fc('0x34')](_0x2d1d5b))[_0xf3fc('0xf')](loggerCatch('[voiceQueueReport]\x20'));};exports[_0xf3fc('0x35')]=function(_0xaa4051,_0x26cdd4){return BPromise[_0xf3fc('0xe')]()['then'](cmHopper['getContactRecallMe'](_0xaa4051,_0x26cdd4))['catch'](loggerCatch(_0xf3fc('0x36')));};exports[_0xf3fc('0x37')]=function(_0x28756b){return BPromise[_0xf3fc('0xe')]()[_0xf3fc('0xc')](cmHopper['rescheduleContact'](_0x28756b,!![],!![]))[_0xf3fc('0xf')](loggerCatch(_0xf3fc('0x38')));};
\ No newline at end of file
+var _0xdd5a=['[rescheduleContactInQueue]\x20','util','../../../config/logger','../rpc/cmHopper','../rpc/cmHopperFinal','../rpc/cmHopperHistory','../rpc/cmHopperBlack','../rpc/agentReportPreview','../rpc/voiceQueueReport','error','inspect','then','createHistory','catch','resolve','moveContactManagedDialer','[moveContactManagedDialer]\x20','checkIsBlackList','getContactPreview','[getContactPreview]\x20','createAgentHistory','createCustomerFinal','rescheduleContact','UserId','active','countReScheduled','[countReScheduled]\x20','unlockContact','[unlockContact]\x20','disableContact','crateCustomerReportQueue','type','uniqueid','calleridnum','calleridname','queue','answertime','queuecallercomplete','queuecallercompleteAt','endtime','connectedlinename','membername','context','from-sip','exten','xcally-motion-preview','holdtime','queuecallerexitreason','COMPLETED','getContactRecallMe','[GetContactRecallMe]\x20','rescheduleContactInQueue'];(function(_0x3a1923,_0x33c647){var _0xdb130b=function(_0x4d05fd){while(--_0x4d05fd){_0x3a1923['push'](_0x3a1923['shift']());}};_0xdb130b(++_0x33c647);}(_0xdd5a,0xd1));var _0xadd5=function(_0x5882f1,_0x123065){_0x5882f1=_0x5882f1-0x0;var _0x3f3fc8=_0xdd5a[_0x5882f1];return _0x3f3fc8;};'use strict';var util=require(_0xadd5('0x0'));var BPromise=require('bluebird');var logger=require(_0xadd5('0x1'))('preview');var _=require('lodash');var cmHopper=require(_0xadd5('0x2'));var cmHopperFinal=require(_0xadd5('0x3'));var cmHopperHistory=require(_0xadd5('0x4'));var cmHopperBlack=require(_0xadd5('0x5'));var voiceQueueRt=require('../rpc/voiceQueueRt');var agentReportPreview=require(_0xadd5('0x6'));var voiceQueueReport=require(_0xadd5('0x7'));function loggerCatch(_0x3e4356){return function(_0x8e053){logger[_0xadd5('0x8')](_0x3e4356,util[_0xadd5('0x9')](_0x8e053,{'showHidden':![],'depth':null}));};}function create(_0x2852ca){return BPromise['resolve']()[_0xadd5('0xa')](cmHopperHistory[_0xadd5('0xb')](_0x2852ca))[_0xadd5('0xc')](loggerCatch('[createHistory]\x20'));}function createAgent(_0xf7fe7d){return BPromise[_0xadd5('0xd')]()[_0xadd5('0xa')](agentReportPreview[_0xadd5('0xb')](_0xf7fe7d))[_0xadd5('0xc')](loggerCatch('[createHistory]\x20'));}function moveContact(_0x2b169a){return BPromise[_0xadd5('0xd')]()[_0xadd5('0xa')](cmHopper[_0xadd5('0xe')](_0x2b169a,!![]))['catch'](loggerCatch(_0xadd5('0xf')));}exports[_0xadd5('0x10')]=function(_0xbf90b4){return BPromise['resolve']()[_0xadd5('0xa')](cmHopperBlack[_0xadd5('0x10')](_0xbf90b4))[_0xadd5('0xc')](loggerCatch('[checkIsBlackList]\x20'));};exports['getContactPreview']=function(_0x15936f){return BPromise[_0xadd5('0xd')]()[_0xadd5('0xa')](cmHopper[_0xadd5('0x11')](_0x15936f))[_0xadd5('0xc')](loggerCatch(_0xadd5('0x12')));};exports[_0xadd5('0xb')]=function(_0x5e68a6,_0x3365ff){create(_0x5e68a6)['catch'](loggerCatch(_0x3365ff));moveContact(_0x5e68a6)[_0xadd5('0xc')](loggerCatch(_0x3365ff));};exports[_0xadd5('0x13')]=function(_0x3c82b6,_0x5af941){createAgent(_0x3c82b6)[_0xadd5('0xc')](loggerCatch(_0x5af941));};exports['createCustomerHistory']=function(_0x554193,_0x3eb121){create(_0x554193)[_0xadd5('0xc')](loggerCatch(_0x3eb121));};exports[_0xadd5('0x14')]=function(_0x105be7,_0x114e49){moveContact(_0x105be7)[_0xadd5('0xc')](loggerCatch(_0x114e49));};exports[_0xadd5('0x15')]=function(_0x2cd64a,_0x237b82,_0x45a89b){if(_0x237b82){_0x2cd64a[_0xadd5('0x16')]=null;}if(_0x45a89b){_0x2cd64a[_0xadd5('0x17')]=![];}return BPromise['resolve']()[_0xadd5('0xa')](cmHopper[_0xadd5('0x15')](_0x2cd64a))[_0xadd5('0xc')](loggerCatch('[rescheduleContact]\x20'));};exports[_0xadd5('0x18')]=function(_0x7e50c1){return BPromise[_0xadd5('0xd')]()[_0xadd5('0xa')](cmHopper[_0xadd5('0x18')](_0x7e50c1))['catch'](loggerCatch(_0xadd5('0x19')));};exports['unlockContact']=function(_0x67d93){return BPromise[_0xadd5('0xd')]()['then'](cmHopper[_0xadd5('0x1a')]({'UserId':null},_0x67d93,0x1))[_0xadd5('0xc')](loggerCatch(_0xadd5('0x1b')));};exports[_0xadd5('0x1c')]=function(_0x137254){return BPromise['resolve']()[_0xadd5('0xa')](cmHopper[_0xadd5('0x1a')]({'active':![]},_0x137254,0x1))[_0xadd5('0xc')](loggerCatch('[activeContact]\x20'));};exports[_0xadd5('0x1d')]=function(_0x2a3c33){var _0x5c43fa={};_0x5c43fa['type']=_0x2a3c33[_0xadd5('0x1e')];_0x5c43fa[_0xadd5('0x1f')]=_0x2a3c33[_0xadd5('0x1f')];_0x5c43fa[_0xadd5('0x20')]=_0x2a3c33[_0xadd5('0x20')];_0x5c43fa['calleridname']=_0x2a3c33[_0xadd5('0x21')];_0x5c43fa['queue']=_0x2a3c33[_0xadd5('0x22')];_0x5c43fa['queuecallerjoinAt']=_0x2a3c33[_0xadd5('0x23')];_0x5c43fa['queuecallerleaveAt']=_0x2a3c33[_0xadd5('0x23')];_0x5c43fa[_0xadd5('0x24')]=0x1;_0x5c43fa[_0xadd5('0x25')]=_0x2a3c33[_0xadd5('0x26')];_0x5c43fa[_0xadd5('0x27')]=_0x2a3c33[_0xadd5('0x28')];_0x5c43fa[_0xadd5('0x29')]=_0xadd5('0x2a');_0x5c43fa[_0xadd5('0x2b')]=_0xadd5('0x2c');_0x5c43fa[_0xadd5('0x2d')]=0x0;_0x5c43fa['assigned']=0x1;_0x5c43fa['lastAssignedTo']=_0x2a3c33['membername'];_0x5c43fa[_0xadd5('0x2e')]=_0xadd5('0x2f');return BPromise[_0xadd5('0xd')]()['then'](voiceQueueReport['create'](_0x5c43fa))[_0xadd5('0xc')](loggerCatch('[voiceQueueReport]\x20'));};exports[_0xadd5('0x30')]=function(_0xef0610,_0x2d99aa){return BPromise[_0xadd5('0xd')]()[_0xadd5('0xa')](cmHopper[_0xadd5('0x30')](_0xef0610,_0x2d99aa))[_0xadd5('0xc')](loggerCatch(_0xadd5('0x31')));};exports[_0xadd5('0x32')]=function(_0x2fe1d1){return BPromise['resolve']()[_0xadd5('0xa')](cmHopper[_0xadd5('0x15')](_0x2fe1d1,!![],!![]))[_0xadd5('0xc')](loggerCatch(_0xadd5('0x33')));};
\ No newline at end of file