Methods
(async, static) checkEmailExisting(nameID) → {object}
- Source:
 
Check email existing for the employee
Parameters:
| Name | Type | Description | 
|---|---|---|
nameID | 
                                string | 
                                     Employee email which has to be checked  | 
                            
Returns:
sql response
- Type
 - object
 
(async, static) commonselectparenttable(data, baseTableUsed) → {object}
- Source:
 
Select query to fetch all employees
Parameters:
| Name | Type | Description | 
|---|---|---|
data | 
                                object | request.body data  | 
                            
baseTableUsed | 
                                string | 
                                     baseTable which the query has to be generated  | 
                            
Returns:
sql response
- Type
 - object
 
(async, static) createuserlist(req, data, baseTableUsed) → {object}
- Source:
 
Create a employee insert query
Parameters:
| Name | Type | Description | 
|---|---|---|
req | 
                                object | request data  | 
                            
data | 
                                object | request.body data  | 
                            
baseTableUsed | 
                                string | 
                                     baseTable which the query has to be generated  | 
                            
Returns:
sql response
- Type
 - object
 
(async, static) fetchEmployeesAll(req, count) → {object}
- Source:
 
Fetch all employees
Parameters:
| Name | Type | Description | 
|---|---|---|
req | 
                                object | request data  | 
                            
count | 
                                string | count for the pagination  | 
                            
Returns:
sql response
- Type
 - object
 
(async, static) fetchUsersbyID(pid) → {object}
- Source:
 
Fetch single employee details
Parameters:
| Name | Type | Description | 
|---|---|---|
pid | 
                                number | 
                                     Employee ID which details has to be fetched  | 
                            
Returns:
sql response
- Type
 - object
 
(async, static) updatealltypeofuser(req, data, baseTableUsed) → {object}
- Source:
 
Update query for the employees
Parameters:
| Name | Type | Description | 
|---|---|---|
req | 
                                object | request data  | 
                            
data | 
                                object | request.body data  | 
                            
baseTableUsed | 
                                string | 
                                     baseTable which the query has to be generated  | 
                            
Returns:
sql response
- Type
 - object
 
(async, static) userOperation(req) → {object}
- Source:
 
Employee Action
Parameters:
| Name | Type | Description | 
|---|---|---|
req | 
                                object | request data  | 
                            
Returns:
sql response
- Type
 - object
 
(async, static) userStatusUpdate(status, pid) → {object}
- Source:
 
Update status of the employee
Parameters:
| Name | Type | Description | 
|---|---|---|
status | 
                                string | 
                                     status which has to be changed for the employee  | 
                            
pid | 
                                number | 
                                     employee id which has to be updated  | 
                            
Returns:
sql response
- Type
 - object