A female police officer and her superior were attacked in a suburb of Paris by a group of young people, who then posted the videos of the attack online, reports said Monday.

The horrifying incident took place following an emergency call in Champigny-sur-Marne, located southeast of Paris.

The officer, who has not been named, was recorded being kicked around violently and beaten in her head as the attackers around her were heard whooping and screaming in the suburb of Champigny-sur-Marne, southeast of the French capital. Her colleague was so badly hurt that, he was forced to remove his pistol from its holster at one point, however, he did not get a shot off, according to a Fox News report.

In the videos posted online of the attack, the youths also jumped on top of what was believed to be a patrol car in which the officers arrived that had been flipped on to its roof.

In the video, an unidentified woman was heard using French street slang to say: "The evening has really gone wrong! Goodness! Poor copper!"

(The footage shown in the video linked above is graphic, so viewer discretion is advised.)

Investigators said after the shocking incident that the two officers suffered concussions and other injuries, however, their condition was not life-threatening.

The two officers were investigating widespread disorder outside a house in the area as the authorities had been originally called to the address of the house where a New Year’s party was taking place, Japan Times reported.

A number of people had been reportedly turned away from the house and refused entry, which led to fighting in the street. And when the police arrived at the scene they were in turn attacked by the people there. The young attackers themselves filmed the incident where the female officer was heard screaming and attempting to protect her head from the beating throughout.

The footage of the incident that was posted on social media has sparked outrage across France. President Emmanuel Macron responded to it and has promised to bring those responsible to justice.

"Those guilty of the cowardly and criminal lynching of police doing their duty on the night of December 31st will be found and punished," he said. "Force will support the law. Honor to the police and full support to all the agents attacked in such a low-level fashion."

French Interior Minister Gerard Collomb said after the attack: "I just spoke with the police officers assaulted. Everything is done to ensure that the cowardly perpetrators of these unspeakable acts are apprehended and sentenced. To attack our security forces is to attack our Republic," according to the New York Post.