# Perfil de usuario - SLM Super

```elasticsearch
POST /slm-app-dev/_doc/ZYNuIogBygoTW4EQXOl4
{
  "name": "SLM Super",
  "description": "Perfil para administradores SLM",
  "status": "active",
  "acl": {
    "niTMtJEBz4WfLYzt0ooT": {
      "home.main": [
        "read",
        "create",
        "delete",
        "update"
      ]
    },
    "MiQMuZEBz4WfLYztUMlY": {
      "config.profile": [
        "read",
        "create",
        "delete",
        "update"
      ],
      "config.users": [
        "read",
        "create",
        "delete",
        "update"
      ],
      "config.modules": [
        "read",
        "create",
        "delete",
        "update"
      ]
    }
  },
  "slm": {
    "type": "profile",
    "timestamp": 1720627238782
  },
  "default_view": "home.main"
}
```

# Creación de usuario - SLM Super

```elasticsearch
POST /slm-app-dev/_doc/
{
  "name": "<<INGRESAR>>",
  "lastname": "<<INGRESAR>>",
  "profile": "ZYNuIogBygoTW4EQXOl4",
  "status": "active",
  "email": "<<INGRESAR>>",
  "country_code": "<<INGRESAR>>",
  "telephone_number": "<<INGRESAR>>",
  "password": "<<INGRESAR>>",
  "email_confirmed": true,
  "slm": {
    "type": "user",        
    "timestamp": 1720631439332
  }
}
```

# Registro de módulos

```elasticsearch
POST /slm-app-dev/_doc/dYg4L5EBd3McsM5dxTQM
{
  "name": "Inicio",
  "directory": "home",
  "file": "main",
  "folder": "home.main",
  "status": "active",
  "slm": {
    "type": "module",
    "timestamp": 1723074135307
  }
}

POST /slm-app-dev/_doc/4IeOKpEBd3McsM5duoOs
{
  "name": "Perfiles de usuario",
  "file": "profile",
  "folder": "config.profile",
  "status": "active",
  "slm": {
    "type": "module",
    "timestamp": 1723074135307
  }
}

POST /slm-app-dev/_doc/7YeOKpEBd3McsM5d6YNd
{
  "name": "Usuarios",
  "file": "users",
  "folder": "config.users",
  "status": "active",
  "slm": {
    "type": "module",
    "timestamp": 1723074135307
  }
}

POST /slm-app-dev/_doc/2oeOKpEBd3McsM5dg4NN
{
  "name": "Módulos",
  "file": "modules",
  "folder": "config.modules",
  "status": "active",
  "slm": {
    "type": "module",
    "timestamp": 1723074135307
  }
}
```

# Menú - Creación de elementos (Simple, Dropdown, Group)

```elasticsearch
POST /slm-app-dev/_doc/CYhIL5EBd3McsM5dJznL
{
  "name": "Inicio",
  "icon": "home",
  "folder": "dYg4L5EBd3McsM5dxTQM",
  "display": "true",
  "status": "active",
  "slm": {
    "type": "simple_menu",
    "timestamp": 1723075143626
  }
}

POST /slm-app-dev/_doc/FSQLuZEBz4WfLYztf8nY
{
  "name": "Configuración",
  "icon": "settings",
  "display": "true",
  "module": [
    {
      "folder": "4IeOKpEBd3McsM5duoOs",
      "display": [
        "true"
      ]
    },
    {
      "folder": "7YeOKpEBd3McsM5d6YNd",
      "display": [
        "true"
      ]
    },
    {
      "folder": "2oeOKpEBd3McsM5dg4NN",
      "display": [
        "true"
      ]
    }
  ],
  "status": "active",
  "slm": {
    "type": "dropdown_menu",
    "timestamp": 1725386424279
  }
}

POST /slm-app-dev/_doc/niTMtJEBz4WfLYzt0ooT
{
  "title": "Menú",
  "order": 0,
  "menu": [
    {
      "item": "CYhIL5EBd3McsM5dJznL"
    }
  ],
  "status": "active",
  "display": "true",
  "slm": {
    "type": "group_menu",
    "timestamp": 1725315207699
  }
}

POST /slm-app-dev/_doc/MiQMuZEBz4WfLYztUMlY
{
  "title": "Configuración",
  "order": 99,
  "menu": [
    {
      "item": "FSQLuZEBz4WfLYztf8nY"
    }
  ],
  "status": "active",
  "display": "true",
  "slm": {
    "type": "group_menu",
    "timestamp": 1725386477656
  }
}
```