2015 Mazda6 Invisicord Question

I bought the invisicord that i'm trying to hook up to the back of the rearview mirror for a dashcam but not sure on which wire is hot/ground.

There are 6 wires connected total.

Any insight into the auto-dimming mirror wiring. I browsed through the forum but could only find examples of the CX-5 which has fewer wires.
 
Back