cf69984460a00de100cf6b81ec0c988fb2900f0f
[motion2.git] / server / services / ami / rpc / integrations / freshdesk.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 _0x3360=['serverUrl','FreshdeskConfiguration','Configurations','FreshdeskField','Subjects','type','content','variableName','Variable','key','keyType','keyContent','Fields','nameField','customField','../../client','getFreshdeskAccounts','name','remoteUri'];(function(_0x5067db,_0xf8d2f2){var _0x2771e4=function(_0x3d5cb2){while(--_0x3d5cb2){_0x5067db['push'](_0x5067db['shift']());}};_0x2771e4(++_0xf8d2f2);}(_0x3360,0x1d7));var _0x0336=function(_0x544eff,_0xbf3571){_0x544eff=_0x544eff-0x0;var _0x185589=_0x3360[_0x544eff];return _0x185589;};'use strict';var client=require(_0x0336('0x0'));exports[_0x0336('0x1')]=function(){return function(_0x4f2539){return client['Request']('GetFreshdeskAccount',{'options':{'raw':![],'attributes':['id',_0x0336('0x2'),'username','apiKey',_0x0336('0x3'),_0x0336('0x4')],'include':[{'model':_0x0336('0x5'),'as':_0x0336('0x6'),'attributes':['id',_0x0336('0x2')],'include':[{'model':'Tag','attributes':['id','name']},{'model':_0x0336('0x7'),'as':_0x0336('0x8'),'attributes':['id',_0x0336('0x9'),_0x0336('0xa'),_0x0336('0xb')],'include':[{'model':'Variable','as':_0x0336('0xc'),'attributes':['id',_0x0336('0x2')]}]},{'model':_0x0336('0x7'),'as':'Descriptions','attributes':['id',_0x0336('0x9'),'content',_0x0336('0xd'),_0x0336('0xe'),_0x0336('0xf'),_0x0336('0xb')],'include':[{'model':_0x0336('0xc'),'as':'Variable','attributes':['id',_0x0336('0x2')]}]},{'model':_0x0336('0x7'),'as':_0x0336('0x10'),'attributes':['id',_0x0336('0x9'),_0x0336('0xa'),'idField',_0x0336('0x11'),_0x0336('0x12'),_0x0336('0xb')],'include':[{'model':_0x0336('0xc'),'as':'Variable','attributes':['id',_0x0336('0x2')]}]}]}]},'log':'GetFreshdeskAccount'});};};