Interesting that the encoder has 6 pins. It's hard to tell from the pic (backlighting can sometimes help tracing), but it looks like only 4 of the pins are used? If numbered starting at top, 1, 3, 4, 5 look wired, while 2 and 6 look not connected. With that, I would guess 1 and 5 are ground and power (or vice versa).