Built motion from commit e2351160.|2.5.50
[motion2.git] / server / services / ami / preview / rpcDb.js
index 4351041..f2b2a43 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbc9a=['util','bluebird','../../../config/logger','preview','lodash','../rpc/cmHopper','../rpc/cmHopperHistory','../rpc/cmHopperBlack','../rpc/voiceQueueRt','../rpc/agentReportPreview','error','resolve','then','createHistory','catch','[createHistory]\x20','moveContactManagedDialer','[moveContactManagedDialer]\x20','checkIsBlackList','[checkIsBlackList]\x20','getContactPreview','[getContactPreview]\x20','createCustomerHistory','createCustomerFinal','rescheduleContact','UserId','active','[rescheduleContact]\x20','countReScheduled','[countReScheduled]\x20','unlockContact','[unlockContact]\x20','type','uniqueid','queue','queuecallerjoinAt','queuecallerleaveAt','queuecallercomplete','queuecallercompleteAt','membername','context','from-sip','exten','xcally-motion-preview','holdtime','assigned','lastAssignedTo','COMPLETED','[voiceQueueReport]\x20','getContactRecallMe','[GetContactRecallMe]\x20','rescheduleContactInQueue','[rescheduleContactInQueue]\x20'];(function(_0x19c452,_0x4dbaab){var _0x99698c=function(_0x5aef73){while(--_0x5aef73){_0x19c452['push'](_0x19c452['shift']());}};_0x99698c(++_0x4dbaab);}(_0xbc9a,0x6a));var _0xabc9=function(_0x230284,_0x1e5b98){_0x230284=_0x230284-0x0;var _0x379935=_0xbc9a[_0x230284];return _0x379935;};'use strict';var util=require(_0xabc9('0x0'));var BPromise=require(_0xabc9('0x1'));var logger=require(_0xabc9('0x2'))(_0xabc9('0x3'));var _=require(_0xabc9('0x4'));var cmHopper=require(_0xabc9('0x5'));var cmHopperFinal=require('../rpc/cmHopperFinal');var cmHopperHistory=require(_0xabc9('0x6'));var cmHopperBlack=require(_0xabc9('0x7'));var voiceQueueRt=require(_0xabc9('0x8'));var agentReportPreview=require(_0xabc9('0x9'));var voiceQueueReport=require('../rpc/voiceQueueReport');function loggerCatch(_0x51d197){return function(_0x2a07bc){logger[_0xabc9('0xa')](_0x51d197,util['inspect'](_0x2a07bc,{'showHidden':![],'depth':null}));};}function create(_0x1cdc8d){return BPromise[_0xabc9('0xb')]()[_0xabc9('0xc')](cmHopperHistory[_0xabc9('0xd')](_0x1cdc8d))[_0xabc9('0xe')](loggerCatch(_0xabc9('0xf')));}function createAgent(_0x54255d){return BPromise['resolve']()[_0xabc9('0xc')](agentReportPreview['createHistory'](_0x54255d))[_0xabc9('0xe')](loggerCatch(_0xabc9('0xf')));}function moveContact(_0xfd0e51){return BPromise[_0xabc9('0xb')]()[_0xabc9('0xc')](cmHopper[_0xabc9('0x10')](_0xfd0e51,!![]))['catch'](loggerCatch(_0xabc9('0x11')));}exports[_0xabc9('0x12')]=function(_0x166f22){return BPromise[_0xabc9('0xb')]()['then'](cmHopperBlack[_0xabc9('0x12')](_0x166f22))[_0xabc9('0xe')](loggerCatch(_0xabc9('0x13')));};exports[_0xabc9('0x14')]=function(_0x3ed422){return BPromise[_0xabc9('0xb')]()['then'](cmHopper[_0xabc9('0x14')](_0x3ed422))['catch'](loggerCatch(_0xabc9('0x15')));};exports['createHistory']=function(_0x45ad9b,_0x5c3978){create(_0x45ad9b)[_0xabc9('0xe')](loggerCatch(_0x5c3978));moveContact(_0x45ad9b)[_0xabc9('0xe')](loggerCatch(_0x5c3978));};exports['createAgentHistory']=function(_0x38f75d,_0x400530){createAgent(_0x38f75d)[_0xabc9('0xe')](loggerCatch(_0x400530));};exports[_0xabc9('0x16')]=function(_0x99813d,_0x2c6437){create(_0x99813d)[_0xabc9('0xe')](loggerCatch(_0x2c6437));};exports[_0xabc9('0x17')]=function(_0x498e15,_0x3afc57){moveContact(_0x498e15)[_0xabc9('0xe')](loggerCatch(_0x3afc57));};exports[_0xabc9('0x18')]=function(_0xa075a4,_0x2bfd78,_0x32a550){if(_0x2bfd78){_0xa075a4[_0xabc9('0x19')]=null;}if(_0x32a550){_0xa075a4[_0xabc9('0x1a')]=![];}return BPromise[_0xabc9('0xb')]()[_0xabc9('0xc')](cmHopper[_0xabc9('0x18')](_0xa075a4))['catch'](loggerCatch(_0xabc9('0x1b')));};exports[_0xabc9('0x1c')]=function(_0x455e5c){return BPromise[_0xabc9('0xb')]()['then'](cmHopper['countReScheduled'](_0x455e5c))[_0xabc9('0xe')](loggerCatch(_0xabc9('0x1d')));};exports[_0xabc9('0x1e')]=function(_0x47943d){return BPromise[_0xabc9('0xb')]()[_0xabc9('0xc')](cmHopper['unlockContact']({'UserId':null},_0x47943d,0x1))[_0xabc9('0xe')](loggerCatch(_0xabc9('0x1f')));};exports['disableContact']=function(_0x467b9f){return BPromise['resolve']()[_0xabc9('0xc')](cmHopper[_0xabc9('0x1e')]({'active':![]},_0x467b9f,0x1))[_0xabc9('0xe')](loggerCatch('[activeContact]\x20'));};exports['crateCustomerReportQueue']=function(_0xb7da96){var _0x4e6586={};_0x4e6586['type']=_0xb7da96[_0xabc9('0x20')];_0x4e6586['uniqueid']=_0xb7da96[_0xabc9('0x21')];_0x4e6586['calleridnum']=_0xb7da96['calleridnum'];_0x4e6586['calleridname']=_0xb7da96['calleridname'];_0x4e6586[_0xabc9('0x22')]=_0xb7da96[_0xabc9('0x22')];_0x4e6586[_0xabc9('0x23')]=_0xb7da96['answertime'];_0x4e6586[_0xabc9('0x24')]=_0xb7da96['answertime'];_0x4e6586[_0xabc9('0x25')]=0x1;_0x4e6586[_0xabc9('0x26')]=_0xb7da96['endtime'];_0x4e6586['connectedlinename']=_0xb7da96[_0xabc9('0x27')];_0x4e6586[_0xabc9('0x28')]=_0xabc9('0x29');_0x4e6586[_0xabc9('0x2a')]=_0xabc9('0x2b');_0x4e6586[_0xabc9('0x2c')]=0x0;_0x4e6586[_0xabc9('0x2d')]=0x1;_0x4e6586[_0xabc9('0x2e')]=_0xb7da96[_0xabc9('0x27')];_0x4e6586['queuecallerexitreason']=_0xabc9('0x2f');return BPromise[_0xabc9('0xb')]()[_0xabc9('0xc')](voiceQueueReport['create'](_0x4e6586))[_0xabc9('0xe')](loggerCatch(_0xabc9('0x30')));};exports[_0xabc9('0x31')]=function(_0xed0e9e,_0x40b718){return BPromise[_0xabc9('0xb')]()[_0xabc9('0xc')](cmHopper[_0xabc9('0x31')](_0xed0e9e,_0x40b718))[_0xabc9('0xe')](loggerCatch(_0xabc9('0x32')));};exports[_0xabc9('0x33')]=function(_0x3370b3){return BPromise[_0xabc9('0xb')]()['then'](cmHopper['rescheduleContact'](_0x3370b3,!![],!![]))[_0xabc9('0xe')](loggerCatch(_0xabc9('0x34')));};
\ No newline at end of file
+var _0x355e=['queue','queuecallerjoinAt','answertime','queuecallercomplete','queuecallercompleteAt','connectedlinename','membername','context','exten','xcally-motion-preview','holdtime','assigned','lastAssignedTo','queuecallerexitreason','create','[voiceQueueReport]\x20','[GetContactRecallMe]\x20','rescheduleContactInQueue','[rescheduleContactInQueue]\x20','util','../../../config/logger','preview','lodash','../rpc/cmHopper','../rpc/cmHopperFinal','../rpc/cmHopperHistory','../rpc/cmHopperBlack','../rpc/voiceQueueRt','../rpc/agentReportPreview','../rpc/voiceQueueReport','error','resolve','then','createHistory','catch','[createHistory]\x20','moveContactManagedDialer','[moveContactManagedDialer]\x20','checkIsBlackList','[checkIsBlackList]\x20','getContactPreview','[getContactPreview]\x20','createAgentHistory','createCustomerFinal','rescheduleContact','UserId','active','countReScheduled','[countReScheduled]\x20','[unlockContact]\x20','disableContact','crateCustomerReportQueue','type','uniqueid','calleridnum','calleridname'];(function(_0x1ddc17,_0x19751b){var _0x2a16e5=function(_0x528e22){while(--_0x528e22){_0x1ddc17['push'](_0x1ddc17['shift']());}};_0x2a16e5(++_0x19751b);}(_0x355e,0x1d3));var _0xe355=function(_0x2d2adc,_0x2ac201){_0x2d2adc=_0x2d2adc-0x0;var _0x5c50a0=_0x355e[_0x2d2adc];return _0x5c50a0;};'use strict';var util=require(_0xe355('0x0'));var BPromise=require('bluebird');var logger=require(_0xe355('0x1'))(_0xe355('0x2'));var _=require(_0xe355('0x3'));var cmHopper=require(_0xe355('0x4'));var cmHopperFinal=require(_0xe355('0x5'));var cmHopperHistory=require(_0xe355('0x6'));var cmHopperBlack=require(_0xe355('0x7'));var voiceQueueRt=require(_0xe355('0x8'));var agentReportPreview=require(_0xe355('0x9'));var voiceQueueReport=require(_0xe355('0xa'));function loggerCatch(_0x5c9b5d){return function(_0x1474f4){logger[_0xe355('0xb')](_0x5c9b5d,util['inspect'](_0x1474f4,{'showHidden':![],'depth':null}));};}function create(_0x147d1f){return BPromise[_0xe355('0xc')]()[_0xe355('0xd')](cmHopperHistory[_0xe355('0xe')](_0x147d1f))[_0xe355('0xf')](loggerCatch(_0xe355('0x10')));}function createAgent(_0x3cb960){return BPromise[_0xe355('0xc')]()['then'](agentReportPreview[_0xe355('0xe')](_0x3cb960))['catch'](loggerCatch('[createHistory]\x20'));}function moveContact(_0x41fdf0){return BPromise[_0xe355('0xc')]()['then'](cmHopper[_0xe355('0x11')](_0x41fdf0,!![]))['catch'](loggerCatch(_0xe355('0x12')));}exports[_0xe355('0x13')]=function(_0x584a8c){return BPromise[_0xe355('0xc')]()[_0xe355('0xd')](cmHopperBlack[_0xe355('0x13')](_0x584a8c))[_0xe355('0xf')](loggerCatch(_0xe355('0x14')));};exports[_0xe355('0x15')]=function(_0x18f7ff){return BPromise[_0xe355('0xc')]()[_0xe355('0xd')](cmHopper[_0xe355('0x15')](_0x18f7ff))[_0xe355('0xf')](loggerCatch(_0xe355('0x16')));};exports['createHistory']=function(_0x5c518c,_0x1dc3ef){create(_0x5c518c)[_0xe355('0xf')](loggerCatch(_0x1dc3ef));moveContact(_0x5c518c)['catch'](loggerCatch(_0x1dc3ef));};exports[_0xe355('0x17')]=function(_0x1eb824,_0x22cb46){createAgent(_0x1eb824)[_0xe355('0xf')](loggerCatch(_0x22cb46));};exports['createCustomerHistory']=function(_0x2dd311,_0x284148){create(_0x2dd311)[_0xe355('0xf')](loggerCatch(_0x284148));};exports[_0xe355('0x18')]=function(_0x58da7a,_0x442acc){moveContact(_0x58da7a)[_0xe355('0xf')](loggerCatch(_0x442acc));};exports[_0xe355('0x19')]=function(_0x2c8b07,_0x453835,_0x4c76d6){if(_0x453835){_0x2c8b07[_0xe355('0x1a')]=null;}if(_0x4c76d6){_0x2c8b07[_0xe355('0x1b')]=![];}return BPromise['resolve']()[_0xe355('0xd')](cmHopper['rescheduleContact'](_0x2c8b07))[_0xe355('0xf')](loggerCatch('[rescheduleContact]\x20'));};exports[_0xe355('0x1c')]=function(_0x506903){return BPromise[_0xe355('0xc')]()[_0xe355('0xd')](cmHopper[_0xe355('0x1c')](_0x506903))['catch'](loggerCatch(_0xe355('0x1d')));};exports['unlockContact']=function(_0x2a1d1d){return BPromise[_0xe355('0xc')]()['then'](cmHopper['unlockContact']({'UserId':null},_0x2a1d1d,0x1))['catch'](loggerCatch(_0xe355('0x1e')));};exports[_0xe355('0x1f')]=function(_0x2e1167){return BPromise[_0xe355('0xc')]()[_0xe355('0xd')](cmHopper['unlockContact']({'active':![]},_0x2e1167,0x1))[_0xe355('0xf')](loggerCatch('[activeContact]\x20'));};exports[_0xe355('0x20')]=function(_0x474b1e){var _0x11a3e7={};_0x11a3e7[_0xe355('0x21')]=_0x474b1e[_0xe355('0x21')];_0x11a3e7[_0xe355('0x22')]=_0x474b1e[_0xe355('0x22')];_0x11a3e7[_0xe355('0x23')]=_0x474b1e[_0xe355('0x23')];_0x11a3e7['calleridname']=_0x474b1e[_0xe355('0x24')];_0x11a3e7[_0xe355('0x25')]=_0x474b1e[_0xe355('0x25')];_0x11a3e7[_0xe355('0x26')]=_0x474b1e[_0xe355('0x27')];_0x11a3e7['queuecallerleaveAt']=_0x474b1e[_0xe355('0x27')];_0x11a3e7[_0xe355('0x28')]=0x1;_0x11a3e7[_0xe355('0x29')]=_0x474b1e['endtime'];_0x11a3e7[_0xe355('0x2a')]=_0x474b1e[_0xe355('0x2b')];_0x11a3e7[_0xe355('0x2c')]='from-sip';_0x11a3e7[_0xe355('0x2d')]=_0xe355('0x2e');_0x11a3e7[_0xe355('0x2f')]=0x0;_0x11a3e7[_0xe355('0x30')]=0x1;_0x11a3e7[_0xe355('0x31')]=_0x474b1e[_0xe355('0x2b')];_0x11a3e7[_0xe355('0x32')]='COMPLETED';return BPromise[_0xe355('0xc')]()[_0xe355('0xd')](voiceQueueReport[_0xe355('0x33')](_0x11a3e7))[_0xe355('0xf')](loggerCatch(_0xe355('0x34')));};exports['getContactRecallMe']=function(_0x4476c1,_0x1c5fce){return BPromise[_0xe355('0xc')]()['then'](cmHopper['getContactRecallMe'](_0x4476c1,_0x1c5fce))[_0xe355('0xf')](loggerCatch(_0xe355('0x35')));};exports[_0xe355('0x36')]=function(_0x4d463c){return BPromise['resolve']()[_0xe355('0xd')](cmHopper[_0xe355('0x19')](_0x4d463c,!![],!![]))['catch'](loggerCatch(_0xe355('0x37')));};
\ No newline at end of file