A former city Human Resources Administration employee who admitted to stealing more than $300,000 intended for needy New Yorkers — using a portion of the funds to arrange a “supernatural curse” to be placed on her ex-boyfriend — has been sentenced to two years in prison.

Eliana Bauta, 36, admitted to working together with two other HRA employees to steal emergency benefits funds from the agency and dole them out to friends and relatives.

In one instance, she submitted paperwork to obtain funds for someone whom she said was a victim of a disaster — one that never actually occurred — and she used the money instead to pay for a hex to be placed on her ex-boyfriend, the feds alleged.

In another, she took a police report submitted on behalf of an actual HRA benefits recipient and doctored the report so that funds would go to Bauta’s relative.

Bauta and the two employees, Geraldine Perez and Eric Gonzales, also ran a scheme in which they took checks intended for benefit recipients and deposited them into their own accounts, officials said.

Bauta worked for HRA as a job opportunity specialist from 2008 to 2018, and the theft came to light following a probe launched in 2015 by the city’s Department of Investigation into reports from HRA about suspicious activity in the agency’s benefits system.

Perez was previously sentenced to nine months in prison for her role in the schemes and Gonzales got two years’ probation.