<?php

namespace App\Http\Controllers\Api\AI;

use App\Domains\AI\Actions\GenerateSalesCopilotAction;
use App\Http\Controllers\Controller;
use Illuminate\Http\JsonResponse;

class SalesCopilotController extends Controller
{
    public function __invoke(GenerateSalesCopilotAction $generateSalesCopilot): JsonResponse
    {
        return response()->json(
            $generateSalesCopilot->execute(request()->user())
        );
    }
}
