Former Vanderpump Rules star Rachel Leviss claimed her ex-fling Tom Sandoval “wore down [her] defenses” 

after she was left “isolated” by her breakup with James Kennedy, according to an emotional letter she penned in her revenge porn case.

RadarOnline.com obtained a copy of the new statement Leviss submitted to the court, which detailed her version of the events

that prompted her to sue Sandoval and his ex-girlfriend, Ariana Madix.

The suit stemmed from the infamous seven-month-long affair between Leviss and Sandoval — coined “Scandoval” —

that shocked Bravo fans when the news broke in March of last year

Madix, 39, said she had no idea her live-in boyfriend of nine years had been cheating on her until she found erotic videos of Leviss, 29, on Sandoval’s phone.

Leviss sued her former costars this past February, accusing Sandoval, 41, of recording FaceTime videos showing her “in a state of undress and masturbating” without her “knowledge or consent,” and alleging Madix “distributed them and/or showed them to others.”

Madix demanded the suit be tossed earlier this month and denied sharing any explicit videos of Leviss with third parties. She also recently filed a motion to have her name stricken from the lawsuit under the anti-SLAPP statute, which protects Californians from litigation that violates their rights to free speech.

In response, Leviss’ powerhouse legal team argued that her lawsuit was not “an attack on [Madix’s] right to speak freely about matters of public concern,” as the defendant claimed. They also argued Madix’s conduct “cannot be protected by the anti-SLAPP statute because it was illegal.”

On June 28, Leviss submitted a declaration to the court to support her argument against the anti-SLAPP motion, calling Madix “a principal contributor to my emotional distress.”

In her letter, the model described her experiences from the time she first appeared on the reality show in 2016, while dating Kennedy, 32, and the subsequent events that left her “in an extremely dark and scary place mentally.”

“After breaking off my engagement to Kennedy, I became increasingly isolated,” she wrote. Following her split from the DJ in late 2021, Leviss “began to confide in Sandoval,” and the pair “became increasingly close.”

Leviss said she “began to rely on [Sandoval] for emotional support” while “he, in turn, began to confide in me about the dire state of his relationship with Madix, describing it as a business partnership and casting its end as foregone.”

“I viewed Sandoval as a close confidante and friend and our relationship as platonic,” she continued, “It became increasingly clear, however, that Sandoval had different intentions.”

“By the Summer of 2022, Sandoval had worn down my defenses,” Leviss wrote, saying they “started sleeping together in August and continued doing so through the early months of 2023.”

The secret couple “regularly communicated” through FaceTime, “sometimes sexually,” she said, noting that these conversations were “confidential.” Leviss characterized the calls as “private communications reflecting a clandestine affair.”

However, recordings were allegedly captured around February 2023 while she was “in a private residence,” Leviss said.

“Sandoval never asked my permission to record them, and I was not aware he was doing so,” she claimed, “Had he asked, I would have said no. If I had known he had done so anyway, I would have been furious and demanded he delete them.”