Built motion from commit 4ca75f1b.|2.6.28
[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 _0xdf92=['apiKey','remoteUri','serverUrl','FreshdeskConfiguration','Configurations','FreshdeskField','Subjects','type','content','Variable','Descriptions','key','keyType','idField','nameField','customField','../../client','Request','GetFreshdeskAccount','name','username'];(function(_0x3a3004,_0x2c5d1e){var _0x151ff4=function(_0x4e4bfb){while(--_0x4e4bfb){_0x3a3004['push'](_0x3a3004['shift']());}};_0x151ff4(++_0x2c5d1e);}(_0xdf92,0x10c));var _0x2df9=function(_0x36f445,_0x1ca2db){_0x36f445=_0x36f445-0x0;var _0xa415e3=_0xdf92[_0x36f445];return _0xa415e3;};'use strict';var client=require(_0x2df9('0x0'));exports['getFreshdeskAccounts']=function(){return function(_0x4ad522){return client[_0x2df9('0x1')](_0x2df9('0x2'),{'options':{'raw':![],'attributes':['id',_0x2df9('0x3'),_0x2df9('0x4'),_0x2df9('0x5'),_0x2df9('0x6'),_0x2df9('0x7')],'include':[{'model':_0x2df9('0x8'),'as':_0x2df9('0x9'),'attributes':['id',_0x2df9('0x3')],'include':[{'model':'Tag','attributes':['id',_0x2df9('0x3')]},{'model':_0x2df9('0xa'),'as':_0x2df9('0xb'),'attributes':['id',_0x2df9('0xc'),_0x2df9('0xd'),'variableName'],'include':[{'model':_0x2df9('0xe'),'as':_0x2df9('0xe'),'attributes':['id',_0x2df9('0x3')]}]},{'model':_0x2df9('0xa'),'as':_0x2df9('0xf'),'attributes':['id',_0x2df9('0xc'),_0x2df9('0xd'),_0x2df9('0x10'),_0x2df9('0x11'),'keyContent','variableName'],'include':[{'model':_0x2df9('0xe'),'as':'Variable','attributes':['id',_0x2df9('0x3')]}]},{'model':_0x2df9('0xa'),'as':'Fields','attributes':['id','type',_0x2df9('0xd'),_0x2df9('0x12'),_0x2df9('0x13'),_0x2df9('0x14'),'variableName'],'include':[{'model':_0x2df9('0xe'),'as':_0x2df9('0xe'),'attributes':['id',_0x2df9('0x3')]}]}]}]},'log':_0x2df9('0x2')});};};