2016-06-29 01:43:18 +00:00
|
|
|
// Require CSS
|
2016-07-22 08:14:23 +00:00
|
|
|
require('plugins/wazuh/less/main.less');
|
2017-02-02 22:00:04 +00:00
|
|
|
require('plugins/wazuh/less/ui_framework.less');
|
2016-06-29 01:43:18 +00:00
|
|
|
|
|
|
|
// Set up Wazuh app
|
2016-12-28 19:43:33 +00:00
|
|
|
var app = require('ui/modules').get('app/wazuh', ['ngCookies','ngMaterial', 'infinite-scroll'])
|
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
|
|
|
|
2016-08-11 12:14:42 +00:00
|
|
|
// Require services and factories
|
2016-08-26 17:33:46 +00:00
|
|
|
require('plugins/wazuh/objects/theming.js');
|
2016-08-11 12:14:42 +00:00
|
|
|
require('plugins/wazuh/objects/apiReq.js');
|
2016-09-12 14:56:59 +00:00
|
|
|
require('plugins/wazuh/objects/genericReq.js');
|
2016-08-11 12:14:42 +00:00
|
|
|
require('plugins/wazuh/objects/dataFactory.js');
|
|
|
|
require('plugins/wazuh/objects/sharedProperties.js');
|
2016-09-15 09:03:03 +00:00
|
|
|
require('plugins/wazuh/objects/appState.js');
|
2016-08-11 12:14:42 +00:00
|
|
|
require('plugins/wazuh/objects/tabProvider.js');
|
|
|
|
require('plugins/wazuh/objects/testConnection.js');
|
2016-09-15 10:55:58 +00:00
|
|
|
require('plugins/wazuh/objects/errlog.js');
|
2016-06-29 01:43:18 +00:00
|
|
|
|
2016-09-21 09:47:06 +00:00
|
|
|
// Require directives
|
|
|
|
require('plugins/wazuh/objects/autoSizeContainer.js');
|
|
|
|
|
2016-06-29 01:43:18 +00:00
|
|
|
// Set up routes and views
|
2016-08-11 12:14:42 +00:00
|
|
|
require('plugins/wazuh/objects/routes.js');
|
|
|
|
|
2016-09-21 09:47:06 +00:00
|
|
|
// Require Kibana integrations
|
2016-12-13 15:32:35 +00:00
|
|
|
require('plugins/wazuh/directives/kibanaExternalImports.js');
|
2016-11-23 21:29:44 +00:00
|
|
|
require('plugins/wazuh/directives/kibanaVisualizationDirective.js');
|
|
|
|
require('plugins/wazuh/directives/kibanaDiscoverDirective.js');
|
|
|
|
require('plugins/wazuh/directives/kibanaSearchbarDirective.js');
|
2016-06-29 01:43:18 +00:00
|
|
|
|
|
|
|
// Require controllers
|
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
|
|
|
|
2017-02-08 14:35:01 +00:00
|
|
|
// Dashboard
|
|
|
|
require('plugins/wazuh/controllers/dashboard.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-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/agentsOverview.js');
|
|
|
|
require('plugins/wazuh/controllers/agentsPreview.js');
|
|
|
|
require('plugins/wazuh/controllers/agentsFim.js');
|
|
|
|
require('plugins/wazuh/controllers/agentsPm.js');
|
2017-01-16 18:27:53 +00:00
|
|
|
require('plugins/wazuh/controllers/agentsOscap.js');
|
2017-01-23 13:14:59 +00:00
|
|
|
require('plugins/wazuh/controllers/agentsAudit.js');
|
2017-01-30 12:03:17 +00:00
|
|
|
require('plugins/wazuh/controllers/agentsPci.js');
|
2017-01-13 11:02:27 +00:00
|
|
|
|
|
|
|
// Settings
|
|
|
|
require('plugins/wazuh/controllers/settings.js');
|
2016-11-24 00:04:52 +00:00
|
|
|
require('plugins/wazuh/controllers/testController.js');
|
2016-06-29 01:43:18 +00:00
|
|
|
|
2016-08-11 12:14:42 +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');
|
2016-12-28 19:43:33 +00:00
|
|
|
require('plugins/wazuh/utils/infinite_scroll/infinite-scroll.js');
|
2017-08-22 19:31:45 +00:00
|
|
|
require('../../../ui_framework/dist/ui_framework.css');
|
2016-08-11 12:14:42 +00:00
|
|
|
|
|
|
|
//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');
|
2016-09-15 09:03:03 +00:00
|
|
|
|
|
|
|
//Cookies
|
2016-12-13 15:32:35 +00:00
|
|
|
require('plugins/wazuh/../node_modules/angular-cookies/angular-cookies.min.js');
|