2019-01-31 13:40:27 +01:00
|
|
|
import { AppConfig } from '../../core/app-config';
|
2018-09-20 13:03:51 +02:00
|
|
|
import { User } from '../../shared/models/users/user';
|
|
|
|
import { Group } from '../../shared/models/users/group';
|
|
|
|
import { PersonalNote } from '../../shared/models/users/personal-note';
|
2019-01-31 13:40:27 +01:00
|
|
|
import { UserRepositoryService } from 'app/core/repositories/users/user-repository.service';
|
|
|
|
import { GroupRepositoryService } from 'app/core/repositories/users/group-repository.service';
|
|
|
|
import { PersonalNoteRepositoryService } from 'app/core/repositories/users/personal-note-repository.service';
|
2018-09-20 13:03:51 +02:00
|
|
|
|
|
|
|
export const UsersAppConfig: AppConfig = {
|
|
|
|
name: 'users',
|
|
|
|
models: [
|
2019-01-31 13:40:27 +01:00
|
|
|
{ collectionString: 'users/user', model: User, searchOrder: 4, repository: UserRepositoryService },
|
|
|
|
{ collectionString: 'users/group', model: Group, repository: GroupRepositoryService },
|
|
|
|
{ collectionString: 'users/personal-note', model: PersonalNote, repository: PersonalNoteRepositoryService }
|
2018-09-20 13:03:51 +02:00
|
|
|
],
|
|
|
|
mainMenuEntries: [
|
|
|
|
{
|
|
|
|
route: '/users',
|
|
|
|
displayName: 'Participants',
|
2018-10-11 14:03:44 +02:00
|
|
|
icon: 'people',
|
2018-09-20 13:03:51 +02:00
|
|
|
weight: 500,
|
|
|
|
permission: 'users.can_see_name'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|