[
  {
    "description": "User who requested the api",
    "slug": "requested_user",
    "name": "requested_user",
    "status_id": 1,
    "query_information": {
      "company_id": 1,
      "search_all": [
        {
          "value": "@process.user_id",
          "operator": "=",
          "column_name": "user_details.user_id"
        }
      ],
      "limit_range": 25,
      "print_query": false,
      "start_index": 0,
      "sort_columns": [
        [
          "user_details.phone_number",
          "asc"
        ]
      ],
      "primary_table": "user_details",
      "select_columns": [
        [
          "user_id"
        ],
        [
          "phone_number"
        ],
        [
          "country_code"
        ]
      ]
    },
    "notification_type": "whatsapp"
  },
  {
    "description": "Super admin of the user who requested the api",
    "slug": "super_admin",
    "name": "super_admin",
    "status_id": 1,
    "query_information": {
      "primary_table": "users",
      "select_columns": [
        [
          "user_details.phone_number",
          "phone_number"
        ],
        [
          "user_details.country_code",
          "country_code"
        ]
      ],
      "includes": [
        {
          "table_name": "users as b",
          "join_type": "LEFT",
          "join_condition": "users.company_id = b.company_id AND b.role='super_admin'"
        },
        {
          "table_name": "user_details",
          "join_type": "LEFT",
          "join_condition": "user_details.user_id = b.id"
        }
      ],
      "search_all": [
        {
          "column_name": "b.status_id",
          "operator": "=",
          "value": 1
        },
        {
          "column_name": "users.id",
          "operator": "=",
          "value": "@process.user_id"
        }
      ],
      "company_id": 1,
      "start_index": 0,
      "print_query": false
    },
    "notification_type": "whatsapp"
  },
  {
    "description": "Department Head of the user who requested the api",
    "slug": "department_head",
    "name": "department_head",
    "status_id": 1,
    "query_information": {
      "primary_table": "user_details",
      "select_columns": [
        [
          "user_details.phone_number",
          "phone_number"
        ],
        [
          "user_details.country_code",
          "country_code"
        ]
      ],
      "includes": [
        {
          "table_name": "departments as d",
          "join_type": "INNER",
          "join_condition": "user_details.department_id = d.id"
        }
      ],
      "search_all": [
        {
          "column_name": "user_details.id",
          "operator": "=",
          "value": "@process.user_id"
        }
      ],
      "company_id": 1,
      "limit_range": 10,
      "start_index": 0,
      "print_query": false
    },
    "notification_type": "whatsapp"
  }
]