c27f993480be447cd27e94cc73d55ac137b6d3c9
[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 _0x2a23=['FreshdeskConfiguration','name','Tag','FreshdeskField','Subjects','type','content','Variable','key','keyContent','variableName','Fields','idField','../../client','getFreshdeskAccounts','GetFreshdeskAccount','username','apiKey','remoteUri','serverUrl'];(function(_0x45ec36,_0x38ae23){var _0x578341=function(_0x43f15a){while(--_0x43f15a){_0x45ec36['push'](_0x45ec36['shift']());}};_0x578341(++_0x38ae23);}(_0x2a23,0xc1));var _0x32a2=function(_0x50a634,_0x581835){_0x50a634=_0x50a634-0x0;var _0x17e529=_0x2a23[_0x50a634];return _0x17e529;};'use strict';var client=require(_0x32a2('0x0'));exports[_0x32a2('0x1')]=function(){return function(_0x498c04){return client['Request'](_0x32a2('0x2'),{'options':{'raw':![],'attributes':['id','name',_0x32a2('0x3'),_0x32a2('0x4'),_0x32a2('0x5'),_0x32a2('0x6')],'include':[{'model':_0x32a2('0x7'),'as':'Configurations','attributes':['id',_0x32a2('0x8')],'include':[{'model':_0x32a2('0x9'),'attributes':['id',_0x32a2('0x8')]},{'model':_0x32a2('0xa'),'as':_0x32a2('0xb'),'attributes':['id',_0x32a2('0xc'),_0x32a2('0xd'),'variableName'],'include':[{'model':_0x32a2('0xe'),'as':_0x32a2('0xe'),'attributes':['id',_0x32a2('0x8')]}]},{'model':'FreshdeskField','as':'Descriptions','attributes':['id',_0x32a2('0xc'),_0x32a2('0xd'),_0x32a2('0xf'),'keyType',_0x32a2('0x10'),_0x32a2('0x11')],'include':[{'model':_0x32a2('0xe'),'as':_0x32a2('0xe'),'attributes':['id','name']}]},{'model':'FreshdeskField','as':_0x32a2('0x12'),'attributes':['id',_0x32a2('0xc'),'content',_0x32a2('0x13'),'nameField','customField',_0x32a2('0x11')],'include':[{'model':_0x32a2('0xe'),'as':'Variable','attributes':['id','name']}]}]}]},'log':_0x32a2('0x2')});};};