Pinout for motor with encoders

Ahoy Pirates,
Please give me the pinout for:

50:1 Motor + MME (Regular) # COM0821

It has a 6-pin JST connector and I cannot find a key to the pinout. Something to orient me like, for example, the notch on integrated circuits or, even better, a diagram. Looking from the stern towards the bow with the port on my left, I see the black encoder wheel and a white JST connector below it and wonder what is the order of the pins?
Thanks

Here’s a diagram of the pinout from the connector side of the board:

Hel
Many thanks for the picture – I will study it carefully.
Alvaro