blob: 1a5581a34f5f113aea3f0f28e56f359da637a2f1 [file] [log] [blame]
/********************************************************************************
* Copyright (c) 2020 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
********************************************************************************/
import { CommunicationTypesSandbox } from '@pages/admin/communication-types/communication-types.sandbox';
import { Observable } from 'rxjs';
import { Injectable } from '@angular/core';
import { Resolve } from '@angular/router';
import { ILoadCommunicationTypesSuccess } from '@shared/store/actions/admin/communication-types.action';
@Injectable()
export class CommunicationTypesResolver implements Resolve<any> {
constructor(private communicationTypesSandbox: CommunicationTypesSandbox) {}
public resolve(): Observable<ILoadCommunicationTypesSuccess> {
return this.communicationTypesSandbox.loadCommunicationTypes();
}
}