12a554e60893d5b5b33cb90cbec4948504d2ec9d
[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 _0x9e5e=['getFreshdeskAccounts','Request','GetFreshdeskAccount','name','apiKey','serverUrl','FreshdeskConfiguration','Tag','Subjects','type','content','variableName','Variable','FreshdeskField','Descriptions','key','Fields','idField','nameField','customField','../../client'];(function(_0xff5684,_0xfe6e00){var _0x41e374=function(_0x145196){while(--_0x145196){_0xff5684['push'](_0xff5684['shift']());}};_0x41e374(++_0xfe6e00);}(_0x9e5e,0x1e2));var _0xe9e5=function(_0x31a371,_0x50828e){_0x31a371=_0x31a371-0x0;var _0x2a5bd6=_0x9e5e[_0x31a371];return _0x2a5bd6;};'use strict';var client=require(_0xe9e5('0x0'));exports[_0xe9e5('0x1')]=function(){return function(_0x5a229a){return client[_0xe9e5('0x2')](_0xe9e5('0x3'),{'options':{'raw':![],'attributes':['id',_0xe9e5('0x4'),'username',_0xe9e5('0x5'),'remoteUri',_0xe9e5('0x6')],'include':[{'model':_0xe9e5('0x7'),'as':'Configurations','attributes':['id','name'],'include':[{'model':_0xe9e5('0x8'),'attributes':['id',_0xe9e5('0x4')]},{'model':'FreshdeskField','as':_0xe9e5('0x9'),'attributes':['id',_0xe9e5('0xa'),_0xe9e5('0xb'),_0xe9e5('0xc')],'include':[{'model':_0xe9e5('0xd'),'as':_0xe9e5('0xd'),'attributes':['id',_0xe9e5('0x4')]}]},{'model':_0xe9e5('0xe'),'as':_0xe9e5('0xf'),'attributes':['id','type',_0xe9e5('0xb'),_0xe9e5('0x10'),'keyType','keyContent','variableName'],'include':[{'model':'Variable','as':_0xe9e5('0xd'),'attributes':['id',_0xe9e5('0x4')]}]},{'model':_0xe9e5('0xe'),'as':_0xe9e5('0x11'),'attributes':['id',_0xe9e5('0xa'),_0xe9e5('0xb'),_0xe9e5('0x12'),_0xe9e5('0x13'),_0xe9e5('0x14'),_0xe9e5('0xc')],'include':[{'model':'Variable','as':_0xe9e5('0xd'),'attributes':['id',_0xe9e5('0x4')]}]}]}]},'log':_0xe9e5('0x3')});};};