Built motion from commit 26d08302.|2.6.31
[motion2.git] / server / services / ami / preview / rpcDb.js
index 2dd2a58..bd28240 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x11cb=['getContactRecallMe','[GetContactRecallMe]\x20','rescheduleContactInQueue','rescheduleContact','[rescheduleContactInQueue]\x20','bluebird','../../../config/logger','preview','../rpc/cmHopper','../rpc/cmHopperBlack','../rpc/agentReportPreview','../rpc/voiceQueueReport','error','catch','[createHistory]\x20','resolve','then','createHistory','moveContactManagedDialer','checkIsBlackList','[checkIsBlackList]\x20','getContactPreview','[getContactPreview]\x20','createAgentHistory','createCustomerFinal','UserId','[rescheduleContact]\x20','countReScheduled','[countReScheduled]\x20','unlockContact','[unlockContact]\x20','disableContact','[activeContact]\x20','crateCustomerReportQueue','type','calleridnum','queue','queuecallerjoinAt','answertime','queuecallercomplete','queuecallercompleteAt','endtime','connectedlinename','membername','context','exten','xcally-motion-preview','assigned','lastAssignedTo','COMPLETED','create','[voiceQueueReport]\x20'];(function(_0x16d09a,_0x4d863a){var _0x567bca=function(_0x4d72a3){while(--_0x4d72a3){_0x16d09a['push'](_0x16d09a['shift']());}};_0x567bca(++_0x4d863a);}(_0x11cb,0x13d));var _0xb11c=function(_0x166551,_0x30c7f1){_0x166551=_0x166551-0x0;var _0x5204b4=_0x11cb[_0x166551];return _0x5204b4;};'use strict';var util=require('util');var BPromise=require(_0xb11c('0x0'));var logger=require(_0xb11c('0x1'))(_0xb11c('0x2'));var cmHopper=require(_0xb11c('0x3'));var cmHopperHistory=require('../rpc/cmHopperHistory');var cmHopperBlack=require(_0xb11c('0x4'));var agentReportPreview=require(_0xb11c('0x5'));var voiceQueueReport=require(_0xb11c('0x6'));function loggerCatch(_0x39b652){return function(_0x1eb641){logger[_0xb11c('0x7')](_0x39b652,util['inspect'](_0x1eb641,{'showHidden':![],'depth':null}));};}function create(_0x3e22bf){return cmHopperHistory['createHistory'](_0x3e22bf)[_0xb11c('0x8')](loggerCatch(_0xb11c('0x9')));}function createAgent(_0x3a46ed){return BPromise[_0xb11c('0xa')]()[_0xb11c('0xb')](agentReportPreview[_0xb11c('0xc')](_0x3a46ed))[_0xb11c('0x8')](loggerCatch(_0xb11c('0x9')));}function moveContact(_0x57e914){return cmHopper[_0xb11c('0xd')](_0x57e914,!![])[_0xb11c('0x8')](loggerCatch('[moveContactManagedDialer]\x20'));}exports[_0xb11c('0xe')]=function(_0x2c5a3e){return cmHopperBlack['checkIsBlackList'](_0x2c5a3e)[_0xb11c('0x8')](loggerCatch(_0xb11c('0xf')));};exports[_0xb11c('0x10')]=function(_0x4a3dd9){return BPromise['resolve']()['then'](cmHopper[_0xb11c('0x10')](_0x4a3dd9))['catch'](loggerCatch(_0xb11c('0x11')));};exports[_0xb11c('0xc')]=function(_0x4e224a,_0x5a969e){create(_0x4e224a)['catch'](loggerCatch(_0x5a969e));moveContact(_0x4e224a)['catch'](loggerCatch(_0x5a969e));};exports[_0xb11c('0x12')]=function(_0x561238,_0x4f729c){createAgent(_0x561238)[_0xb11c('0x8')](loggerCatch(_0x4f729c));};exports['createCustomerHistory']=function(_0x43adb7,_0x1b865f){create(_0x43adb7)[_0xb11c('0x8')](loggerCatch(_0x1b865f));};exports[_0xb11c('0x13')]=function(_0xa3c26c,_0x18a873){moveContact(_0xa3c26c)['catch'](loggerCatch(_0x18a873));};exports['rescheduleContact']=function(_0x37fd21,_0x41547a,_0x4ebe54){if(_0x41547a){_0x37fd21[_0xb11c('0x14')]=null;}if(_0x4ebe54){_0x37fd21['active']=![];}return cmHopper['rescheduleContact'](_0x37fd21)[_0xb11c('0x8')](loggerCatch(_0xb11c('0x15')));};exports[_0xb11c('0x16')]=function(_0x40a6db){return cmHopper[_0xb11c('0x16')](_0x40a6db)[_0xb11c('0x8')](loggerCatch(_0xb11c('0x17')));};exports[_0xb11c('0x18')]=function(_0x2ae849){return cmHopper[_0xb11c('0x18')]({'UserId':null},_0x2ae849,0x1)[_0xb11c('0x8')](loggerCatch(_0xb11c('0x19')));};exports[_0xb11c('0x1a')]=function(_0xa2f338){return cmHopper[_0xb11c('0x18')]({'active':![]},_0xa2f338,0x1)[_0xb11c('0x8')](loggerCatch(_0xb11c('0x1b')));};exports[_0xb11c('0x1c')]=function(_0x35fbb4){var _0x586acd={};_0x586acd[_0xb11c('0x1d')]=_0x35fbb4[_0xb11c('0x1d')];_0x586acd['uniqueid']=_0x35fbb4['uniqueid'];_0x586acd[_0xb11c('0x1e')]=_0x35fbb4[_0xb11c('0x1e')];_0x586acd['calleridname']=_0x35fbb4['calleridname'];_0x586acd[_0xb11c('0x1f')]=_0x35fbb4[_0xb11c('0x1f')];_0x586acd[_0xb11c('0x20')]=_0x35fbb4['answertime'];_0x586acd['queuecallerleaveAt']=_0x35fbb4[_0xb11c('0x21')];_0x586acd[_0xb11c('0x22')]=0x1;_0x586acd[_0xb11c('0x23')]=_0x35fbb4[_0xb11c('0x24')];_0x586acd[_0xb11c('0x25')]=_0x35fbb4[_0xb11c('0x26')];_0x586acd[_0xb11c('0x27')]='from-sip';_0x586acd[_0xb11c('0x28')]=_0xb11c('0x29');_0x586acd['holdtime']=0x0;_0x586acd[_0xb11c('0x2a')]=0x1;_0x586acd[_0xb11c('0x2b')]=_0x35fbb4['membername'];_0x586acd['queuecallerexitreason']=_0xb11c('0x2c');return BPromise[_0xb11c('0xa')]()[_0xb11c('0xb')](voiceQueueReport[_0xb11c('0x2d')](_0x586acd))[_0xb11c('0x8')](loggerCatch(_0xb11c('0x2e')));};exports[_0xb11c('0x2f')]=function(_0x4aac97,_0x1ebfdd){return BPromise[_0xb11c('0xa')]()[_0xb11c('0xb')](cmHopper[_0xb11c('0x2f')](_0x4aac97,_0x1ebfdd))[_0xb11c('0x8')](loggerCatch(_0xb11c('0x30')));};exports[_0xb11c('0x31')]=function(_0x26313d){return cmHopper[_0xb11c('0x32')](_0x26313d,!![],!![])[_0xb11c('0x8')](loggerCatch(_0xb11c('0x33')));};
\ No newline at end of file
+var _0xeb18=['../rpc/cmHopperHistory','../rpc/cmHopperBlack','../rpc/agentReportPreview','../rpc/voiceQueueReport','inspect','createHistory','catch','then','[createHistory]\x20','moveContactManagedDialer','[moveContactManagedDialer]\x20','checkIsBlackList','[checkIsBlackList]\x20','getContactPreview','resolve','[getContactPreview]\x20','createAgentHistory','createCustomerHistory','rescheduleContact','active','[rescheduleContact]\x20','countReScheduled','unlockContact','disableContact','[activeContact]\x20','crateCustomerReportQueue','type','uniqueid','calleridnum','calleridname','queue','queuecallerjoinAt','answertime','queuecallerleaveAt','queuecallercomplete','queuecallercompleteAt','endtime','membername','context','xcally-motion-preview','holdtime','assigned','queuecallerexitreason','COMPLETED','create','getContactRecallMe','[GetContactRecallMe]\x20','rescheduleContactInQueue','[rescheduleContactInQueue]\x20','util','bluebird','../../../config/logger','preview','../rpc/cmHopper'];(function(_0x2d0687,_0x39c935){var _0x204c09=function(_0x291943){while(--_0x291943){_0x2d0687['push'](_0x2d0687['shift']());}};_0x204c09(++_0x39c935);}(_0xeb18,0x175));var _0x8eb1=function(_0x2aac4b,_0x2629bd){_0x2aac4b=_0x2aac4b-0x0;var _0xf5fba8=_0xeb18[_0x2aac4b];return _0xf5fba8;};'use strict';var util=require(_0x8eb1('0x0'));var BPromise=require(_0x8eb1('0x1'));var logger=require(_0x8eb1('0x2'))(_0x8eb1('0x3'));var cmHopper=require(_0x8eb1('0x4'));var cmHopperHistory=require(_0x8eb1('0x5'));var cmHopperBlack=require(_0x8eb1('0x6'));var agentReportPreview=require(_0x8eb1('0x7'));var voiceQueueReport=require(_0x8eb1('0x8'));function loggerCatch(_0x454efb){return function(_0xdacb40){logger['error'](_0x454efb,util[_0x8eb1('0x9')](_0xdacb40,{'showHidden':![],'depth':null}));};}function create(_0x51a582){return cmHopperHistory[_0x8eb1('0xa')](_0x51a582)[_0x8eb1('0xb')](loggerCatch('[createHistory]\x20'));}function createAgent(_0x2ec4ca){return BPromise['resolve']()[_0x8eb1('0xc')](agentReportPreview[_0x8eb1('0xa')](_0x2ec4ca))['catch'](loggerCatch(_0x8eb1('0xd')));}function moveContact(_0x2caa32){return cmHopper[_0x8eb1('0xe')](_0x2caa32,!![])[_0x8eb1('0xb')](loggerCatch(_0x8eb1('0xf')));}exports[_0x8eb1('0x10')]=function(_0x1538c2){return cmHopperBlack[_0x8eb1('0x10')](_0x1538c2)[_0x8eb1('0xb')](loggerCatch(_0x8eb1('0x11')));};exports[_0x8eb1('0x12')]=function(_0x2337fc){return BPromise[_0x8eb1('0x13')]()[_0x8eb1('0xc')](cmHopper[_0x8eb1('0x12')](_0x2337fc))[_0x8eb1('0xb')](loggerCatch(_0x8eb1('0x14')));};exports[_0x8eb1('0xa')]=function(_0x46fcc7,_0x10855b){create(_0x46fcc7)[_0x8eb1('0xb')](loggerCatch(_0x10855b));moveContact(_0x46fcc7)[_0x8eb1('0xb')](loggerCatch(_0x10855b));};exports[_0x8eb1('0x15')]=function(_0x4f54d6,_0x28bdfb){createAgent(_0x4f54d6)[_0x8eb1('0xb')](loggerCatch(_0x28bdfb));};exports[_0x8eb1('0x16')]=function(_0x58c6f2,_0x5dfe31){create(_0x58c6f2)['catch'](loggerCatch(_0x5dfe31));};exports['createCustomerFinal']=function(_0x52a817,_0x576660){moveContact(_0x52a817)[_0x8eb1('0xb')](loggerCatch(_0x576660));};exports[_0x8eb1('0x17')]=function(_0x53fb19,_0x2623c5,_0x3e78b0){if(_0x2623c5){_0x53fb19['UserId']=null;}if(_0x3e78b0){_0x53fb19[_0x8eb1('0x18')]=![];}return cmHopper[_0x8eb1('0x17')](_0x53fb19)[_0x8eb1('0xb')](loggerCatch(_0x8eb1('0x19')));};exports[_0x8eb1('0x1a')]=function(_0x400428){return cmHopper[_0x8eb1('0x1a')](_0x400428)['catch'](loggerCatch('[countReScheduled]\x20'));};exports[_0x8eb1('0x1b')]=function(_0x109ca2){return cmHopper[_0x8eb1('0x1b')]({'UserId':null},_0x109ca2,0x1)[_0x8eb1('0xb')](loggerCatch('[unlockContact]\x20'));};exports[_0x8eb1('0x1c')]=function(_0xc4f799){return cmHopper['unlockContact']({'active':![]},_0xc4f799,0x1)[_0x8eb1('0xb')](loggerCatch(_0x8eb1('0x1d')));};exports[_0x8eb1('0x1e')]=function(_0x56dcee){var _0x4eaa37={};_0x4eaa37[_0x8eb1('0x1f')]=_0x56dcee[_0x8eb1('0x1f')];_0x4eaa37[_0x8eb1('0x20')]=_0x56dcee['uniqueid'];_0x4eaa37[_0x8eb1('0x21')]=_0x56dcee['calleridnum'];_0x4eaa37[_0x8eb1('0x22')]=_0x56dcee[_0x8eb1('0x22')];_0x4eaa37[_0x8eb1('0x23')]=_0x56dcee[_0x8eb1('0x23')];_0x4eaa37[_0x8eb1('0x24')]=_0x56dcee[_0x8eb1('0x25')];_0x4eaa37[_0x8eb1('0x26')]=_0x56dcee[_0x8eb1('0x25')];_0x4eaa37[_0x8eb1('0x27')]=0x1;_0x4eaa37[_0x8eb1('0x28')]=_0x56dcee[_0x8eb1('0x29')];_0x4eaa37['connectedlinename']=_0x56dcee[_0x8eb1('0x2a')];_0x4eaa37[_0x8eb1('0x2b')]='from-sip';_0x4eaa37['exten']=_0x8eb1('0x2c');_0x4eaa37[_0x8eb1('0x2d')]=0x0;_0x4eaa37[_0x8eb1('0x2e')]=0x1;_0x4eaa37['lastAssignedTo']=_0x56dcee['membername'];_0x4eaa37[_0x8eb1('0x2f')]=_0x8eb1('0x30');return BPromise['resolve']()[_0x8eb1('0xc')](voiceQueueReport[_0x8eb1('0x31')](_0x4eaa37))[_0x8eb1('0xb')](loggerCatch('[voiceQueueReport]\x20'));};exports['getContactRecallMe']=function(_0x5e56ea,_0x5db75b){return BPromise[_0x8eb1('0x13')]()[_0x8eb1('0xc')](cmHopper[_0x8eb1('0x32')](_0x5e56ea,_0x5db75b))['catch'](loggerCatch(_0x8eb1('0x33')));};exports[_0x8eb1('0x34')]=function(_0x12aef4){return cmHopper['rescheduleContact'](_0x12aef4,!![],!![])[_0x8eb1('0xb')](loggerCatch(_0x8eb1('0x35')));};
\ No newline at end of file