Here is the motor harness. First two brown wires are for the mirror heating:
Here is the motor itself:
Here is the driver's door wiring, refer to the post above for the details on each wire's function:
And finally, here is the passenger door, refer to the post above for the details on each wire's function: