Built motion from commit (unavailable).|2.4.21
[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 _0x5f63=['serverUrl','FreshdeskConfiguration','Tag','FreshdeskField','Subjects','content','Variable','key','keyType','keyContent','Fields','type','nameField','customField','variableName','../../client','getFreshdeskAccounts','Request','GetFreshdeskAccount','name','apiKey','remoteUri'];(function(_0x50f21f,_0x26c387){var _0x42334a=function(_0x420c94){while(--_0x420c94){_0x50f21f['push'](_0x50f21f['shift']());}};_0x42334a(++_0x26c387);}(_0x5f63,0x7d));var _0x35f6=function(_0x1ecc64,_0x27d9e1){_0x1ecc64=_0x1ecc64-0x0;var _0x189e8c=_0x5f63[_0x1ecc64];return _0x189e8c;};'use strict';var client=require(_0x35f6('0x0'));exports[_0x35f6('0x1')]=function(){return function(_0x111669){return client[_0x35f6('0x2')](_0x35f6('0x3'),{'options':{'raw':![],'attributes':['id',_0x35f6('0x4'),'username',_0x35f6('0x5'),_0x35f6('0x6'),_0x35f6('0x7')],'include':[{'model':_0x35f6('0x8'),'as':'Configurations','attributes':['id','name'],'include':[{'model':_0x35f6('0x9'),'attributes':['id',_0x35f6('0x4')]},{'model':_0x35f6('0xa'),'as':_0x35f6('0xb'),'attributes':['id','type',_0x35f6('0xc'),'variableName'],'include':[{'model':_0x35f6('0xd'),'as':_0x35f6('0xd'),'attributes':['id',_0x35f6('0x4')]}]},{'model':_0x35f6('0xa'),'as':'Descriptions','attributes':['id','type',_0x35f6('0xc'),_0x35f6('0xe'),_0x35f6('0xf'),_0x35f6('0x10'),'variableName'],'include':[{'model':_0x35f6('0xd'),'as':_0x35f6('0xd'),'attributes':['id','name']}]},{'model':_0x35f6('0xa'),'as':_0x35f6('0x11'),'attributes':['id',_0x35f6('0x12'),'content','idField',_0x35f6('0x13'),_0x35f6('0x14'),_0x35f6('0x15')],'include':[{'model':'Variable','as':_0x35f6('0xd'),'attributes':['id',_0x35f6('0x4')]}]}]}]},'log':'GetFreshdeskAccount'});};};