import DatabaseService from "./DatabaseService";
import Model from "../../Models/DatabaseModels/ProjectSCIM";
import ObjectID from "../../Types/ObjectID";
export class Service extends DatabaseService {
    constructor() {
        super(Model);
    }
    async onBeforeCreate(createBy) {
        if (!createBy.data.bearerToken) {
            // Generate a secure bearer token if not provided
            createBy.data.bearerToken = ObjectID.generate().toString();
        }
        return {
            createBy: createBy,
            carryForward: {},
        };
    }
}
export default new Service();
//# sourceMappingURL=ProjectSCIMService.js.map