WEST PALM BEACH, Fla. (AP) — A woman who left her newborn baby in a trash bin pleaded guilty to attempted murder and child abuse in exchange for a seven-year prison sentence and potential deportation.

Rafaelle Sousa’s lawyer says she didn’t know she was pregnant until she went into labor, and thought the newborn was dead.

Maintenance workers at her apartment complex in Boca Raton, Florida heard the baby’s faint cries and rescued her. Sousa pleaded guilty Wednesday to attempted murder and child abuse.

The baby was taken in by her boyfriend, who named her Sarah.