import { Meteor } from 'meteor/meteor';

import '../imports/api/methods/worklist.js';
import '../imports/api/methods/changePassword.js';
import '../imports/api/methods/devicecode.js';
import '../imports/api/methods/brands.js';
import '../imports/api/methods/hisLink.js';
import '../imports/api/methods/clients.js';
import '../imports/api/methods/devicemap.js';
import '../imports/api/methods/users.js'


import '../imports/api/server/publications/worklist.js';
import '../imports/api/server/publications/devicecode.js';
import '../imports/api/server/publications/hislink.js';
import '../imports/api/server/publications/brands.js';
import '../imports/api/server/publications/clients.js';
import '../imports/api/server/publications/devicemap.js';
import '../imports/api/server/publications/users.js';
import '../imports/api/server/publications/worklist4hislink.js'

import { Accounts } from "meteor/accounts-base";

Meteor.startup(() => {
    let marcoUser = Meteor.users.findOne({ username: "marcoadmin" });
    if (marcoUser == undefined || marcoUser == null)
        Accounts.createUser({
            username: 'marcoadmin',
            password: 'sysAdmin4.21'
        });


});