import Queue from "../models/Queue";
import User from "../models/User";

interface SerializedUser {
  id: number;
  name: string; 
  positionId: string | number;
  position: object;
  email: string;
  profile: string;
  queues: Queue[];
}

export const SerializeUser = (user: User): SerializedUser => {
  return {
    id: user.id,
    name: user.name, 
    positionId: user.positionId,
    position: user.position,
    email: user.email,
    profile: user.profile,
    queues: user.queues,
    
  };
};
