wazuh-kibana-app/public/setup.js
2020-05-19 19:55:55 +02:00

19 lines
505 B
JavaScript

import { uiModules } from 'ui/modules';
import {
setAngularModule,
setServices
} from 'plugins/kibana/discover/kibana_services';
import { npStart } from 'ui/new_platform';
import { buildServices } from 'plugins/kibana/discover/build_services';
// Set up Wazuh app
const app = uiModules.get('app/wazuh', ['ngCookies', 'ngMaterial', 'chart.js']);
setAngularModule(app);
// Set up services needed for discover
const services = buildServices(
npStart.core,
npStart.plugins
);
setServices(services);