Built motion from commit b5413ace.|2.6.9
[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 _0xae2b=['getFreshdeskAccounts','Request','GetFreshdeskAccount','name','username','apiKey','remoteUri','FreshdeskConfiguration','Tag','variableName','Variable','FreshdeskField','Descriptions','type','keyContent','Fields','idField','nameField','customField','../../client'];(function(_0x214185,_0x2d96bf){var _0x34abeb=function(_0x361251){while(--_0x361251){_0x214185['push'](_0x214185['shift']());}};_0x34abeb(++_0x2d96bf);}(_0xae2b,0xb3));var _0xbae2=function(_0x366fb0,_0x855c4a){_0x366fb0=_0x366fb0-0x0;var _0x26b557=_0xae2b[_0x366fb0];return _0x26b557;};'use strict';var client=require(_0xbae2('0x0'));exports[_0xbae2('0x1')]=function(){return function(_0x55ac17){return client[_0xbae2('0x2')](_0xbae2('0x3'),{'options':{'raw':![],'attributes':['id',_0xbae2('0x4'),_0xbae2('0x5'),_0xbae2('0x6'),_0xbae2('0x7'),'serverUrl'],'include':[{'model':_0xbae2('0x8'),'as':'Configurations','attributes':['id',_0xbae2('0x4')],'include':[{'model':_0xbae2('0x9'),'attributes':['id',_0xbae2('0x4')]},{'model':'FreshdeskField','as':'Subjects','attributes':['id','type','content',_0xbae2('0xa')],'include':[{'model':_0xbae2('0xb'),'as':_0xbae2('0xb'),'attributes':['id',_0xbae2('0x4')]}]},{'model':_0xbae2('0xc'),'as':_0xbae2('0xd'),'attributes':['id',_0xbae2('0xe'),'content','key','keyType',_0xbae2('0xf'),'variableName'],'include':[{'model':_0xbae2('0xb'),'as':_0xbae2('0xb'),'attributes':['id',_0xbae2('0x4')]}]},{'model':'FreshdeskField','as':_0xbae2('0x10'),'attributes':['id',_0xbae2('0xe'),'content',_0xbae2('0x11'),_0xbae2('0x12'),_0xbae2('0x13'),_0xbae2('0xa')],'include':[{'model':_0xbae2('0xb'),'as':_0xbae2('0xb'),'attributes':['id',_0xbae2('0x4')]}]}]}]},'log':'GetFreshdeskAccount'});};};