Built motion from commit (unavailable).|2.5.1
[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 _0x6343=['getFreshdeskAccounts','Request','GetFreshdeskAccount','name','remoteUri','serverUrl','FreshdeskConfiguration','Configurations','FreshdeskField','Subjects','type','content','variableName','Variable','key','keyContent','Fields','idField','nameField','customField','../../client'];(function(_0x468a5d,_0x152f48){var _0x54187e=function(_0x39239c){while(--_0x39239c){_0x468a5d['push'](_0x468a5d['shift']());}};_0x54187e(++_0x152f48);}(_0x6343,0x1a3));var _0x3634=function(_0x55cd1c,_0x565e6d){_0x55cd1c=_0x55cd1c-0x0;var _0x41c0f9=_0x6343[_0x55cd1c];return _0x41c0f9;};'use strict';var client=require(_0x3634('0x0'));exports[_0x3634('0x1')]=function(){return function(_0x38e9f3){return client[_0x3634('0x2')](_0x3634('0x3'),{'options':{'raw':![],'attributes':['id',_0x3634('0x4'),'username','apiKey',_0x3634('0x5'),_0x3634('0x6')],'include':[{'model':_0x3634('0x7'),'as':_0x3634('0x8'),'attributes':['id','name'],'include':[{'model':'Tag','attributes':['id',_0x3634('0x4')]},{'model':_0x3634('0x9'),'as':_0x3634('0xa'),'attributes':['id',_0x3634('0xb'),_0x3634('0xc'),_0x3634('0xd')],'include':[{'model':_0x3634('0xe'),'as':_0x3634('0xe'),'attributes':['id',_0x3634('0x4')]}]},{'model':_0x3634('0x9'),'as':'Descriptions','attributes':['id',_0x3634('0xb'),_0x3634('0xc'),_0x3634('0xf'),'keyType',_0x3634('0x10'),'variableName'],'include':[{'model':_0x3634('0xe'),'as':_0x3634('0xe'),'attributes':['id','name']}]},{'model':_0x3634('0x9'),'as':_0x3634('0x11'),'attributes':['id',_0x3634('0xb'),_0x3634('0xc'),_0x3634('0x12'),_0x3634('0x13'),_0x3634('0x14'),_0x3634('0xd')],'include':[{'model':_0x3634('0xe'),'as':_0x3634('0xe'),'attributes':['id',_0x3634('0x4')]}]}]}]},'log':'GetFreshdeskAccount'});};};