(activityCode)
| 144 | } |
| 145 | |
| 146 | function getActivityDescription(activityCode) { |
| 147 | switch (activityCode) { |
| 148 | case 0: |
| 149 | return 'Login Success' |
| 150 | case 1: |
| 151 | return 'Logout Success' |
| 152 | case -1: |
| 153 | return 'Unknown User' |
| 154 | case -2: |
| 155 | return 'Incorrect Credential' |
| 156 | case -3: |
| 157 | return 'User Disabled' |
| 158 | case -4: |
| 159 | return 'No Assigned Workspace' |
| 160 | default: |
| 161 | return 'Unknown Activity' |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | function getActivityCode(activityDescription) { |
| 166 | switch (activityDescription) { |