'use strict';

const path = require('path');
const FileBackend = require('../backends/FileBackend');

const backend = new FileBackend({
    baseDir: path.resolve(__dirname, '../../../datasets/assetData'),
    layout: 'single-file',
    filePath: 'monsterSamples.json',
    arrayKey: 'samples',
    indexField: 'code',
    caseInsensitive: true,
});

module.exports = {
    name: 'monsterSamples',
    description: 'Monster (Aquon) sample codes keyed by sample code',
    loadAll: () => backend.loadAll(),
    refresh: () => backend.refresh(),
};
