Chatwoot/app/javascript/dashboard/api/channel/fbChannel.js

18 lines
357 B
JavaScript
Raw Normal View History

/* global axios */
import ApiClient from '../ApiClient';
class FBChannel extends ApiClient {
constructor() {
super('facebook_indicators', { accountScoped: true });
}
create(params) {
return axios.post(
`${this.url.replace(this.resource, '')}callbacks/register_facebook_page`,
params
);
}
}
export default new FBChannel();