2020-02-19 16:32:27 +00:00
|
|
|
import { uiModules } from 'ui/modules';
|
2020-04-24 14:55:04 +00:00
|
|
|
import {
|
|
|
|
setAngularModule,
|
|
|
|
setServices
|
|
|
|
} from 'plugins/kibana/discover/kibana_services';
|
2020-02-19 16:32:27 +00:00
|
|
|
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
|
2020-04-24 14:55:04 +00:00
|
|
|
const services = buildServices(
|
|
|
|
npStart.core,
|
2020-05-18 16:21:44 +00:00
|
|
|
npStart.plugins
|
2020-04-24 14:55:04 +00:00
|
|
|
);
|
2020-02-19 16:32:27 +00:00
|
|
|
setServices(services);
|