59594e22649612153b11eb75066d80453d5aa4e4
[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 _0x63a5=['GetFreshdeskAccount','username','apiKey','remoteUri','serverUrl','name','FreshdeskField','content','variableName','Variable','Descriptions','type','key','keyType','keyContent','Fields','idField','customField','../../client','getFreshdeskAccounts'];(function(_0x30f07a,_0x98341){var _0xb38461=function(_0x7b287a){while(--_0x7b287a){_0x30f07a['push'](_0x30f07a['shift']());}};_0xb38461(++_0x98341);}(_0x63a5,0x18e));var _0x563a=function(_0x1f36bb,_0x8af718){_0x1f36bb=_0x1f36bb-0x0;var _0xaf97fa=_0x63a5[_0x1f36bb];return _0xaf97fa;};'use strict';var client=require(_0x563a('0x0'));exports[_0x563a('0x1')]=function(){return function(_0x91178){return client['Request'](_0x563a('0x2'),{'options':{'raw':![],'attributes':['id','name',_0x563a('0x3'),_0x563a('0x4'),_0x563a('0x5'),_0x563a('0x6')],'include':[{'model':'FreshdeskConfiguration','as':'Configurations','attributes':['id',_0x563a('0x7')],'include':[{'model':'Tag','attributes':['id',_0x563a('0x7')]},{'model':_0x563a('0x8'),'as':'Subjects','attributes':['id','type',_0x563a('0x9'),_0x563a('0xa')],'include':[{'model':_0x563a('0xb'),'as':_0x563a('0xb'),'attributes':['id',_0x563a('0x7')]}]},{'model':_0x563a('0x8'),'as':_0x563a('0xc'),'attributes':['id',_0x563a('0xd'),_0x563a('0x9'),_0x563a('0xe'),_0x563a('0xf'),_0x563a('0x10'),_0x563a('0xa')],'include':[{'model':_0x563a('0xb'),'as':'Variable','attributes':['id',_0x563a('0x7')]}]},{'model':_0x563a('0x8'),'as':_0x563a('0x11'),'attributes':['id',_0x563a('0xd'),_0x563a('0x9'),_0x563a('0x12'),'nameField',_0x563a('0x13'),_0x563a('0xa')],'include':[{'model':_0x563a('0xb'),'as':_0x563a('0xb'),'attributes':['id','name']}]}]}]},'log':'GetFreshdeskAccount'});};};