WARNING: This page is about a different car, the 2015 Subaru XV Crosstrek and 2015 Subaru Impreza. However, it is still accessible from the selected car via links, so may be relevant.
Fig 1: AT Shift Lock Control System - Wiring Diagram (With Push Button Ignition Switch)