mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
11 lines
310 B
JavaScript
11 lines
310 B
JavaScript
import GroupChatReporter from './groupChatReporter';
|
|
import InboxChatReporter from './inboxChatReporter';
|
|
|
|
export function chatReporterFactory (type, req, res) {
|
|
if (type === 'Group') {
|
|
return new GroupChatReporter(req, res);
|
|
} if (type === 'Inbox') {
|
|
return new InboxChatReporter(req, res);
|
|
}
|
|
}
|