293ae0ac69d595d23a800d9ae2defbcea86477be
[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 _0x043a=['ZendeskConfiguration','Tag','ZendeskField','Subjects','content','variableName','Descriptions','keyType','keyContent','Variable','Fields','idField','customField','../../client','getZendeskAccounts','Request','GetZendeskAccount','name','username','password','token','remoteUri','authType','serverUrl','type'];(function(_0x3947c9,_0x4d6c97){var _0x2e7871=function(_0x1236cc){while(--_0x1236cc){_0x3947c9['push'](_0x3947c9['shift']());}};_0x2e7871(++_0x4d6c97);}(_0x043a,0x16b));var _0xa043=function(_0x2b034d,_0xecfd15){_0x2b034d=_0x2b034d-0x0;var _0x2c281e=_0x043a[_0x2b034d];return _0x2c281e;};'use strict';var client=require(_0xa043('0x0'));exports[_0xa043('0x1')]=function(){return function(_0x3ad1dd){return client[_0xa043('0x2')](_0xa043('0x3'),{'options':{'raw':![],'attributes':['id',_0xa043('0x4'),_0xa043('0x5'),_0xa043('0x6'),_0xa043('0x7'),_0xa043('0x8'),_0xa043('0x9'),_0xa043('0xa'),_0xa043('0xb')],'include':[{'model':_0xa043('0xc'),'as':'Configurations','attributes':['id',_0xa043('0x4')],'include':[{'model':_0xa043('0xd'),'attributes':['id',_0xa043('0x4')]},{'model':_0xa043('0xe'),'as':_0xa043('0xf'),'attributes':['id',_0xa043('0xb'),_0xa043('0x10'),_0xa043('0x11')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xa043('0x4')]}]},{'model':_0xa043('0xe'),'as':_0xa043('0x12'),'attributes':['id','type',_0xa043('0x10'),'key',_0xa043('0x13'),_0xa043('0x14'),'variableName'],'include':[{'model':_0xa043('0x15'),'as':_0xa043('0x15'),'attributes':['id',_0xa043('0x4')]}]},{'model':_0xa043('0xe'),'as':_0xa043('0x16'),'attributes':['id',_0xa043('0xb'),_0xa043('0x10'),_0xa043('0x17'),'nameField',_0xa043('0x18'),'variableName'],'include':[{'model':_0xa043('0x15'),'as':'Variable','attributes':['id',_0xa043('0x4')]}]}]}]},'log':_0xa043('0x3')});};};