(()=>{function e(e,a){c.$inject=["$routeParams","$location","deviceActility","c8yAlert","c8yModal"],t.$inject=["$routeParams","c8yDevices","c8yBase"];var i=a("Deprovision device");function t(e,i,t){return i.detailCached(e.deviceId).then(t.getResData).then(function(e){return _.get(e,"c8y_LpwanDevice.provisioned")&&"Sigfox"!==_.get(e,"c8y_LpwanDevice.serviceProvider")})}function c(e,i,t,c,n){var o=e.deviceId;n({title:a("Confirm deprovisioning?"),status:"danger"}).then(_.partial(t.deprovisionDevice,o)).then(function(){c.success(a("Device deprovisioned.")),i.path("/device/".concat(o))})}e.addUrlAction({path:"/device/:deviceId",text:i,showIf:t,actionBar:!0,action:c})}e.$inject=["c8yActionsProvider","gettext"],angular.module("c8y.deviceActility",[]).config(e)})();