Built motion from commit 980b26c3.|2.6.29
[motion2.git] / server / services / ami / preview / rpcDb.js
index ebb0ecd..2440bc9 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xff25=['../rpc/cmHopperBlack','../rpc/agentReportPreview','../rpc/voiceQueueReport','error','createHistory','catch','[createHistory]\x20','then','moveContactManagedDialer','[moveContactManagedDialer]\x20','checkIsBlackList','[checkIsBlackList]\x20','getContactPreview','[getContactPreview]\x20','createAgentHistory','createCustomerHistory','createCustomerFinal','rescheduleContact','UserId','countReScheduled','[countReScheduled]\x20','unlockContact','[unlockContact]\x20','disableContact','[activeContact]\x20','crateCustomerReportQueue','type','uniqueid','calleridnum','calleridname','queue','answertime','queuecallerleaveAt','queuecallercompleteAt','connectedlinename','membername','context','from-sip','exten','xcally-motion-preview','assigned','create','getContactRecallMe','resolve','[GetContactRecallMe]\x20','rescheduleContactInQueue','util','bluebird','../../../config/logger','preview','../rpc/cmHopper','../rpc/cmHopperHistory'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xff25,0xfe));var _0x5ff2=function(_0x385a73,_0x36d00a){_0x385a73=_0x385a73-0x0;var _0x14fe81=_0xff25[_0x385a73];return _0x14fe81;};'use strict';var util=require(_0x5ff2('0x0'));var BPromise=require(_0x5ff2('0x1'));var logger=require(_0x5ff2('0x2'))(_0x5ff2('0x3'));var cmHopper=require(_0x5ff2('0x4'));var cmHopperHistory=require(_0x5ff2('0x5'));var cmHopperBlack=require(_0x5ff2('0x6'));var agentReportPreview=require(_0x5ff2('0x7'));var voiceQueueReport=require(_0x5ff2('0x8'));function loggerCatch(_0x4cc43d){return function(_0x346c29){logger[_0x5ff2('0x9')](_0x4cc43d,util['inspect'](_0x346c29,{'showHidden':![],'depth':null}));};}function create(_0x22b36a){return cmHopperHistory[_0x5ff2('0xa')](_0x22b36a)[_0x5ff2('0xb')](loggerCatch(_0x5ff2('0xc')));}function createAgent(_0x251652){return BPromise['resolve']()[_0x5ff2('0xd')](agentReportPreview['createHistory'](_0x251652))[_0x5ff2('0xb')](loggerCatch(_0x5ff2('0xc')));}function moveContact(_0x5f465a){return cmHopper[_0x5ff2('0xe')](_0x5f465a,!![])[_0x5ff2('0xb')](loggerCatch(_0x5ff2('0xf')));}exports['checkIsBlackList']=function(_0x396e0b){return cmHopperBlack[_0x5ff2('0x10')](_0x396e0b)[_0x5ff2('0xb')](loggerCatch(_0x5ff2('0x11')));};exports['getContactPreview']=function(_0x3864e0){return BPromise['resolve']()['then'](cmHopper[_0x5ff2('0x12')](_0x3864e0))[_0x5ff2('0xb')](loggerCatch(_0x5ff2('0x13')));};exports['createHistory']=function(_0x59eb57,_0x4f060a){create(_0x59eb57)[_0x5ff2('0xb')](loggerCatch(_0x4f060a));moveContact(_0x59eb57)[_0x5ff2('0xb')](loggerCatch(_0x4f060a));};exports[_0x5ff2('0x14')]=function(_0x1474b1,_0x4798f1){createAgent(_0x1474b1)[_0x5ff2('0xb')](loggerCatch(_0x4798f1));};exports[_0x5ff2('0x15')]=function(_0xe70fc3,_0x1d43fb){create(_0xe70fc3)[_0x5ff2('0xb')](loggerCatch(_0x1d43fb));};exports[_0x5ff2('0x16')]=function(_0x1556b3,_0x7b9102){moveContact(_0x1556b3)['catch'](loggerCatch(_0x7b9102));};exports[_0x5ff2('0x17')]=function(_0x47463e,_0x2b5767,_0x5ee1e7){if(_0x2b5767){_0x47463e[_0x5ff2('0x18')]=null;}if(_0x5ee1e7){_0x47463e['active']=![];}return cmHopper[_0x5ff2('0x17')](_0x47463e)['catch'](loggerCatch('[rescheduleContact]\x20'));};exports[_0x5ff2('0x19')]=function(_0x386ff2){return cmHopper[_0x5ff2('0x19')](_0x386ff2)[_0x5ff2('0xb')](loggerCatch(_0x5ff2('0x1a')));};exports[_0x5ff2('0x1b')]=function(_0x56bbf1){return cmHopper[_0x5ff2('0x1b')]({'UserId':null},_0x56bbf1,0x1)[_0x5ff2('0xb')](loggerCatch(_0x5ff2('0x1c')));};exports[_0x5ff2('0x1d')]=function(_0x257e23){return cmHopper[_0x5ff2('0x1b')]({'active':![]},_0x257e23,0x1)[_0x5ff2('0xb')](loggerCatch(_0x5ff2('0x1e')));};exports[_0x5ff2('0x1f')]=function(_0x5ebe51){var _0x11f188={};_0x11f188[_0x5ff2('0x20')]=_0x5ebe51[_0x5ff2('0x20')];_0x11f188[_0x5ff2('0x21')]=_0x5ebe51[_0x5ff2('0x21')];_0x11f188['calleridnum']=_0x5ebe51[_0x5ff2('0x22')];_0x11f188[_0x5ff2('0x23')]=_0x5ebe51[_0x5ff2('0x23')];_0x11f188[_0x5ff2('0x24')]=_0x5ebe51['queue'];_0x11f188['queuecallerjoinAt']=_0x5ebe51[_0x5ff2('0x25')];_0x11f188[_0x5ff2('0x26')]=_0x5ebe51['answertime'];_0x11f188['queuecallercomplete']=0x1;_0x11f188[_0x5ff2('0x27')]=_0x5ebe51['endtime'];_0x11f188[_0x5ff2('0x28')]=_0x5ebe51[_0x5ff2('0x29')];_0x11f188[_0x5ff2('0x2a')]=_0x5ff2('0x2b');_0x11f188[_0x5ff2('0x2c')]=_0x5ff2('0x2d');_0x11f188['holdtime']=0x0;_0x11f188[_0x5ff2('0x2e')]=0x1;_0x11f188['lastAssignedTo']=_0x5ebe51['membername'];_0x11f188['queuecallerexitreason']='COMPLETED';return BPromise['resolve']()[_0x5ff2('0xd')](voiceQueueReport[_0x5ff2('0x2f')](_0x11f188))['catch'](loggerCatch('[voiceQueueReport]\x20'));};exports[_0x5ff2('0x30')]=function(_0x45a1eb,_0x392a1a){return BPromise[_0x5ff2('0x31')]()[_0x5ff2('0xd')](cmHopper[_0x5ff2('0x30')](_0x45a1eb,_0x392a1a))[_0x5ff2('0xb')](loggerCatch(_0x5ff2('0x32')));};exports[_0x5ff2('0x33')]=function(_0x97e648){return cmHopper[_0x5ff2('0x17')](_0x97e648,!![],!![])[_0x5ff2('0xb')](loggerCatch('[rescheduleContactInQueue]\x20'));};
\ No newline at end of file
+var _0xa693=['unlockContact','[unlockContact]\x20','disableContact','[activeContact]\x20','crateCustomerReportQueue','type','uniqueid','calleridnum','calleridname','queue','queuecallerjoinAt','queuecallerleaveAt','answertime','queuecallercompleteAt','connectedlinename','membername','context','xcally-motion-preview','holdtime','assigned','lastAssignedTo','queuecallerexitreason','COMPLETED','[voiceQueueReport]\x20','getContactRecallMe','[GetContactRecallMe]\x20','rescheduleContactInQueue','[rescheduleContactInQueue]\x20','../../../config/logger','preview','../rpc/cmHopperHistory','../rpc/cmHopperBlack','../rpc/agentReportPreview','error','inspect','createHistory','catch','resolve','then','moveContactManagedDialer','[moveContactManagedDialer]\x20','checkIsBlackList','getContactPreview','createAgentHistory','createCustomerFinal','rescheduleContact','UserId','active','[rescheduleContact]\x20','countReScheduled'];(function(_0x213518,_0x51e022){var _0x1baf75=function(_0x5c8444){while(--_0x5c8444){_0x213518['push'](_0x213518['shift']());}};_0x1baf75(++_0x51e022);}(_0xa693,0x1ac));var _0x3a69=function(_0x3b2244,_0x54873f){_0x3b2244=_0x3b2244-0x0;var _0x2dcc14=_0xa693[_0x3b2244];return _0x2dcc14;};'use strict';var util=require('util');var BPromise=require('bluebird');var logger=require(_0x3a69('0x0'))(_0x3a69('0x1'));var cmHopper=require('../rpc/cmHopper');var cmHopperHistory=require(_0x3a69('0x2'));var cmHopperBlack=require(_0x3a69('0x3'));var agentReportPreview=require(_0x3a69('0x4'));var voiceQueueReport=require('../rpc/voiceQueueReport');function loggerCatch(_0x46e85d){return function(_0x4b591f){logger[_0x3a69('0x5')](_0x46e85d,util[_0x3a69('0x6')](_0x4b591f,{'showHidden':![],'depth':null}));};}function create(_0x213e96){return cmHopperHistory[_0x3a69('0x7')](_0x213e96)[_0x3a69('0x8')](loggerCatch('[createHistory]\x20'));}function createAgent(_0x613a58){return BPromise[_0x3a69('0x9')]()[_0x3a69('0xa')](agentReportPreview[_0x3a69('0x7')](_0x613a58))[_0x3a69('0x8')](loggerCatch('[createHistory]\x20'));}function moveContact(_0x1c9707){return cmHopper[_0x3a69('0xb')](_0x1c9707,!![])[_0x3a69('0x8')](loggerCatch(_0x3a69('0xc')));}exports[_0x3a69('0xd')]=function(_0x4ac961){return cmHopperBlack[_0x3a69('0xd')](_0x4ac961)[_0x3a69('0x8')](loggerCatch('[checkIsBlackList]\x20'));};exports[_0x3a69('0xe')]=function(_0x3c5a46){return BPromise[_0x3a69('0x9')]()['then'](cmHopper[_0x3a69('0xe')](_0x3c5a46))[_0x3a69('0x8')](loggerCatch('[getContactPreview]\x20'));};exports[_0x3a69('0x7')]=function(_0x27ee9d,_0x1b7c2a){create(_0x27ee9d)['catch'](loggerCatch(_0x1b7c2a));moveContact(_0x27ee9d)[_0x3a69('0x8')](loggerCatch(_0x1b7c2a));};exports[_0x3a69('0xf')]=function(_0x241d90,_0x1a6119){createAgent(_0x241d90)[_0x3a69('0x8')](loggerCatch(_0x1a6119));};exports['createCustomerHistory']=function(_0x3961c2,_0x1be791){create(_0x3961c2)[_0x3a69('0x8')](loggerCatch(_0x1be791));};exports[_0x3a69('0x10')]=function(_0x43f09f,_0x3407b2){moveContact(_0x43f09f)[_0x3a69('0x8')](loggerCatch(_0x3407b2));};exports[_0x3a69('0x11')]=function(_0x2beec5,_0x32065d,_0x32aee4){if(_0x32065d){_0x2beec5[_0x3a69('0x12')]=null;}if(_0x32aee4){_0x2beec5[_0x3a69('0x13')]=![];}return cmHopper[_0x3a69('0x11')](_0x2beec5)['catch'](loggerCatch(_0x3a69('0x14')));};exports[_0x3a69('0x15')]=function(_0x1b4bc8){return cmHopper[_0x3a69('0x15')](_0x1b4bc8)[_0x3a69('0x8')](loggerCatch('[countReScheduled]\x20'));};exports['unlockContact']=function(_0x470d4a){return cmHopper[_0x3a69('0x16')]({'UserId':null},_0x470d4a,0x1)[_0x3a69('0x8')](loggerCatch(_0x3a69('0x17')));};exports[_0x3a69('0x18')]=function(_0x4639e2){return cmHopper[_0x3a69('0x16')]({'active':![]},_0x4639e2,0x1)[_0x3a69('0x8')](loggerCatch(_0x3a69('0x19')));};exports[_0x3a69('0x1a')]=function(_0x2084c0){var _0x1e04e4={};_0x1e04e4[_0x3a69('0x1b')]=_0x2084c0[_0x3a69('0x1b')];_0x1e04e4[_0x3a69('0x1c')]=_0x2084c0[_0x3a69('0x1c')];_0x1e04e4[_0x3a69('0x1d')]=_0x2084c0[_0x3a69('0x1d')];_0x1e04e4['calleridname']=_0x2084c0[_0x3a69('0x1e')];_0x1e04e4[_0x3a69('0x1f')]=_0x2084c0[_0x3a69('0x1f')];_0x1e04e4[_0x3a69('0x20')]=_0x2084c0['answertime'];_0x1e04e4[_0x3a69('0x21')]=_0x2084c0[_0x3a69('0x22')];_0x1e04e4['queuecallercomplete']=0x1;_0x1e04e4[_0x3a69('0x23')]=_0x2084c0['endtime'];_0x1e04e4[_0x3a69('0x24')]=_0x2084c0[_0x3a69('0x25')];_0x1e04e4[_0x3a69('0x26')]='from-sip';_0x1e04e4['exten']=_0x3a69('0x27');_0x1e04e4[_0x3a69('0x28')]=0x0;_0x1e04e4[_0x3a69('0x29')]=0x1;_0x1e04e4[_0x3a69('0x2a')]=_0x2084c0[_0x3a69('0x25')];_0x1e04e4[_0x3a69('0x2b')]=_0x3a69('0x2c');return BPromise[_0x3a69('0x9')]()[_0x3a69('0xa')](voiceQueueReport['create'](_0x1e04e4))['catch'](loggerCatch(_0x3a69('0x2d')));};exports['getContactRecallMe']=function(_0x450584,_0x44735f){return BPromise['resolve']()[_0x3a69('0xa')](cmHopper[_0x3a69('0x2e')](_0x450584,_0x44735f))[_0x3a69('0x8')](loggerCatch(_0x3a69('0x2f')));};exports[_0x3a69('0x30')]=function(_0x1216cb){return cmHopper['rescheduleContact'](_0x1216cb,!![],!![])['catch'](loggerCatch(_0x3a69('0x31')));};
\ No newline at end of file