2019-12-28 16:26:42 +00:00
|
|
|
import InboxMembersAPI from '../../api/inboxMembers';
|
|
|
|
|
2021-04-09 09:02:29 +00:00
|
|
|
export const actions = {
|
2019-12-28 16:26:42 +00:00
|
|
|
get(_, { inboxId }) {
|
|
|
|
return InboxMembersAPI.show(inboxId);
|
|
|
|
},
|
|
|
|
create(_, { inboxId, agentList }) {
|
2021-09-14 06:25:02 +00:00
|
|
|
return InboxMembersAPI.update({ inboxId, agentList });
|
2019-12-28 16:26:42 +00:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export default {
|
|
|
|
namespaced: true,
|
|
|
|
actions,
|
|
|
|
};
|