
const { v4: uuid } = require("uuid");

module.exports = {
  /**
   * @param{import("sequelize").QueryInterface} queryInterface
   * @return {Promise<void>}
   */
  async up(queryInterface) {
    const createdAt = new Date();
    const updatedAt = new Date();

    /** @type {Map<string, string>} */
    const idMap = new Map();

    /**
     * @param {string} key
     * @return {string}
     */
    function getId(key) {
      if (idMap.has(key)) {
        return idMap.get(key);
      }
      const id = uuid();
      idMap.set(key, id);
      return id;
    }

    await queryInterface.bulkInsert("roles", [
      
      
      { id: getId("Administrator"), name: "Administrator", createdAt, updatedAt },
      
      
        
          { id: getId("IT_SECURITY_OFFICER"), name: "IT_SECURITY_OFFICER", createdAt, updatedAt },
        
          { id: getId("FINANCE_CONTROLLER"), name: "FINANCE_CONTROLLER", createdAt, updatedAt },
        
          { id: getId("HR_OPERATIONS_LEAD"), name: "HR_OPERATIONS_LEAD", createdAt, updatedAt },
        
          { id: getId("PAYROLL_SPECIALIST"), name: "PAYROLL_SPECIALIST", createdAt, updatedAt },
        
          { id: getId("DEPARTMENT_SUPERVISOR"), name: "DEPARTMENT_SUPERVISOR", createdAt, updatedAt },
        
      
      
      { id: getId("Public"), name: "Public", createdAt, updatedAt },
    ]);

    /**
     * @param {string} name
     */
    function createPermissions(name) {
      return [
        { id: getId(`CREATE_${name.toUpperCase()}`), createdAt, updatedAt, name: `CREATE_${name.toUpperCase()}` },
        { id: getId(`READ_${name.toUpperCase()}`), createdAt, updatedAt, name: `READ_${name.toUpperCase()}` },
        { id: getId(`UPDATE_${name.toUpperCase()}`), createdAt, updatedAt, name: `UPDATE_${name.toUpperCase()}` },
        { id: getId(`DELETE_${name.toUpperCase()}`), createdAt, updatedAt, name: `DELETE_${name.toUpperCase()}` }
      ];
    }

    const entities = [
      "users","roles","permissions","system_parameters","holidays","sss_contribution_tables","withholding_tax_tables","fiscal_periods","cost_centers","departments","positions","shifts","employees","employee_documents","time_records","biometric_imports","leave_types","leave_balances","leave_applications","employee_loans","loan_deductions","payroll_runs","payroll_items","bank_files","accounts","journal_entries","journal_lines","vendors","ap_invoices","ap_payments","ap_payment_lines","customers","ar_invoices","ar_invoice_items","job_requisitions","applicants","approval_requests","notifications","export_requests","password_histories","refresh_tokens","audit_logs",,
    ];
await queryInterface.bulkInsert("permissions", entities.flatMap(createPermissions));
await queryInterface.bulkInsert("permissions", [{ id: getId(`READ_API_DOCS`), createdAt, updatedAt, name: `READ_API_DOCS` }]);
await queryInterface.bulkInsert("permissions", [{ id: getId(`CREATE_SEARCH`), createdAt, updatedAt, name: `CREATE_SEARCH`}]);


await queryInterface.sequelize.query(`create table "rolesPermissionsPermissions"
(
"createdAt"           timestamp with time zone not null,
"updatedAt"           timestamp with time zone not null,
"roles_permissionsId" uuid                     not null,
"permissionId"        uuid                     not null,
primary key ("roles_permissionsId", "permissionId")
);`);


await queryInterface.bulkInsert("rolesPermissionsPermissions", [
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_USERS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_USERS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('READ_USERS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_SYSTEM_PARAMETERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_SYSTEM_PARAMETERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_SYSTEM_PARAMETERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_SYSTEM_PARAMETERS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_SYSTEM_PARAMETERS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_SYSTEM_PARAMETERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('UPDATE_SYSTEM_PARAMETERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('READ_SYSTEM_PARAMETERS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_HOLIDAYS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_HOLIDAYS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_HOLIDAYS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_HOLIDAYS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_HOLIDAYS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('CREATE_HOLIDAYS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_HOLIDAYS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('UPDATE_HOLIDAYS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('READ_HOLIDAYS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DEPARTMENT_SUPERVISOR"), permissionId: getId('READ_HOLIDAYS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_SSS_CONTRIBUTION_TABLES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_SSS_CONTRIBUTION_TABLES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_SSS_CONTRIBUTION_TABLES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_SSS_CONTRIBUTION_TABLES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_SSS_CONTRIBUTION_TABLES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_SSS_CONTRIBUTION_TABLES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('READ_SSS_CONTRIBUTION_TABLES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_WITHHOLDING_TAX_TABLES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_WITHHOLDING_TAX_TABLES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_WITHHOLDING_TAX_TABLES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_WITHHOLDING_TAX_TABLES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_WITHHOLDING_TAX_TABLES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_WITHHOLDING_TAX_TABLES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('READ_WITHHOLDING_TAX_TABLES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_FISCAL_PERIODS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_FISCAL_PERIODS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_FISCAL_PERIODS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_FISCAL_PERIODS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('CREATE_FISCAL_PERIODS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_FISCAL_PERIODS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('UPDATE_FISCAL_PERIODS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_FISCAL_PERIODS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('READ_FISCAL_PERIODS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_COST_CENTERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_COST_CENTERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_COST_CENTERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_COST_CENTERS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_COST_CENTERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('UPDATE_COST_CENTERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_COST_CENTERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('UPDATE_COST_CENTERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('READ_COST_CENTERS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DEPARTMENT_SUPERVISOR"), permissionId: getId('READ_COST_CENTERS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_DEPARTMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_DEPARTMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_DEPARTMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_DEPARTMENTS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_DEPARTMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('UPDATE_DEPARTMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('CREATE_DEPARTMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_DEPARTMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('UPDATE_DEPARTMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('READ_DEPARTMENTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DEPARTMENT_SUPERVISOR"), permissionId: getId('READ_DEPARTMENTS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_POSITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_POSITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_POSITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_POSITIONS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_POSITIONS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('CREATE_POSITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_POSITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('UPDATE_POSITIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('READ_POSITIONS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DEPARTMENT_SUPERVISOR"), permissionId: getId('READ_POSITIONS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_SHIFTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_SHIFTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_SHIFTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_SHIFTS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_SHIFTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('CREATE_SHIFTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_SHIFTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('UPDATE_SHIFTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('READ_SHIFTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DEPARTMENT_SUPERVISOR"), permissionId: getId('READ_SHIFTS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_EMPLOYEES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_EMPLOYEES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_EMPLOYEES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_EMPLOYEES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_EMPLOYEES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('CREATE_EMPLOYEES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_EMPLOYEES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('UPDATE_EMPLOYEES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('READ_EMPLOYEES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('UPDATE_EMPLOYEES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DEPARTMENT_SUPERVISOR"), permissionId: getId('READ_EMPLOYEES') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_EMPLOYEE_DOCUMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_EMPLOYEE_DOCUMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_EMPLOYEE_DOCUMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_EMPLOYEE_DOCUMENTS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_EMPLOYEE_DOCUMENTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('CREATE_EMPLOYEE_DOCUMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_EMPLOYEE_DOCUMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('UPDATE_EMPLOYEE_DOCUMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('READ_EMPLOYEE_DOCUMENTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_TIME_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_TIME_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_TIME_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_TIME_RECORDS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_TIME_RECORDS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('CREATE_TIME_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_TIME_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('UPDATE_TIME_RECORDS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('READ_TIME_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('UPDATE_TIME_RECORDS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DEPARTMENT_SUPERVISOR"), permissionId: getId('READ_TIME_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DEPARTMENT_SUPERVISOR"), permissionId: getId('UPDATE_TIME_RECORDS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_BIOMETRIC_IMPORTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_BIOMETRIC_IMPORTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_BIOMETRIC_IMPORTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_BIOMETRIC_IMPORTS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_BIOMETRIC_IMPORTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('CREATE_BIOMETRIC_IMPORTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_BIOMETRIC_IMPORTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('UPDATE_BIOMETRIC_IMPORTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('READ_BIOMETRIC_IMPORTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('UPDATE_BIOMETRIC_IMPORTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_LEAVE_TYPES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_LEAVE_TYPES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_LEAVE_TYPES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_LEAVE_TYPES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_LEAVE_TYPES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('CREATE_LEAVE_TYPES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_LEAVE_TYPES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('UPDATE_LEAVE_TYPES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('READ_LEAVE_TYPES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DEPARTMENT_SUPERVISOR"), permissionId: getId('READ_LEAVE_TYPES') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_LEAVE_BALANCES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_LEAVE_BALANCES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_LEAVE_BALANCES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_LEAVE_BALANCES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_LEAVE_BALANCES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('CREATE_LEAVE_BALANCES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_LEAVE_BALANCES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('UPDATE_LEAVE_BALANCES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('READ_LEAVE_BALANCES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('UPDATE_LEAVE_BALANCES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DEPARTMENT_SUPERVISOR"), permissionId: getId('READ_LEAVE_BALANCES') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_LEAVE_APPLICATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_LEAVE_APPLICATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_LEAVE_APPLICATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_LEAVE_APPLICATIONS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_LEAVE_APPLICATIONS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('CREATE_LEAVE_APPLICATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_LEAVE_APPLICATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('UPDATE_LEAVE_APPLICATIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('READ_LEAVE_APPLICATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('UPDATE_LEAVE_APPLICATIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DEPARTMENT_SUPERVISOR"), permissionId: getId('READ_LEAVE_APPLICATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DEPARTMENT_SUPERVISOR"), permissionId: getId('UPDATE_LEAVE_APPLICATIONS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_EMPLOYEE_LOANS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_EMPLOYEE_LOANS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_EMPLOYEE_LOANS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_EMPLOYEE_LOANS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_EMPLOYEE_LOANS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('CREATE_EMPLOYEE_LOANS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_EMPLOYEE_LOANS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('UPDATE_EMPLOYEE_LOANS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('READ_EMPLOYEE_LOANS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('UPDATE_EMPLOYEE_LOANS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DEPARTMENT_SUPERVISOR"), permissionId: getId('READ_EMPLOYEE_LOANS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_LOAN_DEDUCTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_LOAN_DEDUCTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_LOAN_DEDUCTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_LOAN_DEDUCTIONS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_LOAN_DEDUCTIONS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('CREATE_LOAN_DEDUCTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_LOAN_DEDUCTIONS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('READ_LOAN_DEDUCTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('UPDATE_LOAN_DEDUCTIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DEPARTMENT_SUPERVISOR"), permissionId: getId('READ_LOAN_DEDUCTIONS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_PAYROLL_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_PAYROLL_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_PAYROLL_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_PAYROLL_RUNS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_PAYROLL_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('UPDATE_PAYROLL_RUNS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_PAYROLL_RUNS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('CREATE_PAYROLL_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('READ_PAYROLL_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('UPDATE_PAYROLL_RUNS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DEPARTMENT_SUPERVISOR"), permissionId: getId('READ_PAYROLL_RUNS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_PAYROLL_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_PAYROLL_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_PAYROLL_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_PAYROLL_ITEMS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_PAYROLL_ITEMS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_PAYROLL_ITEMS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('CREATE_PAYROLL_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('READ_PAYROLL_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('UPDATE_PAYROLL_ITEMS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DEPARTMENT_SUPERVISOR"), permissionId: getId('READ_PAYROLL_ITEMS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_BANK_FILES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_BANK_FILES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_BANK_FILES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_BANK_FILES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_BANK_FILES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('UPDATE_BANK_FILES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_BANK_FILES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('READ_BANK_FILES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('UPDATE_BANK_FILES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_ACCOUNTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('CREATE_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('UPDATE_ACCOUNTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_ACCOUNTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('READ_ACCOUNTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_JOURNAL_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_JOURNAL_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_JOURNAL_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_JOURNAL_ENTRIES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('CREATE_JOURNAL_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_JOURNAL_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('UPDATE_JOURNAL_ENTRIES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_JOURNAL_ENTRIES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('READ_JOURNAL_ENTRIES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_JOURNAL_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_JOURNAL_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_JOURNAL_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_JOURNAL_LINES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('CREATE_JOURNAL_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_JOURNAL_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('UPDATE_JOURNAL_LINES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_JOURNAL_LINES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('READ_JOURNAL_LINES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_VENDORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_VENDORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_VENDORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_VENDORS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('CREATE_VENDORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_VENDORS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('UPDATE_VENDORS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_VENDORS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_AP_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_AP_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_AP_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_AP_INVOICES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('CREATE_AP_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_AP_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('UPDATE_AP_INVOICES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_AP_INVOICES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_AP_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_AP_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_AP_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_AP_PAYMENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('CREATE_AP_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_AP_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('UPDATE_AP_PAYMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_AP_PAYMENTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_AP_PAYMENT_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_AP_PAYMENT_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_AP_PAYMENT_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_AP_PAYMENT_LINES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('CREATE_AP_PAYMENT_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_AP_PAYMENT_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('UPDATE_AP_PAYMENT_LINES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_AP_PAYMENT_LINES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_CUSTOMERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_CUSTOMERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_CUSTOMERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_CUSTOMERS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('CREATE_CUSTOMERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_CUSTOMERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('UPDATE_CUSTOMERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_CUSTOMERS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_AR_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_AR_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_AR_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_AR_INVOICES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('CREATE_AR_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_AR_INVOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('UPDATE_AR_INVOICES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_AR_INVOICES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_AR_INVOICE_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_AR_INVOICE_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_AR_INVOICE_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_AR_INVOICE_ITEMS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('CREATE_AR_INVOICE_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_AR_INVOICE_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('UPDATE_AR_INVOICE_ITEMS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_AR_INVOICE_ITEMS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_JOB_REQUISITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_JOB_REQUISITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_JOB_REQUISITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_JOB_REQUISITIONS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_JOB_REQUISITIONS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('CREATE_JOB_REQUISITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_JOB_REQUISITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('UPDATE_JOB_REQUISITIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('READ_JOB_REQUISITIONS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DEPARTMENT_SUPERVISOR"), permissionId: getId('READ_JOB_REQUISITIONS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_APPLICANTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_APPLICANTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_APPLICANTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_APPLICANTS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_APPLICANTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('CREATE_APPLICANTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_APPLICANTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('UPDATE_APPLICANTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('READ_APPLICANTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DEPARTMENT_SUPERVISOR"), permissionId: getId('READ_APPLICANTS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_APPROVAL_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_APPROVAL_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_APPROVAL_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_APPROVAL_REQUESTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('CREATE_APPROVAL_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_APPROVAL_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('UPDATE_APPROVAL_REQUESTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('CREATE_APPROVAL_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_APPROVAL_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('UPDATE_APPROVAL_REQUESTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('READ_APPROVAL_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('UPDATE_APPROVAL_REQUESTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DEPARTMENT_SUPERVISOR"), permissionId: getId('READ_APPROVAL_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DEPARTMENT_SUPERVISOR"), permissionId: getId('UPDATE_APPROVAL_REQUESTS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_NOTIFICATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_NOTIFICATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_NOTIFICATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_NOTIFICATIONS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_NOTIFICATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('UPDATE_NOTIFICATIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_NOTIFICATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('UPDATE_NOTIFICATIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('READ_NOTIFICATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('UPDATE_NOTIFICATIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DEPARTMENT_SUPERVISOR"), permissionId: getId('READ_NOTIFICATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DEPARTMENT_SUPERVISOR"), permissionId: getId('UPDATE_NOTIFICATIONS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_EXPORT_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_EXPORT_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_EXPORT_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_EXPORT_REQUESTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('CREATE_EXPORT_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_EXPORT_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('UPDATE_EXPORT_REQUESTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_EXPORT_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('UPDATE_EXPORT_REQUESTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('READ_EXPORT_REQUESTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('UPDATE_EXPORT_REQUESTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_PASSWORD_HISTORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_PASSWORD_HISTORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_PASSWORD_HISTORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_PASSWORD_HISTORIES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_PASSWORD_HISTORIES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_PASSWORD_HISTORIES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_REFRESH_TOKENS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_REFRESH_TOKENS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_REFRESH_TOKENS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_REFRESH_TOKENS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_REFRESH_TOKENS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_REFRESH_TOKENS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_AUDIT_LOGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('READ_AUDIT_LOGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('UPDATE_AUDIT_LOGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('DELETE_AUDIT_LOGS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('READ_AUDIT_LOGS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('READ_AUDIT_LOGS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('READ_AUDIT_LOGS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
     
  
      
      
        
            { createdAt, updatedAt, roles_permissionsId: getId("IT_SECURITY_OFFICER"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("FINANCE_CONTROLLER"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("HR_OPERATIONS_LEAD"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("PAYROLL_SPECIALIST"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("DEPARTMENT_SUPERVISOR"), permissionId: getId('CREATE_SEARCH') },
        
      
      
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_USERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_USERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_USERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_USERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_ROLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ROLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ROLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ROLES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_PERMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PERMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PERMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PERMISSIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SYSTEM_PARAMETERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_SYSTEM_PARAMETERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_SYSTEM_PARAMETERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_SYSTEM_PARAMETERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_HOLIDAYS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_HOLIDAYS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_HOLIDAYS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_HOLIDAYS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SSS_CONTRIBUTION_TABLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_SSS_CONTRIBUTION_TABLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_SSS_CONTRIBUTION_TABLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_SSS_CONTRIBUTION_TABLES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_WITHHOLDING_TAX_TABLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_WITHHOLDING_TAX_TABLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_WITHHOLDING_TAX_TABLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_WITHHOLDING_TAX_TABLES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_FISCAL_PERIODS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_FISCAL_PERIODS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_FISCAL_PERIODS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_FISCAL_PERIODS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_COST_CENTERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_COST_CENTERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_COST_CENTERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_COST_CENTERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_DEPARTMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_DEPARTMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_DEPARTMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_DEPARTMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_POSITIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_POSITIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_POSITIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_POSITIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SHIFTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_SHIFTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_SHIFTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_SHIFTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_EMPLOYEES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_EMPLOYEES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_EMPLOYEES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_EMPLOYEES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_EMPLOYEE_DOCUMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_EMPLOYEE_DOCUMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_EMPLOYEE_DOCUMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_EMPLOYEE_DOCUMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_TIME_RECORDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_TIME_RECORDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_TIME_RECORDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_TIME_RECORDS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_BIOMETRIC_IMPORTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_BIOMETRIC_IMPORTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_BIOMETRIC_IMPORTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_BIOMETRIC_IMPORTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_LEAVE_TYPES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_LEAVE_TYPES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_LEAVE_TYPES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_LEAVE_TYPES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_LEAVE_BALANCES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_LEAVE_BALANCES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_LEAVE_BALANCES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_LEAVE_BALANCES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_LEAVE_APPLICATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_LEAVE_APPLICATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_LEAVE_APPLICATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_LEAVE_APPLICATIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_EMPLOYEE_LOANS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_EMPLOYEE_LOANS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_EMPLOYEE_LOANS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_EMPLOYEE_LOANS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_LOAN_DEDUCTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_LOAN_DEDUCTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_LOAN_DEDUCTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_LOAN_DEDUCTIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_PAYROLL_RUNS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PAYROLL_RUNS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PAYROLL_RUNS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PAYROLL_RUNS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_PAYROLL_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PAYROLL_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PAYROLL_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PAYROLL_ITEMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_BANK_FILES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_BANK_FILES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_BANK_FILES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_BANK_FILES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_ACCOUNTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ACCOUNTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ACCOUNTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ACCOUNTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_JOURNAL_ENTRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_JOURNAL_ENTRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_JOURNAL_ENTRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_JOURNAL_ENTRIES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_JOURNAL_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_JOURNAL_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_JOURNAL_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_JOURNAL_LINES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_VENDORS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_VENDORS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_VENDORS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_VENDORS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_AP_INVOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_AP_INVOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_AP_INVOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_AP_INVOICES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_AP_PAYMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_AP_PAYMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_AP_PAYMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_AP_PAYMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_AP_PAYMENT_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_AP_PAYMENT_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_AP_PAYMENT_LINES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_AP_PAYMENT_LINES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CUSTOMERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CUSTOMERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CUSTOMERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CUSTOMERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_AR_INVOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_AR_INVOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_AR_INVOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_AR_INVOICES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_AR_INVOICE_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_AR_INVOICE_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_AR_INVOICE_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_AR_INVOICE_ITEMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_JOB_REQUISITIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_JOB_REQUISITIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_JOB_REQUISITIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_JOB_REQUISITIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_APPLICANTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_APPLICANTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_APPLICANTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_APPLICANTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_APPROVAL_REQUESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_APPROVAL_REQUESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_APPROVAL_REQUESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_APPROVAL_REQUESTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_NOTIFICATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_NOTIFICATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_NOTIFICATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_NOTIFICATIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_EXPORT_REQUESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_EXPORT_REQUESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_EXPORT_REQUESTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_EXPORT_REQUESTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_PASSWORD_HISTORIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PASSWORD_HISTORIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PASSWORD_HISTORIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PASSWORD_HISTORIES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_REFRESH_TOKENS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_REFRESH_TOKENS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_REFRESH_TOKENS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_REFRESH_TOKENS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_AUDIT_LOGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_AUDIT_LOGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_AUDIT_LOGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_AUDIT_LOGS') },
    
    
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_API_DOCS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SEARCH') },
    ]);


  await queryInterface.sequelize.query(`UPDATE "users" SET "app_roleId"='${getId("SuperAdmin")}' WHERE "email"='super_admin@flatlogic.com'`);
  await queryInterface.sequelize.query(`UPDATE "users" SET "app_roleId"='${getId("Administrator")}' WHERE "email"='admin@flatlogic.com'`);
  
   
      
      
        
        
           await queryInterface.sequelize.query(`UPDATE "users" SET "app_roleId"='${getId("IT_SECURITY_OFFICER")}' WHERE "email"='client@hello.com'`);
        await queryInterface.sequelize.query(`UPDATE "users" SET "app_roleId"='${getId("FINANCE_CONTROLLER")}' WHERE "email"='john@doe.com'`);
       
      
      

}
};

