Built motion from commit (unavailable).|2.4.4
[motion2.git] / server / services / ami / preview / rpcDb.js
index a494f2b..ca065f2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xfcfc=['checkIsBlackList','[checkIsBlackList]\x20','getContactPreview','[getContactPreview]\x20','createAgentHistory','createCustomerHistory','rescheduleContact','UserId','[rescheduleContact]\x20','countReScheduled','[countReScheduled]\x20','unlockContact','[unlockContact]\x20','[activeContact]\x20','crateCustomerReportQueue','type','uniqueid','calleridnum','calleridname','queue','queuecallerjoinAt','queuecallerleaveAt','answertime','queuecallercomplete','queuecallercompleteAt','endtime','connectedlinename','context','exten','holdtime','queuecallerexitreason','COMPLETED','create','[voiceQueueReport]\x20','getContactRecallMe','[GetContactRecallMe]\x20','[rescheduleContactInQueue]\x20','bluebird','../../../config/logger','preview','lodash','../rpc/cmHopper','../rpc/cmHopperFinal','../rpc/cmHopperHistory','../rpc/voiceQueueRt','../rpc/agentReportPreview','../rpc/voiceQueueReport','error','createHistory','catch','[createHistory]\x20','resolve','then','moveContactManagedDialer','[moveContactManagedDialer]\x20'];(function(_0x148cfb,_0x23187b){var _0x44063e=function(_0x466863){while(--_0x466863){_0x148cfb['push'](_0x148cfb['shift']());}};_0x44063e(++_0x23187b);}(_0xfcfc,0x1dd));var _0xcfcf=function(_0x56f267,_0x5c54a8){_0x56f267=_0x56f267-0x0;var _0x144b18=_0xfcfc[_0x56f267];return _0x144b18;};'use strict';var util=require('util');var BPromise=require(_0xcfcf('0x0'));var logger=require(_0xcfcf('0x1'))(_0xcfcf('0x2'));var _=require(_0xcfcf('0x3'));var cmHopper=require(_0xcfcf('0x4'));var cmHopperFinal=require(_0xcfcf('0x5'));var cmHopperHistory=require(_0xcfcf('0x6'));var cmHopperBlack=require('../rpc/cmHopperBlack');var voiceQueueRt=require(_0xcfcf('0x7'));var agentReportPreview=require(_0xcfcf('0x8'));var voiceQueueReport=require(_0xcfcf('0x9'));function loggerCatch(_0x38cb49){return function(_0x572566){logger[_0xcfcf('0xa')](_0x38cb49,util['inspect'](_0x572566,{'showHidden':![],'depth':null}));};}function create(_0x574ae4){return BPromise['resolve']()['then'](cmHopperHistory[_0xcfcf('0xb')](_0x574ae4))[_0xcfcf('0xc')](loggerCatch(_0xcfcf('0xd')));}function createAgent(_0xf71403){return BPromise[_0xcfcf('0xe')]()[_0xcfcf('0xf')](agentReportPreview['createHistory'](_0xf71403))[_0xcfcf('0xc')](loggerCatch(_0xcfcf('0xd')));}function moveContact(_0x458ce5){return BPromise[_0xcfcf('0xe')]()[_0xcfcf('0xf')](cmHopper[_0xcfcf('0x10')](_0x458ce5,!![]))[_0xcfcf('0xc')](loggerCatch(_0xcfcf('0x11')));}exports[_0xcfcf('0x12')]=function(_0x14244a){return BPromise[_0xcfcf('0xe')]()['then'](cmHopperBlack['checkIsBlackList'](_0x14244a))[_0xcfcf('0xc')](loggerCatch(_0xcfcf('0x13')));};exports['getContactPreview']=function(_0x5c67b5){return BPromise[_0xcfcf('0xe')]()[_0xcfcf('0xf')](cmHopper[_0xcfcf('0x14')](_0x5c67b5))[_0xcfcf('0xc')](loggerCatch(_0xcfcf('0x15')));};exports[_0xcfcf('0xb')]=function(_0x24ee3b,_0x242510){create(_0x24ee3b)[_0xcfcf('0xc')](loggerCatch(_0x242510));moveContact(_0x24ee3b)[_0xcfcf('0xc')](loggerCatch(_0x242510));};exports[_0xcfcf('0x16')]=function(_0x8c0633,_0x932765){createAgent(_0x8c0633)[_0xcfcf('0xc')](loggerCatch(_0x932765));};exports[_0xcfcf('0x17')]=function(_0x38725d,_0x1f9244){create(_0x38725d)[_0xcfcf('0xc')](loggerCatch(_0x1f9244));};exports['createCustomerFinal']=function(_0x5a97f6,_0x575644){moveContact(_0x5a97f6)['catch'](loggerCatch(_0x575644));};exports[_0xcfcf('0x18')]=function(_0x1f99a1,_0xd66cd7,_0x4b325e){if(_0xd66cd7){_0x1f99a1[_0xcfcf('0x19')]=null;}if(_0x4b325e){_0x1f99a1['active']=![];}return BPromise[_0xcfcf('0xe')]()[_0xcfcf('0xf')](cmHopper[_0xcfcf('0x18')](_0x1f99a1))[_0xcfcf('0xc')](loggerCatch(_0xcfcf('0x1a')));};exports[_0xcfcf('0x1b')]=function(_0x240776){return BPromise[_0xcfcf('0xe')]()[_0xcfcf('0xf')](cmHopper[_0xcfcf('0x1b')](_0x240776))[_0xcfcf('0xc')](loggerCatch(_0xcfcf('0x1c')));};exports[_0xcfcf('0x1d')]=function(_0x128593){return BPromise[_0xcfcf('0xe')]()['then'](cmHopper[_0xcfcf('0x1d')]({'UserId':null},_0x128593,0x1))[_0xcfcf('0xc')](loggerCatch(_0xcfcf('0x1e')));};exports['disableContact']=function(_0x2fbe29){return BPromise[_0xcfcf('0xe')]()[_0xcfcf('0xf')](cmHopper['unlockContact']({'active':![]},_0x2fbe29,0x1))[_0xcfcf('0xc')](loggerCatch(_0xcfcf('0x1f')));};exports[_0xcfcf('0x20')]=function(_0x5a2c69){var _0x4ca18a={};_0x4ca18a[_0xcfcf('0x21')]=_0x5a2c69['type'];_0x4ca18a[_0xcfcf('0x22')]=_0x5a2c69[_0xcfcf('0x22')];_0x4ca18a[_0xcfcf('0x23')]=_0x5a2c69[_0xcfcf('0x23')];_0x4ca18a['calleridname']=_0x5a2c69[_0xcfcf('0x24')];_0x4ca18a[_0xcfcf('0x25')]=_0x5a2c69[_0xcfcf('0x25')];_0x4ca18a[_0xcfcf('0x26')]=_0x5a2c69['answertime'];_0x4ca18a[_0xcfcf('0x27')]=_0x5a2c69[_0xcfcf('0x28')];_0x4ca18a[_0xcfcf('0x29')]=0x1;_0x4ca18a[_0xcfcf('0x2a')]=_0x5a2c69[_0xcfcf('0x2b')];_0x4ca18a[_0xcfcf('0x2c')]=_0x5a2c69['membername'];_0x4ca18a[_0xcfcf('0x2d')]='from-sip';_0x4ca18a[_0xcfcf('0x2e')]='xcally-motion-preview';_0x4ca18a[_0xcfcf('0x2f')]=0x0;_0x4ca18a['assigned']=0x1;_0x4ca18a['lastAssignedTo']=_0x5a2c69['membername'];_0x4ca18a[_0xcfcf('0x30')]=_0xcfcf('0x31');return BPromise['resolve']()['then'](voiceQueueReport[_0xcfcf('0x32')](_0x4ca18a))[_0xcfcf('0xc')](loggerCatch(_0xcfcf('0x33')));};exports[_0xcfcf('0x34')]=function(_0x209331,_0xc7ee97){return BPromise['resolve']()[_0xcfcf('0xf')](cmHopper['getContactRecallMe'](_0x209331,_0xc7ee97))[_0xcfcf('0xc')](loggerCatch(_0xcfcf('0x35')));};exports['rescheduleContactInQueue']=function(_0x3e01b6){return BPromise['resolve']()[_0xcfcf('0xf')](cmHopper[_0xcfcf('0x18')](_0x3e01b6,!![],!![]))[_0xcfcf('0xc')](loggerCatch(_0xcfcf('0x36')));};
\ No newline at end of file
+var _0x627f=['[countReScheduled]\x20','unlockContact','[unlockContact]\x20','crateCustomerReportQueue','type','uniqueid','calleridnum','calleridname','queue','queuecallerjoinAt','answertime','queuecallerleaveAt','queuecallercomplete','membername','context','from-sip','exten','xcally-motion-preview','holdtime','assigned','lastAssignedTo','queuecallerexitreason','[voiceQueueReport]\x20','getContactRecallMe','[rescheduleContactInQueue]\x20','../../../config/logger','lodash','../rpc/cmHopperFinal','../rpc/cmHopperHistory','../rpc/cmHopperBlack','../rpc/agentReportPreview','../rpc/voiceQueueReport','error','inspect','resolve','then','createHistory','[createHistory]\x20','catch','moveContactManagedDialer','[moveContactManagedDialer]\x20','checkIsBlackList','[checkIsBlackList]\x20','getContactPreview','createAgentHistory','createCustomerHistory','createCustomerFinal','rescheduleContact','UserId','active','countReScheduled'];(function(_0x3269a7,_0x2af7c2){var _0x3699e9=function(_0x53fb12){while(--_0x53fb12){_0x3269a7['push'](_0x3269a7['shift']());}};_0x3699e9(++_0x2af7c2);}(_0x627f,0x1b1));var _0xf627=function(_0x1710ee,_0x1ff879){_0x1710ee=_0x1710ee-0x0;var _0x4e825b=_0x627f[_0x1710ee];return _0x4e825b;};'use strict';var util=require('util');var BPromise=require('bluebird');var logger=require(_0xf627('0x0'))('preview');var _=require(_0xf627('0x1'));var cmHopper=require('../rpc/cmHopper');var cmHopperFinal=require(_0xf627('0x2'));var cmHopperHistory=require(_0xf627('0x3'));var cmHopperBlack=require(_0xf627('0x4'));var voiceQueueRt=require('../rpc/voiceQueueRt');var agentReportPreview=require(_0xf627('0x5'));var voiceQueueReport=require(_0xf627('0x6'));function loggerCatch(_0x22eaa5){return function(_0x3c6d43){logger[_0xf627('0x7')](_0x22eaa5,util[_0xf627('0x8')](_0x3c6d43,{'showHidden':![],'depth':null}));};}function create(_0x255db9){return BPromise[_0xf627('0x9')]()[_0xf627('0xa')](cmHopperHistory[_0xf627('0xb')](_0x255db9))['catch'](loggerCatch(_0xf627('0xc')));}function createAgent(_0x2cb51c){return BPromise[_0xf627('0x9')]()['then'](agentReportPreview[_0xf627('0xb')](_0x2cb51c))[_0xf627('0xd')](loggerCatch(_0xf627('0xc')));}function moveContact(_0x449d90){return BPromise[_0xf627('0x9')]()[_0xf627('0xa')](cmHopper[_0xf627('0xe')](_0x449d90,!![]))[_0xf627('0xd')](loggerCatch(_0xf627('0xf')));}exports[_0xf627('0x10')]=function(_0x5ac0e2){return BPromise['resolve']()[_0xf627('0xa')](cmHopperBlack[_0xf627('0x10')](_0x5ac0e2))[_0xf627('0xd')](loggerCatch(_0xf627('0x11')));};exports['getContactPreview']=function(_0x30583c){return BPromise[_0xf627('0x9')]()[_0xf627('0xa')](cmHopper[_0xf627('0x12')](_0x30583c))[_0xf627('0xd')](loggerCatch('[getContactPreview]\x20'));};exports['createHistory']=function(_0x47b78b,_0x46b96e){create(_0x47b78b)['catch'](loggerCatch(_0x46b96e));moveContact(_0x47b78b)['catch'](loggerCatch(_0x46b96e));};exports[_0xf627('0x13')]=function(_0x329f3c,_0x1dbe21){createAgent(_0x329f3c)[_0xf627('0xd')](loggerCatch(_0x1dbe21));};exports[_0xf627('0x14')]=function(_0x3e5b18,_0x7655bf){create(_0x3e5b18)[_0xf627('0xd')](loggerCatch(_0x7655bf));};exports[_0xf627('0x15')]=function(_0x307c9b,_0x60bfc3){moveContact(_0x307c9b)[_0xf627('0xd')](loggerCatch(_0x60bfc3));};exports[_0xf627('0x16')]=function(_0x5e12b9,_0x51a79b,_0x22a504){if(_0x51a79b){_0x5e12b9[_0xf627('0x17')]=null;}if(_0x22a504){_0x5e12b9[_0xf627('0x18')]=![];}return BPromise['resolve']()['then'](cmHopper[_0xf627('0x16')](_0x5e12b9))['catch'](loggerCatch('[rescheduleContact]\x20'));};exports[_0xf627('0x19')]=function(_0x29e946){return BPromise[_0xf627('0x9')]()[_0xf627('0xa')](cmHopper[_0xf627('0x19')](_0x29e946))[_0xf627('0xd')](loggerCatch(_0xf627('0x1a')));};exports[_0xf627('0x1b')]=function(_0x376894){return BPromise[_0xf627('0x9')]()['then'](cmHopper[_0xf627('0x1b')]({'UserId':null},_0x376894,0x1))[_0xf627('0xd')](loggerCatch(_0xf627('0x1c')));};exports['disableContact']=function(_0x3418a8){return BPromise['resolve']()[_0xf627('0xa')](cmHopper[_0xf627('0x1b')]({'active':![]},_0x3418a8,0x1))[_0xf627('0xd')](loggerCatch('[activeContact]\x20'));};exports[_0xf627('0x1d')]=function(_0x2d814c){var _0x259b02={};_0x259b02[_0xf627('0x1e')]=_0x2d814c[_0xf627('0x1e')];_0x259b02['uniqueid']=_0x2d814c[_0xf627('0x1f')];_0x259b02[_0xf627('0x20')]=_0x2d814c[_0xf627('0x20')];_0x259b02[_0xf627('0x21')]=_0x2d814c[_0xf627('0x21')];_0x259b02[_0xf627('0x22')]=_0x2d814c[_0xf627('0x22')];_0x259b02[_0xf627('0x23')]=_0x2d814c[_0xf627('0x24')];_0x259b02[_0xf627('0x25')]=_0x2d814c[_0xf627('0x24')];_0x259b02[_0xf627('0x26')]=0x1;_0x259b02['queuecallercompleteAt']=_0x2d814c['endtime'];_0x259b02['connectedlinename']=_0x2d814c[_0xf627('0x27')];_0x259b02[_0xf627('0x28')]=_0xf627('0x29');_0x259b02[_0xf627('0x2a')]=_0xf627('0x2b');_0x259b02[_0xf627('0x2c')]=0x0;_0x259b02[_0xf627('0x2d')]=0x1;_0x259b02[_0xf627('0x2e')]=_0x2d814c[_0xf627('0x27')];_0x259b02[_0xf627('0x2f')]='COMPLETED';return BPromise['resolve']()[_0xf627('0xa')](voiceQueueReport['create'](_0x259b02))[_0xf627('0xd')](loggerCatch(_0xf627('0x30')));};exports['getContactRecallMe']=function(_0x2dd996,_0x44b4c5){return BPromise['resolve']()[_0xf627('0xa')](cmHopper[_0xf627('0x31')](_0x2dd996,_0x44b4c5))[_0xf627('0xd')](loggerCatch('[GetContactRecallMe]\x20'));};exports['rescheduleContactInQueue']=function(_0x4c858a){return BPromise[_0xf627('0x9')]()['then'](cmHopper[_0xf627('0x16')](_0x4c858a,!![],!![]))[_0xf627('0xd')](loggerCatch(_0xf627('0x32')));};
\ No newline at end of file