X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fservices%2Fami%2Frpc%2Fintegrations%2Ffreshdesk.js;h=a1ebb4b202afc11b65be21f50ea8db40519af2f8;hb=ed368fdfe923471c0749d5720e7df57649e4ed09;hp=3468ff0b54efc97e29b4103fcaadb34f87a28082;hpb=91492537a7b94b14914d0db658458118de1ea819;p=motion2.git diff --git a/server/services/ami/rpc/integrations/freshdesk.js b/server/services/ami/rpc/integrations/freshdesk.js index 3468ff0..a1ebb4b 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 _0xc900=['type','content','variableName','Variable','FreshdeskField','Descriptions','key','keyType','Fields','idField','customField','Request','GetFreshdeskAccount','username','apiKey','serverUrl','FreshdeskConfiguration','Configurations','name','Tag','Subjects'];(function(_0x31e686,_0x49c383){var _0x47653e=function(_0x473ec5){while(--_0x473ec5){_0x31e686['push'](_0x31e686['shift']());}};_0x47653e(++_0x49c383);}(_0xc900,0xb3));var _0x0c90=function(_0x57f491,_0x14e764){_0x57f491=_0x57f491-0x0;var _0x1cdaa5=_0xc900[_0x57f491];return _0x1cdaa5;};'use strict';var client=require('../../client');exports['getFreshdeskAccounts']=function(){return function(_0x2f6905){return client[_0x0c90('0x0')](_0x0c90('0x1'),{'options':{'raw':![],'attributes':['id','name',_0x0c90('0x2'),_0x0c90('0x3'),'remoteUri',_0x0c90('0x4')],'include':[{'model':_0x0c90('0x5'),'as':_0x0c90('0x6'),'attributes':['id',_0x0c90('0x7')],'include':[{'model':_0x0c90('0x8'),'attributes':['id',_0x0c90('0x7')]},{'model':'FreshdeskField','as':_0x0c90('0x9'),'attributes':['id',_0x0c90('0xa'),_0x0c90('0xb'),_0x0c90('0xc')],'include':[{'model':_0x0c90('0xd'),'as':_0x0c90('0xd'),'attributes':['id',_0x0c90('0x7')]}]},{'model':_0x0c90('0xe'),'as':_0x0c90('0xf'),'attributes':['id',_0x0c90('0xa'),_0x0c90('0xb'),_0x0c90('0x10'),_0x0c90('0x11'),'keyContent',_0x0c90('0xc')],'include':[{'model':'Variable','as':_0x0c90('0xd'),'attributes':['id','name']}]},{'model':_0x0c90('0xe'),'as':_0x0c90('0x12'),'attributes':['id',_0x0c90('0xa'),_0x0c90('0xb'),_0x0c90('0x13'),'nameField',_0x0c90('0x14'),_0x0c90('0xc')],'include':[{'model':'Variable','as':_0x0c90('0xd'),'attributes':['id',_0x0c90('0x7')]}]}]}]},'log':_0x0c90('0x1')});};}; \ No newline at end of file +var _0x252f=['Variable','key','keyType','keyContent','variableName','Fields','nameField','customField','../../client','getFreshdeskAccounts','GetFreshdeskAccount','name','remoteUri','serverUrl','FreshdeskConfiguration','Configurations','FreshdeskField','Subjects','type','content'];(function(_0x8cc7ef,_0x37c9ae){var _0x4a45e9=function(_0x3840f5){while(--_0x3840f5){_0x8cc7ef['push'](_0x8cc7ef['shift']());}};_0x4a45e9(++_0x37c9ae);}(_0x252f,0xd0));var _0xf252=function(_0x1d128e,_0x2c87de){_0x1d128e=_0x1d128e-0x0;var _0x3d5236=_0x252f[_0x1d128e];return _0x3d5236;};'use strict';var client=require(_0xf252('0x0'));exports[_0xf252('0x1')]=function(){return function(_0x5d284d){return client['Request'](_0xf252('0x2'),{'options':{'raw':![],'attributes':['id',_0xf252('0x3'),'username','apiKey',_0xf252('0x4'),_0xf252('0x5')],'include':[{'model':_0xf252('0x6'),'as':_0xf252('0x7'),'attributes':['id',_0xf252('0x3')],'include':[{'model':'Tag','attributes':['id',_0xf252('0x3')]},{'model':_0xf252('0x8'),'as':_0xf252('0x9'),'attributes':['id',_0xf252('0xa'),_0xf252('0xb'),'variableName'],'include':[{'model':_0xf252('0xc'),'as':_0xf252('0xc'),'attributes':['id','name']}]},{'model':_0xf252('0x8'),'as':'Descriptions','attributes':['id',_0xf252('0xa'),'content',_0xf252('0xd'),_0xf252('0xe'),_0xf252('0xf'),_0xf252('0x10')],'include':[{'model':'Variable','as':_0xf252('0xc'),'attributes':['id',_0xf252('0x3')]}]},{'model':_0xf252('0x8'),'as':_0xf252('0x11'),'attributes':['id',_0xf252('0xa'),_0xf252('0xb'),'idField',_0xf252('0x12'),_0xf252('0x13'),_0xf252('0x10')],'include':[{'model':'Variable','as':_0xf252('0xc'),'attributes':['id',_0xf252('0x3')]}]}]}]},'log':_0xf252('0x2')});};}; \ No newline at end of file