first you need to get the module_row id for the logicbox .
then create a custom request to database with this code
public function searchServiceFields($module_id) {
$fields = array("services.*",'service_options.*');
return $this->Record->select($fields)->
from("services")->
innerJoin("module_rows", "module_rows.id", "=", "services.module_row_id", false)->
innerJoin("service_options", "service_options.service_id", "=", "services.id", false)->
where("services.module_row_id", "=", $module_id)->
group("services.id")->fetchAll();
}
you can use the function like
$services = $this->searchServiceFields(7); // 7 is the module row id
print_r($services);
this custom code will return just the service that use the module "XXXX" that has configoption .