X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fservices%2Fami%2Frpc%2Fintegrations%2Ffreshdesk.js;h=61a9c7f5538581882925da1c8d4288c7e09ac2f2;hb=0fe7d63fdd24ac799f5260a5b10b06097955b09f;hp=f2b53573380e99b3251479371a758049d4ee19f4;hpb=4f69ebcfd3a87338adde0f617720ee400a063456;p=motion2.git diff --git a/server/services/ami/rpc/integrations/freshdesk.js b/server/services/ami/rpc/integrations/freshdesk.js index f2b5357..61a9c7f 100644 --- a/server/services/ami/rpc/integrations/freshdesk.js +++ b/server/services/ami/rpc/integrations/freshdesk.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -var _0x373d=['keyType','keyContent','variableName','Fields','idField','nameField','customField','../../client','Request','GetFreshdeskAccount','name','apiKey','remoteUri','serverUrl','Tag','FreshdeskField','type','Variable','Descriptions'];(function(_0x1545e8,_0x4e66f6){var _0x19f8ed=function(_0x43e1e9){while(--_0x43e1e9){_0x1545e8['push'](_0x1545e8['shift']());}};_0x19f8ed(++_0x4e66f6);}(_0x373d,0x1e2));var _0xd373=function(_0x88f8ca,_0x1e419a){_0x88f8ca=_0x88f8ca-0x0;var _0x46f4b1=_0x373d[_0x88f8ca];return _0x46f4b1;};'use strict';var client=require(_0xd373('0x0'));exports['getFreshdeskAccounts']=function(){return function(_0x3d3d31){return client[_0xd373('0x1')](_0xd373('0x2'),{'options':{'raw':![],'attributes':['id',_0xd373('0x3'),'username',_0xd373('0x4'),_0xd373('0x5'),_0xd373('0x6')],'include':[{'model':'FreshdeskConfiguration','as':'Configurations','attributes':['id',_0xd373('0x3')],'include':[{'model':_0xd373('0x7'),'attributes':['id',_0xd373('0x3')]},{'model':_0xd373('0x8'),'as':'Subjects','attributes':['id',_0xd373('0x9'),'content','variableName'],'include':[{'model':'Variable','as':_0xd373('0xa'),'attributes':['id',_0xd373('0x3')]}]},{'model':'FreshdeskField','as':_0xd373('0xb'),'attributes':['id',_0xd373('0x9'),'content','key',_0xd373('0xc'),_0xd373('0xd'),_0xd373('0xe')],'include':[{'model':_0xd373('0xa'),'as':'Variable','attributes':['id','name']}]},{'model':'FreshdeskField','as':_0xd373('0xf'),'attributes':['id',_0xd373('0x9'),'content',_0xd373('0x10'),_0xd373('0x11'),_0xd373('0x12'),_0xd373('0xe')],'include':[{'model':_0xd373('0xa'),'as':_0xd373('0xa'),'attributes':['id',_0xd373('0x3')]}]}]}]},'log':_0xd373('0x2')});};}; \ No newline at end of file +var _0x83e1=['name','remoteUri','serverUrl','Tag','FreshdeskField','type','content','variableName','Variable','key','keyType','keyContent','idField','nameField','GetFreshdeskAccount','../../client','getFreshdeskAccounts','Request'];(function(_0x30a5b6,_0x47bf65){var _0x516e4e=function(_0x348561){while(--_0x348561){_0x30a5b6['push'](_0x30a5b6['shift']());}};_0x516e4e(++_0x47bf65);}(_0x83e1,0x1ad));var _0x183e=function(_0x460290,_0x1f6fcb){_0x460290=_0x460290-0x0;var _0x431b71=_0x83e1[_0x460290];return _0x431b71;};'use strict';var client=require(_0x183e('0x0'));exports[_0x183e('0x1')]=function(){return function(_0x5f5222){return client[_0x183e('0x2')]('GetFreshdeskAccount',{'options':{'raw':![],'attributes':['id',_0x183e('0x3'),'username','apiKey',_0x183e('0x4'),_0x183e('0x5')],'include':[{'model':'FreshdeskConfiguration','as':'Configurations','attributes':['id','name'],'include':[{'model':_0x183e('0x6'),'attributes':['id',_0x183e('0x3')]},{'model':_0x183e('0x7'),'as':'Subjects','attributes':['id',_0x183e('0x8'),_0x183e('0x9'),_0x183e('0xa')],'include':[{'model':'Variable','as':_0x183e('0xb'),'attributes':['id',_0x183e('0x3')]}]},{'model':_0x183e('0x7'),'as':'Descriptions','attributes':['id',_0x183e('0x8'),'content',_0x183e('0xc'),_0x183e('0xd'),_0x183e('0xe'),_0x183e('0xa')],'include':[{'model':_0x183e('0xb'),'as':_0x183e('0xb'),'attributes':['id',_0x183e('0x3')]}]},{'model':'FreshdeskField','as':'Fields','attributes':['id','type',_0x183e('0x9'),_0x183e('0xf'),_0x183e('0x10'),'customField',_0x183e('0xa')],'include':[{'model':_0x183e('0xb'),'as':_0x183e('0xb'),'attributes':['id','name']}]}]}]},'log':_0x183e('0x11')});};}; \ No newline at end of file