import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';

@Injectable({
    providedIn: 'root'
})
export class CustomerInteractionService {

    constructor(protected http: HttpClient) {

    }

    get serviceURL(): string {
        return './dashboard/customer-interaction';
    }

    getSummary(startDate: Date, endDate: Date, channel: string) {
        return this.http.post(this.serviceURL, {startDate, endDate, channel});
    }

}
