modeling moving wires

I need to show some wiring on a device where some parts move. When the parts move the wires should follow along.

Does anyone have some thoughts on how I should start to make a model that can do this? maybe a video that is out there already that I can reference? thanks!