(()=>{function n(i,n,t){var o=this,r=t.applicationId;function e(n){o.application=n,o.requiredRoles=a(o.application.requiredRoles),o.roles=a(o.application.roles)}function a(n){return i.convertServerPermissionsToUI(_.map(n,function(n){return{id:n}}))}_.assign(o,{$onInit:function(){n.detail(r).then(function(n){return n.data}).then(e)}})}n.$inject=["c8yPermissions","c8yApplication","$routeParams"],angular.module("c8y.parts.applications").controller("permissionsCtrl",n)})();