abs-auth-rbac-core 0.1.8__py3-none-any.whl → 0.3.18__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- abs_auth_rbac_core/auth/__init__.py +13 -1
- abs_auth_rbac_core/auth/auth_functions.py +4 -1
- abs_auth_rbac_core/auth/middleware.py +197 -3
- abs_auth_rbac_core/models/gov_casbin_rule.py +9 -0
- abs_auth_rbac_core/models/user.py +1 -0
- abs_auth_rbac_core/rbac/service.py +425 -139
- abs_auth_rbac_core/repository/__init__.py +4 -0
- abs_auth_rbac_core/repository/permission_repository.py +12 -0
- abs_auth_rbac_core/repository/role_repository.py +18 -0
- abs_auth_rbac_core/service/__init__.py +4 -0
- abs_auth_rbac_core/service/permission_service.py +15 -0
- abs_auth_rbac_core/service/role_service.py +18 -0
- abs_auth_rbac_core/util/permission_constants.py +850 -16
- abs_auth_rbac_core-0.3.18.dist-info/METADATA +727 -0
- {abs_auth_rbac_core-0.1.8.dist-info → abs_auth_rbac_core-0.3.18.dist-info}/RECORD +16 -10
- abs_auth_rbac_core-0.1.8.dist-info/METADATA +0 -233
- {abs_auth_rbac_core-0.1.8.dist-info → abs_auth_rbac_core-0.3.18.dist-info}/WHEEL +0 -0
|
@@ -43,6 +43,7 @@ class PermissionAction(str, Enum):
|
|
|
43
43
|
EDIT = "EDIT"
|
|
44
44
|
DELETE = "DELETE"
|
|
45
45
|
MANAGE = "MANAGE"
|
|
46
|
+
DOWNLOAD = "DOWNLOAD"
|
|
46
47
|
CONFIGURE_IMPORTANCE = "CONFIGURE_IMPORTANCE"
|
|
47
48
|
VIEW_FIELD_RESULTS = "VIEW_FIELD_RESULTS"
|
|
48
49
|
UPDATE_STATUS = "UPDATE_STATUS"
|
|
@@ -99,9 +100,70 @@ class PermissionAction(str, Enum):
|
|
|
99
100
|
ACCESS_AZURE_STORAGE = "ACCESS_AZURE_STORAGE"
|
|
100
101
|
ASSIGN = "ASSIGN"
|
|
101
102
|
ADD_NOTE = "ADD_NOTE"
|
|
103
|
+
VIEW_ALL_MESSAGES="VIEW_ALL_MESSAGES"
|
|
104
|
+
VIEW_DEPARTMENT_MESSAGES="VIEW_DEPARTMENT_MESSAGES"
|
|
105
|
+
VIEW_OWN_MESSAGES="VIEW_OWN_MESSAGES"
|
|
106
|
+
VIEW_ALL_DEPARTMENT_DATA="VIEW_ALL_DEPARTMENT_DATA"
|
|
107
|
+
VIEW_OWN_DEPARTMENT_DATA="VIEW_OWN_DEPARTMENT_DATA"
|
|
108
|
+
CONFIGURE_EMAIL_SETTINGS="CONFIGURE_EMAIL_SETTINGS"
|
|
109
|
+
ADD_KNOWLEDGE="ADD_KNOWLEDGE"
|
|
110
|
+
CHANGE_DEPARTMENT_SETTINGS="CHANGE_DEPARTMENT_SETTINGS"
|
|
111
|
+
ASSIGN_USERS_TO_DEPARTMENTS="ASSIGN_USERS_TO_DEPARTMENTS"
|
|
112
|
+
ASSIGN_USERS_WITHIN_DEPARTMENT="ASSIGN_USERS_WITHIN_DEPARTMENT"
|
|
113
|
+
LOGIN_ACCESS="LOGIN_ACCESS"
|
|
114
|
+
FORM_ONLY_ACCESS="FORM_ONLY_ACCESS"
|
|
115
|
+
TRACK_USER_ACTIONS="TRACK_USER_ACTIONS"
|
|
116
|
+
GENERATE_ALL_REPORTS="GENERATE_ALL_REPORTS"
|
|
117
|
+
GENERATE_DEPARTMENT_REPORTS="GENERATE_DEPARTMENT_REPORTS"
|
|
118
|
+
VIEW_ALL_ANALYTICS="VIEW_ALL_ANALYTICS"
|
|
119
|
+
VIEW_DEPARTMENT_ANALYTICS="VIEW_DEPARTMENT_ANALYTICS"
|
|
120
|
+
MANAGE_DEPARTMENT_ROUTING="MANAGE_DEPARTMENT_ROUTING"
|
|
121
|
+
SYNC_EMAILS="SYNC_EMAILS"
|
|
122
|
+
SEND_EMAIL_RESPONSES="SEND_EMAIL_RESPONSES"
|
|
123
|
+
ACCESS_VOICEMAIL_SYSTEM="ACCESS_VOICEMAIL_SYSTEM"
|
|
124
|
+
TRANSCRIBE_VOICEMAILS="TRANSCRIBE_VOICEMAILS"
|
|
125
|
+
CALLBACK_CONSTITUENTS="CALLBACK_CONSTITUENTS"
|
|
126
|
+
SCAN_PHYSICAL_MAIL="SCAN_PHYSICAL_MAIL"
|
|
127
|
+
OCR_DOCUMENT_PROCESSING="OCR_DOCUMENT_PROCESSING"
|
|
128
|
+
HANDLE_PHYSICAL_RESPONSES="HANDLE_PHYSICAL_RESPONSES"
|
|
129
|
+
CONFIGURE_FORMS="CONFIGURE_FORMS"
|
|
130
|
+
VIEW_FORM_SUBMISSIONS="VIEW_FORM_SUBMISSIONS"
|
|
131
|
+
SUBMIT_FORMS="SUBMIT_FORMS"
|
|
132
|
+
SEND_DRAFTS = "SEND_DRAFTS"
|
|
133
|
+
HANDLE_VOICEMAIL_RESPONSES = "HANDLE_VOICEMAIL_RESPONSES"
|
|
134
|
+
PROCESS_PHYSICAL_MAIL = "PROCESS_PHYSICAL_MAIL"
|
|
135
|
+
RESPOND_VIA_FORMS = "RESPOND_VIA_FORMS"
|
|
136
|
+
INITIATE_OUTBOUND_COMMUNICATIONS = "INITIATE_OUTBOUND_COMMUNICATIONS"
|
|
137
|
+
CREATE_EMAIL_CHANNELS = "CREATE_EMAIL_CHANNELS"
|
|
138
|
+
SYNC_EMAIL_CHANNELS = "SYNC_EMAIL_CHANNELS"
|
|
139
|
+
SETUP_VOICEMAIL_CHANNELS = "SETUP_VOICEMAIL_CHANNELS"
|
|
140
|
+
CONFIGURE_PHYSICAL_MAIL_INTAKE = "CONFIGURE_PHYSICAL_MAIL_INTAKE"
|
|
141
|
+
SETUP_FORM_CHANNELS = "SETUP_FORM_CHANNELS"
|
|
142
|
+
CREATE_MESSAGES = "CREATE_MESSAGES"
|
|
143
|
+
UPDATE_MESSAGES = "UPDATE_MESSAGES"
|
|
144
|
+
DELETE_MESSAGES = "DELETE_MESSAGES"
|
|
145
|
+
REASSIGN_MESSAGES = "REASSIGN_MESSAGES"
|
|
146
|
+
ARCHIVE_MESSAGES = "ARCHIVE_MESSAGES"
|
|
147
|
+
VIEW_BILLING = "VIEW_BILLING"
|
|
148
|
+
DELETE_BILLING = "DELETE_BILLING"
|
|
149
|
+
EDIT_BILLING = "EDIT_BILLING"
|
|
150
|
+
CREATE_BILLING = "CREATE_BILLING"
|
|
151
|
+
VIEW_ASL = "VIEW_ASL"
|
|
152
|
+
CONNECT_ACCOUNT = "CONNECT_ACCOUNT"
|
|
153
|
+
VIEW_IMPORT_DATA = "VIEW_IMPORT_DATA"
|
|
154
|
+
VIEW_WORKFLOW = "VIEW_WORKFLOW"
|
|
155
|
+
VIEW_ERROR_DATA = "VIEW_ERROR_DATA"
|
|
156
|
+
VIEW_ENTITY_RECORD = "VIEW_ENTITY_RECORD"
|
|
157
|
+
EDIT_ENTITY_RECORD = "EDIT_ENTITY_RECORD"
|
|
158
|
+
DELETE_ENTITY_RECORD = "DELETE_ENTITY_RECORD"
|
|
159
|
+
CREATE_ENTITY_RECORD = "CREATE_ENTITY_RECORD"
|
|
160
|
+
CREATE_ENTITY_VIEW = "CREATE_ENTITY_VIEW"
|
|
161
|
+
|
|
162
|
+
|
|
102
163
|
|
|
103
164
|
|
|
104
165
|
class PermissionModule(str, Enum):
|
|
166
|
+
AUTOMATION_BUILDER = "AUTOMATION_BUILDER"
|
|
105
167
|
EDS_EPAR = "EDS_EPAR"
|
|
106
168
|
PERMIT_PROCESSING = "PERMIT_PROCESSING"
|
|
107
169
|
EMAIL_PROCESS = "EMAIL_PROCESS"
|
|
@@ -111,11 +173,32 @@ class PermissionModule(str, Enum):
|
|
|
111
173
|
REPORTING = "REPORTING"
|
|
112
174
|
USER_MANAGEMENT = "USER_MANAGEMENT"
|
|
113
175
|
AI_EMS="AI_EMS"
|
|
176
|
+
ENTITY_MANAGER="ENTITY_MANAGER"
|
|
177
|
+
ASL = "ASL"
|
|
178
|
+
EDS = "EDS"
|
|
179
|
+
WORKFORCE_AGENT = "WORKFORCE_AGENT"
|
|
180
|
+
ENTITY = "ENTITY"
|
|
181
|
+
ENTITY_VIEW = "ENTITY_VIEW"
|
|
182
|
+
ENTITY_RECORD = "ENTITY_RECORD"
|
|
183
|
+
CHATBOT = "CHATBOT"
|
|
184
|
+
APPS = "APPS"
|
|
114
185
|
|
|
115
186
|
|
|
116
187
|
class PermissionResource(str, Enum):
|
|
188
|
+
ENTITIES = "ENTITIES"
|
|
189
|
+
DASHBOARD = "DASHBOARDS"
|
|
117
190
|
WORKFORCE_AGENT = "WORKFORCE_AGENT"
|
|
191
|
+
CHATBOT = "CHATBOT"
|
|
118
192
|
EPAR = "EPAR"
|
|
193
|
+
EPARS = "EPARS"
|
|
194
|
+
OCFO = "OCFO"
|
|
195
|
+
EDS_ASSISTANT = "EDS_ASSISTANT"
|
|
196
|
+
REPORTS = "REPORTS"
|
|
197
|
+
WORKFLOW = "WORKFLOW"
|
|
198
|
+
FEEDBACK = "FEEDBACK"
|
|
199
|
+
OCFO_TUTORIALS = "OCFO_TUTORIALS"
|
|
200
|
+
EPAR_TUTORIALS = "EPAR_TUTORIALS"
|
|
201
|
+
RECENT_REVIEW_EPARS = "RECENT_REVIEW_EPARS"
|
|
119
202
|
EPAR_PROTRACK_INTEGRATION = "EPAR_PROTRACK_INTEGRATION"
|
|
120
203
|
EPAR_DASHBOARD = "EPAR_DASHBOARD"
|
|
121
204
|
NOTIFICATIONS = "NOTIFICATIONS"
|
|
@@ -161,6 +244,9 @@ class PermissionResource(str, Enum):
|
|
|
161
244
|
REPORTING = "REPORTING"
|
|
162
245
|
SETTINGS = "SETTINGS"
|
|
163
246
|
CONSTITUENT_COMPLAINTS = "CONSTITUENT_COMPLAINTS"
|
|
247
|
+
MESSAGE_MANAGEMENT_PERMISSIONS="MESSAGE_MANAGEMENT_PERMISSIONS"
|
|
248
|
+
DEPARTMENT_MANAGEMENT_PERMISSIONS="DEPARTMENT_MANAGEMENT_PERMISSIONS"
|
|
249
|
+
CHANNEL_SPECIFIC_PERMISSIONS="CHANNEL_SPECIFIC_PERMISSIONS"
|
|
164
250
|
LEGAL_ASSISTANT = "LEGAL_ASSISTANT"
|
|
165
251
|
KNOWLEDGE_SOURCE = "KNOWLEDGE_SOURCE"
|
|
166
252
|
AGENT_CONFIG = "AGENT_CONFIG"
|
|
@@ -174,6 +260,20 @@ class PermissionResource(str, Enum):
|
|
|
174
260
|
CALLS_AND_SMS = "CALLS_AND_SMS"
|
|
175
261
|
ANALYTICS = "ANALYTICS"
|
|
176
262
|
HELP = "HELP"
|
|
263
|
+
SYSTEM_ACCESS_TRACKING_PERMISSIONS="SYSTEM_ACCESS_TRACKING_PERMISSIONS"
|
|
264
|
+
ENTITY_MANAGER="ENTITY_MANAGER"
|
|
265
|
+
COMMUNICATION_ACTIONS="COMMUNICATION_ACTIONS"
|
|
266
|
+
COMMUNICATION_CHANNEL_MANAGEMENT_PERMISSIONS="COMMUNICATION_CHANNEL_MANAGEMENT_PERMISSIONS"
|
|
267
|
+
BILLING_MANAGEMENT = "BILLING_MANAGEMENT"
|
|
268
|
+
ASL = "ASL"
|
|
269
|
+
DATA_IMPORT = "DATA_IMPORT"
|
|
270
|
+
INTEGRATION = "INTEGRATION"
|
|
271
|
+
AUTOMATION = "AUTOMATION"
|
|
272
|
+
AUTOMATION_TRIGGER = "AUTOMATION_TRIGGER"
|
|
273
|
+
AUTOMATION_ACTION = "AUTOMATION_ACTION"
|
|
274
|
+
AUTOMATION_INPUT = "AUTOMATION_INPUT"
|
|
275
|
+
AUTOMATION_HISTORY = "AUTOMATION_HISTORY"
|
|
276
|
+
USER_PROFILE = "USER_PROFILE"
|
|
177
277
|
|
|
178
278
|
|
|
179
279
|
class PermissionData(NamedTuple):
|
|
@@ -185,6 +285,476 @@ class PermissionData(NamedTuple):
|
|
|
185
285
|
|
|
186
286
|
|
|
187
287
|
class PermissionConstants:
|
|
288
|
+
# User Profile Permissions
|
|
289
|
+
USER_PROFILE_VIEW = PermissionData(
|
|
290
|
+
name="View User Profile",
|
|
291
|
+
description="Permission to view user profile",
|
|
292
|
+
module=PermissionModule.USER_MANAGEMENT,
|
|
293
|
+
resource=PermissionResource.USER_PROFILE,
|
|
294
|
+
action=PermissionAction.VIEW,
|
|
295
|
+
)
|
|
296
|
+
USER_PROFILE_EDIT = PermissionData(
|
|
297
|
+
name="Edit User Profile",
|
|
298
|
+
description="Permission to edit user profile",
|
|
299
|
+
module=PermissionModule.USER_MANAGEMENT,
|
|
300
|
+
resource=PermissionResource.USER_PROFILE,
|
|
301
|
+
action=PermissionAction.EDIT,
|
|
302
|
+
)
|
|
303
|
+
|
|
304
|
+
# Automation Builder Permissions
|
|
305
|
+
AUTOMATION_HISTORY_VIEW = PermissionData(
|
|
306
|
+
name="View Automation History",
|
|
307
|
+
description="Permission to view automation history",
|
|
308
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
309
|
+
resource=PermissionResource.AUTOMATION_HISTORY,
|
|
310
|
+
action=PermissionAction.VIEW,
|
|
311
|
+
)
|
|
312
|
+
AUTOMATION_CREATE = PermissionData(
|
|
313
|
+
name="Create Automation",
|
|
314
|
+
description="Permission to create automation",
|
|
315
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
316
|
+
resource=PermissionResource.AUTOMATION,
|
|
317
|
+
action=PermissionAction.CREATE,
|
|
318
|
+
)
|
|
319
|
+
AUTOMATION_VIEW = PermissionData(
|
|
320
|
+
name="View Automation",
|
|
321
|
+
description="Permission to view automation",
|
|
322
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
323
|
+
resource=PermissionResource.AUTOMATION,
|
|
324
|
+
action=PermissionAction.VIEW,
|
|
325
|
+
)
|
|
326
|
+
AUTOMATION_EDIT = PermissionData(
|
|
327
|
+
name="Edit Automation",
|
|
328
|
+
description="Permission to edit automation",
|
|
329
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
330
|
+
resource=PermissionResource.AUTOMATION,
|
|
331
|
+
action=PermissionAction.EDIT,
|
|
332
|
+
)
|
|
333
|
+
AUTOMATION_DELETE = PermissionData(
|
|
334
|
+
name="Delete Automation",
|
|
335
|
+
description="Permission to delete automation",
|
|
336
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
337
|
+
resource=PermissionResource.AUTOMATION,
|
|
338
|
+
action=PermissionAction.DELETE,
|
|
339
|
+
)
|
|
340
|
+
AUTOMATION_INPUT_CREATE = PermissionData(
|
|
341
|
+
name="Create Automation Input",
|
|
342
|
+
description="Permission to create automation input",
|
|
343
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
344
|
+
resource=PermissionResource.AUTOMATION_INPUT,
|
|
345
|
+
action=PermissionAction.CREATE,
|
|
346
|
+
)
|
|
347
|
+
AUTOMATION_INPUT_VIEW = PermissionData(
|
|
348
|
+
name="View Automation Input",
|
|
349
|
+
description="Permission to view automation input",
|
|
350
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
351
|
+
resource=PermissionResource.AUTOMATION_INPUT,
|
|
352
|
+
action=PermissionAction.VIEW,
|
|
353
|
+
)
|
|
354
|
+
AUTOMATION_INPUT_EDIT = PermissionData(
|
|
355
|
+
name="Edit Automation Input",
|
|
356
|
+
description="Permission to edit automation input",
|
|
357
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
358
|
+
resource=PermissionResource.AUTOMATION_INPUT,
|
|
359
|
+
action=PermissionAction.EDIT,
|
|
360
|
+
)
|
|
361
|
+
AUTOMATION_INPUT_DELETE = PermissionData(
|
|
362
|
+
name="Delete Automation Input",
|
|
363
|
+
description="Permission to delete automation input",
|
|
364
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
365
|
+
resource=PermissionResource.AUTOMATION_INPUT,
|
|
366
|
+
action=PermissionAction.DELETE,
|
|
367
|
+
)
|
|
368
|
+
AUTOMATION_ACTION_CREATE = PermissionData(
|
|
369
|
+
name="Create Automation Action",
|
|
370
|
+
description="Permission to create automation action",
|
|
371
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
372
|
+
resource=PermissionResource.AUTOMATION_ACTION,
|
|
373
|
+
action=PermissionAction.CREATE,
|
|
374
|
+
)
|
|
375
|
+
AUTOMATION_ACTION_VIEW = PermissionData(
|
|
376
|
+
name="View Automation Action",
|
|
377
|
+
description="Permission to view automation action",
|
|
378
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
379
|
+
resource=PermissionResource.AUTOMATION_ACTION,
|
|
380
|
+
action=PermissionAction.VIEW,
|
|
381
|
+
)
|
|
382
|
+
AUTOMATION_ACTION_EDIT = PermissionData(
|
|
383
|
+
name="Edit Automation Action",
|
|
384
|
+
description="Permission to edit automation action",
|
|
385
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
386
|
+
resource=PermissionResource.AUTOMATION_ACTION,
|
|
387
|
+
action=PermissionAction.EDIT,
|
|
388
|
+
)
|
|
389
|
+
AUTOMATION_ACTION_DELETE = PermissionData(
|
|
390
|
+
name="Delete Automation Action",
|
|
391
|
+
description="Permission to delete automation action",
|
|
392
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
393
|
+
resource=PermissionResource.AUTOMATION_ACTION,
|
|
394
|
+
action=PermissionAction.DELETE,
|
|
395
|
+
)
|
|
396
|
+
AUTOMATION_TRIGGER_CREATE = PermissionData(
|
|
397
|
+
name="Create Automation Trigger",
|
|
398
|
+
description="Permission to create automation trigger",
|
|
399
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
400
|
+
resource=PermissionResource.AUTOMATION_TRIGGER,
|
|
401
|
+
action=PermissionAction.CREATE,
|
|
402
|
+
)
|
|
403
|
+
AUTOMATION_TRIGGER_VIEW = PermissionData(
|
|
404
|
+
name="View Automation Trigger",
|
|
405
|
+
description="Permission to view automation trigger",
|
|
406
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
407
|
+
resource=PermissionResource.AUTOMATION_TRIGGER,
|
|
408
|
+
action=PermissionAction.VIEW,
|
|
409
|
+
)
|
|
410
|
+
AUTOMATION_TRIGGER_EDIT = PermissionData(
|
|
411
|
+
name="Edit Automation Trigger",
|
|
412
|
+
description="Permission to edit automation trigger",
|
|
413
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
414
|
+
resource=PermissionResource.AUTOMATION_TRIGGER,
|
|
415
|
+
action=PermissionAction.EDIT,
|
|
416
|
+
)
|
|
417
|
+
AUTOMATION_TRIGGER_DELETE = PermissionData(
|
|
418
|
+
name="Delete Automation Trigger",
|
|
419
|
+
description="Permission to delete automation trigger",
|
|
420
|
+
module=PermissionModule.AUTOMATION_BUILDER,
|
|
421
|
+
resource=PermissionResource.AUTOMATION_TRIGGER,
|
|
422
|
+
action=PermissionAction.DELETE,
|
|
423
|
+
)
|
|
424
|
+
|
|
425
|
+
# EDS Data Import Permissions
|
|
426
|
+
EDS_DATA_IMPORT_CONNECT_ACCOUNT = PermissionData(
|
|
427
|
+
name="Connect Account",
|
|
428
|
+
description="Connect Account",
|
|
429
|
+
module=PermissionModule.EDS,
|
|
430
|
+
resource=PermissionResource.DATA_IMPORT,
|
|
431
|
+
action=PermissionAction.CONNECT_ACCOUNT
|
|
432
|
+
)
|
|
433
|
+
|
|
434
|
+
EDS_DATA_IMPORT_VIEW_IMPORT_DATA = PermissionData(
|
|
435
|
+
name="View Import Data",
|
|
436
|
+
description="View Import Data",
|
|
437
|
+
module=PermissionModule.EDS,
|
|
438
|
+
resource=PermissionResource.DATA_IMPORT,
|
|
439
|
+
action=PermissionAction.VIEW_IMPORT_DATA
|
|
440
|
+
)
|
|
441
|
+
|
|
442
|
+
EDS_DATA_IMPORT_VIEW_WORKFLOW = PermissionData(
|
|
443
|
+
name="View Workflow",
|
|
444
|
+
description="View Workflow",
|
|
445
|
+
module=PermissionModule.EDS,
|
|
446
|
+
resource=PermissionResource.DATA_IMPORT,
|
|
447
|
+
action=PermissionAction.VIEW_WORKFLOW
|
|
448
|
+
)
|
|
449
|
+
|
|
450
|
+
EDS_DATA_IMPORT_VIEW_ERROR_DATA = PermissionData(
|
|
451
|
+
name="View Error Data",
|
|
452
|
+
description="View Error Data",
|
|
453
|
+
module=PermissionModule.EDS,
|
|
454
|
+
resource=PermissionResource.DATA_IMPORT,
|
|
455
|
+
action=PermissionAction.VIEW_ERROR_DATA
|
|
456
|
+
)
|
|
457
|
+
|
|
458
|
+
# EDS Integration Permissions
|
|
459
|
+
EDS_INTEGRATION_CONNECT_ACCOUNT = PermissionData(
|
|
460
|
+
name="Connect Account",
|
|
461
|
+
description="Connect Account",
|
|
462
|
+
module=PermissionModule.EDS,
|
|
463
|
+
resource=PermissionResource.INTEGRATION,
|
|
464
|
+
action=PermissionAction.CONNECT_ACCOUNT
|
|
465
|
+
)
|
|
466
|
+
|
|
467
|
+
EDS_DASHBOARD_VIEW = PermissionData(
|
|
468
|
+
name="View EDS Dashboard",
|
|
469
|
+
description="View EDS Dashboard",
|
|
470
|
+
module=PermissionModule.EDS,
|
|
471
|
+
resource=PermissionResource.DASHBOARD,
|
|
472
|
+
action=PermissionAction.VIEW,
|
|
473
|
+
)
|
|
474
|
+
EDS_EPARS_VIEW = PermissionData(
|
|
475
|
+
name="View EPARs",
|
|
476
|
+
description="View EPARs",
|
|
477
|
+
module=PermissionModule.EDS,
|
|
478
|
+
resource=PermissionResource.EPARS,
|
|
479
|
+
action=PermissionAction.VIEW,
|
|
480
|
+
)
|
|
481
|
+
EDS_OCFO_VIEW = PermissionData(
|
|
482
|
+
name="View OCFO",
|
|
483
|
+
description="View OCFO",
|
|
484
|
+
module=PermissionModule.EDS,
|
|
485
|
+
resource=PermissionResource.OCFO,
|
|
486
|
+
action=PermissionAction.VIEW,
|
|
487
|
+
)
|
|
488
|
+
EDS_EDS_ASSISTANT_VIEW = PermissionData(
|
|
489
|
+
name="View EDS Assistant",
|
|
490
|
+
description="View EDS Assistant",
|
|
491
|
+
module=PermissionModule.EDS,
|
|
492
|
+
resource=PermissionResource.EDS_ASSISTANT,
|
|
493
|
+
action=PermissionAction.VIEW,
|
|
494
|
+
)
|
|
495
|
+
EDS_REPORTS_VIEW = PermissionData(
|
|
496
|
+
name="View Reports",
|
|
497
|
+
description="View Reports",
|
|
498
|
+
module=PermissionModule.EDS,
|
|
499
|
+
resource=PermissionResource.REPORTS,
|
|
500
|
+
action=PermissionAction.VIEW,
|
|
501
|
+
)
|
|
502
|
+
EDS_EAPR_CREATE = PermissionData(
|
|
503
|
+
name="Create EPAR",
|
|
504
|
+
description="Create EPAR",
|
|
505
|
+
module=PermissionModule.EDS,
|
|
506
|
+
resource=PermissionResource.EPAR,
|
|
507
|
+
action=PermissionAction.CREATE,
|
|
508
|
+
)
|
|
509
|
+
EDS_EPAR_EDIT = PermissionData(
|
|
510
|
+
name="Edit EPAR",
|
|
511
|
+
description="Edit EPAR",
|
|
512
|
+
module=PermissionModule.EDS,
|
|
513
|
+
resource=PermissionResource.EPAR,
|
|
514
|
+
action=PermissionAction.EDIT,
|
|
515
|
+
)
|
|
516
|
+
EDS_EPAR_DOWNLOAD = PermissionData(
|
|
517
|
+
name="Download EPAR",
|
|
518
|
+
description="Download EPAR",
|
|
519
|
+
module=PermissionModule.EDS,
|
|
520
|
+
resource=PermissionResource.EPAR,
|
|
521
|
+
action=PermissionAction.DOWNLOAD,
|
|
522
|
+
)
|
|
523
|
+
EDS_EPAR_VIEW = PermissionData(
|
|
524
|
+
name="View EPAR",
|
|
525
|
+
description="View EPAR",
|
|
526
|
+
module=PermissionModule.EDS,
|
|
527
|
+
resource=PermissionResource.EPAR,
|
|
528
|
+
action=PermissionAction.VIEW,
|
|
529
|
+
)
|
|
530
|
+
EDS_WORKFLOW_VIEW = PermissionData(
|
|
531
|
+
name="View Workflow",
|
|
532
|
+
description="View Workflow",
|
|
533
|
+
module=PermissionModule.EDS,
|
|
534
|
+
resource=PermissionResource.WORKFLOW,
|
|
535
|
+
action=PermissionAction.VIEW,
|
|
536
|
+
)
|
|
537
|
+
EDS_FEEDBACK_VIEW = PermissionData(
|
|
538
|
+
name="View Feedback",
|
|
539
|
+
description="View Feedback",
|
|
540
|
+
module=PermissionModule.EDS,
|
|
541
|
+
resource=PermissionResource.FEEDBACK,
|
|
542
|
+
action=PermissionAction.VIEW,
|
|
543
|
+
)
|
|
544
|
+
EDS_OCFO_TUTORIALS_VIEW = PermissionData(
|
|
545
|
+
name="View OCFO Tutorials",
|
|
546
|
+
description="View OCFO Tutorials",
|
|
547
|
+
module=PermissionModule.EDS,
|
|
548
|
+
resource=PermissionResource.OCFO_TUTORIALS,
|
|
549
|
+
action=PermissionAction.VIEW,
|
|
550
|
+
)
|
|
551
|
+
EDS_EPAR_TUTORIALS_VIEW = PermissionData(
|
|
552
|
+
name="View EPAR Tutorials",
|
|
553
|
+
description="View EPAR Tutorials",
|
|
554
|
+
module=PermissionModule.EDS,
|
|
555
|
+
resource=PermissionResource.EPAR_TUTORIALS,
|
|
556
|
+
action=PermissionAction.VIEW,
|
|
557
|
+
)
|
|
558
|
+
EDS_RECENT_REVIEW_EPARS_VIEW = PermissionData(
|
|
559
|
+
name="View Recent Review EPARs",
|
|
560
|
+
description="View Recent Review EPARs",
|
|
561
|
+
module=PermissionModule.EDS,
|
|
562
|
+
resource=PermissionResource.RECENT_REVIEW_EPARS,
|
|
563
|
+
action=PermissionAction.VIEW,
|
|
564
|
+
)
|
|
565
|
+
VIEW_BILLING = PermissionData(
|
|
566
|
+
name="View Billing",
|
|
567
|
+
description="View Billing accounts",
|
|
568
|
+
module=PermissionModule.USER_MANAGEMENT,
|
|
569
|
+
resource=PermissionResource.BILLING_MANAGEMENT,
|
|
570
|
+
action=PermissionAction.VIEW_BILLING,
|
|
571
|
+
)
|
|
572
|
+
|
|
573
|
+
DELETE_BILLING = PermissionData(
|
|
574
|
+
name="Delete Billing",
|
|
575
|
+
description="Delete Billing accounts",
|
|
576
|
+
module=PermissionModule.USER_MANAGEMENT,
|
|
577
|
+
resource=PermissionResource.BILLING_MANAGEMENT,
|
|
578
|
+
action=PermissionAction.DELETE_BILLING,
|
|
579
|
+
)
|
|
580
|
+
|
|
581
|
+
EDIT_BILLING = PermissionData(
|
|
582
|
+
name="Edit Billing",
|
|
583
|
+
description="Edit existing Billing accounts",
|
|
584
|
+
module=PermissionModule.USER_MANAGEMENT,
|
|
585
|
+
resource=PermissionResource.BILLING_MANAGEMENT,
|
|
586
|
+
action=PermissionAction.EDIT_BILLING,
|
|
587
|
+
)
|
|
588
|
+
|
|
589
|
+
CREATE_BILLING = PermissionData(
|
|
590
|
+
name="Create Billing",
|
|
591
|
+
description="Create new Billing accounts",
|
|
592
|
+
module=PermissionModule.USER_MANAGEMENT,
|
|
593
|
+
resource=PermissionResource.BILLING_MANAGEMENT,
|
|
594
|
+
action=PermissionAction.CREATE_BILLING,
|
|
595
|
+
)
|
|
596
|
+
|
|
597
|
+
VIEW_ASL = PermissionData(
|
|
598
|
+
name="View ASL",
|
|
599
|
+
description="View ASL",
|
|
600
|
+
module=PermissionModule.ASL,
|
|
601
|
+
resource=PermissionResource.ASL,
|
|
602
|
+
action=PermissionAction.VIEW_ASL,
|
|
603
|
+
)
|
|
604
|
+
|
|
605
|
+
SEND_EMAIL_RESPONSES = PermissionData(
|
|
606
|
+
name="Send Email Responses",
|
|
607
|
+
description="Permission to send email responses",
|
|
608
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
609
|
+
resource=PermissionResource.COMMUNICATION_ACTIONS,
|
|
610
|
+
action=PermissionAction.SEND_EMAIL_RESPONSES,
|
|
611
|
+
)
|
|
612
|
+
|
|
613
|
+
SEND_DRAFTS = PermissionData(
|
|
614
|
+
name="Send Drafts",
|
|
615
|
+
description="Permission to send drafts",
|
|
616
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
617
|
+
resource=PermissionResource.COMMUNICATION_ACTIONS,
|
|
618
|
+
action=PermissionAction.SEND_DRAFTS,
|
|
619
|
+
)
|
|
620
|
+
|
|
621
|
+
HANDLE_VOICEMAIL_RESPONSES = PermissionData(
|
|
622
|
+
name="Handle Voicemail Responses",
|
|
623
|
+
description="Permission to handle voicemail responses",
|
|
624
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
625
|
+
resource=PermissionResource.COMMUNICATION_ACTIONS,
|
|
626
|
+
action=PermissionAction.HANDLE_VOICEMAIL_RESPONSES,
|
|
627
|
+
)
|
|
628
|
+
|
|
629
|
+
PROCESS_PHYSICAL_MAIL = PermissionData(
|
|
630
|
+
name="Process Physical Mail",
|
|
631
|
+
description="Permission to process physical mail",
|
|
632
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
633
|
+
resource=PermissionResource.COMMUNICATION_ACTIONS,
|
|
634
|
+
action=PermissionAction.PROCESS_PHYSICAL_MAIL,
|
|
635
|
+
)
|
|
636
|
+
|
|
637
|
+
RESPOND_VIA_FORMS = PermissionData(
|
|
638
|
+
name="Respond via Forms",
|
|
639
|
+
description="Permission to respond via forms",
|
|
640
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
641
|
+
resource=PermissionResource.COMMUNICATION_ACTIONS,
|
|
642
|
+
action=PermissionAction.RESPOND_VIA_FORMS,
|
|
643
|
+
)
|
|
644
|
+
|
|
645
|
+
INITIATE_OUTBOUND_COMMUNICATIONS = PermissionData(
|
|
646
|
+
name="Initiate Outbound Communications",
|
|
647
|
+
description="Permission to initiate outbound communications",
|
|
648
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
649
|
+
resource=PermissionResource.COMMUNICATION_ACTIONS,
|
|
650
|
+
action=PermissionAction.INITIATE_OUTBOUND_COMMUNICATIONS,
|
|
651
|
+
)
|
|
652
|
+
|
|
653
|
+
CREATE_EMAIL_CHANNELS = PermissionData(
|
|
654
|
+
name="Create Email Channels",
|
|
655
|
+
description="Permission to create email channels",
|
|
656
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
657
|
+
resource=PermissionResource.COMMUNICATION_CHANNEL_MANAGEMENT_PERMISSIONS,
|
|
658
|
+
action=PermissionAction.CREATE_EMAIL_CHANNELS,
|
|
659
|
+
)
|
|
660
|
+
|
|
661
|
+
SYNC_EMAIL_CHANNELS = PermissionData(
|
|
662
|
+
name="Sync Email Channels",
|
|
663
|
+
description="Permission to sync email channels",
|
|
664
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
665
|
+
resource=PermissionResource.COMMUNICATION_CHANNEL_MANAGEMENT_PERMISSIONS,
|
|
666
|
+
action=PermissionAction.SYNC_EMAIL_CHANNELS,
|
|
667
|
+
)
|
|
668
|
+
|
|
669
|
+
SETUP_VOICEMAIL_CHANNELS = PermissionData(
|
|
670
|
+
name="Setup Voicemail Channels",
|
|
671
|
+
description="Permission to set up voicemail channels",
|
|
672
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
673
|
+
resource=PermissionResource.COMMUNICATION_CHANNEL_MANAGEMENT_PERMISSIONS,
|
|
674
|
+
action=PermissionAction.SETUP_VOICEMAIL_CHANNELS,
|
|
675
|
+
)
|
|
676
|
+
|
|
677
|
+
CONFIGURE_PHYSICAL_MAIL_INTAKE = PermissionData(
|
|
678
|
+
name="Configure Physical Mail Intake",
|
|
679
|
+
description="Permission to configure physical mail intake",
|
|
680
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
681
|
+
resource=PermissionResource.COMMUNICATION_CHANNEL_MANAGEMENT_PERMISSIONS,
|
|
682
|
+
action=PermissionAction.CONFIGURE_PHYSICAL_MAIL_INTAKE,
|
|
683
|
+
)
|
|
684
|
+
|
|
685
|
+
SETUP_FORM_CHANNELS = PermissionData(
|
|
686
|
+
name="Setup Form Channels",
|
|
687
|
+
description="Permission to set up form channels",
|
|
688
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
689
|
+
resource=PermissionResource.COMMUNICATION_CHANNEL_MANAGEMENT_PERMISSIONS,
|
|
690
|
+
action=PermissionAction.SETUP_FORM_CHANNELS,
|
|
691
|
+
)
|
|
692
|
+
|
|
693
|
+
VIEW_ALL_MESSAGES = PermissionData(
|
|
694
|
+
name="View All Messages",
|
|
695
|
+
description="Permission to view all messages",
|
|
696
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
697
|
+
resource=PermissionResource.MESSAGE_MANAGEMENT_PERMISSIONS,
|
|
698
|
+
action=PermissionAction.VIEW_ALL_MESSAGES,
|
|
699
|
+
)
|
|
700
|
+
|
|
701
|
+
VIEW_DEPARTMENT_MESSAGES = PermissionData(
|
|
702
|
+
name="View Department Messages",
|
|
703
|
+
description="Permission to view department messages",
|
|
704
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
705
|
+
resource=PermissionResource.MESSAGE_MANAGEMENT_PERMISSIONS,
|
|
706
|
+
action=PermissionAction.VIEW_DEPARTMENT_MESSAGES,
|
|
707
|
+
)
|
|
708
|
+
|
|
709
|
+
VIEW_OWN_MESSAGES = PermissionData(
|
|
710
|
+
name="View Own Messages",
|
|
711
|
+
description="Permission to view own messages",
|
|
712
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
713
|
+
resource=PermissionResource.MESSAGE_MANAGEMENT_PERMISSIONS,
|
|
714
|
+
action=PermissionAction.VIEW_OWN_MESSAGES,
|
|
715
|
+
)
|
|
716
|
+
|
|
717
|
+
CREATE_MESSAGES = PermissionData(
|
|
718
|
+
name="Create Messages",
|
|
719
|
+
description="Permission to create messages",
|
|
720
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
721
|
+
resource=PermissionResource.MESSAGE_MANAGEMENT_PERMISSIONS,
|
|
722
|
+
action=PermissionAction.CREATE_MESSAGES,
|
|
723
|
+
)
|
|
724
|
+
|
|
725
|
+
UPDATE_MESSAGES = PermissionData(
|
|
726
|
+
name="Update Message",
|
|
727
|
+
description="Permission to update messages",
|
|
728
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
729
|
+
resource=PermissionResource.MESSAGE_MANAGEMENT_PERMISSIONS,
|
|
730
|
+
action=PermissionAction.UPDATE_MESSAGES,
|
|
731
|
+
)
|
|
732
|
+
|
|
733
|
+
DELETE_MESSAGES = PermissionData(
|
|
734
|
+
name="Delete Messages",
|
|
735
|
+
description="Permission to delete messages",
|
|
736
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
737
|
+
resource=PermissionResource.MESSAGE_MANAGEMENT_PERMISSIONS,
|
|
738
|
+
action=PermissionAction.DELETE_MESSAGES,
|
|
739
|
+
)
|
|
740
|
+
|
|
741
|
+
REASSIGN_MESSAGES = PermissionData(
|
|
742
|
+
name="Reassign Messages",
|
|
743
|
+
description="Permission to reassign messages",
|
|
744
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
745
|
+
resource=PermissionResource.MESSAGE_MANAGEMENT_PERMISSIONS,
|
|
746
|
+
action=PermissionAction.REASSIGN_MESSAGES,
|
|
747
|
+
)
|
|
748
|
+
|
|
749
|
+
ARCHIVE_MESSAGES = PermissionData(
|
|
750
|
+
name="Archive Messages",
|
|
751
|
+
description="Permission to archive messages",
|
|
752
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
753
|
+
resource=PermissionResource.MESSAGE_MANAGEMENT_PERMISSIONS,
|
|
754
|
+
action=PermissionAction.ARCHIVE_MESSAGES,
|
|
755
|
+
)
|
|
756
|
+
|
|
757
|
+
|
|
188
758
|
# AI EMS Permissions
|
|
189
759
|
AI_EMS_FACILITIES_CREATE = PermissionData(
|
|
190
760
|
name="Create AI EMS",
|
|
@@ -327,7 +897,7 @@ class PermissionConstants:
|
|
|
327
897
|
WORKFORCE_AGENT_CREATE = PermissionData(
|
|
328
898
|
name="Create Workforce Agent",
|
|
329
899
|
description="Permission to create workforce agents",
|
|
330
|
-
module=PermissionModule.
|
|
900
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
331
901
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
332
902
|
action=PermissionAction.CREATE,
|
|
333
903
|
)
|
|
@@ -335,7 +905,7 @@ class PermissionConstants:
|
|
|
335
905
|
WORKFORCE_AGENT_VIEW = PermissionData(
|
|
336
906
|
name="View Workforce Agent",
|
|
337
907
|
description="Permission to view workforce agents",
|
|
338
|
-
module=PermissionModule.
|
|
908
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
339
909
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
340
910
|
action=PermissionAction.VIEW,
|
|
341
911
|
)
|
|
@@ -343,7 +913,7 @@ class PermissionConstants:
|
|
|
343
913
|
WORKFORCE_AGENT_EDIT = PermissionData(
|
|
344
914
|
name="Edit Workforce Agent",
|
|
345
915
|
description="Permission to edit workforce agents",
|
|
346
|
-
module=PermissionModule.
|
|
916
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
347
917
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
348
918
|
action=PermissionAction.EDIT,
|
|
349
919
|
)
|
|
@@ -351,7 +921,7 @@ class PermissionConstants:
|
|
|
351
921
|
WORKFORCE_AGENT_DELETE = PermissionData(
|
|
352
922
|
name="Delete Workforce Agent",
|
|
353
923
|
description="Permission to delete workforce agents",
|
|
354
|
-
module=PermissionModule.
|
|
924
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
355
925
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
356
926
|
action=PermissionAction.DELETE,
|
|
357
927
|
)
|
|
@@ -359,7 +929,7 @@ class PermissionConstants:
|
|
|
359
929
|
WORKFORCE_AGENT_MANAGE_DOCUMENTS = PermissionData(
|
|
360
930
|
name="Manage Agent Documents",
|
|
361
931
|
description="Permission to manage workforce agent documents",
|
|
362
|
-
module=PermissionModule.
|
|
932
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
363
933
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
364
934
|
action=PermissionAction.MANAGE_DOCUMENTS,
|
|
365
935
|
)
|
|
@@ -367,7 +937,7 @@ class PermissionConstants:
|
|
|
367
937
|
WORKFORCE_AGENT_MANAGE_CONTAINERS = PermissionData(
|
|
368
938
|
name="Manage Agent Containers",
|
|
369
939
|
description="Permission to manage workforce agent containers",
|
|
370
|
-
module=PermissionModule.
|
|
940
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
371
941
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
372
942
|
action=PermissionAction.MANAGE_CONTAINERS,
|
|
373
943
|
)
|
|
@@ -375,7 +945,7 @@ class PermissionConstants:
|
|
|
375
945
|
WORKFORCE_AGENT_MANAGE_DATA_SOURCES = PermissionData(
|
|
376
946
|
name="Manage Agent Data Sources",
|
|
377
947
|
description="Permission to manage workforce agent data sources",
|
|
378
|
-
module=PermissionModule.
|
|
948
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
379
949
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
380
950
|
action=PermissionAction.MANAGE_DATA_SOURCES,
|
|
381
951
|
)
|
|
@@ -383,7 +953,7 @@ class PermissionConstants:
|
|
|
383
953
|
WORKFORCE_AGENT_MANAGE_INSTRUCTIONS = PermissionData(
|
|
384
954
|
name="Manage Agent Instructions",
|
|
385
955
|
description="Permission to manage workforce agent instructions",
|
|
386
|
-
module=PermissionModule.
|
|
956
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
387
957
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
388
958
|
action=PermissionAction.MANAGE_INSTRUCTIONS,
|
|
389
959
|
)
|
|
@@ -391,7 +961,7 @@ class PermissionConstants:
|
|
|
391
961
|
WORKFORCE_AGENT_MANAGE_TOOLS = PermissionData(
|
|
392
962
|
name="Manage Agent Tools",
|
|
393
963
|
description="Permission to manage workforce agent tools",
|
|
394
|
-
module=PermissionModule.
|
|
964
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
395
965
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
396
966
|
action=PermissionAction.MANAGE_TOOLS,
|
|
397
967
|
)
|
|
@@ -399,7 +969,7 @@ class PermissionConstants:
|
|
|
399
969
|
WORKFORCE_AGENT_MANAGE_TRIGGERS = PermissionData(
|
|
400
970
|
name="Manage Agent Triggers",
|
|
401
971
|
description="Permission to manage workforce agent triggers",
|
|
402
|
-
module=PermissionModule.
|
|
972
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
403
973
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
404
974
|
action=PermissionAction.MANAGE_TRIGGERS,
|
|
405
975
|
)
|
|
@@ -407,7 +977,7 @@ class PermissionConstants:
|
|
|
407
977
|
WORKFORCE_AGENT_PUBLISH = PermissionData(
|
|
408
978
|
name="Publish Agent",
|
|
409
979
|
description="Permission to publish workforce agents",
|
|
410
|
-
module=PermissionModule.
|
|
980
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
411
981
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
412
982
|
action=PermissionAction.PUBLISH,
|
|
413
983
|
)
|
|
@@ -415,7 +985,7 @@ class PermissionConstants:
|
|
|
415
985
|
WORKFORCE_AGENT_OPERATE = PermissionData(
|
|
416
986
|
name="Operate Agent",
|
|
417
987
|
description="Permission to operate workforce agents",
|
|
418
|
-
module=PermissionModule.
|
|
988
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
419
989
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
420
990
|
action=PermissionAction.OPERATE,
|
|
421
991
|
)
|
|
@@ -423,7 +993,7 @@ class PermissionConstants:
|
|
|
423
993
|
WORKFORCE_AGENT_MODIFY_PUBLISHED = PermissionData(
|
|
424
994
|
name="Modify Published Agent",
|
|
425
995
|
description="Permission to modify published workforce agents",
|
|
426
|
-
module=PermissionModule.
|
|
996
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
427
997
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
428
998
|
action=PermissionAction.MODIFY_PUBLISHED,
|
|
429
999
|
)
|
|
@@ -431,7 +1001,7 @@ class PermissionConstants:
|
|
|
431
1001
|
WORKFORCE_AGENT_INITIALIZE = PermissionData(
|
|
432
1002
|
name="Initialize Agent",
|
|
433
1003
|
description="Permission to initialize workforce agents",
|
|
434
|
-
module=PermissionModule.
|
|
1004
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
435
1005
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
436
1006
|
action=PermissionAction.INITIALIZE,
|
|
437
1007
|
)
|
|
@@ -439,7 +1009,7 @@ class PermissionConstants:
|
|
|
439
1009
|
WORKFORCE_AGENT_ACCESS_SHAREPOINT = PermissionData(
|
|
440
1010
|
name="Access SharePoint",
|
|
441
1011
|
description="Permission for workforce agents to access SharePoint",
|
|
442
|
-
module=PermissionModule.
|
|
1012
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
443
1013
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
444
1014
|
action=PermissionAction.ACCESS_SHAREPOINT,
|
|
445
1015
|
)
|
|
@@ -447,7 +1017,7 @@ class PermissionConstants:
|
|
|
447
1017
|
WORKFORCE_AGENT_ACCESS_AZURE_STORAGE = PermissionData(
|
|
448
1018
|
name="Access Azure Storage",
|
|
449
1019
|
description="Permission for workforce agents to access Azure Storage",
|
|
450
|
-
module=PermissionModule.
|
|
1020
|
+
module=PermissionModule.WORKFORCE_AGENT,
|
|
451
1021
|
resource=PermissionResource.WORKFORCE_AGENT,
|
|
452
1022
|
action=PermissionAction.ACCESS_AZURE_STORAGE,
|
|
453
1023
|
)
|
|
@@ -1757,6 +2327,270 @@ class PermissionConstants:
|
|
|
1757
2327
|
action=PermissionAction.VIEW,
|
|
1758
2328
|
)
|
|
1759
2329
|
|
|
2330
|
+
# Message Management Permissions
|
|
2331
|
+
MESSAGE_MANAGEMENT_VIEW_ALL = PermissionData(
|
|
2332
|
+
name="View All Messages",
|
|
2333
|
+
description="Permission to view all messages across departments",
|
|
2334
|
+
module=PermissionModule.CONSTITUENT_COMPLAINTS,
|
|
2335
|
+
resource=PermissionResource.MESSAGE_MANAGEMENT_PERMISSIONS,
|
|
2336
|
+
action=PermissionAction.VIEW_ALL_MESSAGES,
|
|
2337
|
+
)
|
|
2338
|
+
MESSAGE_MANAGEMENT_VIEW_DEPARTMENT = PermissionData(
|
|
2339
|
+
name="View Department Messages",
|
|
2340
|
+
description="Permission to view messages within own department",
|
|
2341
|
+
module=PermissionModule.CONSTITUENT_COMPLAINTS,
|
|
2342
|
+
resource=PermissionResource.MESSAGE_MANAGEMENT_PERMISSIONS,
|
|
2343
|
+
action=PermissionAction.VIEW_DEPARTMENT_MESSAGES,
|
|
2344
|
+
)
|
|
2345
|
+
MESSAGE_MANAGEMENT_VIEW_OWN = PermissionData(
|
|
2346
|
+
name="View Own Messages",
|
|
2347
|
+
description="Permission to view own messages",
|
|
2348
|
+
module=PermissionModule.CONSTITUENT_COMPLAINTS,
|
|
2349
|
+
resource=PermissionResource.MESSAGE_MANAGEMENT_PERMISSIONS,
|
|
2350
|
+
action=PermissionAction.VIEW_OWN_MESSAGES,
|
|
2351
|
+
)
|
|
2352
|
+
|
|
2353
|
+
# Department Management Permissions
|
|
2354
|
+
DEPARTMENT_MANAGEMENT_VIEW_ALL = PermissionData(
|
|
2355
|
+
name="View All Department Data",
|
|
2356
|
+
description="Permission to view data from all departments",
|
|
2357
|
+
module=PermissionModule.CONSTITUENT_COMPLAINTS,
|
|
2358
|
+
resource=PermissionResource.DEPARTMENT_MANAGEMENT_PERMISSIONS,
|
|
2359
|
+
action=PermissionAction.VIEW_ALL_DEPARTMENT_DATA,
|
|
2360
|
+
)
|
|
2361
|
+
DEPARTMENT_MANAGEMENT_VIEW_OWN = PermissionData(
|
|
2362
|
+
name="View Own Department Data",
|
|
2363
|
+
description="Permission to view data from own department",
|
|
2364
|
+
module=PermissionModule.CONSTITUENT_COMPLAINTS,
|
|
2365
|
+
resource=PermissionResource.DEPARTMENT_MANAGEMENT_PERMISSIONS,
|
|
2366
|
+
action=PermissionAction.VIEW_OWN_DEPARTMENT_DATA,
|
|
2367
|
+
)
|
|
2368
|
+
|
|
2369
|
+
# Channel Specific Permissions
|
|
2370
|
+
CHANNEL_SPECIFIC_CONFIGURE_EMAIL = PermissionData(
|
|
2371
|
+
name="Configure Email Settings",
|
|
2372
|
+
description="Permission to configure email channel settings",
|
|
2373
|
+
module=PermissionModule.CONSTITUENT_COMPLAINTS,
|
|
2374
|
+
resource=PermissionResource.CHANNEL_SPECIFIC_PERMISSIONS,
|
|
2375
|
+
action=PermissionAction.CONFIGURE_EMAIL_SETTINGS,
|
|
2376
|
+
)
|
|
2377
|
+
|
|
2378
|
+
ADD_KNOWLEDGE_EMAIL_PROCESS = PermissionData(
|
|
2379
|
+
name="Add Knowledge",
|
|
2380
|
+
description="Permission to add knowledge in department",
|
|
2381
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
2382
|
+
resource=PermissionResource.DEPARTMENT_MANAGEMENT_PERMISSIONS,
|
|
2383
|
+
action=PermissionAction.ADD_KNOWLEDGE
|
|
2384
|
+
)
|
|
2385
|
+
|
|
2386
|
+
CHANGE_DEPARTMENT_SETTINGS_EMAIL_PROCESS = PermissionData(
|
|
2387
|
+
name="Change Department Settings",
|
|
2388
|
+
description="Permission to change department settings",
|
|
2389
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
2390
|
+
resource=PermissionResource.DEPARTMENT_MANAGEMENT_PERMISSIONS,
|
|
2391
|
+
action=PermissionAction.CHANGE_DEPARTMENT_SETTINGS
|
|
2392
|
+
)
|
|
2393
|
+
|
|
2394
|
+
ASSIGN_USERS_TO_DEPARTMENTS_EMAIL_PROCESS = PermissionData(
|
|
2395
|
+
name="Assign Users to Departments",
|
|
2396
|
+
description="Permission to assign users to departments",
|
|
2397
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
2398
|
+
resource=PermissionResource.DEPARTMENT_MANAGEMENT_PERMISSIONS,
|
|
2399
|
+
action=PermissionAction.ASSIGN_USERS_TO_DEPARTMENTS
|
|
2400
|
+
)
|
|
2401
|
+
|
|
2402
|
+
ASSIGN_USERS_WITHIN_DEPARTMENT_EMAIL_PROCESS = PermissionData(
|
|
2403
|
+
name="Assign Users Within Department",
|
|
2404
|
+
description="Permission to assign users within their own department",
|
|
2405
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
2406
|
+
resource=PermissionResource.DEPARTMENT_MANAGEMENT_PERMISSIONS,
|
|
2407
|
+
action=PermissionAction.ASSIGN_USERS_WITHIN_DEPARTMENT
|
|
2408
|
+
)
|
|
2409
|
+
|
|
2410
|
+
VIEW_ALL_DEPARTMENT_DATA_EMAIL_PROCESS = PermissionData(
|
|
2411
|
+
name="View All Department Data",
|
|
2412
|
+
description="Permission to view all department data",
|
|
2413
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
2414
|
+
resource=PermissionResource.DEPARTMENT_MANAGEMENT_PERMISSIONS,
|
|
2415
|
+
action=PermissionAction.VIEW_ALL_DEPARTMENT_DATA
|
|
2416
|
+
)
|
|
2417
|
+
|
|
2418
|
+
VIEW_OWN_DEPARTMENT_DATA_EMAIL_PROCESS = PermissionData(
|
|
2419
|
+
name="View Own Department Data",
|
|
2420
|
+
description="Permission to view own department's data",
|
|
2421
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
2422
|
+
resource=PermissionResource.DEPARTMENT_MANAGEMENT_PERMISSIONS,
|
|
2423
|
+
action=PermissionAction.VIEW_OWN_DEPARTMENT_DATA
|
|
2424
|
+
)
|
|
2425
|
+
|
|
2426
|
+
MANAGE_DEPARTMENT_ROUTING_EMAIL_PROCESS = PermissionData(
|
|
2427
|
+
name="Manage Department Routing",
|
|
2428
|
+
description="Permission to manage routing settings for departments",
|
|
2429
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
2430
|
+
resource=PermissionResource.DEPARTMENT_MANAGEMENT_PERMISSIONS,
|
|
2431
|
+
action=PermissionAction.MANAGE_DEPARTMENT_ROUTING
|
|
2432
|
+
)
|
|
2433
|
+
|
|
2434
|
+
# System Access Tracking Permissions
|
|
2435
|
+
LOGIN_ACCESS_EMAIL_PROCESS = PermissionData(
|
|
2436
|
+
name="Login Access",
|
|
2437
|
+
description="Permission for login access",
|
|
2438
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
2439
|
+
resource=PermissionResource.SYSTEM_ACCESS_TRACKING_PERMISSIONS,
|
|
2440
|
+
action=PermissionAction.LOGIN_ACCESS
|
|
2441
|
+
)
|
|
2442
|
+
|
|
2443
|
+
FORM_ONLY_ACCESS_EMAIL_PROCESS = PermissionData(
|
|
2444
|
+
name="Form Only Access",
|
|
2445
|
+
description="Permission to access only forms",
|
|
2446
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
2447
|
+
resource=PermissionResource.SYSTEM_ACCESS_TRACKING_PERMISSIONS,
|
|
2448
|
+
action=PermissionAction.FORM_ONLY_ACCESS
|
|
2449
|
+
)
|
|
2450
|
+
|
|
2451
|
+
TRACK_USER_ACTIONS_EMAIL_PROCESS = PermissionData(
|
|
2452
|
+
name="Track User Actions",
|
|
2453
|
+
description="Permission to track user actions",
|
|
2454
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
2455
|
+
resource=PermissionResource.SYSTEM_ACCESS_TRACKING_PERMISSIONS,
|
|
2456
|
+
action=PermissionAction.TRACK_USER_ACTIONS
|
|
2457
|
+
)
|
|
2458
|
+
|
|
2459
|
+
GENERATE_ALL_REPORTS_EMAIL_PROCESS = PermissionData(
|
|
2460
|
+
name="Generate All Reports",
|
|
2461
|
+
description="Permission to generate all reports",
|
|
2462
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
2463
|
+
resource=PermissionResource.SYSTEM_ACCESS_TRACKING_PERMISSIONS,
|
|
2464
|
+
action=PermissionAction.GENERATE_ALL_REPORTS
|
|
2465
|
+
)
|
|
2466
|
+
|
|
2467
|
+
GENERATE_DEPARTMENT_REPORTS_EMAIL_PROCESS = PermissionData(
|
|
2468
|
+
name="Generate Department Reports",
|
|
2469
|
+
description="Permission to generate department-specific reports",
|
|
2470
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
2471
|
+
resource=PermissionResource.SYSTEM_ACCESS_TRACKING_PERMISSIONS,
|
|
2472
|
+
action=PermissionAction.GENERATE_DEPARTMENT_REPORTS
|
|
2473
|
+
)
|
|
2474
|
+
|
|
2475
|
+
VIEW_ALL_ANALYTICS_EMAIL_PROCESS = PermissionData(
|
|
2476
|
+
name="View All Analytics",
|
|
2477
|
+
description="Permission to view analytics across the system",
|
|
2478
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
2479
|
+
resource=PermissionResource.SYSTEM_ACCESS_TRACKING_PERMISSIONS,
|
|
2480
|
+
action=PermissionAction.VIEW_ALL_ANALYTICS
|
|
2481
|
+
)
|
|
2482
|
+
|
|
2483
|
+
VIEW_DEPARTMENT_ANALYTICS_EMAIL_PROCESS = PermissionData(
|
|
2484
|
+
name="View Department Analytics",
|
|
2485
|
+
description="Permission to view department-specific analytics",
|
|
2486
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
2487
|
+
resource=PermissionResource.SYSTEM_ACCESS_TRACKING_PERMISSIONS,
|
|
2488
|
+
action=PermissionAction.VIEW_DEPARTMENT_ANALYTICS
|
|
2489
|
+
)
|
|
2490
|
+
VIEW_ENTITY_MANAGER_ENTITY_MANAGER = PermissionData(
|
|
2491
|
+
name="View Entity Manager Apps",
|
|
2492
|
+
description="Permission to view entity manager apps",
|
|
2493
|
+
module=PermissionModule.ENTITY_MANAGER,
|
|
2494
|
+
resource=PermissionResource.ENTITY_MANAGER,
|
|
2495
|
+
action=PermissionAction.VIEW
|
|
2496
|
+
)
|
|
2497
|
+
SYNC_EMAILS = PermissionData(
|
|
2498
|
+
name="Sync Emails",
|
|
2499
|
+
description="Permission to sync emails",
|
|
2500
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
2501
|
+
resource=PermissionResource.CHANNEL_SPECIFIC_PERMISSIONS,
|
|
2502
|
+
action=PermissionAction.SYNC_EMAILS
|
|
2503
|
+
)
|
|
2504
|
+
|
|
2505
|
+
CONFIGURE_EMAIL_SETTINGS = PermissionData(
|
|
2506
|
+
name="Configure Email Settings",
|
|
2507
|
+
description="Permission to configure email settings",
|
|
2508
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
2509
|
+
resource=PermissionResource.CHANNEL_SPECIFIC_PERMISSIONS,
|
|
2510
|
+
action=PermissionAction.CONFIGURE_EMAIL_SETTINGS
|
|
2511
|
+
)
|
|
2512
|
+
|
|
2513
|
+
SEND_EMAIL_RESPONSES = PermissionData(
|
|
2514
|
+
name="Send Email Responses",
|
|
2515
|
+
description="Permission to send email responses",
|
|
2516
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
2517
|
+
resource=PermissionResource.CHANNEL_SPECIFIC_PERMISSIONS,
|
|
2518
|
+
action=PermissionAction.SEND_EMAIL_RESPONSES
|
|
2519
|
+
)
|
|
2520
|
+
|
|
2521
|
+
ACCESS_VOICEMAIL_SYSTEM = PermissionData(
|
|
2522
|
+
name="Access Voicemail System",
|
|
2523
|
+
description="Permission to access voicemail system",
|
|
2524
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
2525
|
+
resource=PermissionResource.CHANNEL_SPECIFIC_PERMISSIONS,
|
|
2526
|
+
action=PermissionAction.ACCESS_VOICEMAIL_SYSTEM
|
|
2527
|
+
)
|
|
2528
|
+
|
|
2529
|
+
TRANSCRIBE_VOICEMAILS = PermissionData(
|
|
2530
|
+
name="Transcribe Voicemails",
|
|
2531
|
+
description="Permission to transcribe voicemails",
|
|
2532
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
2533
|
+
resource=PermissionResource.CHANNEL_SPECIFIC_PERMISSIONS,
|
|
2534
|
+
action=PermissionAction.TRANSCRIBE_VOICEMAILS
|
|
2535
|
+
)
|
|
2536
|
+
|
|
2537
|
+
CALLBACK_CONSTITUENTS = PermissionData(
|
|
2538
|
+
name="Callback Constituents",
|
|
2539
|
+
description="Permission to callback constituents",
|
|
2540
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
2541
|
+
resource=PermissionResource.CHANNEL_SPECIFIC_PERMISSIONS,
|
|
2542
|
+
action=PermissionAction.CALLBACK_CONSTITUENTS
|
|
2543
|
+
)
|
|
2544
|
+
|
|
2545
|
+
SCAN_PHYSICAL_MAIL = PermissionData(
|
|
2546
|
+
name="Scan Physical Mail",
|
|
2547
|
+
description="Permission to scan physical mail",
|
|
2548
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
2549
|
+
resource=PermissionResource.CHANNEL_SPECIFIC_PERMISSIONS,
|
|
2550
|
+
action=PermissionAction.SCAN_PHYSICAL_MAIL
|
|
2551
|
+
)
|
|
2552
|
+
|
|
2553
|
+
OCR_DOCUMENT_PROCESSING = PermissionData(
|
|
2554
|
+
name="OCR Document Processing",
|
|
2555
|
+
description="Permission to process documents using OCR",
|
|
2556
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
2557
|
+
resource=PermissionResource.CHANNEL_SPECIFIC_PERMISSIONS,
|
|
2558
|
+
action=PermissionAction.OCR_DOCUMENT_PROCESSING
|
|
2559
|
+
)
|
|
2560
|
+
|
|
2561
|
+
HANDLE_PHYSICAL_RESPONSES = PermissionData(
|
|
2562
|
+
name="Handle Physical Responses",
|
|
2563
|
+
description="Permission to handle physical mail responses",
|
|
2564
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
2565
|
+
resource=PermissionResource.CHANNEL_SPECIFIC_PERMISSIONS,
|
|
2566
|
+
action=PermissionAction.HANDLE_PHYSICAL_RESPONSES
|
|
2567
|
+
)
|
|
2568
|
+
|
|
2569
|
+
CONFIGURE_FORMS = PermissionData(
|
|
2570
|
+
name="Configure Forms",
|
|
2571
|
+
description="Permission to configure forms",
|
|
2572
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
2573
|
+
resource=PermissionResource.CHANNEL_SPECIFIC_PERMISSIONS,
|
|
2574
|
+
action=PermissionAction.CONFIGURE_FORMS
|
|
2575
|
+
)
|
|
2576
|
+
|
|
2577
|
+
VIEW_FORM_SUBMISSIONS = PermissionData(
|
|
2578
|
+
name="View Form Submissions",
|
|
2579
|
+
description="Permission to view form submissions",
|
|
2580
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
2581
|
+
resource=PermissionResource.CHANNEL_SPECIFIC_PERMISSIONS,
|
|
2582
|
+
action=PermissionAction.VIEW_FORM_SUBMISSIONS
|
|
2583
|
+
)
|
|
2584
|
+
|
|
2585
|
+
SUBMIT_FORMS = PermissionData(
|
|
2586
|
+
name="Submit Forms",
|
|
2587
|
+
description="Permission to submit forms",
|
|
2588
|
+
module=PermissionModule.EMAIL_PROCESS,
|
|
2589
|
+
resource=PermissionResource.CHANNEL_SPECIFIC_PERMISSIONS,
|
|
2590
|
+
action=PermissionAction.SUBMIT_FORMS
|
|
2591
|
+
)
|
|
2592
|
+
|
|
2593
|
+
|
|
1760
2594
|
@classmethod
|
|
1761
2595
|
def get_all_permissions(cls) -> List[PermissionData]:
|
|
1762
2596
|
"""Get all defined permissions"""
|