Built motion from commit f7863d46.|2.5.41
[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 _0x86f5=['apiKey','remoteUri','Configurations','Tag','FreshdeskField','Subjects','type','Variable','Descriptions','content','keyType','variableName','idField','nameField','customField','../../client','Request','name','username'];(function(_0x3cd546,_0x4342f7){var _0x4630fa=function(_0x762b2c){while(--_0x762b2c){_0x3cd546['push'](_0x3cd546['shift']());}};_0x4630fa(++_0x4342f7);}(_0x86f5,0x178));var _0x586f=function(_0x3e85a4,_0x18c3a9){_0x3e85a4=_0x3e85a4-0x0;var _0x21e7d1=_0x86f5[_0x3e85a4];return _0x21e7d1;};'use strict';var client=require(_0x586f('0x0'));exports['getFreshdeskAccounts']=function(){return function(_0x28b3df){return client[_0x586f('0x1')]('GetFreshdeskAccount',{'options':{'raw':![],'attributes':['id',_0x586f('0x2'),_0x586f('0x3'),_0x586f('0x4'),_0x586f('0x5'),'serverUrl'],'include':[{'model':'FreshdeskConfiguration','as':_0x586f('0x6'),'attributes':['id',_0x586f('0x2')],'include':[{'model':_0x586f('0x7'),'attributes':['id','name']},{'model':_0x586f('0x8'),'as':_0x586f('0x9'),'attributes':['id',_0x586f('0xa'),'content','variableName'],'include':[{'model':_0x586f('0xb'),'as':_0x586f('0xb'),'attributes':['id',_0x586f('0x2')]}]},{'model':_0x586f('0x8'),'as':_0x586f('0xc'),'attributes':['id',_0x586f('0xa'),_0x586f('0xd'),'key',_0x586f('0xe'),'keyContent',_0x586f('0xf')],'include':[{'model':'Variable','as':_0x586f('0xb'),'attributes':['id','name']}]},{'model':_0x586f('0x8'),'as':'Fields','attributes':['id',_0x586f('0xa'),_0x586f('0xd'),_0x586f('0x10'),_0x586f('0x11'),_0x586f('0x12'),_0x586f('0xf')],'include':[{'model':'Variable','as':_0x586f('0xb'),'attributes':['id','name']}]}]}]},'log':'GetFreshdeskAccount'});};};