Built motion from commit b51cdcb3f2cb46634587ce1d55ea1b8f32dacea6. Version 3.0.0...
[motion-next.git] / server / services / ami / rpc / cmHopper.js
index aa8e544..70e1000 100644 (file)
@@ -1 +1 @@
-const a1102_0x5dc5=['queue','DESC','getContactPreview','MoveContactManagedDialer','scheduledat','Request','ASC','destroyContact','CmContact','sequelize','Agent','UpdateCmHopper','priority','countReScheduled','lte','ListId','moveContactManagedDialer','updateContacts','Queue','ContactId','YYYY-MM-DD\x20HH:mm:ss','User','VoiceQueueId','rescheduleContact','CampaignId','DestroyCmHopper','Contact','../client','getCmHopper','GetContactDialer','campaign','moment','format','GetContactRecallMe','name'];(function(_0x5503ed,_0x5dc59b){const _0x252827=function(_0x36843f){while(--_0x36843f){_0x5503ed['push'](_0x5503ed['shift']());}};_0x252827(++_0x5dc59b);}(a1102_0x5dc5,0x132));const a1102_0x2528=function(_0x5503ed,_0x5dc59b){_0x5503ed=_0x5503ed-0x0;let _0x252827=a1102_0x5dc5[_0x5503ed];return _0x252827;};const _0x2758ff=a1102_0x2528;'use strict';const client=require(_0x2758ff('0x1')),moment=require(_0x2758ff('0x5')),{Op}=require(_0x2758ff('0x12'));exports['getContacts']=function(_0x36843f,_0x2f60a6){return function(){const _0x45e5d0=a1102_0x2528;return client[_0x45e5d0('0xe')]('GetCmHopper',{'options':{'where':{'VoiceQueueId':_0x36843f},'include':[{'model':_0x45e5d0('0x11'),'as':_0x45e5d0('0x0')}],'limit':_0x2f60a6,'raw':![]},'log':_0x45e5d0('0x2')});};},exports[_0x2758ff('0x1a')]=function(_0xd76137,_0x8522bb,_0x302bb2){return function(){const _0x56b616=a1102_0x2528;return client[_0x56b616('0xe')]('UpdateCmHopper',{'body':_0xd76137,'options':{'where':{'VoiceQueueId':_0x8522bb,'scheduledat':{[Op[_0x56b616('0x17')]]:moment()[_0x56b616('0x6')]('YYYY-MM-DD\x20HH:mm:ss')}},'limit':_0x302bb2},'log':'UpdateCmHopper'});};},exports['rescheduleContact']=function(_0x3f1952){return function(){const _0x27893a=a1102_0x2528;return client[_0x27893a('0xe')](_0x27893a('0x14'),{'body':_0x3f1952,'options':{'where':{'ContactId':_0x3f1952[_0x27893a('0x1c')],'ListId':_0x3f1952[_0x27893a('0x18')],'VoiceQueueId':_0x3f1952[_0x27893a('0x1f')],'CampaignId':_0x3f1952[_0x27893a('0x21')]}},'log':_0x27893a('0x20')});};},exports[_0x2758ff('0x10')]=function(_0xe8b06f,_0x186775,_0x587d03){return function(){const _0x1ad862=a1102_0x2528;return client[_0x1ad862('0xe')](_0x1ad862('0x22'),{'options':{'where':{'VoiceQueueId':_0xe8b06f,'ListId':_0x186775,'ContactId':_0x587d03}},'log':_0x1ad862('0x22')});};},exports['getContactDialer']=function(_0x2c3f3a,_0x2e7217,_0x10ec17,_0x33d3b5){return function(){const _0x543584=a1102_0x2528;return client[_0x543584('0xe')](_0x543584('0x3'),{'body':{'active':!![]},'options':{'where':{'VoiceQueueId':_0x2c3f3a,'active':![],'scheduledat':{[Op['lte']]:moment()[_0x543584('0x6')](_0x543584('0x1d'))},[Op['or']]:[{'UserId':null},{'UserId':{[Op['in']]:_0x2e7217}}]},'order':[[_0x543584('0x15'),_0x543584('0xa')],[_0x543584('0xd'),_0x33d3b5],['id',_0x543584('0xf')]],'raw':!![],'limit':_0x10ec17},'log':_0x543584('0x3')});};},exports['getContactDialerIvr']=function(_0x149553,_0x2bcca4,_0x4672b9){return function(){const _0x146438=a1102_0x2528;return client[_0x146438('0xe')](_0x146438('0x3'),{'body':{'active':!![]},'options':{'where':{'CampaignId':_0x149553,'active':![],'scheduledat':{[Op['lte']]:moment()[_0x146438('0x6')](_0x146438('0x1d'))}},'include':[{'model':'CmContact','as':'Contact'}],'order':[[_0x146438('0x15'),_0x146438('0xa')],[_0x146438('0xd'),_0x4672b9],['id',_0x146438('0xf')]],'raw':!![],'limit':_0x2bcca4},'log':'GetContactDialerIvr'});};},exports[_0x2758ff('0x19')]=function(_0x55d896,_0x3cb047){return function(){const _0x28519a=a1102_0x2528;return _0x55d896[_0x28519a('0x4')]=_0x55d896[_0x28519a('0x9')],client[_0x28519a('0xe')](_0x28519a('0xc'),{'body':_0x55d896,'options':{'where':{'ContactId':_0x55d896[_0x28519a('0x1c')],'ListId':_0x55d896[_0x28519a('0x18')],'VoiceQueueId':_0x55d896[_0x28519a('0x1f')],'CampaignId':_0x55d896[_0x28519a('0x21')],'active':_0x3cb047?undefined:!![]}},'log':_0x28519a('0xc')});};},exports[_0x2758ff('0x16')]=function(_0x3386c7){return function(){const _0xc20a0b=a1102_0x2528;return client[_0xc20a0b('0xe')]('CountReScheduled',{'options':{'where':{'VoiceQueueId':_0x3386c7['id']?_0x3386c7['id']||null:null}},'log':_0xc20a0b('0x16')});};},exports[_0x2758ff('0xb')]=function(_0x3c7903){return function(){const _0x36afe1=a1102_0x2528;return client[_0x36afe1('0xe')]('GetCmHopperPreview',{'options':{'where':{'id':_0x3c7903},'include':[{'model':_0x36afe1('0x11'),'as':_0x36afe1('0x0')},{'model':_0x36afe1('0x1e'),'as':_0x36afe1('0x13'),'attributes':['id',_0x36afe1('0x8')]},{'model':'VoiceQueue','as':_0x36afe1('0x1b'),'attributes':['id',_0x36afe1('0x8')]}],'raw':!![]},'log':'getCmHopper'});};},exports['unlockContact']=function(_0x465a03,_0x500255,_0x1f5574){return function(){const _0x3b9859=a1102_0x2528;return client[_0x3b9859('0xe')](_0x3b9859('0x14'),{'body':_0x465a03,'options':{'where':{'id':_0x500255},'limit':_0x1f5574},'log':'UpdateCmHopper'});};},exports['getContactRecallMe']=function(_0x273b4f,_0x470f88){return function(){const _0x30dec9=a1102_0x2528;return client[_0x30dec9('0xe')](_0x30dec9('0x7'),{'body':{'active':!![]},'options':{'where':{'VoiceQueueId':_0x273b4f,'active':![],'recallme':!![],'scheduledat':{[Op[_0x30dec9('0x17')]]:moment()[_0x30dec9('0x6')]('YYYY-MM-DD\x20HH:mm:ss')},'UserId':{[Op['in']]:_0x470f88}},'order':[[_0x30dec9('0x15'),_0x30dec9('0xa')],['scheduledat',_0x30dec9('0xa')],['id',_0x30dec9('0xf')]],'include':[{'model':_0x30dec9('0x11'),'as':_0x30dec9('0x0')},{'model':_0x30dec9('0x1e'),'as':_0x30dec9('0x13'),'attributes':['id',_0x30dec9('0x8'),'voicePause']}],'group':'db.CmHopper.UserId','raw':!![]},'log':_0x30dec9('0x3')});};};
\ No newline at end of file
+const a1102_0x137b=['getCmHopper','Agent','Request','Queue','getContacts','format','UpdateCmHopper','CmContact','ASC','moveContactManagedDialer','campaign','GetContactDialerIvr','getContactDialerIvr','moment','getContactRecallMe','Contact','CampaignId','VoiceQueueId','queue','voicePause','rescheduleContact','getContactPreview','DestroyCmHopper','getContactDialer','ContactId','priority','lte','YYYY-MM-DD\x20HH:mm:ss','CountReScheduled','countReScheduled','GetContactDialer','MoveContactManagedDialer','name','ListId','sequelize','DESC','scheduledat','GetCmHopper','GetCmHopperPreview','VoiceQueue','User'];(function(_0x1f66be,_0x137b58){const _0x43960b=function(_0x14ea88){while(--_0x14ea88){_0x1f66be['push'](_0x1f66be['shift']());}};_0x43960b(++_0x137b58);}(a1102_0x137b,0x14a));const a1102_0x4396=function(_0x1f66be,_0x137b58){_0x1f66be=_0x1f66be-0x0;let _0x43960b=a1102_0x137b[_0x1f66be];return _0x43960b;};const _0x3749ed=a1102_0x4396;'use strict';const client=require('../client'),moment=require(_0x3749ed('0xb')),{Op}=require(_0x3749ed('0x20'));exports[_0x3749ed('0x2')]=function(_0x14ea88,_0x28cf3e){return function(){const _0x3ab91e=a1102_0x4396;return client[_0x3ab91e('0x0')](_0x3ab91e('0x23'),{'options':{'where':{'VoiceQueueId':_0x14ea88},'include':[{'model':'CmContact','as':'Contact'}],'limit':_0x28cf3e,'raw':![]},'log':_0x3ab91e('0x27')});};},exports['updateContacts']=function(_0x15d3ef,_0x221acc,_0x531f9f){return function(){const _0x213a30=a1102_0x4396;return client[_0x213a30('0x0')]('UpdateCmHopper',{'body':_0x15d3ef,'options':{'where':{'VoiceQueueId':_0x221acc,'scheduledat':{[Op[_0x213a30('0x18')]]:moment()[_0x213a30('0x3')](_0x213a30('0x19'))}},'limit':_0x531f9f},'log':_0x213a30('0x4')});};},exports[_0x3749ed('0x12')]=function(_0x340973){return function(){const _0x20ca83=a1102_0x4396;return client['Request'](_0x20ca83('0x4'),{'body':_0x340973,'options':{'where':{'ContactId':_0x340973['ContactId'],'ListId':_0x340973[_0x20ca83('0x1f')],'VoiceQueueId':_0x340973[_0x20ca83('0xf')],'CampaignId':_0x340973[_0x20ca83('0xe')]}},'log':'rescheduleContact'});};},exports['destroyContact']=function(_0x20ee9e,_0x5e8a5e,_0x5166ad){return function(){const _0x1df724=a1102_0x4396;return client[_0x1df724('0x0')](_0x1df724('0x14'),{'options':{'where':{'VoiceQueueId':_0x20ee9e,'ListId':_0x5e8a5e,'ContactId':_0x5166ad}},'log':'DestroyCmHopper'});};},exports[_0x3749ed('0x15')]=function(_0x42fc68,_0x5161e3,_0x97503f,_0x546b27){return function(){const _0x523d3f=a1102_0x4396;return client['Request'](_0x523d3f('0x1c'),{'body':{'active':!![]},'options':{'where':{'VoiceQueueId':_0x42fc68,'active':![],'scheduledat':{[Op['lte']]:moment()[_0x523d3f('0x3')](_0x523d3f('0x19'))},[Op['or']]:[{'UserId':null},{'UserId':{[Op['in']]:_0x5161e3}}]},'order':[[_0x523d3f('0x17'),_0x523d3f('0x21')],[_0x523d3f('0x22'),_0x546b27],['id','ASC']],'raw':!![],'limit':_0x97503f},'log':'GetContactDialer'});};},exports[_0x3749ed('0xa')]=function(_0x562b50,_0x245bce,_0x3492b6){return function(){const _0x2eb747=a1102_0x4396;return client[_0x2eb747('0x0')](_0x2eb747('0x1c'),{'body':{'active':!![]},'options':{'where':{'CampaignId':_0x562b50,'active':![],'scheduledat':{[Op[_0x2eb747('0x18')]]:moment()[_0x2eb747('0x3')](_0x2eb747('0x19'))}},'include':[{'model':_0x2eb747('0x5'),'as':_0x2eb747('0xd')}],'order':[[_0x2eb747('0x17'),_0x2eb747('0x21')],[_0x2eb747('0x22'),_0x3492b6],['id',_0x2eb747('0x6')]],'raw':!![],'limit':_0x245bce},'log':_0x2eb747('0x9')});};},exports[_0x3749ed('0x7')]=function(_0x1eaa51,_0x5942d5){return function(){const _0x1c77cb=a1102_0x4396;return _0x1eaa51[_0x1c77cb('0x8')]=_0x1eaa51[_0x1c77cb('0x10')],client[_0x1c77cb('0x0')](_0x1c77cb('0x1d'),{'body':_0x1eaa51,'options':{'where':{'ContactId':_0x1eaa51[_0x1c77cb('0x16')],'ListId':_0x1eaa51[_0x1c77cb('0x1f')],'VoiceQueueId':_0x1eaa51[_0x1c77cb('0xf')],'CampaignId':_0x1eaa51[_0x1c77cb('0xe')],'active':_0x5942d5?undefined:!![]}},'log':'MoveContactManagedDialer'});};},exports[_0x3749ed('0x1b')]=function(_0x1559bc){return function(){const _0x4ec00f=a1102_0x4396;return client[_0x4ec00f('0x0')](_0x4ec00f('0x1a'),{'options':{'where':{'VoiceQueueId':_0x1559bc['id']?_0x1559bc['id']||null:null}},'log':'countReScheduled'});};},exports[_0x3749ed('0x13')]=function(_0x21f4bd){return function(){const _0x31b79d=a1102_0x4396;return client['Request'](_0x31b79d('0x24'),{'options':{'where':{'id':_0x21f4bd},'include':[{'model':_0x31b79d('0x5'),'as':_0x31b79d('0xd')},{'model':_0x31b79d('0x26'),'as':_0x31b79d('0x28'),'attributes':['id',_0x31b79d('0x1e')]},{'model':_0x31b79d('0x25'),'as':_0x31b79d('0x1'),'attributes':['id',_0x31b79d('0x1e')]}],'raw':!![]},'log':_0x31b79d('0x27')});};},exports['unlockContact']=function(_0x49561c,_0x447bfe,_0x274067){return function(){const _0x117fed=a1102_0x4396;return client[_0x117fed('0x0')](_0x117fed('0x4'),{'body':_0x49561c,'options':{'where':{'id':_0x447bfe},'limit':_0x274067},'log':_0x117fed('0x4')});};},exports[_0x3749ed('0xc')]=function(_0x14638c,_0x35e155){return function(){const _0x59e254=a1102_0x4396;return client['Request']('GetContactRecallMe',{'body':{'active':!![]},'options':{'where':{'VoiceQueueId':_0x14638c,'active':![],'recallme':!![],'scheduledat':{[Op['lte']]:moment()[_0x59e254('0x3')]('YYYY-MM-DD\x20HH:mm:ss')},'UserId':{[Op['in']]:_0x35e155}},'order':[[_0x59e254('0x17'),_0x59e254('0x21')],[_0x59e254('0x22'),'DESC'],['id',_0x59e254('0x6')]],'include':[{'model':_0x59e254('0x5'),'as':_0x59e254('0xd')},{'model':_0x59e254('0x26'),'as':_0x59e254('0x28'),'attributes':['id','name',_0x59e254('0x11')]}],'group':'db.CmHopper.UserId','raw':!![]},'log':_0x59e254('0x1c')});};};
\ No newline at end of file