We found a temporary fix and reconnected the gates to the motor and all works now.
Our vendor will be here on Saturday to replace worn out parts and fix the gates properly.
You might want to have a set of work gloves ready (the gates have grease on them).
Please remember that in the past we had bikes stolen from the garage when the gates were left open for long time.
Thank you