An employee of the Bronx district attorney’s office has revealed the workplace’s allegedly toxic and troubling culture.

Crime analyst Crystal Rivera claims on-duty sex, infidelity and drinking were regular occurrences at the office of Bronx DA Darcel Clark.

“People are having sex in the office,” Rivera, who has worked for the DA’s office for 11 years, told the New York Daily News. “We used to have parties called ‘the narcotics parties,’ where ADAs (would) have sexual relationships with officers and prosecutors. We’ve had incidents where ADAs are having sex with each other, and they’re married.”

Rivera even said ADAs would come to court inebriated.

“(The ADAs) would drink and we’d page them, ‘The court is calling,’ ” she said of her time working in the Child Abuse and Sex Crimes Unit. “They would answer their pagers, go to court—physically and mentally intoxicated—do their job and come back.”

On August 30, 2017, Rivera was placed on paid administrative leave. She said the punishment allegedly was a result of dating a cop whom Clark ordered her not to.

“They felt they would target me to get to him,” Rivera said. “Now, I am the one suffering for this. … I am personally being disciplined just because I have a relationship with Detective David Terrell.”

Rivera plans on suing Clark for $15 million for commanding her not to speak to the officer. Clark’s office found 70 texts and phone calls to Terrell on her phone.

“What are they gonna do—tell her she can’t talk to her boyfriend?” said Rivera’s lawyer, Eric Sanders. “That’s her First Amendment right. … She didn’t violate a rule.”

In 2015, NY1 reported Clark, who had still been a candidate for her current position, may have played a role in the Bronx court system’s negligent treatment of Kalief Browder, who had been wrongfully jailed at Rikers Island for three years for stealing a backpack. Browder committed suicide in June 2015.