e5244e92abfda520121ca12db4aef52f46996299
[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 _0xe1e3=['nameField','customField','GetFreshdeskAccount','../../client','getFreshdeskAccounts','Request','username','remoteUri','serverUrl','FreshdeskConfiguration','Configurations','name','Tag','FreshdeskField','Subjects','type','content','variableName','Variable','Descriptions','key','keyType'];(function(_0x209071,_0x2f75ce){var _0x2cf0ac=function(_0x1cada4){while(--_0x1cada4){_0x209071['push'](_0x209071['shift']());}};_0x2cf0ac(++_0x2f75ce);}(_0xe1e3,0x1bb));var _0x3e1e=function(_0x268fe1,_0x3fe152){_0x268fe1=_0x268fe1-0x0;var _0x5372ed=_0xe1e3[_0x268fe1];return _0x5372ed;};'use strict';var client=require(_0x3e1e('0x0'));exports[_0x3e1e('0x1')]=function(){return function(_0x55659f){return client[_0x3e1e('0x2')]('GetFreshdeskAccount',{'options':{'raw':![],'attributes':['id','name',_0x3e1e('0x3'),'apiKey',_0x3e1e('0x4'),_0x3e1e('0x5')],'include':[{'model':_0x3e1e('0x6'),'as':_0x3e1e('0x7'),'attributes':['id',_0x3e1e('0x8')],'include':[{'model':_0x3e1e('0x9'),'attributes':['id','name']},{'model':_0x3e1e('0xa'),'as':_0x3e1e('0xb'),'attributes':['id',_0x3e1e('0xc'),_0x3e1e('0xd'),_0x3e1e('0xe')],'include':[{'model':_0x3e1e('0xf'),'as':'Variable','attributes':['id','name']}]},{'model':'FreshdeskField','as':_0x3e1e('0x10'),'attributes':['id','type',_0x3e1e('0xd'),_0x3e1e('0x11'),_0x3e1e('0x12'),'keyContent',_0x3e1e('0xe')],'include':[{'model':'Variable','as':'Variable','attributes':['id','name']}]},{'model':'FreshdeskField','as':'Fields','attributes':['id',_0x3e1e('0xc'),'content','idField',_0x3e1e('0x13'),_0x3e1e('0x14'),_0x3e1e('0xe')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x3e1e('0x8')]}]}]}]},'log':_0x3e1e('0x15')});};};