Chatwoot/app/javascript/dashboard/store/modules/inboxMembers.js

25 lines
397 B
JavaScript
Raw Normal View History

import InboxMembersAPI from '../../api/inboxMembers';
const state = {};
const getters = {};
const actions = {
get(_, { inboxId }) {
return InboxMembersAPI.show(inboxId);
},
create(_, { inboxId, agentList }) {
return InboxMembersAPI.create({ inboxId, agentList });
},
};
const mutations = {};
export default {
namespaced: true,
state,
getters,
actions,
mutations,
};