cc2f06e45590dadd411b476faa878099b13ab111
[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 _0x5a55=['apiKey','serverUrl','Configurations','name','Tag','FreshdeskField','Subjects','content','variableName','Variable','type','keyType','customField','GetFreshdeskAccount','../../client','getFreshdeskAccounts','Request','username'];(function(_0x4031c2,_0x48b4d7){var _0x54e07e=function(_0x404369){while(--_0x404369){_0x4031c2['push'](_0x4031c2['shift']());}};_0x54e07e(++_0x48b4d7);}(_0x5a55,0x1e2));var _0x55a5=function(_0x5cb97e,_0x132a39){_0x5cb97e=_0x5cb97e-0x0;var _0x1714b4=_0x5a55[_0x5cb97e];return _0x1714b4;};'use strict';var client=require(_0x55a5('0x0'));exports[_0x55a5('0x1')]=function(){return function(_0xb8713d){return client[_0x55a5('0x2')]('GetFreshdeskAccount',{'options':{'raw':![],'attributes':['id','name',_0x55a5('0x3'),_0x55a5('0x4'),'remoteUri',_0x55a5('0x5')],'include':[{'model':'FreshdeskConfiguration','as':_0x55a5('0x6'),'attributes':['id',_0x55a5('0x7')],'include':[{'model':_0x55a5('0x8'),'attributes':['id','name']},{'model':_0x55a5('0x9'),'as':_0x55a5('0xa'),'attributes':['id','type',_0x55a5('0xb'),_0x55a5('0xc')],'include':[{'model':_0x55a5('0xd'),'as':_0x55a5('0xd'),'attributes':['id','name']}]},{'model':_0x55a5('0x9'),'as':'Descriptions','attributes':['id',_0x55a5('0xe'),_0x55a5('0xb'),'key',_0x55a5('0xf'),'keyContent',_0x55a5('0xc')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x55a5('0x7')]}]},{'model':_0x55a5('0x9'),'as':'Fields','attributes':['id',_0x55a5('0xe'),_0x55a5('0xb'),'idField','nameField',_0x55a5('0x10'),_0x55a5('0xc')],'include':[{'model':_0x55a5('0xd'),'as':_0x55a5('0xd'),'attributes':['id',_0x55a5('0x7')]}]}]}]},'log':_0x55a5('0x11')});};};