2020-03-20 19:47:01 +01:00
|
|
|
import { getStore } from "./store"
|
|
|
|
import { getBackendUiStore } from "./store/backend"
|
2020-09-21 14:49:34 +02:00
|
|
|
import { getAutomationStore } from "./store/automation/"
|
2020-09-29 16:26:56 +02:00
|
|
|
import analytics from "analytics"
|
2019-07-13 11:35:57 +02:00
|
|
|
|
2020-02-03 10:24:25 +01:00
|
|
|
export const store = getStore()
|
2020-03-20 19:47:01 +01:00
|
|
|
export const backendUiStore = getBackendUiStore()
|
2020-09-21 14:49:34 +02:00
|
|
|
export const automationStore = getAutomationStore()
|
2019-07-13 11:35:57 +02:00
|
|
|
|
|
|
|
export const initialise = async () => {
|
2020-02-03 10:24:25 +01:00
|
|
|
try {
|
2020-10-12 22:35:10 +02:00
|
|
|
await analytics.activate()
|
2020-09-29 16:26:56 +02:00
|
|
|
analytics.captureEvent("Builder Started")
|
2020-02-03 10:24:25 +01:00
|
|
|
} catch (err) {
|
|
|
|
console.log(err)
|
|
|
|
}
|
2020-05-07 11:53:34 +02:00
|
|
|
}
|