Built motion from commit c738b9ac.|2.6.25
[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 _0xffe1=['keyType','keyContent','Fields','idField','nameField','customField','GetFreshdeskAccount','../../client','getFreshdeskAccounts','Request','name','apiKey','remoteUri','serverUrl','FreshdeskConfiguration','Configurations','Tag','FreshdeskField','type','variableName','Variable','Descriptions','content','key'];(function(_0xb42a52,_0x1ac8a5){var _0x4af4b1=function(_0x306505){while(--_0x306505){_0xb42a52['push'](_0xb42a52['shift']());}};_0x4af4b1(++_0x1ac8a5);}(_0xffe1,0x187));var _0x1ffe=function(_0x1ba8c9,_0x785346){_0x1ba8c9=_0x1ba8c9-0x0;var _0x1de025=_0xffe1[_0x1ba8c9];return _0x1de025;};'use strict';var client=require(_0x1ffe('0x0'));exports[_0x1ffe('0x1')]=function(){return function(_0x57a768){return client[_0x1ffe('0x2')]('GetFreshdeskAccount',{'options':{'raw':![],'attributes':['id',_0x1ffe('0x3'),'username',_0x1ffe('0x4'),_0x1ffe('0x5'),_0x1ffe('0x6')],'include':[{'model':_0x1ffe('0x7'),'as':_0x1ffe('0x8'),'attributes':['id',_0x1ffe('0x3')],'include':[{'model':_0x1ffe('0x9'),'attributes':['id',_0x1ffe('0x3')]},{'model':_0x1ffe('0xa'),'as':'Subjects','attributes':['id',_0x1ffe('0xb'),'content',_0x1ffe('0xc')],'include':[{'model':'Variable','as':_0x1ffe('0xd'),'attributes':['id','name']}]},{'model':_0x1ffe('0xa'),'as':_0x1ffe('0xe'),'attributes':['id',_0x1ffe('0xb'),_0x1ffe('0xf'),_0x1ffe('0x10'),_0x1ffe('0x11'),_0x1ffe('0x12'),_0x1ffe('0xc')],'include':[{'model':_0x1ffe('0xd'),'as':'Variable','attributes':['id','name']}]},{'model':_0x1ffe('0xa'),'as':_0x1ffe('0x13'),'attributes':['id',_0x1ffe('0xb'),_0x1ffe('0xf'),_0x1ffe('0x14'),_0x1ffe('0x15'),_0x1ffe('0x16'),'variableName'],'include':[{'model':_0x1ffe('0xd'),'as':_0x1ffe('0xd'),'attributes':['id',_0x1ffe('0x3')]}]}]}]},'log':_0x1ffe('0x17')});};};