MngGetCustomersListByDesk¶
Returns a lightweight customer table for CRM selectors.
The backend reads the current manager id from __access.id, loads the manager from staff cache, and uses manager.desks as the desk scope. The client does not send deskFilter; desk access is controlled only by the cached manager record.
Emails are masked with the same masking logic used by customer table responses.
Access Control¶
🛡️ Access Level Required:
SESSION_MANAGER,SESSION_ADMIN,SESSION_DEALER,SESSION_CRM_MANAGER,SESSION_CRM_ADMIN
Request Parameters¶
| Name | Type | Required | Description |
|---|---|---|---|
__access |
object | Yes | Session access object injected by backend/session layer |
No deskFilter is accepted. Desk access comes from ManagerRecord.desks.
Request¶
{
"command": "MngGetCustomersListByDesk",
"extID": "1",
"data": {}
}
Response Data¶
{
"structure": ["customer_id", "full_name", "email"],
"rows": [
[42, "Jane Customer", "j***@example.com"]
]
}
Row Fields¶
| Field | Type | Description |
|---|---|---|
customer_id |
int | Customer id |
full_name |
string | Customer full name |
email |
string | Masked customer email |
If manager.desks is empty or no customers match the manager desk scope, rows is empty.