A seven-year-old girl has been left “traumatised” after watching her mum be attacked outside a primary school in Dagenham.