e2077f2340fc7d82d2742a603781ca8d9b20aa84
[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 _0xd40a=['content','Variable','Descriptions','key','variableName','Fields','idField','nameField','customField','../../client','GetZendeskAccount','name','username','password','token','authType','serverUrl','type','ZendeskConfiguration','Configurations','Tag','ZendeskField','Subjects'];(function(_0x288b21,_0x3be2bf){var _0x34108f=function(_0x38ba0e){while(--_0x38ba0e){_0x288b21['push'](_0x288b21['shift']());}};_0x34108f(++_0x3be2bf);}(_0xd40a,0x7c));var _0xad40=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0xd40a[_0x321bb2];return _0x9c12ed;};'use strict';var client=require(_0xad40('0x0'));exports['getZendeskAccounts']=function(){return function(_0xee4c2e){return client['Request'](_0xad40('0x1'),{'options':{'raw':![],'attributes':['id',_0xad40('0x2'),_0xad40('0x3'),_0xad40('0x4'),_0xad40('0x5'),'remoteUri',_0xad40('0x6'),_0xad40('0x7'),_0xad40('0x8')],'include':[{'model':_0xad40('0x9'),'as':_0xad40('0xa'),'attributes':['id','name'],'include':[{'model':_0xad40('0xb'),'attributes':['id',_0xad40('0x2')]},{'model':_0xad40('0xc'),'as':_0xad40('0xd'),'attributes':['id',_0xad40('0x8'),_0xad40('0xe'),'variableName'],'include':[{'model':_0xad40('0xf'),'as':_0xad40('0xf'),'attributes':['id',_0xad40('0x2')]}]},{'model':'ZendeskField','as':_0xad40('0x10'),'attributes':['id',_0xad40('0x8'),_0xad40('0xe'),_0xad40('0x11'),'keyType','keyContent',_0xad40('0x12')],'include':[{'model':_0xad40('0xf'),'as':_0xad40('0xf'),'attributes':['id',_0xad40('0x2')]}]},{'model':_0xad40('0xc'),'as':_0xad40('0x13'),'attributes':['id','type',_0xad40('0xe'),_0xad40('0x14'),_0xad40('0x15'),_0xad40('0x16'),_0xad40('0x12')],'include':[{'model':_0xad40('0xf'),'as':_0xad40('0xf'),'attributes':['id','name']}]}]}]},'log':_0xad40('0x1')});};};