2021-08-23 06:04:12 +00:00
|
|
|
import { getters } from './getters';
|
|
|
|
import { actions } from './actions';
|
|
|
|
import { mutations } from './mutations';
|
|
|
|
|
|
|
|
const state = {
|
|
|
|
conversations: {
|
|
|
|
byId: {},
|
|
|
|
allIds: [],
|
|
|
|
uiFlags: {
|
|
|
|
byId: {
|
|
|
|
// 1: { allMessagesLoaded: false, isAgentTyping: false, isFetching: false },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
messages: {
|
|
|
|
byId: {},
|
|
|
|
allIds: [],
|
|
|
|
uiFlags: {
|
|
|
|
byId: {
|
|
|
|
// 1: { isCreating: false, isPending: false, isDeleting: false },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
uiFlags: {
|
|
|
|
allConversationsLoaded: false,
|
|
|
|
isFetching: false,
|
2021-08-26 14:49:52 +00:00
|
|
|
isCreating: true,
|
2021-08-23 06:04:12 +00:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export default {
|
|
|
|
namespaced: true,
|
|
|
|
state,
|
|
|
|
getters,
|
|
|
|
actions,
|
|
|
|
mutations,
|
|
|
|
};
|