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
|
|
|
}
|
|
|
|
|
|
|
|
create({ inboxId, agentList }) {
|
|
|
|
return axios.post(this.url, {
|
|
|
|
inbox_id: inboxId,
|
|
|
|
user_ids: agentList,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default new InboxMembers();
|