appointments.js
1 year ago
attendees.js
1 year ago
colorManipulation.js
3 years ago
customer.js
1 year ago
date.js
1 year ago
defaultCustomize.js
1 year ago
employee.js
1 year ago
events.js
1 year ago
formFieldsTemplates.js
3 years ago
formatting.js
1 year ago
helper.js
1 year ago
image.js
1 year ago
integrationApple.js
1 year ago
integrationGoogle.js
1 year ago
integrationOutlook.js
1 year ago
integrationStripe.js
1 year ago
integrationZoom.js
1 year ago
licence.js
2 years ago
objectAndArrayManipulation.js
3 years ago
pricing.js
1 year ago
recurring.js
1 year ago
responsive.js
1 year ago
scrollElements.js
4 years ago
settings.js
1 year ago
translationsElementPlus.js
1 year ago
integrationZoom.js
31 lines
| 1 | import httpClient from "../../../plugins/axios"; |
| 2 | import {useAuthorizationHeaderObject} from "../public/panel"; |
| 3 | |
| 4 | function useZoomUsers (store) { |
| 5 | store.commit('auth/setZoomLoading', true) |
| 6 | |
| 7 | httpClient.get( |
| 8 | '/zoom/users', |
| 9 | Object.assign( |
| 10 | useAuthorizationHeaderObject(store), |
| 11 | { |
| 12 | params: { |
| 13 | source: 'cabinet-provider', |
| 14 | }, |
| 15 | } |
| 16 | ) |
| 17 | ).then((response) => { |
| 18 | if ('data' in response.data && 'users' in response.data.data) { |
| 19 | store.commit('auth/setZoomUsers', response.data.data?.users ? response.data.data.users : []) |
| 20 | } |
| 21 | }).catch((error) => { |
| 22 | console.log(error) |
| 23 | }).finally(() => { |
| 24 | store.commit('auth/setZoomLoading', false) |
| 25 | }) |
| 26 | } |
| 27 | |
| 28 | export { |
| 29 | useZoomUsers, |
| 30 | } |
| 31 |