| 18 | } |
| 19 | |
| 20 | const getDefaultServices = (): Services => ({ |
| 21 | locales: new LocalesService(), |
| 22 | auth: new AuthService(), |
| 23 | theme: new ThemeService(), |
| 24 | controlPanel: new ControlPanelService( |
| 25 | new HttpAgent({ host: appInitConfig.apiGatewayUrl.toString() }), |
| 26 | ), |
| 27 | station: new StationService(new HttpAgent({ host: appInitConfig.apiGatewayUrl.toString() })), |
| 28 | sessionExpiration: new SessionExpirationService(), |
| 29 | }); |
| 30 | |
| 31 | class ServiceManager { |
| 32 | constructor(public services: Services = getDefaultServices()) {} |