You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
837 B
TypeScript
24 lines
837 B
TypeScript
import { Observable } from 'rxjs';
|
|
import { Injectable } from '@angular/core';
|
|
import { AuthenticationService } from 'src/app/hmg-common/services/authentication/authentication.service';
|
|
import { ConnectorService } from 'src/app/hmg-common/services/connector/connector.service';
|
|
|
|
@Injectable({
|
|
providedIn: 'root'
|
|
})
|
|
export class EitService {
|
|
|
|
/* EIT Services URLs */
|
|
public static getMenuEntries = 'Services/ERP.svc/REST/GET_MENU_ENTRIES';
|
|
|
|
constructor(public authService: AuthenticationService, public con: ConnectorService) { }
|
|
|
|
public getMenuEntries(menuEntries: any, onError?: any, errorLabel?: string): Observable<any> {
|
|
const request = menuEntries;
|
|
this.authService.authenticateRequest(request);
|
|
console.log(request);
|
|
return this.con.post(EitService.getMenuEntries, request, onError, errorLabel);
|
|
}
|
|
|
|
}
|