Built motion from commit 5fcd269f5146f10cf3129722d518881dfac64576. Version 3.0.0...
[motion-next.git] / server / services / ami / rpc / cmHopper.js
index 19a6f24..19088fc 100644 (file)
@@ -1 +1 @@
-const a1103_0x2561=['GetContactDialerIvr','CampaignId','GetContactDialer','Agent','getContactRecallMe','CountReScheduled','ListId','campaign','countReScheduled','getContactPreview','db.CmHopper.UserId','ASC','getContacts','YYYY-MM-DD\x20HH:mm:ss','getContactDialer','MoveContactManagedDialer','voicePause','GetCmHopper','Request','sequelize','../client','Contact','queue','priority','CmContact','VoiceQueue','format','getCmHopper','destroyContact','name','scheduledat','DESC','Queue','VoiceQueueId','rescheduleContact','moment','moveContactManagedDialer','GetCmHopperPreview','lte','UpdateCmHopper','DestroyCmHopper'];(function(_0x2e0db9,_0x2561c7){const _0x2fd6f3=function(_0x30c4c7){while(--_0x30c4c7){_0x2e0db9['push'](_0x2e0db9['shift']());}};_0x2fd6f3(++_0x2561c7);}(a1103_0x2561,0x1cb));const a1103_0x2fd6=function(_0x2e0db9,_0x2561c7){_0x2e0db9=_0x2e0db9-0x0;let _0x2fd6f3=a1103_0x2561[_0x2e0db9];return _0x2fd6f3;};const _0xa4226c=a1103_0x2fd6;'use strict';const client=require(_0xa4226c('0xc')),moment=require(_0xa4226c('0x1b')),{Op}=require(_0xa4226c('0xb'));exports[_0xa4226c('0x4')]=function(_0x30c4c7,_0x58970f){return function(){const _0x1ac221=a1103_0x2fd6;return client['Request'](_0x1ac221('0x9'),{'options':{'where':{'VoiceQueueId':_0x30c4c7},'include':[{'model':_0x1ac221('0x10'),'as':'Contact'}],'limit':_0x58970f,'raw':![]},'log':'getCmHopper'});};},exports['updateContacts']=function(_0x3ac5fd,_0x267fe9,_0x2b4fa7){return function(){const _0xe5c6be=a1103_0x2fd6;return client['Request'](_0xe5c6be('0x1f'),{'body':_0x3ac5fd,'options':{'where':{'VoiceQueueId':_0x267fe9,'scheduledat':{[Op[_0xe5c6be('0x1e')]]:moment()[_0xe5c6be('0x12')](_0xe5c6be('0x5'))}},'limit':_0x2b4fa7},'log':'UpdateCmHopper'});};},exports['rescheduleContact']=function(_0x41a9ee){return function(){const _0x1355d3=a1103_0x2fd6;return client[_0x1355d3('0xa')](_0x1355d3('0x1f'),{'body':_0x41a9ee,'options':{'where':{'ContactId':_0x41a9ee['ContactId'],'ListId':_0x41a9ee[_0x1355d3('0x27')],'VoiceQueueId':_0x41a9ee['VoiceQueueId'],'CampaignId':_0x41a9ee['CampaignId']}},'log':_0x1355d3('0x1a')});};},exports[_0xa4226c('0x14')]=function(_0x2eea00,_0x3633e9,_0x1b52e6){return function(){const _0x316c7b=a1103_0x2fd6;return client['Request']('DestroyCmHopper',{'options':{'where':{'VoiceQueueId':_0x2eea00,'ListId':_0x3633e9,'ContactId':_0x1b52e6}},'log':_0x316c7b('0x20')});};},exports[_0xa4226c('0x6')]=function(_0x214ce7,_0xb2bbc1,_0x3154b6,_0x6c5dd2){return function(){const _0x45fd04=a1103_0x2fd6;return client[_0x45fd04('0xa')](_0x45fd04('0x23'),{'body':{'active':!![]},'options':{'where':{'VoiceQueueId':_0x214ce7,'active':![],'scheduledat':{[Op[_0x45fd04('0x1e')]]:moment()['format'](_0x45fd04('0x5'))},[Op['or']]:[{'UserId':null},{'UserId':{[Op['in']]:_0xb2bbc1}}]},'order':[[_0x45fd04('0xf'),'DESC'],[_0x45fd04('0x16'),_0x6c5dd2],['id','ASC']],'raw':!![],'limit':_0x3154b6},'log':'GetContactDialer'});};},exports['getContactDialerIvr']=function(_0x57b52c,_0x5bd86b,_0x51b436){return function(){const _0xb9f90c=a1103_0x2fd6;return client[_0xb9f90c('0xa')]('GetContactDialer',{'body':{'active':!![]},'options':{'where':{'CampaignId':_0x57b52c,'active':![],'scheduledat':{[Op['lte']]:moment()[_0xb9f90c('0x12')]('YYYY-MM-DD\x20HH:mm:ss')}},'include':[{'model':_0xb9f90c('0x10'),'as':'Contact'}],'order':[[_0xb9f90c('0xf'),'DESC'],['scheduledat',_0x51b436],['id',_0xb9f90c('0x3')]],'raw':!![],'limit':_0x5bd86b},'log':_0xb9f90c('0x21')});};},exports[_0xa4226c('0x1c')]=function(_0x5bb7ea,_0x5f0769){return function(){const _0x1ca7fd=a1103_0x2fd6;return _0x5bb7ea[_0x1ca7fd('0x28')]=_0x5bb7ea[_0x1ca7fd('0xe')],client[_0x1ca7fd('0xa')](_0x1ca7fd('0x7'),{'body':_0x5bb7ea,'options':{'where':{'ContactId':_0x5bb7ea['ContactId'],'ListId':_0x5bb7ea[_0x1ca7fd('0x27')],'VoiceQueueId':_0x5bb7ea[_0x1ca7fd('0x19')],'CampaignId':_0x5bb7ea[_0x1ca7fd('0x22')],'active':_0x5f0769?undefined:!![]}},'log':_0x1ca7fd('0x7')});};},exports[_0xa4226c('0x0')]=function(_0xc058f4){return function(){const _0x4aaed2=a1103_0x2fd6;return client[_0x4aaed2('0xa')](_0x4aaed2('0x26'),{'options':{'where':{'VoiceQueueId':_0xc058f4['id']?_0xc058f4['id']||null:null}},'log':_0x4aaed2('0x0')});};},exports[_0xa4226c('0x1')]=function(_0x424c7b){return function(){const _0x321696=a1103_0x2fd6;return client['Request'](_0x321696('0x1d'),{'options':{'where':{'id':_0x424c7b},'include':[{'model':_0x321696('0x10'),'as':_0x321696('0xd')},{'model':'User','as':'Agent','attributes':['id',_0x321696('0x15')]},{'model':_0x321696('0x11'),'as':_0x321696('0x18'),'attributes':['id',_0x321696('0x15')]}],'raw':!![]},'log':_0x321696('0x13')});};},exports['unlockContact']=function(_0x318bc2,_0x4d1ccb,_0x1e903d){return function(){const _0xa14515=a1103_0x2fd6;return client[_0xa14515('0xa')](_0xa14515('0x1f'),{'body':_0x318bc2,'options':{'where':{'id':_0x4d1ccb},'limit':_0x1e903d},'log':_0xa14515('0x1f')});};},exports[_0xa4226c('0x25')]=function(_0xa64137,_0x2f8419){return function(){const _0xcc12dd=a1103_0x2fd6;return client[_0xcc12dd('0xa')]('GetContactRecallMe',{'body':{'active':!![]},'options':{'where':{'VoiceQueueId':_0xa64137,'active':![],'recallme':!![],'scheduledat':{[Op[_0xcc12dd('0x1e')]]:moment()[_0xcc12dd('0x12')]('YYYY-MM-DD\x20HH:mm:ss')},'UserId':{[Op['in']]:_0x2f8419}},'order':[['priority',_0xcc12dd('0x17')],[_0xcc12dd('0x16'),_0xcc12dd('0x17')],['id',_0xcc12dd('0x3')]],'include':[{'model':'CmContact','as':_0xcc12dd('0xd')},{'model':'User','as':_0xcc12dd('0x24'),'attributes':['id','name',_0xcc12dd('0x8')]}],'group':_0xcc12dd('0x2'),'raw':!![]},'log':'GetContactDialer'});};};
\ No newline at end of file
+const a1103_0x4901=['getCmHopper','voicePause','queue','VoiceQueue','format','updateContacts','GetCmHopperPreview','../client','sequelize','CmContact','VoiceQueueId','YYYY-MM-DD\x20HH:mm:ss','moment','getContactDialer','rescheduleContact','DESC','GetContactDialerIvr','name','GetContactDialer','GetContactRecallMe','lte','Queue','GetCmHopper','Contact','countReScheduled','User','db.CmHopper.UserId','getContactDialerIvr','UpdateCmHopper','ASC','scheduledat','CampaignId','Agent','moveContactManagedDialer','priority','DestroyCmHopper','MoveContactManagedDialer','ListId','campaign','Request','ContactId'];(function(_0x25c210,_0x49010a){const _0x559d4a=function(_0x4f0423){while(--_0x4f0423){_0x25c210['push'](_0x25c210['shift']());}};_0x559d4a(++_0x49010a);}(a1103_0x4901,0xbe));const a1103_0x559d=function(_0x25c210,_0x49010a){_0x25c210=_0x25c210-0x0;let _0x559d4a=a1103_0x4901[_0x25c210];return _0x559d4a;};const _0x3ae08d=a1103_0x559d;'use strict';const client=require(_0x3ae08d('0x16')),moment=require(_0x3ae08d('0x1b')),{Op}=require(_0x3ae08d('0x17'));exports['getContacts']=function(_0x4f0423,_0x41c2b6){return function(){const _0x20006b=a1103_0x559d;return client[_0x20006b('0xd')](_0x20006b('0x25'),{'options':{'where':{'VoiceQueueId':_0x4f0423},'include':[{'model':_0x20006b('0x18'),'as':'Contact'}],'limit':_0x41c2b6,'raw':![]},'log':'getCmHopper'});};},exports[_0x3ae08d('0x14')]=function(_0xb06b1b,_0xcda9f2,_0x17a773){return function(){const _0x4ec461=a1103_0x559d;return client['Request'](_0x4ec461('0x2'),{'body':_0xb06b1b,'options':{'where':{'VoiceQueueId':_0xcda9f2,'scheduledat':{[Op[_0x4ec461('0x23')]]:moment()[_0x4ec461('0x13')]('YYYY-MM-DD\x20HH:mm:ss')}},'limit':_0x17a773},'log':_0x4ec461('0x2')});};},exports['rescheduleContact']=function(_0x2387be){return function(){const _0x104d1e=a1103_0x559d;return client[_0x104d1e('0xd')](_0x104d1e('0x2'),{'body':_0x2387be,'options':{'where':{'ContactId':_0x2387be[_0x104d1e('0xe')],'ListId':_0x2387be['ListId'],'VoiceQueueId':_0x2387be[_0x104d1e('0x19')],'CampaignId':_0x2387be[_0x104d1e('0x5')]}},'log':_0x104d1e('0x1d')});};},exports['destroyContact']=function(_0x33aa12,_0x59277e,_0x4208fc){return function(){const _0x2f6c3e=a1103_0x559d;return client[_0x2f6c3e('0xd')](_0x2f6c3e('0x9'),{'options':{'where':{'VoiceQueueId':_0x33aa12,'ListId':_0x59277e,'ContactId':_0x4208fc}},'log':_0x2f6c3e('0x9')});};},exports[_0x3ae08d('0x1c')]=function(_0x530f34,_0x1f3b84,_0x14e174,_0x465b7b){return function(){const _0x9ecf4a=a1103_0x559d;return client['Request'](_0x9ecf4a('0x21'),{'body':{'active':!![]},'options':{'where':{'VoiceQueueId':_0x530f34,'active':![],'scheduledat':{[Op[_0x9ecf4a('0x23')]]:moment()[_0x9ecf4a('0x13')](_0x9ecf4a('0x1a'))},[Op['or']]:[{'UserId':null},{'UserId':{[Op['in']]:_0x1f3b84}}]},'order':[[_0x9ecf4a('0x8'),_0x9ecf4a('0x1e')],[_0x9ecf4a('0x4'),_0x465b7b],['id',_0x9ecf4a('0x3')]],'raw':!![],'limit':_0x14e174},'log':_0x9ecf4a('0x21')});};},exports[_0x3ae08d('0x1')]=function(_0x424500,_0x33f3cf,_0x2f468d){return function(){const _0x4ad655=a1103_0x559d;return client[_0x4ad655('0xd')](_0x4ad655('0x21'),{'body':{'active':!![]},'options':{'where':{'CampaignId':_0x424500,'active':![],'scheduledat':{[Op['lte']]:moment()['format'](_0x4ad655('0x1a'))}},'include':[{'model':_0x4ad655('0x18'),'as':_0x4ad655('0x26')}],'order':[[_0x4ad655('0x8'),'DESC'],['scheduledat',_0x2f468d],['id','ASC']],'raw':!![],'limit':_0x33f3cf},'log':_0x4ad655('0x1f')});};},exports[_0x3ae08d('0x7')]=function(_0x5f2f05,_0x4f92c7){return function(){const _0x227511=a1103_0x559d;return _0x5f2f05[_0x227511('0xc')]=_0x5f2f05[_0x227511('0x11')],client[_0x227511('0xd')](_0x227511('0xa'),{'body':_0x5f2f05,'options':{'where':{'ContactId':_0x5f2f05[_0x227511('0xe')],'ListId':_0x5f2f05[_0x227511('0xb')],'VoiceQueueId':_0x5f2f05['VoiceQueueId'],'CampaignId':_0x5f2f05[_0x227511('0x5')],'active':_0x4f92c7?undefined:!![]}},'log':_0x227511('0xa')});};},exports['countReScheduled']=function(_0x48433b){return function(){const _0x431067=a1103_0x559d;return client[_0x431067('0xd')]('CountReScheduled',{'options':{'where':{'VoiceQueueId':_0x48433b['id']?_0x48433b['id']||null:null}},'log':_0x431067('0x27')});};},exports['getContactPreview']=function(_0xce317){return function(){const _0x5a87ec=a1103_0x559d;return client[_0x5a87ec('0xd')](_0x5a87ec('0x15'),{'options':{'where':{'id':_0xce317},'include':[{'model':_0x5a87ec('0x18'),'as':_0x5a87ec('0x26')},{'model':_0x5a87ec('0x28'),'as':_0x5a87ec('0x6'),'attributes':['id',_0x5a87ec('0x20')]},{'model':_0x5a87ec('0x12'),'as':_0x5a87ec('0x24'),'attributes':['id',_0x5a87ec('0x20')]}],'raw':!![]},'log':_0x5a87ec('0xf')});};},exports['unlockContact']=function(_0x44f292,_0x4e745f,_0x308b6a){return function(){const _0x31bec4=a1103_0x559d;return client[_0x31bec4('0xd')](_0x31bec4('0x2'),{'body':_0x44f292,'options':{'where':{'id':_0x4e745f},'limit':_0x308b6a},'log':'UpdateCmHopper'});};},exports['getContactRecallMe']=function(_0x134d92,_0x4942f3){return function(){const _0x2e2ab6=a1103_0x559d;return client[_0x2e2ab6('0xd')](_0x2e2ab6('0x22'),{'body':{'active':!![]},'options':{'where':{'VoiceQueueId':_0x134d92,'active':![],'recallme':!![],'scheduledat':{[Op[_0x2e2ab6('0x23')]]:moment()[_0x2e2ab6('0x13')](_0x2e2ab6('0x1a'))},'UserId':{[Op['in']]:_0x4942f3}},'order':[['priority',_0x2e2ab6('0x1e')],['scheduledat',_0x2e2ab6('0x1e')],['id',_0x2e2ab6('0x3')]],'include':[{'model':_0x2e2ab6('0x18'),'as':_0x2e2ab6('0x26')},{'model':_0x2e2ab6('0x28'),'as':_0x2e2ab6('0x6'),'attributes':['id',_0x2e2ab6('0x20'),_0x2e2ab6('0x10')]}],'group':_0x2e2ab6('0x0'),'raw':!![]},'log':_0x2e2ab6('0x21')});};};
\ No newline at end of file