b6d781c131f4519ea3f0613432be9378fc511014
[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 _0x19cb=['Fields','nameField','customField','getFreshdeskAccounts','GetFreshdeskAccount','username','FreshdeskConfiguration','Configurations','name','FreshdeskField','Subjects','type','Variable','Descriptions','content','key','keyType','keyContent','variableName'];(function(_0x114009,_0x5ebe81){var _0x55ea06=function(_0x34b40e){while(--_0x34b40e){_0x114009['push'](_0x114009['shift']());}};_0x55ea06(++_0x5ebe81);}(_0x19cb,0x146));var _0xb19c=function(_0x4cd865,_0x1f4a50){_0x4cd865=_0x4cd865-0x0;var _0x2788b3=_0x19cb[_0x4cd865];return _0x2788b3;};'use strict';var client=require('../../client');exports[_0xb19c('0x0')]=function(){return function(_0x1d15d0){return client['Request'](_0xb19c('0x1'),{'options':{'raw':![],'attributes':['id','name',_0xb19c('0x2'),'apiKey','remoteUri','serverUrl'],'include':[{'model':_0xb19c('0x3'),'as':_0xb19c('0x4'),'attributes':['id','name'],'include':[{'model':'Tag','attributes':['id',_0xb19c('0x5')]},{'model':_0xb19c('0x6'),'as':_0xb19c('0x7'),'attributes':['id',_0xb19c('0x8'),'content','variableName'],'include':[{'model':_0xb19c('0x9'),'as':_0xb19c('0x9'),'attributes':['id',_0xb19c('0x5')]}]},{'model':_0xb19c('0x6'),'as':_0xb19c('0xa'),'attributes':['id','type',_0xb19c('0xb'),_0xb19c('0xc'),_0xb19c('0xd'),_0xb19c('0xe'),_0xb19c('0xf')],'include':[{'model':_0xb19c('0x9'),'as':'Variable','attributes':['id','name']}]},{'model':'FreshdeskField','as':_0xb19c('0x10'),'attributes':['id',_0xb19c('0x8'),_0xb19c('0xb'),'idField',_0xb19c('0x11'),_0xb19c('0x12'),_0xb19c('0xf')],'include':[{'model':'Variable','as':_0xb19c('0x9'),'attributes':['id','name']}]}]}]},'log':_0xb19c('0x1')});};};