2020-04-08 19:31:08 +03:00
|
|
|
///
|
2023-01-31 10:43:56 +02:00
|
|
|
/// Copyright © 2016-2023 The Thingsboard Authors
|
2020-04-08 19:31:08 +03:00
|
|
|
///
|
|
|
|
|
/// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
/// you may not use this file except in compliance with the License.
|
|
|
|
|
/// You may obtain a copy of the License at
|
|
|
|
|
///
|
|
|
|
|
/// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
///
|
|
|
|
|
/// Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
/// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
/// See the License for the specific language governing permissions and
|
|
|
|
|
/// limitations under the License.
|
|
|
|
|
///
|
|
|
|
|
|
|
|
|
|
import { Type } from '@angular/core';
|
|
|
|
|
import { DeviceService } from '@core/http/device.service';
|
|
|
|
|
import { AssetService } from '@core/http/asset.service';
|
|
|
|
|
import { AttributeService } from '@core/http/attribute.service';
|
|
|
|
|
import { EntityRelationService } from '@core/http/entity-relation.service';
|
|
|
|
|
import { EntityService } from '@core/http/entity.service';
|
|
|
|
|
import { DialogService } from '@core/services/dialog.service';
|
|
|
|
|
import { CustomDialogService } from '@home/components/widget/dialog/custom-dialog.service';
|
|
|
|
|
import { DatePipe } from '@angular/common';
|
|
|
|
|
import { UtilsService } from '@core/services/utils.service';
|
|
|
|
|
import { TranslateService } from '@ngx-translate/core';
|
|
|
|
|
import { HttpClient } from '@angular/common/http';
|
2020-05-20 19:42:58 +03:00
|
|
|
import { EntityViewService } from '@core/http/entity-view.service';
|
|
|
|
|
import { CustomerService } from '@core/http/customer.service';
|
|
|
|
|
import { DashboardService } from '@core/http/dashboard.service';
|
|
|
|
|
import { UserService } from '@core/http/user.service';
|
2020-06-18 23:04:19 +03:00
|
|
|
import { AlarmService } from '@core/http/alarm.service';
|
2020-08-31 16:39:54 +03:00
|
|
|
import { Router } from '@angular/router';
|
2021-01-18 14:06:35 +02:00
|
|
|
import { BroadcastService } from '@core/services/broadcast.service';
|
|
|
|
|
import { ImportExportService } from '@home/components/import-export/import-export.service';
|
2021-04-23 12:26:09 +03:00
|
|
|
import { DeviceProfileService } from '@core/http/device-profile.service';
|
2021-05-31 18:15:31 +03:00
|
|
|
import { OtaPackageService } from '@core/http/ota-package.service';
|
2022-07-03 14:59:38 +05:00
|
|
|
import { AuthService } from '@core/auth/auth.service';
|
2022-06-03 23:06:34 +05:00
|
|
|
import { ResourceService } from '@core/http/resource.service';
|
2022-05-17 17:38:30 +03:00
|
|
|
import { TwoFactorAuthenticationService } from '@core/http/two-factor-authentication.service';
|
2022-09-14 16:32:52 +05:00
|
|
|
import { TelemetryWebsocketService } from '@core/ws/telemetry-websocket.service';
|
2023-01-20 13:56:20 +02:00
|
|
|
import { MillisecondsToTimeStringPipe } from '@shared/pipe/milliseconds-to-time-string.pipe';
|
2020-04-08 19:31:08 +03:00
|
|
|
|
|
|
|
|
export const ServicesMap = new Map<string, Type<any>>(
|
|
|
|
|
[
|
2020-12-10 18:36:24 +02:00
|
|
|
['broadcastService', BroadcastService],
|
2020-04-08 19:31:08 +03:00
|
|
|
['deviceService', DeviceService],
|
2020-06-18 23:04:19 +03:00
|
|
|
['alarmService', AlarmService],
|
2020-04-08 19:31:08 +03:00
|
|
|
['assetService', AssetService],
|
2020-05-20 19:42:58 +03:00
|
|
|
['entityViewService', EntityViewService],
|
|
|
|
|
['customerService', CustomerService],
|
|
|
|
|
['dashboardService', DashboardService],
|
|
|
|
|
['userService', UserService],
|
2020-04-08 19:31:08 +03:00
|
|
|
['attributeService', AttributeService],
|
|
|
|
|
['entityRelationService', EntityRelationService],
|
|
|
|
|
['entityService', EntityService],
|
|
|
|
|
['dialogs', DialogService],
|
|
|
|
|
['customDialog', CustomDialogService],
|
|
|
|
|
['date', DatePipe],
|
2023-01-20 13:56:20 +02:00
|
|
|
['milliSecondsToTimeString', MillisecondsToTimeStringPipe],
|
2020-04-08 19:31:08 +03:00
|
|
|
['utils', UtilsService],
|
|
|
|
|
['translate', TranslateService],
|
2020-08-31 16:39:54 +03:00
|
|
|
['http', HttpClient],
|
2021-01-18 14:06:35 +02:00
|
|
|
['router', Router],
|
2021-04-23 12:26:09 +03:00
|
|
|
['importExport', ImportExportService],
|
|
|
|
|
['deviceProfileService', DeviceProfileService],
|
2022-07-03 14:59:38 +05:00
|
|
|
['otaPackageService', OtaPackageService],
|
2022-07-06 14:00:16 +03:00
|
|
|
['authService', AuthService],
|
2022-06-09 16:46:17 +03:00
|
|
|
['resourceService', ResourceService],
|
2022-09-14 16:32:52 +05:00
|
|
|
['twoFactorAuthenticationService', TwoFactorAuthenticationService],
|
|
|
|
|
['telemetryWsService', TelemetryWebsocketService]
|
2020-04-08 19:31:08 +03:00
|
|
|
]
|
|
|
|
|
);
|