import { UserProfile } from '../../profile/types';


export const mapToSafeProfile = (data: any): UserProfile => {
    return {
        matricula: data.matricula,
        userName: data.userName,
        nome: data.nome,
        codigoFilial: data.codigoFilial,
        nomeFilial: data.nomeFilial,
        rca: data.rca,
        discountPercent: data.discountPercent,
        sectorId: data.sectorId,
        sectorManagerId: data.sectorManagerId,
        supervisorId: data.supervisorId,
    };
};
