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 _0xe865=['Tag','FreshdeskField','Subjects','type','content','variableName','Variable','key','keyType','keyContent','idField','nameField','customField','../../client','getFreshdeskAccounts','Request','GetFreshdeskAccount','username','apiKey','FreshdeskConfiguration','Configurations','name'];(function(_0x1600df,_0x13fd9c){var _0x3782b8=function(_0x4a5e69){while(--_0x4a5e69){_0x1600df['push'](_0x1600df['shift']());}};_0x3782b8(++_0x13fd9c);}(_0xe865,0xe9));var _0x5e86=function(_0x2d3bf8,_0x544a00){_0x2d3bf8=_0x2d3bf8-0x0;var _0x37ec29=_0xe865[_0x2d3bf8];return _0x37ec29;};'use strict';var client=require(_0x5e86('0x0'));exports[_0x5e86('0x1')]=function(){return function(_0x5ecead){return client[_0x5e86('0x2')](_0x5e86('0x3'),{'options':{'raw':![],'attributes':['id','name',_0x5e86('0x4'),_0x5e86('0x5'),'remoteUri','serverUrl'],'include':[{'model':_0x5e86('0x6'),'as':_0x5e86('0x7'),'attributes':['id',_0x5e86('0x8')],'include':[{'model':_0x5e86('0x9'),'attributes':['id',_0x5e86('0x8')]},{'model':_0x5e86('0xa'),'as':_0x5e86('0xb'),'attributes':['id',_0x5e86('0xc'),_0x5e86('0xd'),_0x5e86('0xe')],'include':[{'model':_0x5e86('0xf'),'as':_0x5e86('0xf'),'attributes':['id',_0x5e86('0x8')]}]},{'model':_0x5e86('0xa'),'as':'Descriptions','attributes':['id',_0x5e86('0xc'),_0x5e86('0xd'),_0x5e86('0x10'),_0x5e86('0x11'),_0x5e86('0x12'),_0x5e86('0xe')],'include':[{'model':_0x5e86('0xf'),'as':'Variable','attributes':['id',_0x5e86('0x8')]}]},{'model':_0x5e86('0xa'),'as':'Fields','attributes':['id',_0x5e86('0xc'),_0x5e86('0xd'),_0x5e86('0x13'),_0x5e86('0x14'),_0x5e86('0x15'),_0x5e86('0xe')],'include':[{'model':_0x5e86('0xf'),'as':_0x5e86('0xf'),'attributes':['id','name']}]}]}]},'log':'GetFreshdeskAccount'});};};