Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / services / ami / rpc / cmHopper.js
index 0df1a24..3022b5b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xae83=['User','Agent','name','VoiceQueue','unlockContact','GetContactRecallMe','db.CmHopper.UserId','../client','moment','lodash','getContacts','Request','CmContact','Contact','getCmHopper','updateContacts','UpdateCmHopper','format','rescheduleContact','ContactId','ListId','VoiceQueueId','CampaignId','destroyContact','DestroyCmHopper','getContactDialer','GetContactDialer','YYYY-MM-DD\x20HH:mm:ss','scheduledat','ASC','priority','DESC','GetContactDialerIvr','campaign','queue','MoveContactManagedDialer','countReScheduled','getContactPreview','GetCmHopperPreview'];(function(_0x52475a,_0x1f27c8){var _0x3fb6fe=function(_0x5ae351){while(--_0x5ae351){_0x52475a['push'](_0x52475a['shift']());}};_0x3fb6fe(++_0x1f27c8);}(_0xae83,0xf1));var _0x3ae8=function(_0xfae23b,_0x2be4ba){_0xfae23b=_0xfae23b-0x0;var _0x200640=_0xae83[_0xfae23b];return _0x200640;};'use strict';var client=require(_0x3ae8('0x0'));var moment=require(_0x3ae8('0x1'));var _=require(_0x3ae8('0x2'));exports[_0x3ae8('0x3')]=function(_0x5ef9aa,_0x1ed898){return function(){return client[_0x3ae8('0x4')]('GetCmHopper',{'options':{'where':{'VoiceQueueId':_0x5ef9aa},'include':[{'model':_0x3ae8('0x5'),'as':_0x3ae8('0x6')}],'limit':_0x1ed898,'raw':![]},'log':_0x3ae8('0x7')});};};exports[_0x3ae8('0x8')]=function(_0x57277c,_0x4429ea,_0x550c00){return function(){return client[_0x3ae8('0x4')](_0x3ae8('0x9'),{'body':_0x57277c,'options':{'where':{'VoiceQueueId':_0x4429ea,'scheduledat':{'$lte':moment()[_0x3ae8('0xa')]('YYYY-MM-DD\x20HH:mm:ss')}},'limit':_0x550c00},'log':_0x3ae8('0x9')});};};exports[_0x3ae8('0xb')]=function(_0x2b3940){return function(){return client['Request'](_0x3ae8('0x9'),{'body':_0x2b3940,'options':{'where':{'ContactId':_0x2b3940[_0x3ae8('0xc')],'ListId':_0x2b3940[_0x3ae8('0xd')],'VoiceQueueId':_0x2b3940[_0x3ae8('0xe')],'CampaignId':_0x2b3940[_0x3ae8('0xf')]}},'log':_0x3ae8('0xb')});};};exports[_0x3ae8('0x10')]=function(_0x261552,_0x206e95,_0x25d2cf){return function(){return client[_0x3ae8('0x4')]('DestroyCmHopper',{'options':{'where':{'VoiceQueueId':_0x261552,'ListId':_0x206e95,'ContactId':_0x25d2cf}},'log':_0x3ae8('0x11')});};};exports[_0x3ae8('0x12')]=function(_0x1d0790,_0x37a2f0,_0x57499a,_0x28fd5d){return function(){return client['Request'](_0x3ae8('0x13'),{'body':{'active':!![]},'options':{'where':{'VoiceQueueId':_0x1d0790,'active':![],'scheduledat':{'$lte':moment()[_0x3ae8('0xa')](_0x3ae8('0x14'))},'$or':[{'UserId':null},{'UserId':{'$in':_0x37a2f0}}]},'order':[['priority','DESC'],[_0x3ae8('0x15'),_0x28fd5d],['id',_0x3ae8('0x16')]],'raw':!![],'limit':_0x57499a},'log':_0x3ae8('0x13')});};};exports['getContactDialerIvr']=function(_0x45221d,_0x5a78bc,_0x57ffee){return function(){return client[_0x3ae8('0x4')](_0x3ae8('0x13'),{'body':{'active':!![]},'options':{'where':{'CampaignId':_0x45221d,'active':![],'scheduledat':{'$lte':moment()[_0x3ae8('0xa')](_0x3ae8('0x14'))}},'include':[{'model':_0x3ae8('0x5'),'as':_0x3ae8('0x6')}],'order':[[_0x3ae8('0x17'),_0x3ae8('0x18')],[_0x3ae8('0x15'),_0x57ffee],['id',_0x3ae8('0x16')]],'raw':!![],'limit':_0x5a78bc},'log':_0x3ae8('0x19')});};};exports['moveContactManagedDialer']=function(_0x2cc77c,_0x36987e){return function(){_0x2cc77c[_0x3ae8('0x1a')]=_0x2cc77c[_0x3ae8('0x1b')];return client['Request'](_0x3ae8('0x1c'),{'body':_0x2cc77c,'options':{'where':{'ContactId':_0x2cc77c[_0x3ae8('0xc')],'ListId':_0x2cc77c[_0x3ae8('0xd')],'VoiceQueueId':_0x2cc77c[_0x3ae8('0xe')],'CampaignId':_0x2cc77c[_0x3ae8('0xf')],'active':_0x36987e?undefined:!![]}},'log':_0x3ae8('0x1c')});};};exports[_0x3ae8('0x1d')]=function(_0x17ae2d){return function(){return client['Request']('CountReScheduled',{'options':{'where':{'VoiceQueueId':_0x17ae2d['id']?_0x17ae2d['id']||null:null}},'log':_0x3ae8('0x1d')});};};exports[_0x3ae8('0x1e')]=function(_0x4ab719){return function(){return client[_0x3ae8('0x4')](_0x3ae8('0x1f'),{'options':{'where':{'id':_0x4ab719},'include':[{'model':_0x3ae8('0x5'),'as':_0x3ae8('0x6')},{'model':_0x3ae8('0x20'),'as':_0x3ae8('0x21'),'attributes':['id',_0x3ae8('0x22')]},{'model':_0x3ae8('0x23'),'as':'Queue','attributes':['id',_0x3ae8('0x22')]}],'raw':!![]},'log':_0x3ae8('0x7')});};};exports[_0x3ae8('0x24')]=function(_0x3e775b,_0x3753f0,_0x438e1d){return function(){return client[_0x3ae8('0x4')](_0x3ae8('0x9'),{'body':_0x3e775b,'options':{'where':{'id':_0x3753f0},'limit':_0x438e1d},'log':'UpdateCmHopper'});};};exports['getContactRecallMe']=function(_0x52a94f,_0x297a38){return function(){return client[_0x3ae8('0x4')](_0x3ae8('0x25'),{'body':{'active':!![]},'options':{'where':{'VoiceQueueId':_0x52a94f,'active':![],'recallme':!![],'scheduledat':{'$lte':moment()[_0x3ae8('0xa')](_0x3ae8('0x14'))},'UserId':{'$in':_0x297a38}},'order':[[_0x3ae8('0x17'),'DESC'],[_0x3ae8('0x15'),'DESC'],['id','ASC']],'include':[{'model':_0x3ae8('0x5'),'as':_0x3ae8('0x6')},{'model':_0x3ae8('0x20'),'as':'Agent','attributes':['id',_0x3ae8('0x22'),'voicePause']}],'group':_0x3ae8('0x26'),'raw':!![]},'log':_0x3ae8('0x13')});};};
\ No newline at end of file
+var _0xc2bf=['GetContactDialerIvr','queue','MoveContactManagedDialer','countReScheduled','CountReScheduled','getContactPreview','GetCmHopperPreview','User','Agent','name','VoiceQueue','Queue','unlockContact','getContactRecallMe','GetContactRecallMe','voicePause','db.CmHopper.UserId','moment','lodash','getContacts','Request','GetCmHopper','Contact','getCmHopper','updateContacts','UpdateCmHopper','format','YYYY-MM-DD\x20HH:mm:ss','rescheduleContact','ContactId','ListId','VoiceQueueId','CampaignId','destroyContact','DestroyCmHopper','getContactDialer','GetContactDialer','priority','DESC','scheduledat','ASC','getContactDialerIvr','CmContact'];(function(_0x2b4411,_0x2625ed){var _0x8e41ef=function(_0x2aa8c1){while(--_0x2aa8c1){_0x2b4411['push'](_0x2b4411['shift']());}};_0x8e41ef(++_0x2625ed);}(_0xc2bf,0x67));var _0xfc2b=function(_0xb80fe2,_0x2e4ab1){_0xb80fe2=_0xb80fe2-0x0;var _0x4acd2c=_0xc2bf[_0xb80fe2];return _0x4acd2c;};'use strict';var client=require('../client');var moment=require(_0xfc2b('0x0'));var _=require(_0xfc2b('0x1'));exports[_0xfc2b('0x2')]=function(_0x1a8cee,_0x99d92f){return function(){return client[_0xfc2b('0x3')](_0xfc2b('0x4'),{'options':{'where':{'VoiceQueueId':_0x1a8cee},'include':[{'model':'CmContact','as':_0xfc2b('0x5')}],'limit':_0x99d92f,'raw':![]},'log':_0xfc2b('0x6')});};};exports[_0xfc2b('0x7')]=function(_0x2a9b0a,_0x272b20,_0x577705){return function(){return client[_0xfc2b('0x3')](_0xfc2b('0x8'),{'body':_0x2a9b0a,'options':{'where':{'VoiceQueueId':_0x272b20,'scheduledat':{'$lte':moment()[_0xfc2b('0x9')](_0xfc2b('0xa'))}},'limit':_0x577705},'log':_0xfc2b('0x8')});};};exports[_0xfc2b('0xb')]=function(_0x240feb){return function(){return client[_0xfc2b('0x3')](_0xfc2b('0x8'),{'body':_0x240feb,'options':{'where':{'ContactId':_0x240feb[_0xfc2b('0xc')],'ListId':_0x240feb[_0xfc2b('0xd')],'VoiceQueueId':_0x240feb[_0xfc2b('0xe')],'CampaignId':_0x240feb[_0xfc2b('0xf')]}},'log':'rescheduleContact'});};};exports[_0xfc2b('0x10')]=function(_0xcfa416,_0x1be343,_0x1cd304){return function(){return client[_0xfc2b('0x3')](_0xfc2b('0x11'),{'options':{'where':{'VoiceQueueId':_0xcfa416,'ListId':_0x1be343,'ContactId':_0x1cd304}},'log':_0xfc2b('0x11')});};};exports[_0xfc2b('0x12')]=function(_0x3737c9,_0x30a049,_0x437fa2,_0x24cfd0){return function(){return client[_0xfc2b('0x3')](_0xfc2b('0x13'),{'body':{'active':!![]},'options':{'where':{'VoiceQueueId':_0x3737c9,'active':![],'scheduledat':{'$lte':moment()[_0xfc2b('0x9')]('YYYY-MM-DD\x20HH:mm:ss')},'$or':[{'UserId':null},{'UserId':{'$in':_0x30a049}}]},'order':[[_0xfc2b('0x14'),_0xfc2b('0x15')],[_0xfc2b('0x16'),_0x24cfd0],['id',_0xfc2b('0x17')]],'raw':!![],'limit':_0x437fa2},'log':_0xfc2b('0x13')});};};exports[_0xfc2b('0x18')]=function(_0x392748,_0x503c81,_0x37e05d){return function(){return client['Request']('GetContactDialer',{'body':{'active':!![]},'options':{'where':{'CampaignId':_0x392748,'active':![],'scheduledat':{'$lte':moment()[_0xfc2b('0x9')](_0xfc2b('0xa'))}},'include':[{'model':_0xfc2b('0x19'),'as':_0xfc2b('0x5')}],'order':[[_0xfc2b('0x14'),'DESC'],['scheduledat',_0x37e05d],['id',_0xfc2b('0x17')]],'raw':!![],'limit':_0x503c81},'log':_0xfc2b('0x1a')});};};exports['moveContactManagedDialer']=function(_0x9ce19d,_0x3653a2){return function(){_0x9ce19d['campaign']=_0x9ce19d[_0xfc2b('0x1b')];return client[_0xfc2b('0x3')]('MoveContactManagedDialer',{'body':_0x9ce19d,'options':{'where':{'ContactId':_0x9ce19d[_0xfc2b('0xc')],'ListId':_0x9ce19d[_0xfc2b('0xd')],'VoiceQueueId':_0x9ce19d[_0xfc2b('0xe')],'CampaignId':_0x9ce19d['CampaignId'],'active':_0x3653a2?undefined:!![]}},'log':_0xfc2b('0x1c')});};};exports[_0xfc2b('0x1d')]=function(_0xebbb8){return function(){return client['Request'](_0xfc2b('0x1e'),{'options':{'where':{'VoiceQueueId':_0xebbb8['id']?_0xebbb8['id']||null:null}},'log':_0xfc2b('0x1d')});};};exports[_0xfc2b('0x1f')]=function(_0x307957){return function(){return client[_0xfc2b('0x3')](_0xfc2b('0x20'),{'options':{'where':{'id':_0x307957},'include':[{'model':_0xfc2b('0x19'),'as':_0xfc2b('0x5')},{'model':_0xfc2b('0x21'),'as':_0xfc2b('0x22'),'attributes':['id',_0xfc2b('0x23')]},{'model':_0xfc2b('0x24'),'as':_0xfc2b('0x25'),'attributes':['id',_0xfc2b('0x23')]}],'raw':!![]},'log':'getCmHopper'});};};exports[_0xfc2b('0x26')]=function(_0x4d91ab,_0x40c2de,_0x2d6d26){return function(){return client[_0xfc2b('0x3')](_0xfc2b('0x8'),{'body':_0x4d91ab,'options':{'where':{'id':_0x40c2de},'limit':_0x2d6d26},'log':_0xfc2b('0x8')});};};exports[_0xfc2b('0x27')]=function(_0x49edde,_0x24cc9f){return function(){return client['Request'](_0xfc2b('0x28'),{'body':{'active':!![]},'options':{'where':{'VoiceQueueId':_0x49edde,'active':![],'recallme':!![],'scheduledat':{'$lte':moment()[_0xfc2b('0x9')](_0xfc2b('0xa'))},'UserId':{'$in':_0x24cc9f}},'order':[[_0xfc2b('0x14'),_0xfc2b('0x15')],[_0xfc2b('0x16'),_0xfc2b('0x15')],['id',_0xfc2b('0x17')]],'include':[{'model':'CmContact','as':'Contact'},{'model':'User','as':_0xfc2b('0x22'),'attributes':['id',_0xfc2b('0x23'),_0xfc2b('0x29')]}],'group':_0xfc2b('0x2a'),'raw':!![]},'log':'GetContactDialer'});};};
\ No newline at end of file