do $$
declare
    _id_emp_origem integer;
    _id_emp_destino integer;
begin
    _id_emp_origem  := X;
    _id_emp_destino := XX;
    
    perform fc_en_trg(false, false);

    delete from tb_emp_cnf where id_emp = _id_emp_destino;
    
    insert into tb_emp_cnf
        (id_emp, id_cnf, val)
    select 
        _id_emp_destino, id_cnf, val
    from tb_emp_cnf
    where
        id_emp = _id_emp_origem;

    perform fc_en_trg(true, true);
end;
$$