import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { environment } from 'src/environments/environment';
import { debug } from 'util';


let header = new HttpHeaders();
header = header.set('Content-Type', 'application/json; charset=utf-8');
@Injectable({
  providedIn: 'root'
})
export class DashboardreportService {

  baseUrl: string = environment.serviceUrl;
  constructor(private httpClient: HttpClient) { }

  GetDashboardReport(data: any): Observable<any> {
    return this.httpClient.post(this.baseUrl + 'api/ReportApi/GetProcessWiseProductionReport',
        data, { headers: header, observe: 'response' });
}

Getruntimeuserperformancereport(data: any): Observable<any> {
  return this.httpClient.post(this.baseUrl + 'api/ReportApi/Getruntimeuserperformancereport',
      data, { headers: header, observe: 'response' });
}

}
