
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("SystemOwner"), name: "System Owner", createdAt, updatedAt },
        
          { id: getId("FinanceDirector"), name: "Finance Director", createdAt, updatedAt },
        
          { id: getId("AccountingSupervisor"), name: "Accounting Supervisor", createdAt, updatedAt },
        
          { id: getId("Accountant"), name: "Accountant", createdAt, updatedAt },
        
          { id: getId("Auditor"), name: "Auditor", 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","businesses","branches","fiscal_years","user_role_assignments","app_menus","role_permissions","app_settings","currencies","currency_rates","numbering_profiles","widgets","license_customers","license_products","license_keys","license_activations","counterparties","cost_centers","projects","contracts","cash_boxes","banks","bank_accounts","letters_of_credit","pos_terminals","sales_item_groups","warehouse_item_groups","customer_groups","analytic_dimensions","accounts","journal_voucher_types","journal_vouchers","journal_lines","approval_workflows","workflow_steps","voucher_approvals","year_end_operations","report_definitions","report_runs","chat_conversations","chat_participants","chat_messages","form_alarms","data_export_jobs",,
    ];
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("SystemOwner"), permissionId: getId('CREATE_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_USERS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_BUSINESSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_BUSINESSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_BUSINESSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_BUSINESSES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_BUSINESSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_BUSINESSES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_BUSINESSES') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_BRANCHES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_BRANCHES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_BRANCHES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_BRANCHES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_BRANCHES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_BRANCHES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_BRANCHES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_BRANCHES') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_FISCAL_YEARS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_FISCAL_YEARS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_FISCAL_YEARS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_FISCAL_YEARS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('CREATE_FISCAL_YEARS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_FISCAL_YEARS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_FISCAL_YEARS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('READ_FISCAL_YEARS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_FISCAL_YEARS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('UPDATE_FISCAL_YEARS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_FISCAL_YEARS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_USER_ROLE_ASSIGNMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_USER_ROLE_ASSIGNMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_USER_ROLE_ASSIGNMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_USER_ROLE_ASSIGNMENTS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_APP_MENUS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_APP_MENUS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_APP_MENUS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_APP_MENUS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_ROLE_PERMISSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_ROLE_PERMISSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_ROLE_PERMISSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_ROLE_PERMISSIONS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_APP_SETTINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_APP_SETTINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_APP_SETTINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_APP_SETTINGS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_APP_SETTINGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_APP_SETTINGS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_APP_SETTINGS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_APP_SETTINGS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_CURRENCIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_CURRENCIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_CURRENCIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_CURRENCIES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('CREATE_CURRENCIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_CURRENCIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_CURRENCIES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('READ_CURRENCIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_CURRENCIES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('UPDATE_CURRENCIES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_CURRENCIES') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_CURRENCY_RATES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_CURRENCY_RATES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_CURRENCY_RATES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_CURRENCY_RATES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('CREATE_CURRENCY_RATES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_CURRENCY_RATES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_CURRENCY_RATES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('CREATE_CURRENCY_RATES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('READ_CURRENCY_RATES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_CURRENCY_RATES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('READ_CURRENCY_RATES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('UPDATE_CURRENCY_RATES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_CURRENCY_RATES') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_NUMBERING_PROFILES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_NUMBERING_PROFILES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_NUMBERING_PROFILES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_NUMBERING_PROFILES') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_NUMBERING_PROFILES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_NUMBERING_PROFILES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_NUMBERING_PROFILES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_NUMBERING_PROFILES') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_WIDGETS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_WIDGETS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_WIDGETS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_WIDGETS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_WIDGETS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_WIDGETS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_WIDGETS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_WIDGETS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_LICENSE_CUSTOMERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_LICENSE_CUSTOMERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_LICENSE_CUSTOMERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_LICENSE_CUSTOMERS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_LICENSE_PRODUCTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_LICENSE_PRODUCTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_LICENSE_PRODUCTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_LICENSE_PRODUCTS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_LICENSE_KEYS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_LICENSE_KEYS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_LICENSE_KEYS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_LICENSE_KEYS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_LICENSE_ACTIVATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_LICENSE_ACTIVATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_LICENSE_ACTIVATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_LICENSE_ACTIVATIONS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_COUNTERPARTIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_COUNTERPARTIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_COUNTERPARTIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_COUNTERPARTIES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('CREATE_COUNTERPARTIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_COUNTERPARTIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_COUNTERPARTIES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('CREATE_COUNTERPARTIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('READ_COUNTERPARTIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_COUNTERPARTIES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('CREATE_COUNTERPARTIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('READ_COUNTERPARTIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('UPDATE_COUNTERPARTIES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_COUNTERPARTIES') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_COST_CENTERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_COST_CENTERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_COST_CENTERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_COST_CENTERS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('CREATE_COST_CENTERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_COST_CENTERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_COST_CENTERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('CREATE_COST_CENTERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('READ_COST_CENTERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_COST_CENTERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('CREATE_COST_CENTERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('READ_COST_CENTERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('UPDATE_COST_CENTERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_COST_CENTERS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_PROJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_PROJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_PROJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_PROJECTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('CREATE_PROJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_PROJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_PROJECTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('CREATE_PROJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('READ_PROJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_PROJECTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('CREATE_PROJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('READ_PROJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('UPDATE_PROJECTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_PROJECTS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_CONTRACTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_CONTRACTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_CONTRACTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_CONTRACTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('CREATE_CONTRACTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_CONTRACTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_CONTRACTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('CREATE_CONTRACTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('READ_CONTRACTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_CONTRACTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('CREATE_CONTRACTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('READ_CONTRACTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('UPDATE_CONTRACTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_CONTRACTS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_CASH_BOXES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_CASH_BOXES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_CASH_BOXES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_CASH_BOXES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('CREATE_CASH_BOXES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_CASH_BOXES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_CASH_BOXES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('CREATE_CASH_BOXES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('READ_CASH_BOXES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_CASH_BOXES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('READ_CASH_BOXES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('UPDATE_CASH_BOXES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_CASH_BOXES') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_BANKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_BANKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_BANKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_BANKS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('CREATE_BANKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_BANKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_BANKS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('CREATE_BANKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('READ_BANKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_BANKS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('READ_BANKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('UPDATE_BANKS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_BANKS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_BANK_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_BANK_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_BANK_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_BANK_ACCOUNTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('CREATE_BANK_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_BANK_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_BANK_ACCOUNTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('CREATE_BANK_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('READ_BANK_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_BANK_ACCOUNTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('READ_BANK_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('UPDATE_BANK_ACCOUNTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_BANK_ACCOUNTS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_LETTERS_OF_CREDIT') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_LETTERS_OF_CREDIT') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_LETTERS_OF_CREDIT') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_LETTERS_OF_CREDIT') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('CREATE_LETTERS_OF_CREDIT') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_LETTERS_OF_CREDIT') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_LETTERS_OF_CREDIT') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('CREATE_LETTERS_OF_CREDIT') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('READ_LETTERS_OF_CREDIT') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_LETTERS_OF_CREDIT') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('READ_LETTERS_OF_CREDIT') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('UPDATE_LETTERS_OF_CREDIT') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_LETTERS_OF_CREDIT') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_POS_TERMINALS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_POS_TERMINALS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_POS_TERMINALS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_POS_TERMINALS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('CREATE_POS_TERMINALS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_POS_TERMINALS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_POS_TERMINALS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('CREATE_POS_TERMINALS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('READ_POS_TERMINALS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_POS_TERMINALS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('READ_POS_TERMINALS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('UPDATE_POS_TERMINALS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_POS_TERMINALS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_SALES_ITEM_GROUPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_SALES_ITEM_GROUPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_SALES_ITEM_GROUPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_SALES_ITEM_GROUPS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_SALES_ITEM_GROUPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_SALES_ITEM_GROUPS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('READ_SALES_ITEM_GROUPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_SALES_ITEM_GROUPS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('UPDATE_SALES_ITEM_GROUPS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_SALES_ITEM_GROUPS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_WAREHOUSE_ITEM_GROUPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_WAREHOUSE_ITEM_GROUPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_WAREHOUSE_ITEM_GROUPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_WAREHOUSE_ITEM_GROUPS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_WAREHOUSE_ITEM_GROUPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_WAREHOUSE_ITEM_GROUPS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('READ_WAREHOUSE_ITEM_GROUPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_WAREHOUSE_ITEM_GROUPS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('UPDATE_WAREHOUSE_ITEM_GROUPS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_WAREHOUSE_ITEM_GROUPS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_CUSTOMER_GROUPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_CUSTOMER_GROUPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_CUSTOMER_GROUPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_CUSTOMER_GROUPS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_CUSTOMER_GROUPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_CUSTOMER_GROUPS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('READ_CUSTOMER_GROUPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_CUSTOMER_GROUPS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('UPDATE_CUSTOMER_GROUPS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_CUSTOMER_GROUPS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_ANALYTIC_DIMENSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_ANALYTIC_DIMENSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_ANALYTIC_DIMENSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_ANALYTIC_DIMENSIONS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('CREATE_ANALYTIC_DIMENSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_ANALYTIC_DIMENSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_ANALYTIC_DIMENSIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('CREATE_ANALYTIC_DIMENSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('READ_ANALYTIC_DIMENSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_ANALYTIC_DIMENSIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('CREATE_ANALYTIC_DIMENSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('READ_ANALYTIC_DIMENSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('UPDATE_ANALYTIC_DIMENSIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_ANALYTIC_DIMENSIONS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_ACCOUNTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('CREATE_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_ACCOUNTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('CREATE_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('READ_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_ACCOUNTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('CREATE_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('READ_ACCOUNTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('UPDATE_ACCOUNTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_ACCOUNTS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_JOURNAL_VOUCHER_TYPES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_JOURNAL_VOUCHER_TYPES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_JOURNAL_VOUCHER_TYPES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_JOURNAL_VOUCHER_TYPES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('CREATE_JOURNAL_VOUCHER_TYPES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_JOURNAL_VOUCHER_TYPES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_JOURNAL_VOUCHER_TYPES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('READ_JOURNAL_VOUCHER_TYPES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_JOURNAL_VOUCHER_TYPES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('UPDATE_JOURNAL_VOUCHER_TYPES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_JOURNAL_VOUCHER_TYPES') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_JOURNAL_VOUCHERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_JOURNAL_VOUCHERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_JOURNAL_VOUCHERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_JOURNAL_VOUCHERS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('CREATE_JOURNAL_VOUCHERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_JOURNAL_VOUCHERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_JOURNAL_VOUCHERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('CREATE_JOURNAL_VOUCHERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('READ_JOURNAL_VOUCHERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_JOURNAL_VOUCHERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('CREATE_JOURNAL_VOUCHERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('READ_JOURNAL_VOUCHERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('UPDATE_JOURNAL_VOUCHERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_JOURNAL_VOUCHERS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_JOURNAL_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_JOURNAL_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_JOURNAL_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_JOURNAL_LINES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('CREATE_JOURNAL_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_JOURNAL_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_JOURNAL_LINES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('CREATE_JOURNAL_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('READ_JOURNAL_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_JOURNAL_LINES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('CREATE_JOURNAL_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('READ_JOURNAL_LINES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('UPDATE_JOURNAL_LINES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_JOURNAL_LINES') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_APPROVAL_WORKFLOWS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_APPROVAL_WORKFLOWS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_APPROVAL_WORKFLOWS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_APPROVAL_WORKFLOWS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('CREATE_APPROVAL_WORKFLOWS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_APPROVAL_WORKFLOWS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_APPROVAL_WORKFLOWS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('READ_APPROVAL_WORKFLOWS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_APPROVAL_WORKFLOWS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_APPROVAL_WORKFLOWS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_WORKFLOW_STEPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_WORKFLOW_STEPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_WORKFLOW_STEPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_WORKFLOW_STEPS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('CREATE_WORKFLOW_STEPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_WORKFLOW_STEPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_WORKFLOW_STEPS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('READ_WORKFLOW_STEPS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_WORKFLOW_STEPS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_WORKFLOW_STEPS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_VOUCHER_APPROVALS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_VOUCHER_APPROVALS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_VOUCHER_APPROVALS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_VOUCHER_APPROVALS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('CREATE_VOUCHER_APPROVALS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_VOUCHER_APPROVALS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_VOUCHER_APPROVALS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('CREATE_VOUCHER_APPROVALS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('READ_VOUCHER_APPROVALS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_VOUCHER_APPROVALS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('READ_VOUCHER_APPROVALS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('UPDATE_VOUCHER_APPROVALS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_VOUCHER_APPROVALS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_YEAR_END_OPERATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_YEAR_END_OPERATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_YEAR_END_OPERATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_YEAR_END_OPERATIONS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('CREATE_YEAR_END_OPERATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_YEAR_END_OPERATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_YEAR_END_OPERATIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('READ_YEAR_END_OPERATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_YEAR_END_OPERATIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('UPDATE_YEAR_END_OPERATIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_YEAR_END_OPERATIONS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_REPORT_DEFINITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_REPORT_DEFINITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_REPORT_DEFINITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_REPORT_DEFINITIONS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('CREATE_REPORT_DEFINITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_REPORT_DEFINITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_REPORT_DEFINITIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('READ_REPORT_DEFINITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_REPORT_DEFINITIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('UPDATE_REPORT_DEFINITIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_REPORT_DEFINITIONS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_REPORT_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_REPORT_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_REPORT_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_REPORT_RUNS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('CREATE_REPORT_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_REPORT_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_REPORT_RUNS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('CREATE_REPORT_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('READ_REPORT_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_REPORT_RUNS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('CREATE_REPORT_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('READ_REPORT_RUNS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('UPDATE_REPORT_RUNS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_REPORT_RUNS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_CHAT_CONVERSATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_CHAT_CONVERSATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_CHAT_CONVERSATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_CHAT_CONVERSATIONS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('CREATE_CHAT_CONVERSATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_CHAT_CONVERSATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_CHAT_CONVERSATIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('CREATE_CHAT_CONVERSATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('READ_CHAT_CONVERSATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_CHAT_CONVERSATIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('CREATE_CHAT_CONVERSATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('READ_CHAT_CONVERSATIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('UPDATE_CHAT_CONVERSATIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_CHAT_CONVERSATIONS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_CHAT_PARTICIPANTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_CHAT_PARTICIPANTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_CHAT_PARTICIPANTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_CHAT_PARTICIPANTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('CREATE_CHAT_PARTICIPANTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_CHAT_PARTICIPANTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_CHAT_PARTICIPANTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('CREATE_CHAT_PARTICIPANTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('READ_CHAT_PARTICIPANTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_CHAT_PARTICIPANTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('CREATE_CHAT_PARTICIPANTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('READ_CHAT_PARTICIPANTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('UPDATE_CHAT_PARTICIPANTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_CHAT_PARTICIPANTS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_CHAT_MESSAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_CHAT_MESSAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_CHAT_MESSAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_CHAT_MESSAGES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('CREATE_CHAT_MESSAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_CHAT_MESSAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_CHAT_MESSAGES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('CREATE_CHAT_MESSAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('READ_CHAT_MESSAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_CHAT_MESSAGES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('CREATE_CHAT_MESSAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('READ_CHAT_MESSAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('UPDATE_CHAT_MESSAGES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_CHAT_MESSAGES') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_FORM_ALARMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_FORM_ALARMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_FORM_ALARMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_FORM_ALARMS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_FORM_ALARMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_FORM_ALARMS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_FORM_ALARMS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_FORM_ALARMS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_DATA_EXPORT_JOBS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('READ_DATA_EXPORT_JOBS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('UPDATE_DATA_EXPORT_JOBS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('DELETE_DATA_EXPORT_JOBS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('CREATE_DATA_EXPORT_JOBS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('READ_DATA_EXPORT_JOBS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('UPDATE_DATA_EXPORT_JOBS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('READ_DATA_EXPORT_JOBS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('UPDATE_DATA_EXPORT_JOBS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('UPDATE_DATA_EXPORT_JOBS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), permissionId: getId('UPDATE_DATA_EXPORT_JOBS') },
                    
                  
                    
                  
                  
             
          
    
  
    
     
  
      
      
        
            { createdAt, updatedAt, roles_permissionsId: getId("SystemOwner"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("FinanceDirector"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("AccountingSupervisor"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("Accountant"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("Auditor"), 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_BUSINESSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_BUSINESSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_BUSINESSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_BUSINESSES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_BRANCHES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_BRANCHES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_BRANCHES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_BRANCHES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_FISCAL_YEARS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_FISCAL_YEARS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_FISCAL_YEARS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_FISCAL_YEARS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_USER_ROLE_ASSIGNMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_USER_ROLE_ASSIGNMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_USER_ROLE_ASSIGNMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_USER_ROLE_ASSIGNMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_APP_MENUS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_APP_MENUS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_APP_MENUS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_APP_MENUS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_ROLE_PERMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ROLE_PERMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ROLE_PERMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ROLE_PERMISSIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_APP_SETTINGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_APP_SETTINGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_APP_SETTINGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_APP_SETTINGS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CURRENCIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CURRENCIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CURRENCIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CURRENCIES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CURRENCY_RATES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CURRENCY_RATES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CURRENCY_RATES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CURRENCY_RATES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_NUMBERING_PROFILES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_NUMBERING_PROFILES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_NUMBERING_PROFILES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_NUMBERING_PROFILES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_WIDGETS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_WIDGETS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_WIDGETS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_WIDGETS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_LICENSE_CUSTOMERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_LICENSE_CUSTOMERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_LICENSE_CUSTOMERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_LICENSE_CUSTOMERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_LICENSE_PRODUCTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_LICENSE_PRODUCTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_LICENSE_PRODUCTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_LICENSE_PRODUCTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_LICENSE_KEYS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_LICENSE_KEYS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_LICENSE_KEYS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_LICENSE_KEYS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_LICENSE_ACTIVATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_LICENSE_ACTIVATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_LICENSE_ACTIVATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_LICENSE_ACTIVATIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_COUNTERPARTIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_COUNTERPARTIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_COUNTERPARTIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_COUNTERPARTIES') },
    
    { 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_PROJECTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PROJECTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PROJECTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PROJECTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CONTRACTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CONTRACTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CONTRACTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CONTRACTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CASH_BOXES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CASH_BOXES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CASH_BOXES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CASH_BOXES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_BANKS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_BANKS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_BANKS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_BANKS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_BANK_ACCOUNTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_BANK_ACCOUNTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_BANK_ACCOUNTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_BANK_ACCOUNTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_LETTERS_OF_CREDIT') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_LETTERS_OF_CREDIT') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_LETTERS_OF_CREDIT') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_LETTERS_OF_CREDIT') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_POS_TERMINALS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_POS_TERMINALS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_POS_TERMINALS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_POS_TERMINALS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SALES_ITEM_GROUPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_SALES_ITEM_GROUPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_SALES_ITEM_GROUPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_SALES_ITEM_GROUPS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_WAREHOUSE_ITEM_GROUPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_WAREHOUSE_ITEM_GROUPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_WAREHOUSE_ITEM_GROUPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_WAREHOUSE_ITEM_GROUPS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CUSTOMER_GROUPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CUSTOMER_GROUPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CUSTOMER_GROUPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CUSTOMER_GROUPS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_ANALYTIC_DIMENSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ANALYTIC_DIMENSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ANALYTIC_DIMENSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ANALYTIC_DIMENSIONS') },
    
    { 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_VOUCHER_TYPES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_JOURNAL_VOUCHER_TYPES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_JOURNAL_VOUCHER_TYPES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_JOURNAL_VOUCHER_TYPES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_JOURNAL_VOUCHERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_JOURNAL_VOUCHERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_JOURNAL_VOUCHERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_JOURNAL_VOUCHERS') },
    
    { 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_APPROVAL_WORKFLOWS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_APPROVAL_WORKFLOWS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_APPROVAL_WORKFLOWS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_APPROVAL_WORKFLOWS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_WORKFLOW_STEPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_WORKFLOW_STEPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_WORKFLOW_STEPS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_WORKFLOW_STEPS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_VOUCHER_APPROVALS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_VOUCHER_APPROVALS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_VOUCHER_APPROVALS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_VOUCHER_APPROVALS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_YEAR_END_OPERATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_YEAR_END_OPERATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_YEAR_END_OPERATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_YEAR_END_OPERATIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_REPORT_DEFINITIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_REPORT_DEFINITIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_REPORT_DEFINITIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_REPORT_DEFINITIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_REPORT_RUNS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_REPORT_RUNS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_REPORT_RUNS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_REPORT_RUNS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CHAT_CONVERSATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CHAT_CONVERSATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CHAT_CONVERSATIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CHAT_CONVERSATIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CHAT_PARTICIPANTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CHAT_PARTICIPANTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CHAT_PARTICIPANTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CHAT_PARTICIPANTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CHAT_MESSAGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CHAT_MESSAGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CHAT_MESSAGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CHAT_MESSAGES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_FORM_ALARMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_FORM_ALARMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_FORM_ALARMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_FORM_ALARMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_DATA_EXPORT_JOBS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_DATA_EXPORT_JOBS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_DATA_EXPORT_JOBS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_DATA_EXPORT_JOBS') },
    
    
    
    { 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("SystemOwner")}' WHERE "email"='client@hello.com'`);
        await queryInterface.sequelize.query(`UPDATE "users" SET "app_roleId"='${getId("FinanceDirector")}' WHERE "email"='john@doe.com'`);
       
      
      

}
};

