<?php

namespace App\Modules\Integrations\Platform\Controllers\V1;

use App\Modules\Integrations\Platform\Requests\IngestBiometricPunchesRequest;
use App\Modules\Integrations\Platform\Services\BiometricIngestApiService;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

final class BiometricIngestController
{
    public function __invoke(
        Request $request,
        int $device,
        IngestBiometricPunchesRequest $httpRequest,
        BiometricIngestApiService $service,
    ): JsonResponse {
        return $service->ingest($request, $httpRequest, $device);
    }
}
