import Vue from "vue";
import Vuex from "vuex";
import login from "@/store/login.js";
import menu from "@/store/menu.js";
import storeProcess from "@/store/storeProcess.js";
import user from '@/store/user.js';
import oftenFlow from '@/store/oftenFlow.js';
import mail from '@/store/mail.js';
import approvalItem from '@/store/approvalItemList.js';
import messageReceiver from '@/store/messageReceiverList.js';
import agent from '@/store/agentList.js';
import deputy from '@/store/bpmDeputy.js';
import form from '@/store/formStore.js';
import relatedProcess from '@/store/relatedProcess.js';
import dialog from '@/store/dialogStore.js';
import tenant from '@/store/tenant.js'
import index from '@/store/index.js'

Vue.use(Vuex);

const debug = process.env.NODE_ENV !== "production";

export default new Vuex.Store({
  modules: {
    login,
    menu,
    storeProcess,
    user,
    oftenFlow,
    mail,
    approvalItem,
    messageReceiver,
    agent,
    deputy,
    form,
    relatedProcess,
    dialog,
    tenant,
    index
  },
  strict: debug
});
