X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fservices%2Fami%2Frpc%2Fintegrations%2Fzendesk.js;h=e5f4e5c0c594517c60d255e82837f0a9fa852d86;hb=ed368fdfe923471c0749d5720e7df57649e4ed09;hp=de46be9bd8bb19c27dfcecbc19312336ac36da4e;hpb=91492537a7b94b14914d0db658458118de1ea819;p=motion2.git diff --git a/server/services/ami/rpc/integrations/zendesk.js b/server/services/ami/rpc/integrations/zendesk.js index de46be9..e5f4e5c 100644 --- a/server/services/ami/rpc/integrations/zendesk.js +++ b/server/services/ami/rpc/integrations/zendesk.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -var _0xcd4d=['nameField','customField','getZendeskAccounts','GetZendeskAccount','name','username','password','token','remoteUri','authType','type','ZendeskConfiguration','Configurations','Tag','variableName','Variable','content','key','keyContent','ZendeskField','Fields'];(function(_0x4c7470,_0x560c80){var _0x4d7350=function(_0x3dfbb9){while(--_0x3dfbb9){_0x4c7470['push'](_0x4c7470['shift']());}};_0x4d7350(++_0x560c80);}(_0xcd4d,0x95));var _0xdcd4=function(_0x57ffc,_0x22938e){_0x57ffc=_0x57ffc-0x0;var _0x276cbb=_0xcd4d[_0x57ffc];return _0x276cbb;};'use strict';var client=require('../../client');exports[_0xdcd4('0x0')]=function(){return function(_0x54b044){return client['Request'](_0xdcd4('0x1'),{'options':{'raw':![],'attributes':['id',_0xdcd4('0x2'),_0xdcd4('0x3'),_0xdcd4('0x4'),_0xdcd4('0x5'),_0xdcd4('0x6'),_0xdcd4('0x7'),'serverUrl',_0xdcd4('0x8')],'include':[{'model':_0xdcd4('0x9'),'as':_0xdcd4('0xa'),'attributes':['id','name'],'include':[{'model':_0xdcd4('0xb'),'attributes':['id',_0xdcd4('0x2')]},{'model':'ZendeskField','as':'Subjects','attributes':['id',_0xdcd4('0x8'),'content',_0xdcd4('0xc')],'include':[{'model':_0xdcd4('0xd'),'as':_0xdcd4('0xd'),'attributes':['id','name']}]},{'model':'ZendeskField','as':'Descriptions','attributes':['id',_0xdcd4('0x8'),_0xdcd4('0xe'),_0xdcd4('0xf'),'keyType',_0xdcd4('0x10'),_0xdcd4('0xc')],'include':[{'model':'Variable','as':_0xdcd4('0xd'),'attributes':['id',_0xdcd4('0x2')]}]},{'model':_0xdcd4('0x11'),'as':_0xdcd4('0x12'),'attributes':['id','type',_0xdcd4('0xe'),'idField',_0xdcd4('0x13'),_0xdcd4('0x14'),_0xdcd4('0xc')],'include':[{'model':_0xdcd4('0xd'),'as':_0xdcd4('0xd'),'attributes':['id',_0xdcd4('0x2')]}]}]}]},'log':_0xdcd4('0x1')});};}; \ No newline at end of file +var _0x06c8=['type','content','variableName','Variable','keyType','keyContent','customField','Request','GetZendeskAccount','name','username','remoteUri','ZendeskConfiguration','ZendeskField'];(function(_0x4839eb,_0x40fb9c){var _0x2f5908=function(_0x486ec8){while(--_0x486ec8){_0x4839eb['push'](_0x4839eb['shift']());}};_0x2f5908(++_0x40fb9c);}(_0x06c8,0x1d5));var _0x806c=function(_0x5168b9,_0x306617){_0x5168b9=_0x5168b9-0x0;var _0x42873b=_0x06c8[_0x5168b9];return _0x42873b;};'use strict';var client=require('../../client');exports['getZendeskAccounts']=function(){return function(_0x43546c){return client[_0x806c('0x0')](_0x806c('0x1'),{'options':{'raw':![],'attributes':['id',_0x806c('0x2'),_0x806c('0x3'),'password','token',_0x806c('0x4'),'authType','serverUrl','type'],'include':[{'model':_0x806c('0x5'),'as':'Configurations','attributes':['id','name'],'include':[{'model':'Tag','attributes':['id',_0x806c('0x2')]},{'model':_0x806c('0x6'),'as':'Subjects','attributes':['id',_0x806c('0x7'),_0x806c('0x8'),_0x806c('0x9')],'include':[{'model':_0x806c('0xa'),'as':_0x806c('0xa'),'attributes':['id','name']}]},{'model':'ZendeskField','as':'Descriptions','attributes':['id',_0x806c('0x7'),_0x806c('0x8'),'key',_0x806c('0xb'),_0x806c('0xc'),_0x806c('0x9')],'include':[{'model':_0x806c('0xa'),'as':_0x806c('0xa'),'attributes':['id',_0x806c('0x2')]}]},{'model':_0x806c('0x6'),'as':'Fields','attributes':['id','type',_0x806c('0x8'),'idField','nameField',_0x806c('0xd'),_0x806c('0x9')],'include':[{'model':'Variable','as':_0x806c('0xa'),'attributes':['id',_0x806c('0x2')]}]}]}]},'log':_0x806c('0x1')});};}; \ No newline at end of file