'use strict';
import { Role } from '../../meta/core/resources/roles/role.resource.js';
import { permissionLevels } from '../../meta/core/resources/enums/permission-enums.js';
import { roleIds } from '../../common/auth/roles/role-ids.js';
import { roleNames } from '../../common/auth/roles/role-names.js';
import { resourceNames } from '../../../fd-toolbox/resources/resource-names.js';
import { createResourceDirectlyInDb } from '../../meta/server/db/db.js';

var __defProp=Object['defineProperty'],__name=(_0x389cef,_0x22b4fe)=>__defProp(_0x389cef,'name',{'value':_0x22b4fe,'configurable':!![]});async function seedRolesDirectlyInDb(){await seedRole(roleIds['adminRoleId'],roleNames['admin'],permissionLevels['ten']),await seedRole(roleIds['userRoleId'],roleNames['user'],permissionLevels['three']),await seedRole(roleIds['traineeRoleId'],roleNames['trainee'],permissionLevels['three']),await seedRole(roleIds['customerRoleId'],roleNames['customer'],permissionLevels['eight']),await seedRole(roleIds['workspaceAdminRoleId'],roleNames['workspaceAdmin'],permissionLevels['nine']),await seedRole(roleIds['superAdminRoleId'],roleNames['superAdmin'],permissionLevels['ten']);}__name(seedRolesDirectlyInDb,'seedRolesDirectlyInDb');async function seedRole(_0x49edc0,_0x54a4ef,_0x18c9e6){const _0xb84ce6=new Role();_0xb84ce6['id']=_0x49edc0,_0xb84ce6['name']=_0x54a4ef,_0xb84ce6['level']=_0x18c9e6,await createResourceDirectlyInDb(_0xb84ce6,resourceNames['role']);}__name(seedRole,'seedRole');

export { seedRolesDirectlyInDb };
