Built motion from commit (unavailable).|2.5.10
[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 _0x5cc8=['content','variableName','Variable','ZendeskField','Fields','idField','nameField','customField','../../client','getZendeskAccounts','Request','GetZendeskAccount','name','username','token','authType','type','ZendeskConfiguration','Configurations','Tag','Subjects'];(function(_0x56482c,_0x16118d){var _0x5aae7a=function(_0x52512f){while(--_0x52512f){_0x56482c['push'](_0x56482c['shift']());}};_0x5aae7a(++_0x16118d);}(_0x5cc8,0xb0));var _0x85cc=function(_0x34619f,_0x3ca1ba){_0x34619f=_0x34619f-0x0;var _0x352744=_0x5cc8[_0x34619f];return _0x352744;};'use strict';var client=require(_0x85cc('0x0'));exports[_0x85cc('0x1')]=function(){return function(_0x4cb111){return client[_0x85cc('0x2')](_0x85cc('0x3'),{'options':{'raw':![],'attributes':['id',_0x85cc('0x4'),_0x85cc('0x5'),'password',_0x85cc('0x6'),'remoteUri',_0x85cc('0x7'),'serverUrl',_0x85cc('0x8')],'include':[{'model':_0x85cc('0x9'),'as':_0x85cc('0xa'),'attributes':['id',_0x85cc('0x4')],'include':[{'model':_0x85cc('0xb'),'attributes':['id',_0x85cc('0x4')]},{'model':'ZendeskField','as':_0x85cc('0xc'),'attributes':['id',_0x85cc('0x8'),_0x85cc('0xd'),_0x85cc('0xe')],'include':[{'model':'Variable','as':_0x85cc('0xf'),'attributes':['id',_0x85cc('0x4')]}]},{'model':_0x85cc('0x10'),'as':'Descriptions','attributes':['id',_0x85cc('0x8'),_0x85cc('0xd'),'key','keyType','keyContent',_0x85cc('0xe')],'include':[{'model':'Variable','as':_0x85cc('0xf'),'attributes':['id','name']}]},{'model':_0x85cc('0x10'),'as':_0x85cc('0x11'),'attributes':['id',_0x85cc('0x8'),_0x85cc('0xd'),_0x85cc('0x12'),_0x85cc('0x13'),_0x85cc('0x14'),_0x85cc('0xe')],'include':[{'model':_0x85cc('0xf'),'as':_0x85cc('0xf'),'attributes':['id','name']}]}]}]},'log':_0x85cc('0x3')});};};