My XH18 was vandalised and I had to resolder the wires. In case anyone else needs this info see attached pdf.
Also I successfully added my brake-lever switches by breaking into the cable from the motor and connecting them between the violet and black wires.
Also I successfully added my brake-lever switches by breaking into the cable from the motor and connecting them between the violet and black wires.