Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / services / ami / rpc / cmHopper.js
index 935de2f..b1f5796 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x81da=['GetContactDialerIvr','moveContactManagedDialer','campaign','queue','MoveContactManagedDialer','countReScheduled','getContactPreview','GetCmHopperPreview','VoiceQueue','Queue','name','unlockContact','GetContactRecallMe','DESC','Contact','User','voicePause','db.CmHopper.UserId','moment','lodash','getContacts','GetCmHopper','updateContacts','Request','UpdateCmHopper','format','YYYY-MM-DD\x20HH:mm:ss','rescheduleContact','ListId','CampaignId','destroyContact','getContactDialer','GetContactDialer','scheduledat','getContactDialerIvr','CmContact','priority','ASC'];(function(_0xf8886b,_0x504891){var _0x321bd5=function(_0x3c116b){while(--_0x3c116b){_0xf8886b['push'](_0xf8886b['shift']());}};_0x321bd5(++_0x504891);}(_0x81da,0xf6));var _0xa81d=function(_0xc381e1,_0xba4cba){_0xc381e1=_0xc381e1-0x0;var _0x5a25a4=_0x81da[_0xc381e1];return _0x5a25a4;};'use strict';var client=require('../client');var moment=require(_0xa81d('0x0'));var _=require(_0xa81d('0x1'));exports[_0xa81d('0x2')]=function(_0x18ca68,_0x1bc56a){return function(){return client['Request'](_0xa81d('0x3'),{'options':{'where':{'VoiceQueueId':_0x18ca68},'include':[{'model':'CmContact','as':'Contact'}],'limit':_0x1bc56a,'raw':![]},'log':'getCmHopper'});};};exports[_0xa81d('0x4')]=function(_0x118536,_0x3d3fb3,_0x300cd9){return function(){return client[_0xa81d('0x5')](_0xa81d('0x6'),{'body':_0x118536,'options':{'where':{'VoiceQueueId':_0x3d3fb3,'scheduledat':{'$lte':moment()[_0xa81d('0x7')](_0xa81d('0x8'))}},'limit':_0x300cd9},'log':_0xa81d('0x6')});};};exports[_0xa81d('0x9')]=function(_0x242da3){return function(){return client[_0xa81d('0x5')](_0xa81d('0x6'),{'body':_0x242da3,'options':{'where':{'ContactId':_0x242da3['ContactId'],'ListId':_0x242da3[_0xa81d('0xa')],'VoiceQueueId':_0x242da3['VoiceQueueId'],'CampaignId':_0x242da3[_0xa81d('0xb')]}},'log':_0xa81d('0x9')});};};exports[_0xa81d('0xc')]=function(_0x329fe4,_0x3dde82,_0x5665a2){return function(){return client[_0xa81d('0x5')]('DestroyCmHopper',{'options':{'where':{'VoiceQueueId':_0x329fe4,'ListId':_0x3dde82,'ContactId':_0x5665a2}},'log':'DestroyCmHopper'});};};exports[_0xa81d('0xd')]=function(_0xe91f22,_0x1d93b0,_0x2cd0e4,_0x17fb4a){return function(){return client[_0xa81d('0x5')](_0xa81d('0xe'),{'body':{'active':!![]},'options':{'where':{'VoiceQueueId':_0xe91f22,'active':![],'scheduledat':{'$lte':moment()['format'](_0xa81d('0x8'))},'$or':[{'UserId':null},{'UserId':{'$in':_0x1d93b0}}]},'order':[['priority','DESC'],[_0xa81d('0xf'),_0x17fb4a],['id','ASC']],'raw':!![],'limit':_0x2cd0e4},'log':_0xa81d('0xe')});};};exports[_0xa81d('0x10')]=function(_0x5d9894,_0x56dd24,_0x1e50e1){return function(){return client[_0xa81d('0x5')](_0xa81d('0xe'),{'body':{'active':!![]},'options':{'where':{'CampaignId':_0x5d9894,'active':![],'scheduledat':{'$lte':moment()['format'](_0xa81d('0x8'))}},'include':[{'model':_0xa81d('0x11'),'as':'Contact'}],'order':[[_0xa81d('0x12'),'DESC'],[_0xa81d('0xf'),_0x1e50e1],['id',_0xa81d('0x13')]],'raw':!![],'limit':_0x56dd24},'log':_0xa81d('0x14')});};};exports[_0xa81d('0x15')]=function(_0x3bf657,_0x75ed96){return function(){_0x3bf657[_0xa81d('0x16')]=_0x3bf657[_0xa81d('0x17')];return client['Request'](_0xa81d('0x18'),{'body':_0x3bf657,'options':{'where':{'ContactId':_0x3bf657['ContactId'],'ListId':_0x3bf657[_0xa81d('0xa')],'VoiceQueueId':_0x3bf657['VoiceQueueId'],'CampaignId':_0x3bf657[_0xa81d('0xb')],'active':_0x75ed96?undefined:!![]}},'log':_0xa81d('0x18')});};};exports[_0xa81d('0x19')]=function(_0x21b362){return function(){return client['Request']('CountReScheduled',{'options':{'where':{'VoiceQueueId':_0x21b362['id']?_0x21b362['id']||null:null}},'log':'countReScheduled'});};};exports[_0xa81d('0x1a')]=function(_0x3e6364){return function(){return client[_0xa81d('0x5')](_0xa81d('0x1b'),{'options':{'where':{'id':_0x3e6364},'include':[{'model':_0xa81d('0x11'),'as':'Contact'},{'model':'User','as':'Agent','attributes':['id','name']},{'model':_0xa81d('0x1c'),'as':_0xa81d('0x1d'),'attributes':['id',_0xa81d('0x1e')]}],'raw':!![]},'log':'getCmHopper'});};};exports[_0xa81d('0x1f')]=function(_0x59e88f,_0x20fe3d,_0x218f01){return function(){return client['Request'](_0xa81d('0x6'),{'body':_0x59e88f,'options':{'where':{'id':_0x20fe3d},'limit':_0x218f01},'log':_0xa81d('0x6')});};};exports['getContactRecallMe']=function(_0x1a3dbb,_0x41e028){return function(){return client[_0xa81d('0x5')](_0xa81d('0x20'),{'body':{'active':!![]},'options':{'where':{'VoiceQueueId':_0x1a3dbb,'active':![],'recallme':!![],'scheduledat':{'$lte':moment()[_0xa81d('0x7')]('YYYY-MM-DD\x20HH:mm:ss')},'UserId':{'$in':_0x41e028}},'order':[[_0xa81d('0x12'),'DESC'],[_0xa81d('0xf'),_0xa81d('0x21')],['id','ASC']],'include':[{'model':_0xa81d('0x11'),'as':_0xa81d('0x22')},{'model':_0xa81d('0x23'),'as':'Agent','attributes':['id',_0xa81d('0x1e'),_0xa81d('0x24')]}],'group':_0xa81d('0x25'),'raw':!![]},'log':_0xa81d('0xe')});};};
\ No newline at end of file
+var _0xc0b5=['name','unlockContact','getContactRecallMe','GetContactRecallMe','../client','lodash','getContacts','Request','GetCmHopper','CmContact','Contact','getCmHopper','UpdateCmHopper','format','YYYY-MM-DD\x20HH:mm:ss','ContactId','ListId','VoiceQueueId','rescheduleContact','destroyContact','DestroyCmHopper','getContactDialer','GetContactDialer','priority','DESC','scheduledat','getContactDialerIvr','ASC','GetContactDialerIvr','moveContactManagedDialer','MoveContactManagedDialer','CampaignId','countReScheduled','CountReScheduled','getContactPreview','GetCmHopperPreview','User','Agent','Queue'];(function(_0x3ffa95,_0x326da4){var _0xbd03ff=function(_0x1138eb){while(--_0x1138eb){_0x3ffa95['push'](_0x3ffa95['shift']());}};_0xbd03ff(++_0x326da4);}(_0xc0b5,0x1b1));var _0x5c0b=function(_0x25cea2,_0x4c7006){_0x25cea2=_0x25cea2-0x0;var _0x1c9805=_0xc0b5[_0x25cea2];return _0x1c9805;};'use strict';var client=require(_0x5c0b('0x0'));var moment=require('moment');var _=require(_0x5c0b('0x1'));exports[_0x5c0b('0x2')]=function(_0x398825,_0x187b14){return function(){return client[_0x5c0b('0x3')](_0x5c0b('0x4'),{'options':{'where':{'VoiceQueueId':_0x398825},'include':[{'model':_0x5c0b('0x5'),'as':_0x5c0b('0x6')}],'limit':_0x187b14,'raw':![]},'log':_0x5c0b('0x7')});};};exports['updateContacts']=function(_0x1e73d9,_0x2fdc32,_0x3566fd){return function(){return client[_0x5c0b('0x3')](_0x5c0b('0x8'),{'body':_0x1e73d9,'options':{'where':{'VoiceQueueId':_0x2fdc32,'scheduledat':{'$lte':moment()[_0x5c0b('0x9')](_0x5c0b('0xa'))}},'limit':_0x3566fd},'log':'UpdateCmHopper'});};};exports['rescheduleContact']=function(_0x352c15){return function(){return client['Request'](_0x5c0b('0x8'),{'body':_0x352c15,'options':{'where':{'ContactId':_0x352c15[_0x5c0b('0xb')],'ListId':_0x352c15[_0x5c0b('0xc')],'VoiceQueueId':_0x352c15[_0x5c0b('0xd')],'CampaignId':_0x352c15['CampaignId']}},'log':_0x5c0b('0xe')});};};exports[_0x5c0b('0xf')]=function(_0x586eda,_0x5297ad,_0x1a6b92){return function(){return client[_0x5c0b('0x3')](_0x5c0b('0x10'),{'options':{'where':{'VoiceQueueId':_0x586eda,'ListId':_0x5297ad,'ContactId':_0x1a6b92}},'log':_0x5c0b('0x10')});};};exports[_0x5c0b('0x11')]=function(_0x123988,_0x477434,_0x402cd3,_0x234930){return function(){return client['Request'](_0x5c0b('0x12'),{'body':{'active':!![]},'options':{'where':{'VoiceQueueId':_0x123988,'active':![],'scheduledat':{'$lte':moment()[_0x5c0b('0x9')](_0x5c0b('0xa'))},'$or':[{'UserId':null},{'UserId':{'$in':_0x477434}}]},'order':[[_0x5c0b('0x13'),_0x5c0b('0x14')],[_0x5c0b('0x15'),_0x234930],['id','ASC']],'raw':!![],'limit':_0x402cd3},'log':_0x5c0b('0x12')});};};exports[_0x5c0b('0x16')]=function(_0x598089,_0x4d93e6,_0x14d840){return function(){return client[_0x5c0b('0x3')](_0x5c0b('0x12'),{'body':{'active':!![]},'options':{'where':{'CampaignId':_0x598089,'active':![],'scheduledat':{'$lte':moment()[_0x5c0b('0x9')](_0x5c0b('0xa'))}},'include':[{'model':'CmContact','as':_0x5c0b('0x6')}],'order':[[_0x5c0b('0x13'),_0x5c0b('0x14')],[_0x5c0b('0x15'),_0x14d840],['id',_0x5c0b('0x17')]],'raw':!![],'limit':_0x4d93e6},'log':_0x5c0b('0x18')});};};exports[_0x5c0b('0x19')]=function(_0x11cde4,_0x4146ab){return function(){_0x11cde4['campaign']=_0x11cde4['queue'];return client[_0x5c0b('0x3')](_0x5c0b('0x1a'),{'body':_0x11cde4,'options':{'where':{'ContactId':_0x11cde4[_0x5c0b('0xb')],'ListId':_0x11cde4['ListId'],'VoiceQueueId':_0x11cde4[_0x5c0b('0xd')],'CampaignId':_0x11cde4[_0x5c0b('0x1b')],'active':_0x4146ab?undefined:!![]}},'log':'MoveContactManagedDialer'});};};exports[_0x5c0b('0x1c')]=function(_0x3bdb6a){return function(){return client[_0x5c0b('0x3')](_0x5c0b('0x1d'),{'options':{'where':{'VoiceQueueId':_0x3bdb6a['id']?_0x3bdb6a['id']||null:null}},'log':_0x5c0b('0x1c')});};};exports[_0x5c0b('0x1e')]=function(_0x5b8031){return function(){return client[_0x5c0b('0x3')](_0x5c0b('0x1f'),{'options':{'where':{'id':_0x5b8031},'include':[{'model':_0x5c0b('0x5'),'as':_0x5c0b('0x6')},{'model':_0x5c0b('0x20'),'as':_0x5c0b('0x21'),'attributes':['id','name']},{'model':'VoiceQueue','as':_0x5c0b('0x22'),'attributes':['id',_0x5c0b('0x23')]}],'raw':!![]},'log':_0x5c0b('0x7')});};};exports[_0x5c0b('0x24')]=function(_0x175d24,_0x4b6b8e,_0x324749){return function(){return client[_0x5c0b('0x3')](_0x5c0b('0x8'),{'body':_0x175d24,'options':{'where':{'id':_0x4b6b8e},'limit':_0x324749},'log':_0x5c0b('0x8')});};};exports[_0x5c0b('0x25')]=function(_0x4e0ef0,_0x1ec0d7){return function(){return client[_0x5c0b('0x3')](_0x5c0b('0x26'),{'body':{'active':!![]},'options':{'where':{'VoiceQueueId':_0x4e0ef0,'active':![],'recallme':!![],'scheduledat':{'$lte':moment()[_0x5c0b('0x9')]('YYYY-MM-DD\x20HH:mm:ss')},'UserId':{'$in':_0x1ec0d7}},'order':[[_0x5c0b('0x13'),_0x5c0b('0x14')],['scheduledat',_0x5c0b('0x14')],['id',_0x5c0b('0x17')]],'include':[{'model':'CmContact','as':_0x5c0b('0x6')},{'model':'User','as':_0x5c0b('0x21'),'attributes':['id',_0x5c0b('0x23'),'voicePause']}],'group':'db.CmHopper.UserId','raw':!![]},'log':_0x5c0b('0x12')});};};
\ No newline at end of file