Built motion from commit e6806ed6.|2.6.0
[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 _0x2ddd=['name','username','password','token','type','ZendeskConfiguration','Configurations','Tag','content','variableName','Variable','Descriptions','key','keyContent','Fields','idField','nameField','GetZendeskAccount','getZendeskAccounts','Request'];(function(_0x1e4360,_0x930b9b){var _0x31e6b4=function(_0x49dd8e){while(--_0x49dd8e){_0x1e4360['push'](_0x1e4360['shift']());}};_0x31e6b4(++_0x930b9b);}(_0x2ddd,0x116));var _0xd2dd=function(_0x9c3c56,_0x169b56){_0x9c3c56=_0x9c3c56-0x0;var _0x2dd782=_0x2ddd[_0x9c3c56];return _0x2dd782;};'use strict';var client=require('../../client');exports[_0xd2dd('0x0')]=function(){return function(_0x6df6c7){return client[_0xd2dd('0x1')]('GetZendeskAccount',{'options':{'raw':![],'attributes':['id',_0xd2dd('0x2'),_0xd2dd('0x3'),_0xd2dd('0x4'),_0xd2dd('0x5'),'remoteUri','authType','serverUrl',_0xd2dd('0x6')],'include':[{'model':_0xd2dd('0x7'),'as':_0xd2dd('0x8'),'attributes':['id','name'],'include':[{'model':_0xd2dd('0x9'),'attributes':['id',_0xd2dd('0x2')]},{'model':'ZendeskField','as':'Subjects','attributes':['id',_0xd2dd('0x6'),_0xd2dd('0xa'),_0xd2dd('0xb')],'include':[{'model':_0xd2dd('0xc'),'as':_0xd2dd('0xc'),'attributes':['id',_0xd2dd('0x2')]}]},{'model':'ZendeskField','as':_0xd2dd('0xd'),'attributes':['id',_0xd2dd('0x6'),'content',_0xd2dd('0xe'),'keyType',_0xd2dd('0xf'),'variableName'],'include':[{'model':_0xd2dd('0xc'),'as':_0xd2dd('0xc'),'attributes':['id',_0xd2dd('0x2')]}]},{'model':'ZendeskField','as':_0xd2dd('0x10'),'attributes':['id',_0xd2dd('0x6'),_0xd2dd('0xa'),_0xd2dd('0x11'),_0xd2dd('0x12'),'customField','variableName'],'include':[{'model':'Variable','as':_0xd2dd('0xc'),'attributes':['id',_0xd2dd('0x2')]}]}]}]},'log':_0xd2dd('0x13')});};};