This kind of agreement is called EXCLUSIVE AGENCY.
Exclusive agency is a contractual agreement under which the listing broker acts as an agent and the owner agree to pay a commission to him if the property is sold through the effort of any person with the exception of the owner of the property.