2017-06-27 12:26:09 +03:00
|
|
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
|
|
|
|
import { CommonModule } from '@angular/common';
|
|
|
|
|
|
|
|
|
|
import { UserService } from './users.service';
|
2017-07-14 18:55:38 +03:00
|
|
|
import { ElectricityService } from './electricity.service';
|
2017-07-29 13:13:17 +03:00
|
|
|
import { SmartTableService } from './smart-table.service';
|
2018-08-08 16:45:31 +03:00
|
|
|
import { UserActivityService } from './user-activity.service';
|
|
|
|
|
import { OrdersChartService } from './orders-chart.service';
|
|
|
|
|
import { ProfitChartService } from './profit-chart.service';
|
|
|
|
|
import { TrafficListService } from './traffic-list.service';
|
|
|
|
|
import { PeriodsService } from './periods.service';
|
|
|
|
|
import { EarningService } from './earning.service';
|
|
|
|
|
import { OrdersProfitChartService } from './orders-profit-chart.service';
|
|
|
|
|
import { TrafficBarService } from './traffic-bar.service';
|
|
|
|
|
import { ProfitBarAnimationChartService } from './profit-bar-animation-chart.service';
|
2019-01-08 16:17:20 +03:00
|
|
|
import { TemperatureHumidityService } from './temperature-humidity.service';
|
|
|
|
|
import { SolarService } from './solar.service';
|
|
|
|
|
import { TrafficChartService } from './traffic-chart.service';
|
|
|
|
|
import { StatsBarService } from './stats-bar.service';
|
|
|
|
|
import { CountryOrderService } from './country-order.service';
|
|
|
|
|
import { StatsProgressBarService } from './stats-progress-bar.service';
|
|
|
|
|
import { VisitorsAnalyticsService } from './visitors-analytics.service';
|
|
|
|
|
import { SecurityCamerasService } from './security-cameras.service';
|
2017-06-27 12:26:09 +03:00
|
|
|
|
|
|
|
|
const SERVICES = [
|
|
|
|
|
UserService,
|
2017-07-14 18:55:38 +03:00
|
|
|
ElectricityService,
|
2017-07-29 13:13:17 +03:00
|
|
|
SmartTableService,
|
2018-08-08 16:45:31 +03:00
|
|
|
UserActivityService,
|
|
|
|
|
OrdersChartService,
|
|
|
|
|
ProfitChartService,
|
|
|
|
|
TrafficListService,
|
|
|
|
|
PeriodsService,
|
|
|
|
|
EarningService,
|
|
|
|
|
OrdersProfitChartService,
|
|
|
|
|
TrafficBarService,
|
|
|
|
|
ProfitBarAnimationChartService,
|
2019-01-08 16:17:20 +03:00
|
|
|
TemperatureHumidityService,
|
|
|
|
|
SolarService,
|
|
|
|
|
TrafficChartService,
|
|
|
|
|
StatsBarService,
|
|
|
|
|
CountryOrderService,
|
|
|
|
|
StatsProgressBarService,
|
|
|
|
|
VisitorsAnalyticsService,
|
|
|
|
|
SecurityCamerasService,
|
2017-06-27 12:26:09 +03:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
|
imports: [
|
|
|
|
|
CommonModule,
|
|
|
|
|
],
|
|
|
|
|
providers: [
|
|
|
|
|
...SERVICES,
|
|
|
|
|
],
|
|
|
|
|
})
|
|
|
|
|
export class DataModule {
|
|
|
|
|
static forRoot(): ModuleWithProviders {
|
|
|
|
|
return <ModuleWithProviders>{
|
|
|
|
|
ngModule: DataModule,
|
|
|
|
|
providers: [
|
|
|
|
|
...SERVICES,
|
|
|
|
|
],
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|