de82ee4f12b55ee5e5cf636b5c3e997bb238d4ae
[motion2.git] / server / services / ami / rpc / integrations / zendesk.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x28f1=['Request','GetZendeskAccount','name','username','password','token','authType','serverUrl','type','Configurations','Tag','ZendeskField','content','variableName','Variable','key','keyType','keyContent','idField','nameField','customField','../../client','getZendeskAccounts'];(function(_0x3da647,_0xa1a501){var _0x2e91a2=function(_0x34a811){while(--_0x34a811){_0x3da647['push'](_0x3da647['shift']());}};_0x2e91a2(++_0xa1a501);}(_0x28f1,0x16e));var _0x128f=function(_0x38e4ca,_0x512597){_0x38e4ca=_0x38e4ca-0x0;var _0x4fbb1e=_0x28f1[_0x38e4ca];return _0x4fbb1e;};'use strict';var client=require(_0x128f('0x0'));exports[_0x128f('0x1')]=function(){return function(_0xa1c560){return client[_0x128f('0x2')](_0x128f('0x3'),{'options':{'raw':![],'attributes':['id',_0x128f('0x4'),_0x128f('0x5'),_0x128f('0x6'),_0x128f('0x7'),'remoteUri',_0x128f('0x8'),_0x128f('0x9'),_0x128f('0xa')],'include':[{'model':'ZendeskConfiguration','as':_0x128f('0xb'),'attributes':['id',_0x128f('0x4')],'include':[{'model':_0x128f('0xc'),'attributes':['id','name']},{'model':_0x128f('0xd'),'as':'Subjects','attributes':['id',_0x128f('0xa'),_0x128f('0xe'),_0x128f('0xf')],'include':[{'model':_0x128f('0x10'),'as':_0x128f('0x10'),'attributes':['id',_0x128f('0x4')]}]},{'model':'ZendeskField','as':'Descriptions','attributes':['id',_0x128f('0xa'),_0x128f('0xe'),_0x128f('0x11'),_0x128f('0x12'),_0x128f('0x13'),_0x128f('0xf')],'include':[{'model':_0x128f('0x10'),'as':_0x128f('0x10'),'attributes':['id',_0x128f('0x4')]}]},{'model':_0x128f('0xd'),'as':'Fields','attributes':['id',_0x128f('0xa'),_0x128f('0xe'),_0x128f('0x14'),_0x128f('0x15'),_0x128f('0x16'),_0x128f('0xf')],'include':[{'model':_0x128f('0x10'),'as':_0x128f('0x10'),'attributes':['id','name']}]}]}]},'log':_0x128f('0x3')});};};