(()=>{function e(e,i,t,o,c,a){var r={anyRole:["ROLE_APPLICATION_MANAGEMENT_READ","ROLE_APPLICATION_MANAGEMENT_ADMIN"]};e.addNavigation({parent:{name:a("Ecosystem"),icon:"c8y-atom"},name:a("Applications"),path:"/ecosystem/application",icon:"c8y-modules",routerLinkExact:!1,priority:3900,showIfPermissions:r}),e.addNavigation({parent:{name:a("Ecosystem"),icon:"c8y-atom"},name:a("Extensions"),path:"/ecosystem/extension/extensions",icon:"big-parcel",routerLinkExact:!1,priority:3850,showIfPermissions:r}),e.addNavigation({parent:{name:a("Ecosystem"),icon:"c8y-atom"},name:a("Microservices"),path:"/ecosystem/microservice/microservices",icon:"microchip",routerLinkExact:!1,priority:3800,showIfPermissions:r}),i.when("/ecosystem/microservice/microservices/:applicationId",{controller:"permissionsCtrl",templateUrl:":::PLUGIN_PATH:::/views/permissions.html",icon:"check-square-o",name:a("Permissions"),showIf:["$routeParams","c8yBase","c8yApplication",function(e,i,t){return t.detail(e.applicationId).then(i.getResData).then(function(e){return"MICROSERVICE"===e.type})}]}),t.addTitle("/ecosystem/microservice/microservices/:applicationId",{data:["$q",function(e){return e.when({templateUrl:":::PLUGIN_PATH:::/views/title.html"})}]}),o.addUrlAction({path:"/ecosystem/microservice/microservices/:applicationId/archives",text:a("Reactivate"),actionBar:!0,position:"right",button:{cls:"default"},icon:"undo",priority:4e3,showIf:["c8yApplication","$routeParams","c8yBase",function(e,i,t){return e.detail(i.applicationId).then(t.getResData).then(function(e){return"HOSTED"===e.type})}],action:["$routeParams","c8yApplication","c8yAlert",function(e,i,t){i.refreshHostedApp(e.applicationId).then(function(){t.success(a("Application reactivated."))})}]}),c.addBreadcrumbs("/ecosystem/microservice/microservices/:applicationId/permissions",{data:["$routeParams","c8yApplication","c8yBase","$filter",function(e,i,t,o){var c=o("humanizeAppName");return i.detail(e.applicationId).then(t.getResData).then(function(e){return[[{label:a("Ecosystem"),icon:"c8y-atom"},{path:"#/ecosystem/microservice/microservices",label:a("Microservices")},{label:c(e.name)},{label:a("Permissions")}]]})}]})}e.$inject=["c8yNavigatorProvider","c8yViewsProvider","c8yTitleProvider","c8yActionsProvider","c8yBreadcrumbsProvider","gettext"],angular.module("c8y.parts.applications",[]).config(e)})();