2021-01-18 12:32:19 +01:00
|
|
|
const FeatureToggleService = require('./feature-toggle-service');
|
2020-09-28 21:54:44 +02:00
|
|
|
const ProjectService = require('./project-service');
|
|
|
|
const StateService = require('./state-service');
|
2020-12-17 19:22:30 +01:00
|
|
|
const ClientMetricsService = require('./client-metrics');
|
2021-01-18 12:32:19 +01:00
|
|
|
const TagTypeService = require('./tag-type-service');
|
|
|
|
const TagService = require('./tag-service');
|
|
|
|
const StrategyService = require('./strategy-service');
|
2021-01-19 10:42:45 +01:00
|
|
|
const AddonService = require('./addon-service');
|
2020-09-28 21:54:44 +02:00
|
|
|
|
2021-01-19 10:42:45 +01:00
|
|
|
module.exports.createServices = (stores, config) => {
|
|
|
|
const featureToggleService = new FeatureToggleService(stores, config);
|
|
|
|
const projectService = new ProjectService(stores, config);
|
|
|
|
const stateService = new StateService(stores, config);
|
|
|
|
const strategyService = new StrategyService(stores, config);
|
|
|
|
const tagTypeService = new TagTypeService(stores, config);
|
|
|
|
const tagService = new TagService(stores, config);
|
|
|
|
const clientMetricsService = new ClientMetricsService(stores, config);
|
|
|
|
const addonService = new AddonService(stores, config, tagTypeService);
|
|
|
|
|
|
|
|
return {
|
|
|
|
addonService,
|
|
|
|
featureToggleService,
|
|
|
|
projectService,
|
|
|
|
stateService,
|
|
|
|
strategyService,
|
|
|
|
tagTypeService,
|
|
|
|
tagService,
|
|
|
|
clientMetricsService,
|
|
|
|
};
|
|
|
|
};
|