Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / services / ami / rpc / cmHopper.js
index 3917dac..c690f8a 100644 (file)
@@ -1 +1 @@
-const a1102_0xe569=['GetCmHopperPreview','rescheduleContact','DESC','name','User','Agent','priority','VoiceQueueId','DestroyCmHopper','../client','updateContacts','Request','UpdateCmHopper','CmContact','sequelize','queue','db.CmHopper.UserId','getContactDialerIvr','YYYY-MM-DD\x20HH:mm:ss','countReScheduled','ListId','GetContactRecallMe','moment','campaign','GetContactDialerIvr','format','getCmHopper','ASC','lte','MoveContactManagedDialer','VoiceQueue','getContactDialer','getContacts','Contact','getContactPreview','voicePause','CampaignId','GetContactDialer','scheduledat'];(function(_0x105d65,_0xe5691d){const _0x148e31=function(_0x200c65){while(--_0x200c65){_0x105d65['push'](_0x105d65['shift']());}};_0x148e31(++_0xe5691d);}(a1102_0xe569,0x145));const a1102_0x148e=function(_0x105d65,_0xe5691d){_0x105d65=_0x105d65-0x0;let _0x148e31=a1102_0xe569[_0x105d65];return _0x148e31;};const _0x32d749=a1102_0x148e;'use strict';const client=require(_0x32d749('0x23')),moment=require(_0x32d749('0x9')),{Op}=require(_0x32d749('0x1'));exports[_0x32d749('0x13')]=function(_0x200c65,_0x51678e){return function(){const _0x1afecf=a1102_0x148e;return client[_0x1afecf('0x25')]('GetCmHopper',{'options':{'where':{'VoiceQueueId':_0x200c65},'include':[{'model':_0x1afecf('0x0'),'as':_0x1afecf('0x14')}],'limit':_0x51678e,'raw':![]},'log':_0x1afecf('0xd')});};},exports[_0x32d749('0x24')]=function(_0x5d08a9,_0x159bc4,_0x4c57b0){return function(){const _0x2c9847=a1102_0x148e;return client[_0x2c9847('0x25')](_0x2c9847('0x26'),{'body':_0x5d08a9,'options':{'where':{'VoiceQueueId':_0x159bc4,'scheduledat':{[Op[_0x2c9847('0xf')]]:moment()[_0x2c9847('0xc')](_0x2c9847('0x5'))}},'limit':_0x4c57b0},'log':_0x2c9847('0x26')});};},exports[_0x32d749('0x1b')]=function(_0x1df987){return function(){const _0x143ea8=a1102_0x148e;return client['Request']('UpdateCmHopper',{'body':_0x1df987,'options':{'where':{'ContactId':_0x1df987['ContactId'],'ListId':_0x1df987[_0x143ea8('0x7')],'VoiceQueueId':_0x1df987[_0x143ea8('0x21')],'CampaignId':_0x1df987[_0x143ea8('0x17')]}},'log':_0x143ea8('0x1b')});};},exports['destroyContact']=function(_0x176a89,_0x4864ed,_0x4b1af2){return function(){const _0x49f28a=a1102_0x148e;return client[_0x49f28a('0x25')](_0x49f28a('0x22'),{'options':{'where':{'VoiceQueueId':_0x176a89,'ListId':_0x4864ed,'ContactId':_0x4b1af2}},'log':_0x49f28a('0x22')});};},exports[_0x32d749('0x12')]=function(_0x3760a4,_0x1c9113,_0x3b4d4a,_0x3da1af){return function(){const _0xf88285=a1102_0x148e;return client[_0xf88285('0x25')](_0xf88285('0x18'),{'body':{'active':!![]},'options':{'where':{'VoiceQueueId':_0x3760a4,'active':![],'scheduledat':{[Op[_0xf88285('0xf')]]:moment()[_0xf88285('0xc')]('YYYY-MM-DD\x20HH:mm:ss')},[Op['or']]:[{'UserId':null},{'UserId':{[Op['in']]:_0x1c9113}}]},'order':[[_0xf88285('0x20'),'DESC'],[_0xf88285('0x19'),_0x3da1af],['id',_0xf88285('0xe')]],'raw':!![],'limit':_0x3b4d4a},'log':'GetContactDialer'});};},exports[_0x32d749('0x4')]=function(_0x2c4406,_0x511fbf,_0x24f8b2){return function(){const _0x37fd2a=a1102_0x148e;return client[_0x37fd2a('0x25')](_0x37fd2a('0x18'),{'body':{'active':!![]},'options':{'where':{'CampaignId':_0x2c4406,'active':![],'scheduledat':{[Op[_0x37fd2a('0xf')]]:moment()[_0x37fd2a('0xc')](_0x37fd2a('0x5'))}},'include':[{'model':'CmContact','as':'Contact'}],'order':[['priority',_0x37fd2a('0x1c')],[_0x37fd2a('0x19'),_0x24f8b2],['id',_0x37fd2a('0xe')]],'raw':!![],'limit':_0x511fbf},'log':_0x37fd2a('0xb')});};},exports['moveContactManagedDialer']=function(_0x5a0fe8,_0x27a8b5){return function(){const _0x1fddba=a1102_0x148e;return _0x5a0fe8[_0x1fddba('0xa')]=_0x5a0fe8[_0x1fddba('0x2')],client[_0x1fddba('0x25')](_0x1fddba('0x10'),{'body':_0x5a0fe8,'options':{'where':{'ContactId':_0x5a0fe8['ContactId'],'ListId':_0x5a0fe8[_0x1fddba('0x7')],'VoiceQueueId':_0x5a0fe8[_0x1fddba('0x21')],'CampaignId':_0x5a0fe8[_0x1fddba('0x17')],'active':_0x27a8b5?undefined:!![]}},'log':_0x1fddba('0x10')});};},exports[_0x32d749('0x6')]=function(_0x9461e6){return function(){const _0x1bceb2=a1102_0x148e;return client[_0x1bceb2('0x25')]('CountReScheduled',{'options':{'where':{'VoiceQueueId':_0x9461e6['id']?_0x9461e6['id']||null:null}},'log':_0x1bceb2('0x6')});};},exports[_0x32d749('0x15')]=function(_0x22c224){return function(){const _0x1ff936=a1102_0x148e;return client[_0x1ff936('0x25')](_0x1ff936('0x1a'),{'options':{'where':{'id':_0x22c224},'include':[{'model':_0x1ff936('0x0'),'as':_0x1ff936('0x14')},{'model':_0x1ff936('0x1e'),'as':_0x1ff936('0x1f'),'attributes':['id',_0x1ff936('0x1d')]},{'model':_0x1ff936('0x11'),'as':'Queue','attributes':['id',_0x1ff936('0x1d')]}],'raw':!![]},'log':_0x1ff936('0xd')});};},exports['unlockContact']=function(_0x5a5e9f,_0x558157,_0x25a05d){return function(){return client['Request']('UpdateCmHopper',{'body':_0x5a5e9f,'options':{'where':{'id':_0x558157},'limit':_0x25a05d},'log':'UpdateCmHopper'});};},exports['getContactRecallMe']=function(_0x1790f7,_0x35e05b){return function(){const _0x57bba6=a1102_0x148e;return client['Request'](_0x57bba6('0x8'),{'body':{'active':!![]},'options':{'where':{'VoiceQueueId':_0x1790f7,'active':![],'recallme':!![],'scheduledat':{[Op[_0x57bba6('0xf')]]:moment()[_0x57bba6('0xc')]('YYYY-MM-DD\x20HH:mm:ss')},'UserId':{[Op['in']]:_0x35e05b}},'order':[[_0x57bba6('0x20'),_0x57bba6('0x1c')],['scheduledat','DESC'],['id','ASC']],'include':[{'model':_0x57bba6('0x0'),'as':_0x57bba6('0x14')},{'model':_0x57bba6('0x1e'),'as':_0x57bba6('0x1f'),'attributes':['id','name',_0x57bba6('0x16')]}],'group':_0x57bba6('0x3'),'raw':!![]},'log':_0x57bba6('0x18')});};};
\ No newline at end of file
+const a1102_0x5122=['DestroyCmHopper','Request','moment','GetContactRecallMe','GetCmHopperPreview','priority','VoiceQueueId','getContactDialer','rescheduleContact','ContactId','sequelize','countReScheduled','UpdateCmHopper','name','getContactDialerIvr','ListId','CampaignId','updateContacts','format','ASC','Queue','GetContactDialerIvr','User','destroyContact','unlockContact','CmContact','lte','moveContactManagedDialer','GetContactDialer','getContactRecallMe','voicePause','../client','scheduledat','CountReScheduled','getCmHopper','VoiceQueue','DESC','queue','YYYY-MM-DD\x20HH:mm:ss','Contact'];(function(_0x5214a6,_0x512237){const _0x342c32=function(_0x28d372){while(--_0x28d372){_0x5214a6['push'](_0x5214a6['shift']());}};_0x342c32(++_0x512237);}(a1102_0x5122,0x180));const a1102_0x342c=function(_0x5214a6,_0x512237){_0x5214a6=_0x5214a6-0x0;let _0x342c32=a1102_0x5122[_0x5214a6];return _0x342c32;};const _0x8dff14=a1102_0x342c;'use strict';const client=require(_0x8dff14('0x7')),moment=require(_0x8dff14('0x12')),{Op}=require(_0x8dff14('0x1a'));exports['getContacts']=function(_0x28d372,_0x3484ec){return function(){const _0x495ccd=a1102_0x342c;return client[_0x495ccd('0x11')]('GetCmHopper',{'options':{'where':{'VoiceQueueId':_0x28d372},'include':[{'model':_0x495ccd('0x1'),'as':_0x495ccd('0xf')}],'limit':_0x3484ec,'raw':![]},'log':_0x495ccd('0xa')});};},exports[_0x8dff14('0x21')]=function(_0x3bd32b,_0x58fe73,_0x55ba82){return function(){const _0x3c0e0b=a1102_0x342c;return client[_0x3c0e0b('0x11')](_0x3c0e0b('0x1c'),{'body':_0x3bd32b,'options':{'where':{'VoiceQueueId':_0x58fe73,'scheduledat':{[Op[_0x3c0e0b('0x2')]]:moment()['format'](_0x3c0e0b('0xe'))}},'limit':_0x55ba82},'log':_0x3c0e0b('0x1c')});};},exports[_0x8dff14('0x18')]=function(_0x325d72){return function(){const _0x3b2645=a1102_0x342c;return client[_0x3b2645('0x11')](_0x3b2645('0x1c'),{'body':_0x325d72,'options':{'where':{'ContactId':_0x325d72[_0x3b2645('0x19')],'ListId':_0x325d72[_0x3b2645('0x1f')],'VoiceQueueId':_0x325d72[_0x3b2645('0x16')],'CampaignId':_0x325d72[_0x3b2645('0x20')]}},'log':_0x3b2645('0x18')});};},exports[_0x8dff14('0x27')]=function(_0x406c24,_0xef973f,_0xc85c59){return function(){const _0x3eee35=a1102_0x342c;return client[_0x3eee35('0x11')](_0x3eee35('0x10'),{'options':{'where':{'VoiceQueueId':_0x406c24,'ListId':_0xef973f,'ContactId':_0xc85c59}},'log':_0x3eee35('0x10')});};},exports[_0x8dff14('0x17')]=function(_0x1ed004,_0x5b39db,_0x2f8059,_0x27a730){return function(){const _0x28d897=a1102_0x342c;return client[_0x28d897('0x11')]('GetContactDialer',{'body':{'active':!![]},'options':{'where':{'VoiceQueueId':_0x1ed004,'active':![],'scheduledat':{[Op[_0x28d897('0x2')]]:moment()[_0x28d897('0x22')](_0x28d897('0xe'))},[Op['or']]:[{'UserId':null},{'UserId':{[Op['in']]:_0x5b39db}}]},'order':[['priority',_0x28d897('0xc')],[_0x28d897('0x8'),_0x27a730],['id',_0x28d897('0x23')]],'raw':!![],'limit':_0x2f8059},'log':_0x28d897('0x4')});};},exports[_0x8dff14('0x1e')]=function(_0x4ea2ae,_0x13b866,_0x237611){return function(){const _0x312729=a1102_0x342c;return client[_0x312729('0x11')](_0x312729('0x4'),{'body':{'active':!![]},'options':{'where':{'CampaignId':_0x4ea2ae,'active':![],'scheduledat':{[Op[_0x312729('0x2')]]:moment()[_0x312729('0x22')]('YYYY-MM-DD\x20HH:mm:ss')}},'include':[{'model':_0x312729('0x1'),'as':_0x312729('0xf')}],'order':[[_0x312729('0x15'),_0x312729('0xc')],[_0x312729('0x8'),_0x237611],['id',_0x312729('0x23')]],'raw':!![],'limit':_0x13b866},'log':_0x312729('0x25')});};},exports[_0x8dff14('0x3')]=function(_0x44694c,_0x11d792){return function(){const _0x5b87d8=a1102_0x342c;return _0x44694c['campaign']=_0x44694c[_0x5b87d8('0xd')],client[_0x5b87d8('0x11')]('MoveContactManagedDialer',{'body':_0x44694c,'options':{'where':{'ContactId':_0x44694c[_0x5b87d8('0x19')],'ListId':_0x44694c[_0x5b87d8('0x1f')],'VoiceQueueId':_0x44694c['VoiceQueueId'],'CampaignId':_0x44694c[_0x5b87d8('0x20')],'active':_0x11d792?undefined:!![]}},'log':'MoveContactManagedDialer'});};},exports['countReScheduled']=function(_0x5260e6){return function(){const _0x35e00e=a1102_0x342c;return client[_0x35e00e('0x11')](_0x35e00e('0x9'),{'options':{'where':{'VoiceQueueId':_0x5260e6['id']?_0x5260e6['id']||null:null}},'log':_0x35e00e('0x1b')});};},exports['getContactPreview']=function(_0x3b98d1){return function(){const _0x415935=a1102_0x342c;return client[_0x415935('0x11')](_0x415935('0x14'),{'options':{'where':{'id':_0x3b98d1},'include':[{'model':_0x415935('0x1'),'as':_0x415935('0xf')},{'model':_0x415935('0x26'),'as':'Agent','attributes':['id',_0x415935('0x1d')]},{'model':_0x415935('0xb'),'as':_0x415935('0x24'),'attributes':['id','name']}],'raw':!![]},'log':_0x415935('0xa')});};},exports[_0x8dff14('0x0')]=function(_0x4b12af,_0x1b9510,_0x54e3fd){return function(){const _0x17c43e=a1102_0x342c;return client[_0x17c43e('0x11')]('UpdateCmHopper',{'body':_0x4b12af,'options':{'where':{'id':_0x1b9510},'limit':_0x54e3fd},'log':_0x17c43e('0x1c')});};},exports[_0x8dff14('0x5')]=function(_0x1dd15d,_0x2a6fa2){return function(){const _0x13433e=a1102_0x342c;return client[_0x13433e('0x11')](_0x13433e('0x13'),{'body':{'active':!![]},'options':{'where':{'VoiceQueueId':_0x1dd15d,'active':![],'recallme':!![],'scheduledat':{[Op[_0x13433e('0x2')]]:moment()[_0x13433e('0x22')](_0x13433e('0xe'))},'UserId':{[Op['in']]:_0x2a6fa2}},'order':[[_0x13433e('0x15'),_0x13433e('0xc')],['scheduledat',_0x13433e('0xc')],['id',_0x13433e('0x23')]],'include':[{'model':_0x13433e('0x1'),'as':_0x13433e('0xf')},{'model':_0x13433e('0x26'),'as':'Agent','attributes':['id',_0x13433e('0x1d'),_0x13433e('0x6')]}],'group':'db.CmHopper.UserId','raw':!![]},'log':_0x13433e('0x4')});};};
\ No newline at end of file