Bidirectional motor control with Shelly Uni's two sets of dry contacts

Hi

I’m wanting to use a Shelly Uni to control a small motor in two directions.

Can I wire the two sets of dry contacts on the Uni to the same motor in reverse polarity?

I’m thinking this is not possible, because the other side of the two circuits would cause a short.

Ie battery positive corrected directly to side A of motor, and battery negative corrected via first set of dry contacts to side B of motor. Then if battery positive is connected via second set of dry contacts to side B of motor, battery negative would need to be connected directly to side A of the motor. This means both the negative and positive sides of the battery would be directly connected to one side of them motor, shorting the battery.

Is there any way around this?

The motor came with a double pole switch which allows bidirectional operation of the motor. Would there be a way to wire the two sets of dry contacts across the four switch contacts to make this work?

Thanks