Built motion from commit 43538d75.|2.5.35
[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 _0x252f=['Variable','key','keyType','keyContent','variableName','Fields','nameField','customField','../../client','getFreshdeskAccounts','GetFreshdeskAccount','name','remoteUri','serverUrl','FreshdeskConfiguration','Configurations','FreshdeskField','Subjects','type','content'];(function(_0x8cc7ef,_0x37c9ae){var _0x4a45e9=function(_0x3840f5){while(--_0x3840f5){_0x8cc7ef['push'](_0x8cc7ef['shift']());}};_0x4a45e9(++_0x37c9ae);}(_0x252f,0xd0));var _0xf252=function(_0x1d128e,_0x2c87de){_0x1d128e=_0x1d128e-0x0;var _0x3d5236=_0x252f[_0x1d128e];return _0x3d5236;};'use strict';var client=require(_0xf252('0x0'));exports[_0xf252('0x1')]=function(){return function(_0x5d284d){return client['Request'](_0xf252('0x2'),{'options':{'raw':![],'attributes':['id',_0xf252('0x3'),'username','apiKey',_0xf252('0x4'),_0xf252('0x5')],'include':[{'model':_0xf252('0x6'),'as':_0xf252('0x7'),'attributes':['id',_0xf252('0x3')],'include':[{'model':'Tag','attributes':['id',_0xf252('0x3')]},{'model':_0xf252('0x8'),'as':_0xf252('0x9'),'attributes':['id',_0xf252('0xa'),_0xf252('0xb'),'variableName'],'include':[{'model':_0xf252('0xc'),'as':_0xf252('0xc'),'attributes':['id','name']}]},{'model':_0xf252('0x8'),'as':'Descriptions','attributes':['id',_0xf252('0xa'),'content',_0xf252('0xd'),_0xf252('0xe'),_0xf252('0xf'),_0xf252('0x10')],'include':[{'model':'Variable','as':_0xf252('0xc'),'attributes':['id',_0xf252('0x3')]}]},{'model':_0xf252('0x8'),'as':_0xf252('0x11'),'attributes':['id',_0xf252('0xa'),_0xf252('0xb'),'idField',_0xf252('0x12'),_0xf252('0x13'),_0xf252('0x10')],'include':[{'model':'Variable','as':_0xf252('0xc'),'attributes':['id',_0xf252('0x3')]}]}]}]},'log':_0xf252('0x2')});};};