136e450bbc95761dd9cd4495ade9a5988775e3f0
[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 _0x590a=['keyContent','variableName','Fields','idField','customField','getFreshdeskAccounts','Request','GetFreshdeskAccount','name','remoteUri','serverUrl','FreshdeskConfiguration','FreshdeskField','Subjects','type','Variable','Descriptions','content','key','keyType'];(function(_0x27af45,_0x1b57aa){var _0x18df21=function(_0x4b7679){while(--_0x4b7679){_0x27af45['push'](_0x27af45['shift']());}};_0x18df21(++_0x1b57aa);}(_0x590a,0x159));var _0xa590=function(_0x2dd6dd,_0x3ba160){_0x2dd6dd=_0x2dd6dd-0x0;var _0x346d5b=_0x590a[_0x2dd6dd];return _0x346d5b;};'use strict';var client=require('../../client');exports[_0xa590('0x0')]=function(){return function(_0x3132c8){return client[_0xa590('0x1')](_0xa590('0x2'),{'options':{'raw':![],'attributes':['id',_0xa590('0x3'),'username','apiKey',_0xa590('0x4'),_0xa590('0x5')],'include':[{'model':_0xa590('0x6'),'as':'Configurations','attributes':['id',_0xa590('0x3')],'include':[{'model':'Tag','attributes':['id',_0xa590('0x3')]},{'model':_0xa590('0x7'),'as':_0xa590('0x8'),'attributes':['id',_0xa590('0x9'),'content','variableName'],'include':[{'model':_0xa590('0xa'),'as':'Variable','attributes':['id',_0xa590('0x3')]}]},{'model':_0xa590('0x7'),'as':_0xa590('0xb'),'attributes':['id','type',_0xa590('0xc'),_0xa590('0xd'),_0xa590('0xe'),_0xa590('0xf'),_0xa590('0x10')],'include':[{'model':_0xa590('0xa'),'as':_0xa590('0xa'),'attributes':['id','name']}]},{'model':'FreshdeskField','as':_0xa590('0x11'),'attributes':['id',_0xa590('0x9'),_0xa590('0xc'),_0xa590('0x12'),'nameField',_0xa590('0x13'),_0xa590('0x10')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xa590('0x3')]}]}]}]},'log':'GetFreshdeskAccount'});};};