WATCH: The shocking moment drunk driver pins child between cars

CCTV footage of the moment a drink driver, who was on the phone, smashed into a parked car pinning a six-year-old girl has been shown in court.

Sydney woman Barbara Farlow has avoided jail and was sentenced on Tuesday to home detention, after admitting getting behind the wheel was an act of insanity.

Outside court when asked questions about the incident Farlow walked away, exactly as she did after crushing the girl behind her car at Eastwood shops last October.

Barbara Farlow, given home detention after pinning a child between two cars when driving drunk. Source: 7 News
Barbara Farlow, given home detention after pinning a child between two cars when driving drunk. Source: 7 News

Horrific security video of the incident was played to the court.

Farlow - with a blood alcohol reading more than six times the limit – can be seen in the footage reversing her car, as a father and daughter pass behind her.

At first the 50-year-old mother tries to drive away, but her car won't move.

She tries to walk away, and it's only other shoppers who hold her back, until police arrive.

Farlow was given home detention. Source: 7 News
Farlow was given home detention. Source: 7 News

"When you think of that moment you still feel shocking, yeah so terrible, hard to imagine it how it happened,” witness Yvonne Cheung told 7 News.

The prosecutor said it was pure luck the child didn't suffer serious injuries.

It was Farlow's third drink driving charge, the other two were high range.

She wrote to the girl's family apologising for her actions, saying: "I know and understand the insanity of drink driving".

Sydney woman Barbara Farlow was sentenced on Tuesday to home detention. Source: 7 News
Sydney woman Barbara Farlow was sentenced on Tuesday to home detention. Source: 7 News

The court heard she suffers depression and now attends Alcoholics Anonymous and is in rehab.

The magistrate decided that because of her early guilty plea an 18-month jail sentence would be reduced to 14-months.

The magistrate also decided that because of Farlow's need for rehabilitation, she could serve that 14-month jail sentence at home.