361b6f1c0bd7d12cb3bc9a3ebe70efcfd891768d
[motion-next.git] / server / services / ami / rpc / integrations / freshsales.js
1 const a1111_0x138f=['FreshsalesConfiguration','username','name','apiKey','../../client','Variable','keyType','Descriptions','remoteUri','GetFreshsalesccount','type','Configurations','Request','serverUrl','variableName','keyContent','FreshsalesField','content'];(function(_0x399589,_0x138f0d){const _0xd31ebe=function(_0x1024b9){while(--_0x1024b9){_0x399589['push'](_0x399589['shift']());}};_0xd31ebe(++_0x138f0d);}(a1111_0x138f,0x19a));const a1111_0xd31e=function(_0x399589,_0x138f0d){_0x399589=_0x399589-0x0;let _0xd31ebe=a1111_0x138f[_0x399589];return _0xd31ebe;};const _0x4a3e67=a1111_0xd31e;'use strict';const client=require(_0x4a3e67('0x8'));exports['getFreshsalesAccounts']=function(){return function(){const _0x54413a=a1111_0xd31e;return client[_0x54413a('0x10')]('GetFreshsalesAccount',{'options':{'raw':![],'attributes':['id','name',_0x54413a('0x5'),_0x54413a('0x7'),_0x54413a('0xc'),_0x54413a('0x11')],'include':[{'model':_0x54413a('0x4'),'as':_0x54413a('0xf'),'attributes':['id',_0x54413a('0x6')],'include':[{'model':'FreshsalesField','as':'Subjects','attributes':['id',_0x54413a('0xe'),'content','variableName'],'include':[{'model':_0x54413a('0x9'),'as':_0x54413a('0x9'),'attributes':['id',_0x54413a('0x6')]}]},{'model':_0x54413a('0x2'),'as':_0x54413a('0xb'),'attributes':['id',_0x54413a('0xe'),_0x54413a('0x3'),'key',_0x54413a('0xa'),_0x54413a('0x1'),_0x54413a('0x0')],'include':[{'model':_0x54413a('0x9'),'as':'Variable','attributes':['id','name']}]}]}]},'log':_0x54413a('0xd')});};};