"""Module manifest — see core/modules/model.py and APPS_PLATFORM §4.""" from core.modules.model import Module, Mount, Perm MODULE = Module( key='chat', kind='feature', name='Staff chat', description='Staff chat and manager messages to staff.', permissions=( Perm('chat.use', 'Use staff chat', roles=('owner', 'store_manager', 'staff_manager', 'chef', 'assistant_chef', 'barista', 'barman', 'waiter', 'assistant_waiter')), Perm('chat.broadcast', 'Send messages to staff', roles=('owner', 'store_manager', 'staff_manager')), ), routers=( Mount('routers.chat', '/api/chat'), Mount('routers.messages', '/api/notifications'), ), )