Built motion from commit (unavailable).|2.5.13
[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 _0xfbd4=['variableName','Variable','Descriptions','keyType','keyContent','Fields','idField','nameField','../../client','getFreshdeskAccounts','GetFreshdeskAccount','name','apiKey','remoteUri','serverUrl','FreshdeskConfiguration','Configurations','Tag','FreshdeskField','Subjects','type','content'];(function(_0x1f016d,_0xf69315){var _0x9bf5d8=function(_0x472b13){while(--_0x472b13){_0x1f016d['push'](_0x1f016d['shift']());}};_0x9bf5d8(++_0xf69315);}(_0xfbd4,0x13c));var _0x4fbd=function(_0x442574,_0x135d3a){_0x442574=_0x442574-0x0;var _0x2cef70=_0xfbd4[_0x442574];return _0x2cef70;};'use strict';var client=require(_0x4fbd('0x0'));exports[_0x4fbd('0x1')]=function(){return function(_0x121f00){return client['Request'](_0x4fbd('0x2'),{'options':{'raw':![],'attributes':['id',_0x4fbd('0x3'),'username',_0x4fbd('0x4'),_0x4fbd('0x5'),_0x4fbd('0x6')],'include':[{'model':_0x4fbd('0x7'),'as':_0x4fbd('0x8'),'attributes':['id',_0x4fbd('0x3')],'include':[{'model':_0x4fbd('0x9'),'attributes':['id',_0x4fbd('0x3')]},{'model':_0x4fbd('0xa'),'as':_0x4fbd('0xb'),'attributes':['id',_0x4fbd('0xc'),_0x4fbd('0xd'),_0x4fbd('0xe')],'include':[{'model':'Variable','as':_0x4fbd('0xf'),'attributes':['id',_0x4fbd('0x3')]}]},{'model':_0x4fbd('0xa'),'as':_0x4fbd('0x10'),'attributes':['id',_0x4fbd('0xc'),'content','key',_0x4fbd('0x11'),_0x4fbd('0x12'),_0x4fbd('0xe')],'include':[{'model':_0x4fbd('0xf'),'as':'Variable','attributes':['id',_0x4fbd('0x3')]}]},{'model':_0x4fbd('0xa'),'as':_0x4fbd('0x13'),'attributes':['id',_0x4fbd('0xc'),_0x4fbd('0xd'),_0x4fbd('0x14'),_0x4fbd('0x15'),'customField',_0x4fbd('0xe')],'include':[{'model':_0x4fbd('0xf'),'as':_0x4fbd('0xf'),'attributes':['id','name']}]}]}]},'log':_0x4fbd('0x2')});};};