text: dmdApp.factory("dmdIdentity",function(c,b){var a;if(!!c.bootstrappedUserObject){a=new b();angular.extend(a,c.bootstrappedUserObject)}return{currentUser:a,isAuthenticated:function(){return !!this.currentUser},isAuthorized:function(d){return !!this.currentUser&&this.currentUser.roles.indexOf(d)>-1}}});