Before or in the DC supply supplied by the 1ph/3ph input, or on the motor output/switching side.
Al.