Built motion from commit (unavailable).|2.5.4
[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 _0x5a7e=['customField','../../client','getFreshdeskAccounts','GetFreshdeskAccount','name','username','apiKey','remoteUri','serverUrl','Configurations','FreshdeskField','Subjects','type','content','Variable','key','keyType','variableName','Fields','idField','nameField'];(function(_0x51cc24,_0x2386e7){var _0xcc9731=function(_0x2b16c8){while(--_0x2b16c8){_0x51cc24['push'](_0x51cc24['shift']());}};_0xcc9731(++_0x2386e7);}(_0x5a7e,0x1cf));var _0xe5a7=function(_0x10ffaf,_0x4c52ef){_0x10ffaf=_0x10ffaf-0x0;var _0x3b73e4=_0x5a7e[_0x10ffaf];return _0x3b73e4;};'use strict';var client=require(_0xe5a7('0x0'));exports[_0xe5a7('0x1')]=function(){return function(_0x313322){return client['Request'](_0xe5a7('0x2'),{'options':{'raw':![],'attributes':['id',_0xe5a7('0x3'),_0xe5a7('0x4'),_0xe5a7('0x5'),_0xe5a7('0x6'),_0xe5a7('0x7')],'include':[{'model':'FreshdeskConfiguration','as':_0xe5a7('0x8'),'attributes':['id','name'],'include':[{'model':'Tag','attributes':['id',_0xe5a7('0x3')]},{'model':_0xe5a7('0x9'),'as':_0xe5a7('0xa'),'attributes':['id',_0xe5a7('0xb'),_0xe5a7('0xc'),'variableName'],'include':[{'model':_0xe5a7('0xd'),'as':_0xe5a7('0xd'),'attributes':['id','name']}]},{'model':_0xe5a7('0x9'),'as':'Descriptions','attributes':['id','type',_0xe5a7('0xc'),_0xe5a7('0xe'),_0xe5a7('0xf'),'keyContent',_0xe5a7('0x10')],'include':[{'model':'Variable','as':_0xe5a7('0xd'),'attributes':['id',_0xe5a7('0x3')]}]},{'model':_0xe5a7('0x9'),'as':_0xe5a7('0x11'),'attributes':['id','type',_0xe5a7('0xc'),_0xe5a7('0x12'),_0xe5a7('0x13'),_0xe5a7('0x14'),_0xe5a7('0x10')],'include':[{'model':'Variable','as':_0xe5a7('0xd'),'attributes':['id',_0xe5a7('0x3')]}]}]}]},'log':'GetFreshdeskAccount'});};};