import { prismaClient } from '../database/prismaClient.js';
export async function createAgent(data) {
    console.log(`Creating Agent with ID: ${data.id}`);
    return prismaClient.agent.create({
        data,
    });
}
export async function getAgent(id) {
    console.log(`Getting Agent with ID: ${id}`);
    return prismaClient.agent.findUnique({
        where: { id },
    });
}
export async function listAgents() {
    console.log('Listing all Agents');
    return prismaClient.agent.findMany();
}
export async function updateAgent(id, data) {
    console.log(`Updating Agent with ID: ${id}`);
    return prismaClient.agent.update({
        where: { id },
        data,
    });
}
export async function deleteAgent(id) {
    console.log(`Deleting Agent with ID: ${id}`);
    return prismaClient.agent.delete({
        where: { id },
    });
}
