1e75e3be1c84deeed161c049cb69521003cc3242
[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 _0x9e25=['nameField','getZendeskAccounts','GetZendeskAccount','username','password','token','remoteUri','authType','serverUrl','type','ZendeskConfiguration','Tag','name','ZendeskField','Subjects','content','Variable','key','keyType','variableName','Fields','idField'];(function(_0x36d25e,_0x1a047d){var _0x4b95b8=function(_0x74da3){while(--_0x74da3){_0x36d25e['push'](_0x36d25e['shift']());}};_0x4b95b8(++_0x1a047d);}(_0x9e25,0xb1));var _0x59e2=function(_0x416b56,_0x3110b5){_0x416b56=_0x416b56-0x0;var _0x50a354=_0x9e25[_0x416b56];return _0x50a354;};'use strict';var client=require('../../client');exports[_0x59e2('0x0')]=function(){return function(_0x53f95b){return client['Request'](_0x59e2('0x1'),{'options':{'raw':![],'attributes':['id','name',_0x59e2('0x2'),_0x59e2('0x3'),_0x59e2('0x4'),_0x59e2('0x5'),_0x59e2('0x6'),_0x59e2('0x7'),_0x59e2('0x8')],'include':[{'model':_0x59e2('0x9'),'as':'Configurations','attributes':['id','name'],'include':[{'model':_0x59e2('0xa'),'attributes':['id',_0x59e2('0xb')]},{'model':_0x59e2('0xc'),'as':_0x59e2('0xd'),'attributes':['id',_0x59e2('0x8'),_0x59e2('0xe'),'variableName'],'include':[{'model':_0x59e2('0xf'),'as':_0x59e2('0xf'),'attributes':['id','name']}]},{'model':_0x59e2('0xc'),'as':'Descriptions','attributes':['id',_0x59e2('0x8'),_0x59e2('0xe'),_0x59e2('0x10'),_0x59e2('0x11'),'keyContent',_0x59e2('0x12')],'include':[{'model':'Variable','as':'Variable','attributes':['id','name']}]},{'model':_0x59e2('0xc'),'as':_0x59e2('0x13'),'attributes':['id','type',_0x59e2('0xe'),_0x59e2('0x14'),_0x59e2('0x15'),'customField',_0x59e2('0x12')],'include':[{'model':'Variable','as':_0x59e2('0xf'),'attributes':['id',_0x59e2('0xb')]}]}]}]},'log':_0x59e2('0x1')});};};