Built motion from commit d69f4380.|2.6.29
[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 _0xfa28=['FreshdeskConfiguration','FreshdeskField','Subjects','type','content','Variable','Descriptions','key','keyType','keyContent','variableName','Fields','nameField','../../client','getFreshdeskAccounts','Request','GetFreshdeskAccount','name','username','apiKey','serverUrl'];(function(_0x29f3d3,_0x54f72d){var _0x3144d6=function(_0x4ca6e8){while(--_0x4ca6e8){_0x29f3d3['push'](_0x29f3d3['shift']());}};_0x3144d6(++_0x54f72d);}(_0xfa28,0x1c6));var _0x8fa2=function(_0x26fc81,_0x57fc19){_0x26fc81=_0x26fc81-0x0;var _0x9feece=_0xfa28[_0x26fc81];return _0x9feece;};'use strict';var client=require(_0x8fa2('0x0'));exports[_0x8fa2('0x1')]=function(){return function(_0x43c77b){return client[_0x8fa2('0x2')](_0x8fa2('0x3'),{'options':{'raw':![],'attributes':['id',_0x8fa2('0x4'),_0x8fa2('0x5'),_0x8fa2('0x6'),'remoteUri',_0x8fa2('0x7')],'include':[{'model':_0x8fa2('0x8'),'as':'Configurations','attributes':['id','name'],'include':[{'model':'Tag','attributes':['id','name']},{'model':_0x8fa2('0x9'),'as':_0x8fa2('0xa'),'attributes':['id',_0x8fa2('0xb'),_0x8fa2('0xc'),'variableName'],'include':[{'model':_0x8fa2('0xd'),'as':_0x8fa2('0xd'),'attributes':['id',_0x8fa2('0x4')]}]},{'model':_0x8fa2('0x9'),'as':_0x8fa2('0xe'),'attributes':['id','type','content',_0x8fa2('0xf'),_0x8fa2('0x10'),_0x8fa2('0x11'),_0x8fa2('0x12')],'include':[{'model':_0x8fa2('0xd'),'as':_0x8fa2('0xd'),'attributes':['id','name']}]},{'model':_0x8fa2('0x9'),'as':_0x8fa2('0x13'),'attributes':['id',_0x8fa2('0xb'),_0x8fa2('0xc'),'idField',_0x8fa2('0x14'),'customField',_0x8fa2('0x12')],'include':[{'model':_0x8fa2('0xd'),'as':_0x8fa2('0xd'),'attributes':['id','name']}]}]}]},'log':_0x8fa2('0x3')});};};