# $Id$ provide helpdesk push_config 05_helpdesk_unit push_config 05_helpdesk_phone help_helpdesk_unit() { local serial="${CLASS_ARGV[0]}" control_client "${serial}" help helpdesk.unit } help_helpdesk_phone() { local serial="${CLASS_ARGV[0]}" control_client "${serial}" help helpdesk.phone } control_helpdesk_unit() { local serial="${CLASS_ARGV[0]}" push_config_05_helpdesk_unit "${serial}" } control_helpdesk_phone() { local serial="${CLASS_ARGV[0]}" push_config_05_helpdesk_phone "${serial}" } push_config_05_helpdesk_unit() { local serial="$1" local value value=$(mysqldo "select client_locations.helpdesk_unit from client_serials inner join client_locations on client_serials.location=client_locations.location where serial='${serial}'") control_client "${serial}" set helpdesk.unit "${value}" } push_config_05_helpdesk_phone() { local serial="$1" local value value=$(mysqldo "select client_locations.helpdesk_phone from client_serials inner join client_locations on client_serials.location=client_locations.location where serial='${serial}'") control_client "${serial}" set helpdesk.phone "${value}" }