Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(private service?: pbiService.Service) {
if (!service) {
this.powerBiCoreService = new pbiService.Service(
factories.hpmFactory,
factories.wpmpFactory,
factories.routerFactory
);
} else {
this.powerBiCoreService = service;
}
}