(()=>{function t(t,e,n,c){e.addUrlAction({path:"/ecosystem/microservice/microservices/:applicationId/status",text:c("Add smart rule"),actionBar:!0,position:"right",icon:"plus",priority:100,showIf:["$routeParams","c8yApplication","c8yTenant","$q","c8yPermissions",function(t,e,n,i,a){t=t.applicationId,e=e.getApplicationMO(t);return i.all({currentTenant:n.current(),mo:e,canAdminMO:e.then(function(t){return a.canAdminMOs([t.id])})}).then(function(t){var e=t.currentTenant,e=t.mo.applicationOwner===e.name;return t.canAdminMO&&e})}],action:["$routeParams","smartRulesSvc","c8yApplication","$rootScope",function(t,e,n,i){function a(t){return _.includes(["onAlarmSendSms","onAlarmSendEmail"],t.name)}return n.getApplicationMO(t.applicationId).then(function(t){return e.addNewWithUI({},a,{c8y_Context:{context:"managedObject",id:t.id}})}).then(function(){return i.$broadcast("smartRulesListReload")})}]}),n.addBreadcrumbs("/ecosystem/microservice/microservices/:applicationId/status",{data:["$routeParams","c8yApplication","c8yBase","$filter",function(t,e,n,i){var a=i("humanizeAppName");return e.detail(t.applicationId).then(n.getResData).then(function(t){return[[{label:c("Ecosystem"),icon:"c8y-atom"},{path:"#/ecosystem/microservice/microservices",label:c("Microservices")},{label:a(t.name)},{label:c("Status")}]]})}]})}t.$inject=["c8yViewsProvider","c8yActionsProvider","c8yBreadcrumbsProvider","gettext"],angular.module("c8y.appStatus",[]).config(t)})();