The company should take immediate action to investigate the complaint, ensure privacy throughout the process, and take disciplinary action if necessary, even if the harassment occurred outside of work hours.