angular.module("c8y.restartDevice",[]).config(["c8yViewsProvider","c8yActionsProvider","gettext",function(e,t,r){var i=r("Restart device");t.addUrlAction({path:"/device/:deviceId/*",text:i,priority:-1e3,actionBar:!0,showIf:["$routeParams","c8yBase","c8yInventory","c8yDevices",function(e,t,c,r){return c.detail(e.deviceId).then(function(e){e=t.getResData(e);return r.supportsOperation(e,"c8y_Restart")})}],action:["$routeParams","c8yAlert","c8yDeviceControl","gettextCatalog",function(e,t,c){return c.create({deviceId:e.deviceId,description:i,c8y_Restart:{}}).then(function(){t.success(r("Device will be restarted."))})}]})}]);