Restructure omni services and add Chatwoot research snapshot
This commit is contained in:
13
research/chatwoot/app/javascript/dashboard/api/channels.js
Normal file
13
research/chatwoot/app/javascript/dashboard/api/channels.js
Normal file
@@ -0,0 +1,13 @@
|
||||
/* eslint no-console: 0 */
|
||||
/* global axios */
|
||||
/* eslint no-undef: "error" */
|
||||
/* eslint no-unused-expressions: ["error", { "allowShortCircuit": true }] */
|
||||
import endPoints from './endPoints';
|
||||
|
||||
export default {
|
||||
fetchFacebookPages(token, accountId) {
|
||||
const urlData = endPoints('fetchFacebookPages');
|
||||
urlData.params.omniauth_token = token;
|
||||
return axios.post(urlData.url(accountId), urlData.params);
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user