53fcd26631b3ef9f135bee188f4cca16da99dc4b
[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 _0xae8a=['Descriptions','key','keyType','Fields','nameField','customField','getZendeskAccounts','Request','GetZendeskAccount','username','password','token','remoteUri','serverUrl','type','Configurations','name','content','variableName','Variable','ZendeskField'];(function(_0x2044a3,_0x326c11){var _0x2f3e65=function(_0x291c59){while(--_0x291c59){_0x2044a3['push'](_0x2044a3['shift']());}};_0x2f3e65(++_0x326c11);}(_0xae8a,0xed));var _0xaae8=function(_0x28947d,_0x4cc9c6){_0x28947d=_0x28947d-0x0;var _0x12d2ee=_0xae8a[_0x28947d];return _0x12d2ee;};'use strict';var client=require('../../client');exports[_0xaae8('0x0')]=function(){return function(_0x427443){return client[_0xaae8('0x1')](_0xaae8('0x2'),{'options':{'raw':![],'attributes':['id','name',_0xaae8('0x3'),_0xaae8('0x4'),_0xaae8('0x5'),_0xaae8('0x6'),'authType',_0xaae8('0x7'),_0xaae8('0x8')],'include':[{'model':'ZendeskConfiguration','as':_0xaae8('0x9'),'attributes':['id',_0xaae8('0xa')],'include':[{'model':'Tag','attributes':['id','name']},{'model':'ZendeskField','as':'Subjects','attributes':['id',_0xaae8('0x8'),_0xaae8('0xb'),_0xaae8('0xc')],'include':[{'model':'Variable','as':_0xaae8('0xd'),'attributes':['id','name']}]},{'model':_0xaae8('0xe'),'as':_0xaae8('0xf'),'attributes':['id',_0xaae8('0x8'),_0xaae8('0xb'),_0xaae8('0x10'),_0xaae8('0x11'),'keyContent',_0xaae8('0xc')],'include':[{'model':_0xaae8('0xd'),'as':_0xaae8('0xd'),'attributes':['id','name']}]},{'model':_0xaae8('0xe'),'as':_0xaae8('0x12'),'attributes':['id',_0xaae8('0x8'),_0xaae8('0xb'),'idField',_0xaae8('0x13'),_0xaae8('0x14'),_0xaae8('0xc')],'include':[{'model':_0xaae8('0xd'),'as':'Variable','attributes':['id','name']}]}]}]},'log':_0xaae8('0x2')});};};