I built the teleporter in Sanctuary Hills and used it to get into the Institute. The settlement was later attacked and the teleporter was damaged. Unfortunately, because it's a unique building, it cannot be repaired.
I understand that the teleporter is necessary in the future if I want to choose the path of destroying the institute with the Minutemen, so it needs to be operational.
Is there some way to repair it? Especially convenient would be a simple console command (PC version) to repair settlement objects, which I wasn't able to find.