Built motion from commit (unavailable).|2.5.22
[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 _0xeab3=['Descriptions','key','keyType','customField','../../client','getZendeskAccounts','Request','name','password','token','remoteUri','serverUrl','type','Configurations','ZendeskField','Subjects','content','variableName','Variable'];(function(_0x5bfa44,_0x76dacc){var _0x43815f=function(_0x307fca){while(--_0x307fca){_0x5bfa44['push'](_0x5bfa44['shift']());}};_0x43815f(++_0x76dacc);}(_0xeab3,0x10e));var _0x3eab=function(_0x18a1f6,_0x5356c4){_0x18a1f6=_0x18a1f6-0x0;var _0x493551=_0xeab3[_0x18a1f6];return _0x493551;};'use strict';var client=require(_0x3eab('0x0'));exports[_0x3eab('0x1')]=function(){return function(_0x2ef89f){return client[_0x3eab('0x2')]('GetZendeskAccount',{'options':{'raw':![],'attributes':['id',_0x3eab('0x3'),'username',_0x3eab('0x4'),_0x3eab('0x5'),_0x3eab('0x6'),'authType',_0x3eab('0x7'),_0x3eab('0x8')],'include':[{'model':'ZendeskConfiguration','as':_0x3eab('0x9'),'attributes':['id',_0x3eab('0x3')],'include':[{'model':'Tag','attributes':['id',_0x3eab('0x3')]},{'model':_0x3eab('0xa'),'as':_0x3eab('0xb'),'attributes':['id','type',_0x3eab('0xc'),_0x3eab('0xd')],'include':[{'model':_0x3eab('0xe'),'as':_0x3eab('0xe'),'attributes':['id',_0x3eab('0x3')]}]},{'model':_0x3eab('0xa'),'as':_0x3eab('0xf'),'attributes':['id',_0x3eab('0x8'),_0x3eab('0xc'),_0x3eab('0x10'),_0x3eab('0x11'),'keyContent',_0x3eab('0xd')],'include':[{'model':_0x3eab('0xe'),'as':_0x3eab('0xe'),'attributes':['id',_0x3eab('0x3')]}]},{'model':_0x3eab('0xa'),'as':'Fields','attributes':['id',_0x3eab('0x8'),_0x3eab('0xc'),'idField','nameField',_0x3eab('0x12'),_0x3eab('0xd')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x3eab('0x3')]}]}]}]},'log':'GetZendeskAccount'});};};