angular.module("c8y.relayWidget").controller("RelayWidgetCtrl",["$scope","c8yAlert","relayWidgetSvc","gettext",function(c,e,l,t){function i(i){l.relay(c.child&&c.child.config&&c.child.config.device&&c.child.config.device.id,c.child&&c.child.config&&c.child.config.relay_id,i).then(_.partial(e.success,t("Operation created")))}this.on=_.partial(i,!0),this.off=_.partial(i,!1)}]);