2016-06-29 01:43:18 +00:00
|
|
|
// Require CSS
|
2017-11-14 18:43:59 +00:00
|
|
|
require('plugins/wazuh/less/loader');
|
2017-11-13 15:37:40 +00:00
|
|
|
//require('plugins/wazuh/less/ui_framework.less');
|
2016-06-29 01:43:18 +00:00
|
|
|
|
|
|
|
// Set up Wazuh app
|
2017-10-20 20:46:24 +00:00
|
|
|
var app = require('ui/modules').get('app/wazuh', ['ngCookies','ngMaterial'])
|
2016-06-29 01:43:18 +00:00
|
|
|
.config(['$compileProvider', function ($compileProvider) {
|
|
|
|
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|data|blob):/);
|
2016-07-15 11:40:18 +00:00
|
|
|
}])
|
|
|
|
.config(['$httpProvider', function ($httpProvider) {
|
|
|
|
$httpProvider.useApplyAsync(true);
|
2016-08-26 17:33:46 +00:00
|
|
|
}]);
|
2016-06-29 01:43:18 +00:00
|
|
|
|
2018-01-25 12:42:48 +00:00
|
|
|
//Bootstrap and font awesome
|
|
|
|
require('plugins/wazuh/../node_modules/bootstrap/dist/css/bootstrap.min.css');
|
|
|
|
require('plugins/wazuh/../node_modules/bootstrap/dist/js/bootstrap.min.js');
|
|
|
|
require('plugins/wazuh/utils/fontawesome/css/font-awesome.min.css');
|
|
|
|
require('plugins/wazuh/utils/when-scrolled/when-scrolled.js');
|
|
|
|
require('../../../ui_framework/dist/ui_framework.css');
|
|
|
|
|
|
|
|
//Material
|
|
|
|
require('plugins/wazuh/../node_modules/angular-material/angular-material.css');
|
|
|
|
require('plugins/wazuh/../node_modules/angular-aria/angular-aria.js');
|
|
|
|
require('plugins/wazuh/../node_modules/angular-animate/angular-animate.js');
|
|
|
|
require('plugins/wazuh/../node_modules/angular-material/angular-material.js');
|
|
|
|
|
|
|
|
//Cookies
|
|
|
|
require('plugins/wazuh/../node_modules/angular-cookies/angular-cookies.min.js');
|
|
|
|
|
2017-11-23 10:33:34 +00:00
|
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
// Require Kibana integrations
|
|
|
|
require('ui/autoload/all');
|
|
|
|
require('ui/chrome');
|
|
|
|
require('plugins/wazuh/kibana-integrations/kibanaVisualizationDirective.js');
|
2017-11-25 15:36:39 +00:00
|
|
|
require('plugins/wazuh/kibana-integrations/kibanaFilterbarDirective.js');
|
|
|
|
require('plugins/wazuh/kibana-integrations/kibanaDiscoverDirective.js');
|
2017-11-23 10:33:34 +00:00
|
|
|
|
2017-10-20 20:46:24 +00:00
|
|
|
// Require services
|
2018-01-29 11:35:02 +00:00
|
|
|
require('plugins/wazuh/services/errorHandler.js');
|
2017-10-20 20:46:24 +00:00
|
|
|
require('plugins/wazuh/services/theming.js');
|
|
|
|
require('plugins/wazuh/services/apiReq.js');
|
|
|
|
require('plugins/wazuh/services/genericReq.js');
|
|
|
|
require('plugins/wazuh/services/dataHandler.js');
|
|
|
|
require('plugins/wazuh/services/appState.js');
|
|
|
|
require('plugins/wazuh/services/testAPI.js');
|
2017-12-03 14:30:47 +00:00
|
|
|
require('plugins/wazuh/services/implicitFilters.js');
|
2018-01-29 16:20:32 +00:00
|
|
|
require('plugins/wazuh/services/patternHandler.js');
|
2016-09-21 09:47:06 +00:00
|
|
|
|
2016-06-29 01:43:18 +00:00
|
|
|
// Set up routes and views
|
2017-10-20 20:46:24 +00:00
|
|
|
require('plugins/wazuh/services/routes.js');
|
2016-08-11 12:14:42 +00:00
|
|
|
|
2016-06-29 01:43:18 +00:00
|
|
|
// Require controllers
|
2017-01-13 11:02:27 +00:00
|
|
|
|
2017-11-07 14:34:28 +00:00
|
|
|
// Factories
|
2018-02-15 12:22:53 +00:00
|
|
|
require('plugins/wazuh/factories/data-handler-composer.js');
|
2018-02-15 12:17:14 +00:00
|
|
|
|
|
|
|
// Wazuh Directives
|
|
|
|
require('plugins/wazuh/directives/wz-dynamic/wz-dynamic.js');
|
|
|
|
require('plugins/wazuh/directives/wz-enter/wz-enter.js');
|
|
|
|
require('plugins/wazuh/directives/wz-menu/wz-menu.js');
|
|
|
|
require('plugins/wazuh/directives/wz-search-bar/wz-search-bar.js');
|
|
|
|
require('plugins/wazuh/directives/wz-table-header/wz-table-header.js');
|
|
|
|
require('plugins/wazuh/directives/wz-table/wz-table.js');
|
2017-11-07 14:34:28 +00:00
|
|
|
|
2018-01-29 16:04:36 +00:00
|
|
|
// Blank Screen
|
|
|
|
require('plugins/wazuh/controllers/blankScreenController.js');
|
|
|
|
|
2018-01-25 12:42:48 +00:00
|
|
|
// Login
|
|
|
|
require('plugins/wazuh/controllers/login.js');
|
|
|
|
|
2017-01-13 11:02:27 +00:00
|
|
|
// Overview
|
2016-09-16 12:35:56 +00:00
|
|
|
require('plugins/wazuh/controllers/overview.js');
|
2017-01-13 11:02:27 +00:00
|
|
|
|
|
|
|
// Manager
|
2016-06-29 01:43:18 +00:00
|
|
|
require('plugins/wazuh/controllers/manager.js');
|
|
|
|
require('plugins/wazuh/controllers/ruleset.js');
|
2016-07-01 12:49:38 +00:00
|
|
|
require('plugins/wazuh/controllers/osseclog.js');
|
2017-10-20 20:46:24 +00:00
|
|
|
require('plugins/wazuh/controllers/groups.js');
|
2017-01-13 11:02:27 +00:00
|
|
|
|
|
|
|
// Agents
|
2017-01-16 12:29:48 +00:00
|
|
|
require('plugins/wazuh/controllers/agents.js');
|
2017-01-13 11:02:27 +00:00
|
|
|
require('plugins/wazuh/controllers/agentsPreview.js');
|
|
|
|
|
|
|
|
// Settings
|
|
|
|
require('plugins/wazuh/controllers/settings.js');
|
2016-06-29 01:43:18 +00:00
|
|
|
|
2018-01-11 18:41:50 +00:00
|
|
|
// Health check
|
|
|
|
require('plugins/wazuh/controllers/healthCheck.js');
|