Here is the rear wiring. You can see the blue and yellow wires that come out of the switch in addition the four wires that come out of the trailer. The two wires from the motor are not shown.
The four wires coming out of the trailer are two distinct sets. In the front they are two sets of white and red, but in the rear there are three white wires and one red.