Earlier in the Catholic Church, in what were engaged in the lawyers of the devil?

In contrast to the devil’s advocate, there was another position – the defender of God, whose functions were opposite. In modern language, the term devil’s advocate is often used to refer to people who advocate a position that they themselves do not adhere to.