Built motion from commit 00bf23f6.|2.6.16
[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 _0xc4dd=['Configurations','FreshdeskField','type','content','variableName','Variable','keyType','Fields','idField','nameField','customField','../../client','getFreshdeskAccounts','GetFreshdeskAccount','name','username','apiKey','remoteUri'];(function(_0x1325ce,_0x3aae10){var _0x4f298b=function(_0x2c3f74){while(--_0x2c3f74){_0x1325ce['push'](_0x1325ce['shift']());}};_0x4f298b(++_0x3aae10);}(_0xc4dd,0xad));var _0xdc4d=function(_0xa5369,_0x293aa9){_0xa5369=_0xa5369-0x0;var _0x241127=_0xc4dd[_0xa5369];return _0x241127;};'use strict';var client=require(_0xdc4d('0x0'));exports[_0xdc4d('0x1')]=function(){return function(_0x43a3b4){return client['Request'](_0xdc4d('0x2'),{'options':{'raw':![],'attributes':['id',_0xdc4d('0x3'),_0xdc4d('0x4'),_0xdc4d('0x5'),_0xdc4d('0x6'),'serverUrl'],'include':[{'model':'FreshdeskConfiguration','as':_0xdc4d('0x7'),'attributes':['id',_0xdc4d('0x3')],'include':[{'model':'Tag','attributes':['id',_0xdc4d('0x3')]},{'model':_0xdc4d('0x8'),'as':'Subjects','attributes':['id',_0xdc4d('0x9'),_0xdc4d('0xa'),_0xdc4d('0xb')],'include':[{'model':_0xdc4d('0xc'),'as':_0xdc4d('0xc'),'attributes':['id',_0xdc4d('0x3')]}]},{'model':_0xdc4d('0x8'),'as':'Descriptions','attributes':['id',_0xdc4d('0x9'),_0xdc4d('0xa'),'key',_0xdc4d('0xd'),'keyContent',_0xdc4d('0xb')],'include':[{'model':'Variable','as':'Variable','attributes':['id','name']}]},{'model':_0xdc4d('0x8'),'as':_0xdc4d('0xe'),'attributes':['id',_0xdc4d('0x9'),'content',_0xdc4d('0xf'),_0xdc4d('0x10'),_0xdc4d('0x11'),'variableName'],'include':[{'model':_0xdc4d('0xc'),'as':'Variable','attributes':['id','name']}]}]}]},'log':_0xdc4d('0x2')});};};