dbd1e53d362e06087eb3034de85ccd88a2b169cb
[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 _0x1222=['content','variableName','Variable','key','keyType','keyContent','Fields','idField','getFreshdeskAccounts','Request','name','username','apiKey','remoteUri','serverUrl','Configurations','Tag','FreshdeskField','Subjects','type'];(function(_0x298ed3,_0x4ab5e1){var _0x5aad28=function(_0x168687){while(--_0x168687){_0x298ed3['push'](_0x298ed3['shift']());}};_0x5aad28(++_0x4ab5e1);}(_0x1222,0x94));var _0x2122=function(_0x268d82,_0x33695a){_0x268d82=_0x268d82-0x0;var _0x56595b=_0x1222[_0x268d82];return _0x56595b;};'use strict';var client=require('../../client');exports[_0x2122('0x0')]=function(){return function(_0x1e6336){return client[_0x2122('0x1')]('GetFreshdeskAccount',{'options':{'raw':![],'attributes':['id',_0x2122('0x2'),_0x2122('0x3'),_0x2122('0x4'),_0x2122('0x5'),_0x2122('0x6')],'include':[{'model':'FreshdeskConfiguration','as':_0x2122('0x7'),'attributes':['id','name'],'include':[{'model':_0x2122('0x8'),'attributes':['id',_0x2122('0x2')]},{'model':_0x2122('0x9'),'as':_0x2122('0xa'),'attributes':['id',_0x2122('0xb'),_0x2122('0xc'),_0x2122('0xd')],'include':[{'model':_0x2122('0xe'),'as':_0x2122('0xe'),'attributes':['id',_0x2122('0x2')]}]},{'model':'FreshdeskField','as':'Descriptions','attributes':['id',_0x2122('0xb'),_0x2122('0xc'),_0x2122('0xf'),_0x2122('0x10'),_0x2122('0x11'),'variableName'],'include':[{'model':'Variable','as':_0x2122('0xe'),'attributes':['id','name']}]},{'model':'FreshdeskField','as':_0x2122('0x12'),'attributes':['id',_0x2122('0xb'),_0x2122('0xc'),_0x2122('0x13'),'nameField','customField',_0x2122('0xd')],'include':[{'model':_0x2122('0xe'),'as':'Variable','attributes':['id',_0x2122('0x2')]}]}]}]},'log':'GetFreshdeskAccount'});};};