#1588 Import angepasst

This commit is contained in:
Andreas Schickinger
2021-04-01 15:35:49 +02:00
committed by Lorenz Hilpert
parent cfcc6c8cce
commit eb936c7d3f

View File

@@ -1,10 +1,9 @@
import { Injectable } from '@angular/core';
import { NotificationChannel } from '@cmf/core';
import { ApplicationService } from '@core/application';
import { DomainCheckoutService } from '@domain/checkout';
import { BuyerDTO } from '@swagger/checkout';
import { BuyerDTO, NotificationChannel } from '@swagger/checkout';
import { CustomerDTO } from '@swagger/crm';
import { Observable, Subject, BehaviorSubject } from 'rxjs';
import { BehaviorSubject } from 'rxjs';
import { switchMap, map, first } from 'rxjs/operators';
@Injectable()
@@ -26,13 +25,9 @@ export class NotificationChannelsService {
switchMap((processId) => this.domainCheckoutService.getNotificationChannels({ processId }))
);
notificationChannelEmail$ = this.notificationChannels$.pipe(
map((notificationChannels) => (notificationChannels & NotificationChannel.Email) === NotificationChannel.Email)
);
notificationChannelEmail$ = this.notificationChannels$.pipe(map((notificationChannels) => (notificationChannels & 1) === 1));
notificationChannelMobile$ = this.notificationChannels$.pipe(
map((notificationChannels) => (notificationChannels & NotificationChannel.SMS) === NotificationChannel.SMS)
);
notificationChannelMobile$ = this.notificationChannels$.pipe(map((notificationChannels) => (notificationChannels & 2) === 2));
constructor(private domainCheckoutService: DomainCheckoutService, private applicationService: ApplicationService) {}