2019-12-28 16:26:42 +00:00
|
|
|
/* global axios */
|
|
|
|
import ApiClient from './ApiClient';
|
|
|
|
|
|
|
|
class InboxMembers extends ApiClient {
|
|
|
|
constructor() {
|
2020-03-09 17:57:10 +00:00
|
|
|
super('inbox_members', { accountScoped: true });
|
2019-12-28 16:26:42 +00:00
|
|
|
}
|
|
|
|
|
2021-09-14 06:25:02 +00:00
|
|
|
update({ inboxId, agentList }) {
|
|
|
|
return axios.patch(this.url, {
|
2019-12-28 16:26:42 +00:00
|
|
|
inbox_id: inboxId,
|
|
|
|
user_ids: agentList,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default new InboxMembers();
|