import Vue from 'vue'
import Vuex from 'vuex'
import app from './modules/app'
import serverConfig from './modules/serverConfig'
import user from './modules/user'
import telWebsocket from './modules/telWebsocket'
import tagsView from './modules/tagsView'
import permission from './modules/permission'
import lineChatSocket from './modules/lineChatSocket'
import getters from './getters'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    serverConfig,
    user,
    telWebsocket,
    tagsView,
    lineChatSocket,
    permission
  },
  getters
})

export default store
