How can I get service provider ID from Appointment ID

How can I get service provider ID (WordPress user numeric ID) from Appointment ID?

Using the code bellow I can retrieve who purchase the appointment but I need service provide info also. Any idea?

global $appointments;
$app = $appointments->get_app($app_id);
print_r($app)