// import { IPaginatedResponse } from '@/core/models/service.model';
// import { HttpClient } from '@angular/common/http';
// import { Injectable } from '@angular/core';
// import { Observable } from 'rxjs';
// import { POS_ACCOUNTS_API_ROUTES } from '../constants';
// import { IAccountRawResponse, IAccountRequest, IAccountResponse } from '../../users/models';

// @Injectable({ providedIn: 'root' })
// export class AdminPosesService {
//   constructor(private http: HttpClient) {}

//   private apiRoutes = POS_ACCOUNTS_API_ROUTES;

//   getAll(complexId: string, posId: string): Observable<IPaginatedResponse<IAccountResponse>> {
//     return this.http.get<IPaginatedResponse<IAccountRawResponse>>(
//       this.apiRoutes.list(complexId, posId),
//     );
//   }
//   getSingle(complexId: string, posId: string, accountId: string): Observable<IAccountResponse> {
//     return this.http.get<IAccountRawResponse>(this.apiRoutes.single(complexId, posId, accountId));
//   }

//   create(complexId: string, posId: string, data: IAccountRequest): Observable<IAccountResponse> {
//     return this.http.post<IAccountRawResponse>(this.apiRoutes.list(complexId, posId), data);
//   }

//   update(
//     complexId: string,
//     posId: string,
//     accountId: string,
//     data: IAccountRequest,
//   ): Observable<IAccountResponse> {
//     return this.http.patch<IAccountRawResponse>(
//       this.apiRoutes.single(complexId, posId, accountId),
//       data,
//     );
//   }
// }
