"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "STEPS", {
    enumerable: true,
    get: function() {
        return STEPS;
    }
});
const _constants = require("@tamanu/constants");
const _step = require("../step.js");
const STEPS = [
    {
        at: _step.END,
        after: [
            (0, _step.needsMigration)('1739968205100-addLSFFunction.ts')
        ],
        async check ({ models: { LocalSystemFact } }) {
            return !await LocalSystemFact.get(_constants.FACT_DEVICE_KEY);
        },
        async run ({ models: { LocalSystemFact } }) {
            await LocalSystemFact.getDeviceKey();
        }
    }
];

//# sourceMappingURL=1749079898013-initDeviceKey.js.map