7daa479ea37c1926ef9872bb6b0704a4754d3399
[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 _0x915a=['Fields','idField','nameField','customField','../../client','getFreshdeskAccounts','Request','GetFreshdeskAccount','username','serverUrl','FreshdeskConfiguration','Configurations','name','Tag','type','content','variableName','Variable','FreshdeskField','key','keyType','keyContent'];(function(_0x5cfad6,_0x2b85bc){var _0x4fed38=function(_0x434502){while(--_0x434502){_0x5cfad6['push'](_0x5cfad6['shift']());}};_0x4fed38(++_0x2b85bc);}(_0x915a,0x1d2));var _0xa915=function(_0x2fa59f,_0x44a8af){_0x2fa59f=_0x2fa59f-0x0;var _0x1dd241=_0x915a[_0x2fa59f];return _0x1dd241;};'use strict';var client=require(_0xa915('0x0'));exports[_0xa915('0x1')]=function(){return function(_0xace4e4){return client[_0xa915('0x2')](_0xa915('0x3'),{'options':{'raw':![],'attributes':['id','name',_0xa915('0x4'),'apiKey','remoteUri',_0xa915('0x5')],'include':[{'model':_0xa915('0x6'),'as':_0xa915('0x7'),'attributes':['id',_0xa915('0x8')],'include':[{'model':_0xa915('0x9'),'attributes':['id',_0xa915('0x8')]},{'model':'FreshdeskField','as':'Subjects','attributes':['id',_0xa915('0xa'),_0xa915('0xb'),_0xa915('0xc')],'include':[{'model':_0xa915('0xd'),'as':'Variable','attributes':['id','name']}]},{'model':_0xa915('0xe'),'as':'Descriptions','attributes':['id',_0xa915('0xa'),'content',_0xa915('0xf'),_0xa915('0x10'),_0xa915('0x11'),_0xa915('0xc')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xa915('0x8')]}]},{'model':'FreshdeskField','as':_0xa915('0x12'),'attributes':['id','type',_0xa915('0xb'),_0xa915('0x13'),_0xa915('0x14'),_0xa915('0x15'),_0xa915('0xc')],'include':[{'model':_0xa915('0xd'),'as':'Variable','attributes':['id',_0xa915('0x8')]}]}]}]},'log':_0xa915('0x3')});};};