f1645f872796b25ddee9ee14a9c33fb4981cbc1b
[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 _0xdfe9=['apiKey','remoteUri','serverUrl','FreshdeskConfiguration','Configurations','Tag','FreshdeskField','type','content','variableName','Variable','Descriptions','key','keyType','keyContent','idField','nameField','customField','GetFreshdeskAccount','../../client','name','username'];(function(_0x1ee62e,_0x159bb2){var _0x27c6c8=function(_0x31a5d4){while(--_0x31a5d4){_0x1ee62e['push'](_0x1ee62e['shift']());}};_0x27c6c8(++_0x159bb2);}(_0xdfe9,0xc3));var _0x9dfe=function(_0x27f478,_0x32ed10){_0x27f478=_0x27f478-0x0;var _0x34d92b=_0xdfe9[_0x27f478];return _0x34d92b;};'use strict';var client=require(_0x9dfe('0x0'));exports['getFreshdeskAccounts']=function(){return function(_0x33216d){return client['Request']('GetFreshdeskAccount',{'options':{'raw':![],'attributes':['id',_0x9dfe('0x1'),_0x9dfe('0x2'),_0x9dfe('0x3'),_0x9dfe('0x4'),_0x9dfe('0x5')],'include':[{'model':_0x9dfe('0x6'),'as':_0x9dfe('0x7'),'attributes':['id',_0x9dfe('0x1')],'include':[{'model':_0x9dfe('0x8'),'attributes':['id',_0x9dfe('0x1')]},{'model':_0x9dfe('0x9'),'as':'Subjects','attributes':['id',_0x9dfe('0xa'),_0x9dfe('0xb'),_0x9dfe('0xc')],'include':[{'model':_0x9dfe('0xd'),'as':_0x9dfe('0xd'),'attributes':['id',_0x9dfe('0x1')]}]},{'model':_0x9dfe('0x9'),'as':_0x9dfe('0xe'),'attributes':['id','type',_0x9dfe('0xb'),_0x9dfe('0xf'),_0x9dfe('0x10'),_0x9dfe('0x11'),'variableName'],'include':[{'model':'Variable','as':_0x9dfe('0xd'),'attributes':['id',_0x9dfe('0x1')]}]},{'model':'FreshdeskField','as':'Fields','attributes':['id','type',_0x9dfe('0xb'),_0x9dfe('0x12'),_0x9dfe('0x13'),_0x9dfe('0x14'),_0x9dfe('0xc')],'include':[{'model':_0x9dfe('0xd'),'as':_0x9dfe('0xd'),'attributes':['id',_0x9dfe('0x1')]}]}]}]},'log':_0x9dfe('0x15')});};};