{"version":3,"sources":["processes/Services/actions.ts","processes/WebTwain/ImageUploaderLogic/types.ts","processes/TasksCart/logic/reducer.ts","processes/Auth/logic/reducer.ts","processes/Procedure/logic/reducer.ts","processes/Storage/logic/reducer.ts","processes/TaskType/logic/reducer.ts","processes/Priority/logic/reducer.ts","processes/Stakholders/logic/reducer.ts","processes/Delegation/logic/reducer.ts","processes/Services/reducer.ts","processes/Logs/logic/reducers.ts","processes/SearchIndex/logic/reducer.ts","processes/Auditing/logic/reducer.ts","processes/Users/logic/reducer.ts","processes/MyDelegations/logic/reducer.ts","processes/Organization/logic/reducer.ts","processes/PermissionTemplates/logic/reducer.ts","processes/LoginAs/logic/reducer.ts","processes/UserPermissions/logic/reducer.ts","processes/AddTask/logic/reducer.ts","processes/WebTwain/ImageUploaderLogic/reducers.ts","processes/Tasks/logic/reducer.ts","processes/CedRequests/logic/reducer.ts","processes/Search/logic/reducer.ts","processes/TaskDetails/logic/reducers.ts","processes/Notification/logic/reducer.ts","processes/TaskCedRequests/logic/reducer.ts","processes/Reports/MainOrgTasksStatus/logic/reducer.ts","processes/Reports/TaskByOrganizations/logic/reducer.ts","processes/Reports/GetDonePercentageForOrgsDetails/logic/reducer.ts","processes/Reports/LateTasksForEmployee/logic/reducers.ts","processes/Reports/LateTasksForOrg/logic/reducer.ts","processes/Reports/GetTaskPercentageForEmployeesInOrgDetails/logic/reducer.ts","processes/Reports/GetTaskPercentageForOrgsDetails/logic/reducer.ts","processes/Reports/ReportList/logic/reducer.ts","processes/EsRequests/logic/reducer.ts","processes/AddEsRequest/logic/reducer.ts","processes/EsRequestDetails/logic/reducer.ts","processes/DirectingForm/logic/reducers.ts","processes/changePassword/logic/reducers.ts","config/reducers.ts","processes/Services/api.ts","processes/Services/sagas.ts","processes/Dashboard/logic/sagas.ts","processes/Auth/logic/mapper.ts","processes/Auth/logic/api.ts","processes/Auth/logic/sagas.ts","processes/Procedure/logic/api.ts","processes/Procedure/logic/sagas.ts","processes/TaskType/logic/api.ts","processes/TaskType/logic/sagas.ts","processes/Priority/logic/api.ts","processes/Priority/logic/saga.ts","processes/Stakholders/logic/mapper.ts","processes/Stakholders/logic/api.ts","processes/Stakholders/logic/sagas.ts","processes/Logs/logic/mapper.ts","processes/Logs/logic/api.ts","processes/Logs/logic/sagas.ts","processes/Delegation/logic/sagas.ts","processes/SearchIndex/logic/mapper.ts","processes/SearchIndex/logic/api.ts","processes/SearchIndex/logic/sagas.ts","processes/Auditing/logic/sagas.ts","processes/Users/logic/sagas.ts","processes/MyDelegations/logic/sagas.ts","processes/Organization/logic/sagas.ts","processes/LoginAs/logic/api.ts","processes/LoginAs/logic/sagas.ts","processes/PermissionTemplates/logic/mapper.ts","processes/PermissionTemplates/logic/api.ts","processes/PermissionTemplates/logic/sagas.ts","processes/UserPermissions/logic/mapper.ts","processes/UserPermissions/logic/api.ts","processes/UserPermissions/logic/sagas.ts","processes/AddTask/logic/sagas.ts","processes/WebTwain/ImageUploaderLogic/actions.ts","processes/WebTwain/ImageUploaderLogic/api.ts","processes/WebTwain/ImageUploaderLogic/sagas.ts","processes/Tasks/logic/api.ts","processes/Tasks/logic/saga.ts","processes/CedRequests/logic/api.ts","processes/CedRequests/logic/sagas.ts","processes/Search/logic/api.ts","processes/Search/logic/sagas.ts","processes/TaskDetails/logic/mapper.ts","processes/TaskDetails/logic/api.ts","processes/TaskDetails/logic/sagas.ts","processes/Notification/logic/mapper.ts","processes/Notification/logic/api.ts","processes/Notification/logic/sagas.ts","processes/TaskCedRequests/logic/sagas.ts","processes/Reports/TaskByOrganizations/logic/api.ts","processes/Reports/TaskByOrganizations/logic/sagas.ts","processes/Reports/MainOrgTasksStatus/logic/saga.ts","processes/Reports/GetDonePercentageForOrgsDetails/logic/sagas.ts","processes/Reports/LateTasksForEmployee/logic/api.ts","processes/Reports/LateTasksForEmployee/logic/sagas.ts","processes/Reports/LateTasksForOrg/logic/sagas.ts","processes/Reports/GetTaskPercentageForEmployeesInOrgDetails/logic/sagas.ts","processes/Reports/GetTaskPercentageForOrgsDetails/logic/sagas.ts","processes/Reports/ReportList/logic/sagas.ts","processes/EsRequests/logic/mapper.ts","processes/EsRequests/logic/api.ts","processes/EsRequests/logic/sagas.ts","processes/AddEsRequest/logic/api.ts","processes/AddEsRequest/logic/sagas.ts","processes/EsRequestDetails/logic/mapper.ts","processes/EsRequestDetails/logic/api.ts","processes/EsRequestDetails/logic/sagas.ts","processes/TasksCart/logic/api.ts","processes/TasksCart/logic/sagas.ts","processes/DirectingForm/logic/apis.ts","processes/DirectingForm/logic/sagas.ts","processes/changePassword/logic/apis.ts","processes/changePassword/logic/sagas.ts","config/sagas.ts","config/store.ts","processes/Tasks/logic/type.ts","config/utilities.ts","config/urls.ts","processes/Users/logic/types.ts","processes/Tasks/logic/action.ts","processes/TaskDetails/logic/actions.ts","processes/Users/logic/action.ts","config/constant.ts","processes/CedRequests/logic/types.ts","processes/TaskDetails/logic/types.ts","processes/Organization/logic/types.ts","processes/Delegation/logic/types.ts","processes/Organization/logic/actions.ts","processes/Search/logic/types.ts","processes/Auth/logic/types.ts","processes/PermissionTemplates/logic/types.ts","processes/Stakholders/logic/types.ts","processes/AddTask/logic/types.ts","processes/EsRequests/logic/types.ts","processes/EsRequestDetails/logic/actions.ts","processes/TaskType/logic/types.ts","processes/UserPermissions/logic/types.ts","processes/Procedure/logic/types.ts","processes/Users/logic/mapper.ts","processes/Priority/logic/types.ts","processes/EsRequestDetails/logic/types.ts","processes/Delegation/logic/action.ts","processes/Services/types.ts","processes/Reports/TaskByOrganizations/logic/types.ts","processes/TaskCedRequests/logic/types.ts","components/Permission/PermissionDenied.tsx","components/Permission/PermissionContainer.tsx","processes/Search/logic/actions.ts","processes/Auditing/logic/types.ts","processes/Reports/LateTasksForEmployee/logic/types.ts","processes/Tasks/logic/mapper.ts","processes/Auth/logic/actions.ts","processes/UserPermissions/logic/action.ts","processes/AddTask/logic/action.ts","processes/Storage/logic/actions.ts","processes/PermissionTemplates/logic/actions.ts","processes/Reports/LateTasksForOrg/logic/types.ts","processes/Stakholders/logic/action.ts","processes/TaskCedRequests/logic/actions.ts","processes/TaskType/logic/actions.ts","processes/Reports/GetDonePercentageForOrgsDetails/logic/types.ts","processes/Reports/GetTaskPercentageForEmployeesInOrgDetails/logic/types.ts","processes/Reports/GetTaskPercentageForOrgsDetails/logic/types.ts","processes/Users/logic/api.ts","processes/AddEsRequest/logic/types.ts","processes/Procedure/logic/actions.ts","processes/Priority/logic/actions.ts","processes/CedRequests/logic/actions.ts","processes/TasksCart/logic/actions.ts","processes/SearchIndex/logic/types.ts","processes/Reports/MainOrgTasksStatus/logic/types.ts","processes/Organization/logic/api.ts","processes/Reports/ReportList/logic/actions.ts","processes/Reports/TaskByOrganizations/logic/actions.ts","processes/Reports/LateTasksForEmployee/logic/actions.ts","processes/DirectingForm/logic/types.ts","processes/changePassword/logic/types.ts","processes/Auditing/logic/actions.ts","processes/EsRequests/logic/actions.ts","processes/Reports/LateTasksForOrg/logic/actions.ts","components/Controls/Button.tsx","processes/TasksCart/logic/types.ts","processes/DirectingForm/logic/actions.ts","processes/Reports/GetDonePercentageForOrgsDetails/logic/actions.ts","processes/Reports/GetTaskPercentageForEmployeesInOrgDetails/logic/actions.ts","processes/Reports/GetTaskPercentageForOrgsDetails/logic/actions.ts","processes/Organization/logic/mapper.ts","processes/Storage/logic/types.ts","processes/SearchIndex/logic/actions.ts","processes/AddEsRequest/logic/actions.ts","processes/AddTask/logic/mapper.ts","processes/AddTask/logic/api.ts","processes/Notification/logic/types.ts","processes/Reports/MainOrgTasksStatus/logic/actions.ts","processes/changePassword/logic/actions.ts","assets/img/cancel.svg","layout/components/Alert.tsx","processes/LoginAs/logic/action.ts","components/TableView/Table.tsx","components/TableView/TableBody.tsx","components/TableView/TableCell.tsx","components/TableView/TableHeader.tsx","components/TableView/TableRow.tsx","components/TableView/TableHead.tsx","components/TableView/Pagination.tsx","components/Controls/LabelControl.tsx","components/Controls/CheckboxControl.tsx","components/Controls/CheckboxVerticalControl.tsx","components/Controls/InputControl.tsx","components/Controls/RadioButtonControl.tsx","components/Controls/NewSelectControl.tsx","components/Controls/TextAreaControl.tsx","components/Controls/ReadonlyControl.tsx","components/Controls/ImageUploader.tsx","components/Controls/AttachmentControl.tsx","components/SegmentedView/SegmentedView.tsx","components/Containers/SearchCriteriaContainer.tsx","components/Containers/TableContainer.tsx","components/Containers/FormContainer.tsx","components/Containers/CardsContainer.tsx","components/Containers/PopupContainer.tsx","processes/Auth/config.js","processes/Auth/sdk/jwt_verifier.js","processes/Auth/sdk/api.js","layout/components/Header.tsx","layout/components/Drawer/Drawer.tsx","layout/components/Footer.tsx","components/Popup.tsx","processes/Tasks/views/KillTask.tsx","components/Controls/AsyncSelectControl.tsx","processes/LoginAs/views/LoginAs.tsx","processes/changePassword/views/ChangePassword.tsx","layout/MainLayout.tsx","layout/ModalLayout.tsx","layout/Layout.tsx","processes/Auth/views/Profile.tsx","processes/DirectingForm/views/DirectingForm.tsx","processes/Dashboard/views/Dashboard.tsx","processes/Procedure/views/Procedures.tsx","processes/Procedure/views/EditProcedure.tsx","processes/TaskType/views/TaskTypes.tsx","processes/TaskType/views/EditTaskType.tsx","processes/Priority/views/Priorities.tsx","processes/Priority/views/EditPriority.tsx","processes/Stakholders/views/Stakholders.tsx","processes/Stakholders/views/EditStakholder.tsx","processes/Delegation/views/Delegations.tsx","components/Controls/DatePickerControl.tsx","processes/Delegation/views/AddDelegation.tsx","processes/MyDelegations/views/MyDelegations.tsx","processes/Users/views/DeleteUserModal.tsx","processes/Users/views/Users.tsx","processes/Users/views/AddUser.tsx","processes/Auth/views/Login.tsx","processes/Logs/views/Logs.tsx","processes/Auditing/views/Auditing.tsx","processes/SearchIndex/views/SearchIndex.tsx","processes/PermissionTemplates/views/PermissionTemplates.tsx","processes/UserPermissions/views/UserTemplatePermissionsPopup.tsx","processes/PermissionTemplates/views/EditPermissionTemplate.tsx","processes/Organization/views/ConfirmDeactivationModal.tsx","processes/Organization/views/Organizations.tsx","processes/Organization/views/EditOrganization.tsx","processes/Organization/views/CopyOrganization.tsx","processes/UserPermissions/views/UserPermissionsPopup.tsx","processes/Users/views/UsersPath.tsx","processes/Users/views/AddAdUser.tsx","processes/AddTask/views/AddTask.tsx","processes/CedRequests/views/RequestCard.tsx","processes/TaskCedRequests/views/TaskCedRequests.tsx","processes/TaskCedRequests/views/AddCedRequest.tsx","processes/Reports/MainOrgTasksStatus/views/MainOrgTasksStatus.tsx","processes/Reports/TaskByOrganizations/views/TaskByOrganizations.tsx","processes/Reports/GetDonePercentageForOrgsDetails/views/GetDonePercentageForOrgsDetails.tsx","processes/Reports/GetTaskPercentageForOrgsDetails/views/GetTaskPercentageForOrgsDetails.tsx","processes/Reports/GetTaskPercentageForEmployeesInOrgDetails/views/GetTaskPercentageForEmployeesInOrgDetails.tsx","processes/Reports/LateTasksForEmployee/views/LateTasksForEmployee.tsx","processes/Reports/ReportList/views/ReportList.tsx","processes/Reports/LateTasksForOrg/views/LateTasksForOrg.tsx","components/NotFound.tsx","components/forbidden.tsx","processes/Tasks/views/TaskActionButtons.tsx","processes/Tasks/views/TaskCard.tsx","processes/Tasks/views/Tasks.tsx","processes/Tasks/views/StartTask.tsx","processes/Tasks/views/RejectTask.tsx","processes/Tasks/views/RetrieveTask.tsx","processes/Tasks/views/ReassignTask.tsx","processes/WebTwain/WebTwain.tsx","processes/Tasks/views/PostponeTask.tsx","processes/Tasks/views/ForwardCCTask.tsx","processes/CedRequests/views/CedRequests.tsx","processes/EsRequests/views/RequestCard.tsx","processes/EsRequests/views/EsRequests.tsx","processes/Search/views/Search.tsx","processes/TaskDetails/views/TaskInfoTab.tsx","processes/TaskDetails/views/HistoryAndCommentObject.tsx","processes/TaskDetails/views/TaskHistoryAndCommentsTab.tsx","processes/TaskDetails/views/TaskNotificationsTab.tsx","processes/TaskDetails/views/index.ts","processes/TaskDetails/views/InfoTabsView.tsx","processes/TaskDetails/views/SecretContentView.tsx","processes/TaskDetails/views/ParentInfoView.tsx","processes/TaskDetails/views/AddCommentView.tsx","processes/Tasks/views/ConfirmTask.tsx","processes/Tasks/views/FinishTask.tsx","processes/Tasks/views/CompletionRateTask.tsx","processes/TaskDetails/views/ViewAttachment.tsx","processes/TaskDetails/views/ExportTaskPDF.tsx","processes/TaskDetails/views/TaskDetails.tsx","processes/Search/views/AdvancedSearch.tsx","processes/CedRequests/views/CedRequestDetails.tsx","processes/Notification/views/NotificationCard.tsx","processes/Notification/views/Notifications.tsx","processes/AddEsRequest/views/AddEsRequest.tsx","processes/EsRequestDetails/views/InfoTab.tsx","processes/EsRequestDetails/views/CommentObject.tsx","processes/EsRequestDetails/views/CommentsTab.tsx","processes/EsRequestDetails/views/TabsView.tsx","processes/EsRequestDetails/views/ViewAttachment.tsx","processes/EsRequestDetails/views/ChangeStatus.tsx","processes/EsRequestDetails/views/EsRequestDetail.tsx","processes/TasksCart/views/TasksCart.tsx","processes/Tasks/views/ReassignAllTasks.tsx","processes/Users/views/ChangeUserPassword.tsx","processes/Auth/views/SSO.tsx","config/router.tsx","processes/Logs/logic/types.ts","processes/LoginAs/logic/types.ts","assets/img/pencil.svg","processes/MyDelegations/logic/types.ts","processes/Notification/logic/actions.ts","processes/Delegation/logic/api.ts","config/api.ts","processes/Auditing/logic/mapper.ts","processes/Logs/logic/actions.ts","processes/TaskCedRequests/logic/api.ts","processes/Reports/ReportList/logic/types.ts","processes/MyDelegations/logic/api.ts","processes/Delegation/logic/mapper.ts","processes/Procedure/logic/mapper.ts","processes/TaskType/logic/mapper.ts","processes/Priority/logic/mapper.ts","processes/Auditing/logic/api.ts","processes/MyDelegations/logic/actions.ts","processes/CedRequests/logic/mapper.ts","assets/img/email.svg","assets/img/send.svg","assets/img/list.svg","assets/img/man-user.svg","assets/img/export.svg","assets/img/print.svg","assets/img/confirm.svg","assets/img/sign.svg","assets/img/send-btn.svg","assets/img/assign-btn.svg","assets/img/assign-btn-black.svg","assets/img/search-white.svg","assets/img/show-btn.svg","assets/img/plus.svg","assets/img/edit-1.svg","assets/img/delete-btn.svg","assets/img/reset-btn.svg","assets/img/cancel-btn.svg","assets/img/new-btn.svg","assets/img/import-btn.svg","assets/img/redirect-btn.svg","assets/img/preview-btn.svg","assets/img/login-btn.svg","assets/img/more-btn.svg","assets/img/undo-btn.svg","assets/img/discard-btn.svg","assets/img/plus-1.svg","assets/img/sort.svg","assets/img/add-to-cart.svg","assets/img/remove-from-cart.svg","assets/img/next.svg","assets/img/prev.svg","assets/img/search-adv.svg","assets/img/search.svg","assets/img/task-cart.svg","assets/img/bell.svg","assets/img/dashboard.svg","assets/img/advanced-search.svg","assets/img/tasks.svg","assets/img/assigned-tasks.svg","assets/img/pie-chart.svg","assets/img/finished-tasks.svg","assets/img/testing.svg","assets/img/acoount.svg","assets/img/calendar.svg","assets/img/signature.svg","assets/img/calendar-new.svg","assets/img/choose.svg","assets/img/envelope-o.svg","assets/img/group.svg","assets/img/opinion-req.svg","assets/img/password.svg","assets/img/path.svg","assets/img/permission.svg","assets/img sync /^/.*$","assets/img/Thumbs.db","assets/img/add-task.svg","assets/img/avatar.svg","assets/img/bg.jpg","assets/img/checklist (1).svg","assets/img/circle.svg","assets/img/close.svg","assets/img/code.svg","assets/img/comment.svg","assets/img/dash-crd.svg","assets/img/dash-dele.svg","assets/img/dash-form.svg","assets/img/dash-logs.svg","assets/img/dash-orgs.svg","assets/img/dash-perm-groups.svg","assets/img/dash-reports.svg","assets/img/dash-search.svg","assets/img/dash-tasks-prio.svg","assets/img/dash-tasks-proc.svg","assets/img/dash-tasks-types.svg","assets/img/dash-tasks.svg","assets/img/dash-user-action.svg","assets/img/dash-users.svg","assets/img/digital.svg","assets/img/favicon.png","assets/img/finish.svg","assets/img/home.svg","assets/img/icon.svg","assets/img/list-1.svg","assets/img/management (1).svg","assets/img/reports.svg","assets/img/save.svg","assets/img/search-s.svg","assets/img/sleek-icon.png","assets/img/stamp.svg","assets/img/to-do-list.svg","assets/img/todo-list.svg","components/SystemError.tsx","layout/ErrorBoundary.tsx","App.tsx","serviceWorker.ts","index.tsx"],"names":["replace","routeName","options","hasState","length","history","pathname","slice","reduce","previousValue","currentValue","concat","routes","path","state","undefined","type","ActionTypes","navigate","push","showProgress","message","shouldDisableForm","NProgress","start","show_progress","hideProgress","done","hide_progress","showAlert","alertType","appState","require","store","getState","isModalVisible","service","popups","document","getElementsByClassName","i","popup","item","scrollTo","top","left","behavior","window","show_alert","showCreatedSuccessfullyAlert","showUpdatedSuccessfullyAlert","showRemovedSuccessfullyAlert","showDoneSuccessfullyAlert","showRequiredAlert","field","mode","showAccessDeniedAlert","showHttpErrorAlert","error","response","status","data","errorCode","badRequestMessage","internalErrorMessage","clearAlert","clear_alert","changeIsModalVisible","change_is_modal_visible","toggleDrawer","toggle_drawer","fetchAttachmentSettings","fetch_attachment_settings","fetchAttachmentSettingsResult","hasError","allowedFileExtensions","maxFileSize","fetch_attachment_settings_result","toggleSecure","toggle_secure","addAttachment","uuid","name","multiple","add_attachment","updateAttachmentStatus","serverId","update_attachment_status","deleteAttachment","delete_attachment","deleteAttachmentResult","delete_attachment_result","clearAttachments","clear_attachments","initialState","tasksCart","maximumTasksInCart","action","add_task_to_cart","array","taskHeader","toArray","remove_task_from_cart","removeAll","x","userTaskId","remove_task_from_cart_by_user_task","taskId","clear_tasks_cart","filter","failedTasks","includes","fetch_max_task_in_cart_result","maxTaskInCart","email","password","loggingIn","credentialsValid","loadingPermissions","userPermissions","sid","profile","arName","phoneNumber","note","delegator","loginAsFullName","notifications","superUser","auth","change_email","change_password","login","login_result","clear_profile_data","set_sid_value","fetch_user_permissions","fetch_user_permissions_result","clear_user_permissions","toggle_super_user","fetch_profile_result","fetch_user_profile_result","partially","change_phoneNumber","change_note","change_email_checkbox","element","notificationTypeId","emailCheckboxId","prevElement","emailNotification","change_phone_checkbox","phoneCheckboxId","phoneNotification","change_system_checkbox","pushCheckboxId","systemNotification","draftProcedure","id","procedures","totalCount","change_draft_procedure_name","load_procedure_result","procedure","remove_procedure","clear_draft_procedure","set_draft_procedure","load_procedure","clear_procedure_data","fetch_procedures","fetch_procedures_result","remove_procedure_result","add_procedure_result","update_procedure_result","isLoggedIn","accessToken","refreshToken","calendar","taskTypes","draftTaskType","allowEditEndDate","defaultDays","change_draft_task_type_name","change_draft_task_type_default_days","change_draft_task_type_allow_edit_end_date","load_task_type_result","taskType","clear_draft_task_type","set_draft_task_type","load_task_type","fetch_task_types_result","remove_task_type_result","add_task_type_result","update_task_type_result","clear_task_type_page_data","draftPriority","priorities","change_draft_priority_name","load_priority_result","priority","remove_priority","clear_draft_priority","load_priority","set_draft_priority","clear_priority_data","fetch_priorities_result","remove_priority_result","add_priority_result","update_priority_result","draftStakholder","refId","stakholders","pageNumber","searchQuery","change_stakholder_name","change_stakholder_ref_id","clear_draft_stakholder","load_stakholder_result","stakholder","set_draft_stakholder","load_stakholder","change_stakholder_search_query","clear_search_queries","clear_stakholders_data","fetch_stakholders","refetch_stakholders","fetch_stakholders_result","remove_stakholder_result","add_stakholder_result","update_stakholder_result","delegations","organizations","users","searchUserQuery","draftDelegation","organization","toUser","startDate","endDate","active","delegatedOnSecureTasks","change_draft_delegate_end_date","change_draft_delegate_start_date","change_draft_delegate_organization","change_draft_delegate_on_secure_tasks","change_draft_delegate_partially","change_draft_delegate_active","remove_delegation","delegation","clear_draft_delegation","select_user","delete_selected_user","load_delegation_result","set_draft_delegation","change_checkbox_option","load_delegation","clear_user_search_query","clear_delegation_data","search_users","search_users_result","fetch_delegations_result","fetch_organizations_result","remove_delegation_result","add_delegation_result","update_delegation_result","progress","visible","isFormDisabled","alert","isDrawerVisible","innerWidth","isSecure","attachments","fileName","remove","logNumber","logs","date","url","logCount","change_log_number","fetch_logs_result","clear_logs_data","indexes","searchIndex","change_search_text","fetch_default_path_result","fetch_all_indexes_result","clear_search_index_data","reset_search_index_result","systemActions","searchCriteria","records","select_search_criteria_user","user","select_search_criteria_system_action","systemAction","change_search_criteria_start_date","change_search_criteria_end_date","auditing","fetch_system_actions_result","fetch_records","fetch_records_result","remove_all_records_result","clear_auditing_data","isActive","draftUser","userName","enName","jobDescription","mobile","confirmPassword","newUser","searchNewUserQuery","visibleDeleteModal","adUser","adUserArName","adUserEnName","adUserJobDesc","adUserMobile","adUserUserName","adUserPassword","adUserOrganizations","step1","step2","userPath","bulkUsers","bulkUsersOrganizations","isStep2","bulkAdUsers","maxBulkUsersCount","change_search_criteria_name","change_search_criteria_email","change_search_criteria_is_active","select_search_criteria_organization","clear_search_criteria_data","change_user_name","eMail","change_ar_name","change_en_name","change_job_description","change_mobile_phone","phone","change_confirm_password","change_organisation","fetch_user_orgs_result","load_user","load_user_result","set_draft_user","user_active_checkbox_toggle","change_ad_user_user_name","change_ad_user_organizations","fetch_users","fetch_users_result","add_user_result","failedUserEmailList","update_user_result","delete_user_result","add_user_to_bulk_users_result","edit_bulk_user","indexOf","delete_bulk_user","change_bulk_users_organizations","fetch_max_bulk_users_count_result","clear_draft_user","set_step_2","clear_ad_user","fetch_user_orgs","clear_user_criteria","select_new_user","clear_modal_data","visible_delete_modal","fetch_user_path_result","clear_user_path_data","go_to_step1","go_to_step2","fill_ad_user_informations","unshift","remove_from_ad_bulk_users_list","add_ad_user_result","clear_users_data","myDelegation","fetch_my_delegations","fetch_my_delegations_result","organizationTree","ConstantsValues","loading","children","collapsed","selectedOrganization","draftOrganization","parent","selectedNodeId","copyFromOrganization","copyToOrganization","isDeactivateOrganizationModalVisible","change_draft_organization_name","organizationName","change_draft_parent_organization","parentOrganization","load_organizations_result","get_parent_path_result","parentPath","set_draft_organization","clear_draft_organization","delete_organizations","load_organization","parentId","fetch_organization_tree","nodesTreeUpdater","treeNode","prevTreeNode","fetch_organization_tree_result","manage_toggle_button","search_organization_tree_result","parentName","add_organizations_result","update_organizations_result","delete_organizations_result","select_organization","select_copy_from_organization","select_copy_to_organization","set_deactivate_organization_modal_visible","toggle_organization_activation_result","prev","clear_organization_data","draftPermissionTemplate","templateName","defaultTemplate","permissions","permissionTemplates","allPermissions","change_draft_permission_templates_name","clear_draft_permission_template","load_permission_template_result","permissionTemplate","change_draft_permission_templates_permission","change_draft_permission_templates_default_template","set_draft_permission_template","load_permission_template","clear_permission_templates_data","fetch_permission_templates_result","get_all_permissions_result","remove_permission_template_result","add_permission_template_result","update_permission_template_result","selectedUser","visibleLoginAsModal","loginAs","clear_login_as_data","visible_login_as_modal","permissionCategories","selectedPermissionCategory","filteredUserPermissions","selectedUserPermissions","selectedTemplates","totalPermissionTemplateCount","userPermission","fetch_permission_categories_result","change_user_permission_category","permissionCategory","fetch_current_user_permissions_result","filter_user_permissions","selectedCategory","permissionCategoryId","value","change_user_permission","change_user_permission_template","fetch_user_permission_templates_result","selectedUserPermissionTemplates","title","isSecret","description","Date","hasParentTask","parentTaskNo","parentTask","selectedTaskType","selectedProcedure","selectedPriority","toUsers","copyToUsers","task","fetch_lookup_result","change_title","taskTitle","toggle_secret","change_description","taskDescription","change_start_date","moment","add","toDate","change_end_date","toggle_has_parent_task","change_parent_task_no","select_task_type","select_priority","select_procedure","select_to_users","select_copy_to_users","clear_parent_task","clear_add_task_data","get_task_by_task_no_result","selectedAttachments","imageUploader","upload_files","files","map","upload_file_result","inboxMode","taskHeaders","ccUsers","attachmentFiles","historyItems","taskCount","cc","inbox","late","pending","rejected","retrieved","assigned","finish","changeDateNew","defaultInbox","notificationCount","startTask","notes","finishTask","workHours","completionRateTask","completionRate","rejectTask","rejectionReason","retrieveTask","canRetrieve","reassignTask","postponeTask","postponeReason","canPostpone","forwardCCTask","canForward","killTask","visibleKillTaskModal","taskNo","killNote","confirmTask","rating","canConfirm","start_task_change_notes","start_task_clear_data","finish_task_change_work_hours","finish_task_change_notes","finish_task_clear_data","completion_rate_task_change_completion_rate","completion_rate_task_clear_data","reject_task_change_rejection_reason","reject_task_clear_data","postpone_task_can_postpone_task_result","postpone_task_change_postpone_reason","postpone_task_clear_data","retrieve_task_can_retrieve_task_result","retrieve_task_change_notes","retrieve_task_clear_data","kill_task_visible_kill_task_modal","isVisible","kill_task_change_task_no","kill_task_change_kill_notes","kill_task_go_to_step1","kill_task_clear_kill_task_modal","kill_task_get_task_by_task_no_result","confirm_task_can_confirm_task_result","confirm_task_change_note","confirm_task_change_rating","confirm_task_clear_data","reassign_task_select_user","reassign_task_change_notes","reassign_task_clear_data","forward_cc_task_can_forward_cc_task_result","forward_cc_task_select_user","forward_cc_task_change_notes","forward_cc_task_clear_data","tasks","completion_rate_task_completion_rate_task","change_inbox_mode","currentMode","newMode","InboxMode","clear_tasks_data","fetch_tasks","refetch_tasks","fetch_tasks_result","fetch_task_count_result","cedRequestStatus","cedRequests","takeActionVisible","cedRequest","draftCedRequest","newStatus","newResponseExtraDays","newResponseNotes","select_ced_request_new_status","change_ced_request_response_extra_days","change_ced_request_response_notes","update_ced_request","clear_ced_request_detail_data","change_ced_request_status","currentStatus","CedRequestStatus","new","fetch_ced_requests_result","fetch_ced_requests","refetch_ced_requests","clear_ced_requests_data","load_ced_request_details_result","requestExtraDays","update_ced_request_result","toggle_take_action_visible","search","advancedSearch","endDateTo","startDateTo","endDateFrom","startDateFrom","taskLevel","userTasks","requestTime","search_change_search_query","advanced_search_change_title","advanced_search_change_start_date_to","advanced_search_change_start_date_from","advanced_search_change_end_date_to","advanced_search_change_end_date_from","advanced_search_change_task_type","advanced_search_change_priority","advanced_search_change_status","advanced_search_change_task_level","advanced_search_clear_data","searchPage","clear_search_data","search_tasks","search_tasks_result","advanced_search_tasks","advanced_search_tasks_result","advanced_search_fetch_look_up_result","activeSlide","attachmentActiveSlide","isTaskDetailsModalVisible","isTaskSecret","userTask","notificationsCount","historyAndCommentsCount","parentTasks","historyAndComments","hasBestAnswer","comment","attachmentFileUrl","secretCode","toggleCommentTab","reDownloadButton","samplePdfArr","taskDetails","change_active_slide","change_attachment_active_slide","set_attachment_id","attachmentId","change_is_task_details_modal_visible","fetch_is_task_secret_result","fetch_task_details_result","fetch_parent_task_result","fetch_task_history_and_comments_result","bestAnswerId","find","isBestAnswer","toggle_order_history_and_comments","reverse","change_comment","set_best_answer_result","clear_comment_view_data","fetch_task_notifications","fetch_task_notifications_result","export_task_pdf_result","clear_export_pdf_data","clear_detail_task","clear_view_attachment_modal","clear_attachment_file","fetch_is_attachment_secret_result","get_attachment_url_result","lastNotifications","notification","fetch_notifications","fetch_notifications_result","fetch_last_notifications_result","requestedExtraDays","canSendRequest","isThereActiveRequest","taskCedRequests","change_task","load_task_result","fetch_task_ced_requests_by_task_id_result","get_active_request_result","change_requested_extra_days","can_send_ced_request_result","clear_add_ced_request_popup","clear_task_ced_requests","includeChildren","selectedOrganizations","visibleReport","mainOrgTasksStatus","change_to_date","change_from_date","fromDate","change_include_children","organizationId","reset_search_criteria_data","set_visible_report","selectedStatus","taskByOrganizations","select_status","fetch_fetch_task_types_result","reset_data","getDonePercentageForOrgsDetails","delayDay","lateTasksForEmployee","change_delay_day","fetch_users_with_org_id_result","lateTasksForOrganization","getTaskPercentageForOrgsDetails","reportServerUrl","reports","get_report_server_uri_result","uri","esRequestStatus","esRequests","esRequest","draftEsRequest","change_es_request_status","EsRequestStatus","fetch_es_requests_result","fetch_es_requests","re_fetch_es_requests","clear_es_requests_data","esRequestType","sendToUser","change_es_request_type","change_es_request_title","change_es_request_task_no","change_es_request_notes","change_es_request_send_to_user","clear_es_request_task","get_es_request_task_result","clear_es_request","attachmentFile","comments","esRequestDetails","fetch_es_request_result","signedFile","select_es_request_new_status","fetch_es_request_comments_result","clear_change_request_status_view_data","clear_detail_es_request","isDirectingFormVisible","isPDFViewerVisible","fileURL","directingForm","toggle_is_directing_form_visible","clear_directing_form","fetch_refferal_form_file_result","add_refferal_form_file_result","toggel_is_pdf_viewer_visible","oldPassword","newPassword","changePassword","clear_change_password","toggle_is_modal_visible","change_old_password","change_new_password","change_password_result","combineReducers","storage","change_is_logged_in","change_access_token","change_delegation_id","delegationId","change_login_as_user_id","loginAsUserId","change_calendar","clear_all_storage","logout","addTask","mainOrgTaskStatus","getTaskPercentageForEmployeesInOrgDetails","addEsRequest","fetchAttachmentSettingsApi","a","async","fetch_attachment_settings_url","method","request","deleteAttachmentApi","attachmentServerId","delete_file_url","axios","fetchAttachmentSettingsSaga","deleteAttachmentSaga","sessionStorage","getItem","allowedExtensions","split","maxSize","Number","put","call","setItem","select","attachment","takeLatest","profileMap","userId","source","notificationsMap","notificationName","settingID","userID","login_api","body","grant_type","scope","post","urls","qs","stringify","login_delegation_api","delegateId","defaults","headers","common","refresh_token","fetch_user_permissions_url","fetch_profile_api","config","morphism","fetch_user_profile_api","currentDelegator","update_profile_api","notificationList","loginSaga","userPermissionsSaga","fetchProfileSaga","fetchUserProfileSaga","updateProfileSaga","logoutSaga","access_token","all","loginResult","changeAccessToken","changeIsLoggedIn","URL","location","href","searchParams","get","getTelegramBotUrlApi","telegramBotUrl","botUrl","redirectTo","hasReturnValue","hasDelegationsApi","atob","fetchUserPermissionsResult","fetchProfileResult","fetchUserProfileResult","saveProfileResult","clear","localStorage","takeLeading","fetch_profile","fetch_user_profile","save_profile","getProcedures","get_procedures_url","procedureMap","getProcedure","procedureId","get_procedure_url","params","addProcedure","add_procedure_url","ProcedureName","updateProcedure","update_procedure_url","ProcedureID","deleteProcedure","delete_procedure_url","fetchProceduresSaga","addProcedureSaga","updateProcedureSaga","removeProcedureSaga","loadProcedureSaga","fetchProcedureResult","trim","addProcedureResult","clearDraftProcedure","updateProcedureResult","removeProcedureResult","refetchProcedures","Array","isArray","loadProcedureResult","refetch_procedures","add_procedure","update_procedure","getTaskTypes","get_taskTypes_url","taskTypeMap","getTaskType","taskTypeId","get_taskType_url","addTaskType","add_taskType_url","TaskTypeName","DefaultDays","AllowEditEndDate","updateTaskType","update_taskType_url","TaskTypeID","deleteTaskType","delete_taskType_url","TaskTypeId","fetchTaskTypesSaga","addTaskTypesSaga","updateTaskTypesSaga","removeTaskTypesSaga","loadTaskTypesSaga","fetchTaskTypesResult","addTaskTypeResult","clearDraftTaskType","updateTaskTypeResult","removeTaskTypeResult","refetchTaskTypes","loadTaskTypeResult","refetch_task_types","fetch_task_types","add_task_type","remove_task_type","update_task_type","getPriorities","get_priorities_url","priorityMap","getPriority","priorityId","get_priority_url","PriorityId","addPriority","add_priority_url","PriorityName","updatePriority","update_priority_url","PriorityID","deletePriority","delete_priority_url","fetchPrioritiesSaga","loadPrioritySaga","addPrioritySaga","updatePrioritySaga","removePrioritySaga","fetchPrioritiesResult","loadPriorityResult","addPriorityResult","clearDraftPriority","updatePriorityResult","removePriorityResult","refetchPriorities","refetch_priorities","fetch_priorities","add_priority","update_priority","stakholderMap","getStakholders","get_stakholders_url","PageSize","pageSize","PageNumber","SearchQuery","treatmentStakholderInfos","getStakholder","stakholderId","get_stakholder_url","treatmentStakholderInfoId","addStakholder","add_stakholder_url","TreatmentStakholderName","RefID","updateStakholder","update_stakholder_url","TreatmentStakholderID","deleteStakholder","delete_stakholder_url","TreatmentStakholderInfoId","fetchStakholdersSaga","addStakholderSaga","updateStakholderSaga","removeStakholderSaga","loadStakholderSaga","fetchStakholdersResult","addStakholderResult","clearDraftStakholder","comingBack","updateStakholderResult","isLastPageAndLastElement","Math","ceil","pageToFetch","removeStakholderResult","refetchStakholders","loadStakholderResult","add_stakholder","remove_stakholder","update_stakholder","logsMapper","fetchLogsApi","logId","log","FetchLogsSaga","fetchLogsResult","fetch_logs","fetchDelegationsSaga","fetchOrganizationsSaga","searchUsers","validateDelegation","addDelegationSaga","updateDelegationSaga","removeDelegationSaga","loadDelegationSaga","getDelegations","fetchDelegationsResult","getOrganizations","fetchOrganizationsResult","getUsersApi","searchUsersResult","isAfter","addDelegation","addDelegationResult","clearDraftDelegation","updateDelegation","updateDelegationResult","deleteDelegation","removeDelegationResult","refetchDelegations","getDelegation","loadDelegationsResult","refetch_delegations","fetch_delegations","fetch_organizations","add_delegation","update_delegation","indexerMap","serverName","lastIndexDateTime","lastDocumentDateTime","fetchDefaultPathApi","updatePathApi","fetchAllIndexesApi","searchResult","resetSearchApi","fetchDefaultPathSaga","updatePathSaga","fetchAllIndexesSaga","resetSearchSaga","fetchDefaultPathResult","updatePathIndexResult","fetchAllIndexResult","resetAllIndexResult","fetch_default_path","update_path_index","fetch_all_indexes","reset_search_index","fetchSystemActionsSaga","fetchRecordsSaga","removeAllRecordsSaga","fetchSystemActionsApi","fetchSystemActionResult","systemActionId","fetchRecordsApi","fetchRecordsResult","removeAllRecordsApi","removeAllRecordsResult","fetch_system_actions","remove_all_records","fetchUsersSaga","fetchUserOrgsSaga","loadUserSaga","fetchUserPathSaga","validateUser","updateUserSaga","deleteUserSaga","addUserSaga","findAdUserSaga","addAdUserSaga","addUserToBulkUsersSaga","fetchMaxBulkUsersCountSaga","changeUserPasswordSaga","fetchUsers","fetchUsersResult","fetchUserWithOrgsApi","fetchUserOrgsResult","fetchUserOrgsApi","loadUserResult","fetchUserPathApi","fetchUserPathResult","isEdit","onlyLettersAndDigits","test","updateUserApi","updateUserResult","refetchUsers","userToDelete","deleteUserApi","addUserApi","failedUserList","addUserResult","setIsStep2","adUserName","validateAdUserApi","findAdUserApi","exists","registered","fillAdUserInformations","addAdUserApi","failedUsers","addAdUserResult","goToStep1","addUserToBulkUsersResult","validateUserApi","getMaxBulkUsers","fetchMaxBulkUsersCountResult","changeUserPasswordAPI","refetch_users","fetch_user_path","update_user","delete_user","add_user","add_ad_user","find_ad_user","add_user_to_bulk_users","fetch_max_bulk_users_count","change_user_password","fetchMyDelegationsSaga","loginUsingDelegationSaga","getMyDelegationsApi","fetchMyDelegationsResult","clearUserPermissions","login_using_delegation","fetchOrganizationTreeSaga","searchOrganizationTreeSaga","addOrganizationSaga","updateOrganizationSaga","removeOrganizationSaga","getParentPathSaga","loadOrganizationSaga","copyOrganizationSaga","toggleOrganizationActivationSaga","fetchOrganizationTree","fetchOrganizationTreeResult","organizationsTree","searchOrganizationTreeResult","addOrganization","addOrganizationsResult","clearDraftOrganization","updateOrganization","updateOrganizationsResult","deleteOrganization","deleteOrganizationResult","refetchOrganizations","getOrganizationParentPath","getParentPathResult","getOrganization","loadOrganizationResult","getParentPath","copyOrganizationApi","deactivateOrganizationApi","activateOrganizationApi","setDeactivateOrganizationModalVisible","toggleOrganizationActivationResult","refetch_organizations","search_organization_tree","add_organizations","update_organizations","get_parent_path","copy_organization","toggle_organization_activation","as_login_api","loginAsSaga","reload","login_as","permissionTemplateMap","iteratee","permissionID","permissionMap","getPermissionTemplatesApi","get_permissionTemplates_url","getAllPermissionsApi","get_all_permissions_url","getPermissionTemplateApi","permissionTemplateId","get_permissionTemplate_url","addPermissionTemplateApi","isDefault","add_permissionTemplate_url","TemplateName","IsDefault","Permissions","updatePermissionTemplateApi","templateId","update_permissionTemplate_url","TemplateID","deletePermissionTemplateApi","delete_permissionTemplate_url","fetchPermissionTemplatesSaga","loadPermissionTemplateSaga","getAllPermissionsSaga","addPermissionTemplateSaga","updatePermissionTemplateSaga","removePermissionTemplateSaga","fetchPermissionTemplatesResult","loadPermissionTemplateResult","getAllPermissionResult","addPermissionTemplateResult","clearDraftPermissionTemplate","updatePermissionTemplateResult","permissionId","removePermissionTemplateResult","refetchPermissionTemplates","refetch_permission_templates","fetch_permission_templates","add_permission_template","remove_permission_template","update_permission_template","get_all_permissions","fn","String","permissionCategoriesMap","label","userMap","fetchAllUserPermissionsApi","fetch_all_user_permissions_url","fetchCurrentUserPermissionsApi","fetch_current_user_permissions_url","fetchPermissionsCategoriesApi","fetch_permission_categories_url","updateUserPermissionApi","update_user_permissions_url","UserId","getUserPermissionTemplatesApi","get_user_permissionTemplates_url","updateUserPermissionTemplateApi","update_user_permission_templates_url","PermissionsTemplatesIds","fetchUserApi","fetch_user_url","fetchUserPermissionsSaga","fetchPermissionCategoriesSaga","fetchCurrentUserPermissionsSaga","updateUserPermissionSaga","fetchUserPermissionTemplatesSaga","updateUserPermissionTemplateSaga","fetchPermissionCategoriesResult","fetchCurrentUserPermissionsResult","selectedPermissions","fetchUserPermissionTemplateResult","fetch_current_user_permissions","fetch_permission_categories","update_user_permission","update_user_permission_template","fetch_user_permission_templates","fetchLookupSaga","getTaskByTaskNoSaga","addTaskSaga","fetchLookupResult","getTaskByTaskNo","getParentTaskByTaskNoResult","attachmentIds","isBefore","toUsersIds","copyToUsersIds","addTaskApi","addTaskResult","fetchTaskCount","clearAddTaskData","fetch_lookup","get_task_by_task_no","add_task","uploadFileResult","upload_file_api","Promise","resolve","setTimeout","uploadFile","fetchTasksApi","fetch_tasks_url","taskHeaderMap","fetchTaskCountApi","fetch_task_count_url","taskCountMap","startTaskFileApi","start_task_url","UserTaskId","Attachments","Notes","finishTaskFileApi","finish_task_url","WorkHours","completionRateTaskFileApi","completion_rate_task_url","CompletionRate","rejectedTaskFileApi","reject_task_url","RejectionReason","postponeTaskCanPostponeTaskApi","can_postpone_task_url","postponeTaskApi","postpone_task_url","PostponeReason","canConfirmTaskApi","can_confirm_task_url","confirmTaskApi","confirm_task_url","ConfirmNote","Evaluation","canRetrieveTaskApi","can_retrieve_task_url","retrieveTaskFileApi","retrieve_task_url","reassignTaskFileApi","toUserId","reassign_task_url","ToUserId","reassignAllTasksApi","userTaskIds","reassign_tasks_url","UserTaskIds","get_task_by_task_no_url","taskMap","killTaskApi","kill_task_url","TaskId","canForwardCCTaskApi","can_forward_cc_task_url","forwardCCTaskFileApi","toUserIds","forward_cc_task_url","fetchTasksSaga","fetchTaskCountSaga","startTaskSaga","finishTaskSaga","completionRateTaskSaga","rejectTaskSaga","canPostponeTaskSaga","postponeTaskSaga","canConfirmTaskSaga","confirmTaskSaga","canRetrieveTaskSaga","reassignTaskSaga","reassignAllTasksSaga","killTaskGetTaskByTaskNoSaga","killTaskSaga","canForwardCCTaskSaga","forwardCCTaskSaga","fetchTasksResult","fetchTaskCountResult","refetchTasks","changeActiveSlide","removeTaskFromCart","postponeTaskCanPostponeTaskResult","confirmTaskCanConfirmTaskResult","retrieveTaskCanRetrieveTaskResult","clearTasksCart","killTaskGetTaskByTaskNoResult","killTaskVisibleKillTaskModalAction","killTaskClearKillTaskModal","removeTaskFromCartByTaskId","forwardCCTaskCanForwardCCTaskResult","fetch_task_count","start_task_start_task","finish_task_finish_task","reject_task_reject_task","postpone_task_can_postpone_task","postpone_task_postpone_task","retrieve_task_can_retrieve_task","retrieve_task","reassign_task_reassign_task","forward_cc_task_can_forward_cc_task","forward_cc_task_forward_cc_task","kill_task_get_task_by_task_no","kill_task_kill_task","confirm_task_can_confirm_task","confirm_task_confirm_task","reassign_all_tasks","fetchCedRequestsApi","fetch_ced_requests_url","cedRequestMap","fetchCedRequestApi","fetch_ced_request_url","updateCedRequestApi","cedRequestId","update_ced_request_url","newReponseExtraDays","fetchCedRequestsSaga","loadCedRequestDetailsSaga","updateCedRequestSaga","fetchCedRequestsResult","loadCedRequestDetailsResult","currentUser","approved","extraDaysNumber","newCedRequest","closedBy","lastStatusAt","toISOString","newTaskEndDate","currentTaskEndDate","responseExtraDays","responseNotes","reFetchCedRequests","updateCedRequestResult","load_ced_request_details","searchTasksApi","search_tasks_url","Query","advancedSearchTasksApi","taskStatus","advanced_search_tasks_url","TaskEndDateFrom","TaskEndDateTo","TaskStartDateFrom","TaskStartDateTo","TaskLevel","TaskStatusID","Title","searchTasksSaga","advancedSearchTasksSaga","advancedSearchLookUpSaga","calculateRequestTime","searchTasksResult","resultTaskLevel","advancedSearchTasksResult","advancedSearchFetchLookUpResult","difference","diff","toFixed","advanced_search_fetch_look_up","taskNotificationMap","notifiedUser","obj","createdDateTime","isRead","notificationDetails","notificationID","notificationTitle","readDateTime","userTaskID","fetchUserTaskApi","code","get_user_task_url","userTaskMap","fetchTaskCCUsersApi","get_cc_user_in_task_url","fetchAttachmentFilesApi","get_task_attachments_url","attachmentFileMap","fetchTaskHistoryAndCommentsCountApi","get_total_comments_and_histories_count","fetchTaskNotificationsCountApi","get_notifications_count","fetchTaskHistoryAndCommentsApi","get_comments_and_histories","reVal","historyItemMap","_","sortBy","createdAt","setBestAnswerApi","itemType","set_best_answer_url","fetchTaskNotificationsApi","get_user_task_notifications","taskNotifications","notificationInfos","addTaskCommentApi","commentText","attachmentInfos","add_task_comment_url","taskID","fetchParentTaskApi","get_parent_user_task_url","fetchTaskHeaderApi","get_task_header_url","generatePdfApi","generate_pdf_url","sendForSecureTaskApi","send_code_for_secure_task_url","sendForSecureAttachmentApi","send_code_for_secure_attachment_url","loadAttachmentFileApi","get_attachment_file_url","exportTaskToPdfApi","export_task_to_pdf_url","getOriginalAttachmentAPI","get_original_attachment_url","fetchIsTaskSecretSaga","fetchTaskDetailsSaga","fetchParentTaskSaga","fetchHistoryAndCommentsSaga","setBestAnswerSaga","addCommentSaga","fetchTaskNotificationsSaga","sendCodeForSecureTaskSaga","sendCodeForSecureAttachmentSaga","fetchIsAttachmentSecretSaga","getAttachmentURLSaga","exportPdfTaskPdfSaga","getOriginalAttachmentSAGA","reDownloadPdfSaga","fetchIsTaskSecretResult","fetchTaskDetails","fetchTaskDetailsResult","fetchParentTaskResult","fetchTaskHistoryAndCommentsResult","setBestAnswerResult","clearAddCommentViewData","refetchTaskHistoryAndComments","fetchTaskNotificationsResult","fetchIsAttachmentSecretResult","changeAttachmentActiveSlide","getAttachmentUrl","getAttachmentUrlResult","sampleArr","base64ToArrayBuffer","saveByteArray","exportTaskPdfResult","createElement","download","attachmentName","click","base64","binaryString","binaryLen","bytes","Uint8Array","ascii","charCodeAt","reportName","byte","blob","Blob","link","createObjectURL","fetch_is_task_secret","fetch_task_details","fetch_parent_task","fetch_task_history_and_comments","refetch_task_history_and_comments","set_best_answer","add_comment","send_code_for_secure_task","send_code_for_secure_attachment","get_attachment_url","export_task_pdf","re_download_pdf","fetch_is_attachment_secret","get_original_attachment","notificationMap","fetchSystemNotificationsApi","get_system_notifications","getLastNotifications","get_last_notifications","fetchNotificationsSaga","fetchLastNotificationsSaga","fetchNotificationsResult","fetchLastNotificationsResult","fetch_last_notifications","fetchCedRequestsByTaskId","loadTaskSaga","changeEndDateRequestSaga","canSendCedRequestSaga","getActiveRequestSaga","fetchCedRequestByTaskIdApi","fetchTaskCedRequestByTaskIdResult","getTaskByTaskIdApi","loadTaskResult","autoApproved","requestedExtraDaysNumber","changeTaskEndDateRequestApi","fetchTaskCedRequestByTaskId","canSendCedRequestApi","canSendCedRequest","canSendRequestResult","getActiveRequestApi","isThereOpenRequest","getActiveRequestResult","fetch_task_ced_requests_by_task_id","load_task","can_send_ced_request","get_active_request","change_end_date_request","get_all_organizations_to_report_url","treeNodeMap","getReportsUrl","get_report_server_url","searchTasksByOrganizationSaga","getNodesTree","statusName","taskStatusDisplay","reportUrl","TaskByOrganizationsURL","open","search_tasks_by_organization","searchMainOrgTaskStatusSaga","setVisibleReport","MainOrgTasksStatusURL","search_main_org_task_status","GetDonePercentageForOrgsDetailsURL","fetchUsersWithOrgIdApi","orgId","fetch_users_with_org_id_url","searchLateTasksForEmployeeSaga","fetchUsersWithOrgIdSaga","LateTasksForEmployeeURL","fetchUsersWithOrgIdResult","search_late_tasks_for_employee","fetch_users_with_org_id","searchLateTasksForOrganizationSaga","LateTasksForOrganizationURL","search_late_tasks_for_organization","searchGetTaskPercentageForEmployeesInOrgDetails","GetTaskPercentageForEmployeesInOrgDetailsURL","search_get_task_percentage_for_employees_in_org_details","searchGetTaskPercentageForOrgDetailsSaga","GetTaskPercentageForOrgsDetailsURL","search_get_task_percentage_for_orgs_details","getReportServerUrlSaga","getReportServerUriResult","get_report_server_uri","esRequestMap","requestID","createdDate","lastUpdatedDate","assignedTo","assignedFrom","requestTitle","isReferral","requestHijriDate","statusId","statusID","closed","fetchEsRequestsApi","fetch_es_requests_url","StatusId","electronicSignatureRequestInfos","closedEsRequestApi","esRequestId","closed_es_request_id_url","fetchEsRequestsSaga","closedEsRequestSaga","fetchEsRequestsResult","fetchEsRequests","closed_es_request","addEsRequestApi","add_es_request_url","AttachmentId","IsReferral","fetch_es_request_user_task","addEsRequestSaga","getEsRequestTaskSaga","delay","getEsRequestTaskResult","add_es_request","get_es_request_task","esRequestCommentItemMap","commentInfo","commentID","createdBy","fetchEsRequestApi","fetch_es_request_url","electronicSignatureRequest","electronicSignatureAttachment","signed","electronicSignatureSigned","fetchEsRequestCommentsApi","fetch_es_request_comments_url","addCommentApi","add_es_request_comment_url","RequestId","fetchEsRequestSaga","fetchEsRequestCommentsSaga","changeRequestStatusSaga","fetchEsRequestResult","fetchEsRequestCommentsResult","fetchEsRequest","fetchEsRequestComments","fetch_es_request","fetch_es_request_comments","change_request_status","fetchMaxTaskInCartApi","fetch_max_task_in_cart_url","fetchMaxTaskInCartSaga","result","fetchMaxTaskInCartResult","fetch_max_task_in_cart","fetchRefferalFormFileAPI","fetch_referral_form_url","addRefferalFormFileAPI","add_referral_form_url","fetchRefferalFormFileSaga","addRefferalFormFileSaga","refferal","file","contentBLOB","fetchRefferalFormFileResult","encodeURI","addRefferalFormFileResult","toggleIsDirectingFormVisible","fetch_refferal_form_file","add_refferal_form_file","changePasswordAPI","change_password_url","changePasswordSaga","clearChangePassword","serviceSagas","dashboardSagas","authSagas","procedureSagas","taskTypeSagas","prioritySagas","stakHolderSagas","logsSagas","delegationsSagas","searchSagas","auditingSagas","userSagas","myDelegationSagas","organizationSagas","permissionTemplateSagas","loginAsSagas","imageUploaderSagas","addTaskSagas","taskSagas","userPermissionSagas","cedRequestsSagas","searchPageSagas","taskDetailsSagas","notificationSagas","taskCedRequestsSagas","taskByOrganizationsSaga","mainOrgTaskStatusSaga","getDonePercentageForOrgsDetailsSaga","lateTasksForEmployeeSaga","lateTasksForOrgSaga","getTaskPercentageForOrgsDetailsSaga","reportsSaga","esRequestsSaga","esRequestDetailsSaga","changePasswordSAGAS","sagaMiddleware","createSagaMiddleware","middlewareList","enhancers","applyMiddleware","cookie","tasksCartInitialState","JSON","parse","e","getTasksCart","str","createStore","reducers","compose","run","rootSaga","useDispatch","useReduxDispatch","useSelector","useReduxSelector","reportServerURL","subscribe","set","TaskStatus","HistoryItemType","inboxModeDisplay","finished","confirmedFinished","justFinished","inProgress","draft","Error","ErrorMessage","ErrorID","handleError","formatDate","withTime","momentDate","format","predicate","callback","child","nodesTreeMapper","React","cloneElement","nodesTree","check","node","forEach","useScreenSize","useState","width","setWidth","innerHeight","height","setHeight","useEffect","onResize","addEventListener","removeEventListener","generatePassword","charset","retVal","n","charAt","floor","random","isAxiosError","statusCode","errorMessage","dispatch","clearAllStorage","root","API_URL","DynamsoftWebTwainEnvProductKey","WEB_TWAIN_SCANNER_PRODUC_KEY","DynamsoftWebTwainEnvTrial","WEB_TWAIN_SCANNER_TRIAL","DynamsoftWebTwainEnvResourcesPath","WEB_TWAIN_RESOURCE_URL","accountRoot","attachmentRoot","procedureRoot","searchPageRoot","permissionTemplateRoot","priorityRoot","taskTypeRoot","stakholderRoot","usersRoot","logsRoot","delegationsRoot","organizationsRoot","searchRoot","auditingRoot","userPermissionsRoot","taskRoot","notificationRoot","cedRequestsRoot","esRequestsRoot","refferalForm","attachmentUrl","login_url","fetch_profile_url","fetch_user_profile_url","update_profile_url","upload_files_url","fetch_users_same_tree_url","fetch_users_url","fetch_organisations_url","add_user_url","validate_user_url","validate_ad_user_url","search_new_users_url","fetch_user_orgs_url","fetch_user_with_orgs_url","update_user_url","delete_user_url","fetch_user_path_url","max_bulk_users","add_ad_user_url","change_user_password_url","get_delegations_url","get_delegation_url","get_organizations_url","get_users_url","add_delegate_url","update_delegate_url","delete_delegate_url","get_all_organizations_url","get_organization_url","search_in_organizations_url","add_organization_url","copy_organization_url","update_organization_url","delete_organization_url","get_organization_parent_path_url","activate_organization_url","deactivate_organization_url","my_delegations_url","has_delegations_url","get_telegram_bot_url_url","get_logs_url","fetch_current_value_url","update_path_url","fetch_all_indexes_url","reset_search_url","fetch_system_actions_url","fetch_user_searcing_actions_url","remove_all_records_url","fetch_task_user_url","add_task_url","fetch_ced_requests_by_task_id_url","get_not_confirmed_tasks_by_task_no","get_task_by_task_id","add_ced_request_url","can_send_ced_request_url","get_active_request_url","Object","entries","index","key","accumulator","isMoment","substring","orgName","taskTypeName","StatusID","StatusName","ToDate","FromDate","OrgID","OrgName","IncludeChildren","orgIds","OrgIDs","empName","UserID","DelayDays","EmpName","OrgsIDs","OrgsID","changeInboxMode","clearTasksData","fetchTasks","startTaskChangeNotes","startTaskStartTask","clearStartTask","finishTaskChangeWorkHours","finishTaskChangeNotes","finishTaskFinishTask","clearFinishTask","completionRateTaskChangeCompletionRate","completionRateTaskCompletionRateTask","clearCompletionRateTask","rejectTaskChangeRejectionReason","rejectTaskClearData","postponeTaskCanPostponeTask","postponeTaskChangePostponeReason","postponeTaskClearData","reassignSelectUser","reassignChangeNotes","reassignTaskReassignTask","clearReassignTask","forwardCCTaskCanForwardCCTask","forwardCCSelectUser","forwardCCChangeNotes","forwardCCTaskForwardCCTask","forwardCCTaskClearData","confirmTaskCanConfirmTask","confirmTaskChangeNote","confirmTaskChangeRating","confirmTaskClearData","confirmTaskConfirmTask","retrieveTaskCanRetrieveTask","retrieveTaskChangeRetrieveTaskNote","retrieveTaskClearData","killTaskChangeTaskNo","killTaskChangeKillNotes","killTaskGetTaskByTaskNo","killTaskGoToStep1","reassignAllTasks","setAttachmentId","fetchIsTaskSecret","sendCodeForSecureTask","sendCodeForSecureAttachment","fetchParentTask","fetchTaskHistoryAndComments","toggleOrderHistoryAndComments","setBestAnswer","changeComment","addComment","fetchTaskNotifications","clearDetailTask","clearViewAttachmentModal","exportTaskPdf","reDownloadPdf","clearExportPdfData","fetchIsAttachmentSecret","changeIsTaskDetailsModalVisible","getOriginalAttachment","changeSearchCriteriaName","changeSearchCriteriaEmail","changeSearchCriteriaIsActive","clearSearchCriteriaData","fetchUserPath","changeUserName","changeEmail","changeArName","changeEnName","changeJobDescription","changeMobilePhone","changeConfirmPassword","changeOrganisation","addUser","userActiveCheckboxToggle","setDraftUser","clearDraftUser","selectNewUser","clearModalData","loadUser","updateUser","deleteUser","clearUserPathData","changeAdUserUserName","changeAdUserOrganizations","goToStep2","findAdUser","addAdUser","clearAdUserData","selectOrganization","addUserToBulkUsers","editBulkUser","deleteBulkUser","changeBulkUsersOrganizations","removeFromAdUsersBulk","fetchMaxBulkUsersCount","changeUserPassword","onlyDigitsRegex","organisationMaxItems","TreeRootName","cedRequestTitleDisplay","cedRequestStatusDisplay","changeDraftOrganizationName","changeDraftParentOrganization","clearOrganizationData","addOrganizations","updateOrganizations","fetchOrganizations","searchOrganizationTree","manageToggleButton","loadOrganization","selectCopyToOrganization","selectCopyFromOrganization","copyOrganization","toggleOrganizationActivation","setDraftOrganization","esRequestTitleDisplay","esRequestStatusDisplay","changeNote","changeRequestStatus","selectEsRequestNewStatus","clearDetailEsRequest","displayName","jobDesc","adUserMap","organisationMap","changeDraftDelegationEndDate","changeDraftDelegationStartDate","changeDraftDelegationOrganization","fetchDelegations","loadDelegation","changeDraftDelegateActive","changeDraftDelegateOnSecureTasks","changeDraftDelegatePartially","removeDelegation","selectUser","PermissionDenied","style","marginTop","marginRight","PermissionContainer","props","permissionName","whileChecking","ifDenied","hasPermission","useMemo","fetchUserPermissions","Fragment","defaultProps","changeSearchQuery","searchTasks","advancedSearchChangeTitle","advancedSearchChangeTaskLevel","advancedSearchChangeStatus","advancedSearchChangeStartDateTo","advancedSearchChangeStartDateFrom","advancedSearchChangeTaskType","advancedSearchChangePriority","advancedSearchChangeEndDateTo","advancedSearchChangeEndDateFrom","advancedSearchFetchLookUp","advancedSearchTasks","clearSearchData","clearAdvancedSearchData","taskAction","actionID","taskActionDisplay","actionName","isUserTaskConfirmed","userTaskStatus","userTaskAssignedTo","userTaskAssignedForm","userTaskAssignedFrom","taskCreatedBy","onHisBehalfUser","no","statusDisplay","taskParent","lastUpdatedAt","lastUpdatedBy","updatedBy","isConfirmed","isUserTaskCC","assignedToId","assignedToArName","assignedFromId","assignedFromArName","lastReadAt","lastReadAtDisplay","taskStartDate","parentUserTask","isCC","isCompleted","inboxCount","pendingCount","lateCount","retrievedCount","rejectedCount","doneCount","changePhoneNumber","changeEmailCheckbox","changePhoneCheckbox","changeSystemCheckbox","fetchProfile","fetchUserProfile","saveProfile","save_profile_result","changeUserPermission","changeUserPermissionCategory","fetchPermissionCategories","filterUserPermissions","fetchCurrentUserPermissions","updateUserPermission","fetchPermissionTemplates","changeUserPermissionTemplate","fetchUserPermissionTemplate","updateUserPermissionTemplate","fetchLookup","changeTitle","toggleSecret","changeDescription","changeStartDate","changeEndDate","toggleHasParentTask","changeParentTaskNo","selectTaskType","selectProcedure","selectPriority","selectToUsers","selectCopyToUsers","add_task_result","clearParentTask","changeCalendar","changeDelegationId","changeLoginAsUserId","changeDraftPermissionTemplateName","changeDraftPermissionTemplatePermission","changeDraftPermissionTemplateDefaultTemplate","loadPermissionTemplate","getAllPermissions","addPermissionTemplate","updatePermissionTemplate","removePermissionTemplate","fetchStakholders","changeStakholderName","changeStakholderSearchQuery","changeStakholderRefId","removeStakholder","loadStakholder","changeTask","loadTask","changeRequestedExtraDays","canSendRequestAction","changeEndDateRequest","getActiveRequest","clearAddCedRequestPopup","clearTaskCedRequests","fetchTaskTypes","loadTaskType","changeDraftTaskTypeName","changeDraftTaskTypeAllowEditEndDate","changeDraftTaskTypeDefaultDays","removeTaskType","searchName","searchEmail","searchActive","orgID","fetchUsersApi","Name","newUserId","NewUserId","fetchOrganisationApi","organisationName","maxItems","userOrgs","UserName","Email","ArName","EnName","JobDescription","MobilePhone","Password","orgIDs","userCriteria","Active","emails","Emails","OrgIds","userInfo","changeDraftProcedureName","fetchProcedures","loadProcedure","removeProcedure","fetchPriorities","loadPriority","changeDraftPriorityName","removePriority","changeCedRequestStatus","fetchCedRequests","loadCedRequestDetails","selectCedRequestNewStatus","changeCedRequestResponseExtraDays","changeCedRequestResponseNotes","updateCedRequest","toggleTakeActionVisible","clearCedRequestDetailsData","clearCedRequestsData","addTaskToCart","fetchMaxTaskInCart","organizationMap","searchOrganizations","ParentId","fromOrganizationId","toOrganizationId","CopyToOrganizationId","CopyFromOrganizationId","OrgId","getReportServerUri","selectStatus","changeToDate","changeFromDate","changeIncludeChildren","resetData","searchTasksByOrganization","changeDelayDay","searchLateTasksByEmployee","fetchUsersWithOrgId","fetchSystemActions","selectSearchCriteriaSystemAction","selectSearchCriteriaUser","changeSearchCriteriaStartDate","changeSearchCriteriaEndDate","fetchRecords","removeAllRecords","clearAuditingData","changeEsRequestStatus","closedEsRequest","clearEsRequestsData","searchLateTasksForOrganization","iconMap","templates","color","icon","Button","className","template","iconless","remainingProps","remainingAnchorProps","onClick","remainingButtonProps","finalColor","finalIcon","finalTitle","finalClassName","finalImgClassName","renderContent","src","alt","event","preventDefault","renderButton","clearDirectingForm","fetchRefferalFormFile","addRefferalFormFile","toggelIsPdfViewerVisible","resetSearchCriteriaData","searchGetTaskPercentageForOrgDetails","fetchDefultPath","changeSearchPath","updatePathIndex","update_path_index_result","fetchAllIndexes","resetAllIndex","changeEsRequestType","changeEsRequestTitle","changeEsRequestTaskNo","changeEsRequestSendToUser","changeEsRequestNotes","getEsRequestTask","clearEsRequestTask","clearEsRequest","searchUsersApi","taskDesc","secure","hasParent","attachmentsIds","TaskTitle","TaskDescription","Secure","HasParent","ParentTaskNo","ProcedureId","ToUserIds","CopyToUserIds","StartDate","EndDate","toggleIsModalVisible","changeOldPassword","changeNewPassword","module","exports","Alert","modal","firstWord","setFirstWord","restMessage","setRestMessage","wordList","shift","visibleLoginAs","Table","TableBody","TableCell","TableHeader","TableRow","TableHead","PaginationComponent","handlePagingChange","itemsCountPerPage","activePage","totalItemsCount","pageRangeDisplayed","onChange","LabelControl","required","CheckboxControl","checkboxId","labelText","inForm","htmlFor","disabled","CheckboxVerticalControl","selectedOptions","onSelect","option","checked","InputControl","placeholder","autofocus","autoFocus","RadioButtonControl","vertical","selectedOption","renderOptions","renderVertical","renderHorizontal","NewSelectControl","selectedOptionId","onOptionChange","extractId","extractTitle","currentTarget","TextAreaControl","ReadonlyControl","ImageUploader","serverSettings","isDisabled","directingFormHeader","isDirectingForm","allowedMimes","mime","lookup","allowedExtensionsDisplay","isMobile","Dynamsoft","WebTwainEnv","AutoLoad","Trial","ProductKey","ResourcesPath","Load","useDropzone","accept","onDrop","acceptedFiles","rejectedFiles","allFiles","onFileAdded","FormData","append","onFileUploaded","onFileFailed","getRootProps","getInputProps","isDragActive","dwObject","GetWebTwain","AsyncMode","RegisterEvent","SelectedImagesCount","HowManyImagesInBuffer","SetSelectedImageIndex","SetHTTPHeader","HTTPUploadAllThroughPostAsPDF","errorString","httpResponse","SelectSource","outputInfo","onAcquireImageSuccess","CloseSource","onAcquireImageFailure","OpenSource","AcquireImage","display","AttachmentControl","allowedOnlyPdf","renderAttachments","deleteStyle","cursor","uploading","uploaded","failed","onDeleteAttachmentClicked","align","colSpan","SegmentedView","isSelected","cx","handleChange","SearchCriteriaContainer","actions","hasSearchIcon","TableContainer","showNoResultsIfNecessary","combinedTitle","noResultAlert","useNoResultMessage","data-toggle","data-target","aria-expanded","aria-controls","aria-labelledby","data-parent","overflowX","FormContainer","CardsContainer","subtitle","renderEmptyState","PopupContainer","alerts","hasPadding","progressVisible","position","overflowY","padding","IdTokenVerifier","wellKnownConfigUrl","issuer","retrieveKeys","jwks_uri","keysResponse","keys","verify","token","reject","rawKey","decoded_token","jwt","toString","x5c","match","join","getBaseApiUrl","useAuthUrl","apiPath","resolved","send","end","err","res","nonce","codeVerifier","crypto","randomBytes","codeChallenge","createHash","update","digest","generateCodeChallenge","authUrl","singOffUrl","revokeTokenUrl","URLSearchParams","btoa","assign","isEqual","hash","decodeURIComponent","msCrypto","D","Uint32Array","getRandomValues","Header","fetchLastNotifications","username","delegatorName","greeting","onNavigateTasksCart","useCallback","onNavigateNotifications","onNavigateNotificationDetails","onNavigateProfile","onChangeSearchQuery","onEnterClicked","onClickedOpenLoginAsModal","searchElement","useRef","renderNotifications","lastNotification","getPagePath","renderTaskCart","onKeyPress","ref","current","focus","target","updateDefaultHeaders","authClient","lastExpanded","DrawerItem","selected","expanded","setExpanded","selectedList","Children","isValidElement","data-tip","data-for","place","Drawer","getElementsByTagName","overflow","isSmallScreen","setIsSmallScreen","onResizeWindow","defaultInboxCount","assignedCount","ccCount","finishCount","changeDateNewCount","isDashboard","useRouteMatch","Dashboard","exact","isAdvancedSearch","AdvancedSearch","isTasks","Tasks","isProfile","Profile","isCedRequests","CedRequests","isEsRequests","EsRequests","onNavigateTasks","onClickedOpenKillTaskModal","onNavigateDashboard","renderAppBrand","xmlns","preserveAspectRatio","viewBox","fill","fillRule","d","renderList","stopPropagation","Footer","Popup","onRequestClose","modalHeight","isFirstTime","setFirstTime","modalId","$","on","onClickEscape","screenSize","pHeight","popupWidth","requestedWidth","popupHeight","role","aria-hidden","maxWidth","margin","data-dismiss","aria-label","modalBodyStyle","KillTask","onEnterClickedInStep1","onSubmit","maxLength","whiteSpace","customStyles","control","provided","border","borderRadius","backgroundClip","fontSize","AsyncSelectControl","identifier","onOpenTaskDetailPage","cacheOptions","closeMenuOnSelect","hideSelectedOptions","components","DropdownIndicator","isRtl","isMulti","isClearable","openMenuOnClick","openMenuOnFocus","styles","loadingMessage","noOptionsMessage","LoginAs","onChangeUser","selectedUsers","marginBottom","loadOptions","inputValue","getOptionValue","getOptionLabel","ChangePassword","minLength","MainLayout","route","ModalLayout","layoutOptions","requestedHeight","Layout","Component","setPathname","unsubscribe","listen","pick","forCreate","forUpdate","toLowerCase","o","layout","authorized","handleSignIn","renderConfirmDialog","zIndex","buttonTitle","setLayoutOptions","modalTemplates","confirmButton","confirmButtonIcon","confirmButtonColor","cancelButton","confirmSomething","onConfirm","confirmDialog","finalMessage","finalConfirm","finalConfirmColor","finalCancel","iconElement","getElementById","messageParagraph","innerHTML","onclick","lastChild","onPhoneNumberChange","onEmailCheckboxChange","onPhoneCheckboxChange","onSystemCheckboxChange","onNoteChange","onProfileSave","renderNotificationSettings","renderActions","readOnly","DirectingForm","marginLeft","DashboardButton","iconName","to","Procedures","onUpdateProcedureClicked","onRemoveProcedureClicked","renderProcedures","EditProcedure","procedureName","useParams","isEditing","buttonStyle","TaskTypes","navigateEditTaskType","onRemoveTaskTypeClicked","EditTaskType","taskName","onchangeDraftTaskTypeEditEndDate","Priorities","onUpdatePriority","onRemovePriorityClicked","renderPriorities","EditPriority","priorityName","Stakholders","navigateEditStackHolder","onRemoveStakeHolderClicked","EditStakholder","stakeholderName","Delegations","onUpdateDelegationClicked","onRemoveDelegationClicked","renderDelegations","startDateDisplay","endDateDisplay","isValid","DatePickerControl","hideClearButton","readonly","selectedCalendar","setSelectedCalendar","datePickerRef","locale","dateFormat","todayButton","setOpen","newCalendar","onCalendarChange","AddDelegation","MyDelegations","myDelegations","fetchMyDelegations","onLoginUsingThisDelegation","noResultMessage","onNavigateToDashboard","renderMyDelegations","fromUser","DeleteUserModal","isVisibleDeleteModal","liStyle","listStyle","lineHeight","Users","onChangeSearchCriteriaIsActive","onClickUserPermissionsTemplate","onClickUserPermissions","onClickUserPath","onClickEditUser","onClickChangeUserPassword","onClickDeleteUser","onChangeOrganization","AddUser","onChangeUserName","onChangeEmail","onChangeArName","onChangeEnName","onChangeJobDescription","onChangeMobile","onChangePassword","onChangeConfirmPassword","onChangeOrganisation","selectedOrganisation","onChangeBulkUsersOrganisation","promiseOptions","onClickNextStep","onClickPrevStep","onClickAddUser","onUserActiveCheckboxChange","onNavigateUsersPage","secondStepAction","Login","Logs","clearLogsData","onLogNumberChange","changeLogNumber","onSearchClick","fetchLogs","renderLogs","Auditing","onChangeSystemAction","onChangeStartDate","onChangeEndDate","onSearchClicked","onChangeCalendar","onRemoveAllRecordsClicked","renderRecords","additionalData","renderRecordsTable","SearchIndex","onUpdateClick","onTextChange","onResetClicked","renderSearchIndexes","PermissionTemplates","onUpdatePermissionTemplateClicked","onRemovePermissionClicked","renderPermissions","permission","AddUserPermissionsTemplate","onChangeUserPermissionTemplate","EditPermissionTemplate","onChangeDraftPermissionTemplatePermission","ConfirmDeactivationModal","Organizations","onUpdateOrganizationClicked","onToggleOrganizationActivationClicked","onRemoveOrganizationClicked","onTreeNodeClicked","onTreeNodeLabelClicked","renderOrganizations","flexDirection","direction","activeLabel","inactiveLabel","onToggle","colors","base","hover","inactive","renderTreeNodeView","nodeLabel","renderNoResultMessage","EditOrganization","ReactHtmlParser","CopyOrganization","organizationOptions","onChangeCopyToOrganization","onChangeCopyFromOrganization","UserPermissionsPopup","onChangeUserPermission","category","UsersPath","AddAdUser","onChangeAdUserOrganizations","onGoToStep1","onClickAddAdUser","renderActionsStep2","AddTask","onTitleChange","onIsSecretChange","onDescriptionChange","onStartDateChange","onEndDateChange","onTaskTypeChange","onProcedureChange","onPriorityChange","onChangeHasParentTask","onParentTaskNoChange","onCheckParentTaskClick","onClearParentTaskClick","onToUsersChange","selectedToUsers","onCopyToUsersChange","selectedCopyToUsers","then","onAddTaskClick","form","RequestCard","isTaskCedRequest","statusClass","onShowCedRequestDetailsClick","TaskCedRequests","urlTaskId","urlTaskId1","taskId1","onChangeTask","selectedTasks","onAddCedRequestClicked","searchCriteriaActions","cardsContainerActions","renderCedRequests","getNotConfirmedTasksByTaskNO","AddCedRequest","isTaskStatusAvailable","isRequestApprovedAutomatically","onNavigateTaskCedRequestsPage","onChangeEndDateRequest","renderAlerts","onRequestedExtraDaysChange","onNotesChange","MainOrgTaskStatus","onResetSearchCriteriaClick","onTreeNodeCheckBoxClicked","onChangeIncludeChildren","TaskByOrganizations","renderTaskStatuses","onStatusChange","onToDateChange","startTo","onFromDateChange","startFrom","onResetSearchData","GetDonePercentageForOrgsDetails","GetTaskPercentageForOrgsDetails","GetTaskPercentageForEmployeesInOrgDetails","LateTasksForEmployee","onSelectedUserChange","ReportList","LateTasksForOrg","NotFound","Forbidden","TaskActionButtons","onActionClicked","onlyCartButton","currentUserId","onNavigateExportTaskPdf","isCompletionRateButtonVisible","isUnderConstructionButtonVisible","isConfirmTaskButtonVisible","isCompletionButtonVisible","isSendButtonVisible","isRejectButtonVisible","isRetrieveButtonVisible","isPostponeButtonVisible","isAssignButtonVisible","condition1","condition2","opacity","TaskCard","hideButtons","taskDetailsRouteName","onTaskNoClick","prompt","onShowTaskDetailsClicked","hideButton","detailModalParentPage","inboxModeString","urlInboxMode","header","hasFinishedSegment","renderTasks","StartTask","useTaskActionInfo","renderCloseButton","onClickStartTask","routerTaskId","stateTaskId","stateNormalTaskId","normalTaskId","RejectTask","onRejectionReasonChange","onClickRejectTask","RetrieveTask","onRetrieveTaskNoteChange","onClickRetrieveTask","ReassignTask","onClickReassignTask","WebTwain","onScanDocumentClicked","HTTPUpload","EnumDWT_ImageType","IT_PDF","EnumDWT_UploadDataFormat","Binary","PostponeTask","onPostponeReasonChange","onClickPostponeTask","ForwardCCTask","onClickForwardCCTask","cedRequestStatusString","urlCedRequestStatus","segmentedViewOptions","onCedRequestStatusChange","renderRequests","onShowEsRequestDetailsClick","onCloseClick","esRequestStatusString","urlEsRequestStatus","onEsRequestStatusChange","Search","isModal","requestTimeDisplay","stateSearchQuery","TaskInfoTab","parentTitle","taskPriority","taskProcedure","taskEndDate","taskNotes","isLate","isSameOrBefore","onChangeActiveSlideClick","onNavigateChangeEndDateRequestPage","onNavigateAttachmentViewer","statusClasses","ccUser","HistoryAndCommentObject","historyItem","taskCreatedById","onAcceptClick","renderCreatedBy","renderAction","renderComment","renderStatus","renderAssignedTo","TaskHistoryAndCommentsTab","reordered","setReordered","onToggleOrderOfComments","prevState","TaskNotificationsTab","usePagePicker","forTasks","forAdvancedSearch","forSearch","forNotifications","forAddEsRequests","InfoTabsView","activeTab","setActiveTab","onSetActiveTabClick","tabName","pagePicker","visibility","SecretContentView","onSendActivationCodeClicked","onCheckActivationCodeClicked","onGoBackClicked","currentUserMobileNumber","setSecretCode","onCheckCodeClick","ParentInfoView","renderParentTasks","AddCommentView","onCommentChange","onAddCommentClicked","onNavigateCommentAndHistoryTab","ConfirmTask","confirmNote","onConfirmNoteChange","onConfirmRatingChange","onClickConfirmTask","ratingOptions","FinishTask","onChangeWorkHours","onClickFinishTask","CompletionRateTask","onCompletionRateTaskChangeCompletionRate","onClickCompletionRateTask","ViewAttachment","ExportTaskPDF","onSendCodeForSecretTaskClicked","onSecretCodeEntered","onReDownloadPdfClick","TaskDetails","onClearSearchCriteria","onTaskLevelChange","onStartToChange","onStartFromChange","onEndToChange","endTo","onEndFromChange","endFrom","onAdvancedSearchTasks","getSelectedTaskLevel","CedRequestDetails","isTaskCedRequestPage","requestNotes","assignedUserId","onUpdateCedRequestClick","onGoBackClick","onApprovedExtraDaysChange","onNewResponseNotesChange","onTakeAnActionClick","requestAnimationFrame","renderCedRequestStatuses","NotificationCard","onClickNotificationCard","Notifications","fetchNotifications","onClickedNotificationCard","AddEsRequest","onSendToUserChange","getSelectedEsRequestType","onEsRequestTypeChange","onAddEsRequestClick","onTaskNoChange","onClearTaskClick","onCheckTaskClick","InfoTab","onNavigateSignedFileViewer","console","overflowWrap","CommentObject","renderAttachment","CommentsTab","TabsView","onCloseRequestClick","ChangeStatus","renderEsRequestStatuses","onNavigateInfoTab","onChangeStatusClicked","EsRequestDetail","onClearClick","ReassignAllTasks","ChangeUserPassword","setPassword","SSO","hashes","error_description","stateMatch","clearSession","codeMatch","hasDelegations","catch","replaceState","component","AddProcedure","UpdateProcedure","AddTaskType","UpdateTaskType","AddPriority","UpdatePriority","Stakeholders","AddStakeholder","EditStakeholders","UpdateStakeholder","UpdateDelegation","EditUser","AddPermissionTemplates","UpdatePermissionTemplates","AddOrganization","UpdateOrganization","UserTemplatePermissionsPopup","NotificationsTaskDetails","AdvancedSearchTaskDetails","AddEsRequestTaskDetails","SearchTaskDetails","TaskCedRequestDetails","MainOrgTasksStatus","GDPFOD","GTPFOD","GTPFEIOD","EsRequestDetails","TasksCart","createBrowserHistory","strict","sensitive","renderPages","values","renderModals","inClassName","outClassName","backdropClassName","backdropInClassName","backdropOutClassName","onBackdropClick","outDelay","delegationMap","OrganizationId","Partially","DelegatedOnSecureTasks","DelegationId","Authorization","withCredentials","systemActionMap","recordMap","RequestedExtraDays","AutoApproved","SystemActionID","allRecords","actualApprovedExtraDays","webpackContext","req","webpackContextResolve","__webpack_require__","SystemError","ErrorBoundary","this","preparse","string","postformat","App","isLocalhost","Boolean","hostname","registerValidSW","swUrl","navigator","serviceWorker","register","registration","onupdatefound","installingWorker","installing","onstatechange","controller","onUpdate","onSuccess","ReactDOM","render","process","origin","fetch","contentType","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AAOs1E,UACnBt1E,EAAOs1E,SAASN,KAMlBpG,QAAQtjE,IAAI,sCAGRtL,GAAUA,EAAOu1E,WACnBv1E,EAAOu1E,UAAUP,WAO5B7E,OAAM,SAAAlhG,GACL2/F,QAAQ3/F,MAAM,4CAA6CA,MClGjEumG,IAASC,OAAO,mBF+BD,kBACd,kBAAC,IAAD,CAAUjoG,MAAOA,SAChB,kBAAC,EAAD,KACC,kBAAC,EAAD,UElCa,MAASK,SAAS8mF,eAAe,SDqB1C,SAAkB30D,GACvB,GAA6C,kBAAmB60E,UAAW,CAMzE,GAJkB,IAAI5zE,IACnBy0E,GACDpnG,OAAO4yB,SAASC,MAEJw0E,SAAWrnG,OAAO4yB,SAASy0E,OAIvC,OAGFrnG,OAAOgvD,iBAAiB,QAAQ,WAC9B,IAAMs3C,EAAK,UAAMc,GAAN,sBAEPlB,IAgEV,SAAiCI,EAAe50E,GAE9C41E,MAAMhB,GACHnU,MAAK,SAAAvxF,GAEJ,IAAM2mG,EAAc3mG,EAASywB,QAAQ0B,IAAI,gBAEnB,MAApBnyB,EAASC,QACO,MAAf0mG,IAA8D,IAAvCA,EAAY9zF,QAAQ,cAG5C8yF,UAAUC,cAAcgB,MAAMrV,MAAK,SAAAuU,GACjCA,EAAae,aAAatV,MAAK,WAC7BnyF,OAAO4yB,SAAS+U,eAKpB0+D,EAAgBC,EAAO50E,MAG1BmwE,OAAM,WACLvB,QAAQtjE,IACN,oEArFA0qE,CAAwBpB,EAAO50E,GAI/B60E,UAAUC,cAAcgB,MAAMrV,MAAK,WACjCmO,QAAQtjE,IACN,iHAMJqpE,EAAgBC,EAAO50E,OC/C/B80E,K","file":"static/js/main.3498405a.chunk.js","sourcesContent":["import { history, RouteName, routes } from '../../config/router';\r\nimport {\r\n\tActionTypes,\r\n\tAddAttachmentAction,\r\n\tAlertType,\r\n\tAttachmentStatus,\r\n\tChangeIsModalVisibleAction,\r\n\tDeleteAttachmentAction,\r\n\tDeleteAttachmentResultAction,\r\n\tFetchAttachmentSettingsResultAction,\r\n\tNavigateAction,\r\n\tReplaceAction,\r\n\tShowAlertAction,\r\n\tShowProgressAction,\r\n\tUpdateAttachmentStatusAction,\r\n} from './types';\r\nimport { AppAction, AppState } from '../../config/types';\r\n\r\nexport const replace = (routeName: RouteName, ...options: any[]): ReplaceAction => {\r\n\tconst hasState = typeof options[options.length - 1] === 'object' || typeof options[options.length - 1] === 'undefined';\r\n\thistory.replace({\r\n\t\tpathname: options\r\n\t\t\t.slice(0, options.length - (hasState ? 1 : 0))\r\n\t\t\t.reduce((previousValue, currentValue) => previousValue.concat(`/${currentValue}`), routes[routeName].path),\r\n\t\tstate: hasState ? options[options.length - 1] : undefined,\r\n\t});\r\n\treturn {\r\n\t\ttype: ActionTypes.replace,\r\n\t\trouteName,\r\n\t};\r\n};\r\n\r\nexport const navigate = (routeName: RouteName, ...options: any[]): NavigateAction => {\r\n\tconst hasState = typeof options[options.length - 1] === 'object' || typeof options[options.length - 1] === 'undefined';\r\n\thistory.push({\r\n\t\tpathname: options\r\n\t\t\t.slice(0, options.length - (hasState ? 1 : 0))\r\n\t\t\t.reduce((previousValue, currentValue) => previousValue.concat(`/${currentValue}`), routes[routeName].path),\r\n\t\tstate: hasState ? options[options.length - 1] : undefined,\r\n\t});\r\n\treturn {\r\n\t\ttype: ActionTypes.navigate,\r\n\t\trouteName,\r\n\t};\r\n};\r\n\r\n// Progress\r\nexport const showProgress = (message?: string, shouldDisableForm: boolean = true): ShowProgressAction => {\r\n\t// @ts-ignore\r\n\tNProgress.start();\r\n\r\n\treturn {\r\n\t\ttype: ActionTypes.show_progress,\r\n\t\tmessage,\r\n\t\tshouldDisableForm,\r\n\t};\r\n};\r\nexport const hideProgress = (): AppAction => {\r\n\t// @ts-ignore\r\n\tNProgress.done();\r\n\r\n\treturn {\r\n\t\ttype: ActionTypes.hide_progress,\r\n\t};\r\n};\r\n\r\n// Alert\r\nexport const showAlert = (alertType: AlertType, message: string = ''): ShowAlertAction => {\r\n\tconst appState: AppState = require('../../config/store').store.getState();\r\n\tconst isModalVisible = appState.service.isModalVisible;\r\n\r\n\tif (isModalVisible) {\r\n\t\tconst popups = document.getElementsByClassName('modal-body');\r\n\t\tfor (let i = 0; i < popups.length; i++) {\r\n\t\t\tconst popup = popups.item(i);\r\n\t\t\tpopup && popup.scrollTo({\r\n\t\t\t\ttop: 0,\r\n\t\t\t\tleft: 0,\r\n\t\t\t\tbehavior: 'smooth',\r\n\t\t\t});\r\n\t\t}\r\n\t} else {\r\n\t\twindow.scrollTo({\r\n\t\t\ttop: 0,\r\n\t\t\tleft: 0,\r\n\t\t\tbehavior: 'smooth',\r\n\t\t});\r\n\t}\r\n\r\n\treturn {\r\n\t\ttype: ActionTypes.show_alert,\r\n\t\talertType,\r\n\t\tmessage,\r\n\t};\r\n};\r\nexport const showCreatedSuccessfullyAlert = () =>\r\n\tshowAlert('success', 'تم إنشاء العنصر بنجاح.');\r\nexport const showUpdatedSuccessfullyAlert = () =>\r\n\tshowAlert('success', 'تم تحديث العنصر بنجاح.');\r\nexport const showRemovedSuccessfullyAlert = () =>\r\n\tshowAlert('success', 'تم حذف العنصر بنجاح.');\r\nexport const showDoneSuccessfullyAlert = () =>\r\n\tshowAlert('success', 'تم تنفيذ العملية بنجاح.');\r\nexport const showRequiredAlert = (field: string, mode: 'enter' | 'select' = 'enter'): ShowAlertAction =>\r\n\tshowAlert('warn', `يرجى ${mode === 'enter' ? 'ادخال' : 'اختيار'} ${field}.`);\r\n\r\nexport const showAccessDeniedAlert = () =>\r\n\tshowAlert('error', 'عذراً ليس لديك الصلاحيات الكافية لتنفيذ هذه العملية.');\r\n\r\nexport const showHttpErrorAlert = (error: { response: any }) => {\r\n\tif (!error || !error.response || !error.response.status) {\r\n\t\treturn showAlert('error', 'حدث خطأ غير متوقع، يرجى إعادة المحاولة لاحقاً.');\r\n\t}\r\n\r\n\tconst { response } = error;\r\n\tif (!process.env.NODE_ENV || process.env.NODE_ENV === 'development') console.log(response);\r\n\tconst { errorCode, message } = response.data || {};\r\n\r\n\tswitch (response.status) {\r\n\t\tcase 400: // Bad Request\r\n\t\t\tconst badRequestMessage = (errorCode && `${errorCode}: ` || '') + (message || 'حدث خطأ غير متوقع، يرجى إعادة المحاولة لاحقاً');\r\n\t\t\treturn showAlert('error', badRequestMessage);\r\n\t\tcase 500: // Internal Server Error\r\n\t\tcase 503: // Service Unavailable\r\n\t\t\tconst internalErrorMessage = (errorCode && `${errorCode}: ` || '') + ('حدث خطأ غير متوقع، يرجى الإتصال بفريق الدعم.');\r\n\t\t\treturn showAlert('error', internalErrorMessage);\r\n\t\tcase 404: // Not Found\r\n\t\t\treturn showAlert('error', 'عذراً العنصر الذي تبحث عنه غير موجود.');\r\n\t\tcase 401: // Unauthorized\r\n\t\t\treturn showAccessDeniedAlert();\r\n\t\tdefault:\r\n\t\t\treturn showAlert('error', 'حدث خطأ غير متوقع، يرجى الإتصال بفريق الدعم.');\r\n\t}\r\n};\r\n\r\nexport const clearAlert = (): AppAction => ({\r\n\ttype: ActionTypes.clear_alert,\r\n});\r\n\r\nexport const changeIsModalVisible = (isModalVisible: boolean): ChangeIsModalVisibleAction => ({\r\n\ttype: ActionTypes.change_is_modal_visible,\r\n\tisModalVisible,\r\n});\r\n\r\nexport const toggleDrawer = (): AppAction => ({\r\n\ttype: ActionTypes.toggle_drawer,\r\n});\r\n\r\n// Attachments\r\nexport const fetchAttachmentSettings = (): AppAction => ({\r\n\ttype: ActionTypes.fetch_attachment_settings,\r\n});\r\nexport const fetchAttachmentSettingsResult = (hasError: boolean, allowedFileExtensions?: string[], maxFileSize?: number): FetchAttachmentSettingsResultAction => ({\r\n\ttype: ActionTypes.fetch_attachment_settings_result,\r\n\thasError,\r\n\tallowedFileExtensions,\r\n\tmaxFileSize,\r\n});\r\nexport const toggleSecure = (): AppAction => ({\r\n\ttype: ActionTypes.toggle_secure,\r\n});\r\nexport const addAttachment = (uuid: string, name: string, multiple = true): AddAttachmentAction => ({\r\n\ttype: ActionTypes.add_attachment,\r\n\tuuid,\r\n\tname,\r\n\tmultiple,\r\n});\r\nexport const updateAttachmentStatus = (uuid: string, status: AttachmentStatus, serverId?: string): UpdateAttachmentStatusAction => ({\r\n\ttype: ActionTypes.update_attachment_status,\r\n\tuuid,\r\n\tstatus,\r\n\tserverId,\r\n});\r\nexport const deleteAttachment = (uuid: string): DeleteAttachmentAction => ({\r\n\ttype: ActionTypes.delete_attachment,\r\n\tuuid,\r\n});\r\nexport const deleteAttachmentResult = (hasError: boolean, uuid?: string): DeleteAttachmentResultAction => ({\r\n\ttype: ActionTypes.delete_attachment_result,\r\n\thasError,\r\n\tuuid,\r\n});\r\nexport const clearAttachments = (): AppAction => ({\r\n\ttype: ActionTypes.clear_attachments,\r\n});\r\n","import { AppAction, AppResultAction } from '../../../config/types';\r\n\r\nexport enum ActionTypes {\r\n\tupload_files = 'UPLOADER__UPLOAD_FILES',\r\n\tupload_file_result = 'UPLOADER__UPLOAD_FILE_RESULT',\r\n}\r\n\r\nexport interface UploadFilesAction extends AppAction {\r\n\ttype: ActionTypes.upload_files,\r\n\tfiles: File[]\r\n}\r\n\r\nexport interface UploadFileResultAction extends AppResultAction {\r\n\ttype: ActionTypes.upload_file_result,\r\n\tuuid?: string,\r\n\tserverId?: string,\r\n}\r\n\r\nexport type Action =\r\n\t& AppAction\r\n\t& AppResultAction\r\n\t& UploadFilesAction\r\n\t& UploadFileResultAction;\r\n\r\nexport interface State {\r\n\tselectedAttachments: {\r\n\t\tuuid: string,\r\n\t\tserverId?: string,\r\n\t\tfileName: string,\r\n\t\tstatus: 'uploading' | 'uploaded' | 'failed',\r\n\t}[];\r\n}\r\n","import { array } from 'redux-immutable-helper';\r\nimport { Action, ActionTypes, State } from './types';\r\n\r\nexport const initialState: State = {\r\n\ttasksCart: [],\r\n\tmaximumTasksInCart: 10,\r\n};\r\n\r\nconst tasksCart = (state = initialState, action: Action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.add_task_to_cart:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttasksCart: array(state.tasksCart)\r\n\t\t\t\t\t.push({ ...action.taskHeader })\r\n\t\t\t\t\t.toArray(),\r\n\t\t\t};\r\n\t\tcase ActionTypes.remove_task_from_cart:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttasksCart: array(state.tasksCart)\r\n\t\t\t\t\t.removeAll(x => x.userTaskId === action.userTaskId)\r\n\t\t\t\t\t.toArray(),\r\n\t\t\t};\r\n\t\tcase ActionTypes.remove_task_from_cart_by_user_task:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttasksCart: array(state.tasksCart)\r\n\t\t\t\t\t.removeAll(x => x.taskId === action.taskId)\r\n\t\t\t\t\t.toArray(),\r\n\t\t\t};\r\n\t\tcase ActionTypes.clear_tasks_cart:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttasksCart: state.tasksCart.filter(x => action.failedTasks.includes(x.userTaskId)),\r\n\t\t\t};\r\n\t\tcase ActionTypes.fetch_max_task_in_cart_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tmaximumTasksInCart: action.maxTaskInCart!,\r\n\t\t\t};\r\n\r\n\t\tcase 'GENERAL__CLEAR_STATE':\r\n\t\t\treturn { ...initialState };\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nexport default tasksCart;\r\n","import { Reducer } from 'redux';\r\nimport { Action, ActionTypes, State } from './types';\r\nimport { array } from 'redux-immutable-helper';\r\n\r\nconst initialState: State = {\r\n\temail: '',\r\n\tpassword: '',\r\n\r\n\tloggingIn: false,\r\n\tcredentialsValid: false,\r\n\r\n\tloadingPermissions: false,\r\n\tuserPermissions: undefined,\r\n\r\n\tsid: '',\r\n\tprofile: {\r\n\t\tarName: '',\r\n\t\tphoneNumber: '',\r\n\t\tnote: '',\r\n\t\temail: '',\r\n\t},\r\n\tdelegator: undefined,\r\n\tloginAsFullName: undefined,\r\n\r\n\tnotifications: [],\r\n\r\n\tsuperUser: false,\r\n};\r\n\r\nconst auth: Reducer = (state = initialState, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.change_email:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\temail: action.email,\r\n\t\t\t};\r\n\t\tcase ActionTypes.change_password:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tpassword: action.password,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.login:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tloggingIn: true,\r\n\t\t\t};\r\n\t\tcase ActionTypes.login_result:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tloggingIn: false,\r\n\t\t\t\tcredentialsValid: action.hasError,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_profile_data:\r\n\t\t\treturn {\r\n\t\t\t\t...initialState,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.set_sid_value:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tsid: action.sid,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_user_permissions:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tloadingPermissions: true,\r\n\t\t\t};\r\n\t\tcase ActionTypes.fetch_user_permissions_result:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tloadingPermissions: false,\r\n\t\t\t\tuserPermissions: action.userPermissions,\r\n\t\t\t};\r\n\t\tcase ActionTypes.clear_user_permissions:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tuserPermissions: undefined,\r\n\t\t\t};\r\n\t\tcase ActionTypes.toggle_super_user:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tsuperUser: !state.superUser,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_profile_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tprofile: action.profile,\r\n\t\t\t\tnotifications: action.notifications,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_user_profile_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tprofile: action.profile!,\r\n\t\t\t\tdelegator: action.delegator,\r\n\t\t\t\tloginAsFullName: action.loginAsFullName,\r\n\t\t\t\tpartially: action.partially,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_phoneNumber:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tprofile: {\r\n\t\t\t\t\tarName: state.profile.arName,\r\n\t\t\t\t\tphoneNumber: action.phoneNumber,\r\n\t\t\t\t\tnote: state.profile.note,\r\n\t\t\t\t\temail: state.email,\r\n\t\t\t\t},\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_note:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tprofile: {\r\n\t\t\t\t\tarName: state.profile.arName,\r\n\t\t\t\t\tphoneNumber: state.profile.phoneNumber,\r\n\t\t\t\t\tnote: action.note,\r\n\t\t\t\t\temail: state.email,\r\n\t\t\t\t},\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_email_checkbox:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tnotifications: array(state.notifications).replace(element => element.notificationTypeId === action.emailCheckboxId, prevElement => ({\r\n\t\t\t\t\t...prevElement,\r\n\t\t\t\t\temailNotification: !prevElement.emailNotification,\r\n\t\t\t\t})).toArray(),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_phone_checkbox:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tnotifications: array(state.notifications).replace(element => element.notificationTypeId === action.phoneCheckboxId, prevElement => ({\r\n\t\t\t\t\t...prevElement,\r\n\t\t\t\t\tphoneNotification: !prevElement.phoneNotification,\r\n\t\t\t\t})).toArray(),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_system_checkbox:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tnotifications: array(state.notifications).replace(element => element.notificationTypeId === action.pushCheckboxId, prevElement => ({\r\n\t\t\t\t\t...prevElement,\r\n\t\t\t\t\tsystemNotification: !prevElement.systemNotification,\r\n\t\t\t\t})).toArray(),\r\n\t\t\t};\r\n\r\n\t\tcase 'GENERAL__CLEAR_STATE':\r\n\t\t\treturn initialState;\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nexport default auth;\r\n","import { Reducer } from 'redux';\r\nimport { Action, ActionTypes, State } from './types';\r\n\r\nconst initialState: State = {\r\n\tdraftProcedure: {\r\n\t\tid: '',\r\n\t\tname: '',\r\n\t},\r\n\r\n\tprocedures: [],\r\n\ttotalCount: -1,\r\n};\r\n\r\nconst procedures: Reducer = (state = initialState, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.change_draft_procedure_name:\r\n\r\n\t\tcase ActionTypes.set_draft_procedure:\r\n\t\tcase ActionTypes.remove_procedure:\r\n\t\tcase ActionTypes.clear_draft_procedure:\r\n\t\tcase ActionTypes.load_procedure:\r\n\t\tcase ActionTypes.load_procedure_result:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tdraftProcedure: draftProcedure(state.draftProcedure, action),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_procedure_data:\r\n\t\t\treturn {\r\n\t\t\t\t...initialState,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_procedures:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_procedures_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tprocedures: action.procedures,\r\n\t\t\t\ttotalCount: action.totalCount,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.remove_procedure_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.add_procedure_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.update_procedure_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t};\r\n\r\n\t\tcase 'GENERAL__CLEAR_STATE':\r\n\t\t\treturn initialState;\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nconst draftProcedure: Reducer = (state = initialState.draftProcedure, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.change_draft_procedure_name:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tname: action.name,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.load_procedure_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn { ...state, ...action.procedure };\r\n\r\n\t\tcase ActionTypes.remove_procedure:\r\n\t\t\treturn { ...state, ...action.procedure };\r\n\r\n\t\tcase ActionTypes.clear_draft_procedure:\r\n\t\t\treturn initialState.draftProcedure;\r\n\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nexport default procedures;\r\n","import { Action, ActionTypes, State } from './types';\r\n\r\nconst initialState: State = {\r\n\tisLoggedIn: false,\r\n\taccessToken: '',\r\n\trefreshToken: undefined,\r\n\tcalendar: undefined,\r\n};\r\n\r\nexport default (state: State = initialState, action: Action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.change_is_logged_in:\r\n\t\t\treturn { ...state, isLoggedIn: action.isLoggedIn };\r\n\t\tcase ActionTypes.change_access_token:\r\n\t\t\treturn { ...state, accessToken: action.accessToken, refreshToken: action.refreshToken };\r\n\t\tcase ActionTypes.change_delegation_id:\r\n\t\t\treturn { ...state, delegationId: action.delegationId };\r\n\t\tcase ActionTypes.change_login_as_user_id:\r\n\t\t\treturn { ...state, loginAsUserId: action.loginAsUserId };\r\n\t\tcase ActionTypes.change_calendar:\r\n\t\t\treturn { ...state, calendar: action.calendar };\r\n\t\tcase ActionTypes.clear_all_storage:\r\n\t\t\treturn { ...initialState };\r\n\r\n\t\tcase 'GENERAL__CLEAR_STATE':\r\n\t\t\t// @ts-ignore\r\n\t\t\treturn { ...(action.logout ? initialState : state), calendar: undefined };\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n","import { Reducer } from 'redux';\r\nimport { Action, ActionTypes, State } from './types';\r\n\r\nconst initialState: State = {\r\n\ttaskTypes: [],\r\n\ttotalCount: -1,\r\n\r\n\tdraftTaskType: {\r\n\t\tid: '',\r\n\t\tname: '',\r\n\t\tallowEditEndDate: false,\r\n\t\tdefaultDays: '',\r\n\t},\r\n};\r\n\r\nconst taskType: Reducer = (state = initialState, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.change_draft_task_type_name:\r\n\t\tcase ActionTypes.change_draft_task_type_default_days:\r\n\t\tcase ActionTypes.change_draft_task_type_allow_edit_end_date:\r\n\r\n\t\tcase ActionTypes.set_draft_task_type:\r\n\t\tcase ActionTypes.clear_draft_task_type:\r\n\r\n\t\tcase ActionTypes.load_task_type:\r\n\t\tcase ActionTypes.load_task_type_result:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tdraftTaskType: draftTaskType(state.draftTaskType, action),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_task_types_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttaskTypes: action.taskTypes,\r\n\t\t\t\ttotalCount: action.totalCount,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.remove_task_type_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.add_task_type_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.update_task_type_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_task_type_page_data:\r\n\t\t\treturn {\r\n\t\t\t\t...initialState,\r\n\t\t\t};\r\n\r\n\t\tcase 'GENERAL__CLEAR_STATE':\r\n\t\t\treturn initialState;\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nconst draftTaskType: Reducer = (state = initialState.draftTaskType, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.change_draft_task_type_name:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tname: action.name,\r\n\t\t\t};\r\n\t\tcase ActionTypes.change_draft_task_type_default_days:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tdefaultDays: action.defaultDays,\r\n\t\t\t};\r\n\t\tcase ActionTypes.change_draft_task_type_allow_edit_end_date:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tallowEditEndDate: !state.allowEditEndDate,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.load_task_type_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn { ...state, ...action.taskType };\r\n\r\n\t\tcase ActionTypes.clear_draft_task_type:\r\n\t\t\treturn {\r\n\t\t\t\t...initialState.draftTaskType,\r\n\t\t\t};\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nexport default taskType;\r\n","import { Reducer } from 'redux';\r\nimport { Action, ActionTypes, State } from './types';\r\n\r\nconst initialState: State = {\r\n\tdraftPriority: {\r\n\t\tid: '',\r\n\t\tname: '',\r\n\t},\r\n\r\n\tpriorities: [],\r\n\ttotalCount: -1,\r\n};\r\n\r\nconst priorities: Reducer = (state = initialState, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.change_draft_priority_name:\r\n\t\tcase ActionTypes.load_priority:\r\n\t\tcase ActionTypes.load_priority_result:\r\n\t\tcase ActionTypes.set_draft_priority:\r\n\t\tcase ActionTypes.remove_priority:\r\n\t\tcase ActionTypes.clear_draft_priority:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tdraftPriority: draftPriority(state.draftPriority, action),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_priority_data:\r\n\t\t\treturn {\r\n\t\t\t\t...initialState,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_priorities_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tpriorities: action.priorities,\r\n\t\t\t\ttotalCount: action.totalCount,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.remove_priority_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.add_priority_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.update_priority_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t};\r\n\r\n\t\tcase 'GENERAL__CLEAR_STATE':\r\n\t\t\treturn initialState;\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nconst draftPriority: Reducer = (state = initialState.draftPriority, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.change_draft_priority_name:\r\n\t\t\treturn { ...state, name: action.name };\r\n\r\n\t\tcase ActionTypes.load_priority_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn { ...state, ...action.priority };\r\n\r\n\t\tcase ActionTypes.remove_priority:\r\n\t\t\treturn { ...state, ...action.priority };\r\n\r\n\t\tcase ActionTypes.clear_draft_priority:\r\n\t\t\treturn initialState.draftPriority;\r\n\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nexport default priorities;\r\n","import { Reducer } from 'redux';\r\nimport { Action, ActionTypes, State } from './types';\r\n\r\nconst initialState: State = {\r\n\tdraftStakholder: {\r\n\t\tid: '',\r\n\t\tname: '',\r\n\t\trefId: '',\r\n\t},\r\n\r\n\tstakholders: [],\r\n\ttotalCount: -1,\r\n\tpageNumber: 1,\r\n\r\n\tsearchQuery: '',\r\n};\r\n\r\nconst stakholders: Reducer = (state = initialState, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.change_stakholder_name:\r\n\t\tcase ActionTypes.change_stakholder_ref_id:\r\n\r\n\t\tcase ActionTypes.set_draft_stakholder:\r\n\t\tcase ActionTypes.clear_draft_stakholder:\r\n\r\n\t\tcase ActionTypes.load_stakholder:\r\n\t\tcase ActionTypes.load_stakholder_result:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tsearchQuery: '',\r\n\t\t\t\tdraftStakholder: draftStakholder(state.draftStakholder, action),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_stakholder_search_query:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tsearchQuery: action.searchQuery,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_search_queries:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tsearchQuery: '',\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_stakholders_data:\r\n\t\t\treturn {\r\n\t\t\t\t...initialState,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_stakholders:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tpageNumber: action.pageNumber,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.refetch_stakholders:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tpageNumber: action.pageNumber,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_stakholders_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tstakholders: action.stakholders || [],\r\n\t\t\t\ttotalCount: action.totalCount!,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.remove_stakholder_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.add_stakholder_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.update_stakholder_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t};\r\n\r\n\t\tcase 'GENERAL__CLEAR_STATE':\r\n\t\t\treturn initialState;\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nconst draftStakholder: Reducer = (state = initialState.draftStakholder, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.change_stakholder_name:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tname: action.name,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_stakholder_ref_id:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\trefId: action.refId,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_draft_stakholder:\r\n\t\t\treturn {\r\n\t\t\t\t...initialState.draftStakholder,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.load_stakholder_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn { ...state, ...action.stakholder };\r\n\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nexport default stakholders;\r\n","import { Reducer } from 'redux';\r\nimport { Action, ActionTypes, State } from './types';\r\n\r\nconst initialState: State = {\r\n\tdelegations: [],\r\n\ttotalCount: -1,\r\n\r\n\torganizations: [],\r\n\tusers: [],\r\n\tsearchUserQuery: '',\r\n\r\n\tdraftDelegation: {\r\n\t\tid: '',\r\n\t\torganization: undefined,\r\n\t\ttoUser: undefined,\r\n\r\n\t\tstartDate: undefined,\r\n\t\tendDate: undefined,\r\n\r\n\t\tactive: false,\r\n\t\tdelegatedOnSecureTasks: false,\r\n\t\tpartially: false,\r\n\t},\r\n};\r\n\r\nconst delegation: Reducer = (state = initialState, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.change_draft_delegate_end_date:\r\n\t\tcase ActionTypes.change_draft_delegate_start_date:\r\n\t\tcase ActionTypes.change_draft_delegate_on_secure_tasks:\r\n\t\tcase ActionTypes.change_draft_delegate_partially:\r\n\t\tcase ActionTypes.change_draft_delegate_active:\r\n\t\tcase ActionTypes.change_draft_delegate_organization:\r\n\t\tcase ActionTypes.set_draft_delegation:\r\n\t\tcase ActionTypes.remove_delegation:\r\n\t\tcase ActionTypes.change_checkbox_option:\r\n\t\tcase ActionTypes.clear_draft_delegation:\r\n\t\tcase ActionTypes.load_delegation:\r\n\t\tcase ActionTypes.load_delegation_result:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tdraftDelegation: draftDelegation(state.draftDelegation, action),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.select_user:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tusers: [],\r\n\t\t\t\tsearchUserQuery: '',\r\n\t\t\t\tdraftDelegation: draftDelegation(state.draftDelegation, action),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.delete_selected_user:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tusers: [],\r\n\t\t\t\tdraftDelegation: draftDelegation(state.draftDelegation, action),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_user_search_query:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tusers: [],\r\n\t\t\t\tsearchUserQuery: '',\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_delegation_data:\r\n\t\t\treturn {\r\n\t\t\t\t...initialState,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.search_users:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tsearchUserQuery: action.searchUserQuery,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.search_users_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tusers: action.users,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_delegations_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tdelegations: action.delegations,\r\n\t\t\t\ttotalCount: action.totalCount,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_organizations_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\torganizations: action.organizations,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.remove_delegation_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.add_delegation_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.update_delegation_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t};\r\n\r\n\t\tcase 'GENERAL__CLEAR_STATE':\r\n\t\t\treturn initialState;\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nconst draftDelegation: Reducer = (state = initialState.draftDelegation, action) => {\r\n\tswitch (action.type) {\r\n\r\n\t\tcase ActionTypes.change_draft_delegate_end_date:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tendDate: action.endDate,\r\n\t\t\t};\r\n\t\tcase ActionTypes.change_draft_delegate_start_date:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tstartDate: action.startDate,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_draft_delegate_organization:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\torganization: action.organization,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_draft_delegate_on_secure_tasks:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tdelegatedOnSecureTasks: !state.delegatedOnSecureTasks,\r\n\t\t\t};\r\n\t\tcase ActionTypes.change_draft_delegate_partially:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tpartially: !state.partially,\r\n\t\t\t};\r\n\t\tcase ActionTypes.change_draft_delegate_active:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tactive: !state.active,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.remove_delegation:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\t...action.delegation,\r\n\t\t\t};\r\n\t\tcase ActionTypes.clear_draft_delegation:\r\n\t\t\treturn {\r\n\t\t\t\t...initialState.draftDelegation,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.select_user:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttoUser: action.toUser,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.delete_selected_user:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttoUser: undefined,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.load_delegation_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn { ...state, ...action.delegation };\r\n\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nexport default delegation;\r\n","import { Action, ActionTypes, State } from './types';\r\nimport { Reducer } from 'redux';\r\nimport { array, deepClone } from 'redux-immutable-helper';\r\n\r\nconst initialState: State = {\r\n\tprogress: {\r\n\t\tvisible: false,\r\n\t\tmessage: '',\r\n\r\n\t\tisFormDisabled: false,\r\n\t},\r\n\talert: {\r\n\t\tvisible: false,\r\n\t\ttype: 'success',\r\n\t\tmessage: '',\r\n\t},\r\n\tisModalVisible: false,\r\n\tisDrawerVisible: window.innerWidth > 768,\r\n\r\n\t// Attachment\r\n\tallowedFileExtensions: undefined,\r\n\tmaxFileSize: undefined,\r\n\tisSecure: false,\r\n\tattachments: [],\r\n};\r\n\r\nconst service: Reducer = (state = initialState, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.show_progress:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tprogress: {\r\n\t\t\t\t\tvisible: true,\r\n\t\t\t\t\tmessage: action.message!,\r\n\t\t\t\t\tisFormDisabled: action.shouldDisableForm,\r\n\t\t\t\t},\r\n\t\t\t};\r\n\t\tcase ActionTypes.hide_progress:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tprogress: {\r\n\t\t\t\t\t...initialState.progress,\r\n\t\t\t\t\tisFormDisabled: false,\r\n\t\t\t\t},\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.show_alert:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\talert: {\r\n\t\t\t\t\tvisible: true,\r\n\t\t\t\t\ttype: action.alertType,\r\n\t\t\t\t\tmessage: action.message,\r\n\t\t\t\t},\r\n\t\t\t};\r\n\t\tcase ActionTypes.clear_alert:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\talert: initialState.alert,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_is_modal_visible:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tisModalVisible: action.isModalVisible,\r\n\t\t\t};\r\n\t\tcase ActionTypes.toggle_drawer:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tisDrawerVisible: !state.isDrawerVisible,\r\n\t\t\t};\r\n\r\n\t\t// Attachment\r\n\t\tcase ActionTypes.fetch_attachment_settings_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tallowedFileExtensions: action.allowedFileExtensions,\r\n\t\t\t\tmaxFileSize: action.maxFileSize,\r\n\t\t\t};\r\n\t\tcase ActionTypes.toggle_secure:\r\n\t\t\treturn { ...state, isSecure: !state.isSecure };\r\n\t\tcase ActionTypes.add_attachment:\r\n\t\t\tif (!action.multiple) {\r\n\t\t\t\treturn {\r\n\t\t\t\t\t...state,\r\n\t\t\t\t\tattachments: array(state.attachments).replace(0, {\r\n\t\t\t\t\t\tuuid: action.uuid,\r\n\t\t\t\t\t\tfileName: action.name,\r\n\t\t\t\t\t\tisSecure: state.isSecure,\r\n\t\t\t\t\t\tstatus: 'uploading',\r\n\t\t\t\t\t}).toArray(),\r\n\t\t\t\t};\r\n\t\t\t} else {\r\n\t\t\t\treturn {\r\n\t\t\t\t\t...state,\r\n\t\t\t\t\tattachments: array(state.attachments)\r\n\t\t\t\t\t\t.push({\r\n\t\t\t\t\t\t\tuuid: action.uuid,\r\n\t\t\t\t\t\t\tfileName: action.name,\r\n\t\t\t\t\t\t\tisSecure: state.isSecure,\r\n\t\t\t\t\t\t\tstatus: 'uploading',\r\n\t\t\t\t\t\t}).toArray(),\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\tcase ActionTypes.update_attachment_status:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tattachments: array(state.attachments)\r\n\t\t\t\t\t.replace(x => x.uuid === action.uuid, (prevElement) => ({\r\n\t\t\t\t\t\t...prevElement,\r\n\t\t\t\t\t\tstatus: action.status,\r\n\t\t\t\t\t\tserverId: action.serverId,\r\n\t\t\t\t\t})).toArray(),\r\n\t\t\t};\r\n\t\tcase ActionTypes.delete_attachment_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tattachments: array(state.attachments)\r\n\t\t\t\t\t.remove(x => x.uuid === action.uuid).toArray(),\r\n\t\t\t};\r\n\t\tcase ActionTypes.clear_attachments:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tisSecure: false,\r\n\t\t\t\tattachments: [],\r\n\t\t\t};\r\n\r\n\t\tcase 'GENERAL__CLEAR_STATE':\r\n\t\t\treturn initialState;\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nexport default service;\r\n\r\n","import { Reducer } from 'redux';\r\nimport { Action, ActionTypes, State } from './types';\r\n\r\nconst initialState: State = {\r\n\tlogNumber: '',\r\n\tlogs: {\r\n\t\tid: '',\r\n\t\tdate: '',\r\n\t\turl: '',\r\n\t\tmessage: '',\r\n\t},\r\n\tlogCount: -1,\r\n};\r\n\r\nconst logs: Reducer = (state = initialState, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.change_log_number:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tlogNumber: action.logNumber,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_logs_result:\r\n\t\t\tif (action.hasError || action.logs === null) {\r\n\t\t\t\treturn {\r\n\t\t\t\t\t...state,\r\n\t\t\t\t\tlogs: state.logs,\r\n\t\t\t\t\tlogCount: 0,\r\n\t\t\t\t};\r\n\t\t\t} else {\r\n\t\t\t\treturn {\r\n\t\t\t\t\t...state,\r\n\t\t\t\t\tlogs: action.logs,\r\n\t\t\t\t\tlogCount: action.logCount!,\r\n\t\t\t\t};\r\n\t\t\t}\r\n\r\n\t\tcase ActionTypes.clear_logs_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tlogNumber: '',\r\n\t\t\t\tlogs: initialState.logs,\r\n\t\t\t\tlogCount: -1,\r\n\t\t\t};\r\n\r\n\t\tcase 'GENERAL__CLEAR_STATE':\r\n\t\t\treturn initialState;\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\nexport default logs;\r\n","import { Reducer } from 'redux';\r\nimport { Action, ActionTypes, State } from './types';\r\n\r\nconst initialState: State = {\r\n\tpath: '',\r\n\tindexes: [],\r\n\ttotalCount: -1,\r\n};\r\n\r\nconst searchIndex: Reducer = (state = initialState, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.change_search_text:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tpath: action.path,\r\n\t\t\t};\r\n\t\tcase ActionTypes.fetch_default_path_result:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tpath: action.path,\r\n\t\t\t};\r\n\t\tcase ActionTypes.fetch_all_indexes_result:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tindexes: action.indexes,\r\n\t\t\t\ttotalCount: action.totalCount,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_search_index_data:\r\n\t\t\treturn {\r\n\t\t\t\t...initialState,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.reset_search_index_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttotalCount: 0,\r\n\t\t\t\tindexes: [],\r\n\t\t\t};\r\n\r\n\t\tcase 'GENERAL__CLEAR_STATE':\r\n\t\t\treturn initialState;\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\nexport default searchIndex;\r\n","import { Reducer } from 'redux';\r\nimport { Action, ActionTypes, State } from './types';\r\n\r\nconst initialState: State = {\r\n\tsystemActions: [],\r\n\tsearchCriteria: {},\r\n\ttotalCount: -1,\r\n\tpageNumber: 1,\r\n\r\n\trecords: [],\r\n};\r\n\r\nconst auditing: Reducer = (state = initialState, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.select_search_criteria_user:\r\n\t\tcase ActionTypes.select_search_criteria_system_action:\r\n\t\tcase ActionTypes.change_search_criteria_start_date:\r\n\t\tcase ActionTypes.change_search_criteria_end_date:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tsearchCriteria: searchCriteria(state.searchCriteria, action),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_system_actions_result:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tsystemActions: action.systemActions || [],\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_records:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tpageNumber: action.pageNumber,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_records_result:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\trecords: action.records || [],\r\n\r\n\t\t\t\ttotalCount: action.totalCount!,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.remove_all_records_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttotalCount: 0,\r\n\t\t\t\trecords: []\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_auditing_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tsystemActions: [],\r\n\t\t\t\tsearchCriteria: {},\r\n\t\t\t\ttotalCount: -1,\r\n\t\t\t\trecords: [],\r\n\t\t\t};\r\n\r\n\t\tcase 'GENERAL__CLEAR_STATE':\r\n\t\t\treturn initialState;\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nconst searchCriteria: Reducer = (state = initialState.searchCriteria, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.select_search_criteria_user:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tuser: action.user,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.select_search_criteria_system_action:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tsystemAction: action.systemAction,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_search_criteria_start_date:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tstartDate: action.startDate,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_search_criteria_end_date:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tendDate: action.endDate,\r\n\t\t\t};\r\n\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nexport default auditing;\r\n","import { Reducer } from 'redux';\r\nimport { Action, ActionTypes, State, UsersSearchCriteria } from './types';\r\nimport { array } from 'redux-immutable-helper';\r\n\r\nconst initialState: State = {\r\n\tsearchCriteria: {\r\n\t\tname: '',\r\n\t\temail: '',\r\n\t\tisActive: undefined,\r\n\t},\r\n\tusers: [],\r\n\r\n\tdraftUser: {\r\n\t\tid: '',\r\n\t\temail: '',\r\n\t\tuserName: '',\r\n\t\tarName: '',\r\n\t\tenName: '',\r\n\t\tjobDescription: '',\r\n\t\tmobile: '',\r\n\t\tpassword: '',\r\n\t\tconfirmPassword: '',\r\n\t\tactive: false,\r\n\t\torganizations: [],\r\n\t},\r\n\r\n\tnewUser: undefined,\r\n\tsearchNewUserQuery: '',\r\n\r\n\ttotalCount: -1,\r\n\tpageNumber: 1,\r\n\tvisibleDeleteModal: false,\r\n\r\n\tadUser: {\r\n\t\tid: '',\r\n\t\tadUserArName: '',\r\n\t\tadUserEnName: '',\r\n\t\tadUserJobDesc: '',\r\n\t\tadUserMobile: '',\r\n\t\tadUserUserName: '',\r\n\t\tadUserPassword: '',\r\n\t\tadUserOrganizations: [],\r\n\t},\r\n\r\n\tstep1: true,\r\n\tstep2: false,\r\n\tuserPath: [],\r\n\tuserName: '',\r\n\r\n\tbulkUsers: [],\r\n\tbulkUsersOrganizations: [],\r\n\tisStep2: false,\r\n\r\n\tbulkAdUsers: [],\r\n\tmaxBulkUsersCount: 10,\r\n};\r\n\r\nconst users: Reducer = (state = initialState, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.fetch_users:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tpageNumber: action.pageNumber,\r\n\t\t\t};\r\n\t\tcase ActionTypes.fetch_users_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tusers: action.users,\r\n\t\t\t\ttotalCount: action.totalCount,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.add_user_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tbulkUsers: state.bulkUsers.filter(x => action.failedUserEmailList.includes(x.email)),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.update_user_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.delete_user_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.add_user_to_bulk_users_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tbulkUsers: array(state.bulkUsers).push(state.draftUser).toArray(),\r\n\t\t\t\tdraftUser: { ...initialState.draftUser },\r\n\t\t\t};\r\n\t\tcase ActionTypes.edit_bulk_user:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tdraftUser: { ...action.user },\r\n\t\t\t\tbulkUsers: array(state.bulkUsers).remove(state.bulkUsers.indexOf(action.user)).toArray(),\r\n\t\t\t};\r\n\t\tcase ActionTypes.delete_bulk_user:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tbulkUsers: array(state.bulkUsers).remove(state.bulkUsers.indexOf(action.user)).toArray(),\r\n\t\t\t};\r\n\t\tcase ActionTypes.change_bulk_users_organizations:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tbulkUsersOrganizations: action.organizations,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_max_bulk_users_count_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tmaxBulkUsersCount: action.maxBulkUsersCount!,\r\n\t\t\t};\r\n\t\tcase ActionTypes.clear_draft_user:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tdraftUser: {\r\n\t\t\t\t\t...initialState.draftUser,\r\n\t\t\t\t},\r\n\t\t\t\tbulkUsers: [],\r\n\t\t\t\tbulkUsersOrganizations: [],\r\n\t\t\t\tisStep2: initialState.isStep2,\r\n\t\t\t};\r\n\t\tcase ActionTypes.set_step_2:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tisStep2: action.step2,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_ad_user:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tadUser: {\r\n\t\t\t\t\t...initialState.adUser,\r\n\t\t\t\t},\r\n\t\t\t\tbulkAdUsers: [],\r\n\t\t\t\tstep1: initialState.step1,\r\n\t\t\t\tstep2: initialState.step2,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_search_criteria_name:\r\n\t\tcase ActionTypes.change_search_criteria_email:\r\n\t\tcase ActionTypes.change_search_criteria_is_active:\r\n\t\tcase ActionTypes.select_search_criteria_organization:\r\n\t\tcase ActionTypes.clear_search_criteria_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tsearchCriteria: searchCriteria(state.searchCriteria, action),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_user_name:\r\n\t\tcase ActionTypes.change_email:\r\n\t\tcase ActionTypes.change_ar_name:\r\n\t\tcase ActionTypes.change_en_name:\r\n\t\tcase ActionTypes.change_job_description:\r\n\t\tcase ActionTypes.change_mobile_phone:\r\n\t\tcase ActionTypes.change_password:\r\n\t\tcase ActionTypes.change_confirm_password:\r\n\t\tcase ActionTypes.change_organisation:\r\n\t\tcase ActionTypes.fetch_user_orgs:\r\n\t\tcase ActionTypes.fetch_user_orgs_result:\r\n\t\tcase ActionTypes.load_user:\r\n\t\tcase ActionTypes.load_user_result:\r\n\t\tcase ActionTypes.user_active_checkbox_toggle:\r\n\t\tcase ActionTypes.clear_user_criteria:\r\n\t\tcase ActionTypes.set_draft_user:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tdraftUser: draftUser(state.draftUser, action),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.select_new_user:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tnewUser: action.newUser,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_modal_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tnewUser: undefined,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.visible_delete_modal:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tvisibleDeleteModal: action.visible,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_user_path_result:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tuserPath: action.userPath!,\r\n\t\t\t\tuserName: action.userName,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_user_path_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tuserPath: [],\r\n\t\t\t\tuserName: '',\r\n\t\t\t};\r\n\r\n\r\n\t\tcase ActionTypes.go_to_step1:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tstep1: true,\r\n\t\t\t\tstep2: false,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.go_to_step2:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tstep1: false,\r\n\t\t\t\tstep2: true,\r\n\t\t\t};\r\n\t\tcase ActionTypes.fill_ad_user_informations:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tbulkAdUsers: array(state.bulkAdUsers).unshift(action.adUser).toArray(),\r\n\t\t\t\tadUser: {\r\n\t\t\t\t\t...state.adUser,\r\n\t\t\t\t\tadUserUserName: '',\r\n\t\t\t\t},\r\n\t\t\t};\r\n\t\tcase ActionTypes.remove_from_ad_bulk_users_list:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tbulkAdUsers: array(state.bulkAdUsers).remove(state.bulkAdUsers.indexOf(action.adUser)).toArray(),\r\n\t\t\t};\r\n\t\tcase ActionTypes.add_ad_user_result:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tbulkAdUsers: state.bulkAdUsers.filter(x => action.failedUserEmailList.includes(x.adUserUserName)),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_ad_user_user_name:\r\n\t\tcase ActionTypes.change_ad_user_organizations:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tadUser: adUser(state.adUser, action),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_users_data:\r\n\t\t\treturn {\r\n\t\t\t\t...initialState,\r\n\t\t\t};\r\n\r\n\t\tcase 'GENERAL__CLEAR_STATE':\r\n\t\t\treturn initialState;\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nconst searchCriteria: Reducer = (state = initialState.searchCriteria, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.change_search_criteria_name:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tname: action.name,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_search_criteria_email:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\temail: action.email,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_search_criteria_is_active:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tisActive: action.isActive,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.select_search_criteria_organization:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\torganization: action.organization,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_search_criteria_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tname: '',\r\n\t\t\t\temail: '',\r\n\t\t\t\tisActive: undefined,\r\n\t\t\t\torganization: undefined,\r\n\t\t\t};\r\n\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nconst draftUser: Reducer = (state = initialState.draftUser, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.change_user_name:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tuserName: action.userName,\r\n\t\t\t};\r\n\t\tcase ActionTypes.change_email:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\temail: action.eMail,\r\n\t\t\t};\r\n\t\tcase ActionTypes.change_ar_name:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tarName: action.arName,\r\n\t\t\t};\r\n\t\tcase ActionTypes.change_en_name:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tenName: action.enName,\r\n\t\t\t};\r\n\t\tcase ActionTypes.change_job_description:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tjobDescription: action.jobDescription,\r\n\t\t\t};\r\n\t\tcase ActionTypes.change_mobile_phone:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tmobile: action.phone,\r\n\t\t\t};\r\n\t\tcase ActionTypes.change_password:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tpassword: action.password,\r\n\t\t\t};\r\n\t\tcase ActionTypes.change_confirm_password:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tconfirmPassword: action.confirmPassword,\r\n\t\t\t};\r\n\t\tcase ActionTypes.change_organisation:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\torganizations: action.organizations,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_user_orgs_result:\r\n\t\t\tif (action.hasError) return state;\r\n\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\temail: action.user.email,\r\n\t\t\t\tmobile: action.user.mobile,\r\n\t\t\t\tjobDescription: action.user.jobDescription,\r\n\t\t\t\tenName: action.user.enName,\r\n\t\t\t\tarName: action.user.arName,\r\n\t\t\t\tactive: action.user.active,\r\n\t\t\t\tpassword: '',\r\n\t\t\t\tconfirmPassword: '',\r\n\t\t\t\tuserName: '',\r\n\t\t\t\torganizations: action.organizations,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.load_user:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.load_user_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\temail: action.user.email,\r\n\t\t\t\tmobile: action.user.mobile,\r\n\t\t\t\tjobDescription: action.user.jobDescription,\r\n\t\t\t\tenName: action.user.enName,\r\n\t\t\t\tarName: action.user.arName,\r\n\t\t\t\tactive: action.user.active,\r\n\t\t\t\torganizations: action.organizations,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.set_draft_user:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\t...action.user,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.user_active_checkbox_toggle:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tactive: !state.active,\r\n\t\t\t};\r\n\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nconst adUser: Reducer = (state = initialState.adUser, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.change_ad_user_user_name:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tadUserUserName: action.adUserUserName,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_ad_user_organizations:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tadUserOrganizations: action.organizations,\r\n\t\t\t};\r\n\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nexport default users;\r\n","import { Reducer } from 'redux';\r\n\r\nimport { Action, ActionTypes, State } from './types';\r\n\r\nconst initialState: State = {\r\n\tdelegations: [],\r\n\ttotalCount: -1,\r\n};\r\n\r\nconst myDelegation: Reducer = (state = initialState, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.fetch_my_delegations:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_my_delegations_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tdelegations: action.delegations || [],\r\n\t\t\t\ttotalCount: action.totalCount!,\r\n\t\t\t};\r\n\r\n\t\tcase 'GENERAL__CLEAR_STATE':\r\n\t\t\treturn initialState;\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nexport default myDelegation;\r\n","import { Reducer } from 'redux';\r\nimport { Action, ActionTypes, State } from './types';\r\nimport { nodesTreeUpdater } from '../../../config/utilities';\r\nimport { array } from 'redux-immutable-helper';\r\nimport * as ConstantsValues from '../../../config/constant';\r\n\r\nconst initialState: State = {\r\n\torganizations: [],\r\n\ttotalCount: -1,\r\n\r\n\torganizationTree: {\r\n\t\tname: ConstantsValues.TreeRootName,\r\n\t\tloading: false,\r\n\t\tchildren: [],\r\n\t\tcollapsed: false,\r\n\t},\r\n\r\n\tselectedOrganization: undefined,\r\n\r\n\tdraftOrganization: {\r\n\t\tid: '',\r\n\t\tname: '',\r\n\t\tparent: undefined,\r\n\t\tactive: true,\r\n\t},\r\n\r\n\tselectedNodeId: undefined,\r\n\r\n\tcopyFromOrganization: undefined,\r\n\tcopyToOrganization: undefined,\r\n\tisDeactivateOrganizationModalVisible: false,\r\n};\r\n\r\nconst organization: Reducer = (state = initialState, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.change_draft_organization_name:\r\n\t\tcase ActionTypes.change_draft_parent_organization:\r\n\t\tcase ActionTypes.get_parent_path_result:\r\n\t\tcase ActionTypes.set_draft_organization:\r\n\t\tcase ActionTypes.delete_organizations:\r\n\t\tcase ActionTypes.clear_draft_organization:\r\n\t\tcase ActionTypes.load_organization:\r\n\t\tcase ActionTypes.load_organizations_result:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tdraftOrganization: draftOrganization(state.draftOrganization, action),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_organizations_result:\r\n\t\t\tif (action.hasError) {\r\n\t\t\t\treturn state;\r\n\t\t\t}\r\n\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tselectedNodeId: action.parentId,\r\n\t\t\t\torganizations: action.organizations!,\r\n\t\t\t\ttotalCount: action.totalCount!,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_organization_tree:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\torganizationTree: nodesTreeUpdater(\r\n\t\t\t\t\tstate.organizationTree,\r\n\t\t\t\t\t(treeNode) => treeNode.id === action.parentId,\r\n\t\t\t\t\t(prevTreeNode) => ({\r\n\t\t\t\t\t\t...prevTreeNode,\r\n\t\t\t\t\t\tloading: true,\r\n\t\t\t\t\t}),\r\n\t\t\t\t),\r\n\t\t\t};\r\n\t\tcase ActionTypes.fetch_organization_tree_result:\r\n\t\t\tif (action.hasError)\r\n\t\t\t\treturn {\r\n\t\t\t\t\t...state,\r\n\t\t\t\t\torganizationTree: nodesTreeUpdater(\r\n\t\t\t\t\t\tstate.organizationTree,\r\n\t\t\t\t\t\t(treeNode) => treeNode.id === action.parentId,\r\n\t\t\t\t\t\t(prevTreeNode) => ({\r\n\t\t\t\t\t\t\t...prevTreeNode,\r\n\t\t\t\t\t\t\tloading: false,\r\n\t\t\t\t\t\t}),\r\n\t\t\t\t\t),\r\n\t\t\t\t};\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\torganizationTree: nodesTreeUpdater(\r\n\t\t\t\t\tstate.organizationTree,\r\n\t\t\t\t\t(treeNode) => treeNode.id === action.parentId,\r\n\t\t\t\t\t(prevTreeNode) => ({\r\n\t\t\t\t\t\t...prevTreeNode,\r\n\t\t\t\t\t\tloading: false,\r\n\t\t\t\t\t\t// collapsed: false,\r\n\t\t\t\t\t\tchildren: action.organizationTree || [],\r\n\t\t\t\t\t}),\r\n\t\t\t\t),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.manage_toggle_button:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\torganizationTree: nodesTreeUpdater(\r\n\t\t\t\t\tstate.organizationTree,\r\n\t\t\t\t\t(treeNode) => treeNode.id === action.parentId,\r\n\t\t\t\t\t(prevTreeNode) => ({\r\n\t\t\t\t\t\t...prevTreeNode,\r\n\t\t\t\t\t\tcollapsed: !prevTreeNode.collapsed,\r\n\t\t\t\t\t}),\r\n\t\t\t\t),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.search_organization_tree_result:\r\n\t\t\tif (action.hasError)\r\n\t\t\t\treturn {\r\n\t\t\t\t\t...state,\r\n\t\t\t\t\torganizationTree: initialState.organizationTree,\r\n\t\t\t\t};\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\torganizationTree: {\r\n\t\t\t\t\tloading: false,\r\n\t\t\t\t\tcollapsed: false,\r\n\t\t\t\t\tchildren: action.organizationTree || [],\r\n\t\t\t\t\tname: action.parentName,\r\n\t\t\t\t\tid: action.parentId,\r\n\t\t\t\t},\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.add_organizations_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.update_organizations_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.delete_organizations_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.select_organization:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tselectedOrganization: action.organization,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.select_copy_from_organization:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tcopyFromOrganization: action.copyFromOrganization,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.select_copy_to_organization:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tcopyToOrganization: action.copyToOrganization,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.set_deactivate_organization_modal_visible:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tisDeactivateOrganizationModalVisible: action.visible,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.toggle_organization_activation_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\torganizations: array(state.organizations)\r\n\t\t\t\t\t.replace(x => x.id === action.organization.id, prev => ({ ...prev, active: !prev.active }))\r\n\t\t\t\t\t.toArray(),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_organization_data:\r\n\t\t\treturn {\r\n\t\t\t\t...initialState,\r\n\t\t\t};\r\n\r\n\t\tcase 'GENERAL__CLEAR_STATE':\r\n\t\t\treturn initialState;\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nconst draftOrganization: Reducer = (\r\n\tstate = initialState.draftOrganization,\r\n\taction,\r\n) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.change_draft_organization_name:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tname: action.organizationName,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_draft_parent_organization:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tparent: action.parentOrganization,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.load_organizations_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn { ...state, ...action.organization };\r\n\r\n\t\tcase ActionTypes.get_parent_path_result:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tparentPath: action.parentPath,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.set_draft_organization:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\t...action.organization,\r\n\t\t\t};\r\n\t\tcase ActionTypes.clear_draft_organization:\r\n\t\t\treturn {\r\n\t\t\t\t...initialState.draftOrganization,\r\n\t\t\t};\r\n\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nexport default organization;\r\n","import { Reducer } from 'redux';\r\nimport { array } from 'redux-immutable-helper';\r\nimport { Action, ActionTypes, State } from './types';\r\n\r\nconst initialState: State = {\r\n\tdraftPermissionTemplate: {\r\n\t\tid: '',\r\n\t\ttemplateName: '',\r\n\t\tdefaultTemplate: false,\r\n\t\tpermissions: [],\r\n\t},\r\n\r\n\tpermissionTemplates: [],\r\n\tallPermissions: [],\r\n\ttotalCount: -1,\r\n};\r\n\r\nconst permissionTemplates: Reducer = (state = initialState, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.change_draft_permission_templates_name:\r\n\r\n\t\tcase ActionTypes.set_draft_permission_template:\r\n\t\tcase ActionTypes.clear_draft_permission_template:\r\n\t\tcase ActionTypes.change_draft_permission_templates_default_template:\r\n\t\tcase ActionTypes.change_draft_permission_templates_permission:\r\n\t\tcase ActionTypes.load_permission_template:\r\n\t\tcase ActionTypes.load_permission_template_result:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tdraftPermissionTemplate: draftPermissionTemplate(state.draftPermissionTemplate, action),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_permission_templates_data:\r\n\t\t\treturn {\r\n\t\t\t\t...initialState,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_permission_templates_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tpermissionTemplates: action.permissionTemplates!,\r\n\t\t\t\ttotalCount: action.totalCount!,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.get_all_permissions_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tallPermissions: action.permissions!,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.remove_permission_template_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.add_permission_template_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.update_permission_template_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t};\r\n\r\n\t\tcase 'GENERAL__CLEAR_STATE':\r\n\t\t\treturn initialState;\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nconst draftPermissionTemplate: Reducer = (state = initialState.draftPermissionTemplate, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.change_draft_permission_templates_name:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttemplateName: action.name,\r\n\t\t\t};\r\n\t\tcase ActionTypes.clear_draft_permission_template:\r\n\t\t\treturn {\r\n\t\t\t\t...initialState.draftPermissionTemplate,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.load_permission_template_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\t...action.permissionTemplate,\r\n\t\t\t};\r\n\t\tcase ActionTypes.change_draft_permission_templates_permission:\r\n\t\t\tif (state.permissions!.includes(action.id)) {\r\n\t\t\t\treturn {\r\n\t\t\t\t\t...state,\r\n\t\t\t\t\tpermissions: array(state.permissions).remove(element => action.id === element).toArray(),\r\n\t\t\t\t};\r\n\t\t\t} else {\r\n\t\t\t\treturn {\r\n\t\t\t\t\t...state,\r\n\t\t\t\t\tpermissions: array(state.permissions).push(action.id).toArray(),\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\tcase ActionTypes.change_draft_permission_templates_default_template: {\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tdefaultTemplate: !state.defaultTemplate,\r\n\t\t\t};\r\n\t\t}\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nexport default permissionTemplates;\r\n","import { Reducer } from 'redux';\r\nimport { Action, ActionTypes, State } from './types';\r\n\r\nconst initialState: State = {\r\n\tselectedUser: undefined,\r\n\tvisibleLoginAsModal: false,\r\n};\r\n\r\nconst loginAs: Reducer = (state = initialState, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.select_user:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tselectedUser: action.user,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_login_as_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tselectedUser: undefined,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.visible_login_as_modal:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tvisibleLoginAsModal: action.visible,\r\n\t\t\t};\r\n\r\n\t\tcase 'GENERAL__CLEAR_STATE':\r\n\t\t\treturn initialState;\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nexport default loginAs;\r\n","import { Reducer } from 'redux';\r\nimport { array } from 'redux-immutable-helper';\r\nimport { Action, ActionTypes, State } from './types';\r\n\r\nconst initialState: State = {\r\n\tpermissionCategories: [],\r\n\tselectedPermissionCategory: undefined,\r\n\r\n\tuserPermissions: [],\r\n\tfilteredUserPermissions: [],\r\n\tselectedUserPermissions: [],\r\n\r\n\ttotalCount: -1,\r\n\r\n\tpermissionTemplates: [],\r\n\tselectedTemplates: [],\r\n\ttotalPermissionTemplateCount: -1,\r\n\r\n\tuser: undefined\r\n};\r\n\r\nconst userPermission: Reducer = (state = initialState, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.fetch_permission_categories_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tpermissionCategories: action.permissionCategories!,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_user_permission_category:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tselectedPermissionCategory: action.permissionCategory,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_user_permissions_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tuserPermissions: action.userPermissions!,\r\n\t\t\t\tfilteredUserPermissions: action.userPermissions!,\r\n\t\t\t\ttotalCount: action.totalCount!,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_current_user_permissions_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tselectedUserPermissions: action.selectedUserPermissions!,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.filter_user_permissions:\r\n\t\t\tif (!action.selectedCategory)\r\n\t\t\t\treturn {\r\n\t\t\t\t\t...state,\r\n\t\t\t\t\tfilteredUserPermissions: state.userPermissions,\r\n\t\t\t\t};\r\n\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tfilteredUserPermissions: state.userPermissions.filter(x => x.permissionCategoryId === action.selectedCategory!.value),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_user_permission:\r\n\t\t\tif (state.selectedUserPermissions!.includes(action.id)) {\r\n\t\t\t\treturn {\r\n\t\t\t\t\t...state,\r\n\t\t\t\t\tselectedUserPermissions: array(state.selectedUserPermissions).remove(element => action.id === element).toArray(),\r\n\t\t\t\t};\r\n\t\t\t} else {\r\n\t\t\t\treturn {\r\n\t\t\t\t\t...state,\r\n\t\t\t\t\tselectedUserPermissions: array(state.selectedUserPermissions).push(action.id).toArray(),\r\n\t\t\t\t};\r\n\t\t\t}\r\n\r\n\t\tcase ActionTypes.clear_user_permissions:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tselectedUserPermissions: [],\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_permission_templates_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tpermissionTemplates: action.permissionTemplates!,\r\n\t\t\t\ttotalCount: action.totalCount!,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_user_permission_template:\r\n\t\t\tif (state.selectedTemplates!.includes(action.id)) {\r\n\t\t\t\treturn {\r\n\t\t\t\t\t...state,\r\n\t\t\t\t\tselectedTemplates: array(state.selectedTemplates).remove(element => action.id === element).toArray(),\r\n\t\t\t\t};\r\n\t\t\t} else {\r\n\t\t\t\treturn {\r\n\t\t\t\t\t...state,\r\n\t\t\t\t\t...state,\r\n\t\t\t\t\tselectedTemplates: array(state.selectedTemplates).push(action.id).toArray(),\r\n\t\t\t\t};\r\n\t\t\t}\r\n\r\n\t\tcase ActionTypes.fetch_user_permission_templates_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tselectedTemplates: action.selectedUserPermissionTemplates!,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.load_user_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tuser: action.user!,\r\n\t\t\t};\r\n\r\n\t\tcase 'GENERAL__CLEAR_STATE':\r\n\t\t\treturn initialState;\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nexport default userPermission;\r\n","import moment from 'moment';\r\nimport { Reducer } from 'redux';\r\nimport { Action, ActionTypes, State } from './types';\r\n\r\nconst initialState: State = {\r\n\ttaskTypes: [],\r\n\tprocedures: [],\r\n\tpriorities: [],\r\n\r\n\ttitle: '',\r\n\tisSecret: false,\r\n\tdescription: '',\r\n\tstartDate: new Date(),\r\n\tendDate: undefined,\r\n\tnote: '',\r\n\r\n\thasParentTask: false,\r\n\tparentTaskNo: '',\r\n\tparentTask: undefined,\r\n\r\n\tselectedTaskType: undefined,\r\n\tselectedProcedure: undefined,\r\n\tselectedPriority: undefined,\r\n\r\n\ttoUsers: [],\r\n\tcopyToUsers: [],\r\n};\r\n\r\nconst task: Reducer = (state = initialState, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.fetch_lookup_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttaskTypes: action.taskTypes || [],\r\n\t\t\t\tprocedures: action.procedures || [],\r\n\t\t\t\tpriorities: action.priorities || [],\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_title:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttitle: action.taskTitle,\r\n\t\t\t};\r\n\t\tcase ActionTypes.toggle_secret:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tisSecret: !state.isSecret,\r\n\t\t\t};\r\n\t\tcase ActionTypes.change_description:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tdescription: action.taskDescription,\r\n\t\t\t};\r\n\t\tcase ActionTypes.change_start_date:\r\n\t\t\tif (state.selectedTaskType) {\r\n\t\t\t\treturn {\r\n\t\t\t\t\t...state,\r\n\t\t\t\t\tstartDate: action.startDate,\r\n\t\t\t\t\tendDate: moment(action.startDate).add(state.selectedTaskType.defaultDays, 'days').toDate(),\r\n\t\t\t\t};\r\n\t\t\t}\r\n\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tstartDate: action.startDate,\r\n\t\t\t};\r\n\t\tcase ActionTypes.change_end_date:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tendDate: action.endDate,\r\n\t\t\t};\r\n\t\tcase ActionTypes.change_note:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tnote: action.note,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.toggle_has_parent_task:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\thasParentTask: !state.hasParentTask,\r\n\t\t\t};\r\n\t\tcase ActionTypes.change_parent_task_no:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tparentTaskNo: action.parentTaskNo,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.select_task_type:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tselectedTaskType: action.taskType,\r\n\t\t\t\tendDate: action.taskType && moment(state.startDate).add(action.taskType.defaultDays, 'days').toDate(),\r\n\t\t\t};\r\n\t\tcase ActionTypes.select_priority:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tselectedPriority: action.priority,\r\n\t\t\t};\r\n\t\tcase ActionTypes.select_procedure:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tselectedProcedure: action.procedure,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.select_to_users:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttoUsers: action.toUsers,\r\n\t\t\t};\r\n\t\tcase ActionTypes.select_copy_to_users:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tcopyToUsers: action.copyToUsers,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_parent_task:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tparentTaskNo: '',\r\n\t\t\t\tparentTask: undefined,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_add_task_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttitle: '',\r\n\t\t\t\tisSecret: false,\r\n\t\t\t\tdescription: '',\r\n\t\t\t\tstartDate: new Date(),\r\n\t\t\t\tendDate: undefined,\r\n\t\t\t\tnote: '',\r\n\r\n\t\t\t\thasParentTask: false,\r\n\t\t\t\tparentTaskNo: '',\r\n\t\t\t\tparentTask: undefined,\r\n\r\n\t\t\t\tselectedTaskType: undefined,\r\n\t\t\t\tselectedProcedure: undefined,\r\n\t\t\t\tselectedPriority: undefined,\r\n\r\n\t\t\t\ttoUsers: [],\r\n\t\t\t\tcopyToUsers: [],\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.get_task_by_task_no_result:\r\n\t\t\tif (action.hasError)\r\n\t\t\t\treturn state;\r\n\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tparentTask: action.parentTask,\r\n\t\t\t};\r\n\r\n\t\tcase 'GENERAL__CLEAR_STATE':\r\n\t\t\treturn initialState;\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nexport default task;\r\n","import { Reducer } from 'redux';\r\nimport { array } from 'redux-immutable-helper';\r\nimport { Action, ActionTypes, State } from './types';\r\n\r\nconst initialState: State = {\r\n\tselectedAttachments: [],\r\n};\r\n\r\nconst imageUploader: Reducer = (state = initialState, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.upload_files:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tselectedAttachments: array(state.selectedAttachments)\r\n\t\t\t\t\t.push(...action.files.map(x => ({\r\n\t\t\t\t\t\t// @ts-ignore\r\n\t\t\t\t\t\tuuid: x.uuid,\r\n\t\t\t\t\t\tfileName: x.name,\r\n\t\t\t\t\t\tstatus: 'uploading' as ('uploading' | 'uploaded' | 'failed'),\r\n\t\t\t\t\t}))).toArray(),\r\n\t\t\t};\r\n\t\tcase ActionTypes.upload_file_result:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tselectedAttachments: array(state.selectedAttachments)\r\n\t\t\t\t\t.replace(x => x.uuid === action.uuid, (prevElement) => ({\r\n\t\t\t\t\t\t...prevElement,\r\n\t\t\t\t\t\tstatus: action.hasError ? 'failed' : 'uploaded',\r\n\t\t\t\t\t\tserverId: action.serverId,\r\n\t\t\t\t\t})).toArray(),\r\n\t\t\t};\r\n\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nexport default imageUploader;\r\n","import { Reducer } from 'redux';\r\n\r\nimport { Action, ActionTypes, InboxMode, State } from './type';\r\n\r\nconst initialState: State = {\r\n\tinboxMode: undefined,\r\n\ttaskHeaders: [],\r\n\ttotalCount: -1,\r\n\tpageNumber: 1,\r\n\tccUsers: [],\r\n\tattachmentFiles: [],\r\n\thistoryItems: [],\r\n\r\n\ttaskCount: {\r\n\t\tcc: 0,\r\n\t\tdone: 0,\r\n\t\tinbox: 0,\r\n\t\tlate: 0,\r\n\t\tpending: 0,\r\n\t\trejected: 0,\r\n\t\tretrieved: 0,\r\n\t\tassigned: 0,\r\n\t\tfinish: 0,\r\n\t\tchangeDateNew: 0,\r\n\t\tdefaultInbox: 0,\r\n\t},\r\n\tnotificationCount: 0,\r\n\r\n\tstartTask: {\r\n\t\tnotes: '',\r\n\t},\r\n\r\n\tfinishTask: {\r\n\t\tworkHours: '',\r\n\t\tnotes: '',\r\n\t},\r\n\r\n\tcompletionRateTask: {\r\n\t\tcompletionRate: '',\r\n\t},\r\n\r\n\trejectTask: {\r\n\t\trejectionReason: '',\r\n\t},\r\n\r\n\tretrieveTask: {\r\n\t\tnotes: '',\r\n\t\tcanRetrieve: undefined,\r\n\t},\r\n\r\n\treassignTask: {\r\n\t\tuser: undefined,\r\n\t\tnotes: '',\r\n\t},\r\n\r\n\tpostponeTask: {\r\n\t\tpostponeReason: '',\r\n\t\tcanPostpone: undefined,\r\n\t},\r\n\r\n\tforwardCCTask: {\r\n\t\tusers: [],\r\n\t\tnotes: '',\r\n\t\tcanForward: undefined,\r\n\t},\r\n\r\n\tkillTask: {\r\n\t\tstep1: true,\r\n\t\tstep2: false,\r\n\t\tvisibleKillTaskModal: false,\r\n\t\ttaskNo: '',\r\n\t\tkillNote: '',\r\n\t\ttask: undefined,\r\n\t},\r\n\r\n\tconfirmTask: {\r\n\t\tnotes: '',\r\n\t\trating: undefined,\r\n\t\tcanConfirm: undefined,\r\n\t},\r\n};\r\n\r\nconst tasks: Reducer = (state = initialState, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.start_task_change_notes:\r\n\t\tcase ActionTypes.start_task_clear_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tstartTask: startTask(state.startTask, action),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.finish_task_change_work_hours:\r\n\t\tcase ActionTypes.finish_task_change_notes:\r\n\t\tcase ActionTypes.finish_task_clear_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tfinishTask: finishTask(state.finishTask, action),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.completion_rate_task_change_completion_rate:\r\n\t\tcase ActionTypes.completion_rate_task_completion_rate_task:\r\n\t\tcase ActionTypes.completion_rate_task_clear_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tcompletionRateTask: completionRateTask(state.completionRateTask, action),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.reject_task_clear_data:\r\n\t\tcase ActionTypes.reject_task_change_rejection_reason:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\trejectTask: rejectTask(state.rejectTask, action),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.reassign_task_select_user:\r\n\t\tcase ActionTypes.reassign_task_change_notes:\r\n\t\tcase ActionTypes.reassign_task_clear_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\treassignTask: reassignTask(state.reassignTask, action),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.forward_cc_task_can_forward_cc_task_result:\r\n\t\tcase ActionTypes.forward_cc_task_select_user:\r\n\t\tcase ActionTypes.forward_cc_task_change_notes:\r\n\t\tcase ActionTypes.forward_cc_task_clear_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tforwardCCTask: forwardCCTask(state.forwardCCTask, action),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.postpone_task_can_postpone_task_result:\r\n\t\tcase ActionTypes.postpone_task_change_postpone_reason:\r\n\t\tcase ActionTypes.postpone_task_clear_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tpostponeTask: postponeTask(state.postponeTask, action),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.retrieve_task_can_retrieve_task_result:\r\n\t\tcase ActionTypes.retrieve_task_change_notes:\r\n\t\tcase ActionTypes.retrieve_task_clear_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tretrieveTask: retrieveTask(state.retrieveTask, action),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.kill_task_change_task_no:\r\n\t\tcase ActionTypes.kill_task_change_kill_notes:\r\n\t\tcase ActionTypes.kill_task_go_to_step1:\r\n\t\tcase ActionTypes.kill_task_get_task_by_task_no_result:\r\n\t\tcase ActionTypes.kill_task_visible_kill_task_modal:\r\n\t\tcase ActionTypes.kill_task_clear_kill_task_modal:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tkillTask: killTask(state.killTask, action),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.confirm_task_can_confirm_task_result:\r\n\t\tcase ActionTypes.confirm_task_change_note:\r\n\t\tcase ActionTypes.confirm_task_change_rating:\r\n\t\tcase ActionTypes.confirm_task_clear_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tconfirmTask: confirmTask(state.confirmTask, action),\r\n\t\t\t};\r\n\r\n\r\n\t\tcase ActionTypes.change_inbox_mode:\r\n\t\t\tconst currentMode = state.inboxMode;\r\n\t\t\tlet newMode = action.inboxMode;\r\n\r\n\t\t\tif (newMode === undefined)\r\n\t\t\t\tnewMode = currentMode === undefined\r\n\t\t\t\t\t? InboxMode.defaultInbox\r\n\t\t\t\t\t: currentMode;\r\n\r\n\t\t\tif (currentMode === newMode)\r\n\t\t\t\treturn state;\r\n\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tinboxMode: newMode,\r\n\t\t\t\ttaskHeaders: [],\r\n\t\t\t\ttotalCount: -1,\r\n\t\t\t\tpageNumber: 1,\r\n\t\t\t};\r\n\t\tcase ActionTypes.clear_tasks_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tinboxMode: undefined,\r\n\t\t\t\ttaskHeaders: [],\r\n\t\t\t\ttotalCount: -1,\r\n\t\t\t\tpageNumber: 1,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_tasks:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tpageNumber: action.pageNumber,\r\n\t\t\t};\r\n\t\tcase ActionTypes.refetch_tasks:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttaskHeaders: [],\r\n\t\t\t\ttotalCount: -1,\r\n\t\t\t\tpageNumber: action.pageNumber,\r\n\t\t\t};\r\n\t\tcase ActionTypes.fetch_tasks_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttaskHeaders: action.tasks!,\r\n\t\t\t\ttotalCount: action.totalCount!,\r\n\t\t\t};\r\n\t\tcase ActionTypes.fetch_task_count_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttaskCount: action.taskCount,\r\n\t\t\t\tnotificationCount: action.notificationCount,\r\n\t\t\t};\r\n\r\n\t\tcase 'GENERAL__CLEAR_STATE':\r\n\t\t\treturn initialState;\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nconst startTask: Reducer = (state = initialState.startTask, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.start_task_change_notes:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tnotes: action.notes,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.start_task_clear_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tnotes: '',\r\n\t\t\t};\r\n\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nconst finishTask: Reducer = (state = initialState.finishTask, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.finish_task_change_work_hours:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tworkHours: action.workHours,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.finish_task_change_notes:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tnotes: action.notes,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.finish_task_clear_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tworkHours: '',\r\n\t\t\t\tnotes: '',\r\n\t\t\t};\r\n\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nconst completionRateTask: Reducer = (state = initialState.completionRateTask, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.completion_rate_task_change_completion_rate:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tcompletionRate: action.completionRate,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.completion_rate_task_clear_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tcompletionRate: '',\r\n\t\t\t};\r\n\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nconst rejectTask: Reducer = (state = initialState.rejectTask, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.reject_task_change_rejection_reason:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\trejectionReason: action.rejectionReason,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.reject_task_clear_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\trejectionReason: '',\r\n\t\t\t};\r\n\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nconst postponeTask: Reducer = (state = initialState.postponeTask, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.postpone_task_can_postpone_task_result:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tcanPostpone: action.canPostpone,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.postpone_task_change_postpone_reason:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tpostponeReason: action.postponeReason,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.postpone_task_clear_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tpostponeReason: '',\r\n\t\t\t};\r\n\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nconst retrieveTask: Reducer = (state = initialState.retrieveTask, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.retrieve_task_can_retrieve_task_result:\r\n\t\t\tif (action.hasError) return state;\r\n\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tcanRetrieve: action.canRetrieve,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.retrieve_task_change_notes:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tnotes: action.notes,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.retrieve_task_clear_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tnotes: '',\r\n\t\t\t};\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nconst killTask: Reducer = (state = initialState.killTask, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.kill_task_visible_kill_task_modal:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tvisibleKillTaskModal: action.isVisible,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.kill_task_change_task_no:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttaskNo: action.taskNo,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.kill_task_change_kill_notes:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tkillNote: action.killNote,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.kill_task_go_to_step1:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tstep1: true,\r\n\t\t\t\tstep2: false,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.kill_task_clear_kill_task_modal:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tkillNote: '',\r\n\t\t\t\ttaskNo: '',\r\n\t\t\t\tstep1: true,\r\n\t\t\t\tstep2: false,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.kill_task_get_task_by_task_no_result:\r\n\t\t\tif (action.hasError) return state;\r\n\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttask: action.task,\r\n\t\t\t\tstep1: false,\r\n\t\t\t\tstep2: true,\r\n\t\t\t};\r\n\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nconst confirmTask: Reducer = (state = initialState.confirmTask, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.confirm_task_can_confirm_task_result:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tcanConfirm: action.canConfirm,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.confirm_task_change_note:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tnotes: action.note,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.confirm_task_change_rating:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\trating: action.rating,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.confirm_task_clear_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tnotes: '',\r\n\t\t\t\trating: undefined,\r\n\t\t\t};\r\n\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nconst reassignTask: Reducer = (state = initialState.reassignTask, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.reassign_task_select_user:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tuser: action.user,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.reassign_task_change_notes:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tnotes: action.notes,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.reassign_task_clear_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tuser: undefined,\r\n\t\t\t\tnotes: '',\r\n\t\t\t};\r\n\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nconst forwardCCTask: Reducer = (state = initialState.forwardCCTask, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.forward_cc_task_can_forward_cc_task_result:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tcanForward: action.canForward,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.forward_cc_task_select_user:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tusers: action.users,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.forward_cc_task_change_notes:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tnotes: action.notes,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.forward_cc_task_clear_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tusers: [],\r\n\t\t\t\tnotes: '',\r\n\t\t\t};\r\n\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nexport default tasks;\r\n","import { Reducer } from 'redux';\r\n\r\nimport { Action, ActionTypes, CedRequestStatus, State } from './types';\r\n\r\nconst initialState: State = {\r\n\tcedRequestStatus: undefined,\r\n\r\n\tcedRequests: [],\r\n\ttotalCount: -1,\r\n\tpageNumber: 1,\r\n\r\n\ttakeActionVisible: false,\r\n\tcedRequest: undefined,\r\n\tdraftCedRequest: {\r\n\t\tnewStatus: undefined,\r\n\t\tnewResponseExtraDays: '',\r\n\t\tnewResponseNotes: '',\r\n\t},\r\n};\r\n\r\nconst cedRequest: Reducer = (state = initialState, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.select_ced_request_new_status:\r\n\t\tcase ActionTypes.change_ced_request_response_extra_days:\r\n\t\tcase ActionTypes.change_ced_request_response_notes:\r\n\t\tcase ActionTypes.update_ced_request:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tdraftCedRequest: draftCedRequest(state.draftCedRequest, action),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_ced_request_detail_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttakeActionVisible: false,\r\n\t\t\t\tdraftCedRequest: draftCedRequest(state.draftCedRequest, action),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_ced_request_status:\r\n\t\t\tconst currentStatus = state.cedRequestStatus;\r\n\t\t\tlet newStatus = action.cedRequestStatus;\r\n\r\n\t\t\tif (newStatus === undefined)\r\n\t\t\t\tnewStatus = currentStatus === undefined\r\n\t\t\t\t\t? CedRequestStatus.new\r\n\t\t\t\t\t: currentStatus;\r\n\r\n\t\t\tif (currentStatus === newStatus)\r\n\t\t\t\treturn state;\r\n\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tcedRequestStatus: newStatus,\r\n\r\n\t\t\t\tcedRequests: [],\r\n\t\t\t\ttotalCount: -1,\r\n\t\t\t\tpageNumber: 1,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_ced_requests_result:\r\n\t\t\tif (action.hasError) return state;\r\n\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tcedRequests: action.cedRequests || [],\r\n\t\t\t\ttotalCount: action.totalCount || 0,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_ced_requests:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tpageNumber: action.pageNumber,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.refetch_ced_requests:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tcedRequests: [],\r\n\t\t\t\ttotalCount: -1,\r\n\t\t\t\tpageNumber: action.pageNumber,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_ced_requests_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tcedRequests: [],\r\n\t\t\t\ttotalCount: -1,\r\n\t\t\t\tcedRequestStatus: undefined,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.load_ced_request_details_result:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tcedRequest: action.cedRequest,\r\n\t\t\t\tdraftCedRequest: {\r\n\t\t\t\t\t...state.draftCedRequest,\r\n\t\t\t\t\tnewResponseExtraDays: action.cedRequest!.requestExtraDays,\r\n\t\t\t\t},\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.update_ced_request_result: {\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\tconst cedRequest = action.cedRequest;\r\n\t\t\tif (!cedRequest) return state;\r\n\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tcedRequest,\r\n\t\t\t\ttakeActionVisible: !state.takeActionVisible,\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\tcase ActionTypes.toggle_take_action_visible:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttakeActionVisible: !state.takeActionVisible,\r\n\t\t\t};\r\n\r\n\t\tcase 'GENERAL__CLEAR_STATE':\r\n\t\t\treturn initialState;\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nconst draftCedRequest: Reducer = (state = initialState.draftCedRequest, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.select_ced_request_new_status:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tnewStatus: action.newStatus,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_ced_request_response_extra_days:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tnewResponseExtraDays: action.newResponseExtraDays,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_ced_request_response_notes:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tnewResponseNotes: action.newResponseNotes,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.update_ced_request:\r\n\t\t\tif (action.hasError) return state;\r\n\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\t...action.cedRequest,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_ced_request_detail_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tnewStatus: undefined,\r\n\t\t\t\tnewResponseExtraDays: '',\r\n\t\t\t\tnewResponseNotes: '',\r\n\t\t\t};\r\n\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\n\r\nexport default cedRequest;\r\n\r\n\r\n","import { Reducer } from 'redux';\r\nimport { Action, ActionTypes, State } from './types';\r\n\r\nconst initialState: State = {\r\n\tpriorities: [],\r\n\ttaskTypes: [],\r\n\r\n\tsearch: {\r\n\t\tsearchQuery: '',\r\n\t},\r\n\r\n\tadvancedSearch: {\r\n\t\ttitle: '',\r\n\r\n\t\tendDateTo: undefined,\r\n\t\tstartDateTo: undefined,\r\n\r\n\t\tendDateFrom: undefined,\r\n\t\tstartDateFrom: undefined,\r\n\r\n\t\tpriority: undefined,\r\n\t\ttaskType: undefined,\r\n\t\tstatus: undefined,\r\n\r\n\t\ttaskLevel: 'all',\r\n\t},\r\n\r\n\tuserTasks: [],\r\n\tpageNumber: 1,\r\n\ttotalCount: -1,\r\n\trequestTime: 0,\r\n};\r\n\r\nconst searchPage: Reducer = (state = initialState, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.clear_search_data:\r\n\t\t\treturn initialState;\r\n\r\n\t\tcase ActionTypes.search_change_search_query:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tsearch: search(state.search, action),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.advanced_search_change_status:\r\n\t\tcase ActionTypes.advanced_search_change_title:\r\n\t\tcase ActionTypes.advanced_search_change_task_level:\r\n\t\tcase ActionTypes.advanced_search_change_start_date_to:\r\n\t\tcase ActionTypes.advanced_search_change_start_date_from:\r\n\t\tcase ActionTypes.advanced_search_change_end_date_to:\r\n\t\tcase ActionTypes.advanced_search_change_end_date_from:\r\n\t\tcase ActionTypes.advanced_search_change_task_type:\r\n\t\tcase ActionTypes.advanced_search_change_priority:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tadvancedSearch: advancedSearch(state.advancedSearch, action),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.advanced_search_clear_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tuserTasks: []!,\r\n\t\t\t\ttotalCount: action.totalCount!,\r\n\t\t\t\trequestTime: action.requestTime!,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.search_tasks:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tpageNumber: action.pageNumber,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.search_tasks_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tuserTasks: action.userTasks!,\r\n\t\t\t\ttotalCount: action.totalCount!,\r\n\t\t\t\trequestTime: action.requestTime!,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.advanced_search_tasks:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tpageNumber: action.pageNumber,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.advanced_search_tasks_result:\r\n\t\t\tif (action.hasError)\r\n\t\t\t\treturn {\r\n\t\t\t\t\t...state,\r\n\t\t\t\t\tuserTasks: action.userTasks!,\r\n\t\t\t\t\ttotalCount: action.totalCount!,\r\n\t\t\t\t\trequestTime: action.requestTime!\r\n\t\t\t\t};\r\n\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tuserTasks: action.userTasks!,\r\n\t\t\t\ttotalCount: action.totalCount!,\r\n\t\t\t\trequestTime: action.requestTime!,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.advanced_search_fetch_look_up_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttaskTypes: action.taskTypes!,\r\n\t\t\t\tpriorities: action.priorities!,\r\n\t\t\t};\r\n\r\n\t\tcase 'GENERAL__CLEAR_STATE':\r\n\t\t\treturn initialState;\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nconst search: Reducer = (state = initialState.search, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.search_change_search_query:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tsearchQuery: action.searchQuery,\r\n\t\t\t};\r\n\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nconst advancedSearch: Reducer = (state = initialState.advancedSearch, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.advanced_search_change_title:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttitle: action.title,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.advanced_search_change_start_date_to:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tstartDateTo: action.startDateTo,\r\n\t\t\t};\r\n\r\n\r\n\t\tcase ActionTypes.advanced_search_change_start_date_from:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tstartDateFrom: action.startDateFrom,\r\n\t\t\t};\r\n\r\n\r\n\t\tcase ActionTypes.advanced_search_change_end_date_to:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tendDateTo: action.endDateTo,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.advanced_search_change_end_date_from:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tendDateFrom: action.endDateFrom,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.advanced_search_change_task_type:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttaskType: action.taskType,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.advanced_search_change_priority:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tpriority: action.priority,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.advanced_search_change_status:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tstatus: action.status,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.advanced_search_change_task_level:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttaskLevel: action.taskLevel,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.advanced_search_clear_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttitle: '',\r\n\t\t\t\tpriority: undefined,\r\n\t\t\t\ttaskType: undefined,\r\n\t\t\t\tendDateFrom: undefined,\r\n\t\t\t\tendDateTo: undefined,\r\n\t\t\t\tstartDateFrom: undefined,\r\n\t\t\t\tstartDateTo: undefined,\r\n\t\t\t\ttaskLevel: 'all',\r\n\t\t\t\tstatus: undefined,\r\n\t\t\t\tpageNumber: 1,\r\n\t\t\t};\r\n\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nexport default searchPage;\r\n","import { Reducer } from 'redux';\r\nimport { Action, ActionTypes, State } from './types';\r\nimport { array } from 'redux-immutable-helper';\r\n\r\nconst initialState: State = {\r\n\tactiveSlide: 'loader',\r\n\tattachmentActiveSlide: 'loader',\r\n\tisTaskDetailsModalVisible: false,\r\n\r\n\tisTaskSecret: true,\r\n\r\n\tuserTask: undefined,\r\n\tccUsers: [],\r\n\tattachmentFiles: [],\r\n\tnotificationsCount: 0,\r\n\thistoryAndCommentsCount: 0,\r\n\r\n\tparentTasks: [],\r\n\r\n\thistoryAndComments: [],\r\n\thasBestAnswer: '',\r\n\tcomment: '',\r\n\r\n\tnotifications: [],\r\n\tpageNumber: 1,\r\n\ttotalCount: -1,\r\n\r\n\t// old\r\n\ttaskHeader: undefined,\r\n\tattachmentFileUrl: undefined,\r\n\r\n\tsecretCode: '',\r\n\r\n\ttoggleCommentTab: false,\r\n\r\n\treDownloadButton: false,\r\n\tsamplePdfArr: [],\r\n};\r\n\r\nconst taskDetails: Reducer = (state = initialState, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.change_active_slide:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tactiveSlide: action.activeSlide,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_attachment_active_slide:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tattachmentActiveSlide: action.attachmentActiveSlide\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.set_attachment_id:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tattachmentId: action.attachmentId\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_is_task_details_modal_visible:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tisTaskDetailsModalVisible: action.isTaskDetailsModalVisible,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_is_task_secret_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttaskHeader: action.taskHeader!,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_task_details_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tuserTask: action.userTask,\r\n\t\t\t\tccUsers: action.ccUsers!,\r\n\t\t\t\tattachmentFiles: action.attachmentFiles!,\r\n\t\t\t\thistoryAndCommentsCount: action.historyAndCommentsCount!,\r\n\t\t\t\tnotificationsCount: action.notificationsCount!,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_parent_task_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tparentTasks: action.parentTasks!,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_task_history_and_comments_result:\r\n\t\t\tif (action.hasError) return state;\r\n\r\n\t\t\tconst historyAndComments = action.historyAndComments!;\r\n\r\n\t\t\tconst bestAnswerId = historyAndComments.find(x => x.isBestAnswer)?.id;\r\n\r\n\t\t\tif (bestAnswerId) {\r\n\t\t\t\treturn {\r\n\t\t\t\t\t...state,\r\n\t\t\t\t\thasBestAnswer: bestAnswerId,\r\n\t\t\t\t\thistoryAndComments: historyAndComments,\r\n\t\t\t\t\thistoryAndCommentsCount: historyAndComments.length,\r\n\t\t\t\t};\r\n\t\t\t}\r\n\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\thistoryAndComments: historyAndComments,\r\n\t\t\t\thistoryAndCommentsCount: historyAndComments.length,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.toggle_order_history_and_comments:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\thistoryAndComments: state.historyAndComments.slice().reverse(),\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_comment:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tcomment: action.comment,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.set_best_answer_result:\r\n\t\t\tif (action.hasError) return state;\r\n\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\thistoryAndComments: array(state.historyAndComments).replace(element => element.id === action.taskId, prevElement => ({\r\n\t\t\t\t\t...prevElement,\r\n\t\t\t\t\tisBestAnswer: !prevElement.isBestAnswer,\r\n\t\t\t\t})).toArray(),\r\n\t\t\t\thasBestAnswer: !action.isBestAnswer ? '' : action.taskId,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_comment_view_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tcomment: '',\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_task_notifications:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tpageNumber: action.pageNumber,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_task_notifications_result:\r\n\t\t\tif (action.hasError) return state;\r\n\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tnotifications: action.notifications!,\r\n\t\t\t\ttotalCount: action.totalCount!,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.export_task_pdf_result:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tsamplePdfArr: action.samplePdfArr,\r\n\t\t\t\treDownloadButton: true,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_export_pdf_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tsamplePdfArr: [],\r\n\t\t\t\treDownloadButton: false,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_detail_task:\r\n\t\t\treturn {\r\n\t\t\t\t...initialState,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_view_attachment_modal:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tattachmentActiveSlide: 'loader',\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_attachment_file:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tattachmentFileUrl: undefined,\r\n\t\t\t\tsecretCode: '',\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_is_attachment_secret_result:\r\n\t\t\tif (action.hasError) return state;\r\n\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.get_attachment_url_result:\r\n\t\t\tif (action.hasError) {\r\n\t\t\t\treturn {\r\n\t\t\t\t\t...state,\r\n\t\t\t\t\tattachmentFileUrl: action.url,\r\n\t\t\t\t};\r\n\t\t\t}\r\n\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tattachmentFileUrl: action.url,\r\n\t\t\t};\r\n\r\n\t\tcase 'GENERAL__CLEAR_STATE':\r\n\t\t\treturn initialState;\r\n\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nexport default taskDetails;\r\n","import { ActionTypes, State } from './types';\r\n\r\nconst initialState: State = {\r\n\tnotifications: [],\r\n\tlastNotifications: [],\r\n\r\n\ttotalCount: -1,\r\n\tpageNumber: 1,\r\n};\r\n\r\nconst notification = (state = initialState, action: any) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.fetch_notifications:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tpageNumber: action.pageNumber,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_notifications_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tnotifications: action.notifications!,\r\n\t\t\t\ttotalCount: action.totalCount!,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_last_notifications_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tlastNotifications: action.notifications,\r\n\t\t\t};\r\n\r\n\t\tcase 'GENERAL__CLEAR_STATE':\r\n\t\t\treturn initialState;\r\n\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nexport default notification;\r\n","import { Reducer } from 'redux';\r\nimport { Action, ActionTypes, State } from './types';\r\n\r\nconst initialState: State = {\r\n\ttask: undefined,\r\n\ttaskId: undefined,\r\n\r\n\tcedRequests: [],\r\n\ttotalCount: -1,\r\n\r\n\tnotes: '',\r\n\trequestedExtraDays: '',\r\n\tcanSendRequest: false,\r\n\tisThereActiveRequest: false,\r\n};\r\n\r\nconst taskCedRequests: Reducer = (state = initialState, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.change_task:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttask: action.task,\r\n\r\n\t\t\t\ttaskId: undefined,\r\n\t\t\t\tcedRequests: [],\r\n\t\t\t\ttotalCount: -1,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.load_task_result:\r\n\t\t\tif (action.hasError) return state;\r\n\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttask: action.task!,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_task_ced_requests_by_task_id_result:\r\n\t\t\tif (action.hasError) return state;\r\n\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tcedRequests: action.cedRequests!,\r\n\t\t\t\ttotalCount: action.totalCount!,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.get_active_request_result:\r\n\t\t\tif (action.hasError) return state;\r\n\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tisThereActiveRequest: action.isThereActiveRequest!,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_requested_extra_days:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\trequestedExtraDays: action.requestedExtraDays,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_note:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tnotes: action.note,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.can_send_ced_request_result:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tcanSendRequest: action.canSendRequest!,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_add_ced_request_popup:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tnotes: '',\r\n\t\t\t\trequestedExtraDays: '',\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_task_ced_requests:\r\n\t\t\treturn { ...initialState };\r\n\r\n\t\tcase 'GENERAL__CLEAR_STATE':\r\n\t\t\treturn initialState;\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nexport default taskCedRequests;\r\n","import { Reducer } from \"redux\";\r\nimport { array } from \"redux-immutable-helper\";\r\n\r\nimport { nodesTreeUpdater } from \"../../../../config/utilities\";\r\nimport { Action, ActionTypes, State } from \"./types\";\r\nimport * as ConstantsValues from '../../../../config/constant';\r\n\r\nconst initialState: State = {\r\n includeChildren: false,\r\n organizationTree: {\r\n name: ConstantsValues.TreeRootName,\r\n loading: false,\r\n children: [],\r\n collapsed: false,\r\n },\r\n selectedOrganizations: [],\r\n\r\n selectedNodeId: undefined,\r\n\r\n visibleReport: false,\r\n};\r\n\r\nconst mainOrgTasksStatus: Reducer = (\r\n state = initialState,\r\n action\r\n) => {\r\n switch (action.type) {\r\n case ActionTypes.change_to_date:\r\n return {\r\n ...state,\r\n toDate: action.toDate,\r\n };\r\n\r\n case ActionTypes.change_from_date:\r\n return {\r\n ...state,\r\n fromDate: action.fromDate,\r\n };\r\n\r\n case ActionTypes.change_include_children:\r\n return {\r\n ...state,\r\n includeChildren: !state.includeChildren,\r\n };\r\n\r\n case ActionTypes.fetch_organization_tree:\r\n return {\r\n ...state,\r\n organizationTree: nodesTreeUpdater(\r\n state.organizationTree,\r\n (treeNode) => treeNode.id === action.parentId,\r\n (prevTreeNode) => ({\r\n ...prevTreeNode,\r\n loading: true,\r\n })\r\n ),\r\n };\r\n case ActionTypes.fetch_organization_tree_result:\r\n if (action.hasError)\r\n return {\r\n ...state,\r\n organizationTree: nodesTreeUpdater(\r\n state.organizationTree,\r\n (treeNode) => treeNode.id === action.parentId,\r\n (prevTreeNode) => ({\r\n ...prevTreeNode,\r\n loading: false,\r\n })\r\n ),\r\n };\r\n return {\r\n ...state,\r\n organizationTree: nodesTreeUpdater(\r\n state.organizationTree,\r\n (treeNode) => treeNode.id === action.parentId,\r\n (prevTreeNode) => ({\r\n ...prevTreeNode,\r\n loading: false,\r\n // collapsed: false,\r\n children: action.organizationTree || [],\r\n })\r\n ),\r\n };\r\n\r\n case ActionTypes.manage_toggle_button:\r\n return {\r\n ...state,\r\n organizationTree: nodesTreeUpdater(\r\n state.organizationTree,\r\n (treeNode) => treeNode.id === action.parentId,\r\n (prevTreeNode) => ({\r\n ...prevTreeNode,\r\n collapsed: !prevTreeNode.collapsed,\r\n })\r\n ),\r\n };\r\n\r\n case ActionTypes.select_organization:\r\n if (state.selectedOrganizations.includes(action.organizationId))\r\n return {\r\n ...state,\r\n selectedOrganizations: array(state.selectedOrganizations)\r\n .remove((element) => element === action.organizationId)\r\n .toArray(),\r\n };\r\n\r\n return {\r\n ...state,\r\n selectedOrganizations: array(state.selectedOrganizations)\r\n .push(action.organizationId)\r\n .toArray(),\r\n };\r\n\r\n case ActionTypes.reset_search_criteria_data:\r\n return {\r\n ...state,\r\n includeChildren: false,\r\n selectedNodeId: undefined,\r\n selectedOrganizations: [],\r\n visibleReport: false,\r\n };\r\n\r\n case ActionTypes.set_visible_report:\r\n return {\r\n ...state,\r\n visibleReport: action.visibleReport,\r\n };\r\n\r\n default:\r\n return state;\r\n }\r\n};\r\n\r\nexport default mainOrgTasksStatus;\r\n","import { Reducer } from \"redux\";\r\nimport { Action, ActionTypes, State } from \"./types\";\r\nimport { nodesTreeUpdater } from \"../../../../config/utilities\";\r\nimport * as ConstantsValues from '../../../../config/constant';\r\n\r\nconst initialState: State = {\r\n taskTypes: [],\r\n selectedTaskType: undefined,\r\n selectedStatus: undefined,\r\n\r\n includeChildren: false,\r\n organizationTree: {\r\n name: ConstantsValues.TreeRootName,\r\n loading: false,\r\n children: [],\r\n collapsed: false,\r\n },\r\n\r\n selectedNodeId: undefined,\r\n visibleReport: false,\r\n};\r\n\r\nconst taskByOrganizations: Reducer = (\r\n state = initialState,\r\n action\r\n) => {\r\n switch (action.type) {\r\n case ActionTypes.select_task_type:\r\n return {\r\n ...state,\r\n selectedTaskType: action.taskType,\r\n };\r\n\r\n case ActionTypes.select_status:\r\n return {\r\n ...state,\r\n selectedStatus: action.status,\r\n };\r\n\r\n case ActionTypes.change_to_date:\r\n return {\r\n ...state,\r\n toDate: action.toDate,\r\n };\r\n\r\n case ActionTypes.change_from_date:\r\n return {\r\n ...state,\r\n fromDate: action.fromDate,\r\n };\r\n\r\n case ActionTypes.change_include_children:\r\n return {\r\n ...state,\r\n includeChildren: !state.includeChildren,\r\n };\r\n\r\n case ActionTypes.fetch_fetch_task_types_result:\r\n if (action.hasError) return state;\r\n\r\n return {\r\n ...state,\r\n taskTypes: action.taskTypes!,\r\n };\r\n\r\n case ActionTypes.fetch_organization_tree:\r\n return {\r\n ...state,\r\n organizationTree: nodesTreeUpdater(\r\n state.organizationTree,\r\n (treeNode) => treeNode.id === action.parentId,\r\n (prevTreeNode) => ({\r\n ...prevTreeNode,\r\n loading: true,\r\n })\r\n ),\r\n };\r\n case ActionTypes.fetch_organization_tree_result:\r\n if (action.hasError)\r\n return {\r\n ...state,\r\n organizationTree: nodesTreeUpdater(\r\n state.organizationTree,\r\n (treeNode) => treeNode.id === action.parentId,\r\n (prevTreeNode) => ({\r\n ...prevTreeNode,\r\n loading: false,\r\n })\r\n ),\r\n };\r\n return {\r\n ...state,\r\n organizationTree: nodesTreeUpdater(\r\n state.organizationTree,\r\n (treeNode) => treeNode.id === action.parentId,\r\n (prevTreeNode) => ({\r\n ...prevTreeNode,\r\n loading: false,\r\n // collapsed: false,\r\n children: action.organizationTree || [],\r\n })\r\n ),\r\n };\r\n\r\n case ActionTypes.manage_toggle_button:\r\n return {\r\n ...state,\r\n organizationTree: nodesTreeUpdater(\r\n state.organizationTree,\r\n (treeNode) => treeNode.id === action.parentId,\r\n (prevTreeNode) => ({\r\n ...prevTreeNode,\r\n collapsed: !prevTreeNode.collapsed,\r\n })\r\n ),\r\n };\r\n case ActionTypes.select_organization:\r\n return {\r\n ...state,\r\n selectedNodeId: action.organizationId,\r\n };\r\n\r\n case ActionTypes.reset_data:\r\n return {\r\n ...state,\r\n selectedTaskType: undefined,\r\n selectedNodeId: undefined,\r\n includeChildren: false,\r\n toDate: undefined,\r\n fromDate: undefined,\r\n selectedStatus: undefined,\r\n visibleReport: false,\r\n };\r\n\r\n case ActionTypes.set_visible_report:\r\n return {\r\n ...state,\r\n visibleReport: action.visibleReport,\r\n };\r\n\r\n default:\r\n return state;\r\n }\r\n};\r\n\r\nexport default taskByOrganizations;\r\n","import { Reducer } from \"redux\";\r\nimport { array } from \"redux-immutable-helper\";\r\n\r\nimport { nodesTreeUpdater } from \"../../../../config/utilities\";\r\nimport { Action, ActionTypes, State } from \"./types\";\r\nimport * as ConstantsValues from '../../../../config/constant';\r\n\r\nconst initialState: State = {\r\n organizationTree: {\r\n name: ConstantsValues.TreeRootName,\r\n loading: false,\r\n children: [],\r\n collapsed: false,\r\n },\r\n includeChildren: false,\r\n selectedOrganizations: [],\r\n\r\n selectedNodeId: undefined,\r\n\r\n visibleReport: false,\r\n};\r\n\r\nconst getDonePercentageForOrgsDetails: Reducer = (\r\n state = initialState,\r\n action\r\n) => {\r\n switch (action.type) {\r\n case ActionTypes.change_to_date:\r\n return {\r\n ...state,\r\n toDate: action.toDate,\r\n };\r\n\r\n case ActionTypes.change_from_date:\r\n return {\r\n ...state,\r\n fromDate: action.fromDate,\r\n };\r\n\r\n case ActionTypes.change_include_children:\r\n return {\r\n ...state,\r\n includeChildren: !state.includeChildren,\r\n };\r\n\r\n case ActionTypes.fetch_organization_tree:\r\n return {\r\n ...state,\r\n organizationTree: nodesTreeUpdater(\r\n state.organizationTree,\r\n (treeNode) => treeNode.id === action.parentId,\r\n (prevTreeNode) => ({\r\n ...prevTreeNode,\r\n loading: true,\r\n })\r\n ),\r\n };\r\n case ActionTypes.fetch_organization_tree_result:\r\n if (action.hasError)\r\n return {\r\n ...state,\r\n organizationTree: nodesTreeUpdater(\r\n state.organizationTree,\r\n (treeNode) => treeNode.id === action.parentId,\r\n (prevTreeNode) => ({\r\n ...prevTreeNode,\r\n loading: false,\r\n })\r\n ),\r\n };\r\n return {\r\n ...state,\r\n organizationTree: nodesTreeUpdater(\r\n state.organizationTree,\r\n (treeNode) => treeNode.id === action.parentId,\r\n (prevTreeNode) => ({\r\n ...prevTreeNode,\r\n loading: false,\r\n // collapsed: false,\r\n children: action.organizationTree || [],\r\n })\r\n ),\r\n };\r\n\r\n case ActionTypes.manage_toggle_button:\r\n return {\r\n ...state,\r\n organizationTree: nodesTreeUpdater(\r\n state.organizationTree,\r\n (treeNode) => treeNode.id === action.parentId,\r\n (prevTreeNode) => ({\r\n ...prevTreeNode,\r\n collapsed: !prevTreeNode.collapsed,\r\n })\r\n ),\r\n };\r\n\r\n case ActionTypes.select_organization:\r\n if (state.selectedOrganizations.includes(action.organizationId))\r\n return {\r\n ...state,\r\n selectedOrganizations: array(state.selectedOrganizations)\r\n .remove((element) => element === action.organizationId)\r\n .toArray(),\r\n };\r\n\r\n return {\r\n ...state,\r\n selectedOrganizations: array(state.selectedOrganizations)\r\n .push(action.organizationId)\r\n .toArray(),\r\n };\r\n\r\n case ActionTypes.reset_search_criteria_data:\r\n return {\r\n ...state,\r\n includeChildren: false,\r\n toDate: undefined,\r\n fromDate: undefined,\r\n selectedNodeId: undefined,\r\n selectedOrganizations: [],\r\n visibleReport: false,\r\n };\r\n\r\n case ActionTypes.set_visible_report:\r\n return {\r\n ...state,\r\n visibleReport: action.visibleReport,\r\n };\r\n\r\n default:\r\n return state;\r\n }\r\n};\r\n\r\nexport default getDonePercentageForOrgsDetails;\r\n","import { Reducer } from \"redux\";\r\nimport { Action, ActionTypes, State } from \"./types\";\r\nimport { nodesTreeUpdater } from \"../../../../config/utilities\";\r\nimport * as ConstantsValues from '../../../../config/constant';\r\n\r\nconst initialState: State = {\r\n organizationTree: {\r\n name: ConstantsValues.TreeRootName,\r\n loading: false,\r\n children: [],\r\n collapsed: false,\r\n },\r\n fromDate: undefined,\r\n toDate: undefined,\r\n delayDay: \"\",\r\n\r\n selectedNodeId: undefined,\r\n visibleReport: false,\r\n users: [],\r\n user: undefined,\r\n};\r\n\r\nconst lateTasksForEmployee: Reducer = (\r\n state = initialState,\r\n action\r\n) => {\r\n switch (action.type) {\r\n case ActionTypes.change_delay_day:\r\n return {\r\n ...state,\r\n delayDay: action.delayDay,\r\n };\r\n\r\n case ActionTypes.change_to_date:\r\n return {\r\n ...state,\r\n toDate: action.toDate,\r\n };\r\n\r\n case ActionTypes.change_from_date:\r\n return {\r\n ...state,\r\n fromDate: action.fromDate,\r\n };\r\n\r\n case ActionTypes.select_user:\r\n return {\r\n ...state,\r\n user: action.selectedUser,\r\n };\r\n\r\n case ActionTypes.fetch_organization_tree:\r\n return {\r\n ...state,\r\n organizationTree: nodesTreeUpdater(\r\n state.organizationTree,\r\n (treeNode) => treeNode.id === action.parentId,\r\n (prevTreeNode) => ({\r\n ...prevTreeNode,\r\n loading: true,\r\n })\r\n ),\r\n };\r\n case ActionTypes.fetch_organization_tree_result:\r\n if (action.hasError)\r\n return {\r\n ...state,\r\n organizationTree: nodesTreeUpdater(\r\n state.organizationTree,\r\n (treeNode) => treeNode.id === action.parentId,\r\n (prevTreeNode) => ({\r\n ...prevTreeNode,\r\n loading: false,\r\n })\r\n ),\r\n };\r\n return {\r\n ...state,\r\n organizationTree: nodesTreeUpdater(\r\n state.organizationTree,\r\n (treeNode) => treeNode.id === action.parentId,\r\n (prevTreeNode) => ({\r\n ...prevTreeNode,\r\n loading: false,\r\n // collapsed: false,\r\n children: action.organizationTree || [],\r\n })\r\n ),\r\n };\r\n\r\n case ActionTypes.manage_toggle_button:\r\n return {\r\n ...state,\r\n organizationTree: nodesTreeUpdater(\r\n state.organizationTree,\r\n (treeNode) => treeNode.id === action.parentId,\r\n (prevTreeNode) => ({\r\n ...prevTreeNode,\r\n collapsed: !prevTreeNode.collapsed,\r\n })\r\n ),\r\n };\r\n case ActionTypes.select_organization:\r\n return {\r\n ...state,\r\n selectedNodeId: action.organizationId,\r\n user: undefined,\r\n };\r\n\r\n case ActionTypes.reset_data:\r\n return {\r\n ...state,\r\n delayDay: \"\",\r\n user: undefined,\r\n visibleReport: false,\r\n toDate: undefined,\r\n fromDate: undefined,\r\n selectedNodeId: undefined,\r\n includeChildren: false,\r\n };\r\n\r\n case ActionTypes.fetch_users_with_org_id_result:\r\n if (action.hasError) return state;\r\n\r\n return {\r\n ...state,\r\n users: action.users,\r\n };\r\n\r\n case ActionTypes.set_visible_report:\r\n return {\r\n ...state,\r\n visibleReport: action.visibleReport,\r\n };\r\n\r\n default:\r\n return state;\r\n }\r\n};\r\n\r\nexport default lateTasksForEmployee;\r\n","import { Reducer } from \"redux\";\r\nimport { Action, ActionTypes, State } from \"./types\";\r\nimport { nodesTreeUpdater } from \"../../../../config/utilities\";\r\nimport * as ConstantsValues from '../../../../config/constant';\r\n\r\nconst initialState: State = {\r\n includeChildren: false,\r\n organizationTree: {\r\n name: ConstantsValues.TreeRootName,\r\n loading: false,\r\n children: [],\r\n collapsed: false,\r\n },\r\n fromDate: undefined,\r\n toDate: undefined,\r\n delayDay: \"\",\r\n\r\n selectedNodeId: undefined,\r\n visibleReport: false,\r\n};\r\n\r\nconst lateTasksForOrganization: Reducer = (\r\n state = initialState,\r\n action\r\n) => {\r\n switch (action.type) {\r\n case ActionTypes.change_delay_day:\r\n return {\r\n ...state,\r\n delayDay: action.delayDay,\r\n };\r\n\r\n case ActionTypes.change_to_date:\r\n return {\r\n ...state,\r\n toDate: action.toDate,\r\n };\r\n\r\n case ActionTypes.change_from_date:\r\n return {\r\n ...state,\r\n fromDate: action.fromDate,\r\n };\r\n\r\n case ActionTypes.change_include_children:\r\n return {\r\n ...state,\r\n includeChildren: !state.includeChildren,\r\n };\r\n\r\n case ActionTypes.fetch_organization_tree:\r\n return {\r\n ...state,\r\n organizationTree: nodesTreeUpdater(\r\n state.organizationTree,\r\n (treeNode) => treeNode.id === action.parentId,\r\n (prevTreeNode) => ({\r\n ...prevTreeNode,\r\n loading: true,\r\n })\r\n ),\r\n };\r\n case ActionTypes.fetch_organization_tree_result:\r\n if (action.hasError)\r\n return {\r\n ...state,\r\n organizationTree: nodesTreeUpdater(\r\n state.organizationTree,\r\n (treeNode) => treeNode.id === action.parentId,\r\n (prevTreeNode) => ({\r\n ...prevTreeNode,\r\n loading: false,\r\n })\r\n ),\r\n };\r\n return {\r\n ...state,\r\n organizationTree: nodesTreeUpdater(\r\n state.organizationTree,\r\n (treeNode) => treeNode.id === action.parentId,\r\n (prevTreeNode) => ({\r\n ...prevTreeNode,\r\n loading: false,\r\n // collapsed: false,\r\n children: action.organizationTree || [],\r\n })\r\n ),\r\n };\r\n\r\n case ActionTypes.manage_toggle_button:\r\n return {\r\n ...state,\r\n organizationTree: nodesTreeUpdater(\r\n state.organizationTree,\r\n (treeNode) => treeNode.id === action.parentId,\r\n (prevTreeNode) => ({\r\n ...prevTreeNode,\r\n collapsed: !prevTreeNode.collapsed,\r\n })\r\n ),\r\n };\r\n case ActionTypes.select_organization:\r\n return {\r\n ...state,\r\n selectedNodeId: action.organizationId,\r\n };\r\n case ActionTypes.reset_data:\r\n return {\r\n ...state,\r\n fromDate: undefined,\r\n toDate: undefined,\r\n visibleReport: false,\r\n delayDay: \"\",\r\n selectedNodeId: undefined,\r\n includeChildren: false,\r\n };\r\n\r\n case ActionTypes.set_visible_report:\r\n return {\r\n ...state,\r\n visibleReport: action.visibleReport,\r\n };\r\n\r\n default:\r\n return state;\r\n }\r\n};\r\n\r\nexport default lateTasksForOrganization;\r\n","import { Reducer } from \"redux\";\r\nimport { Action, ActionTypes, State } from \"./types\";\r\nimport { nodesTreeUpdater } from \"../../../../config/utilities\";\r\nimport * as ConstantsValues from '../../../../config/constant';\r\n\r\nconst initialState: State = {\r\n includeChildren: false,\r\n organizationTree: {\r\n name: ConstantsValues.TreeRootName,\r\n loading: false,\r\n children: [],\r\n collapsed: false,\r\n },\r\n fromDate: undefined,\r\n toDate: undefined,\r\n\r\n selectedNodeId: undefined,\r\n visibleReport: false,\r\n};\r\n\r\nconst lateTasksForOrganization: Reducer = (\r\n state = initialState,\r\n action\r\n) => {\r\n switch (action.type) {\r\n case ActionTypes.change_to_date:\r\n return {\r\n ...state,\r\n toDate: action.toDate,\r\n };\r\n\r\n case ActionTypes.change_from_date:\r\n return {\r\n ...state,\r\n fromDate: action.fromDate,\r\n };\r\n\r\n case ActionTypes.change_include_children:\r\n return {\r\n ...state,\r\n includeChildren: !state.includeChildren,\r\n };\r\n\r\n case ActionTypes.fetch_organization_tree:\r\n return {\r\n ...state,\r\n organizationTree: nodesTreeUpdater(\r\n state.organizationTree,\r\n (treeNode) => treeNode.id === action.parentId,\r\n (prevTreeNode) => ({\r\n ...prevTreeNode,\r\n loading: true,\r\n })\r\n ),\r\n };\r\n case ActionTypes.fetch_organization_tree_result:\r\n if (action.hasError)\r\n return {\r\n ...state,\r\n organizationTree: nodesTreeUpdater(\r\n state.organizationTree,\r\n (treeNode) => treeNode.id === action.parentId,\r\n (prevTreeNode) => ({\r\n ...prevTreeNode,\r\n loading: false,\r\n })\r\n ),\r\n };\r\n return {\r\n ...state,\r\n organizationTree: nodesTreeUpdater(\r\n state.organizationTree,\r\n (treeNode) => treeNode.id === action.parentId,\r\n (prevTreeNode) => ({\r\n ...prevTreeNode,\r\n loading: false,\r\n // collapsed: false,\r\n children: action.organizationTree || [],\r\n })\r\n ),\r\n };\r\n\r\n case ActionTypes.manage_toggle_button:\r\n return {\r\n ...state,\r\n organizationTree: nodesTreeUpdater(\r\n state.organizationTree,\r\n (treeNode) => treeNode.id === action.parentId,\r\n (prevTreeNode) => ({\r\n ...prevTreeNode,\r\n collapsed: !prevTreeNode.collapsed,\r\n })\r\n ),\r\n };\r\n case ActionTypes.select_organization:\r\n return {\r\n ...state,\r\n selectedNodeId: action.organizationId,\r\n };\r\n case ActionTypes.reset_data:\r\n return {\r\n ...state,\r\n visibleReport: false,\r\n fromDate: undefined,\r\n toDate: undefined,\r\n selectedNodeId: undefined,\r\n includeChildren: false,\r\n };\r\n\r\n case ActionTypes.set_visible_report:\r\n return {\r\n ...state,\r\n visibleReport: action.visibleReport,\r\n };\r\n\r\n default:\r\n return state;\r\n }\r\n};\r\n\r\nexport default lateTasksForOrganization;\r\n","import { Reducer } from \"redux\";\r\nimport { array } from \"redux-immutable-helper\";\r\n\r\nimport { nodesTreeUpdater } from \"../../../../config/utilities\";\r\nimport { Action, ActionTypes, State } from \"./types\";\r\nimport * as ConstantsValues from '../../../../config/constant';\r\n\r\nconst initialState: State = {\r\n organizationTree: {\r\n name: ConstantsValues.TreeRootName,\r\n loading: false,\r\n children: [],\r\n collapsed: false,\r\n },\r\n includeChildren: false,\r\n selectedOrganizations: [],\r\n\r\n selectedNodeId: undefined,\r\n\r\n visibleReport: false,\r\n};\r\n\r\nconst getTaskPercentageForOrgsDetails: Reducer = (\r\n state = initialState,\r\n action\r\n) => {\r\n switch (action.type) {\r\n case ActionTypes.change_to_date:\r\n return {\r\n ...state,\r\n toDate: action.toDate,\r\n };\r\n\r\n case ActionTypes.change_from_date:\r\n return {\r\n ...state,\r\n fromDate: action.fromDate,\r\n };\r\n\r\n case ActionTypes.change_include_children:\r\n return {\r\n ...state,\r\n includeChildren: !state.includeChildren,\r\n };\r\n\r\n case ActionTypes.fetch_organization_tree:\r\n return {\r\n ...state,\r\n organizationTree: nodesTreeUpdater(\r\n state.organizationTree,\r\n (treeNode) => treeNode.id === action.parentId,\r\n (prevTreeNode) => ({\r\n ...prevTreeNode,\r\n loading: true,\r\n })\r\n ),\r\n };\r\n case ActionTypes.fetch_organization_tree_result:\r\n if (action.hasError)\r\n return {\r\n ...state,\r\n organizationTree: nodesTreeUpdater(\r\n state.organizationTree,\r\n (treeNode) => treeNode.id === action.parentId,\r\n (prevTreeNode) => ({\r\n ...prevTreeNode,\r\n loading: false,\r\n })\r\n ),\r\n };\r\n return {\r\n ...state,\r\n organizationTree: nodesTreeUpdater(\r\n state.organizationTree,\r\n (treeNode) => treeNode.id === action.parentId,\r\n (prevTreeNode) => ({\r\n ...prevTreeNode,\r\n loading: false,\r\n // collapsed: false,\r\n children: action.organizationTree || [],\r\n })\r\n ),\r\n };\r\n\r\n case ActionTypes.manage_toggle_button:\r\n return {\r\n ...state,\r\n organizationTree: nodesTreeUpdater(\r\n state.organizationTree,\r\n (treeNode) => treeNode.id === action.parentId,\r\n (prevTreeNode) => ({\r\n ...prevTreeNode,\r\n collapsed: !prevTreeNode.collapsed,\r\n })\r\n ),\r\n };\r\n\r\n case ActionTypes.select_organization:\r\n if (state.selectedOrganizations.includes(action.organizationId))\r\n return {\r\n ...state,\r\n selectedOrganizations: array(state.selectedOrganizations)\r\n .remove((element) => element === action.organizationId)\r\n .toArray(),\r\n };\r\n\r\n return {\r\n ...state,\r\n selectedOrganizations: array(state.selectedOrganizations)\r\n .push(action.organizationId)\r\n .toArray(),\r\n };\r\n\r\n case ActionTypes.reset_search_criteria_data:\r\n return {\r\n ...state,\r\n includeChildren: false,\r\n toDate: undefined,\r\n fromDate: undefined,\r\n selectedNodeId: undefined,\r\n selectedOrganizations: [],\r\n visibleReport: false,\r\n };\r\n\r\n case ActionTypes.set_visible_report:\r\n return {\r\n ...state,\r\n visibleReport: action.visibleReport,\r\n };\r\n\r\n default:\r\n return state;\r\n }\r\n};\r\n\r\nexport default getTaskPercentageForOrgsDetails;\r\n","import { Reducer } from 'redux';\r\nimport { Action, ActionTypes, State } from './types';\r\n\r\nconst initialState: State = {\r\n\treportServerUrl: '',\r\n};\r\n\r\nconst reports: Reducer = (state = initialState, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.get_report_server_uri_result:\r\n\t\t\tif(action.hasError)\r\n\t\t\t\treturn state;\r\n\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\treportServerUrl: action.uri!,\r\n\t\t\t};\r\n\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nexport default reports;\r\n","import { Reducer } from 'redux';\r\n\r\nimport { Action, ActionTypes, EsRequestStatus, State } from './types';\r\n\r\nconst initialState: State = {\r\n\tesRequestStatus: undefined,\r\n\r\n\tesRequests: [],\r\n\ttotalCount: -1,\r\n\tpageNumber: 1,\r\n\r\n\ttakeActionVisible: false,\r\n\tesRequest: undefined,\r\n\tdraftEsRequest: {\r\n\t\tnewStatus: undefined,\r\n\t\tnewResponseExtraDays: '',\r\n\t\tnewResponseNotes: '',\r\n\t},\r\n};\r\n\r\nconst esRequest: Reducer = (state = initialState, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.change_es_request_status:\r\n\t\t\tconst currentStatus = state.esRequestStatus;\r\n\t\t\tlet newStatus = action.esRequestStatus;\r\n\r\n\t\t\tif (newStatus === undefined)\r\n\t\t\t\tnewStatus = currentStatus === undefined\r\n\t\t\t\t\t? EsRequestStatus.new\r\n\t\t\t\t\t: currentStatus;\r\n\r\n\t\t\tif (currentStatus === newStatus)\r\n\t\t\t\treturn state;\r\n\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tesRequestStatus: newStatus,\r\n\r\n\t\t\t\tesRequests: [],\r\n\t\t\t\ttotalCount: -1,\r\n\t\t\t\tpageNumber: 1,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_es_requests_result:\r\n\t\t\tif (action.hasError) return state;\r\n\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tesRequests: action.esRequests || [],\r\n\t\t\t\ttotalCount: action.totalCount || 0,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_es_requests:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tpageNumber: action.pageNumber,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.re_fetch_es_requests:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tesRequests: [],\r\n\t\t\t\ttotalCount: -1,\r\n\t\t\t\tpageNumber: action.pageNumber,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_es_requests_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tesRequests: [],\r\n\t\t\t\ttotalCount: -1,\r\n\t\t\t\tesRequestStatus: undefined,\r\n\t\t\t};\r\n\r\n\t\tcase 'GENERAL__CLEAR_STATE':\r\n\t\t\treturn initialState;\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nexport default esRequest;\r\n\r\n\r\n","import { Reducer } from 'redux';\r\nimport { Action, ActionTypes, State } from './types';\r\n\r\nconst initialState: State = {\r\n\ttask: undefined,\r\n\tnotes: '',\r\n\tesRequestType: 'withTask',\r\n\tsendToUser: undefined,\r\n\ttitle: '',\r\n\ttaskNo: '',\r\n};\r\n\r\nconst task: Reducer = (state = initialState, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.change_es_request_type:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tesRequestType: action.esRequestType,\r\n\t\t\t};\r\n\t\tcase ActionTypes.change_es_request_title:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttitle: action.title,\r\n\t\t\t};\r\n\t\tcase ActionTypes.change_es_request_task_no:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttaskNo: action.taskNo,\r\n\t\t\t};\r\n\t\tcase ActionTypes.change_es_request_notes:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tnotes: action.notes,\r\n\t\t\t};\r\n\t\tcase ActionTypes.change_es_request_send_to_user:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tsendToUser: action.sendToUser,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_es_request_task:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttask: undefined,\r\n\t\t\t\ttaskNo: '',\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.get_es_request_task_result:\r\n\t\t\tif (action.hasError)\r\n\t\t\t\treturn state;\r\n\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\ttask: action.task,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_es_request:\r\n\t\t\treturn initialState;\r\n\r\n\t\tcase 'GENERAL__CLEAR_STATE':\r\n\t\t\treturn initialState;\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nexport default task;\r\n","import { Reducer } from 'redux';\r\nimport { Action, ActionTypes, State } from './types';\r\n\r\nconst initialState: State = {\r\n\tesRequest: undefined,\r\n\tattachmentFile: undefined,\r\n\r\n\tactiveSlide: 'loader',\r\n\tattachmentActiveSlide: 'loader',\r\n\r\n\tcomments: [],\r\n\ttotalCount: -1,\r\n\tnote: '',\r\n};\r\n\r\nconst esRequestDetails: Reducer = (state = initialState, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.fetch_es_request_result:\r\n\t\t\tif (action.hasError) return state;\r\n\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tesRequest: action.esRequest,\r\n\t\t\t\tattachmentFile: action.attachmentFile,\r\n\t\t\t\tsignedFile: action.signedFile,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_active_slide:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tactiveSlide: action.activeSlide,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_attachment_active_slide:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tattachmentActiveSlide: action.attachmentActiveSlide,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.change_note:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tnote: action.note,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.select_es_request_new_status:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tesRequestStatus: action.newStatus,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.fetch_es_request_comments_result:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tcomments: action.comments!,\r\n\t\t\t\ttotalCount: action.totalCount!,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.set_attachment_id:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tattachmentId: action.attachmentId,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.get_attachment_url_result:\r\n\t\t\tif (action.hasError) {\r\n\t\t\t\treturn {\r\n\t\t\t\t\t...state,\r\n\t\t\t\t\tattachmentFileUrl: action.url,\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tattachmentFileUrl: action.url,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_view_attachment_modal:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tattachmentActiveSlide: 'loader',\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_change_request_status_view_data:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tnote: '',\r\n\t\t\t\tesRequestStatus: undefined,\r\n\t\t\t};\r\n\r\n\t\tcase ActionTypes.clear_detail_es_request:\r\n\t\t\treturn {\r\n\t\t\t\t...initialState,\r\n\t\t\t};\r\n\r\n\t\tcase 'GENERAL__CLEAR_STATE':\r\n\t\t\treturn initialState;\r\n\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nexport default esRequestDetails;\r\n\r\n","import { Reducer } from 'redux';\r\nimport { Action, ActionTypes, State } from './types';\r\n\r\nconst initialState: State = {\r\n\tisDirectingFormVisible: false,\r\n\tisPDFViewerVisible: false,\r\n\tfileURL: undefined,\r\n};\r\n\r\nconst directingForm: Reducer = (state = initialState, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.toggle_is_directing_form_visible:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tisDirectingFormVisible: action.visible,\r\n\t\t\t};\r\n\t\tcase ActionTypes.clear_directing_form:\r\n\t\t\treturn {\r\n\t\t\t\t...initialState,\r\n\t\t\t};\r\n\t\tcase ActionTypes.fetch_refferal_form_file_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tfileURL: action.fileURL!,\r\n\t\t\t};\r\n\t\tcase ActionTypes.add_refferal_form_file_result:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t};\r\n\t\tcase ActionTypes.toggel_is_pdf_viewer_visible:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tisPDFViewerVisible: action.visible,\r\n\t\t\t};\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nexport default directingForm;\r\n","import { Reducer } from 'redux';\r\nimport { Action, ActionTypes, State } from './types';\r\n\r\nconst initialState: State = {\r\n\tisModalVisible: false,\r\n\toldPassword: '',\r\n\tnewPassword: '',\r\n\tconfirmPassword: '',\r\n};\r\n\r\nconst changePassword: Reducer = (state = initialState, action) => {\r\n\tswitch (action.type) {\r\n\t\tcase ActionTypes.clear_change_password:\r\n\t\t\treturn {\r\n\t\t\t\t...initialState,\r\n\t\t\t};\r\n\t\tcase ActionTypes.toggle_is_modal_visible:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tisModalVisible: action.visible,\r\n\t\t\t};\r\n\t\tcase ActionTypes.change_old_password:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\toldPassword: action.oldPassword,\r\n\t\t\t};\r\n\t\tcase ActionTypes.change_new_password:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tnewPassword: action.newPassword,\r\n\t\t\t};\r\n\t\tcase ActionTypes.change_password_result:\r\n\t\t\tif (action.hasError) return state;\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t};\r\n\t\tcase ActionTypes.change_confirm_password:\r\n\t\t\treturn {\r\n\t\t\t\t...state,\r\n\t\t\t\tconfirmPassword: action.password,\r\n\t\t\t};\r\n\t\tdefault:\r\n\t\t\treturn state;\r\n\t}\r\n};\r\n\r\nexport default changePassword;","import { combineReducers } from 'redux';\r\n\r\nimport auth from '../processes/Auth/logic/reducer';\r\nimport procedure from '../processes/Procedure/logic/reducer';\r\nimport storage from '../processes/Storage/logic/reducer';\r\nimport taskType from '../processes/TaskType/logic/reducer';\r\nimport priority from '../processes/Priority/logic/reducer';\r\nimport stakholder from '../processes/Stakholders/logic/reducer';\r\nimport delegation from '../processes/Delegation/logic/reducer';\r\nimport service from '../processes/Services/reducer';\r\nimport logs from '../processes/Logs/logic/reducers';\r\nimport searchIndex from '../processes/SearchIndex/logic/reducer';\r\nimport auditing from '../processes/Auditing/logic/reducer';\r\nimport user from '../processes/Users/logic/reducer';\r\nimport myDelegation from '../processes/MyDelegations/logic/reducer';\r\nimport organization from '../processes/Organization/logic/reducer';\r\nimport permissionTemplate from '../processes/PermissionTemplates/logic/reducer';\r\nimport loginAs from '../processes/LoginAs/logic/reducer';\r\nimport userPermission from '../processes/UserPermissions/logic/reducer';\r\nimport addTask from '../processes/AddTask/logic/reducer';\r\nimport imageUploader from '../processes/WebTwain/ImageUploaderLogic/reducers';\r\nimport tasks from '../processes/Tasks/logic/reducer';\r\nimport cedRequest from '../processes/CedRequests/logic/reducer';\r\nimport searchPage from '../processes/Search/logic/reducer';\r\nimport taskDetails from '../processes/TaskDetails/logic/reducers';\r\nimport notification from '../processes/Notification/logic/reducer';\r\nimport taskCedRequests from '../processes/TaskCedRequests/logic/reducer';\r\nimport mainOrgTaskStatus from '../processes/Reports/MainOrgTasksStatus/logic/reducer';\r\nimport taskByOrganizations from '../processes/Reports/TaskByOrganizations/logic/reducer';\r\nimport getDonePercentageForOrgsDetails from '../processes/Reports/GetDonePercentageForOrgsDetails/logic/reducer';\r\nimport lateTasksForEmployee from '../processes/Reports/LateTasksForEmployee/logic/reducers';\r\nimport lateTasksForOrganization from '../processes/Reports/LateTasksForOrg/logic/reducer';\r\nimport getTaskPercentageForEmployeesInOrgDetails from '../processes/Reports/GetTaskPercentageForEmployeesInOrgDetails/logic/reducer';\r\nimport getTaskPercentageForOrgsDetails from '../processes/Reports/GetTaskPercentageForOrgsDetails/logic/reducer';\r\nimport reports from '../processes/Reports/ReportList/logic/reducer';\r\nimport esRequest from '../processes/EsRequests/logic/reducer';\r\nimport addEsRequest from '../processes/AddEsRequest/logic/reducer';\r\nimport esRequestDetails from '../processes/EsRequestDetails/logic/reducer';\r\nimport tasksCart from '../processes/TasksCart/logic/reducer';\r\nimport directingForm from '../processes/DirectingForm/logic/reducers';\r\nimport changePassword from '../processes/changePassword/logic/reducers';\r\n\r\nexport default combineReducers({\r\n\tauth,\r\n\tstorage,\r\n\tprocedure,\r\n\ttaskType,\r\n\tpriority,\r\n\tstakholder,\r\n\tservice,\r\n\tlogs,\r\n\tsearchIndex,\r\n\tauditing,\r\n\tdelegation,\r\n\tuser,\r\n\tmyDelegation,\r\n\torganization,\r\n\tpermissionTemplate,\r\n\tloginAs,\r\n\timageUploader,\r\n\tuserPermission,\r\n\taddTask,\r\n\ttasks,\r\n\tcedRequest,\r\n\tsearchPage,\r\n\ttaskDetails,\r\n\tnotification,\r\n\ttaskCedRequests,\r\n\tmainOrgTaskStatus,\r\n\ttaskByOrganizations,\r\n\tgetDonePercentageForOrgsDetails,\r\n\tlateTasksForEmployee,\r\n\tlateTasksForOrganization,\r\n\tgetTaskPercentageForEmployeesInOrgDetails,\r\n\tgetTaskPercentageForOrgsDetails,\r\n\treports,\r\n\tesRequest,\r\n\taddEsRequest,\r\n\tesRequestDetails,\r\n\ttasksCart,\r\n\tdirectingForm,\r\n\tchangePassword\r\n});\r\n","import axios, { AxiosRequestConfig } from 'axios';\r\nimport { delete_file_url, fetch_attachment_settings_url } from '../../config/urls';\r\n\r\nimport { request } from '../../config/utilities';\r\n\r\nexport const fetchAttachmentSettingsApi = async () => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: fetch_attachment_settings_url,\r\n\t\tmethod: 'GET',\r\n\t};\r\n\tconst { allowedFileExtensions, maxFileSize } = (await request(options)).data;\r\n\treturn {\r\n\t\tallowedFileExtensions,\r\n\t\tmaxFileSize,\r\n\t};\r\n};\r\n\r\nexport const deleteAttachmentApi = async (attachmentServerId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: delete_file_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tattachmentId: attachmentServerId,\r\n\t\t},\r\n\t};\r\n\r\n\tawait axios(options);\r\n};\r\n\r\n\r\n","import { call, put, select, takeLatest } from 'redux-saga/effects';\r\nimport { ActionTypes, Attachment, DeleteAttachmentAction } from './types';\r\nimport { deleteAttachmentApi, fetchAttachmentSettingsApi } from './api';\r\nimport { deleteAttachmentResult, fetchAttachmentSettingsResult, showHttpErrorAlert } from './actions';\r\nimport { AppState } from '../../config/types';\r\n\r\nfunction* fetchAttachmentSettingsSaga() {\r\n\tconst allowedFileExtensions = sessionStorage.getItem('__allowed_file_extensions');\r\n\tconst maxFileSize = sessionStorage.getItem('__max_file_size');\r\n\r\n\tif (allowedFileExtensions !== null && maxFileSize !== null) {\r\n\t\tconst allowedExtensions = (allowedFileExtensions || '').split(',');\r\n\t\tconst maxSize = Number(maxFileSize || '10');\r\n\t\tyield put(fetchAttachmentSettingsResult(false, allowedExtensions, maxSize));\r\n\t\treturn;\r\n\t}\r\n\r\n\ttry {\r\n\t\tconst { allowedFileExtensions, maxFileSize } = yield call(fetchAttachmentSettingsApi);\r\n\t\tsessionStorage.setItem('__allowed_file_extensions', allowedFileExtensions);\r\n\t\tsessionStorage.setItem('__max_file_size', maxFileSize);\r\n\r\n\t\tconst allowedExtensions = (allowedFileExtensions || '').split(',');\r\n\t\tconst maxSize = Number(maxFileSize || '10');\r\n\t\tyield put(fetchAttachmentSettingsResult(false, allowedExtensions, maxSize));\r\n\t} catch (e) {\r\n\t\tyield put(fetchAttachmentSettingsResult(true));\r\n\t}\r\n}\r\n\r\nfunction* deleteAttachmentSaga(action: DeleteAttachmentAction) {\r\n\tconst { uuid } = action;\r\n\r\n\tconst attachments = yield select((state: AppState) => state.service.attachments);\r\n\tconst attachment = attachments.find((x: Attachment) => x.uuid === uuid);\r\n\tconst attachmentId = attachment && attachment.serverId;\r\n\r\n\tif (!attachmentId) {\r\n\t\tyield put(deleteAttachmentResult(false, uuid));\r\n\t\treturn;\r\n\t}\r\n\r\n\ttry {\r\n\t\tyield call(deleteAttachmentApi, attachmentId);\r\n\t\tyield put(deleteAttachmentResult(false, uuid));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(deleteAttachmentResult(true));\r\n\t}\r\n}\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.fetch_attachment_settings, fetchAttachmentSettingsSaga),\r\n\ttakeLatest(ActionTypes.delete_attachment, deleteAttachmentSaga),\r\n];\r\n\r\n","export default [];\r\n","import { Schema } from 'morphism';\r\nimport { Notifications, Profile } from './types';\r\n\r\nexport const profileMap: Schema = {\r\n\tuserId: 'userID',\r\n\tarName: 'arName',\r\n\tphoneNumber: 'mobile',\r\n\tnote: 'notes',\r\n\temail: 'email',\r\n\tsource: 'source',\r\n};\r\n\r\nexport const notificationsMap: Schema = {\r\n\tnotificationTypeId: 'notificationTypeID',\r\n\tnotificationName: 'notificationTypeName',\r\n\temailNotification: 'alertByEmail',\r\n\tsystemNotification: 'alertBySystem',\r\n\tphoneNotification: 'alertByPushNotification',\r\n\tsettingID: 'settingID',\r\n\tuserID: 'user.userID',\r\n};\r\n","import axios, { AxiosRequestConfig } from 'axios';\r\nimport qs from 'qs';\r\n\r\nimport * as urls from '../../../config/urls';\r\nimport { fetch_user_permissions_url } from '../../../config/urls';\r\nimport { PermissionName } from '../../../config/types';\r\nimport { request } from '../../../config/utilities';\r\nimport { morphism } from 'morphism';\r\nimport { notificationsMap, profileMap } from './mapper';\r\n\r\nexport const login_api = (email: string, password: string): Promise => {\r\n\tconst headers: any = {\r\n\t\t'Content-Type': 'application/x-www-form-urlencoded',\r\n\t};\r\n\tconst body: any = {\r\n\t\tgrant_type: 'password',\r\n\t\tscope: 'oauth.shopping.swazer.com',\r\n\t\tuserName: email,\r\n\t\tpassword,\r\n\t};\r\n\treturn axios.post(urls.login_url, qs.stringify(body), headers);\r\n};\r\n\r\nexport const login_delegation_api = (accessToken: string, refreshToken: string, delegateId: string): Promise => {\r\n\tdelete axios.defaults.headers.common['Authorization'];\r\n\r\n\tconst headers: any = {\r\n\t\t'Content-Type': 'application/x-www-form-urlencoded',\r\n\t\t'Delegation-Id': delegateId,\r\n\t};\r\n\r\n\tconst body: any = {\r\n\t\tgrant_type: 'refresh_token',\r\n\t\trefresh_token: refreshToken,\r\n\t};\r\n\r\n\treturn axios.post(urls.login_url, qs.stringify(body), { headers });\r\n};\r\n\r\nexport const fetch_user_permissions = async () => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: fetch_user_permissions_url,\r\n\t\tmethod: 'GET',\r\n\t};\r\n\r\n\tconst { data }: { data: PermissionName[] } = await request(options);\r\n\treturn data;\r\n};\r\n\r\nexport const fetch_profile_api = async () => {\r\n\tconst config: AxiosRequestConfig = {\r\n\t\tmethod: 'GET',\r\n\t\turl: urls.fetch_profile_url,\r\n\r\n\t};\r\n\tconst response = await axios(config);\r\n\treturn {\r\n\t\tprofile: morphism(profileMap, response.data.user),\r\n\t\tnotifications: morphism(notificationsMap, response.data.notifications),\r\n\t};\r\n};\r\n\r\nexport const fetch_user_profile_api = async () => {\r\n\tconst config: AxiosRequestConfig = {\r\n\t\tmethod: 'GET',\r\n\t\turl: urls.fetch_user_profile_url,\r\n\r\n\t};\r\n\tconst response = await axios(config);\r\n\r\n\treturn {\r\n\t\tprofile: morphism(profileMap, response.data.user),\r\n\t\tdelegator: morphism(profileMap, response.data.currentDelegator),\r\n\t\tloginAsFullName: response.data.loginAsFullName,\r\n\t\tpartially: response.data.partially,\r\n\t};\r\n};\r\n\r\nexport const update_profile_api = async (phoneNumber: string, note: string, notificationList: []) => {\r\n\tconst config: AxiosRequestConfig = {\r\n\t\tmethod: 'POST',\r\n\t\turl: urls.update_profile_url,\r\n\t\tdata: {\r\n\t\t\tphoneNumber: phoneNumber,\r\n\t\t\tnote: note,\r\n\t\t\tnotificationList: notificationList,\r\n\t\t},\r\n\t};\r\n\treturn await axios(config);\r\n};\r\n\r\n","import { all, call, put, select, takeLatest, takeLeading } from 'redux-saga/effects';\r\nimport { history } from '../../../config/router';\r\n\r\nimport { AppState } from '../../../config/types';\r\nimport { ActionTypes, LoginAction } from './types';\r\nimport {\r\n\tfetch_profile_api,\r\n\tfetch_user_permissions,\r\n\tfetch_user_profile_api,\r\n\tlogin_api,\r\n\tupdate_profile_api,\r\n} from './api';\r\nimport {\r\n\tfetchProfileResult,\r\n\tfetchUserPermissionsResult,\r\n\tfetchUserProfileResult,\r\n\tloginResult,\r\n\tsaveProfileResult,\r\n} from './actions';\r\nimport { changeAccessToken, changeIsLoggedIn } from '../../Storage/logic/actions';\r\nimport {\r\n\tclearAlert,\r\n\thideProgress,\r\n\tnavigate,\r\n\tshowAlert,\r\n\tshowHttpErrorAlert,\r\n\tshowProgress,\r\n\tshowUpdatedSuccessfullyAlert,\r\n} from '../../Services/actions';\r\n\r\nimport { getTelegramBotUrlApi, hasDelegationsApi } from '../../MyDelegations/logic/api';\r\n\r\nfunction* loginSaga(action: LoginAction) {\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst { email, password } = yield select((state: AppState) => state.auth);\r\n\r\n\r\n\t\tconst response = yield call(login_api, email, password);\r\n\t\tconst { access_token, refresh_token } = response.data;\r\n\r\n\t\tyield all([\r\n\t\t\tput(loginResult(false)),\r\n\t\t\tput(changeAccessToken(access_token, refresh_token)),\r\n\t\t\tput(changeIsLoggedIn(true)),\r\n\t\t]);\r\n\r\n\t\tconst sid = new URL(document.location.href).searchParams.get('sid');\r\n\t\tif (sid) {\r\n\t\t\tconst telegramBotUrl = yield call(getTelegramBotUrlApi);\r\n\t\t\tconst botUrl = telegramBotUrl\r\n\t\t\t\t.replace('{accessToken}', access_token)\r\n\t\t\t\t.replace('{sid}', sid);\r\n\t\t\twindow.location.replace(botUrl);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst { redirectTo } = action;\r\n\t\tconst hasReturnValue = !!redirectTo;\r\n\t\tconst hasDelegations = yield call(hasDelegationsApi);\r\n\r\n\t\tif (hasDelegations)\r\n\t\t\tyield put(navigate('MyDelegations'));\r\n\t\telse if (hasReturnValue)\r\n\t\t\tyield history.push(atob(redirectTo!));\r\n\t\telse\r\n\t\t\tyield put(navigate('Dashboard'));\r\n\t} catch (e) {\r\n\t\tyield put(loginResult(true));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* userPermissionsSaga() {\r\n\ttry {\r\n\t\tconst response = yield call(fetch_user_permissions);\r\n\t\tyield put(fetchUserPermissionsResult(false, response));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(fetchUserPermissionsResult(true));\r\n\t} finally {\r\n\t}\r\n}\r\n\r\nfunction* fetchProfileSaga() {\r\n\tyield put(clearAlert());\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst response = yield call(fetch_profile_api);\r\n\t\tyield put(fetchProfileResult(false, response.profile, response.notifications));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(fetchProfileResult(true, { arName: '', phoneNumber: '', note: '', email: '' }, []));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* fetchUserProfileSaga() {\r\n\tyield put(clearAlert());\r\n\ttry {\r\n\t\tconst response = yield call(fetch_user_profile_api);\r\n\t\tyield put(fetchUserProfileResult(false, response.profile, response.delegator, response.loginAsFullName, response.partially));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(fetchUserProfileResult(true));\r\n\t}\r\n}\r\n\r\nfunction* updateProfileSaga() {\r\n\tyield put(clearAlert());\r\n\tconst profile = yield select(state => state.auth.profile);\r\n\tconst notifications = yield select(state => state.auth.notifications);\r\n\r\n\tif (profile.phoneNumber.length < 10) {\r\n\t\tyield put(showAlert('warn', 'الرجاء إدخال رقم هاتف صحيح'));\r\n\t\treturn;\r\n\t}\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tyield call(update_profile_api, profile.phoneNumber, profile.note, notifications);\r\n\r\n\t\tyield put(saveProfileResult(false));\r\n\t\tyield put(showUpdatedSuccessfullyAlert());\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(saveProfileResult(true));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* logoutSaga() {\r\n\tyield put(navigate('Dashboard'));\r\n\t// This action will clear the entire state\r\n\tyield put({ type: 'GENERAL__CLEAR_STATE', logout: true });\r\n\r\n\tsessionStorage.clear();\r\n\tlocalStorage.clear();\r\n}\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.login, loginSaga),\r\n\ttakeLatest(ActionTypes.logout, logoutSaga),\r\n\ttakeLeading(ActionTypes.fetch_user_permissions, userPermissionsSaga),\r\n\ttakeLatest(ActionTypes.fetch_profile, fetchProfileSaga),\r\n\ttakeLatest(ActionTypes.fetch_user_profile, fetchUserProfileSaga),\r\n\ttakeLatest(ActionTypes.save_profile, updateProfileSaga),\r\n];\r\n","import { AxiosRequestConfig } from 'axios';\r\nimport { morphism } from 'morphism';\r\nimport { request } from '../../../config/utilities';\r\nimport {\r\n\tadd_procedure_url,\r\n\tdelete_procedure_url,\r\n\tget_procedure_url,\r\n\tget_procedures_url,\r\n\tupdate_procedure_url,\r\n} from '../../../config/urls';\r\nimport { procedureMap } from './mapper';\r\n\r\nexport const getProcedures = async () => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_procedures_url,\r\n\t\tmethod: 'GET',\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\r\n\treturn {\r\n\t\ttotalCount: response.data.totalCount,\r\n\t\tprocedures: morphism(procedureMap, response.data.procedures as any[]),\r\n\t};\r\n};\r\n\r\nexport const getProcedure = async (procedureId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_procedure_url,\r\n\t\tmethod: 'GET',\r\n\r\n\t\tparams: {\r\n\t\t\tprocedureId: procedureId,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\treturn morphism(procedureMap, response.data);\r\n};\r\n\r\nexport const addProcedure = async (name: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: add_procedure_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tProcedureName: name,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\treturn morphism(procedureMap, response.data);\r\n};\r\n\r\nexport const updateProcedure = async (id: string, name: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: update_procedure_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tProcedureID: id,\r\n\t\t\tProcedureName: name,\r\n\t\t},\r\n\t};\r\n\r\n\tawait request(options);\r\n};\r\n\r\nexport const deleteProcedure = async (id: string) => {\r\n\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: delete_procedure_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tprocedureId: id,\r\n\t\t},\r\n\t};\r\n\r\n\tawait request(options);\r\n};\r\n","import { all, call, put, select, takeLatest } from 'redux-saga/effects';\r\nimport { AppState } from '../../../config/types';\r\n\r\nimport {\r\n\taddProcedureResult,\r\n\tclearDraftProcedure,\r\n\tfetchProcedureResult,\r\n\tloadProcedureResult,\r\n\trefetchProcedures,\r\n\tremoveProcedureResult,\r\n\tupdateProcedureResult,\r\n} from './actions';\r\nimport { ActionTypes, LoadProcedureAction, RemoveProcedureAction } from './types';\r\nimport { addProcedure, deleteProcedure, getProcedure, getProcedures, updateProcedure } from './api';\r\nimport {\r\n\tclearAlert,\r\n\thideProgress, navigate,\r\n\tshowCreatedSuccessfullyAlert,\r\n\tshowHttpErrorAlert,\r\n\tshowProgress,\r\n\tshowRemovedSuccessfullyAlert,\r\n\tshowRequiredAlert,\r\n\tshowUpdatedSuccessfullyAlert,\r\n} from '../../Services/actions';\r\n\r\nfunction* fetchProceduresSaga() {\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\r\n\t\tconst response = yield call(getProcedures);\r\n\t\tyield put(fetchProcedureResult(false, response.procedures, response.totalCount));\r\n\t} catch (e) {\r\n\t\tyield put(fetchProcedureResult(true, [], 0));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* addProcedureSaga() {\r\n\tyield put(clearAlert());\r\n\ttry {\r\n\t\tconst { draftProcedure } = yield select((state: AppState) => state.procedure);\r\n\r\n\t\tif (!draftProcedure.name || draftProcedure.name.trim() === '') {\r\n\t\t\tyield put(showRequiredAlert('الإسم'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tyield put(showProgress());\r\n\t\tyield call(addProcedure, draftProcedure.name);\r\n\t\tyield all([\r\n\t\t\tput(addProcedureResult(false)),\r\n\t\t\tput(clearDraftProcedure()),\r\n\t\t\tput(navigate('Procedures')),\r\n\t\t\tput(showCreatedSuccessfullyAlert()),\r\n\t\t]);\r\n\t} catch (e) {\r\n\t\tyield all([\r\n\t\t\tput(addProcedureResult(true)),\r\n\t\t\tput(showHttpErrorAlert(e)),\r\n\t\t]);\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* updateProcedureSaga() {\r\n\tyield put(clearAlert());\r\n\ttry {\r\n\r\n\t\tconst { draftProcedure } = yield select((state: AppState) => state.procedure);\r\n\r\n\t\tif (!draftProcedure.name || draftProcedure.name.trim() === '') {\r\n\t\t\tyield put(showRequiredAlert('الإسم'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tyield put(showProgress());\r\n\t\tyield call(updateProcedure, draftProcedure.id, draftProcedure.name);\r\n\t\tyield all([\r\n\t\t\tput(updateProcedureResult(false)),\r\n\t\t\tput(clearDraftProcedure()),\r\n\t\t\tput(navigate('Procedures')),\r\n\t\t\tput(showUpdatedSuccessfullyAlert()),\r\n\t]);\r\n\t} catch (e) {\r\n\t\tyield all([\r\n\t\t\tput(updateProcedureResult(true)),\r\n\t\t\tput(showHttpErrorAlert(e)),\r\n\t\t]);\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* removeProcedureSaga(action: RemoveProcedureAction) {\r\n\tyield put(clearAlert());\r\n\tconst { procedure } = action;\r\n\r\n\tif (!procedure) {\r\n\t\tyield put(showRequiredAlert('الإجراء', 'select'));\r\n\t\treturn;\r\n\t}\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\r\n\t\tyield call(deleteProcedure, procedure.id);\r\n\t\tyield all([\r\n\t\t\tput(removeProcedureResult(false)),\r\n\t\t\tput(refetchProcedures()),\r\n\t\t\tput(clearDraftProcedure()),\r\n\t\t\tput(showRemovedSuccessfullyAlert()),\r\n\t\t]);\r\n\t} catch (e) {\r\n\t\tyield all([\r\n\t\t\tput(removeProcedureResult(true)),\r\n\t\t\tput(showHttpErrorAlert(e)),\r\n\t\t]);\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* loadProcedureSaga(action: LoadProcedureAction) {\r\n\tyield put(clearAlert());\r\n\tconst { procedureId } = action;\r\n\tconst { procedures } = yield select(x => x.procedure);\r\n\r\n\tlet procedure = Array.isArray(procedures) && procedures.find(x => x.id === procedureId);\r\n\r\n\tif (!procedure) {\r\n\t\tyield put(showProgress());\r\n\t\ttry {\r\n\t\t\tprocedure = yield call(getProcedure, procedureId);\r\n\t\t} catch (e) {\r\n\t\t\tyield put(showHttpErrorAlert(e));\r\n\t\t} finally {\r\n\t\t\tyield put(hideProgress());\r\n\t\t}\r\n\t}\r\n\r\n\tyield put(loadProcedureResult(!procedure, procedure));\r\n}\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.refetch_procedures, fetchProceduresSaga),\r\n\ttakeLatest(ActionTypes.fetch_procedures, fetchProceduresSaga),\r\n\ttakeLatest(ActionTypes.add_procedure, addProcedureSaga),\r\n\ttakeLatest(ActionTypes.remove_procedure, removeProcedureSaga),\r\n\ttakeLatest(ActionTypes.update_procedure, updateProcedureSaga),\r\n\ttakeLatest(ActionTypes.load_procedure, loadProcedureSaga),\r\n];\r\n\r\n","import { AxiosRequestConfig } from 'axios';\r\nimport { morphism } from 'morphism';\r\n\r\nimport { request } from '../../../config/utilities';\r\nimport {\r\n\tadd_taskType_url,\r\n\tdelete_taskType_url,\r\n\tget_taskType_url,\r\n\tget_taskTypes_url,\r\n\tupdate_taskType_url,\r\n} from '../../../config/urls';\r\nimport { taskTypeMap } from './mapper';\r\n\r\nexport const getTaskTypes = async () => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_taskTypes_url,\r\n\t\tmethod: 'GET',\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\treturn {\r\n\t\ttotalCount: response.data.totalCount,\r\n\t\ttaskTypes: morphism(taskTypeMap, response.data.taskTypes as any[]),\r\n\t};\r\n};\r\n\r\nexport const getTaskType = async (taskTypeId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_taskType_url,\r\n\t\tmethod: 'GET',\r\n\r\n\t\tparams: {\r\n\t\t\ttaskTypeId: taskTypeId,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\r\n\treturn morphism(taskTypeMap, response.data);\r\n};\r\n\r\nexport const addTaskType = async (name: string, defaultDays: string, allowEditEndDate: boolean) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: add_taskType_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tTaskTypeName: name,\r\n\t\t\tDefaultDays: defaultDays,\r\n\t\t\tAllowEditEndDate: allowEditEndDate,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\r\n\treturn morphism(taskTypeMap, response.data);\r\n};\r\n\r\nexport const updateTaskType = async (id: string, name: string, defaultDays: string, allowEditEndDate: boolean) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: update_taskType_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tTaskTypeID: id,\r\n\t\t\tTaskTypeName: name,\r\n\t\t\tDefaultDays: defaultDays,\r\n\t\t\tAllowEditEndDate: allowEditEndDate,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n};\r\n\r\nexport const deleteTaskType = async (id: string) => {\r\n\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: delete_taskType_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tTaskTypeId: id,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n};\r\n\r\n","import { all, call, put, select, takeLatest } from 'redux-saga/effects';\r\nimport { AppState } from '../../../config/types';\r\n\r\nimport {\r\n\taddTaskTypeResult,\r\n\tclearDraftTaskType,\r\n\tfetchTaskTypesResult,\r\n\tloadTaskTypeResult,\r\n\trefetchTaskTypes,\r\n\tremoveTaskTypeResult,\r\n\tupdateTaskTypeResult,\r\n} from './actions';\r\nimport { ActionTypes, LoadTaskTypeAction, RemoveTaskTypeAction } from './types';\r\nimport { addTaskType, deleteTaskType, getTaskType, getTaskTypes, updateTaskType } from './api';\r\nimport {\r\n\tclearAlert,\r\n\thideProgress,\r\n\tnavigate,\r\n\tshowCreatedSuccessfullyAlert,\r\n\tshowHttpErrorAlert,\r\n\tshowProgress,\r\n\tshowRemovedSuccessfullyAlert,\r\n\tshowRequiredAlert,\r\n\tshowUpdatedSuccessfullyAlert,\r\n} from '../../Services/actions';\r\n\r\nfunction* fetchTaskTypesSaga() {\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\r\n\t\tconst response = yield call(getTaskTypes);\r\n\t\tyield put(fetchTaskTypesResult(false, response.taskTypes, response.totalCount));\r\n\t} catch (e) {\r\n\t\tyield put(fetchTaskTypesResult(true, [], 0));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* addTaskTypesSaga() {\r\n\tyield put(clearAlert());\r\n\ttry {\r\n\r\n\t\tconst { draftTaskType } = yield select((state: AppState) => state.taskType);\r\n\r\n\t\tif (!draftTaskType.name || draftTaskType.name.trim() === '') {\r\n\t\t\tyield put(showRequiredAlert('الإسم'));\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (!draftTaskType.defaultDays || draftTaskType.defaultDays.trim() === '') {\r\n\t\t\tyield put(showRequiredAlert('الأيام الافتراضية'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tyield put(showProgress());\r\n\t\tyield call(addTaskType, draftTaskType.name, draftTaskType.defaultDays, draftTaskType.allowEditEndDate);\r\n\t\tyield all([\r\n\t\t\tput(addTaskTypeResult(false)),\r\n\t\t\tput(navigate('TaskTypes')),\r\n\t\t\tput(clearDraftTaskType()),\r\n\t\t]);\r\n\t\tyield put(showCreatedSuccessfullyAlert());\r\n\t} catch (e) {\r\n\t\tyield all([\r\n\t\t\tput(addTaskTypeResult(true)),\r\n\t\t\tput(showHttpErrorAlert(e)),\r\n\t\t]);\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* updateTaskTypesSaga() {\r\n\tyield put(clearAlert());\r\n\ttry {\r\n\t\tconst { draftTaskType } = yield select((state: AppState) => state.taskType);\r\n\r\n\t\tif (!draftTaskType.name || draftTaskType.name.trim() === '') {\r\n\t\t\tyield put(showRequiredAlert('الإسم'));\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (!draftTaskType.defaultDays) {\r\n\t\t\tyield put(showRequiredAlert('الأيام الافتراضية'));\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tyield put(showProgress());\r\n\t\tyield call(updateTaskType, draftTaskType.id, draftTaskType.name, draftTaskType.defaultDays, draftTaskType.allowEditEndDate);\r\n\t\tyield all([\r\n\t\t\tput(updateTaskTypeResult(false)),\r\n\t\t\tput(navigate('TaskTypes')),\r\n\t\t\tput(clearDraftTaskType()),\r\n\t\t\tput(showUpdatedSuccessfullyAlert()),\r\n\t\t]);\r\n\t} catch (e) {\r\n\t\tyield all([\r\n\t\t\tput(updateTaskTypeResult(true)),\r\n\t\t\tput(showHttpErrorAlert(e)),\r\n\t\t]);\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* removeTaskTypesSaga(action: RemoveTaskTypeAction) {\r\n\tyield put(clearAlert());\r\n\tconst { taskType } = action;\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\r\n\t\tyield call(deleteTaskType, taskType.id);\r\n\r\n\t\tif (!taskType) {\r\n\t\t\tyield put(showRequiredAlert('نوع المهمة', 'select'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tyield all([\r\n\t\t\tput(removeTaskTypeResult(false)),\r\n\t\t\tput(refetchTaskTypes()),\r\n\t\t\tput(clearDraftTaskType()),\r\n\t\t\tput(showRemovedSuccessfullyAlert()),\r\n\t\t]);\r\n\t} catch (e) {\r\n\t\tyield all([\r\n\t\t\tput(removeTaskTypeResult(true)),\r\n\t\t\tput(showHttpErrorAlert(e)),\r\n\t\t]);\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* loadTaskTypesSaga(action: LoadTaskTypeAction) {\r\n\tyield put(clearAlert());\r\n\r\n\tconst { taskTypeId } = action;\r\n\tconst taskTypes = yield select(x => x.taskType.taskTypes);\r\n\r\n\tlet taskType = Array.isArray(taskTypes) && taskTypes.find(x => x.id === taskTypeId);\r\n\r\n\tif (!taskType) {\r\n\t\tyield put(showProgress());\r\n\t\ttry {\r\n\t\t\ttaskType = yield call(getTaskType, taskTypeId);\r\n\t\t} catch (e) {\r\n\t\t\tyield put(showHttpErrorAlert(e));\r\n\t\t} finally {\r\n\t\t\tyield put(hideProgress());\r\n\t\t}\r\n\t}\r\n\r\n\tyield put(loadTaskTypeResult(!taskType, taskType));\r\n}\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.refetch_task_types, fetchTaskTypesSaga),\r\n\ttakeLatest(ActionTypes.fetch_task_types, fetchTaskTypesSaga),\r\n\ttakeLatest(ActionTypes.add_task_type, addTaskTypesSaga),\r\n\ttakeLatest(ActionTypes.remove_task_type, removeTaskTypesSaga),\r\n\ttakeLatest(ActionTypes.update_task_type, updateTaskTypesSaga),\r\n\ttakeLatest(ActionTypes.load_task_type, loadTaskTypesSaga),\r\n];\r\n\r\n","import { AxiosRequestConfig } from 'axios';\r\nimport { morphism } from 'morphism';\r\n\r\nimport { request } from '../../../config/utilities';\r\nimport {\r\n\tadd_priority_url,\r\n\tdelete_priority_url,\r\n\tget_priorities_url,\r\n\tget_priority_url,\r\n\tupdate_priority_url,\r\n} from '../../../config/urls';\r\nimport { priorityMap } from './mapper';\r\n\r\nexport const getPriorities = async () => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_priorities_url,\r\n\t\tmethod: 'GET',\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\r\n\treturn {\r\n\t\ttotalCount: response.data.totalCount,\r\n\t\tpriorities: morphism(priorityMap, response.data.priorities as any[]),\r\n\t};\r\n};\r\n\r\nexport const getPriority = async (priorityId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_priority_url,\r\n\t\tmethod: 'GET',\r\n\r\n\t\tparams: {\r\n\t\t\tPriorityId: priorityId,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\r\n\treturn morphism(priorityMap, response.data);\r\n};\r\n\r\nexport const addPriority = async (name: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: add_priority_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tPriorityName: name,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\r\n\treturn morphism(priorityMap, response.data);\r\n};\r\n\r\nexport const updatePriority = async (id: string, name: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: update_priority_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tPriorityID: id,\r\n\t\t\tPriorityName: name,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n};\r\n\r\nexport const deletePriority = async (id: string) => {\r\n\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: delete_priority_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tPriorityId: id,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n};\r\n","import { all, call, put, select, takeLatest } from 'redux-saga/effects';\r\nimport { AppState } from '../../../config/types';\r\n\r\nimport { ActionTypes, LoadPriorityAction, RemovePriorityAction } from './types';\r\nimport { addPriority, deletePriority, getPriorities, getPriority, updatePriority } from './api';\r\n\r\nimport {\r\n\tclearAlert,\r\n\thideProgress,\r\n\tnavigate,\r\n\treplace,\r\n\tshowCreatedSuccessfullyAlert,\r\n\tshowHttpErrorAlert,\r\n\tshowProgress,\r\n\tshowRemovedSuccessfullyAlert,\r\n\tshowRequiredAlert,\r\n\tshowUpdatedSuccessfullyAlert,\r\n} from '../../Services/actions';\r\nimport {\r\n\taddPriorityResult,\r\n\tclearDraftPriority,\r\n\tfetchPrioritiesResult,\r\n\tloadPriorityResult, refetchPriorities,\r\n\tremovePriorityResult,\r\n\tupdatePriorityResult,\r\n} from './actions';\r\n\r\nfunction* fetchPrioritiesSaga() {\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\r\n\t\tconst response = yield call(getPriorities);\r\n\t\tyield put(fetchPrioritiesResult(false, response.priorities, response.totalCount));\r\n\r\n\t} catch (e) {\r\n\t\tyield put(fetchPrioritiesResult(true, [], 0));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* loadPrioritySaga(action: LoadPriorityAction) {\r\n\tyield put(clearAlert());\r\n\tconst { priorityId } = action;\r\n\tconst { priorities } = yield select(x => x.priority);\r\n\r\n\tlet priority = Array.isArray(priorities) && priorities.find(x => x.id === priorityId);\r\n\r\n\tif (!priority) {\r\n\t\tyield put(showProgress());\r\n\t\ttry {\r\n\t\t\tpriority = yield call(getPriority, priorityId);\r\n\t\t} catch (e) {\r\n\t\t\tyield put(showHttpErrorAlert(e));\r\n\t\t} finally {\r\n\t\t\tyield put(hideProgress());\r\n\t\t}\r\n\t}\r\n\r\n\tyield put(loadPriorityResult(!priority, priority));\r\n}\r\n\r\nfunction* addPrioritySaga() {\r\n\tyield put(clearAlert());\r\n\tconst draftPriority = yield select((state: AppState) => state.priority.draftPriority);\r\n\r\n\tif (!draftPriority.name || draftPriority.name.trim() === '') {\r\n\t\tyield put(showRequiredAlert('الإسم'));\r\n\t\treturn;\r\n\t}\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst response = yield call(addPriority, draftPriority.name);\r\n\r\n\t\tyield all([\r\n\t\t\tput(addPriorityResult(false)),\r\n\t\t\tput(navigate('Priorities')),\r\n\t\t\tput(clearDraftPriority()),\r\n\t\t\tput(showCreatedSuccessfullyAlert()),\r\n\t\t]);\r\n\t} catch (e) {\r\n\t\tyield all([\r\n\t\t\tput(addPriorityResult(true)),\r\n\t\t\tput(showHttpErrorAlert(e)),\r\n\t\t]);\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* updatePrioritySaga() {\r\n\tyield put(clearAlert());\r\n\tconst draftPriority = yield select((state: AppState) => state.priority.draftPriority);\r\n\r\n\tif (!draftPriority.name || draftPriority.name.trim() === '') {\r\n\t\tyield put(showRequiredAlert('الإسم'));\r\n\t\treturn;\r\n\t}\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tyield call(updatePriority, draftPriority.id, draftPriority.name);\r\n\r\n\t\tyield all([\r\n\t\t\tput(updatePriorityResult(false)),\r\n\t\t\tput(navigate('Priorities')),\r\n\t\t\tput(clearDraftPriority()),\r\n\t\t\tput(showUpdatedSuccessfullyAlert()),\r\n\t\t]);\r\n\t} catch (e) {\r\n\t\tyield all([\r\n\t\t\tput(updatePriorityResult(true)),\r\n\t\t\tput(showHttpErrorAlert(e)),\r\n\t\t]);\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* removePrioritySaga(action: RemovePriorityAction) {\r\n\tyield put(clearAlert());\r\n\tconst { priority } = action;\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\r\n\t\tyield call(deletePriority, priority.id);\r\n\t\tyield all([\r\n\t\t\tput(removePriorityResult(false)),\r\n\t\t\tput(clearDraftPriority()),\r\n\t\t\tput(refetchPriorities()),\r\n\t\t\tput(showRemovedSuccessfullyAlert()),\r\n\t\t]);\r\n\t} catch (e) {\r\n\t\tyield all([\r\n\t\t\tput(removePriorityResult(true)),\r\n\t\t\tput(showHttpErrorAlert(e)),\r\n\t\t]);\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.refetch_priorities, fetchPrioritiesSaga),\r\n\ttakeLatest(ActionTypes.fetch_priorities, fetchPrioritiesSaga),\r\n\ttakeLatest(ActionTypes.load_priority, loadPrioritySaga),\r\n\ttakeLatest(ActionTypes.add_priority, addPrioritySaga),\r\n\ttakeLatest(ActionTypes.update_priority, updatePrioritySaga),\r\n\ttakeLatest(ActionTypes.remove_priority, removePrioritySaga),\r\n];\r\n","import { Schema } from 'morphism';\r\nimport { Stakholder } from './types';\r\n\r\nexport const stakholderMap: Schema = {\r\n\tid: 'treatmentStakholderID',\r\n\tname: 'treatmentStakholderName',\r\n\trefId: 'refID',\r\n};\r\n","import { AxiosRequestConfig } from 'axios';\r\nimport { morphism } from 'morphism';\r\n\r\nimport { request } from '../../../config/utilities';\r\nimport {\r\n\tadd_stakholder_url,\r\n\tdelete_stakholder_url,\r\n\tget_stakholder_url,\r\n\tget_stakholders_url,\r\n\tupdate_stakholder_url,\r\n} from '../../../config/urls';\r\nimport { stakholderMap } from './mapper';\r\nimport { pageSize } from '../../../config/constant';\r\n\r\nexport const getStakholders = async (pageNumber: number, searchQuery: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_stakholders_url,\r\n\t\tmethod: 'GET',\r\n\r\n\t\tparams: {\r\n\t\t\tPageSize: pageSize,\r\n\t\t\tPageNumber: pageNumber,\r\n\t\t\tSearchQuery: searchQuery,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\r\n\treturn {\r\n\t\ttotalCount: response.data.totalCount,\r\n\t\tstakholders: morphism(stakholderMap, response.data.treatmentStakholderInfos as any[]),\r\n\t};\r\n};\r\n\r\nexport const getStakholder = async (stakholderId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_stakholder_url,\r\n\t\tmethod: 'GET',\r\n\r\n\t\tparams: {\r\n\t\t\ttreatmentStakholderInfoId: stakholderId,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\r\n\treturn morphism(stakholderMap, response.data);\r\n};\r\n\r\nexport const addStakholder = async (name: string, refId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: add_stakholder_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tTreatmentStakholderName: name,\r\n\t\t\tRefID: refId,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\r\n\treturn morphism(stakholderMap, response.data);\r\n};\r\n\r\nexport const updateStakholder = async (id: string, name: string, refId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: update_stakholder_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tTreatmentStakholderID: id,\r\n\t\t\tTreatmentStakholderName: name,\r\n\t\t\tRefID: refId,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n};\r\n\r\nexport const deleteStakholder = async (id: string) => {\r\n\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: delete_stakholder_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tTreatmentStakholderInfoId: id,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n};\r\n","import { all, call, put, select, takeLatest } from 'redux-saga/effects';\r\nimport { history, routes } from '../../../config/router';\r\n\r\nimport { AppState } from '../../../config/types';\r\n\r\nimport {\r\n\taddStakholderResult,\r\n\tclearDraftStakholder,\r\n\tfetchStakholdersResult,\r\n\tloadStakholderResult,\r\n\trefetchStakholders,\r\n\tremoveStakholderResult,\r\n\tupdateStakholderResult,\r\n} from './action';\r\nimport { ActionTypes, FetchStakholdersAction, LoadStakholderAction, RemoveStakholderAction } from './types';\r\nimport { addStakholder, deleteStakholder, getStakholder, getStakholders, updateStakholder } from './api';\r\nimport {\r\n\tclearAlert,\r\n\thideProgress,\r\n\tnavigate,\r\n\tshowCreatedSuccessfullyAlert,\r\n\tshowHttpErrorAlert,\r\n\tshowProgress,\r\n\tshowRemovedSuccessfullyAlert,\r\n\tshowRequiredAlert,\r\n\tshowUpdatedSuccessfullyAlert,\r\n} from '../../Services/actions';\r\nimport { pageSize } from '../../../config/constant';\r\nimport { InboxMode } from '../../Tasks/logic/type';\r\n\r\nfunction* fetchStakholdersSaga(action: FetchStakholdersAction) {\r\n\tyield put(clearAlert());\r\n\r\n\ttry {\r\n\t\tconst { pageNumber } = action;\r\n\t\tconst searchQuery = yield select((state: AppState) => state.stakholder.searchQuery);\r\n\r\n\t\tyield put(showProgress());\r\n\t\tconst { stakholders, totalCount } = yield call(getStakholders, pageNumber, searchQuery);\r\n\r\n\t\tyield put(fetchStakholdersResult(false, stakholders, totalCount));\r\n\t} catch (e) {\r\n\t\tyield put(fetchStakholdersResult(true));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* addStakholderSaga() {\r\n\tyield put(clearAlert());\r\n\r\n\ttry {\r\n\t\tconst draftStakholder = yield select((state: AppState) => state.stakholder.draftStakholder);\r\n\t\tconst pageNumber = yield select((state: AppState) => state.stakholder.pageNumber);\r\n\r\n\t\tif (!draftStakholder.name || draftStakholder.name.trim() === '') {\r\n\t\t\tyield put(showRequiredAlert('الاسم'));\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (!draftStakholder.refId || draftStakholder.refId.trim() === '') {\r\n\t\t\tyield put(showRequiredAlert('معرف المرجع'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tyield put(showProgress());\r\n\t\tyield call(addStakholder, draftStakholder.name, draftStakholder.refId);\r\n\r\n\t\tyield all([\r\n\t\t\tput(addStakholderResult(false)),\r\n\t\t\tput(clearDraftStakholder()),\r\n\t\t\tput(navigate('Stakeholders', { comingBack: true })),\r\n\t\t\tput(showCreatedSuccessfullyAlert()),\r\n\t\t]);\r\n\t} catch (e) {\r\n\t\tyield all([\r\n\t\t\tput(addStakholderResult(true)),\r\n\t\t\tput(showHttpErrorAlert(e)),\r\n\t\t]);\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* updateStakholderSaga() {\r\n\tyield put(clearAlert());\r\n\r\n\ttry {\r\n\t\tconst draftStakholder = yield select((state: AppState) => state.stakholder.draftStakholder);\r\n\t\tconst pageNumber = yield select((state: AppState) => state.stakholder.pageNumber);\r\n\r\n\t\tif (!draftStakholder.name || draftStakholder.name.trim() === '') {\r\n\t\t\tyield put(showRequiredAlert('الاسم'));\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (!draftStakholder.refId || draftStakholder.refId.trim() === '') {\r\n\t\t\tyield put(showRequiredAlert('معرف المرجع'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tyield put(showProgress());\r\n\t\tyield call(updateStakholder, draftStakholder.id, draftStakholder.name, draftStakholder.refId);\r\n\t\tyield all([\r\n\t\t\tput(updateStakholderResult(false)),\r\n\t\t\tput(clearDraftStakholder()),\r\n\t\t\tput(navigate('Stakeholders', { comingBack: true })),\r\n\t\t\tput(showUpdatedSuccessfullyAlert()),\r\n\t\t]);\r\n\t} catch (e) {\r\n\t\tyield all([\r\n\t\t\tput(updateStakholderResult(true)),\r\n\t\t\tput(showHttpErrorAlert(e)),\r\n\t\t]);\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* removeStakholderSaga(action: RemoveStakholderAction) {\r\n\tyield put(clearAlert());\r\n\tconst { stakholder } = action;\r\n\tif (!stakholder) {\r\n\t\tyield put(showRequiredAlert('صاحب مصلحة', 'select'));\r\n\t\treturn;\r\n\t}\r\n\r\n\tconst { totalCount, pageNumber } = yield select((state: AppState) => state.stakholder);\r\n\tconst isLastPageAndLastElement = Math.ceil(totalCount / pageSize) === pageNumber && totalCount % pageSize === 1;\r\n\tconst pageToFetch = totalCount === 1 ? 1 : isLastPageAndLastElement ? pageNumber - 1 : pageNumber;\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\r\n\t\tyield call(deleteStakholder, stakholder.id);\r\n\t\tyield all([\r\n\t\t\tput(removeStakholderResult(false)),\r\n\t\t\tput(clearDraftStakholder()),\r\n\t\t\tput(refetchStakholders(pageToFetch)),\r\n\t\t\tput(showRemovedSuccessfullyAlert()),\r\n\t\t]);\r\n\t} catch (e) {\r\n\t\tyield all([\r\n\t\t\tput(removeStakholderResult(true)),\r\n\t\t\tput(showHttpErrorAlert(e)),\r\n\t\t]);\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* loadStakholderSaga(action: LoadStakholderAction) {\r\n\tyield put(clearAlert());\r\n\tconst { stakholderId } = action;\r\n\tconst { stakholders } = yield select((x: AppState) => x.stakholder);\r\n\r\n\tlet stakholder = Array.isArray(stakholders) && stakholders.find(x => x.id === stakholderId);\r\n\r\n\tif (!stakholder) {\r\n\t\tyield put(showProgress());\r\n\t\ttry {\r\n\t\t\tstakholder = yield call(getStakholder, stakholderId);\r\n\t\t} catch (e) {\r\n\t\t\tyield put(showHttpErrorAlert(e));\r\n\t\t} finally {\r\n\t\t\tyield put(hideProgress());\r\n\t\t}\r\n\t}\r\n\r\n\tyield put(loadStakholderResult(!stakholder, stakholder));\r\n}\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.refetch_stakholders, fetchStakholdersSaga),\r\n\ttakeLatest(ActionTypes.fetch_stakholders, fetchStakholdersSaga),\r\n\ttakeLatest(ActionTypes.add_stakholder, addStakholderSaga),\r\n\ttakeLatest(ActionTypes.remove_stakholder, removeStakholderSaga),\r\n\ttakeLatest(ActionTypes.update_stakholder, updateStakholderSaga),\r\n\ttakeLatest(ActionTypes.load_stakholder, loadStakholderSaga),\r\n];\r\n\r\n","import { Schema } from 'morphism';\r\nimport { Logs } from './types';\r\n\r\nexport const logsMapper: Schema = {\r\n\tid: 'logID',\r\n\tdate: 'createdDateTime',\r\n\turl: 'pageURL',\r\n\tmessage: 'logMessage',\r\n};\r\n","import axios, { AxiosRequestConfig } from 'axios';\r\nimport { morphism } from 'morphism';\r\n\r\nimport * as urls from '../../../config/urls';\r\nimport { logsMapper } from './mapper';\r\n\r\nexport const fetchLogsApi = async (logId: string) => {\r\n\tconst config: AxiosRequestConfig = {\r\n\t\tmethod: 'GET',\r\n\t\turl: urls.get_logs_url,\r\n\t\tparams: {\r\n\t\t\tlogId: logId,\r\n\t\t},\r\n\t};\r\n\tconst response = await axios(config);\r\n\treturn {\r\n\t\tlog: morphism(logsMapper, response.data.log),\r\n\t\tlogCount: response.data.logCount,\r\n\t};\r\n};\r\n","import { call, put, select, takeLatest } from 'redux-saga/effects';\r\nimport { fetchLogsApi } from './api';\r\nimport { ActionTypes } from './types';\r\nimport { fetchLogsResult } from './actions';\r\nimport { clearAlert, hideProgress, showAlert, showProgress, showRequiredAlert } from '../../Services/actions';\r\n\r\nfunction* FetchLogsSaga() {\r\n\tyield put(clearAlert());\r\n\tconst { logNumber } = yield select(state => state.logs);\r\n\r\n\tif (!logNumber) {\r\n\t\tyield put(showRequiredAlert('رقم الخطأ'));\r\n\t\treturn;\r\n\t}\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\r\n\t\tconst response = yield call(fetchLogsApi, logNumber);\r\n\t\tyield put(fetchLogsResult(false, response.log, response.logCount));\r\n\t} catch (e) {\r\n\t\tyield put(showAlert('error', e.message));\r\n\t\tyield put(fetchLogsResult(true, { id: '', date: '', url: '', message: '' }, -1));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.fetch_logs, FetchLogsSaga),\r\n];\r\n","import { all, call, put, select, takeLatest } from 'redux-saga/effects';\r\n\r\nimport {\r\n\taddDelegationResult,\r\n\tclearDraftDelegation,\r\n\trefetchDelegations,\r\n\tfetchDelegationsResult,\r\n\tfetchOrganizationsResult,\r\n\tloadDelegationsResult,\r\n\tremoveDelegationResult,\r\n\tsearchUsersResult,\r\n\tupdateDelegationResult,\r\n} from './action';\r\nimport { ActionTypes, Delegation, LoadDelegationAction, SearchUsersAction } from './types';\r\nimport {\r\n\taddDelegation,\r\n\tdeleteDelegation,\r\n\tgetDelegation,\r\n\tgetDelegations,\r\n\tgetOrganizations,\r\n\tgetUsersApi,\r\n\tupdateDelegation,\r\n} from './api';\r\n\r\nimport {\r\n\tclearAlert,\r\n\thideProgress,\r\n\treplace,\r\n\tshowAlert,\r\n\tshowCreatedSuccessfullyAlert,\r\n\tshowHttpErrorAlert,\r\n\tshowProgress,\r\n\tshowRemovedSuccessfullyAlert,\r\n\tshowRequiredAlert,\r\n\tshowUpdatedSuccessfullyAlert,\r\n} from '../../Services/actions';\r\nimport { AppState } from '../../../config/types';\r\nimport moment from 'moment';\r\n\r\nfunction* fetchDelegationsSaga() {\r\n\tyield put(clearAlert());\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst response = yield call(getDelegations);\r\n\r\n\t\tyield put(fetchDelegationsResult(false, response.delegations, response.totalCount));\r\n\t} catch (e) {\r\n\t\tyield put(fetchDelegationsResult(true, [], 0));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* fetchOrganizationsSaga() {\r\n\tyield put(clearAlert());\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\r\n\t\tconst response = yield call(getOrganizations);\r\n\r\n\t\tyield put(fetchOrganizationsResult(false, response));\r\n\t} catch (e) {\r\n\t\tyield put(fetchOrganizationsResult(true, []));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* searchUsers(action: SearchUsersAction) {\r\n\tyield put(clearAlert());\r\n\tconst { searchUserQuery } = action;\r\n\tconst organization = yield select((state: AppState) => state.delegation.draftDelegation.organization);\r\n\r\n\tif (searchUserQuery.length < 3) return;\r\n\tif (!organization) return;\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\r\n\t\tconst response = yield call(getUsersApi, searchUserQuery, organization.id);\r\n\r\n\t\tyield put(searchUsersResult(false, response));\r\n\t} catch (e) {\r\n\t\tyield put(searchUsersResult(true, []));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* validateDelegation(delegation: Delegation) {\r\n\tif (!delegation.organization) {\r\n\t\tyield put(showRequiredAlert('المنظمة', 'select'));\r\n\t\treturn false;\r\n\t}\r\n\tif (!delegation.toUser) {\r\n\t\tyield put(showRequiredAlert('المستخدم', 'select'));\r\n\t\treturn false;\r\n\t}\r\n\tif (!delegation.startDate) {\r\n\t\tyield put(showRequiredAlert('تاريخ البداية'));\r\n\t\treturn false;\r\n\t}\r\n\tif (!delegation.endDate) {\r\n\t\tyield put(showRequiredAlert('تاريخ النهاية'));\r\n\t\treturn false;\r\n\t}\r\n\r\n\tif (moment(delegation.startDate).isAfter(delegation.endDate)) {\r\n\t\tyield put(showAlert('warn', 'تاريخ النهاية يجب ان يكون اكبر من تاريخ البداية.'));\r\n\t\treturn false;\r\n\t}\r\n\r\n\treturn true;\r\n}\r\n\r\nfunction* addDelegationSaga() {\r\n\tyield put(clearAlert());\r\n\ttry {\r\n\t\tconst { draftDelegation } = yield select((state: AppState) => state.delegation);\r\n\t\tconst isValid = yield validateDelegation(draftDelegation);\r\n\t\tif (!isValid) return;\r\n\r\n\t\tyield put(showProgress());\r\n\t\tyield call(addDelegation, draftDelegation.toUser.id, draftDelegation.organization.id, draftDelegation.startDate, draftDelegation.endDate, draftDelegation.active, draftDelegation.partially, draftDelegation.delegatedOnSecureTasks);\r\n\r\n\t\tyield all([\r\n\t\t\tput(addDelegationResult(false)),\r\n\t\t\tput(clearDraftDelegation()),\r\n\t\t\tput(replace('Delegations')),\r\n\t\t\tput(showCreatedSuccessfullyAlert()),\r\n\t\t]);\r\n\r\n\t} catch (e) {\r\n\t\tyield all([\r\n\t\t\tput(addDelegationResult(true)),\r\n\t\t\tput(showHttpErrorAlert(e)),\r\n\t\t]);\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* updateDelegationSaga() {\r\n\tyield put(clearAlert());\r\n\ttry {\r\n\t\tconst { draftDelegation } = yield select((state: AppState) => state.delegation);\r\n\t\tconst isValid = yield validateDelegation(draftDelegation);\r\n\t\tif (!isValid) return;\r\n\r\n\t\tyield put(showProgress());\r\n\t\tyield call(updateDelegation, draftDelegation.id, draftDelegation.toUser.id, draftDelegation.organization.id, draftDelegation.startDate, draftDelegation.endDate, draftDelegation.active, draftDelegation.partially, draftDelegation.delegatedOnSecureTasks);\r\n\r\n\t\tyield all([\r\n\t\t\tput(updateDelegationResult(false)),\r\n\t\t\tput(clearDraftDelegation()),\r\n\t\t\tput(replace('Delegations')),\r\n\t\t\tput(showUpdatedSuccessfullyAlert()),\r\n\t\t]);\r\n\t} catch (e) {\r\n\t\tyield all([\r\n\t\t\tput(updateDelegationResult(true)),\r\n\t\t\tput(showHttpErrorAlert(e)),\r\n\t\t]);\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* removeDelegationSaga() {\r\n\tyield put(clearAlert());\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\r\n\t\tconst { draftDelegation } = yield select((state: AppState) => state.delegation);\r\n\r\n\t\tyield call(deleteDelegation, draftDelegation.id);\r\n\t\tyield all([\r\n\t\t\tput(removeDelegationResult(false)),\r\n\t\t\tput(clearDraftDelegation()),\r\n\t\t\tput(refetchDelegations()),\r\n\t\t\tput(showRemovedSuccessfullyAlert()),\r\n\t\t]);\r\n\t} catch (e) {\r\n\t\tyield all([\r\n\t\t\tput(removeDelegationResult(true)),\r\n\t\t\tput(showHttpErrorAlert(e)),\r\n\t\t]);\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* loadDelegationSaga(action: LoadDelegationAction) {\r\n\tyield put(clearAlert());\r\n\tconst { delegationId } = action;\r\n\tconst { delegations } = yield select(x => x.delegation);\r\n\r\n\tlet delegation = Array.isArray(delegations) && delegations.find(x => x.id === delegationId);\r\n\r\n\tif (!delegation) {\r\n\t\tyield put(showProgress());\r\n\t\ttry {\r\n\t\t\tdelegation = yield call(getDelegation, delegationId);\r\n\t\t} catch (e) {\r\n\t\t\tyield put(showHttpErrorAlert(e));\r\n\t\t} finally {\r\n\t\t\tyield put(hideProgress());\r\n\t\t}\r\n\t}\r\n\r\n\tyield put(loadDelegationsResult(!delegation, delegation));\r\n}\r\n\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.refetch_delegations, fetchDelegationsSaga),\r\n\ttakeLatest(ActionTypes.fetch_delegations, fetchDelegationsSaga),\r\n\ttakeLatest(ActionTypes.load_delegation, loadDelegationSaga),\r\n\ttakeLatest(ActionTypes.fetch_organizations, fetchOrganizationsSaga),\r\n\ttakeLatest(ActionTypes.search_users, searchUsers),\r\n\r\n\ttakeLatest(ActionTypes.add_delegation, addDelegationSaga),\r\n\ttakeLatest(ActionTypes.update_delegation, updateDelegationSaga),\r\n\ttakeLatest(ActionTypes.remove_delegation, removeDelegationSaga),\r\n];\r\n\r\n","import { Schema } from 'morphism';\r\nimport { SearchIndex } from './types';\r\n\r\nexport const indexerMap: Schema = {\r\n\tid: () => require('uuid/v4')(),\r\n\tserverName: 'indexerID',\r\n\tlastIndexDateTime: 'lastIndexDateTime',\r\n\tlastDocumentDateTime: 'latestDocumentDateTime',\r\n};\r\n","import axios, { AxiosRequestConfig } from 'axios';\r\n\r\nimport * as urls from '../../../config/urls';\r\nimport { morphism } from 'morphism';\r\nimport { indexerMap } from './mapper';\r\n\r\nexport const fetchDefaultPathApi = async () => {\r\n\tconst config: AxiosRequestConfig = {\r\n\t\tmethod: 'GET',\r\n\t\turl: urls.fetch_current_value_url,\r\n\t};\r\n\r\n\tconst response = await axios(config);\r\n\treturn response.data;\r\n};\r\n\r\nexport const updatePathApi = async (path: string) => {\r\n\tconst config: AxiosRequestConfig = {\r\n\t\tmethod: 'POST',\r\n\t\turl: urls.update_path_url,\r\n\t\tparams: {\r\n\t\t\tpath,\r\n\t\t},\r\n\t};\r\n\r\n\treturn await axios(config);\r\n};\r\n\r\nexport const fetchAllIndexesApi = async () => {\r\n\tconst config: AxiosRequestConfig = {\r\n\t\tmethod: 'GET',\r\n\t\turl: urls.fetch_all_indexes_url,\r\n\t};\r\n\tconst response = await axios(config);\r\n\treturn {\r\n\t\ttotalCount: response.data.totalCount,\r\n\t\tsearchResult: morphism(indexerMap, response.data.searchResult as any[]),\r\n\t};\r\n};\r\n\r\nexport const resetSearchApi = async () => {\r\n\tconst config: AxiosRequestConfig = {\r\n\t\tmethod: 'POST',\r\n\t\turl: urls.reset_search_url,\r\n\t};\r\n\r\n\tconst response = await axios(config);\r\n\treturn response;\r\n};\r\n","import { call, put, select, takeLatest } from 'redux-saga/effects';\r\nimport {\r\n\tclearAlert,\r\n\thideProgress,\r\n\tshowHttpErrorAlert,\r\n\tshowProgress,\r\n\tshowRemovedSuccessfullyAlert,\r\n\tshowRequiredAlert,\r\n\tshowUpdatedSuccessfullyAlert,\r\n} from '../../Services/actions';\r\nimport { ActionTypes } from './types';\r\nimport { fetchAllIndexesApi, fetchDefaultPathApi, resetSearchApi, updatePathApi } from './api';\r\nimport { fetchAllIndexResult, fetchDefaultPathResult, resetAllIndexResult, updatePathIndexResult } from './actions';\r\nimport { AppState } from '../../../config/types';\r\n\r\nfunction* fetchDefaultPathSaga() {\r\n\tyield put(clearAlert());\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst response = yield call(fetchDefaultPathApi);\r\n\t\tyield put(fetchDefaultPathResult(false, response));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* updatePathSaga() {\r\n\tyield put(clearAlert());\r\n\tconst path = yield select((state: AppState) => state.searchIndex.path);\r\n\r\n\tif (!path) {\r\n\t\tyield put(showRequiredAlert('المسار'));\r\n\t\treturn;\r\n\t}\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tyield call(updatePathApi, path);\r\n\t\tyield put(updatePathIndexResult(false));\r\n\t\tyield put(showUpdatedSuccessfullyAlert());\r\n\t} catch (e) {\r\n\t\tyield put(updatePathIndexResult(true));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* fetchAllIndexesSaga() {\r\n\tyield put(clearAlert());\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst response = yield call(fetchAllIndexesApi);\r\n\t\tyield put(fetchAllIndexResult(false, response.searchResult, response.totalCount));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* resetSearchSaga() {\r\n\tyield put(clearAlert());\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tyield call(resetSearchApi);\r\n\t\tyield put(showRemovedSuccessfullyAlert());\r\n\t\tyield put(resetAllIndexResult(false));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(resetAllIndexResult(true));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.fetch_default_path, fetchDefaultPathSaga),\r\n\ttakeLatest(ActionTypes.update_path_index, updatePathSaga),\r\n\ttakeLatest(ActionTypes.fetch_all_indexes, fetchAllIndexesSaga),\r\n\ttakeLatest(ActionTypes.reset_search_index, resetSearchSaga),\r\n];\r\n","import { call, put, select, takeLatest } from 'redux-saga/effects';\r\nimport moment from 'moment-hijri';\r\n\r\nimport {\r\n\tclearAlert,\r\n\thideProgress,\r\n\tshowAlert,\r\n\tshowHttpErrorAlert,\r\n\tshowProgress,\r\n\tshowRemovedSuccessfullyAlert,\r\n} from '../../Services/actions';\r\nimport { fetchRecordsResult, fetchSystemActionResult, removeAllRecordsResult } from './actions';\r\nimport { ActionTypes, FetchRecordsAction } from './types';\r\nimport { fetchRecordsApi, fetchSystemActionsApi, removeAllRecordsApi } from './api';\r\n\r\nfunction* fetchSystemActionsSaga() {\r\n\tyield put(clearAlert());\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst response = yield call(fetchSystemActionsApi);\r\n\t\tyield put(fetchSystemActionResult(false, response));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(fetchSystemActionResult(true));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* fetchRecordsSaga(action: FetchRecordsAction) {\r\n\tyield put(clearAlert());\r\n\tconst { systemAction, user, startDate, endDate } = yield select(state => state.auditing.searchCriteria);\r\n\tconst systemActionId = systemAction && systemAction.id;\r\n\tconst userId = user && user.value;\r\n\tconst pageNumber = action.pageNumber;\r\n\r\n\tif (startDate && endDate && moment(startDate).isAfter(endDate)) {\r\n\t\tyield put(showAlert('warn', 'تاريخ الحقل \\'من\\' يجب أن يكون أصغر أو يساوي تاريخ الحقل \\'إلى\\''));\r\n\t\treturn;\r\n\t}\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst response = yield call(fetchRecordsApi, systemActionId, userId, startDate, endDate, pageNumber);\r\n\t\tyield put(fetchRecordsResult(false, response.records, response.totalCount));\r\n\t} catch (e) {\r\n\t\tyield put(fetchRecordsResult(true, []));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* removeAllRecordsSaga() {\r\n\tyield put(clearAlert());\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tyield call(removeAllRecordsApi);\r\n\t\tyield put(removeAllRecordsResult(false));\r\n\t\tyield put(showRemovedSuccessfullyAlert());\r\n\t} catch (e) {\r\n\t\tyield put(removeAllRecordsResult(true));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.fetch_system_actions, fetchSystemActionsSaga),\r\n\ttakeLatest(ActionTypes.fetch_records, fetchRecordsSaga),\r\n\ttakeLatest(ActionTypes.remove_all_records, removeAllRecordsSaga),\r\n];\r\n","import { all, call, put, select, takeLatest } from 'redux-saga/effects';\r\n\r\nimport { AppState, SelectableValue } from '../../../config/types';\r\nimport {\r\n\taddAdUserResult,\r\n\taddUserResult,\r\n\taddUserToBulkUsersResult,\r\n\tfetchMaxBulkUsersCountResult,\r\n\tfetchUserOrgsResult,\r\n\tfetchUserPathResult,\r\n\tfetchUsersResult,\r\n\tfillAdUserInformations,\r\n\tgoToStep1,\r\n\tloadUserResult,\r\n\trefetchUsers,\r\n\tsetIsStep2,\r\n\tupdateUserResult,\r\n\tvisibleDeleteModal,\r\n} from './action';\r\nimport {\r\n\taddAdUserApi,\r\n\taddUserApi,\r\n\tchangeUserPasswordAPI,\r\n\tdeleteUserApi,\r\n\tfetchUserOrgsApi,\r\n\tfetchUserPathApi,\r\n\tfetchUsers,\r\n\tfetchUserWithOrgsApi,\r\n\tfindAdUserApi,\r\n\tgetMaxBulkUsers,\r\n\tupdateUserApi,\r\n\tvalidateAdUserApi,\r\n\tvalidateUserApi,\r\n} from './api';\r\nimport {\r\n\tclearAlert,\r\n\thideProgress,\r\n\treplace,\r\n\tshowAlert,\r\n\tshowCreatedSuccessfullyAlert,\r\n\tshowDoneSuccessfullyAlert,\r\n\tshowHttpErrorAlert,\r\n\tshowProgress,\r\n\tshowRemovedSuccessfullyAlert,\r\n\tshowRequiredAlert,\r\n\tshowUpdatedSuccessfullyAlert,\r\n} from '../../Services/actions';\r\nimport {\r\n\tActionTypes,\r\n\tAdUser,\r\n\tChangeUserPasswordAction,\r\n\tFetchUserOrgsAction,\r\n\tFetchUserPathAction,\r\n\tFetchUsersAction,\r\n\tLoadUserAction,\r\n\tUpdateUserAction,\r\n\tUser,\r\n} from './types';\r\nimport { onlyLettersAndDigits } from '../../../config/constant';\r\n\r\nfunction* fetchUsersSaga(action: FetchUsersAction) {\r\n\tyield put(clearAlert());\r\n\r\n\ttry {\r\n\t\tconst { pageNumber } = action;\r\n\t\tconst { name, email, isActive, organization } = yield select((state: AppState) => state.user.searchCriteria);\r\n\r\n\t\tyield put(showProgress());\r\n\t\tconst response = yield call(fetchUsers, pageNumber, name, email, isActive, organization?.id);\r\n\r\n\t\tyield put(fetchUsersResult(false, response.users, response.totalCount));\r\n\t} catch (e) {\r\n\t\tyield put(fetchUsersResult(true, [], 0));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* fetchUserOrgsSaga(action: FetchUserOrgsAction) {\r\n\tyield put(clearAlert());\r\n\tconst { userId } = action;\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\r\n\t\tconst response = yield call(fetchUserWithOrgsApi, userId);\r\n\r\n\t\tyield put(fetchUserOrgsResult(false, response.user, response.organizations));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(fetchUserOrgsResult(true));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* loadUserSaga(action: LoadUserAction) {\r\n\tconst { userId } = action;\r\n\tconst users = yield select(state => state.user.users);\r\n\r\n\tlet user = Array.isArray(users) && (users).find(x => x.id === userId);\r\n\tif (!user) {\r\n\t\ttry {\r\n\t\t\tyield put(showProgress());\r\n\t\t\tconst response = yield call(fetchUserWithOrgsApi, userId);\r\n\t\t\tyield put(fetchUserOrgsResult(false, response.user, response.organizations));\r\n\t\t} catch (e) {\r\n\t\t\tyield all([\r\n\t\t\t\tput(fetchUserOrgsResult(true)),\r\n\t\t\t\tput(showHttpErrorAlert(e)),\r\n\t\t\t]);\r\n\t\t} finally {\r\n\t\t\tyield put(hideProgress());\r\n\t\t}\r\n\t} else {\r\n\t\ttry {\r\n\t\t\tyield put(showProgress());\r\n\t\t\tconst response = yield call(fetchUserOrgsApi, userId);\r\n\t\t\tyield put(loadUserResult(false, user, response));\r\n\t\t} catch (e) {\r\n\t\t\tyield put(loadUserResult(true));\r\n\t\t\tyield put(showHttpErrorAlert(e));\r\n\t\t} finally {\r\n\t\t\tyield put(hideProgress());\r\n\t\t}\r\n\t}\r\n}\r\n\r\nfunction* fetchUserPathSaga(action: FetchUserPathAction) {\r\n\tconst { userId } = action;\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst response = yield call(fetchUserPathApi, userId);\r\n\r\n\t\tyield put(fetchUserPathResult(false, response.userName, response.userPath));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(fetchUserPathResult(true));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* validateUser(user: User, isEdit?: boolean) {\r\n\tif (!isEdit) {\r\n\t\tif (!user.userName || user.userName.trim() === '') {\r\n\t\t\tyield put(showRequiredAlert('اسم المستخدم'));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (user.userName.includes(' ')) {\r\n\t\t\tyield put(showRequiredAlert('يجب ألا يحتوي اسم المستخدم على مسافات'));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!user.password || user.password.trim() === '') {\r\n\t\t\tyield put(showRequiredAlert('كلمة المرور'));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!user.confirmPassword || user.confirmPassword.trim() === '') {\r\n\t\t\tyield put(showRequiredAlert('تأكيد كلمة المرور'));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (user.password.length < 7 || user.password.length > 15) {\r\n\t\t\tyield put(showAlert('warn', 'كلمة المرور يجب ان تكون 7 حروف على الأقل و 15 حرفاً على الأكثر.'));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (!onlyLettersAndDigits.test(user.password) || user.password.includes(' ')) {\r\n\t\t\tyield put(showAlert('warn', 'كلمة المرور يجب ان تحتوي على أحرف وأرقام.'));\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (user.password !== user.confirmPassword) {\r\n\t\t\tyield put(showAlert('warn', 'كلمة المرور ليست متطابقة مع تأكيد كلمة المرور.'));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}\r\n\r\n\tif (!user.email || user.email.trim() === '') {\r\n\t\tyield put(showRequiredAlert('البريد الإلكتروني'));\r\n\t\treturn false;\r\n\t}\r\n\tif (!user.arName || user.arName.trim() === '') {\r\n\t\tyield put(showRequiredAlert('الاسم العربي'));\r\n\t\treturn false;\r\n\t}\r\n\tif (!user.enName || user.enName.trim() === '') {\r\n\t\tyield put(showRequiredAlert('الاسم الانجليزي'));\r\n\t\treturn false;\r\n\t}\r\n\tif (!user.mobile || user.mobile.trim() === '') {\r\n\t\tyield put(showRequiredAlert('رقم الهاتف'));\r\n\t\treturn false;\r\n\t}\r\n\tif (!user.jobDescription || user.jobDescription.trim() === '') {\r\n\t\tyield put(showRequiredAlert('الوصف الوظيفي'));\r\n\t\treturn false;\r\n\t}\r\n\r\n\treturn true;\r\n}\r\n\r\nfunction* updateUserSaga(action: UpdateUserAction) {\r\n\tyield put(clearAlert());\r\n\tconst { userID } = action;\r\n\tconst { draftUser, pageNumber } = yield select(state => state.user);\r\n\r\n\tconst isValid = yield validateUser(draftUser, true);\r\n\tif (!isValid) return;\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\r\n\t\tyield call(updateUserApi, draftUser, userID);\r\n\t\tyield put(updateUserResult(false));\r\n\t\tyield put(replace('Users'));\r\n\t\tyield put(refetchUsers(pageNumber));\r\n\t\tyield put(showUpdatedSuccessfullyAlert());\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(updateUserResult(true));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* deleteUserSaga() {\r\n\tyield put(clearAlert());\r\n\r\n\ttry {\r\n\t\tconst userToDelete = yield select((state: AppState) => state.user.draftUser);\r\n\t\tconst newUser = yield select((state: AppState) => state.user.newUser);\r\n\t\tconst pageNumber = yield select((state: AppState) => state.user.pageNumber);\r\n\r\n\t\tif (!userToDelete || !newUser) {\r\n\t\t\tyield put(showRequiredAlert('المستخدم الجديد', 'select'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tyield put(showProgress());\r\n\t\tyield call(deleteUserApi, userToDelete.id, newUser.id);\r\n\t\tyield put(visibleDeleteModal(false));\r\n\t\tyield put(refetchUsers(pageNumber));\r\n\t\tyield put(showRemovedSuccessfullyAlert());\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* addUserSaga() {\r\n\tyield put(clearAlert());\r\n\tconst users = yield select((state: AppState) => state.user.bulkUsers);\r\n\tconst organizations = yield select((state: AppState) => state.user.bulkUsersOrganizations);\r\n\tconst pageNumber = yield select(state => state.user.pageNumber);\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst failedUserList = yield call(addUserApi, users, organizations);\r\n\t\tyield put(refetchUsers(pageNumber));\r\n\t\tif (failedUserList.length === 0) {\r\n\t\t\tyield put(replace('Users'));\r\n\t\t\tyield put(showCreatedSuccessfullyAlert());\r\n\t\t\tyield put(addUserResult(false));\r\n\t\t} else {\r\n\t\t\tyield put(setIsStep2(false));\r\n\t\t\tyield put(showAlert('warn', 'تعذرت إضافة المستخدمين في الجدول أدناه. يرجى التحقق من المعلومات والمحاولة مرة أخرى.'));\r\n\t\t\tyield put(addUserResult(false, failedUserList));\r\n\t\t}\r\n\t} catch (e) {\r\n\t\tyield put(addUserResult(true));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* findAdUserSaga() {\r\n\tyield put(clearAlert());\r\n\r\n\ttry {\r\n\t\tconst adUserName = yield select((state: AppState) => state.user.adUser.adUserUserName);\r\n\r\n\t\tif (!adUserName) {\r\n\t\t\tyield put(showRequiredAlert('اسم الدخول'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tyield put(showProgress());\r\n\t\tyield call(validateAdUserApi, adUserName);\r\n\t\tconst { exists, registered, user } = yield call(findAdUserApi, adUserName);\r\n\t\tif (!exists) {\r\n\t\t\tyield put(showAlert('warn', 'لم يتم العثور على هذا المستخدم في النظام.'));\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (registered) {\r\n\t\t\tyield put(showAlert('warn', 'يوجد مستخدم مسجل في النظام بنفس اسم هذا المستخدم.'));\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tyield put(fillAdUserInformations(user));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* addAdUserSaga() {\r\n\tyield put(clearAlert());\r\n\tconst organizations: SelectableValue[] = yield select(state => state.user.adUser.adUserOrganizations);\r\n\tconst bulkUsers: AdUser[] = yield select((state: AppState) => state.user.bulkAdUsers);\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst failedUsers = yield call(addAdUserApi, bulkUsers.map(x => x.adUserUserName), organizations.map(x => x.value));\r\n\t\tif (failedUsers.length === 0) {\r\n\t\t\tyield put(replace('AddAdUser'));\r\n\t\t\tyield put(showCreatedSuccessfullyAlert());\r\n\t\t} else {\r\n\t\t\tyield put(showAlert('warn', 'تعذرت إضافة المستخدمين في الجدول أدناه. يرجى التحقق من المعلومات والمحاولة مرة أخرى.'));\r\n\t\t\tyield put(addAdUserResult(false, failedUsers));\r\n\t\t\tyield put(goToStep1());\r\n\t\t}\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* addUserToBulkUsersSaga() {\r\n\tyield put(clearAlert());\r\n\tconst user = yield select(state => state.user.draftUser);\r\n\tconst maxBulkUsersCount = yield select((state: AppState) => state.user.maxBulkUsersCount);\r\n\r\n\ttry {\r\n\r\n\t\tconst bulkUsers = yield select(state => state.user.bulkUsers);\r\n\t\tif (bulkUsers && bulkUsers.length >= maxBulkUsersCount) {\r\n\t\t\tyield put(showAlert('warn', `لا يمكن إضافة أكثر من ${maxBulkUsersCount} مستخدم`));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tyield put(showProgress());\r\n\t\tconst isValid = yield validateUser(user);\r\n\t\tif (!isValid) {\r\n\t\t\tyield put(addUserToBulkUsersResult(true));\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tyield call(validateUserApi, user);\r\n\t\tyield put(addUserToBulkUsersResult(false));\r\n\t} catch (e) {\r\n\t\tyield put(addUserToBulkUsersResult(true));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* fetchMaxBulkUsersCountSaga() {\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst { data } = yield getMaxBulkUsers();\r\n\t\tyield put(fetchMaxBulkUsersCountResult(false, data));\r\n\t} catch (e) {\r\n\t\tyield put(fetchMaxBulkUsersCountResult(true));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* changeUserPasswordSaga(action: ChangeUserPasswordAction) {\r\n\tconst { userId, newPassword } = action;\r\n\tyield put(clearAlert());\r\n\tyield put(showProgress());\r\n\ttry {\r\n\t\tyield call(changeUserPasswordAPI, userId, newPassword);\r\n\t\tyield all([\r\n\t\t\tput(showDoneSuccessfullyAlert()),\r\n\t\t]);\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.refetch_users, fetchUsersSaga),\r\n\ttakeLatest(ActionTypes.fetch_users, fetchUsersSaga),\r\n\ttakeLatest(ActionTypes.fetch_user_orgs, fetchUserOrgsSaga),\r\n\ttakeLatest(ActionTypes.load_user, loadUserSaga),\r\n\ttakeLatest(ActionTypes.fetch_user_path, fetchUserPathSaga),\r\n\ttakeLatest(ActionTypes.update_user, updateUserSaga),\r\n\ttakeLatest(ActionTypes.delete_user, deleteUserSaga),\r\n\ttakeLatest(ActionTypes.add_user, addUserSaga),\r\n\r\n\ttakeLatest(ActionTypes.add_ad_user, addAdUserSaga),\r\n\ttakeLatest(ActionTypes.find_ad_user, findAdUserSaga),\r\n\r\n\ttakeLatest(ActionTypes.add_user_to_bulk_users, addUserToBulkUsersSaga),\r\n\ttakeLatest(ActionTypes.fetch_max_bulk_users_count, fetchMaxBulkUsersCountSaga),\r\n\r\n\ttakeLatest(ActionTypes.change_user_password, changeUserPasswordSaga),\r\n];\r\n","import { all, call, put, select, takeLatest } from 'redux-saga/effects';\r\nimport { ActionTypes, LoginUsingDelegationAction } from './types';\r\nimport { fetchMyDelegationsResult } from './actions';\r\nimport { getMyDelegationsApi } from './api';\r\nimport { login_delegation_api } from '../../Auth/logic/api';\r\n\r\nimport { clearAlert, hideProgress, navigate, showHttpErrorAlert, showProgress } from '../../Services/actions';\r\nimport { changeAccessToken } from '../../Storage/logic/actions';\r\nimport { clearUserPermissions } from '../../Auth/logic/actions';\r\n\r\nimport { AppState } from '../../../config/types';\r\n\r\nfunction* fetchMyDelegationsSaga() {\r\n\tyield put(clearAlert());\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst response = yield call(getMyDelegationsApi);\r\n\r\n\t\tyield put(fetchMyDelegationsResult(false, response.delegations, response.totalCount));\r\n\t} catch (e) {\r\n\t\tyield put(fetchMyDelegationsResult(true));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* loginUsingDelegationSaga(action: LoginUsingDelegationAction) {\r\n\tyield put(clearAlert());\r\n\tconst { delegationId } = action;\r\n\tconst { accessToken, refreshToken } = yield select((state: AppState) => state.storage);\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst response = yield call(login_delegation_api, accessToken, refreshToken, delegationId);\r\n\t\tconst { access_token, refresh_token } = response.data;\r\n\t\tyield put(changeAccessToken(access_token, refresh_token));\r\n\r\n\t\tyield put(clearUserPermissions());\r\n\t\tyield put(navigate('Dashboard'));\r\n\t} catch (e) {\r\n\t\tyield all([\r\n\t\t\tput(showHttpErrorAlert(e)),\r\n\t\t]);\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.fetch_my_delegations, fetchMyDelegationsSaga),\r\n\ttakeLatest(ActionTypes.login_using_delegation, loginUsingDelegationSaga),\r\n];\r\n\r\n","import { all, call, put, select, takeLatest } from 'redux-saga/effects';\r\nimport { AppState } from '../../../config/types';\r\n\r\nimport {\r\n\taddOrganizationsResult,\r\n\tclearDraftOrganization,\r\n\tdeleteOrganizationResult,\r\n\tfetchOrganizationsResult,\r\n\tfetchOrganizationTreeResult,\r\n\tgetParentPath,\r\n\tgetParentPathResult,\r\n\tloadOrganizationResult,\r\n\trefetchOrganizations,\r\n\tsearchOrganizationTreeResult,\r\n\tsetDeactivateOrganizationModalVisible,\r\n\ttoggleOrganizationActivationResult,\r\n\tupdateOrganizationsResult,\r\n} from './actions';\r\nimport {\r\n\tclearAlert,\r\n\thideProgress,\r\n\tnavigate,\r\n\tshowCreatedSuccessfullyAlert,\r\n\tshowDoneSuccessfullyAlert,\r\n\tshowHttpErrorAlert,\r\n\tshowProgress,\r\n\tshowRemovedSuccessfullyAlert,\r\n\tshowRequiredAlert,\r\n\tshowUpdatedSuccessfullyAlert,\r\n} from '../../Services/actions';\r\nimport {\r\n\tActionTypes,\r\n\tDeleteOrganizationAction,\r\n\tFetchOrganizationsAction,\r\n\tFetchOrganizationTreeAction,\r\n\tGetParentPathAction,\r\n\tLoadOrganizationAction,\r\n\tSearchOrganizationTreeAction,\r\n\tToggleOrganizationActivationAction,\r\n} from './types';\r\nimport {\r\n\tactivateOrganizationApi,\r\n\taddOrganization,\r\n\tcopyOrganizationApi,\r\n\tdeactivateOrganizationApi,\r\n\tdeleteOrganization,\r\n\tfetchOrganizationTree,\r\n\tgetOrganization,\r\n\tgetOrganizationParentPath,\r\n\tgetOrganizations,\r\n\tupdateOrganization,\r\n} from './api';\r\n\r\nfunction* fetchOrganizationsSaga(action: FetchOrganizationsAction) {\r\n\tyield put(clearAlert());\r\n\ttry {\r\n\t\tconst { parentId } = action;\r\n\r\n\t\tyield put(showProgress());\r\n\t\tconst response = yield call(getOrganizations, parentId);\r\n\r\n\t\tyield put(fetchOrganizationsResult(false, response.organizations, response.totalCount, parentId || undefined));\r\n\t} catch (e) {\r\n\t\tyield put(fetchOrganizationsResult(true));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* fetchOrganizationTreeSaga(action: FetchOrganizationTreeAction) {\r\n\tyield put(clearAlert());\r\n\tconst { parentId } = action;\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst response = yield call(fetchOrganizationTree, parentId);\r\n\r\n\t\tyield put(fetchOrganizationTreeResult(false, parentId, response.organizationsTree));\r\n\t} catch (e) {\r\n\t\tyield put(fetchOrganizationTreeResult(true));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* searchOrganizationTreeSaga(action: SearchOrganizationTreeAction) {\r\n\tyield put(clearAlert());\r\n\tconst { parentId, parentName } = action;\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst response = yield call(fetchOrganizationTree, parentId);\r\n\r\n\t\tyield put(searchOrganizationTreeResult(false, parentId, response.organizationsTree, parentName));\r\n\t} catch (e) {\r\n\t\tyield put(searchOrganizationTreeResult(true));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* addOrganizationSaga() {\r\n\tyield put(clearAlert());\r\n\ttry {\r\n\t\tconst draftOrganization = yield select((state: AppState) => state.organization.draftOrganization);\r\n\t\tconst parentId = draftOrganization.parent && draftOrganization.parent.id;\r\n\r\n\t\tif (!draftOrganization.name || draftOrganization.name.trim() === '') {\r\n\t\t\tyield put(showRequiredAlert('اسم الجهة'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tyield put(showProgress());\r\n\t\tyield call(addOrganization, draftOrganization.name, parentId);\r\n\t\tyield put(addOrganizationsResult(false));\r\n\t\tyield put(clearDraftOrganization());\r\n\t\tyield put(navigate('Organizations'));\r\n\t\tyield put(showCreatedSuccessfullyAlert());\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* updateOrganizationSaga() {\r\n\tyield put(clearAlert());\r\n\ttry {\r\n\t\tconst draftOrganization = yield select((state: AppState) => state.organization.draftOrganization);\r\n\t\tconst parentId = draftOrganization.parent && draftOrganization.parent.id;\r\n\r\n\t\tif (!draftOrganization.name || draftOrganization.name.trim() === '') {\r\n\t\t\tyield put(showRequiredAlert('اسم الجهة'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tyield put(showProgress());\r\n\t\tyield call(updateOrganization, draftOrganization.id, draftOrganization.name, parentId);\r\n\t\tyield put(updateOrganizationsResult(false));\r\n\t\tyield put(clearDraftOrganization());\r\n\t\tyield put(navigate('Organizations'));\r\n\t\tyield put(showUpdatedSuccessfullyAlert());\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* removeOrganizationSaga(action: DeleteOrganizationAction) {\r\n\tyield put(clearAlert());\r\n\tconst { organization } = action;\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\r\n\t\tyield call(deleteOrganization, organization.id);\r\n\t\tyield all([\r\n\t\t\tput(deleteOrganizationResult(false)),\r\n\t\t\tput(clearDraftOrganization()),\r\n\t\t\tput(refetchOrganizations('')),\r\n\t\t\tput(showRemovedSuccessfullyAlert()),\r\n\t\t]);\r\n\t} catch (e) {\r\n\t\tyield all([\r\n\t\t\tput(deleteOrganizationResult(true)),\r\n\t\t\tput(showHttpErrorAlert(e)),\r\n\t\t]);\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* getParentPathSaga(action: GetParentPathAction) {\r\n\tyield put(clearAlert());\r\n\tconst { parentId } = action;\r\n\r\n\ttry {\r\n\t\tconst response = yield call(getOrganizationParentPath, parentId);\r\n\t\tyield put(getParentPathResult(false, response.data));\r\n\t} catch (e) {\r\n\t\tyield all([\r\n\t\t\tput(getParentPathResult(true)),\r\n\t\t\tput(showHttpErrorAlert(e)),\r\n\t\t]);\r\n\t}\r\n}\r\n\r\nfunction* loadOrganizationSaga(action: LoadOrganizationAction) {\r\n\tyield put(clearAlert());\r\n\tconst { organizationId } = action;\r\n\tconst { organizations } = yield select((state: AppState) => state.organization);\r\n\r\n\tlet organization = Array.isArray(organizations) && organizations.find(x => x.id === organizationId);\r\n\r\n\tif (!organization) {\r\n\t\tyield put(showProgress());\r\n\t\ttry {\r\n\t\t\torganization = yield call(getOrganization, organizationId);\r\n\t\t} catch (e) {\r\n\t\t\tyield put(showHttpErrorAlert(e));\r\n\t\t} finally {\r\n\t\t\tyield put(hideProgress());\r\n\t\t}\r\n\t}\r\n\r\n\tyield put(loadOrganizationResult(!organization, organization));\r\n\tyield put(getParentPath(organizationId));\r\n}\r\n\r\nfunction* copyOrganizationSaga() {\r\n\tyield put(clearAlert());\r\n\r\n\ttry {\r\n\t\tconst copyFromOrganization = yield select((state: AppState) => state.organization.copyFromOrganization);\r\n\t\tconst copyToOrganization = yield select((state: AppState) => state.organization.copyToOrganization);\r\n\r\n\t\tif (!copyFromOrganization) {\r\n\t\t\tyield put(showRequiredAlert('الجهة المصدر', 'select'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (!copyToOrganization) {\r\n\t\t\tyield put(showRequiredAlert('الجهة الهدف', 'select'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tyield put(showProgress());\r\n\t\tyield call(copyOrganizationApi, copyFromOrganization.id, copyToOrganization.id);\r\n\r\n\t\tyield put(navigate('Organizations'));\r\n\t\tyield put(showCreatedSuccessfullyAlert());\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* toggleOrganizationActivationSaga(action: ToggleOrganizationActivationAction) {\r\n\tyield put(clearAlert());\r\n\tconst { organization } = action;\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\r\n\t\tif (organization.active)\r\n\t\t\tyield call(deactivateOrganizationApi, organization.id);\r\n\t\telse\r\n\t\t\tyield call(activateOrganizationApi, organization.id);\r\n\r\n\t\tyield put(setDeactivateOrganizationModalVisible(false));\r\n\t\tyield put(clearDraftOrganization());\r\n\t\tyield put(toggleOrganizationActivationResult(false, organization));\r\n\t\tyield put(showDoneSuccessfullyAlert());\r\n\t} catch (e) {\r\n\t\tyield put(setDeactivateOrganizationModalVisible(false));\r\n\t\tyield put(clearDraftOrganization());\r\n\t\tyield put(toggleOrganizationActivationResult(true, organization));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.refetch_organizations, fetchOrganizationsSaga),\r\n\ttakeLatest(ActionTypes.fetch_organizations, fetchOrganizationsSaga),\r\n\ttakeLatest(ActionTypes.search_organization_tree, searchOrganizationTreeSaga),\r\n\ttakeLatest(ActionTypes.fetch_organization_tree, fetchOrganizationTreeSaga),\r\n\ttakeLatest(ActionTypes.add_organizations, addOrganizationSaga),\r\n\ttakeLatest(ActionTypes.update_organizations, updateOrganizationSaga),\r\n\ttakeLatest(ActionTypes.delete_organizations, removeOrganizationSaga),\r\n\ttakeLatest(ActionTypes.get_parent_path, getParentPathSaga),\r\n\ttakeLatest(ActionTypes.load_organization, loadOrganizationSaga),\r\n\ttakeLatest(ActionTypes.copy_organization, copyOrganizationSaga),\r\n\ttakeLatest(ActionTypes.toggle_organization_activation, toggleOrganizationActivationSaga),\r\n];\r\n\r\n","import axios from 'axios';\r\nimport qs from 'qs';\r\n\r\nimport * as urls from '../../../config/urls';\r\n\r\nexport const as_login_api = (refreshToken: string, loginAsUserId: string): Promise => {\r\n\tdelete axios.defaults.headers.common['Authorization'];\r\n\r\n\tconst headers: any = {\r\n\t\t'Content-Type': 'application/x-www-form-urlencoded',\r\n\t\t'Login-As-User-Id': loginAsUserId,\r\n\t};\r\n\r\n\tconst body: any = {\r\n\t\tgrant_type: 'refresh_token',\r\n\t\trefresh_token: refreshToken,\r\n\t};\r\n\r\n\treturn axios.post(urls.login_url, qs.stringify(body), { headers });\r\n};\r\n","import { call, put, select, takeLatest } from 'redux-saga/effects';\r\n\r\nimport { ActionTypes } from './types';\r\nimport { clearAlert, hideProgress, showHttpErrorAlert, showProgress, showRequiredAlert } from '../../Services/actions';\r\nimport { AppState } from '../../../config/types';\r\nimport { as_login_api } from './api';\r\nimport { changeAccessToken, changeIsLoggedIn } from '../../Storage/logic/actions';\r\n\r\nfunction* loginAsSaga() {\r\n\tyield put(clearAlert());\r\n\tconst { refreshToken } = yield select((state: AppState) => state.storage);\r\n\tconst selectedUser = yield select(state => state.loginAs.selectedUser);\r\n\r\n\tif (!selectedUser) {\r\n\t\tyield put(showRequiredAlert('المستخدم', 'select'));\r\n\t\treturn;\r\n\t}\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst response = yield call(as_login_api, refreshToken, selectedUser.id);\r\n\t\tconst { access_token, refresh_token } = response.data;\r\n\r\n\t\t// This action will clear the entire state\r\n\t\tyield put({ type: 'GENERAL__CLEAR_STATE' });\r\n\t\tsessionStorage.clear();\r\n\r\n\t\tyield put(changeAccessToken(access_token, refresh_token));\r\n\t\tyield put(changeIsLoggedIn(true));\r\n\r\n\t\t//@ts-ignore\r\n\t\twindow.location.reload();\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.login_as, loginAsSaga),\r\n];\r\n","import { Schema } from 'morphism';\r\nimport { Permission, PermissionTemplate } from './types';\r\n\r\nexport const permissionTemplateMap: Schema = {\r\n\tid: 'templateID',\r\n\ttemplateName: 'templateName',\r\n\tdefaultTemplate: 'isDefault',\r\n\tpermissions: iteratee => iteratee.permissions.map((x: any) => x.permissionID),\r\n};\r\n\r\nexport const permissionMap: Schema = {\r\n\tid: 'permissionID',\r\n\tname: 'permissionName',\r\n};\r\n","import { AxiosRequestConfig } from 'axios';\r\nimport { morphism } from 'morphism';\r\nimport { request } from '../../../config/utilities';\r\nimport {\r\n\tadd_permissionTemplate_url,\r\n\tdelete_permissionTemplate_url,\r\n\tget_all_permissions_url,\r\n\tget_permissionTemplate_url,\r\n\tget_permissionTemplates_url,\r\n\tupdate_permissionTemplate_url,\r\n} from '../../../config/urls';\r\nimport { permissionMap, permissionTemplateMap } from './mapper';\r\n\r\nexport const getPermissionTemplatesApi = async () => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_permissionTemplates_url,\r\n\t\tmethod: 'GET',\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\treturn {\r\n\t\ttotalCount: response.data.totalCount,\r\n\t\tpermissionTemplates: morphism(permissionTemplateMap, response.data.permissionTemplates as any[]),\r\n\t};\r\n};\r\n\r\nexport const getAllPermissionsApi = async () => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_all_permissions_url,\r\n\t\tmethod: 'GET',\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\r\n\treturn morphism(permissionMap, response.data as any[]);\r\n};\r\n\r\nexport const getPermissionTemplateApi = async (permissionTemplateId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_permissionTemplate_url,\r\n\t\tmethod: 'GET',\r\n\r\n\t\tparams: {\r\n\t\t\tpermissionTemplateId: permissionTemplateId,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\treturn morphism(permissionTemplateMap, response.data);\r\n};\r\n\r\nexport const addPermissionTemplateApi = async (templateName: string, isDefault: boolean, permissions: string[]) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: add_permissionTemplate_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tTemplateName: templateName,\r\n\t\t\tIsDefault: isDefault,\r\n\t\t\tPermissions: permissions,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\treturn morphism(permissionTemplateMap, response.data);\r\n};\r\n\r\nexport const updatePermissionTemplateApi = async (templateId: string, templateName: string, isDefault: boolean, permissions: string[]) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: update_permissionTemplate_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tTemplateID: templateId,\r\n\t\t\tTemplateName: templateName,\r\n\t\t\tIsDefault: isDefault,\r\n\t\t\tPermissions: permissions,\r\n\t\t},\r\n\t};\r\n\r\n\tawait request(options);\r\n};\r\n\r\nexport const deletePermissionTemplateApi = async (id: string) => {\r\n\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: delete_permissionTemplate_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tTemplateID: id,\r\n\t\t},\r\n\t};\r\n\tawait request(options);\r\n};\r\n","import { all, call, put, select, takeLatest } from 'redux-saga/effects';\r\nimport { AppState } from '../../../config/types';\r\n\r\nimport {\r\n\taddPermissionTemplateResult,\r\n\tclearDraftPermissionTemplate,\r\n\tfetchPermissionTemplatesResult,\r\n\tgetAllPermissionResult,\r\n\tloadPermissionTemplateResult, refetchPermissionTemplates,\r\n\tremovePermissionTemplateResult,\r\n\tupdatePermissionTemplateResult,\r\n} from './actions';\r\n\r\nimport { ActionTypes, LoadPermissionTemplateAction, RemovePermissionTemplateAction } from './types';\r\nimport {\r\n\taddPermissionTemplateApi,\r\n\tdeletePermissionTemplateApi,\r\n\tgetAllPermissionsApi,\r\n\tgetPermissionTemplateApi,\r\n\tgetPermissionTemplatesApi,\r\n\tupdatePermissionTemplateApi,\r\n} from './api';\r\nimport {\r\n\tclearAlert,\r\n\thideProgress,\r\n\treplace,\r\n\tshowAlert,\r\n\tshowCreatedSuccessfullyAlert,\r\n\tshowHttpErrorAlert,\r\n\tshowProgress,\r\n\tshowRemovedSuccessfullyAlert,\r\n\tshowRequiredAlert,\r\n\tshowUpdatedSuccessfullyAlert,\r\n} from '../../Services/actions';\r\n\r\nfunction* fetchPermissionTemplatesSaga() {\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst response = yield call(getPermissionTemplatesApi);\r\n\r\n\t\tyield put(fetchPermissionTemplatesResult(false, response.permissionTemplates, response.totalCount));\r\n\t} catch (e) {\r\n\t\tyield put(fetchPermissionTemplatesResult(true, [], 0));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* loadPermissionTemplateSaga(action: LoadPermissionTemplateAction) {\r\n\tyield put(clearAlert());\r\n\tconst { permissionTemplateId } = action;\r\n\tconst { permissionTemplates } = yield select((state: AppState) => state.permissionTemplate);\r\n\r\n\tlet permissionTemplate = Array.isArray(permissionTemplates) && permissionTemplates.find(x => x.id === permissionTemplateId);\r\n\r\n\tif (!permissionTemplate) {\r\n\t\tyield put(showProgress());\r\n\t\ttry {\r\n\t\t\tpermissionTemplate = yield call(getPermissionTemplateApi, permissionTemplateId);\r\n\t\t} catch (e) {\r\n\t\t\tyield put(showHttpErrorAlert(e));\r\n\t\t} finally {\r\n\t\t\tyield put(hideProgress());\r\n\t\t}\r\n\t}\r\n\r\n\tyield put(loadPermissionTemplateResult(!permissionTemplate, permissionTemplate));\r\n}\r\n\r\nfunction* getAllPermissionsSaga() {\r\n\tyield put(clearAlert());\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\r\n\t\tconst response = yield call(getAllPermissionsApi);\r\n\t\tyield put(getAllPermissionResult(false, response));\r\n\t} catch (e) {\r\n\t\tyield put(getAllPermissionResult(true));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* addPermissionTemplateSaga() {\r\n\tyield put(clearAlert());\r\n\ttry {\r\n\r\n\t\tconst { draftPermissionTemplate } = yield select((state: AppState) => state.permissionTemplate);\r\n\r\n\t\tif (!draftPermissionTemplate.templateName) {\r\n\t\t\tyield put(showRequiredAlert('اسم القالب'));\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (draftPermissionTemplate.permissions.length === 0) {\r\n\t\t\tyield put(showAlert('warn', 'يرجى تحديد صلاحية واحدة على الأقل'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tyield put(showProgress());\r\n\r\n\t\tyield call(addPermissionTemplateApi, draftPermissionTemplate.templateName, draftPermissionTemplate.defaultTemplate, draftPermissionTemplate.permissions);\r\n\r\n\t\tyield all([\r\n\t\t\tput(addPermissionTemplateResult(false)),\r\n\t\t\tput(clearDraftPermissionTemplate()),\r\n\t\t\tput(replace('PermissionTemplates')),\r\n\t\t\tput(showCreatedSuccessfullyAlert()),\r\n\t\t]);\r\n\t} catch (e) {\r\n\t\tyield all([\r\n\t\t\tput(addPermissionTemplateResult(true)),\r\n\t\t\tput(showHttpErrorAlert(e)),\r\n\t\t]);\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* updatePermissionTemplateSaga() {\r\n\tyield put(clearAlert());\r\n\ttry {\r\n\r\n\t\tconst { draftPermissionTemplate } = yield select((state: AppState) => state.permissionTemplate);\r\n\r\n\t\tif (!draftPermissionTemplate.templateName) {\r\n\t\t\tyield put(showRequiredAlert('اسم القالب'));\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (draftPermissionTemplate.permissions.length === 0) {\r\n\t\t\tyield put(showAlert('warn', 'يرجى تحديد صلاحية واحدة على الأقل'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tyield put(showProgress());\r\n\t\tyield call(updatePermissionTemplateApi, draftPermissionTemplate.id, draftPermissionTemplate.templateName, draftPermissionTemplate.defaultTemplate, draftPermissionTemplate.permissions);\r\n\r\n\t\tyield all([\r\n\t\t\tput(updatePermissionTemplateResult(false)),\r\n\t\t\tput(clearDraftPermissionTemplate()),\r\n\t\t\tput(replace('PermissionTemplates')),\r\n\t\t\tput(showUpdatedSuccessfullyAlert()),\r\n\t\t]);\r\n\t} catch (e) {\r\n\t\tyield all([\r\n\t\t\tput(updatePermissionTemplateResult(true)),\r\n\t\t\tput(showHttpErrorAlert(e)),\r\n\t\t]);\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* removePermissionTemplateSaga(action: RemovePermissionTemplateAction) {\r\n\tyield put(clearAlert());\r\n\tconst { permissionId } = action;\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\r\n\t\tyield call(deletePermissionTemplateApi, permissionId);\r\n\t\tyield put(removePermissionTemplateResult(false));\r\n\t\tyield put(refetchPermissionTemplates());\r\n\t\tyield put(showRemovedSuccessfullyAlert());\r\n\t} catch (e) {\r\n\t\tyield all([\r\n\t\t\tput(removePermissionTemplateResult(true)),\r\n\t\t\tput(showHttpErrorAlert(e)),\r\n\t\t]);\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.refetch_permission_templates, fetchPermissionTemplatesSaga),\r\n\ttakeLatest(ActionTypes.fetch_permission_templates, fetchPermissionTemplatesSaga),\r\n\ttakeLatest(ActionTypes.load_permission_template, loadPermissionTemplateSaga),\r\n\ttakeLatest(ActionTypes.add_permission_template, addPermissionTemplateSaga),\r\n\ttakeLatest(ActionTypes.remove_permission_template, removePermissionTemplateSaga),\r\n\ttakeLatest(ActionTypes.update_permission_template, updatePermissionTemplateSaga),\r\n\ttakeLatest(ActionTypes.get_all_permissions, getAllPermissionsSaga),\r\n];\r\n\r\n","import { Permission, PermissionTemplate } from './types';\r\nimport { Schema } from 'morphism';\r\nimport { SelectableValue } from '../../../config/types';\r\nimport { User } from '../../Users/logic/types';\r\n\r\nexport const permissionMap: Schema = {\r\n\t// @ts-ignore\r\n\tid: {\r\n\t\tpath: 'permissionID',\r\n\t\tfn: (value) => String(value),\r\n\t},\r\n\tname: 'permissionName',\r\n\t// @ts-ignore\r\n\tpermissionCategoryId: {\r\n\t\tpath: 'permissionCategory.categoryID',\r\n\t\tfn: (value) => String(value),\r\n\t},\r\n};\r\n\r\nexport const permissionCategoriesMap: Schema = {\r\n\t// @ts-ignore\r\n\tvalue: {\r\n\t\tpath: 'categoryID',\r\n\t\tfn: (value) => String(value),\r\n\t},\r\n\tlabel: 'categoryName',\r\n};\r\n\r\nexport const permissionTemplateMap: Schema = {\r\n\t// @ts-ignore\r\n\tid: {\r\n\t\tpath: 'templateID',\r\n\t\tfn: (value) => String(value),\r\n\t},\r\n\tname: 'templateName',\r\n};\r\n\r\nexport const userMap: Schema = {\r\n\t// @ts-ignore\r\n\tid: {\r\n\t\tpath: 'userID',\r\n\t\tfn: (value) => String(value),\r\n\t},\r\n\tuserName: 'arName',\r\n\temail: 'email',\r\n\tjobDescription: 'jobDesc',\r\n\tactive: 'active',\r\n\tmobile: 'mobile',\r\n\tenName: 'enName',\r\n\tarName: 'arName',\r\n};\r\n","import { AxiosRequestConfig } from 'axios';\r\nimport { morphism } from 'morphism';\r\nimport { request } from '../../../config/utilities';\r\nimport {\r\n\tfetch_all_user_permissions_url,\r\n\tfetch_current_user_permissions_url,\r\n\tfetch_permission_categories_url,\r\n\tfetch_user_url,\r\n\tget_permissionTemplates_url,\r\n\tget_user_permissionTemplates_url,\r\n\tupdate_user_permission_templates_url,\r\n\tupdate_user_permissions_url,\r\n} from '../../../config/urls';\r\n\r\nimport { permissionCategoriesMap, permissionMap, permissionTemplateMap, userMap } from './mapper';\r\n\r\nexport const fetchAllUserPermissionsApi = async () => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: fetch_all_user_permissions_url,\r\n\t\tmethod: 'GET',\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\treturn {\r\n\t\ttotalCount: response.data.totalCount,\r\n\t\tuserPermissions: morphism(permissionMap, response.data.userPermissions as any[]),\r\n\t};\r\n};\r\n\r\nexport const fetchCurrentUserPermissionsApi = async (userId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: fetch_current_user_permissions_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\tuserId: userId,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\r\n\treturn morphism(permissionMap, response.data as any[]);\r\n};\r\n\r\nexport const fetchPermissionsCategoriesApi = async () => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: fetch_permission_categories_url,\r\n\t\tmethod: 'GET',\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\treturn morphism(permissionCategoriesMap, response.data as any[]);\r\n};\r\n\r\nexport const updateUserPermissionApi = async (userId: string, permissions: string[]) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: update_user_permissions_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tUserId: userId,\r\n\t\t\tPermissions: permissions,\r\n\t\t},\r\n\t};\r\n\r\n\tawait request(options);\r\n};\r\n\r\nexport const getPermissionTemplatesApi = async () => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_permissionTemplates_url,\r\n\t\tmethod: 'GET',\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\treturn {\r\n\t\ttotalCount: response.data.totalCount,\r\n\t\tpermissionTemplates: morphism(permissionTemplateMap, response.data.permissionTemplates as any[]),\r\n\t};\r\n};\r\n\r\nexport const getUserPermissionTemplatesApi = async (userId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_user_permissionTemplates_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\tuserId: userId,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\treturn {\r\n\t\tpermissionTemplates: morphism(permissionTemplateMap, response.data as any[]),\r\n\t};\r\n};\r\n\r\nexport const updateUserPermissionTemplateApi = async (userId: string, permissionTemplates: string[]) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: update_user_permission_templates_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tUserId: userId,\r\n\t\t\tPermissionsTemplatesIds: permissionTemplates,\r\n\t\t},\r\n\t};\r\n\r\n\tawait request(options);\r\n};\r\n\r\nexport const fetchUserApi = async (userId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\tmethod: 'GET',\r\n\t\turl: fetch_user_url,\r\n\t\tparams: {\r\n\t\t\tuserId: userId,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\r\n\treturn morphism(userMap, response.data);\r\n};\r\n\r\n\r\n","import { call, put, select, takeLatest } from 'redux-saga/effects';\r\n\r\nimport {\r\n\tfetchCurrentUserPermissionsResult,\r\n\tfetchPermissionCategoriesResult,\r\n\tfetchPermissionTemplatesResult,\r\n\tfetchUserPermissionsResult,\r\n\tfetchUserPermissionTemplateResult,\r\n\tloadUserResult,\r\n} from './action';\r\n\r\nimport {\r\n\tActionTypes,\r\n\tFetchCurrentUserPermissionsAction,\r\n\tFetchUserPermissionTemplateAction,\r\n\tLoadUserAction,\r\n\tUpdateUserPermissionAction,\r\n\tUpdateUserPermissionTemplateAction,\r\n} from './types';\r\nimport {\r\n\tfetchAllUserPermissionsApi,\r\n\tfetchCurrentUserPermissionsApi,\r\n\tfetchPermissionsCategoriesApi,\r\n\tfetchUserApi,\r\n\tgetPermissionTemplatesApi,\r\n\tgetUserPermissionTemplatesApi,\r\n\tupdateUserPermissionApi,\r\n\tupdateUserPermissionTemplateApi,\r\n} from './api';\r\nimport {\r\n\tclearAlert,\r\n\thideProgress,\r\n\treplace,\r\n\tshowHttpErrorAlert,\r\n\tshowProgress,\r\n\tshowUpdatedSuccessfullyAlert,\r\n} from '../../Services/actions';\r\nimport { AppState } from '../../../config/types';\r\n\r\nfunction* fetchUserPermissionsSaga() {\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst response = yield call(fetchAllUserPermissionsApi);\r\n\r\n\t\tyield put(fetchUserPermissionsResult(false, response.userPermissions, response.totalCount));\r\n\t} catch (e) {\r\n\t\tyield put(fetchUserPermissionsResult(true));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* fetchPermissionCategoriesSaga() {\r\n\tyield put(clearAlert());\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\r\n\t\tconst response = yield call(fetchPermissionsCategoriesApi);\r\n\t\tyield put(fetchPermissionCategoriesResult(false, response));\r\n\t} catch (e) {\r\n\t\tyield put(fetchPermissionCategoriesResult(true));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* fetchCurrentUserPermissionsSaga(action: FetchCurrentUserPermissionsAction) {\r\n\ttry {\r\n\t\tconst { userId } = action;\r\n\r\n\t\tyield put(showProgress());\r\n\t\tconst response = yield call(fetchCurrentUserPermissionsApi, userId);\r\n\r\n\t\tyield put(fetchCurrentUserPermissionsResult(false, response.map((x: any) => x.id)));\r\n\t} catch (e) {\r\n\t\tyield put(fetchCurrentUserPermissionsResult(true));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* updateUserPermissionSaga(action: UpdateUserPermissionAction) {\r\n\ttry {\r\n\t\tconst { userId } = action;\r\n\t\tconst selectedPermissions = yield select((state: AppState) => state.userPermission.selectedUserPermissions);\r\n\r\n\t\tyield put(showProgress());\r\n\t\tconst response = yield call(updateUserPermissionApi, userId, selectedPermissions);\r\n\t\tyield put(replace('Users'));\r\n\t\tyield put(showUpdatedSuccessfullyAlert());\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* fetchPermissionTemplatesSaga() {\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst response = yield call(getPermissionTemplatesApi);\r\n\r\n\t\tyield put(fetchPermissionTemplatesResult(false, response.permissionTemplates, response.totalCount));\r\n\t} catch (e) {\r\n\t\tyield put(fetchPermissionTemplatesResult(true, [], 0));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* fetchUserPermissionTemplatesSaga(action: FetchUserPermissionTemplateAction) {\r\n\ttry {\r\n\t\tconst { userId } = action;\r\n\r\n\t\tyield put(showProgress());\r\n\t\tconst response = yield call(getUserPermissionTemplatesApi, userId);\r\n\r\n\t\tconst x = response.permissionTemplates.map((x: any) => x.id);\r\n\t\tyield put(fetchUserPermissionTemplateResult(false, response.permissionTemplates.map((x: any) => x.id)));\r\n\t} catch (e) {\r\n\t\tyield put(fetchUserPermissionTemplateResult(true));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* updateUserPermissionTemplateSaga(action: UpdateUserPermissionTemplateAction) {\r\n\ttry {\r\n\t\tconst { userId } = action;\r\n\t\tconst selectedTemplates = yield select((state: AppState) => state.userPermission.selectedTemplates);\r\n\r\n\t\tyield put(showProgress());\r\n\t\tconst response = yield call(updateUserPermissionTemplateApi, userId, selectedTemplates);\r\n\t\tyield put(replace('Users'));\r\n\t\tyield put(showUpdatedSuccessfullyAlert());\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* loadUserSaga(action: LoadUserAction) {\r\n\tconst { userId } = action;\r\n\tconst { users } = yield select(x => x.user);\r\n\r\n\tlet user = Array.isArray(users) && users.find(x => x.id === userId);\r\n\r\n\tif (!user) {\r\n\t\tyield put(showProgress());\r\n\t\ttry {\r\n\t\t\tuser = yield call(fetchUserApi, userId);\r\n\t\t} catch (e) {\r\n\t\t\tyield put(showHttpErrorAlert(e));\r\n\t\t}\r\n\t\tyield put(hideProgress());\r\n\t}\r\n\tyield put(loadUserResult(!user, user));\r\n}\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.fetch_user_permissions, fetchUserPermissionsSaga),\r\n\ttakeLatest(ActionTypes.fetch_current_user_permissions, fetchCurrentUserPermissionsSaga),\r\n\ttakeLatest(ActionTypes.fetch_permission_categories, fetchPermissionCategoriesSaga),\r\n\ttakeLatest(ActionTypes.update_user_permission, updateUserPermissionSaga),\r\n\ttakeLatest(ActionTypes.update_user_permission_template, updateUserPermissionTemplateSaga),\r\n\ttakeLatest(ActionTypes.fetch_permission_templates, fetchPermissionTemplatesSaga),\r\n\ttakeLatest(ActionTypes.fetch_user_permission_templates, fetchUserPermissionTemplatesSaga),\r\n\r\n\ttakeLatest(ActionTypes.load_user, loadUserSaga),\r\n];\r\n\r\n","import { all, call, put, select, takeLatest } from 'redux-saga/effects';\r\nimport moment from 'moment';\r\n\r\nimport { ActionTypes } from './types';\r\nimport { AppState } from '../../../config/types';\r\nimport { Attachment } from '../../Services/types';\r\n\r\nimport { addTaskApi, getTaskByTaskNo } from './api';\r\nimport { getTaskTypes } from '../../TaskType/logic/api';\r\nimport { getPriorities } from '../../Priority/logic/api';\r\nimport { getProcedures } from '../../Procedure/logic/api';\r\n\r\nimport { addTaskResult, clearAddTaskData, fetchLookupResult, getParentTaskByTaskNoResult } from './action';\r\nimport {\r\n\tclearAlert, clearAttachments,\r\n\thideProgress,\r\n\tshowAlert,\r\n\tshowCreatedSuccessfullyAlert,\r\n\tshowHttpErrorAlert,\r\n\tshowProgress,\r\n\tshowRequiredAlert,\r\n} from '../../Services/actions';\r\nimport { fetchTaskCount } from '../../Tasks/logic/action';\r\n\r\nfunction* fetchLookupSaga() {\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\r\n\t\tconst [taskTypes, procedures, priorities]\r\n\t\t\t= yield all([\r\n\t\t\tcall(getTaskTypes),\r\n\t\t\tcall(getProcedures),\r\n\t\t\tcall(getPriorities),\r\n\t\t]);\r\n\r\n\t\tyield put(fetchLookupResult(false, taskTypes && taskTypes.taskTypes, procedures && procedures.procedures, priorities && priorities.priorities));\r\n\t} catch (e) {\r\n\t\tyield all([\r\n\t\t\tput(showHttpErrorAlert(e)),\r\n\t\t\tput(fetchLookupResult(true)),\r\n\t\t]);\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* getTaskByTaskNoSaga() {\r\n\tyield put(clearAlert());\r\n\tconst { parentTaskNo } = yield select(x => x.addTask);\r\n\r\n\tif (!parentTaskNo) {\r\n\t\tyield put(showRequiredAlert('رقم المهمة الرئيسية'));\r\n\t\treturn;\r\n\t}\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst parentTask = yield call(getTaskByTaskNo, parentTaskNo);\r\n\r\n\t\tif (!parentTask) {\r\n\t\t\tyield put(getParentTaskByTaskNoResult(false));\r\n\t\t\tyield put(showAlert('warn', 'عذراً لا يوجد مهمة بالرقم الذي ادخلته.'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tyield put(getParentTaskByTaskNoResult(false, parentTask));\r\n\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(getParentTaskByTaskNoResult(true));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* addTaskSaga() {\r\n\tyield put(clearAlert());\r\n\ttry {\r\n\t\tconst {\r\n\t\t\ttitle, note, isSecret, parentTaskNo, hasParentTask, description, startDate, endDate, selectedProcedure, selectedPriority,\r\n\t\t\ttoUsers, copyToUsers, selectedTaskType,\r\n\t\t} = yield select((state: AppState) => state.addTask);\r\n\r\n\t\tconst { attachments } = yield select((state: AppState) => state.service);\r\n\t\tconst attachmentIds = attachments.map((x: Attachment) => x.serverId);\r\n\r\n\t\tif (!title) {\r\n\t\t\tyield put(showRequiredAlert('اسم المهمة'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (!description) {\r\n\t\t\tyield put(showRequiredAlert('وصف المهمة'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (!selectedTaskType) {\r\n\t\t\tyield put(showRequiredAlert('نوع المهمة', 'select'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (!startDate) {\r\n\t\t\tyield put(showRequiredAlert('تاريخ البداية'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (selectedTaskType.allowEditEndDate && !endDate) {\r\n\t\t\tyield put(showRequiredAlert('تاريخ النهاية'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (!moment(startDate).isBefore(endDate)) {\r\n\t\t\tyield put(showAlert('warn', 'تاريخ النهاية يجب ان يكون اكبر من تاريخ البداية.'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (!selectedProcedure) {\r\n\t\t\tyield put(showRequiredAlert('الإجراء المطلوب', 'select'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (!selectedPriority) {\r\n\t\t\tyield put(showRequiredAlert('أولوية المهمة', 'select'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (hasParentTask && !parentTaskNo) {\r\n\t\t\tyield put(showRequiredAlert('رقم المهمة الرئيسية'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (toUsers.length === 0) {\r\n\t\t\tyield put(showAlert('warn', 'يرجى ادخال مستخدم واحد على الأقل في حقل إرسال إلى.'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst toUsersIds = toUsers.map((x: any) => x.value);\r\n\t\tconst copyToUsersIds = copyToUsers.map((x: any) => x.value);\r\n\r\n\t\tyield put(showProgress());\r\n\t\tyield call(addTaskApi,\r\n\t\t\ttitle,\r\n\t\t\tdescription,\r\n\t\t\tisSecret,\r\n\t\t\thasParentTask,\r\n\t\t\tnote,\r\n\t\t\tparentTaskNo,\r\n\t\t\tselectedTaskType.id,\r\n\t\t\tselectedProcedure.id,\r\n\t\t\tselectedPriority.id,\r\n\t\t\tattachmentIds,\r\n\t\t\ttoUsersIds,\r\n\t\t\tcopyToUsersIds,\r\n\t\t\tstartDate,\r\n\t\t\tendDate);\r\n\r\n\t\tyield all([\r\n\t\t\tput(showAlert('success', 'تم إرسال المهمة بنجاح.')),\r\n\t\t\tput(addTaskResult(false)),\r\n\t\t\tput(fetchTaskCount()),\r\n\t\t\tput(clearAddTaskData()),\r\n\t\t\tput(clearAttachments()),\r\n\t\t]);\r\n\t} catch (e) {\r\n\t\tyield all([\r\n\t\t\tput(addTaskResult(true)),\r\n\t\t\tput(showHttpErrorAlert(e)),\r\n\t\t]);\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.fetch_lookup, fetchLookupSaga),\r\n\ttakeLatest(ActionTypes.get_task_by_task_no, getTaskByTaskNoSaga),\r\n\ttakeLatest(ActionTypes.add_task, addTaskSaga),\r\n];\r\n\r\n","import { ActionTypes, UploadFileResultAction, UploadFilesAction } from './types';\r\n\r\nexport const uploadFiles = (files: File[]): UploadFilesAction => ({\r\n\ttype: ActionTypes.upload_files,\r\n\tfiles,\r\n});\r\n\r\nexport const uploadFileResult = (hasError: boolean, uuid?: string, serverId?: string): UploadFileResultAction => ({\r\n\ttype: ActionTypes.upload_file_result,\r\n\thasError,\r\n\tuuid,\r\n\tserverId,\r\n});\r\n\r\n\r\n\r\n","export const upload_file_api = async () => {\r\n\tconst response = await new Promise((resolve) => setTimeout(() => {\r\n\t\tresolve();\r\n\t}, 2000));\r\n\r\n\treturn response;\r\n};\r\n","import { call, put, takeLatest } from 'redux-saga/effects';\r\n\r\nimport { uploadFileResult } from './actions';\r\nimport { ActionTypes, UploadFilesAction } from './types';\r\nimport { upload_file_api } from './api';\r\nimport { clearAlert } from '../../Services/actions';\r\n\r\nfunction* uploadFile(action: UploadFilesAction) {\r\n\tyield put(clearAlert());\r\n\tconst { files } = action;\r\n\r\n\tfor (let i = 0; i < files.length; i++) {\r\n\t\t// @ts-ignore\r\n\t\tconst uuid = files[i].uuid;\r\n\r\n\t\ttry {\r\n\t\t\tconst response = yield call(upload_file_api);\r\n\r\n\t\t\tyield put(uploadFileResult(false, uuid, '10'));\r\n\t\t} catch (e) {\r\n\t\t\tyield put(uploadFileResult(true, uuid));\r\n\t\t}\r\n\t}\r\n}\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.upload_files, uploadFile),\r\n];\r\n\r\n","import axios, { AxiosRequestConfig } from 'axios';\r\nimport { morphism } from 'morphism';\r\n\r\nimport { request } from '../../../config/utilities';\r\nimport {\r\n\tcan_confirm_task_url,\r\n\tcan_forward_cc_task_url,\r\n\tcan_postpone_task_url,\r\n\tcan_retrieve_task_url,\r\n\tcompletion_rate_task_url,\r\n\tconfirm_task_url,\r\n\tfetch_task_count_url,\r\n\tfetch_tasks_url,\r\n\tfinish_task_url,\r\n\tforward_cc_task_url,\r\n\tget_task_by_task_no_url,\r\n\tkill_task_url,\r\n\tpostpone_task_url,\r\n\treassign_task_url,\r\n\treassign_tasks_url,\r\n\treject_task_url,\r\n\tretrieve_task_url,\r\n\tstart_task_url,\r\n} from '../../../config/urls';\r\nimport { taskCountMap, taskHeaderMap, taskMap } from './mapper';\r\nimport { pageSize } from '../../../config/constant';\r\nimport { InboxMode } from './type';\r\n\r\nexport const fetchTasksApi = async (pageNumber?: number, inboxMode?: InboxMode) => {\r\n\tconst config: AxiosRequestConfig = {\r\n\t\tmethod: 'GET',\r\n\t\turl: fetch_tasks_url,\r\n\t\tparams: {\r\n\t\t\tpageSize,\r\n\t\t\tpageNumber: pageNumber || 1,\r\n\t\t\tinboxMode: inboxMode || 0,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(config);\r\n\treturn {\r\n\t\ttasks: morphism(taskHeaderMap, response.data.tasks),\r\n\t\ttotalCount: response.data.totalCount,\r\n\t};\r\n};\r\n\r\nexport const fetchTaskCountApi = async () => {\r\n\tconst config: AxiosRequestConfig = {\r\n\t\tmethod: 'GET',\r\n\t\turl: fetch_task_count_url,\r\n\t};\r\n\tconst response = await request(config);\r\n\treturn {\r\n\t\ttaskCount: morphism(taskCountMap, response.data.taskCount),\r\n\t\tnotificationCount: response.data.notificationCount,\r\n\t};\r\n};\r\n\r\n// Start Task\r\nexport const startTaskFileApi = async (userTaskId: string, attachments: string[], notes: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: start_task_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tUserTaskId: userTaskId,\r\n\t\t\tAttachments: attachments,\r\n\t\t\tNotes: notes,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\treturn response.data;\r\n};\r\n\r\n// Finish Task\r\nexport const finishTaskFileApi = async (userTaskId: string, workHours: string, attachments: string[], notes: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: finish_task_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tUserTaskId: userTaskId,\r\n\t\t\tWorkHours: workHours,\r\n\t\t\tAttachments: attachments,\r\n\t\t\tNotes: notes,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\treturn response.data;\r\n};\r\n\r\n// Completion Rate Task\r\nexport const completionRateTaskFileApi = async (userTaskId: string, completionRate: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: completion_rate_task_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tUserTaskId: userTaskId,\r\n\t\t\tCompletionRate: completionRate,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\treturn response.data;\r\n};\r\n\r\n// Reject Task\r\nexport const rejectedTaskFileApi = async (userTaskId: string, attachments: string[], notes: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: reject_task_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tUserTaskId: userTaskId,\r\n\t\t\tAttachments: attachments,\r\n\t\t\tRejectionReason: notes,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n};\r\n\r\n// Postpone Task\r\nexport const postponeTaskCanPostponeTaskApi = async (userTaskId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: can_postpone_task_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\tUserTaskId: userTaskId,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\treturn response.data;\r\n};\r\nexport const postponeTaskApi = async (userTaskId: string, attachments: string[], postponeReason: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: postpone_task_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tUserTaskId: userTaskId,\r\n\t\t\tAttachments: attachments,\r\n\t\t\tPostponeReason: postponeReason,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\treturn response.data;\r\n};\r\n\r\n// Confirm Task\r\nexport const canConfirmTaskApi = async (userTaskId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: can_confirm_task_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\tUserTaskId: userTaskId,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\treturn response.data;\r\n};\r\nexport const confirmTaskApi = async (userTaskId: string, attachments: string[], note: string, rating: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: confirm_task_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tUserTaskId: userTaskId,\r\n\t\t\tAttachments: attachments,\r\n\t\t\tConfirmNote: note,\r\n\t\t\tEvaluation: rating,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\treturn response.data;\r\n};\r\n\r\n// Retrieve Task\r\nexport const canRetrieveTaskApi = async (userTaskId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: can_retrieve_task_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\tUserTaskId: userTaskId,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\treturn response.data;\r\n};\r\nexport const retrieveTaskFileApi = async (userTaskId: string, notes: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: retrieve_task_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tUserTaskId: userTaskId,\r\n\t\t\tNotes: notes,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\treturn response.data;\r\n};\r\n\r\n// Reassign Task\r\nexport const reassignTaskFileApi = async (userTaskId: string, toUserId: string, attachments: string[], notes: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: reassign_task_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tUserTaskId: userTaskId,\r\n\t\t\tToUserId: toUserId,\r\n\t\t\tAttachments: attachments,\r\n\t\t\tNotes: notes,\r\n\t\t},\r\n\t};\r\n\r\n\treturn await request(options);\r\n};\r\n\r\nexport const reassignAllTasksApi = async (userTaskIds: string[], toUserId: string, attachments: string[], notes: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: reassign_tasks_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tUserTaskIds: userTaskIds,\r\n\t\t\tToUserId: toUserId,\r\n\t\t\tAttachments: attachments,\r\n\t\t\tNotes: notes,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\treturn response.data;\r\n};\r\n\r\n// Kill Task\r\nexport const getTaskByTaskNo = async (taskNo: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_task_by_task_no_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\ttaskNo: taskNo,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await axios(options);\r\n\r\n\tif (response.data === null) {\r\n\t\treturn false;\r\n\t}\r\n\r\n\treturn morphism(taskMap, response.data);\r\n};\r\n\r\nexport const killTaskApi = async (taskId: string, notes: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: kill_task_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tTaskId: taskId,\r\n\t\t\tNotes: notes,\r\n\t\t},\r\n\t};\r\n\r\n\treturn await request(options);\r\n};\r\n\r\n// ForwardCC Task\r\nexport const canForwardCCTaskApi = async (userTaskId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: can_forward_cc_task_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\tUserTaskId: userTaskId,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\treturn response.data;\r\n};\r\nexport const forwardCCTaskFileApi = async (userTaskId: string, toUserIds: string[], attachments: string[], notes: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: forward_cc_task_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tUserTaskId: userTaskId,\r\n\t\t\tToUserId: toUserIds,\r\n\t\t\tAttachments: attachments,\r\n\t\t\tNotes: notes,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\r\n\treturn response.data;\r\n};\r\n","import { all, call, put, select, takeLatest } from 'redux-saga/effects';\r\n\r\nimport {\r\n\tActionTypes,\r\n\tCompletionRateTaskCompletionRateTaskAction,\r\n\tConfirmTaskCanConfirmTaskAction,\r\n\tConfirmTaskConfirmTaskAction,\r\n\tFetchTasksAction,\r\n\tFinishTaskFinishTaskAction,\r\n\tForwardCCTaskCanForwardCCTaskAction,\r\n\tForwardCCTaskForwardCCTaskAction,\r\n\tPostponeTaskCanPostponeTaskAction,\r\n\tPostponeTaskPostponeTaskAction,\r\n\tReassignTaskReassignTaskAction,\r\n\tRejectTaskAction,\r\n\tRetrieveTaskAction,\r\n\tRetrieveTaskCanRetrieveTaskAction,\r\n\tStartTaskStartTaskAction,\r\n} from './type';\r\nimport {\r\n\tcanConfirmTaskApi,\r\n\tcanForwardCCTaskApi,\r\n\tcanRetrieveTaskApi,\r\n\tcompletionRateTaskFileApi,\r\n\tconfirmTaskApi,\r\n\tfetchTaskCountApi,\r\n\tfetchTasksApi,\r\n\tfinishTaskFileApi,\r\n\tforwardCCTaskFileApi,\r\n\tgetTaskByTaskNo,\r\n\tkillTaskApi,\r\n\tpostponeTaskApi,\r\n\tpostponeTaskCanPostponeTaskApi,\r\n\treassignAllTasksApi,\r\n\treassignTaskFileApi,\r\n\trejectedTaskFileApi,\r\n\tretrieveTaskFileApi,\r\n\tstartTaskFileApi,\r\n} from './api';\r\n\r\nimport {\r\n\tconfirmTaskCanConfirmTaskResult,\r\n\tfetchTaskCount,\r\n\tfetchTaskCountResult,\r\n\tfetchTasksResult,\r\n\tforwardCCTaskCanForwardCCTaskResult,\r\n\tkillTaskClearKillTaskModal,\r\n\tkillTaskGetTaskByTaskNoResult,\r\n\tkillTaskVisibleKillTaskModalAction,\r\n\tpostponeTaskCanPostponeTaskResult,\r\n\trefetchTasks,\r\n\tretrieveTaskCanRetrieveTaskResult,\r\n} from './action';\r\nimport {\r\n\tclearAlert,\r\n\thideProgress,\r\n\treplace,\r\n\tshowAccessDeniedAlert,\r\n\tshowAlert,\r\n\tshowDoneSuccessfullyAlert,\r\n\tshowHttpErrorAlert,\r\n\tshowProgress,\r\n\tshowRequiredAlert,\r\n} from '../../Services/actions';\r\nimport { AppState } from '../../../config/types';\r\nimport { Attachment } from '../../Services/types';\r\nimport { changeActiveSlide } from '../../TaskDetails/logic/actions';\r\nimport { clearTasksCart, removeTaskFromCart, removeTaskFromCartByTaskId } from '../../TasksCart/logic/actions';\r\n\r\nfunction* fetchTasksSaga(action: FetchTasksAction) {\r\n\tyield put(clearAlert());\r\n\tconst { pageNumber } = action;\r\n\tconst { inboxMode } = yield select((state: AppState) => state.tasks);\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst { tasks, totalCount } = yield call(fetchTasksApi, pageNumber, inboxMode);\r\n\t\tyield put(fetchTasksResult(false, tasks, totalCount));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(fetchTasksResult(true));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* fetchTaskCountSaga() {\r\n\ttry {\r\n\t\tconst { taskCount, notificationCount } = yield call(fetchTaskCountApi);\r\n\t\tyield put(fetchTaskCountResult(false, taskCount, notificationCount));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t}\r\n}\r\n\r\n// Start Task\r\nfunction* startTaskSaga(action: StartTaskStartTaskAction) {\r\n\tyield put(clearAlert());\r\n\tconst { userTaskId } = action;\r\n\tconst { notes } = yield select((state: AppState) => state.tasks.startTask);\r\n\r\n\tconst { attachments } = yield select((state: AppState) => state.service);\r\n\tconst attachmentIds = attachments.map((x: Attachment) => x.serverId);\r\n\r\n\tif (!notes || notes.trim() === '') {\r\n\t\tyield put(showRequiredAlert('الملاحظات', 'enter'));\r\n\t\treturn;\r\n\t}\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tyield call(startTaskFileApi, userTaskId, attachmentIds, notes);\r\n\r\n\t\tyield all([\r\n\t\t\tput(refetchTasks()),\r\n\t\t\tput(fetchTaskCount()),\r\n\t\t]);\r\n\r\n\t\tconst isTaskDetailsModalVisible = yield select((state: AppState) => state.taskDetails.isTaskDetailsModalVisible);\r\n\t\tif (isTaskDetailsModalVisible) yield put(changeActiveSlide('task-info'));\r\n\t\telse yield put(replace('Tasks'));\r\n\r\n\t\tyield put(showDoneSuccessfullyAlert());\r\n\t\tyield put(removeTaskFromCart(userTaskId));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\n// Finish Task\r\nfunction* finishTaskSaga(action: FinishTaskFinishTaskAction) {\r\n\tyield put(clearAlert());\r\n\tconst { userTaskId } = action;\r\n\tconst { workHours, notes } = yield select((state: AppState) => state.tasks.finishTask);\r\n\r\n\tconst { attachments } = yield select((state: AppState) => state.service);\r\n\tconst attachmentIds = attachments.map((x: Attachment) => x.serverId);\r\n\r\n\tif (!(workHours >= 0 && workHours < 1000)) {\r\n\t\tyield put(showAlert('warn', 'يجب أن تكون ساعات العمل بين ال 0 و 1000.'));\r\n\t\treturn;\r\n\t}\r\n\tif (!notes || notes.trim() === '') {\r\n\t\tyield put(showRequiredAlert('الملاحظات', 'enter'));\r\n\t\treturn;\r\n\t}\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\r\n\t\tyield call(finishTaskFileApi, userTaskId, workHours, attachmentIds, notes);\r\n\r\n\t\tyield all([\r\n\t\t\tput(refetchTasks()),\r\n\t\t\tput(fetchTaskCount()),\r\n\t\t]);\r\n\r\n\t\tconst isTaskDetailsModalVisible = yield select((state: AppState) => state.taskDetails.isTaskDetailsModalVisible);\r\n\t\tif (isTaskDetailsModalVisible) yield put(changeActiveSlide('task-info'));\r\n\t\telse yield put(replace('Tasks'));\r\n\r\n\t\tyield put(showDoneSuccessfullyAlert());\r\n\t\tyield put(removeTaskFromCart(userTaskId));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\n// Completion Rate Task\r\nfunction* completionRateTaskSaga(action: CompletionRateTaskCompletionRateTaskAction) {\r\n\tyield put(clearAlert());\r\n\tconst { userTaskId } = action;\r\n\tconst { completionRate } = yield select((state: AppState) => state.tasks.completionRateTask);\r\n\r\n\tif (!completionRate) {\r\n\t\tyield put(showRequiredAlert('نسبة الإنجاز'));\r\n\t\treturn;\r\n\t}\r\n\tif (completionRate < 0 || completionRate > 100) {\r\n\t\tyield put(showAlert('warn', 'يجب أن تكون نسبة الإنجاز بين ال 0 و 100.'));\r\n\t\treturn;\r\n\t}\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\r\n\t\tyield call(completionRateTaskFileApi, userTaskId, completionRate);\r\n\t\tyield all([\r\n\t\t\tput(refetchTasks()),\r\n\t\t\tput(fetchTaskCount()),\r\n\t\t]);\r\n\r\n\t\tconst isTaskDetailsModalVisible = yield select((state: AppState) => state.taskDetails.isTaskDetailsModalVisible);\r\n\t\tif (isTaskDetailsModalVisible) yield put(changeActiveSlide('task-info'));\r\n\t\telse yield put(replace('Tasks'));\r\n\r\n\t\tyield put(showDoneSuccessfullyAlert());\r\n\t\tyield put(removeTaskFromCart(userTaskId));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\n// Reject Task\r\nfunction* rejectTaskSaga(action: RejectTaskAction) {\r\n\tyield put(clearAlert());\r\n\tconst { userTaskId } = action;\r\n\tconst { rejectionReason } = yield select(state => state.tasks.rejectTask);\r\n\r\n\tconst { attachments } = yield select((state: AppState) => state.service);\r\n\tconst attachmentIds = attachments.map((x: Attachment) => x.serverId);\r\n\r\n\tif (!rejectionReason || rejectionReason.trim() === '') {\r\n\t\tyield put(showRequiredAlert('سبب الرفض'));\r\n\t\treturn;\r\n\t}\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tyield call(rejectedTaskFileApi, userTaskId, attachmentIds, rejectionReason);\r\n\r\n\t\tyield all([\r\n\t\t\tput(refetchTasks()),\r\n\t\t\tput(fetchTaskCount()),\r\n\t\t]);\r\n\r\n\t\tconst isTaskDetailsModalVisible = yield select((state: AppState) => state.taskDetails.isTaskDetailsModalVisible);\r\n\t\tif (isTaskDetailsModalVisible) yield put(changeActiveSlide('task-info'));\r\n\t\telse yield put(replace('Tasks'));\r\n\r\n\t\tyield put(showDoneSuccessfullyAlert());\r\n\t\tyield put(removeTaskFromCart(userTaskId));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\n// Postpone Task\r\nfunction* canPostponeTaskSaga(action: PostponeTaskCanPostponeTaskAction) {\r\n\tconst { userTaskId } = action;\r\n\r\n\tyield put(clearAlert());\r\n\tyield put(showProgress());\r\n\r\n\ttry {\r\n\t\tconst canPostpone = yield call(postponeTaskCanPostponeTaskApi, userTaskId);\r\n\r\n\t\tif (!canPostpone)\r\n\t\t\tyield put(showAccessDeniedAlert());\r\n\r\n\t\tyield put(postponeTaskCanPostponeTaskResult(false, canPostpone));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(postponeTaskCanPostponeTaskResult(true));\r\n\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* postponeTaskSaga(action: PostponeTaskPostponeTaskAction) {\r\n\tyield put(clearAlert());\r\n\tconst { userTaskId } = action;\r\n\tconst { postponeReason } = yield select((state: AppState) => state.tasks.postponeTask);\r\n\tconst { attachments } = yield select((state: AppState) => state.service);\r\n\tconst attachmentIds = attachments.map((x: Attachment) => x.serverId);\r\n\r\n\tif (!postponeReason || postponeReason.trim() === '') {\r\n\t\tyield put(showRequiredAlert('سبب التعليق'));\r\n\t\treturn;\r\n\t}\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tyield call(postponeTaskApi, userTaskId, attachmentIds, postponeReason);\r\n\r\n\t\tyield all([\r\n\t\t\tput(refetchTasks()),\r\n\t\t\tput(fetchTaskCount()),\r\n\t\t]);\r\n\r\n\t\tconst isTaskDetailsModalVisible = yield select((state: AppState) => state.taskDetails.isTaskDetailsModalVisible);\r\n\t\tif (isTaskDetailsModalVisible) yield put(changeActiveSlide('task-info'));\r\n\t\telse yield put(replace('Tasks'));\r\n\r\n\t\tyield put(showDoneSuccessfullyAlert());\r\n\t\tyield put(removeTaskFromCart(userTaskId));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\n// Confirm Task\r\nfunction* canConfirmTaskSaga(action: ConfirmTaskCanConfirmTaskAction) {\r\n\tconst { userTaskId } = action;\r\n\r\n\tyield put(clearAlert());\r\n\tyield put(showProgress());\r\n\r\n\ttry {\r\n\t\tconst canConfirm = yield call(canConfirmTaskApi, userTaskId);\r\n\r\n\t\tif (!canConfirm)\r\n\t\t\tyield put(showAccessDeniedAlert());\r\n\r\n\t\tyield put(confirmTaskCanConfirmTaskResult(false, canConfirm));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(confirmTaskCanConfirmTaskResult(true));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* confirmTaskSaga(action: ConfirmTaskConfirmTaskAction) {\r\n\tyield put(clearAlert());\r\n\tconst { userTaskId } = action;\r\n\r\n\tconst { notes, rating } = yield select((state: AppState) => state.tasks.confirmTask);\r\n\tconst { attachments } = yield select((state: AppState) => state.service);\r\n\tconst attachmentIds = attachments.map((x: Attachment) => x.serverId);\r\n\r\n\tif (!notes || notes.trim() === '') {\r\n\t\tyield put(showRequiredAlert('الملاحظات'));\r\n\t\treturn;\r\n\t}\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tyield call(confirmTaskApi, userTaskId, attachmentIds, notes, rating);\r\n\r\n\t\tyield all([\r\n\t\t\tput(refetchTasks()),\r\n\t\t\tput(fetchTaskCount()),\r\n\t\t]);\r\n\r\n\t\tconst isTaskDetailsModalVisible = yield select((state: AppState) => state.taskDetails.isTaskDetailsModalVisible);\r\n\t\tif (isTaskDetailsModalVisible) yield put(changeActiveSlide('task-info'));\r\n\t\telse yield put(replace('Tasks'));\r\n\r\n\t\tyield put(showDoneSuccessfullyAlert());\r\n\t\tyield put(removeTaskFromCart(userTaskId));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\n// Retrieve Task\r\nfunction* canRetrieveTaskSaga(action: RetrieveTaskCanRetrieveTaskAction) {\r\n\tconst { userTaskId } = action;\r\n\r\n\tyield put(clearAlert());\r\n\tyield put(showProgress());\r\n\r\n\ttry {\r\n\t\tconst canRetrieve = yield call(canRetrieveTaskApi, userTaskId);\r\n\r\n\t\tif (!canRetrieve)\r\n\t\t\tyield put(showAccessDeniedAlert());\r\n\r\n\t\tyield put(retrieveTaskCanRetrieveTaskResult(false, canRetrieve));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(retrieveTaskCanRetrieveTaskResult(true));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* retrieveTask(action: RetrieveTaskAction) {\r\n\tyield put(clearAlert());\r\n\tconst { userTaskId } = action;\r\n\tconst notes = yield select(state => state.tasks.retrieveTask.notes);\r\n\r\n\tif (!notes || notes.trim() === '') {\r\n\t\tyield put(showRequiredAlert('الملاحظات'));\r\n\t\treturn;\r\n\t}\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tyield call(retrieveTaskFileApi, userTaskId, notes);\r\n\r\n\t\tyield all([\r\n\t\t\tput(refetchTasks()),\r\n\t\t\tput(fetchTaskCount()),\r\n\t\t]);\r\n\r\n\t\tconst isTaskDetailsModalVisible = yield select((state: AppState) => state.taskDetails.isTaskDetailsModalVisible);\r\n\t\tif (isTaskDetailsModalVisible) yield put(changeActiveSlide('task-info'));\r\n\t\telse yield put(replace('Tasks'));\r\n\r\n\t\tyield put(showDoneSuccessfullyAlert());\r\n\t\tyield put(removeTaskFromCart(userTaskId));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\n// Reassign Task\r\nfunction* reassignTaskSaga(action: ReassignTaskReassignTaskAction) {\r\n\tyield put(clearAlert());\r\n\tconst { userTaskId } = action;\r\n\tconst { user, notes } = yield select((state: AppState) => state.tasks.reassignTask);\r\n\tconst { attachments } = yield select((state: AppState) => state.service);\r\n\tconst attachmentIds = attachments.map((x: Attachment) => x.serverId);\r\n\r\n\tif (!user) {\r\n\t\tyield put(showAlert('warn', 'يرجى ادخال مستخدم في حقل إرسال إلى.'));\r\n\t\treturn;\r\n\t}\r\n\tif (!notes || notes.trim() === '') {\r\n\t\tyield put(showRequiredAlert('الملاحظات'));\r\n\t\treturn;\r\n\t}\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tyield call(reassignTaskFileApi, userTaskId, user.value, attachmentIds, notes);\r\n\r\n\t\tyield all([\r\n\t\t\tput(refetchTasks()),\r\n\t\t\tput(fetchTaskCount()),\r\n\t\t]);\r\n\r\n\t\tconst isTaskDetailsModalVisible = yield select((state: AppState) => state.taskDetails.isTaskDetailsModalVisible);\r\n\t\tif (isTaskDetailsModalVisible) yield put(changeActiveSlide('task-info'));\r\n\t\telse yield put(replace('Tasks'));\r\n\r\n\t\tyield put(showDoneSuccessfullyAlert());\r\n\t\tyield put(removeTaskFromCart(userTaskId));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* reassignAllTasksSaga() {\r\n\tyield put(clearAlert());\r\n\tconst tasksCart = yield select((state: AppState) => state.tasksCart.tasksCart);\r\n\tconst { user, notes } = yield select((state: AppState) => state.tasks.reassignTask);\r\n\tconst { attachments } = yield select((state: AppState) => state.service);\r\n\tconst attachmentIds = attachments.map((x: Attachment) => x.serverId);\r\n\r\n\tif (!user) {\r\n\t\tyield put(showAlert('warn', 'يرجى ادخال مستخدم في حقل إرسال إلى.'));\r\n\t\treturn;\r\n\t} else if (!notes || notes.trim() === '') {\r\n\t\tyield put(showRequiredAlert('الملاحظات'));\r\n\t\treturn;\r\n\t}\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst failedTasks = yield call(reassignAllTasksApi, tasksCart.map((x: any) => x.userTaskId), user.value, attachmentIds, notes);\r\n\r\n\t\tyield all([\r\n\t\t\tput(refetchTasks()),\r\n\t\t\tput(fetchTaskCount()),\r\n\t\t]);\r\n\r\n\t\tconst isTaskDetailsModalVisible = yield select((state: AppState) => state.taskDetails.isTaskDetailsModalVisible);\r\n\t\tif (isTaskDetailsModalVisible) yield put(changeActiveSlide('task-info'));\r\n\t\telse yield put(replace('TasksCart'));\r\n\r\n\t\tyield put(clearTasksCart(failedTasks));\r\n\t\tif (failedTasks.length === 0) {\r\n\t\t\tyield put(showDoneSuccessfullyAlert());\r\n\t\t} else {\r\n\t\t\tyield put(showAlert('warn', 'تعذر إسناد المهام التي لا تزال موجودة في السلة. يرجى التحقق من متطلبات العمل والمحاولة مرة أخرى.'))\r\n\t\t}\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\n// Kill Task\r\nfunction* killTaskGetTaskByTaskNoSaga() {\r\n\tyield put(clearAlert());\r\n\tconst taskNo = yield select(x => x.tasks.killTask.taskNo);\r\n\r\n\tif (!taskNo) {\r\n\t\tyield put(showRequiredAlert('رقم المهمة'));\r\n\t\treturn;\r\n\t}\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst task = yield call(getTaskByTaskNo, taskNo);\r\n\r\n\t\tif (!task) {\r\n\t\t\tyield put(showAlert('warn', 'عذراً لا يوجد مهمة بالرقم الذي ادخلته.'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tyield put(killTaskGetTaskByTaskNoResult(false, task));\r\n\t\tyield put(hideProgress());\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(killTaskGetTaskByTaskNoResult(true));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* killTaskSaga() {\r\n\tconst taskId = yield select(state => state.tasks.killTask.task.id);\r\n\tconst note = yield select(state => state.tasks.killTask.killNote);\r\n\r\n\tif (!note) {\r\n\t\tyield put(showRequiredAlert('الملاحظات'));\r\n\t\treturn;\r\n\t}\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tyield call(killTaskApi, taskId, note);\r\n\t\tyield put(killTaskVisibleKillTaskModalAction(false));\r\n\t\tyield put(killTaskClearKillTaskModal());\r\n\t\tyield put(fetchTaskCount());\r\n\t\tyield put(showDoneSuccessfullyAlert());\r\n\t\tyield put(removeTaskFromCartByTaskId(taskId));\r\n\t} catch (e) {\r\n\t\tyield all([\r\n\t\t\tput(showHttpErrorAlert(e)),\r\n\t\t]);\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\n// ForwardCC Task\r\nfunction* canForwardCCTaskSaga(action: ForwardCCTaskCanForwardCCTaskAction) {\r\n\tconst { userTaskId } = action;\r\n\r\n\tyield put(clearAlert());\r\n\tyield put(showProgress());\r\n\r\n\ttry {\r\n\t\tconst canForward = yield call(canForwardCCTaskApi, userTaskId);\r\n\r\n\t\tif (!canForward)\r\n\t\t\tyield put(showAccessDeniedAlert());\r\n\r\n\t\tyield put(forwardCCTaskCanForwardCCTaskResult(false, canForward));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(forwardCCTaskCanForwardCCTaskResult(true));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* forwardCCTaskSaga(action: ForwardCCTaskForwardCCTaskAction) {\r\n\tyield put(clearAlert());\r\n\tconst { userTaskId } = action;\r\n\tconst { users, notes } = yield select((state: AppState) => state.tasks.forwardCCTask);\r\n\tconst toUsersIds = users.map((x: any) => x.value);\r\n\tconst { attachments } = yield select((state: AppState) => state.service);\r\n\tconst attachmentIds = attachments.map((x: Attachment) => x.serverId);\r\n\r\n\tif (users.length === 0) {\r\n\t\tyield put(showAlert('warn', 'يرجى ادخال مستخدم واحد على الأقل في حقل إرسال نسخة إلى.'));\r\n\t\treturn;\r\n\t}\r\n\tif (!notes || notes.trim() === '') {\r\n\t\tyield put(showRequiredAlert('الملاحظات'));\r\n\t\treturn;\r\n\t}\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tyield call(forwardCCTaskFileApi, userTaskId, toUsersIds, attachmentIds, notes);\r\n\t\tyield all([\r\n\t\t\tput(refetchTasks()),\r\n\t\t\tput(fetchTaskCount()),\r\n\t\t]);\r\n\r\n\t\tconst isTaskDetailsModalVisible = yield select((state: AppState) => state.taskDetails.isTaskDetailsModalVisible);\r\n\t\tif (isTaskDetailsModalVisible) yield put(changeActiveSlide('task-info'));\r\n\t\telse yield put(replace('Tasks'));\r\n\r\n\t\tyield put(showDoneSuccessfullyAlert());\r\n\t\tyield put(removeTaskFromCart(userTaskId));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.fetch_tasks, fetchTasksSaga),\r\n\ttakeLatest(ActionTypes.refetch_tasks, fetchTasksSaga),\r\n\ttakeLatest(ActionTypes.fetch_task_count, fetchTaskCountSaga),\r\n\r\n\ttakeLatest(ActionTypes.start_task_start_task, startTaskSaga),\r\n\ttakeLatest(ActionTypes.finish_task_finish_task, finishTaskSaga),\r\n\ttakeLatest(ActionTypes.completion_rate_task_completion_rate_task, completionRateTaskSaga),\r\n\ttakeLatest(ActionTypes.reject_task_reject_task, rejectTaskSaga),\r\n\ttakeLatest(ActionTypes.postpone_task_can_postpone_task, canPostponeTaskSaga),\r\n\ttakeLatest(ActionTypes.postpone_task_postpone_task, postponeTaskSaga),\r\n\ttakeLatest(ActionTypes.retrieve_task_can_retrieve_task, canRetrieveTaskSaga),\r\n\ttakeLatest(ActionTypes.retrieve_task, retrieveTask),\r\n\ttakeLatest(ActionTypes.reassign_task_reassign_task, reassignTaskSaga),\r\n\ttakeLatest(ActionTypes.forward_cc_task_can_forward_cc_task, canForwardCCTaskSaga),\r\n\ttakeLatest(ActionTypes.forward_cc_task_forward_cc_task, forwardCCTaskSaga),\r\n\r\n\ttakeLatest(ActionTypes.kill_task_get_task_by_task_no, killTaskGetTaskByTaskNoSaga),\r\n\ttakeLatest(ActionTypes.kill_task_kill_task, killTaskSaga),\r\n\r\n\ttakeLatest(ActionTypes.confirm_task_can_confirm_task, canConfirmTaskSaga),\r\n\ttakeLatest(ActionTypes.confirm_task_confirm_task, confirmTaskSaga),\r\n\r\n\ttakeLatest(ActionTypes.reassign_all_tasks, reassignAllTasksSaga),\r\n];\r\n","import { AxiosRequestConfig } from 'axios';\r\nimport { morphism } from 'morphism';\r\n\r\nimport { fetch_ced_request_url, fetch_ced_requests_url, update_ced_request_url } from '../../../config/urls';\r\n\r\nimport { pageSize } from '../../../config/constant';\r\nimport { request } from '../../../config/utilities';\r\nimport { CedRequestStatus } from './types';\r\nimport { cedRequestMap } from './mapper';\r\n\r\nexport const fetchCedRequestsApi = async (cedRequestStatus: CedRequestStatus, pageNumber?: number) => {\r\n\tconst config: AxiosRequestConfig = {\r\n\t\tmethod: 'GET',\r\n\t\turl: fetch_ced_requests_url,\r\n\t\tparams: {\r\n\t\t\tpageSize,\r\n\t\t\tpageNumber: pageNumber || 1,\r\n\t\t\tcedRequestStatus: cedRequestStatus || 0,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(config);\r\n\treturn {\r\n\t\tcedRequests: morphism(cedRequestMap, response.data.cedRequests),\r\n\t\ttotalCount: response.data.totalCount,\r\n\t};\r\n};\r\n\r\nexport const fetchCedRequestApi = async (id: string) => {\r\n\tconst config: AxiosRequestConfig = {\r\n\t\tmethod: 'GET',\r\n\t\turl: fetch_ced_request_url,\r\n\t\tparams: {\r\n\t\t\tid: id,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(config);\r\n\treturn morphism(cedRequestMap, response.data);\r\n};\r\n\r\nexport const updateCedRequestApi = async (cedRequestId: string, newStatus: CedRequestStatus, newResponseExtraDays: string, newResponseNotes: string) => {\r\n\tconst config: AxiosRequestConfig = {\r\n\t\tmethod: 'POST',\r\n\t\turl: update_ced_request_url,\r\n\t\tdata: {\r\n\t\t\tcedRequestId: cedRequestId,\r\n\t\t\tnewStatus: newStatus,\r\n\t\t\tnewReponseExtraDays: newResponseExtraDays,\r\n\t\t\tnewResponseNotes: newResponseNotes\r\n\t\t},\r\n\t};\r\n\r\n\treturn await request(config);\r\n};\r\n","import { all, call, put, select, takeLatest } from 'redux-saga/effects';\r\nimport moment from 'moment';\r\n\r\nimport { AppState } from '../../../config/types';\r\nimport {\r\n\tclearAlert,\r\n\thideProgress,\r\n\tshowAlert,\r\n\tshowDoneSuccessfullyAlert,\r\n\tshowHttpErrorAlert,\r\n\tshowProgress,\r\n\tshowRequiredAlert,\r\n} from '../../Services/actions';\r\nimport {\r\n\tActionTypes,\r\n\tCedRequest,\r\n\tCedRequestStatus,\r\n\tDraftCedRequest,\r\n\tFetchCedRequestsAction,\r\n\tLoadCedRequestDetailsAction,\r\n\tUpdateCedRequestAction,\r\n} from './types';\r\nimport {\r\n\tfetchCedRequestsResult,\r\n\tloadCedRequestDetailsResult,\r\n\treFetchCedRequests,\r\n\tupdateCedRequestResult,\r\n} from './actions';\r\nimport { fetchCedRequestApi, fetchCedRequestsApi, updateCedRequestApi } from './api';\r\nimport { Profile } from '../../Auth/logic/types';\r\nimport { fetchTaskCount } from '../../Tasks/logic/action';\r\n\r\nfunction* fetchCedRequestsSaga(action: FetchCedRequestsAction) {\r\n\tyield put(clearAlert());\r\n\tconst { pageNumber } = action;\r\n\tconst { cedRequestStatus } = yield select((state: AppState) => state.cedRequest);\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst { cedRequests, totalCount } = yield call(fetchCedRequestsApi, cedRequestStatus, pageNumber);\r\n\r\n\t\tyield put(fetchCedRequestsResult(false, cedRequests, totalCount));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(fetchCedRequestsResult(false));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* loadCedRequestDetailsSaga(action: LoadCedRequestDetailsAction) {\r\n\tyield put(clearAlert());\r\n\tconst { cedRequestId } = action;\r\n\tconst { cedRequests } = yield select(state => state.cedRequest);\r\n\r\n\tlet cedRequest = Array.isArray(cedRequests) && cedRequests.find(x => x.id === cedRequestId);\r\n\r\n\tif (!cedRequest) {\r\n\t\tyield put(showProgress());\r\n\t\ttry {\r\n\t\t\tcedRequest = yield call(fetchCedRequestApi, cedRequestId);\r\n\t\t} catch (e) {\r\n\t\t\tyield put(showHttpErrorAlert(e));\r\n\t\t} finally {\r\n\t\t\tyield put(hideProgress());\r\n\t\t}\r\n\t}\r\n\r\n\tyield put(loadCedRequestDetailsResult(!cedRequest, cedRequest));\r\n}\r\n\r\nfunction* updateCedRequestSaga(action: UpdateCedRequestAction) {\r\n\tyield put(clearAlert());\r\n\tconst { cedRequestId } = action;\r\n\tconst { cedRequest, draftCedRequest }: { cedRequest: CedRequest, draftCedRequest: DraftCedRequest } = yield select((state: AppState) => state.cedRequest);\r\n\tconst currentUser: Profile = yield select((state: AppState) => state.auth.profile);\r\n\tconst { newStatus, newResponseExtraDays, newResponseNotes } = draftCedRequest;\r\n\r\n\tif (!newStatus) {\r\n\t\tyield put(showRequiredAlert('الحالة الجديدة', 'select'));\r\n\t\treturn;\r\n\t}\r\n\tif (newStatus === CedRequestStatus.approved) {\r\n\t\tif (!newResponseExtraDays) {\r\n\t\t\tyield put(showRequiredAlert('عدد الأيام الموافق عليها', 'enter'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst extraDaysNumber = Number(newResponseExtraDays);\r\n\t\tif (extraDaysNumber <= 0 || extraDaysNumber > 100) {\r\n\t\t\tyield put(showAlert('warn', 'يجب أن تكون عدد الأيام الموافق عليها بين ال 0 و 100.'));\r\n\t\t\treturn;\r\n\t\t}\r\n\t}\r\n\tif (!newResponseNotes || newResponseNotes.trim() === '') {\r\n\t\tyield put(showRequiredAlert('الملاحظات', 'enter'));\r\n\t\treturn;\r\n\t}\r\n\r\n\tyield put(showProgress());\r\n\ttry {\r\n\t\tyield call(updateCedRequestApi, cedRequestId, newStatus, newResponseExtraDays, newResponseNotes);\r\n\r\n\t\tconst newCedRequest: CedRequest = {\r\n\t\t\t...cedRequest,\r\n\t\t\tclosedBy: {\r\n\t\t\t\tid: currentUser.userId || require('uuid/v4')(),\r\n\t\t\t\tuserName: currentUser.arName,\r\n\t\t\t\tarName: currentUser.arName,\r\n\t\t\t\tenName: currentUser.arName,\r\n\t\t\t\temail: currentUser.email,\r\n\t\t\t\tmobile: currentUser.phoneNumber,\r\n\t\t\t\tjobDescription: '',\r\n\t\t\t\tactive: true,\r\n\t\t\t},\r\n\r\n\t\t\tlastStatusAt: moment().toISOString(),\r\n\t\t\tnewTaskEndDate: newStatus === CedRequestStatus.approved ? moment(cedRequest.currentTaskEndDate).add(newResponseExtraDays, 'day').toISOString() : cedRequest.currentTaskEndDate,\r\n\t\t\tresponseExtraDays: newStatus === CedRequestStatus.approved ? newResponseExtraDays : undefined,\r\n\t\t\tresponseNotes: newResponseNotes,\r\n\t\t\tstatus: newStatus,\r\n\t\t};\r\n\r\n\t\tyield all([\r\n\t\t\tput(reFetchCedRequests()),\r\n\t\t\tput(fetchTaskCount()),\r\n\t\t\tput(showDoneSuccessfullyAlert()),\r\n\t\t]);\r\n\r\n\t\tyield put(updateCedRequestResult(false, newCedRequest));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(updateCedRequestResult(true));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n\r\n}\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.fetch_ced_requests, fetchCedRequestsSaga),\r\n\ttakeLatest(ActionTypes.refetch_ced_requests, fetchCedRequestsSaga),\r\n\ttakeLatest(ActionTypes.load_ced_request_details, loadCedRequestDetailsSaga),\r\n\ttakeLatest(ActionTypes.update_ced_request, updateCedRequestSaga),\r\n];\r\n\r\n\r\n","import { morphism } from 'morphism';\r\nimport { AxiosRequestConfig } from 'axios';\r\n\r\nimport { pageSize } from '../../../config/constant';\r\nimport { advanced_search_tasks_url, search_tasks_url } from '../../../config/urls';\r\nimport { request } from '../../../config/utilities';\r\nimport { taskHeaderMap, userTaskMap } from '../../Tasks/logic/mapper';\r\n\r\nexport const searchTasksApi = async (searchQuery: string, pageNumber: number) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: search_tasks_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\tPageNumber: pageNumber,\r\n\t\t\tPageSize: pageSize,\r\n\t\t\tQuery: searchQuery,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\r\n\treturn {\r\n\t\ttotalCount: response.data.totalCount,\r\n\t\tuserTasks: morphism(taskHeaderMap, response.data.userTasks as any[]),\r\n\t};\r\n};\r\n\r\nexport const advancedSearchTasksApi = async (pageNumber: number, priority: number, taskType: number, endDateTo: Date, endDateFrom: Date,\r\n startDateTo: Date, startDateFrom: Date, taskStatus: number, title: string, taskLevel?: boolean) => {\r\n\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: advanced_search_tasks_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\tPageNumber: pageNumber,\r\n\t\t\tPageSize: pageSize,\r\n\t\t\tPriorityID: priority,\r\n\t\t\tTaskTypeID: taskType,\r\n\t\t\tTaskEndDateFrom: endDateFrom && endDateFrom.toISOString(),\r\n\t\t\tTaskEndDateTo: endDateTo && endDateTo.toISOString(),\r\n\t\t\tTaskStartDateFrom: startDateFrom && startDateFrom.toISOString(),\r\n\t\t\tTaskStartDateTo: startDateTo && startDateTo.toISOString(),\r\n\t\t\tTaskLevel: taskLevel,\r\n\t\t\tTaskStatusID: taskStatus,\r\n\t\t\tTitle: title,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\r\n\treturn {\r\n\t\ttotalCount: response.data.totalCount,\r\n\t\tuserTasks: morphism(taskHeaderMap, response.data.userTasks as any[]),\r\n\t};\r\n};\r\n","import { all, call, put, select, takeLatest } from 'redux-saga/effects';\r\n\r\nimport { advancedSearchFetchLookUpResult, advancedSearchTasksResult, searchTasksResult } from './actions';\r\nimport { ActionTypes, AdvancedSearchTasksAction, SearchTasksAction } from './types';\r\nimport { clearAlert, hideProgress, showHttpErrorAlert, showProgress } from '../../Services/actions';\r\nimport { advancedSearchTasksApi, searchTasksApi } from './api';\r\nimport { getTaskTypes } from '../../TaskType/logic/api';\r\nimport { getPriorities } from '../../Priority/logic/api';\r\nimport { AppState } from '../../../config/types';\r\nimport moment from 'moment';\r\n\r\nfunction* searchTasksSaga(action: SearchTasksAction) {\r\n\tconst { pageNumber, searchQuery } = action;\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\r\n\t\tconst startDate = new Date();\r\n\t\tconst response = yield call(searchTasksApi, searchQuery, pageNumber);\r\n\t\tconst endDate = new Date();\r\n\r\n\t\tconst requestTime = calculateRequestTime(startDate, endDate);\r\n\r\n\t\tyield put(searchTasksResult(false, response.userTasks, response.totalCount, requestTime));\r\n\t} catch (e) {\r\n\t\tyield put(searchTasksResult(true));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* advancedSearchTasksSaga(action: AdvancedSearchTasksAction) {\r\n\tconst { pageNumber } = action;\r\n\r\n\ttry {\r\n\t\tyield put(clearAlert());\r\n\t\tyield put(showProgress());\r\n\r\n\t\tconst { priority, taskType, title, status, startDateFrom, startDateTo, endDateFrom, endDateTo, taskLevel } = yield select((state: AppState) => state.searchPage.advancedSearch);\r\n\r\n\t\tlet resultTaskLevel;\r\n\t\tif(taskLevel === 'all')\r\n\t\t\tresultTaskLevel = undefined;\r\n\r\n\t\tif(taskLevel === 'justMine')\r\n\t\t\tresultTaskLevel = true;\r\n\r\n\t\tif(taskLevel === 'mineAndOthers')\r\n\t\t\tresultTaskLevel = false;\r\n\r\n\t\tconst startDate = new Date();\r\n\t\tconst response = yield call(advancedSearchTasksApi, pageNumber, priority && priority.id, taskType && taskType.id, endDateTo, endDateFrom\r\n\t\t\t, startDateTo, startDateFrom, status, title, resultTaskLevel);\r\n\t\tconst endDate = new Date();\r\n\r\n\t\tconst requestTime = calculateRequestTime(startDate, endDate)\r\n\r\n\t\tyield put(advancedSearchTasksResult(false, response.userTasks, response.totalCount, requestTime));\r\n\t} catch (e) {\r\n\t\tyield put(advancedSearchTasksResult(true, []));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* advancedSearchLookUpSaga() {\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\r\n\t\tconst [taskTypes, priorities]\r\n\t\t\t= yield all([\r\n\t\t\tcall(getTaskTypes),\r\n\t\t\tcall(getPriorities),\r\n\t\t]);\r\n\r\n\t\tyield put(advancedSearchFetchLookUpResult(false, priorities && priorities.priorities, taskTypes && taskTypes.taskTypes));\r\n\t} catch (e) {\r\n\t\tyield all([\r\n\t\t\tput(showHttpErrorAlert(e)),\r\n\t\t\tput(advancedSearchFetchLookUpResult(true)),\r\n\t\t]);\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction calculateRequestTime(startDate: Date, endDate: Date){\r\n\tconst difference = moment(endDate).diff(moment(startDate), \"milliseconds\");\r\n\r\n\treturn Number((difference/1000).toFixed(3));\r\n}\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.search_tasks, searchTasksSaga),\r\n\ttakeLatest(ActionTypes.advanced_search_tasks, advancedSearchTasksSaga),\r\n\ttakeLatest(ActionTypes.advanced_search_fetch_look_up, advancedSearchLookUpSaga),\r\n];\r\n\r\n","import { morphism, Schema } from 'morphism';\r\n\r\nimport { TaskNotification } from './types';\r\nimport { userMap } from '../../Users/logic/mapper';\r\n\r\nexport const taskNotificationMap: Schema = {\r\n\tnotifiedUser: (obj: any) => morphism(userMap, obj.notifiedUser),\r\n\tcreatedDateTime: 'createdDateTime',\r\n\tisRead: 'isRead',\r\n\tnotificationDetails: 'notificationDetails',\r\n\tnotificationID: 'notificationID',\r\n\tnotificationTitle: 'notificationTitle',\r\n\treadDateTime: 'readDateTime',\r\n\turl: 'url',\r\n\tuserTaskID: 'userTaskID',\r\n};\r\n","import axios, { AxiosRequestConfig } from 'axios';\r\nimport morphism from 'morphism';\r\nimport _ from 'lodash-es';\r\n\r\nimport {\r\n\tadd_task_comment_url,\r\n\texport_task_to_pdf_url,\r\n\tgenerate_pdf_url,\r\n\tget_attachment_file_url,\r\n\tget_cc_user_in_task_url,\r\n\tget_comments_and_histories,\r\n\tget_notifications_count,\r\n\tget_original_attachment_url,\r\n\tget_parent_user_task_url,\r\n\tget_task_attachments_url,\r\n\tget_task_header_url,\r\n\tget_total_comments_and_histories_count,\r\n\tget_user_task_notifications,\r\n\tget_user_task_url,\r\n\tsend_code_for_secure_attachment_url,\r\n\tsend_code_for_secure_task_url,\r\n\tset_best_answer_url,\r\n} from '../../../config/urls';\r\nimport { taskNotificationMap } from './mapper';\r\nimport { userMap } from '../../Users/logic/mapper';\r\nimport { pageSize } from '../../../config/constant';\r\nimport { attachmentFileMap, historyItemMap, taskHeaderMap, taskMap, userTaskMap } from '../../Tasks/logic/mapper';\r\nimport { Attachment } from '../../Services/types';\r\nimport { HistoryItemType } from '../../Tasks/logic/type';\r\n\r\nexport const fetchUserTaskApi = async (userTaskId: string, code?: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_user_task_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\tuserTaskId,\r\n\t\t\tcode,\r\n\t\t},\r\n\t};\r\n\tconst response = await axios(options);\r\n\treturn morphism(userTaskMap, response.data);\r\n};\r\nexport const fetchTaskCCUsersApi = async (taskId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_cc_user_in_task_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\ttaskId,\r\n\t\t},\r\n\t};\r\n\tconst response = await axios(options);\r\n\treturn morphism(userMap, response.data);\r\n};\r\nexport const fetchAttachmentFilesApi = async (taskId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_task_attachments_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\ttaskId: taskId,\r\n\t\t},\r\n\t};\r\n\tconst response = await axios(options);\r\n\treturn morphism(attachmentFileMap, response.data);\r\n};\r\nexport const fetchTaskHistoryAndCommentsCountApi = async (taskId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_total_comments_and_histories_count,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\ttaskId: taskId,\r\n\t\t},\r\n\t};\r\n\tconst response = await axios(options);\r\n\treturn response.data;\r\n};\r\n\r\nexport const fetchTaskNotificationsCountApi = async (taskId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_notifications_count,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\ttaskId: taskId,\r\n\t\t},\r\n\t};\r\n\tconst response = await axios(options);\r\n\treturn response.data;\r\n};\r\nexport const fetchTaskHistoryAndCommentsApi = async (taskId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_comments_and_histories,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\ttaskId: taskId,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await axios(options);\r\n\tconst reVal = morphism(historyItemMap, response.data as any[]);\r\n\treturn _.sortBy(reVal, x => x.createdAt);\r\n};\r\nexport const setBestAnswerApi = async (taskId: string, itemType: HistoryItemType, isBestAnswer: boolean) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: set_best_answer_url,\r\n\t\tmethod: 'POST',\r\n\t\tparams: {\r\n\t\t\ttaskId: taskId,\r\n\t\t\titemType: itemType,\r\n\t\t\tisBestAnswer: isBestAnswer,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await axios(options);\r\n\treturn response.data;\r\n};\r\nexport const fetchTaskNotificationsApi = async (pageNumber: number, userTaskId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_user_task_notifications,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\tpageNumber: pageNumber,\r\n\t\t\tpageSize: pageSize,\r\n\t\t\tuserTaskId: userTaskId,\r\n\t\t},\r\n\t};\r\n\tconst response = await axios(options);\r\n\treturn {\r\n\t\ttaskNotifications: morphism(taskNotificationMap, response.data.notificationInfos),\r\n\t\ttotalCount: response.data.totalCount,\r\n\t};\r\n};\r\n\r\nexport const addTaskCommentApi = async (taskId: string, commentText: string, attachmentInfos: Attachment) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: add_task_comment_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\ttaskID: taskId,\r\n\t\t\tcommentText: commentText,\r\n\t\t\tattachmentInfos: attachmentInfos,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await axios(options);\r\n\treturn morphism(historyItemMap, response.data);\r\n};\r\n\r\nexport const fetchParentTaskApi = async (taskId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_parent_user_task_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\ttaskId: taskId,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await axios(options);\r\n\r\n\treturn morphism(taskMap, response.data);\r\n};\r\n\r\nexport const fetchTaskHeaderApi = async (userTaskId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_task_header_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\tuserTaskId,\r\n\t\t},\r\n\t};\r\n\tconst response = await axios(options);\r\n\treturn morphism(taskHeaderMap, response.data);\r\n};\r\n\r\nexport const generatePdfApi = async (attachmentId: string, code?: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: generate_pdf_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\tattachmentId: attachmentId,\r\n\t\t\tcode: code,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await axios(options);\r\n\treturn response.data;\r\n};\r\n\r\nexport const sendForSecureTaskApi = async () => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: send_code_for_secure_task_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {},\r\n\t};\r\n\r\n\tconst response = await axios(options);\r\n};\r\n\r\nexport const sendForSecureAttachmentApi = async () => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: send_code_for_secure_attachment_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {},\r\n\t};\r\n\r\n\tconst response = await axios(options);\r\n};\r\n\r\nexport const loadAttachmentFileApi = async (attachmentId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_attachment_file_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\tattachmentId: attachmentId,\r\n\t\t},\r\n\t};\r\n\tconst response = await axios(options);\r\n\r\n\treturn morphism(attachmentFileMap, response.data);\r\n};\r\n\r\nexport const exportTaskToPdfApi = async (taskId: string, code?: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: export_task_to_pdf_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\ttaskId: taskId,\r\n\t\t\tcode: code,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await axios(options);\r\n\treturn response.data;\r\n};\r\n\r\nexport const getOriginalAttachmentAPI = async (attachmentId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_original_attachment_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: { attachmentId },\r\n\t};\r\n\r\n\tconst response = await axios(options);\r\n\treturn response.data;\r\n};\r\n\r\n","import { all, call, put, select, takeLatest } from 'redux-saga/effects';\r\nimport { User } from '../../Users/logic/types';\r\nimport { AttachmentFile } from '../../Tasks/logic/type';\r\nimport {\r\n\tActionTypes,\r\n\tAddCommentAction,\r\n\tExportTaskPdfAction,\r\n\tFetchIsAttachmentSecretAction,\r\n\tFetchIsTaskSecretAction,\r\n\tFetchParentTaskAction,\r\n\tFetchTaskDetailsAction,\r\n\tFetchTaskHistoryAndCommentsAction,\r\n\tFetchTaskNotificationsAction,\r\n\tGetAttachmentUrlAction,\r\n\tGetOriginalAttachmentAction,\r\n\tSetBestAnswerAction,\r\n} from './types';\r\nimport {\r\n\taddTaskCommentApi,\r\n\texportTaskToPdfApi,\r\n\tfetchAttachmentFilesApi,\r\n\tfetchParentTaskApi,\r\n\tfetchTaskCCUsersApi,\r\n\tfetchTaskHeaderApi,\r\n\tfetchTaskHistoryAndCommentsApi,\r\n\tfetchTaskHistoryAndCommentsCountApi,\r\n\tfetchTaskNotificationsApi,\r\n\tfetchTaskNotificationsCountApi,\r\n\tfetchUserTaskApi,\r\n\tgeneratePdfApi,\r\n\tgetOriginalAttachmentAPI,\r\n\tloadAttachmentFileApi,\r\n\tsendForSecureAttachmentApi,\r\n\tsendForSecureTaskApi,\r\n\tsetBestAnswerApi,\r\n} from './api';\r\nimport {\r\n\tclearAlert,\r\n\tclearAttachments,\r\n\thideProgress,\r\n\treplace,\r\n\tshowAlert,\r\n\tshowDoneSuccessfullyAlert,\r\n\tshowHttpErrorAlert,\r\n\tshowProgress,\r\n\tshowRequiredAlert,\r\n} from '../../Services/actions';\r\nimport {\r\n\tchangeActiveSlide,\r\n\tchangeAttachmentActiveSlide,\r\n\tclearAddCommentViewData,\r\n\texportTaskPdfResult,\r\n\tfetchIsAttachmentSecretResult,\r\n\tfetchIsTaskSecretResult,\r\n\tfetchParentTaskResult,\r\n\tfetchTaskDetails,\r\n\tfetchTaskDetailsResult,\r\n\tfetchTaskHistoryAndCommentsResult,\r\n\tfetchTaskNotificationsResult,\r\n\tgetAttachmentUrl,\r\n\tgetAttachmentUrlResult,\r\n\trefetchTaskHistoryAndComments,\r\n\tsetBestAnswerResult,\r\n} from './actions';\r\nimport { AppState } from '../../../config/types';\r\nimport { Attachment } from '../../Services/types';\r\n\r\nfunction* fetchIsTaskSecretSaga(action: FetchIsTaskSecretAction) {\r\n\tyield put(clearAlert());\r\n\tconst { userTaskId } = action;\r\n\tyield put(showProgress());\r\n\r\n\ttry {\r\n\t\tconst userTasks = yield select((state: AppState) => state.tasks.taskHeaders);\r\n\t\tlet userTask = Array.isArray(userTasks) && userTasks.find(x => x.userTaskId === userTaskId);\r\n\t\tif (!userTask) userTask = yield call(fetchTaskHeaderApi, userTaskId);\r\n\r\n\t\tyield put(fetchIsTaskSecretResult(false, userTask));\r\n\t\tif (userTask.isTaskSecret) yield put(changeActiveSlide('secret-content'));\r\n\t\telse yield put(fetchTaskDetails(userTaskId));\r\n\t} catch (e) {\r\n\t\tyield put(fetchIsTaskSecretResult(true));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* fetchTaskDetailsSaga(action: FetchTaskDetailsAction) {\r\n\tyield put(clearAlert());\r\n\tconst { userTaskId, code } = action;\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst userTask = yield call(fetchUserTaskApi, userTaskId, code);\r\n\t\tconst [ccUsers, attachmentFiles, historyAndCommentsCount, notificationsCount]: [User[], AttachmentFile[], number, number] = yield all([\r\n\t\t\tcall(fetchTaskCCUsersApi, userTask.task.id),\r\n\t\t\tcall(fetchAttachmentFilesApi, userTask.task.id),\r\n\t\t\tcall(fetchTaskHistoryAndCommentsCountApi, userTask.task.id),\r\n\t\t\tcall(fetchTaskNotificationsCountApi, userTask.id),\r\n\t\t]);\r\n\t\tyield put(fetchTaskDetailsResult(false, userTask, ccUsers, attachmentFiles, historyAndCommentsCount, notificationsCount));\r\n\t\tyield put(changeActiveSlide('task-info'));\r\n\t} catch (e) {\r\n\t\tyield put(fetchTaskDetailsResult(true));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* fetchParentTaskSaga(action: FetchParentTaskAction) {\r\n\tyield put(clearAlert());\r\n\tconst { taskId } = action;\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst response = yield call(fetchParentTaskApi, taskId);\r\n\t\tyield put(fetchParentTaskResult(false, response));\r\n\t} catch (e) {\r\n\t\tyield put(fetchParentTaskResult(false));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* fetchHistoryAndCommentsSaga(action: FetchTaskHistoryAndCommentsAction) {\r\n\tconst { taskId } = action;\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst response = yield call(fetchTaskHistoryAndCommentsApi, taskId);\r\n\r\n\t\tyield put(fetchTaskHistoryAndCommentsResult(false, response));\r\n\t} catch (e) {\r\n\t\tyield put(fetchTaskHistoryAndCommentsResult(false));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* setBestAnswerSaga(action: SetBestAnswerAction) {\r\n\tyield put(clearAlert());\r\n\tconst { taskId, itemType, isBestAnswer } = action;\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\r\n\t\tyield call(setBestAnswerApi, taskId, itemType, isBestAnswer);\r\n\t\tyield put(setBestAnswerResult(false, taskId, isBestAnswer));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(setBestAnswerResult(false));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* addCommentSaga(action: AddCommentAction) {\r\n\tyield put(clearAlert());\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\r\n\t\tconst { taskId } = action;\r\n\t\tconst comment = yield select((state: AppState) => state.taskDetails.comment);\r\n\r\n\t\tif (!comment || comment.trim() === '') {\r\n\t\t\tyield put(showRequiredAlert('التعليق'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst { attachments } = yield select((state: AppState) => state.service);\r\n\t\tconst attachmentIds = attachments.map((x: Attachment) => x.serverId);\r\n\r\n\t\tyield call(addTaskCommentApi, taskId, comment, attachmentIds);\r\n\t\tyield all([\r\n\t\t\tput(clearAttachments()),\r\n\t\t\tput(clearAddCommentViewData()),\r\n\t\t\tput(changeActiveSlide('task-info')),\r\n\t\t\tput(refetchTaskHistoryAndComments(taskId)),\r\n\t\t\tput(showDoneSuccessfullyAlert()),\r\n\t\t]);\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* fetchTaskNotificationsSaga(action: FetchTaskNotificationsAction) {\r\n\tconst { userTaskId, pageNumber } = action;\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst response = yield call(fetchTaskNotificationsApi, pageNumber, userTaskId);\r\n\t\tyield put(fetchTaskNotificationsResult(false, response.taskNotifications, response.totalCount));\r\n\t} catch (e) {\r\n\t\tyield put(fetchTaskNotificationsResult(false));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* sendCodeForSecureTaskSaga() {\r\n\tyield put(clearAlert());\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tyield call(sendForSecureTaskApi);\r\n\t\tyield put(showAlert('success', 'تم إرسال رمز التفعيل, الرجاء كتابته في الحقل المناسب والضغط على زر تحقق'));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* sendCodeForSecureAttachmentSaga() {\r\n\tyield put(clearAlert());\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tyield call(sendForSecureAttachmentApi);\r\n\t\tyield put(showAlert('success', 'تم إرسال رمز التفعيل, الرجاء كتابته في الحقل المناسب والضغط على زر تحقق'));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\n// old\r\nfunction* fetchIsAttachmentSecretSaga(action: FetchIsAttachmentSecretAction) {\r\n\tconst { attachmentId } = action;\r\n\tyield put(clearAlert());\r\n\tyield put(showProgress());\r\n\r\n\ttry {\r\n\t\tconst attachmentFile = yield call(loadAttachmentFileApi, attachmentId);\r\n\t\tyield put(fetchIsAttachmentSecretResult(false));\r\n\r\n\t\tif (attachmentFile.isSecure) yield put(changeAttachmentActiveSlide('secret-content'));\r\n\t\telse yield put(getAttachmentUrl(attachmentId));\r\n\t} catch (e) {\r\n\t\tyield put(fetchIsAttachmentSecretResult(true));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* getAttachmentURLSaga(action: GetAttachmentUrlAction) {\r\n\tyield put(clearAlert());\r\n\tconst { attachmentId, code } = action;\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst response = yield call(generatePdfApi, attachmentId, code);\r\n\t\tyield put(getAttachmentUrlResult(false, response));\r\n\t\tyield put(changeAttachmentActiveSlide('attachment-viewer'));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(getAttachmentUrlResult(true));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* exportPdfTaskPdfSaga(action: ExportTaskPdfAction) {\r\n\tyield put(clearAlert());\r\n\tconst { taskId, isTaskSecret, code, taskNo } = action;\r\n\r\n\tif (isTaskSecret) {\r\n\t\tconst isTaskDetailsModalVisible = yield select((state: AppState) => state.taskDetails.isTaskDetailsModalVisible);\r\n\t\tif (isTaskDetailsModalVisible) yield put(changeActiveSlide('ExportTaskPDF'));\r\n\t\telse yield put(replace('ExportTaskPDF', taskId));\r\n\t\treturn;\r\n\t}\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\r\n\t\tconst response = yield call(exportTaskToPdfApi, taskId, code);\r\n\t\tconst sampleArr = base64ToArrayBuffer(response);\r\n\r\n\t\tconst taskHeader = yield select((state: AppState) => state.taskDetails.taskHeader);\r\n\t\tconst calculatedTaskNo = taskNo || taskHeader.taskNo;\r\n\r\n\t\tsaveByteArray(calculatedTaskNo, sampleArr);\r\n\r\n\t\tif (code !== undefined) {\r\n\t\t\tyield put(showAlert('info', 'إذا لم يبدأ التنزيل تلقائيًا. الرجاء الضغط على زر التحميل.'));\r\n\t\t\tyield put(exportTaskPdfResult(false, base64ToArrayBuffer(response)));\r\n\t\t}\r\n\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* getOriginalAttachmentSAGA(action: GetOriginalAttachmentAction) {\r\n\tyield put(clearAlert());\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst data = yield call(getOriginalAttachmentAPI, action.attachmentId);\r\n\r\n\t\tconst a = document.createElement('a');\r\n\t\ta.href = 'data:application/octet-stream;base64,' + data;\r\n\t\ta.download = action.attachmentName;\r\n\t\ta.click();\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nexport function base64ToArrayBuffer(base64: any) {\r\n\tconst binaryString = window.atob(base64);\r\n\tconst binaryLen = binaryString.length;\r\n\tlet bytes = new Uint8Array(binaryLen);\r\n\tfor (let i = 0; i < binaryLen; i++) {\r\n\t\tconst ascii = binaryString.charCodeAt(i);\r\n\t\tbytes[i] = ascii;\r\n\t}\r\n\treturn bytes;\r\n}\r\n\r\nfunction saveByteArray(reportName: any, byte: any) {\r\n\tconst blob = new Blob([byte], { type: 'application/pdf' });\r\n\tconst link = document.createElement('a');\r\n\tlink.href = window.URL.createObjectURL(blob);\r\n\tconst fileName = reportName;\r\n\tlink.download = fileName;\r\n\tlink.click();\r\n}\r\n\r\nfunction* reDownloadPdfSaga() {\r\n\tconst { samplePdfArr } = yield select((state: AppState) => state.taskDetails);\r\n\r\n\tconst taskHeader = yield select((state: AppState) => state.taskDetails.taskHeader);\r\n\tconst calculatedTaskNo = taskHeader.taskNo;\r\n\r\n\tsaveByteArray(calculatedTaskNo, samplePdfArr);\r\n}\r\n\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.fetch_is_task_secret, fetchIsTaskSecretSaga),\r\n\ttakeLatest(ActionTypes.fetch_task_details, fetchTaskDetailsSaga),\r\n\ttakeLatest(ActionTypes.fetch_parent_task, fetchParentTaskSaga),\r\n\ttakeLatest(ActionTypes.fetch_task_history_and_comments, fetchHistoryAndCommentsSaga),\r\n\ttakeLatest(ActionTypes.refetch_task_history_and_comments, fetchHistoryAndCommentsSaga),\r\n\ttakeLatest(ActionTypes.set_best_answer, setBestAnswerSaga),\r\n\ttakeLatest(ActionTypes.add_comment, addCommentSaga),\r\n\ttakeLatest(ActionTypes.fetch_task_notifications, fetchTaskNotificationsSaga),\r\n\ttakeLatest(ActionTypes.send_code_for_secure_task, sendCodeForSecureTaskSaga),\r\n\ttakeLatest(ActionTypes.send_code_for_secure_attachment, sendCodeForSecureAttachmentSaga),\r\n\r\n\t// old\r\n\ttakeLatest(ActionTypes.get_attachment_url, getAttachmentURLSaga),\r\n\ttakeLatest(ActionTypes.export_task_pdf, exportPdfTaskPdfSaga),\r\n\ttakeLatest(ActionTypes.re_download_pdf, reDownloadPdfSaga),\r\n\ttakeLatest(ActionTypes.fetch_is_attachment_secret, fetchIsAttachmentSecretSaga),\r\n\ttakeLatest(ActionTypes.get_original_attachment, getOriginalAttachmentSAGA),\r\n];\r\n","import { Schema } from 'morphism';\r\nimport { Notification } from './types';\r\n\r\nexport const notificationMap: Schema = {\r\n\tid: 'notificationID',\r\n\ttitle: 'notificationTitle',\r\n\tnotificationDetails: 'notificationDetails',\r\n\tcreatedDateTime: 'createdDateTime',\r\n\tuserTaskId: 'userTaskID',\r\n};\r\n","import { AxiosRequestConfig } from 'axios';\r\nimport { morphism } from 'morphism';\r\nimport { request } from '../../../config/utilities';\r\nimport { get_last_notifications, get_system_notifications } from '../../../config/urls';\r\nimport { notificationMap } from './mapper';\r\nimport { pageSize } from '../../../config/constant';\r\n\r\nexport const fetchSystemNotificationsApi = async (pageNumber: number) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_system_notifications,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\tpageNumber: pageNumber,\r\n\t\t\tpageSize: pageSize,\r\n\t\t}\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\r\n\treturn {\r\n\t\tnotifications: morphism(notificationMap, response.data.notifications as any[]),\r\n\t\ttotalCount: response.data.totalCount,\r\n\t};\r\n};\r\n\r\nexport const getLastNotifications = async () => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_last_notifications,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\r\n\t\t}\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\r\n\treturn morphism(notificationMap, response.data as any[]);\r\n};\r\n","import { call, put, takeLatest } from 'redux-saga/effects';\r\nimport { fetchNotificationsResult, fetchLastNotificationsResult } from './actions';\r\nimport { ActionTypes, FetchNotificationsAction } from './types';\r\nimport { hideProgress, showHttpErrorAlert, showProgress } from '../../Services/actions';\r\nimport { fetchSystemNotificationsApi, getLastNotifications } from './api';\r\n\r\nfunction* fetchNotificationsSaga(action: FetchNotificationsAction) {\r\n\ttry {\r\n\t\tconst { pageNumber } = action;\r\n\t\tyield put(showProgress());\r\n\r\n\t\tconst response = yield call(fetchSystemNotificationsApi, pageNumber);\r\n\r\n\t\tyield put(fetchNotificationsResult(false, response.notifications, response.totalCount));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(fetchNotificationsResult(true));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* fetchLastNotificationsSaga() {\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\r\n\t\tconst notifications = yield call(getLastNotifications);\r\n\r\n\t\tyield put(fetchLastNotificationsResult(false, notifications));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(fetchLastNotificationsResult(true ));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.fetch_notifications, fetchNotificationsSaga),\r\n\ttakeLatest(ActionTypes.fetch_last_notifications, fetchLastNotificationsSaga),\r\n];\r\n\r\n","import { call, put, select, takeLatest } from 'redux-saga/effects';\r\nimport {\r\n\tclearAlert,\r\n\thideProgress,\r\n\treplace,\r\n\tshowAccessDeniedAlert,\r\n\tshowAlert,\r\n\tshowCreatedSuccessfullyAlert,\r\n\tshowHttpErrorAlert,\r\n\tshowProgress,\r\n\tshowRequiredAlert,\r\n} from '../../Services/actions';\r\nimport { AppState } from '../../../config/types';\r\nimport {\r\n\tActionTypes,\r\n\tCanSendRequestAction,\r\n\tChangeEndDateRequest,\r\n\tFetchTaskCedRequestsByTaskIdAction,\r\n\tGetActiveRequestAction,\r\n\tLoadTaskAction,\r\n} from './types';\r\nimport {\r\n\tcanSendRequestResult,\r\n\tfetchTaskCedRequestByTaskId,\r\n\tfetchTaskCedRequestByTaskIdResult,\r\n\tgetActiveRequestResult,\r\n\tloadTaskResult,\r\n} from './actions';\r\nimport {\r\n\tcanSendCedRequestApi,\r\n\tchangeTaskEndDateRequestApi,\r\n\tfetchCedRequestByTaskIdApi,\r\n\tgetActiveRequestApi,\r\n\tgetTaskByTaskIdApi,\r\n} from './api';\r\n\r\nfunction* fetchCedRequestsByTaskId(action: FetchTaskCedRequestsByTaskIdAction) {\r\n\tconst { taskId } = action;\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst { cedRequests, totalCount } = yield call(fetchCedRequestByTaskIdApi, taskId);\r\n\r\n\t\tyield put(fetchTaskCedRequestByTaskIdResult(false, cedRequests, totalCount));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(fetchTaskCedRequestByTaskIdResult(true));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* loadTaskSaga(action: LoadTaskAction) {\r\n\tyield put(clearAlert());\r\n\r\n\tconst { taskId } = action;\r\n\tlet task = yield select((state: AppState) => state.taskCedRequests.task);\r\n\r\n\tif (task) {\r\n\t\treturn;\r\n\t}\r\n\r\n\tif (!task) {\r\n\t\tyield put(showProgress());\r\n\t\ttry {\r\n\t\t\ttask = yield call(getTaskByTaskIdApi, taskId);\r\n\t\t\tyield put(loadTaskResult(false, task));\r\n\t\t} catch (e) {\r\n\t\t\tyield put(showHttpErrorAlert(e));\r\n\t\t\tyield put(loadTaskResult(false));\r\n\t\t} finally {\r\n\t\t\tyield put(hideProgress());\r\n\t\t}\r\n\t}\r\n\r\n\tyield put(loadTaskResult(!task, task));\r\n}\r\n\r\nfunction* changeEndDateRequestSaga(action: ChangeEndDateRequest) {\r\n\tyield put(clearAlert());\r\n\r\n\tconst { autoApproved } = action;\r\n\r\n\tconst task = yield select((state: AppState) => state.taskCedRequests.task);\r\n\tconst notes = yield select((state: AppState) => state.taskCedRequests.notes);\r\n\tconst requestedExtraDays = yield select((state: AppState) => state.taskCedRequests.requestedExtraDays);\r\n\r\n\tif (!task) {\r\n\t\tyield put(showRequiredAlert('المهمة', 'select'));\r\n\t\treturn;\r\n\t}\r\n\r\n\tif (!requestedExtraDays) {\r\n\t\tyield put(showRequiredAlert('عدد أيام التمديد'));\r\n\t\treturn;\r\n\t}\r\n\r\n\tconst requestedExtraDaysNumber = Number(requestedExtraDays);\r\n\tif (requestedExtraDaysNumber <= 0 || requestedExtraDaysNumber > 100) {\r\n\t\tyield put(showAlert('warn', 'يجب أن تكون عدد أيام التمديد بين ال 0 و 100.'));\r\n\t\treturn;\r\n\t}\r\n\r\n\tif (!notes || notes.trim() === '') {\r\n\t\tyield put(showRequiredAlert('الملاحظات'));\r\n\t\treturn;\r\n\t}\r\n\r\n\tyield put(showProgress());\r\n\ttry {\r\n\t\tyield call(changeTaskEndDateRequestApi, task.id, notes, requestedExtraDays, autoApproved);\r\n\t\tyield put(fetchTaskCedRequestByTaskId(task.id));\r\n\t\tyield put(replace('TaskCedRequests'));\r\n\t\tyield put(showCreatedSuccessfullyAlert());\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* canSendCedRequestSaga(action: CanSendRequestAction) {\r\n\tconst { taskId } = action;\r\n\tyield put(clearAlert());\r\n\tyield put(showProgress());\r\n\ttry {\r\n\t\tconst canSendCedRequest = yield call(canSendCedRequestApi, taskId);\r\n\r\n\t\tif (!canSendCedRequest)\r\n\t\t\tyield put(showAccessDeniedAlert());\r\n\r\n\t\tyield put(canSendRequestResult(false, canSendCedRequest));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(canSendRequestResult(true));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* getActiveRequestSaga(action: GetActiveRequestAction) {\r\n\tconst { taskId } = action;\r\n\tyield put(clearAlert());\r\n\tyield put(showProgress());\r\n\ttry {\r\n\t\tconst isThereOpenRequest = yield call(getActiveRequestApi, taskId);\r\n\r\n\t\tif (isThereOpenRequest)\r\n\t\t\tyield put(showAlert('error', 'لا يمكن تقديم طلب آخر بسبب وجود طلب آخر غير مغلق.'));\r\n\t\tyield put(getActiveRequestResult(false, isThereOpenRequest));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(getActiveRequestResult(true));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.fetch_task_ced_requests_by_task_id, fetchCedRequestsByTaskId),\r\n\ttakeLatest(ActionTypes.load_task, loadTaskSaga),\r\n\ttakeLatest(ActionTypes.can_send_ced_request, canSendCedRequestSaga),\r\n\ttakeLatest(ActionTypes.get_active_request, getActiveRequestSaga),\r\n\ttakeLatest(ActionTypes.change_end_date_request, changeEndDateRequestSaga),\r\n];\r\n\r\n","import { AxiosRequestConfig } from 'axios';\r\nimport { morphism } from 'morphism';\r\n\r\nimport { request } from '../../../../config/utilities';\r\nimport { get_all_organizations_to_report_url, get_report_server_url } from '../../../../config/urls';\r\nimport { treeNodeMap } from '../../../Organization/logic/mapper';\r\n\r\nexport const fetchOrganizationTree = async (parentId = '') => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_all_organizations_to_report_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\tparentId,\r\n\t\t},\r\n\t};\r\n\tconst response = await request(options);\r\n\treturn {\r\n\t\ttotalCount: response.data.totalCount,\r\n\t\torganizationsTree: morphism(treeNodeMap, response.data.organizations as []),\r\n\t};\r\n};\r\n\r\nexport const getReportsUrl = async () => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_report_server_url,\r\n\t\tmethod: 'GET',\r\n\t};\r\n\treturn await request(options);\r\n};\r\n\r\n\r\n","import { all, call, put, select, takeLatest } from \"redux-saga/effects\";\r\nimport { ActionTypes, FetchOrganizationTreeAction } from \"./types\";\r\nimport {\r\n fetchOrganizationTreeResult,\r\n fetchTaskTypesResult,\r\n setVisibleReport,\r\n} from \"./actions\";\r\nimport {\r\n clearAlert,\r\n hideProgress,\r\n showHttpErrorAlert,\r\n showProgress,\r\n showRequiredAlert,\r\n} from \"../../../Services/actions\";\r\nimport { getTaskTypes } from \"../../../TaskType/logic/api\";\r\nimport { fetchOrganizationTree } from \"./api\";\r\nimport { getNodesTree } from \"../../../../config/utilities\";\r\nimport { TaskByOrganizationsURL } from \"../../../../config/urls\";\r\nimport { AppState } from \"../../../../config/types\";\r\nimport { TaskStatus, taskStatusDisplay } from \"../../../Tasks/logic/type\";\r\nimport * as ConstantsValues from '../../../../config/constant';\r\n\r\nfunction* fetchTaskTypesSaga() {\r\n try {\r\n yield put(showProgress());\r\n const taskTypes = yield call(getTaskTypes);\r\n\r\n yield put(fetchTaskTypesResult(false, taskTypes.taskTypes));\r\n } catch (e) {\r\n yield all([put(showHttpErrorAlert(e)), put(fetchTaskTypesResult(true))]);\r\n } finally {\r\n yield put(hideProgress());\r\n }\r\n}\r\n\r\nfunction* fetchOrganizationTreeSaga(action: FetchOrganizationTreeAction) {\r\n yield put(clearAlert());\r\n const { parentId } = action;\r\n try {\r\n yield put(showProgress());\r\n const response = yield call(fetchOrganizationTree, parentId);\r\n\r\n yield put(\r\n fetchOrganizationTreeResult(false, parentId, response.organizationsTree)\r\n );\r\n } catch (e) {\r\n yield put(fetchOrganizationTreeResult(true));\r\n yield put(showHttpErrorAlert(e));\r\n } finally {\r\n yield put(hideProgress());\r\n }\r\n}\r\n\r\nfunction* searchTasksByOrganizationSaga() {\r\n yield put(clearAlert());\r\n const {\r\n toDate,\r\n fromDate,\r\n includeChildren,\r\n organizationTree,\r\n selectedNodeId,\r\n selectedStatus,\r\n selectedTaskType,\r\n } = yield select((state: AppState) => state.taskByOrganizations);\r\n const organization = getNodesTree(organizationTree, selectedNodeId);\r\n\r\n const statusName = taskStatusDisplay[selectedStatus as TaskStatus];\r\n\r\n if (organization!.name === ConstantsValues.TreeRootName) {\r\n yield put(showRequiredAlert(\"إدارة\", \"select\"));\r\n return;\r\n }\r\n\r\n //yield put(setVisibleReport(true));\r\n\r\n const reportUrl = TaskByOrganizationsURL(\r\n selectedNodeId!,\r\n organization?.name!,\r\n includeChildren,\r\n selectedTaskType?.id,\r\n selectedTaskType?.name,\r\n selectedStatus,\r\n statusName,\r\n toDate,\r\n fromDate\r\n );\r\n\r\n //const frame = document.getElementById(\"iframeTasksByOrganization\");\r\n\r\n const reportServerUrl = yield select((state: AppState) => state.reports.reportServerUrl);\r\n var win = window.open(reportServerUrl + reportUrl, '_blank');\r\n //win.focus();\r\n\r\n // if (frame) {\r\n // //@ts-ignore\r\n // frame.contentWindow.location.replace(reportUrl);\r\n // }\r\n}\r\n\r\nexport default [\r\n takeLatest(ActionTypes.fetch_task_types, fetchTaskTypesSaga),\r\n takeLatest(\r\n ActionTypes.search_tasks_by_organization,\r\n searchTasksByOrganizationSaga\r\n ),\r\n takeLatest(ActionTypes.fetch_organization_tree, fetchOrganizationTreeSaga),\r\n];\r\n","import { call, put, select, takeLatest } from 'redux-saga/effects';\r\n\r\nimport { ActionTypes, FetchOrganizationTreeAction } from './types';\r\nimport { fetchOrganizationTreeResult, setVisibleReport } from './actions';\r\nimport {\r\n\tclearAlert,\r\n\thideProgress,\r\n\tshowHttpErrorAlert,\r\n\tshowProgress,\r\n\tshowRequiredAlert,\r\n} from '../../../Services/actions';\r\nimport { fetchOrganizationTree } from '../../TaskByOrganizations/logic/api';\r\nimport { AppState } from '../../../../config/types';\r\nimport { getNodesTree } from '../../../../config/utilities';\r\nimport { MainOrgTasksStatusURL } from '../../../../config/urls';\r\n\r\nfunction* fetchOrganizationTreeSaga(action: FetchOrganizationTreeAction) {\r\n\tyield put(clearAlert());\r\n\tconst { parentId } = action;\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\r\n\t\tconst response = yield call(fetchOrganizationTree, parentId);\r\n\r\n\t\tyield put(fetchOrganizationTreeResult(false, parentId, response.organizationsTree));\r\n\t} catch (e) {\r\n\t\tyield put(fetchOrganizationTreeResult(true));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* searchMainOrgTaskStatusSaga() {\r\n\tyield put(clearAlert());\r\n\tconst { includeChildren, organizationTree, selectedNodeId, selectedOrganizations } = yield select((state: AppState) => state.mainOrgTaskStatus);\r\n\tconst organization = getNodesTree(organizationTree, selectedNodeId);\r\n\r\n\r\n\tif (selectedOrganizations.length === 0) {\r\n\t\tyield put(showRequiredAlert('إدارة', 'select'));\r\n\t\treturn;\r\n\t}\r\n\r\n\tyield put(setVisibleReport(true));\r\n\r\n\tconst reportUrl = MainOrgTasksStatusURL(selectedOrganizations, includeChildren);\r\n\r\n\t// const frame = document.getElementById('iframeMainOrgTasksStatus');\r\n\r\n\t// if (frame) {\r\n\t// \t//@ts-ignore\r\n\t// \tframe.contentWindow.location.replace(reportUrl);\r\n\t// }\r\n\r\n\tconst reportServerUrl = yield select((state: AppState) => state.reports.reportServerUrl);\r\n var win = window.open(reportServerUrl + reportUrl, '_blank');\r\n}\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.fetch_organization_tree, fetchOrganizationTreeSaga),\r\n\ttakeLatest(ActionTypes.search_main_org_task_status, searchMainOrgTaskStatusSaga),\r\n];\r\n\r\n","import { call, put, select, takeLatest } from 'redux-saga/effects';\r\n\r\nimport { ActionTypes, FetchOrganizationTreeAction } from './types';\r\nimport { fetchOrganizationTreeResult, setVisibleReport } from './actions';\r\nimport {\r\n\tclearAlert,\r\n\thideProgress,\r\n\tshowHttpErrorAlert,\r\n\tshowProgress,\r\n\tshowRequiredAlert,\r\n} from '../../../Services/actions';\r\nimport { fetchOrganizationTree } from '../../TaskByOrganizations/logic/api';\r\nimport { AppState } from '../../../../config/types';\r\nimport { GetDonePercentageForOrgsDetailsURL } from '../../../../config/urls';\r\n\r\nfunction* fetchOrganizationTreeSaga(action: FetchOrganizationTreeAction) {\r\n\tyield put(clearAlert());\r\n\tconst { parentId } = action;\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\r\n\t\tconst response = yield call(fetchOrganizationTree, parentId);\r\n\r\n\t\tyield put(fetchOrganizationTreeResult(false, parentId, response.organizationsTree));\r\n\t} catch (e) {\r\n\t\tyield put(fetchOrganizationTreeResult(true));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* searchMainOrgTaskStatusSaga() {\r\n\tyield put(clearAlert());\r\n\tconst { fromDate, toDate, selectedOrganizations } = yield select((state: AppState) => state.getDonePercentageForOrgsDetails);\r\n\r\n\tif (selectedOrganizations.length === 0) {\r\n\t\tyield put(showRequiredAlert('إدارة', 'select'));\r\n\t\treturn;\r\n\t}\r\n\r\n\tyield put(setVisibleReport(true));\r\n\r\n\tconst reportUrl = GetDonePercentageForOrgsDetailsURL(selectedOrganizations, fromDate, toDate);\r\n\r\n\t// const frame = document.getElementById('iframeGetDonePercentageForOrgsDetails');\r\n\r\n\t// if (frame) {\r\n\t// \t//@ts-ignore\r\n\t// \tframe.contentWindow.location.replace(reportUrl);\r\n\t// }\r\n\r\n\tconst reportServerUrl = yield select((state: AppState) => state.reports.reportServerUrl);\r\n var win = window.open(reportServerUrl + reportUrl, '_blank');\r\n}\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.fetch_organization_tree, fetchOrganizationTreeSaga),\r\n\ttakeLatest(ActionTypes.search_main_org_task_status, searchMainOrgTaskStatusSaga),\r\n];\r\n\r\n","import { AxiosRequestConfig } from 'axios';\r\nimport { morphism } from 'morphism';\r\n\r\nimport { fetch_users_with_org_id_url } from '../../../../config/urls';\r\nimport { request } from '../../../../config/utilities';\r\nimport { userMap } from '../../../Auditing/logic/mapper';\r\n\r\n\r\nexport const fetchUsersWithOrgIdApi = async (orgId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: fetch_users_with_org_id_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\torgId: orgId,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\treturn morphism(userMap, response.data as any[]);\r\n};\r\n","import { call, put, select, takeLatest } from \"redux-saga/effects\";\r\nimport {\r\n ActionTypes,\r\n FetchOrganizationTreeAction,\r\n FetchUsersWithOrgIdAction,\r\n} from \"./types\";\r\nimport {\r\n fetchOrganizationTreeResult,\r\n fetchUsersWithOrgIdResult,\r\n setVisibleReport,\r\n} from \"./actions\";\r\nimport {\r\n clearAlert,\r\n hideProgress,\r\n showHttpErrorAlert,\r\n showProgress,\r\n showRequiredAlert,\r\n} from \"../../../Services/actions\";\r\nimport { getNodesTree } from \"../../../../config/utilities\";\r\nimport { LateTasksForEmployeeURL } from \"../../../../config/urls\";\r\nimport { AppState } from \"../../../../config/types\";\r\nimport { fetchOrganizationTree } from \"../../TaskByOrganizations/logic/api\";\r\nimport { fetchPermissionCategoriesResult } from \"../../../UserPermissions/logic/action\";\r\nimport { fetchUsersWithOrgIdApi } from \"./api\";\r\nimport * as ConstantsValues from '../../../../config/constant';\r\n\r\nfunction* fetchOrganizationTreeSaga(action: FetchOrganizationTreeAction) {\r\n yield put(clearAlert());\r\n const { parentId } = action;\r\n try {\r\n yield put(showProgress());\r\n\r\n const response = yield call(fetchOrganizationTree, parentId);\r\n\r\n yield put(\r\n fetchOrganizationTreeResult(false, parentId, response.organizationsTree)\r\n );\r\n } catch (e) {\r\n yield put(fetchOrganizationTreeResult(true));\r\n yield put(showHttpErrorAlert(e));\r\n } finally {\r\n yield put(hideProgress());\r\n }\r\n}\r\n\r\nfunction* searchLateTasksForEmployeeSaga() {\r\n yield put(clearAlert());\r\n const {\r\n fromDate,\r\n toDate,\r\n delayDay,\r\n user,\r\n organizationTree,\r\n selectedNodeId,\r\n } = yield select((state: AppState) => state.lateTasksForEmployee);\r\n const organization = getNodesTree(organizationTree, selectedNodeId);\r\n\r\n if (!delayDay) {\r\n yield put(showRequiredAlert(\"عدد أيام التأخير\"));\r\n return;\r\n }\r\n\r\n if (!user) {\r\n yield put(showRequiredAlert(\"الموظف\", \"select\"));\r\n return;\r\n }\r\n\r\n if (organization!.name === ConstantsValues.TreeRootName) {\r\n yield put(showRequiredAlert(\"إدارة\", \"select\"));\r\n return;\r\n }\r\n\r\n yield put(setVisibleReport(true));\r\n\r\n const reportUrl = LateTasksForEmployeeURL(\r\n user.value,\r\n user.label,\r\n delayDay,\r\n toDate,\r\n fromDate\r\n );\r\n // const frame = document.getElementById(\"iframeLateTasksForEmployee\");\r\n\r\n // if (frame) {\r\n // //@ts-ignore\r\n // frame.contentWindow.location.replace(reportUrl);\r\n // }\r\n\r\n const reportServerUrl = yield select((state: AppState) => state.reports.reportServerUrl);\r\n var win = window.open(reportServerUrl + reportUrl, '_blank');\r\n}\r\n\r\nfunction* fetchUsersWithOrgIdSaga(action: FetchUsersWithOrgIdAction) {\r\n yield put(clearAlert());\r\n const { orgId } = action;\r\n\r\n try {\r\n yield put(showProgress());\r\n\r\n if (orgId === undefined) return;\r\n\r\n const response = yield call(fetchUsersWithOrgIdApi, orgId);\r\n\r\n yield put(fetchUsersWithOrgIdResult(false, response));\r\n } catch (e) {\r\n yield put(fetchPermissionCategoriesResult(true));\r\n yield put(showHttpErrorAlert(e));\r\n } finally {\r\n yield put(hideProgress());\r\n }\r\n}\r\n\r\nexport default [\r\n takeLatest(ActionTypes.fetch_organization_tree, fetchOrganizationTreeSaga),\r\n takeLatest(\r\n ActionTypes.search_late_tasks_for_employee,\r\n searchLateTasksForEmployeeSaga\r\n ),\r\n takeLatest(ActionTypes.fetch_users_with_org_id, fetchUsersWithOrgIdSaga),\r\n];\r\n","import { call, put, select, takeLatest } from \"redux-saga/effects\";\r\nimport { ActionTypes, FetchOrganizationTreeAction } from \"./types\";\r\nimport { fetchOrganizationTreeResult, setVisibleReport } from \"./actions\";\r\nimport {\r\n clearAlert,\r\n hideProgress,\r\n showHttpErrorAlert,\r\n showProgress,\r\n showRequiredAlert,\r\n} from \"../../../Services/actions\";\r\nimport { getNodesTree } from \"../../../../config/utilities\";\r\nimport { LateTasksForOrganizationURL } from \"../../../../config/urls\";\r\nimport { AppState } from \"../../../../config/types\";\r\nimport { fetchOrganizationTree } from \"../../TaskByOrganizations/logic/api\";\r\nimport * as ConstantsValues from '../../../../config/constant';\r\n\r\nfunction* fetchOrganizationTreeSaga(action: FetchOrganizationTreeAction) {\r\n yield put(clearAlert());\r\n const { parentId } = action;\r\n try {\r\n yield put(showProgress());\r\n const response = yield call(fetchOrganizationTree, parentId);\r\n\r\n yield put(\r\n fetchOrganizationTreeResult(false, parentId, response.organizationsTree)\r\n );\r\n } catch (e) {\r\n yield put(fetchOrganizationTreeResult(true));\r\n yield put(showHttpErrorAlert(e));\r\n } finally {\r\n yield put(hideProgress());\r\n }\r\n}\r\n\r\nfunction* searchLateTasksForOrganizationSaga() {\r\n yield put(clearAlert());\r\n const {\r\n includeChildren,\r\n fromDate,\r\n toDate,\r\n delayDay,\r\n organizationTree,\r\n selectedNodeId,\r\n } = yield select((state: AppState) => state.lateTasksForOrganization);\r\n const organization = getNodesTree(organizationTree, selectedNodeId);\r\n\r\n if (!delayDay) {\r\n yield put(showRequiredAlert(\"عدد أيام التأخير\"));\r\n return;\r\n }\r\n\r\n if (organization!.name === ConstantsValues.TreeRootName) {\r\n yield put(showRequiredAlert(\"إدارة\", \"select\"));\r\n return;\r\n }\r\n\r\n yield put(setVisibleReport(true));\r\n\r\n const reportUrl = LateTasksForOrganizationURL(\r\n organization?.id!,\r\n organization?.name!,\r\n includeChildren,\r\n delayDay,\r\n toDate,\r\n fromDate\r\n );\r\n // const frame = document.getElementById(\"iframeLateTasksForOrganization\");\r\n\r\n // if (frame) {\r\n // //@ts-ignore\r\n // frame.contentWindow.location.replace(reportUrl);\r\n // }\r\n\r\n const reportServerUrl = yield select((state: AppState) => state.reports.reportServerUrl);\r\n var win = window.open(reportServerUrl + reportUrl, '_blank');\r\n}\r\n\r\nexport default [\r\n takeLatest(ActionTypes.fetch_organization_tree, fetchOrganizationTreeSaga),\r\n takeLatest(\r\n ActionTypes.search_late_tasks_for_organization,\r\n searchLateTasksForOrganizationSaga\r\n ),\r\n];\r\n","import { call, put, select, takeLatest } from \"redux-saga/effects\";\r\nimport { ActionTypes, FetchOrganizationTreeAction } from \"./types\";\r\nimport { fetchOrganizationTreeResult, setVisibleReport } from \"./actions\";\r\nimport {\r\n clearAlert,\r\n hideProgress,\r\n showHttpErrorAlert,\r\n showProgress,\r\n showRequiredAlert,\r\n} from \"../../../Services/actions\";\r\nimport { getNodesTree } from \"../../../../config/utilities\";\r\nimport { GetTaskPercentageForEmployeesInOrgDetailsURL } from \"../../../../config/urls\";\r\nimport { AppState } from \"../../../../config/types\";\r\nimport { fetchOrganizationTree } from \"../../TaskByOrganizations/logic/api\";\r\nimport * as ConstantsValues from '../../../../config/constant';\r\n\r\nfunction* fetchOrganizationTreeSaga(action: FetchOrganizationTreeAction) {\r\n yield put(clearAlert());\r\n const { parentId } = action;\r\n try {\r\n yield put(showProgress());\r\n const response = yield call(fetchOrganizationTree, parentId);\r\n\r\n yield put(\r\n fetchOrganizationTreeResult(false, parentId, response.organizationsTree)\r\n );\r\n } catch (e) {\r\n yield put(fetchOrganizationTreeResult(true));\r\n yield put(showHttpErrorAlert(e));\r\n } finally {\r\n yield put(hideProgress());\r\n }\r\n}\r\n\r\nfunction* searchGetTaskPercentageForEmployeesInOrgDetails() {\r\n yield put(clearAlert());\r\n const {\r\n includeChildren,\r\n fromDate,\r\n toDate,\r\n organizationTree,\r\n selectedNodeId,\r\n } = yield select(\r\n (state: AppState) => state.getTaskPercentageForEmployeesInOrgDetails\r\n );\r\n const organization = getNodesTree(organizationTree, selectedNodeId);\r\n\r\n if (organization!.name === ConstantsValues.TreeRootName) {\r\n yield put(showRequiredAlert(\"إدارة\", \"select\"));\r\n return;\r\n }\r\n\r\n yield put(setVisibleReport(true));\r\n\r\n const reportUrl = GetTaskPercentageForEmployeesInOrgDetailsURL(\r\n organization?.id!,\r\n organization?.name!,\r\n includeChildren,\r\n toDate,\r\n fromDate\r\n );\r\n\r\n // const frame = document.getElementById(\r\n // \"iframeGetTaskPercentageForEmployeesInOrgDetails\"\r\n // );\r\n\r\n // if (frame) {\r\n // //@ts-ignore\r\n // frame.contentWindow.location.replace(reportUrl);\r\n // }\r\n\r\n const reportServerUrl = yield select((state: AppState) => state.reports.reportServerUrl);\r\n var win = window.open(reportServerUrl + reportUrl, '_blank');\r\n}\r\n\r\nexport default [\r\n takeLatest(ActionTypes.fetch_organization_tree, fetchOrganizationTreeSaga),\r\n takeLatest(\r\n ActionTypes.search_get_task_percentage_for_employees_in_org_details,\r\n searchGetTaskPercentageForEmployeesInOrgDetails\r\n ),\r\n];\r\n","import { call, put, select, takeLatest } from 'redux-saga/effects';\r\n\r\nimport { ActionTypes, FetchOrganizationTreeAction } from './types';\r\nimport { fetchOrganizationTreeResult, setVisibleReport } from './actions';\r\nimport {\r\n\tclearAlert,\r\n\thideProgress,\r\n\tshowHttpErrorAlert,\r\n\tshowProgress,\r\n\tshowRequiredAlert,\r\n} from '../../../Services/actions';\r\nimport { fetchOrganizationTree } from '../../TaskByOrganizations/logic/api';\r\nimport { AppState } from '../../../../config/types';\r\nimport { GetTaskPercentageForOrgsDetailsURL } from '../../../../config/urls';\r\n\r\nfunction* fetchOrganizationTreeSaga(action: FetchOrganizationTreeAction) {\r\n\tyield put(clearAlert());\r\n\tconst { parentId } = action;\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\r\n\t\tconst response = yield call(fetchOrganizationTree, parentId);\r\n\r\n\t\tyield put(fetchOrganizationTreeResult(false, parentId, response.organizationsTree));\r\n\t} catch (e) {\r\n\t\tyield put(fetchOrganizationTreeResult(true));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* searchGetTaskPercentageForOrgDetailsSaga() {\r\n\tyield put(clearAlert());\r\n\tconst { fromDate, toDate, selectedOrganizations } = yield select((state: AppState) => state.getTaskPercentageForOrgsDetails);\r\n\r\n\tif (selectedOrganizations.length === 0) {\r\n\t\tyield put(showRequiredAlert('إدارة', 'select'));\r\n\t\treturn;\r\n\t}\r\n\r\n\tyield put(setVisibleReport(true));\r\n\r\n\tconst reportUrl = GetTaskPercentageForOrgsDetailsURL(selectedOrganizations, fromDate, toDate);\r\n\r\n\t// const frame = document.getElementById('iframeGetTaskPercentageForOrgsDetails');\r\n\r\n\t// if (frame) {\r\n\t// \t//@ts-ignore\r\n\t// \tframe.contentWindow.location.replace(reportUrl);\r\n\t// }\r\n\r\n\tconst reportServerUrl = yield select((state: AppState) => state.reports.reportServerUrl);\r\n var win = window.open(reportServerUrl + reportUrl, '_blank');\r\n}\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.fetch_organization_tree, fetchOrganizationTreeSaga),\r\n\ttakeLatest(ActionTypes.search_get_task_percentage_for_orgs_details, searchGetTaskPercentageForOrgDetailsSaga),\r\n];\r\n\r\n","import { call, put, takeLatest } from 'redux-saga/effects';\r\nimport {\r\n\tclearAlert,\r\n\thideProgress,\r\n\tshowHttpErrorAlert,\r\n\tshowProgress,\r\n} from '../../../Services/actions';\r\nimport { getReportServerUriResult } from './actions';\r\nimport { ActionTypes } from './types';\r\nimport { getReportsUrl } from '../../TaskByOrganizations/logic/api';\r\n\r\nfunction* getReportServerUrlSaga() {\r\n\tyield put(clearAlert());\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst response = yield call(getReportsUrl);\r\n\r\n\t\tyield put(getReportServerUriResult(false, response.data));\r\n\t} catch (e) {\r\n\t\tyield put(getReportServerUriResult(true));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.get_report_server_uri, getReportServerUrlSaga),\r\n];\r\n\r\n","import { morphism, Schema } from 'morphism';\r\n\r\nimport { EsRequest, EsRequestStatus } from './types';\r\nimport { taskMap } from '../../Tasks/logic/mapper';\r\nimport { userMap } from '../../Users/logic/mapper';\r\n\r\nexport const esRequestMap: Schema = {\r\n\tid: (obj: any) => String(obj.requestID),\r\n\tuserTaskId: 'userTask.userTaskID',\r\n\ttask: (obj: any) => morphism(taskMap, obj.userTask?.task),\r\n\r\n\tcreatedDate: 'createdDateTime',\r\n\tlastUpdatedDate: 'lastUpdatedDateTime',\r\n\r\n\tassignedTo: (obj: any) => morphism(userMap, obj.assignedTo),\r\n\tassignedFrom: (obj: any) => morphism(userMap, obj.assignedFrom),\r\n\r\n\tnotes: 'notes',\r\n\trequestTitle: 'requestTitle',\r\n\tsignedFile: 'signedFile',\r\n\tisReferral: 'isReferral',\r\n\trequestHijriDate: 'requestHijriDate',\r\n\tstatusId: 'status.statusID',\r\n\tstatusName: 'status.statusName',\r\n\tstatus: (obj: any) => {\r\n\t\tconst { status } = obj;\r\n\t\tswitch (status.statusID) {\r\n\t\t\tcase 1:\r\n\t\t\t\treturn EsRequestStatus.new;\r\n\r\n\t\t\tcase 2:\r\n\t\t\t\treturn EsRequestStatus.closed;\r\n\r\n\t\t\tcase 3:\r\n\t\t\t\treturn EsRequestStatus.approved;\r\n\r\n\t\t\t// case 4:\r\n\t\t\t// \treturn EsRequestStatus.returned;\r\n\r\n\t\t\tdefault:\r\n\t\t\treturn EsRequestStatus.new;\r\n\t\t}\r\n\r\n\t},\r\n};\r\n","import { AxiosRequestConfig } from 'axios';\r\nimport { morphism } from 'morphism';\r\n\r\nimport { closed_es_request_id_url, fetch_es_requests_url } from '../../../config/urls';\r\n\r\nimport { pageSize } from '../../../config/constant';\r\nimport { request } from '../../../config/utilities';\r\nimport { EsRequestStatus } from './types';\r\nimport { esRequestMap } from './mapper';\r\n\r\nexport const fetchEsRequestsApi = async (esRequestStatus: EsRequestStatus, pageNumber?: number) => {\r\n\tconst config: AxiosRequestConfig = {\r\n\t\tmethod: 'GET',\r\n\t\turl: fetch_es_requests_url,\r\n\t\tparams: {\r\n\t\t\tpageSize,\r\n\t\t\tpageNumber: pageNumber || 1,\r\n\t\t\tStatusId: esRequestStatus || 0,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(config);\r\n\treturn {\r\n\t\tesRequests: morphism(esRequestMap, response.data.electronicSignatureRequestInfos),\r\n\t\ttotalCount: response.data.totalCount,\r\n\t};\r\n};\r\n\r\nexport const closedEsRequestApi = async (esRequestId: string) => {\r\n\tconst config: AxiosRequestConfig = {\r\n\t\tmethod: 'POST',\r\n\t\turl: closed_es_request_id_url,\r\n\t\tparams: {\r\n\t\t\tesRequestId: esRequestId\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(config);\r\n\treturn {\r\n\t\tesRequests: morphism(esRequestMap, response.data.electronicSignatureRequestInfos),\r\n\t\ttotalCount: response.data.totalCount,\r\n\t};\r\n};\r\n\r\n","import { call, put, select, takeLatest } from 'redux-saga/effects';\r\n\r\nimport { AppState } from '../../../config/types';\r\nimport { hideProgress, replace, showHttpErrorAlert, showProgress } from '../../Services/actions';\r\nimport { ActionTypes, ClosedEsRequestAction, FetchEsRequestsAction } from './types';\r\nimport { fetchEsRequests, fetchEsRequestsResult } from './actions';\r\nimport { closedEsRequestApi, fetchEsRequestsApi } from './api';\r\n\r\nfunction* fetchEsRequestsSaga(action: FetchEsRequestsAction) {\r\n\tconst { pageNumber } = action;\r\n\tconst { esRequestStatus } = yield select((state: AppState) => state.esRequest);\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst { esRequests, totalCount } = yield call(fetchEsRequestsApi, esRequestStatus, pageNumber);\r\n\r\n\t\tyield put(fetchEsRequestsResult(false, esRequests, totalCount));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(fetchEsRequestsResult(true));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* closedEsRequestSaga(action: ClosedEsRequestAction) {\r\n\tconst { esRequestId } = action;\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\r\n\t\tyield call(closedEsRequestApi, esRequestId);\r\n\r\n\t\tyield put(fetchEsRequests(1));\r\n\t\tyield put(replace('EsRequests'));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.fetch_es_requests, fetchEsRequestsSaga),\r\n\ttakeLatest(ActionTypes.closed_es_request, closedEsRequestSaga),\r\n];\r\n\r\n\r\n","import axios, { AxiosRequestConfig } from 'axios';\r\nimport { add_es_request_url, fetch_es_request_user_task, get_task_by_task_no_url } from '../../../config/urls';\r\nimport { request } from '../../../config/utilities';\r\nimport { taskHeaderMap, userTaskMap } from '../../Tasks/logic/mapper';\r\nimport { morphism } from 'morphism';\r\nimport { taskMap } from '../../AddTask/logic/mapper';\r\n\r\nexport const addEsRequestApi = async (toUserId: string, notes: string, title: string, esRequestType: 'withTask' | 'withoutTask' | 'withRedirectionForm', attachmentId: string, taskId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: add_es_request_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tToUserId: toUserId,\r\n\t\t\tTaskId: taskId,\r\n\t\t\tNotes: notes,\r\n\t\t\tTitle: title,\r\n\t\t\tAttachmentId: attachmentId,\r\n\t\t\tIsReferral: esRequestType === 'withRedirectionForm',\r\n\t\t},\r\n\t};\r\n\r\n\tawait axios(options);\r\n};\r\n\r\nexport const searchTasksApi = async (searchQuery: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: fetch_es_request_user_task,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\ttaskNo: searchQuery,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await axios(options);\r\n\r\n\tif (response.data === null) {\r\n\t\treturn false;\r\n\t}\r\n\r\n\treturn morphism(userTaskMap, response.data as any[]);\r\n};\r\n\r\n","import { all, call, put, select, takeLatest, delay } from 'redux-saga/effects';\r\nimport { ActionTypes } from './types';\r\nimport { AppState } from '../../../config/types';\r\nimport { Attachment } from '../../Services/types';\r\nimport { addEsRequestApi, searchTasksApi } from './api';\r\nimport {\r\n\tclearAlert,\r\n\thideProgress,\r\n\tnavigate, showAlert,\r\n\tshowCreatedSuccessfullyAlert,\r\n\tshowHttpErrorAlert,\r\n\tshowProgress,\r\n\tshowRequiredAlert,\r\n} from '../../Services/actions';\r\nimport { getEsRequestTaskResult } from './actions';\r\n\r\nfunction* addEsRequestSaga() {\r\n\tyield put(clearAlert());\r\n\ttry {\r\n\t\tconst {\r\n\t\t\tsendToUser,\r\n\t\t\ttask,\r\n\t\t\tnotes,\r\n\t\t\ttitle,\r\n\t\t\tesRequestType,\r\n\t\t} = yield select((state: AppState) => state.addEsRequest);\r\n\r\n\t\tconst { attachments } = yield select((state: AppState) => state.service);\r\n\t\tconst attachmentIds = attachments.map((x: Attachment) => x.serverId);\r\n\r\n\t\tif (esRequestType === 'withTask') {\r\n\t\t\tif (!task) {\r\n\t\t\t\tyield put(showRequiredAlert('المهمة', 'select'));\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (!sendToUser) {\r\n\t\t\tyield put(showRequiredAlert('إرسال إلى', 'select'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (!title) {\r\n\t\t\tyield put(showRequiredAlert('عنوان الطلب'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (!notes) {\r\n\t\t\tyield put(showRequiredAlert('ملاحظات'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (attachments.length === 0) {\r\n\t\t\tyield put(showRequiredAlert('المرفقات', 'select'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tyield put(showProgress());\r\n\t\tyield call(addEsRequestApi,\r\n\t\t\tsendToUser.value,\r\n\t\t\tnotes,\r\n\t\t\ttitle,\r\n\t\t\tesRequestType,\r\n\t\t\tattachmentIds[0],\r\n\t\t\ttask ? task.id : null,\r\n\t\t);\r\n\t\tyield put(navigate('EsRequests'));\r\n\t\tyield delay(1);\r\n\t\tyield put(showCreatedSuccessfullyAlert());\r\n\t} catch (e) {\r\n\t\tyield all([\r\n\t\t\tput(showHttpErrorAlert(e)),\r\n\t\t]);\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* getEsRequestTaskSaga() {\r\n\tyield put(clearAlert());\r\n\tconst { taskNo } = yield select(x => x.addEsRequest);\r\n\r\n\tif (!taskNo) {\r\n\t\tyield put(showRequiredAlert('رقم المهمة'));\r\n\t\treturn;\r\n\t}\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst task = yield call(searchTasksApi, taskNo);\r\n\r\n\t\tif (!task) {\r\n\t\t\tyield put(showAlert('warn', 'هذه المهمة غير موجودة أو أنها لا تنتظر تأكيد الإنجاز من قبلك'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tyield put(getEsRequestTaskResult(false, task));\r\n\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(getEsRequestTaskResult(true));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.add_es_request, addEsRequestSaga),\r\n\ttakeLatest(ActionTypes.get_es_request_task, getEsRequestTaskSaga),\r\n];\r\n\r\n","import { EsRequestCommentItem } from './types';\r\nimport { Schema, morphism } from 'morphism';\r\nimport { userMap } from '../../Users/logic/mapper';\r\nimport { attachmentFileMap } from '../../Tasks/logic/mapper';\r\n\r\nexport const esRequestCommentItemMap: Schema = {\r\n\tid: (obj: any) => String(obj.commentInfo.commentID),\r\n\tcreatedAt: 'commentInfo.createdDateTime',\r\n\tcreatedBy: (obj: any) => morphism(userMap, obj.commentInfo.createdBy),\r\n\tnotes: 'commentInfo.notes',\r\n\tattachmentFile: (obj: any) => morphism(attachmentFileMap, obj.attachmentFile),\r\n};\r\n","import { AxiosRequestConfig } from 'axios';\r\nimport { add_es_request_comment_url, fetch_es_request_comments_url, fetch_es_request_url } from '../../../config/urls';\r\nimport { request } from '../../../config/utilities';\r\nimport { morphism } from 'morphism';\r\nimport { esRequestMap } from '../../EsRequests/logic/mapper';\r\nimport { esRequestCommentItemMap } from './mapper';\r\nimport { attachmentFileMap } from '../../Tasks/logic/mapper';\r\n\r\nexport const fetchEsRequestApi = async (esRequestId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: fetch_es_request_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\tesRequestId: esRequestId,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\r\n\treturn {\r\n\t\telectronicSignatureRequest: morphism(esRequestMap, response.data.electronicSignatureRequest),\r\n\t\tattachment: morphism(attachmentFileMap, response.data.electronicSignatureAttachment),\r\n\t\tsigned: morphism(attachmentFileMap, response.data.electronicSignatureSigned),\r\n\t};\r\n};\r\n\r\nexport const fetchEsRequestCommentsApi = async (esRequestId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: fetch_es_request_comments_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\tesRequestId: esRequestId,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\treturn {\r\n\t\tcomments: morphism(esRequestCommentItemMap, response.data.comments),\r\n\t\ttotalCount: response.data.totalCount\r\n\t}\r\n};\r\n\r\nexport const addCommentApi = async (esRequestId: string, attachmentId: string, statusId: string, notes: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: add_es_request_comment_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tRequestId: esRequestId,\r\n\t\t\tAttachmentId: attachmentId,\r\n\t\t\tStatusId: statusId,\r\n\t\t\tNotes: notes,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\treturn morphism(esRequestCommentItemMap, response.data);\r\n};\r\n\r\n","import { call, put, takeLatest, select } from 'redux-saga/effects';\r\nimport {\r\n\tclearAlert,\r\n\thideProgress,\r\n\tshowAlert,\r\n\tshowHttpErrorAlert,\r\n\tshowProgress,\r\n\tshowRequiredAlert, showUpdatedSuccessfullyAlert,\r\n} from '../../Services/actions';\r\nimport {\r\n\tActionTypes,\r\n\tChangeRequestStatusAction,\r\n\tFetchEsRequestAction,\r\n\tFetchEsRequestCommentsAction,\r\n\tFetchIsAttachmentSecretAction,\r\n} from './types';\r\nimport { addCommentApi, fetchEsRequestApi, fetchEsRequestCommentsApi } from './api';\r\nimport {\r\n\tfetchEsRequestResult,\r\n\tchangeActiveSlide,\r\n\tfetchEsRequestCommentsResult,\r\n\tgetAttachmentUrlResult,\r\n\tchangeAttachmentActiveSlide,\r\n\tfetchIsAttachmentSecretResult,\r\n\tgetAttachmentUrl,\r\n\tfetchEsRequest,\r\n\tfetchEsRequestComments\r\n} from './actions';\r\nimport { AppState } from '../../../config/types';\r\nimport { Attachment } from '../../Services/types';\r\nimport { GetAttachmentUrlAction } from './types';\r\nimport { generatePdfApi, loadAttachmentFileApi } from '../../TaskDetails/logic/api';\r\nimport { fetchEsRequests } from '../../EsRequests/logic/actions';\r\n\r\nfunction* fetchEsRequestSaga(action: FetchEsRequestAction) { \r\n\tconst { esRequestId } = action;\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst esRequest = yield call(fetchEsRequestApi, esRequestId);\r\n\r\n\t\tyield put(fetchEsRequestResult(false, esRequest.electronicSignatureRequest, esRequest.attachment, esRequest.signed));\r\n\t\tyield put(changeActiveSlide('info'));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(fetchEsRequestResult(true));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* fetchEsRequestCommentsSaga(action: FetchEsRequestCommentsAction) {\r\n\tconst { esRequestId } = action;\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst { comments, totalCount } = yield call(fetchEsRequestCommentsApi, esRequestId);\r\n\t\tyield put(fetchEsRequestCommentsResult(false, comments, totalCount));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(fetchEsRequestCommentsResult(true));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* changeRequestStatusSaga(action: ChangeRequestStatusAction) {\r\n\tconst { esRequestId } = action;\r\n\tconst comment = yield select((state: AppState) => state.esRequestDetails.note);\r\n\tconst newStatus = yield select((state: AppState) => state.esRequestDetails.esRequestStatus);\r\n\tconst currentStatus = yield select((state: AppState) => state.esRequestDetails.esRequest?.status);\r\n\r\n\tif (!newStatus) {\r\n\t\tyield put(showRequiredAlert('الحالة الجديدة'));\r\n\t\treturn;\r\n\t}\r\n\r\n\tif (newStatus === currentStatus) {\r\n\t\tyield put(showAlert('warn', 'يجب أن تكون حالة طلب التوقيع الإلكتروني مختلفة عن الحالة الجديدة'));\r\n\t\treturn;\r\n\t}\r\n\r\n\tif (!comment || comment.trim() === '') {\r\n\t\tyield put(showRequiredAlert('ملاحظات'));\r\n\t\treturn;\r\n\t}\r\n\r\n\tconst { attachments } = yield select((state: AppState) => state.service);\r\n\tconst attachmentId = attachments.map((x: Attachment) => x.serverId)[0];\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tyield call(addCommentApi, esRequestId, attachmentId, newStatus, comment);\r\n\t\tyield put(fetchEsRequest(esRequestId));\r\n\t\tyield put(fetchEsRequestComments(esRequestId));\r\n\t\tyield put(showUpdatedSuccessfullyAlert());\r\n\t\tyield put(fetchEsRequests(1));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* getAttachmentURLSaga(action: GetAttachmentUrlAction) {\r\n\tyield put(clearAlert());\r\n\tconst { attachmentId, code } = action;\r\n\r\n\ttry {\r\n\t\tyield put(showProgress());\r\n\t\tconst response = yield call(generatePdfApi, attachmentId, code);\r\n\t\tyield put(getAttachmentUrlResult(false, response));\r\n\t\tyield put(changeAttachmentActiveSlide('attachment-viewer'));\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(getAttachmentUrlResult(true));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* fetchIsAttachmentSecretSaga(action: FetchIsAttachmentSecretAction) {\r\n\tconst { attachmentId } = action;\r\n\tyield put(clearAlert());\r\n\tyield put(showProgress());\r\n\r\n\ttry {\r\n\t\tconst attachmentFile = yield call(loadAttachmentFileApi, attachmentId);\r\n\t\tyield put(fetchIsAttachmentSecretResult(false));\r\n\r\n\t\tif (attachmentFile.isSecure) yield put(changeAttachmentActiveSlide('secret-content'));\r\n\t\telse yield put(getAttachmentUrl(attachmentId));\r\n\t} catch (e) {\r\n\t\tyield put(fetchIsAttachmentSecretResult(true));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.fetch_es_request, fetchEsRequestSaga),\r\n\ttakeLatest(ActionTypes.fetch_es_request_comments, fetchEsRequestCommentsSaga),\r\n\ttakeLatest(ActionTypes.change_request_status, changeRequestStatusSaga),\r\n\ttakeLatest(ActionTypes.get_attachment_url, getAttachmentURLSaga),\r\n\ttakeLatest(ActionTypes.fetch_is_attachment_secret, fetchIsAttachmentSecretSaga),\r\n];\r\n\r\n","import { AxiosRequestConfig } from 'axios';\r\nimport { fetch_max_task_in_cart_url } from '../../../config/urls';\r\nimport { request } from '../../../config/utilities';\r\n\r\nexport const fetchMaxTaskInCartApi = async () => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: fetch_max_task_in_cart_url,\r\n\t\tmethod: 'GET',\r\n\t};\r\n\tconst response = await request(options);\r\n\treturn response.data;\r\n};\r\n","import { call, put, takeLatest } from 'redux-saga/effects';\r\nimport { ActionTypes } from './types';\r\nimport { fetchMaxTaskInCartResult } from './actions';\r\nimport { fetchMaxTaskInCartApi } from './api';\r\n\r\nfunction* fetchMaxTaskInCartSaga() {\r\n\ttry {\r\n\t\tconst result = yield call(fetchMaxTaskInCartApi);\r\n\t\tyield put(fetchMaxTaskInCartResult(false, result));\r\n\t} catch (e) {\r\n\t\tyield put(fetchMaxTaskInCartResult(true));\r\n\t}\r\n}\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.fetch_max_task_in_cart, fetchMaxTaskInCartSaga),\r\n];\r\n\r\n","import axios, { AxiosRequestConfig } from 'axios';\r\nimport { add_referral_form_url, fetch_referral_form_url } from '../../../config/urls';\r\n\r\nexport const fetchRefferalFormFileAPI = async () => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\tmethod: 'GET',\r\n\t\turl: fetch_referral_form_url,\r\n\t};\r\n\tconst response = await axios(options);\r\n\treturn response.data;\r\n};\r\nexport const addRefferalFormFileAPI = async (attachmentId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\tmethod: 'POST',\r\n\t\turl: add_referral_form_url,\r\n\t\tparams: {\r\n\t\t\tattachmentId,\r\n\t\t},\r\n\t};\r\n\tconst response = await axios(options);\r\n\treturn response.data;\r\n};\r\n","import { call, put, select, takeLatest } from 'redux-saga/effects';\r\nimport { addRefferalFormFileAPI, fetchRefferalFormFileAPI } from './apis';\r\nimport { ActionTypes } from './types';\r\nimport { AppState } from '../../../config/types';\r\nimport {\r\n\tclearAlert,\r\n\thideProgress,\r\n\tshowAlert,\r\n\tshowDoneSuccessfullyAlert,\r\n\tshowHttpErrorAlert,\r\n\tshowProgress,\r\n\tshowRequiredAlert,\r\n} from '../../Services/actions';\r\nimport { addRefferalFormFileResult, fetchRefferalFormFileResult, toggleIsDirectingFormVisible } from './actions';\r\nimport { base64ToArrayBuffer } from '../../TaskDetails/logic/sagas';\r\n\r\nfunction* fetchRefferalFormFileSaga() {\r\n\tyield put(clearAlert());\r\n\tyield put(showProgress());\r\n\ttry {\r\n\t\tconst refferal = yield call(fetchRefferalFormFileAPI);\r\n\t\tif (refferal !== null) {\r\n\t\t\tconst file = new Blob([base64ToArrayBuffer(refferal.attachment.contentBLOB)], { type: 'application/pdf' });\r\n\t\t\tconst fileURL = URL.createObjectURL(file);\r\n\t\t\tyield put(fetchRefferalFormFileResult(false, fileURL));\r\n\t\t}\r\n\t} catch (e) {\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t\tyield put(fetchRefferalFormFileResult(true));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nfunction* addRefferalFormFileSaga() {\r\n\tyield put(clearAlert());\r\n\tconst attachments = yield select((state: AppState) => state.service.attachments);\r\n\r\n\tif (attachments.length === 0) {\r\n\t\tyield put(showRequiredAlert('مرفق', 'enter'));\r\n\t\treturn;\r\n\t} else if (attachments[0].status !== 'uploaded') {\r\n\t\tyield put(showAlert('warn', 'يرجى التحقق من تحميل المرفق بشكل صحيح'));\r\n\t\treturn;\r\n\t}\r\n\r\n\tyield put(showProgress());\r\n\ttry {\r\n\t\tyield call(addRefferalFormFileAPI, encodeURI(attachments[0].serverId));\r\n\t\tyield put(addRefferalFormFileResult(false));\r\n\t\tyield put(toggleIsDirectingFormVisible(true));\r\n\t\tyield put(showDoneSuccessfullyAlert());\r\n\t} catch (e) {\r\n\t\tyield put(addRefferalFormFileResult(true));\r\n\t\tyield put(showHttpErrorAlert(e));\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.fetch_refferal_form_file, fetchRefferalFormFileSaga),\r\n\ttakeLatest(ActionTypes.add_refferal_form_file, addRefferalFormFileSaga),\r\n];\r\n","import axios, { AxiosRequestConfig } from 'axios';\r\nimport { change_password_url } from '../../../config/urls';\r\n\r\nexport const changePasswordAPI = async (oldPassword: string, newPassword: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: change_password_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\toldPassword,\r\n\t\t\tnewPassword,\r\n\t\t},\r\n\t};\r\n\tconst response = await axios(options);\r\n\treturn response.data;\r\n};","import { all, call, put, select, takeLatest } from 'redux-saga/effects';\r\nimport { changePasswordAPI } from './apis';\r\nimport { ActionTypes } from './types';\r\nimport { AppState } from '../../../config/types';\r\nimport {\r\n\tclearAlert,\r\n\thideProgress,\r\n\tshowAlert,\r\n\tshowDoneSuccessfullyAlert,\r\n\tshowHttpErrorAlert,\r\n\tshowProgress,\r\n\tshowRequiredAlert,\r\n} from '../../Services/actions';\r\nimport { clearChangePassword } from './actions';\r\n\r\nfunction* changePasswordSaga() {\r\n\tconst { oldPassword, newPassword, confirmPassword } = yield select((state: AppState) => state.changePassword);\r\n\tif (!oldPassword) {\r\n\t\tyield put(showRequiredAlert('كلمة السر الحالية', 'enter'));\r\n\t\treturn;\r\n\t} else if (!newPassword) {\r\n\t\tyield put(showRequiredAlert('كلمة السر الجديدة', 'enter'));\r\n\t\treturn;\r\n\t} else if (!confirmPassword) {\r\n\t\tyield put(showRequiredAlert('تأكيد كلمة السر الجديدة', 'enter'));\r\n\t\treturn;\r\n\t} else if (newPassword !== confirmPassword) {\r\n\t\tyield put(showAlert('warn', 'يرجى التأكد من أنك قد أدخلت تأكيد كلمة مرور تساوي كلمة المرور الجديدة'));\r\n\t\treturn;\r\n\t}\r\n\tyield put(clearAlert());\r\n\tyield put(showProgress());\r\n\ttry {\r\n\t\tyield call(changePasswordAPI, oldPassword, newPassword);\r\n\t\tyield put(clearChangePassword());\r\n\t\tyield put(showDoneSuccessfullyAlert());\r\n\t} catch (e) {\r\n\t\tyield all([\r\n\t\t\tput(showHttpErrorAlert(e)),\r\n\t\t]);\r\n\t} finally {\r\n\t\tyield put(hideProgress());\r\n\t}\r\n}\r\n\r\nexport default [\r\n\ttakeLatest(ActionTypes.change_password, changePasswordSaga),\r\n];","import { all } from 'redux-saga/effects';\r\n\r\nimport serviceSagas from '../processes/Services/sagas';\r\nimport dashboardSagas from '../processes/Dashboard/logic/sagas';\r\nimport authSagas from '../processes/Auth/logic/sagas';\r\nimport procedureSagas from '../processes/Procedure/logic/sagas';\r\nimport taskTypeSagas from '../processes/TaskType/logic/sagas';\r\nimport prioritySagas from '../processes/Priority/logic/saga';\r\nimport stakHolderSagas from '../processes/Stakholders/logic/sagas';\r\nimport logsSagas from '../processes/Logs/logic/sagas';\r\nimport delegationsSagas from '../processes/Delegation/logic/sagas';\r\nimport searchSagas from '../processes/SearchIndex/logic/sagas';\r\nimport auditingSagas from '../processes/Auditing/logic/sagas';\r\nimport userSagas from '../processes/Users/logic/sagas';\r\nimport myDelegationSagas from '../processes/MyDelegations/logic/sagas';\r\nimport organizationSagas from '../processes/Organization/logic/sagas';\r\nimport loginAsSagas from '../processes/LoginAs/logic/sagas';\r\nimport permissionTemplateSagas from '../processes/PermissionTemplates/logic/sagas';\r\nimport userPermissionSagas from '../processes/UserPermissions/logic/sagas';\r\nimport addTaskSagas from '../processes/AddTask/logic/sagas';\r\nimport imageUploaderSagas from '../processes/WebTwain/ImageUploaderLogic/sagas';\r\nimport taskSagas from '../processes/Tasks/logic/saga';\r\nimport cedRequestsSagas from '../processes/CedRequests/logic/sagas';\r\nimport searchPageSagas from '../processes/Search/logic/sagas';\r\nimport taskDetailsSagas from '../processes/TaskDetails/logic/sagas';\r\nimport notificationSagas from '../processes/Notification/logic/sagas';\r\nimport taskCedRequestsSagas from '../processes/TaskCedRequests/logic/sagas';\r\nimport taskByOrganizationsSaga from '../processes/Reports/TaskByOrganizations/logic/sagas';\r\nimport mainOrgTaskStatusSaga from '../processes/Reports/MainOrgTasksStatus/logic/saga';\r\nimport getDonePercentageForOrgsDetailsSaga from '../processes/Reports/GetDonePercentageForOrgsDetails/logic/sagas';\r\nimport lateTasksForEmployeeSaga from '../processes/Reports/LateTasksForEmployee/logic/sagas';\r\nimport lateTasksForOrgSaga from '../processes/Reports/LateTasksForOrg/logic/sagas';\r\nimport getTaskPercentageForEmployeesInOrgDetails\r\n\tfrom '../processes/Reports/GetTaskPercentageForEmployeesInOrgDetails/logic/sagas';\r\nimport getTaskPercentageForOrgsDetailsSaga from '../processes/Reports/GetTaskPercentageForOrgsDetails/logic/sagas';\r\nimport reportsSaga from '../processes/Reports/ReportList/logic/sagas';\r\nimport esRequestsSaga from '../processes/EsRequests/logic/sagas';\r\nimport addEsRequestSaga from '../processes/AddEsRequest/logic/sagas';\r\nimport esRequestDetailsSaga from '../processes/EsRequestDetails/logic/sagas';\r\nimport tasksCart from '../processes/TasksCart/logic/sagas';\r\nimport directingForm from '../processes/DirectingForm/logic/sagas';\r\nimport changePasswordSAGAS from '../processes/changePassword/logic/sagas';\r\n\r\nexport default function* () {\r\n\tyield all([\r\n\t\t...serviceSagas,\r\n\t\t...dashboardSagas,\r\n\t\t...authSagas,\r\n\t\t...procedureSagas,\r\n\t\t...taskTypeSagas,\r\n\t\t...prioritySagas,\r\n\t\t...stakHolderSagas,\r\n\t\t...logsSagas,\r\n\t\t...delegationsSagas,\r\n\t\t...searchSagas,\r\n\t\t...auditingSagas,\r\n\t\t...userSagas,\r\n\t\t...myDelegationSagas,\r\n\t\t...organizationSagas,\r\n\t\t...permissionTemplateSagas,\r\n\t\t...loginAsSagas,\r\n\t\t...imageUploaderSagas,\r\n\t\t...addTaskSagas,\r\n\t\t...taskSagas,\r\n\t\t...userPermissionSagas,\r\n\t\t...cedRequestsSagas,\r\n\t\t...searchPageSagas,\r\n\t\t...taskDetailsSagas,\r\n\t\t...notificationSagas,\r\n\t\t...taskCedRequestsSagas,\r\n\t\t...taskByOrganizationsSaga,\r\n\t\t...mainOrgTaskStatusSaga,\r\n\t\t...getDonePercentageForOrgsDetailsSaga,\r\n\t\t...lateTasksForEmployeeSaga,\r\n\t\t...lateTasksForOrgSaga,\r\n\t\t...getTaskPercentageForEmployeesInOrgDetails,\r\n\t\t...getTaskPercentageForOrgsDetailsSaga,\r\n\t\t...reportsSaga,\r\n\t\t...esRequestsSaga,\r\n\t\t...addEsRequestSaga,\r\n\t\t...esRequestDetailsSaga,\r\n\t\t...tasksCart,\r\n\t\t...directingForm,\r\n\t\t...changePasswordSAGAS,\r\n\t]);\r\n}\r\n","import { applyMiddleware, compose, createStore, Dispatch, Middleware } from 'redux';\r\nimport { TypedUseSelectorHook, useDispatch as useReduxDispatch, useSelector as useReduxSelector } from 'react-redux';\r\nimport createSagaMiddleware from 'redux-saga';\r\nimport { createLogger } from 'redux-logger';\r\nimport cookie from 'js-cookie';\r\nimport { initialState as tasksCartInitialState } from '../processes/TasksCart/logic/reducer';\r\n\r\nimport { AppAction, AppState } from './types';\r\nimport reducers from '../config/reducers';\r\nimport rootSaga from '../config/sagas';\r\n\r\nconst sagaMiddleware = createSagaMiddleware();\r\nconst middlewareList: Middleware[] = [sagaMiddleware];\r\nif (process.env.NODE_ENV === 'development') {\r\n\tmiddlewareList.push(createLogger({\r\n\t\tpredicate: (getState, action) => action.type !== '' && action.type !== 'USERS__FETCH_USER_PERMISSIONS' && action.type !== 'USERS__FETCH_USER_PERMISSIONS_RESULT',\r\n\t}));\r\n}\r\n\r\nconst getTasksCart = () => {\r\n\tconst tasksCart = localStorage.getItem('tasksCart');\r\n\tif (!tasksCart) return tasksCartInitialState;\r\n\ttry {\r\n\t\treturn JSON.parse(tasksCart);\r\n\t} catch (e) {\r\n\t\treturn tasksCartInitialState;\r\n\t}\r\n};\r\n\r\nconst enhancers = [applyMiddleware(...middlewareList)];\r\nconst initialState = {\r\n\tstorage: {\r\n\t\taccessToken: cookie.get('accessToken'),\r\n\t\trefreshToken: cookie.get('refreshToken'),\r\n\t\tisLoggedIn: cookie.get('isLoggedIn') === 'true',\r\n\t\tcalendar: cookie.get('calendar') as undefined | 'gregorian' | 'hijri',\r\n\t\tdelegationId: cookie.get('delegationId'),\r\n\t\tloginAsUserId: cookie.get('loginAsUserId')\r\n\t},\r\n\ttasksCart: getTasksCart(),\r\n};\r\n\r\n// @ts-ignore\r\nconst str = createStore(reducers, initialState, compose(...enhancers));\r\nsagaMiddleware.run(rootSaga);\r\n\r\nexport const store = str;\r\n\r\nexport const useDispatch = (): Dispatch => useReduxDispatch();\r\nexport const useSelector: TypedUseSelectorHook = useReduxSelector;\r\n\r\nexport let reportServerURL = '';\r\n\r\nstore.subscribe(() => {\r\n\tcookie.set('accessToken', store.getState().storage.accessToken);\r\n\tcookie.set('refreshToken', store.getState().storage.refreshToken || '');\r\n\tcookie.set('isLoggedIn', store.getState().storage.isLoggedIn ? 'true' : 'false');\r\n\tcookie.set('calendar', store.getState().storage.calendar || 'gregorian');\r\n\treportServerURL = store.getState().reports.reportServerUrl;\r\n\tlocalStorage.setItem('tasksCart', JSON.stringify(store.getState().tasksCart));\r\n\tcookie.set('delegationId', store.getState().storage.delegationId || '');\r\n\tcookie.set('loginAsUserId', store.getState().storage.loginAsUserId || '');\r\n});\r\n","import { AppAction, AppResultAction, SelectableValue } from '../../../config/types';\r\nimport { TaskType } from '../../TaskType/logic/types';\r\nimport { Priority } from '../../Priority/logic/types';\r\nimport { Procedure } from '../../Procedure/logic/types';\r\nimport { User } from '../../Users/logic/types';\r\n\r\nexport enum ActionTypes {\r\n\tchange_inbox_mode = 'TASKS__CHANGE_INBOX_MODE',\r\n\tclear_tasks_data = 'TASKS__CLEAR_TASKS_DATA',\r\n\tfetch_tasks = 'TASKS__FETCH_TASKS',\r\n\trefetch_tasks = 'TASKS__REFETCH_TASKS',\r\n\tfetch_tasks_result = 'TASKS__FETCH_TASKS_RESULT',\r\n\r\n\t// Task Count\r\n\tfetch_task_count = 'TASKS__FETCH_TASK_COUNT',\r\n\tfetch_task_count_result = 'TASKS__FETCH_TASK_COUNT_RESULT',\r\n\r\n\t// Start Task\r\n\tstart_task_change_notes = 'TASKS__START_TASK_CHANGE_NOTES',\r\n\tstart_task_start_task = 'TASKS__START_TASK_START_TASK',\r\n\tstart_task_clear_data = 'TASKS__START_TASK_CLEAR_DATA',\r\n\r\n\t// Finish Task\r\n\tfinish_task_change_work_hours = 'TASKS__FINISH_TASK_CHANGE_WORK_HOURS',\r\n\tfinish_task_change_notes = 'TASKS__FINISH_TASK_CHANGE_NOTES',\r\n\tfinish_task_finish_task = 'TASKS__FINISH_TASK_FINISH_TASK',\r\n\tfinish_task_clear_data = 'TASKS__FINISH_TASK_CLEAR_DATA',\r\n\r\n\t// Completion Rate Task\r\n\tcompletion_rate_task_change_completion_rate = 'TASKS__COMPLETION_RATE_TASK_CHANGE_COMPLETION_RATE',\r\n\tcompletion_rate_task_completion_rate_task = 'TASKS__COMPLETION_RATE_TASK_COMPLETION_RATE_TASK',\r\n\tcompletion_rate_task_clear_data = 'TASKS__COMPLETION_RATE_TASK_CLEAR_DATA',\r\n\r\n\t// Reject Task\r\n\treject_task_change_rejection_reason = 'TASKS__REJECT_TASK_CHANGE_REJECTION_REASON',\r\n\treject_task_reject_task = 'TASKS__REJECT_TASK_REJECT_TASK',\r\n\treject_task_clear_data = 'TASKS__REJECT_TASK_CLEAR_DATA',\r\n\r\n\t// Postpone Task\r\n\tpostpone_task_can_postpone_task = 'TASKS__POSTPONE_TASK_CAN_POSTPONE_TASK',\r\n\tpostpone_task_can_postpone_task_result = 'TASKS__POSTPONE_TASK_CAN_POSTPONE_TASK_RESULT',\r\n\tpostpone_task_change_postpone_reason = 'TASKS__POSTPONE_TASK_CHANGE_POSTPONE_REASON',\r\n\tpostpone_task_postpone_task = 'TASKS__POSTPONE_TASK_POSTPONE_TASK',\r\n\tpostpone_task_clear_data = 'TASKS__POSTPONE_TASK_CLEAR_DATA',\r\n\r\n\t// Reassign Task\r\n\treassign_task_select_user = 'TASKS__REASSIGN_TASK_SELECT_USER',\r\n\treassign_task_change_notes = 'TASKS__REASSIGN_TASK_CHANGE_NOTES',\r\n\treassign_task_reassign_task = 'TASKS__REASSIGN_TASK_REASSIGN_TASK',\r\n\treassign_task_clear_data = 'TASKS__REASSIGN_TASK_CLEAR_DATA',\r\n\r\n\t// ForwardCC Task\r\n\tforward_cc_task_can_forward_cc_task = 'TASKS__FORWARD_CC_TASK_CAN_FORWARD_CC_TASK',\r\n\tforward_cc_task_can_forward_cc_task_result = 'TASKS__FORWARD_CC_TASK_CAN_FORWARD_CC_TASK_RESULT',\r\n\tforward_cc_task_select_user = 'TASKS__FORWARD_CC_TASK_SELECT_USER',\r\n\tforward_cc_task_change_notes = 'TASKS__FORWARD_CC_TASK_CHANGE_NOTES',\r\n\tforward_cc_task_forward_cc_task = 'TASKS__FORWARD_CC_TASK_FORWARD_CC_TASK',\r\n\tforward_cc_task_clear_data = 'TASKS__FORWARD_CC_TASK_CLEAR_DATA',\r\n\r\n\t// Retrieve Task\r\n\tretrieve_task_can_retrieve_task = 'TASKS__RETRIEVE_TASK_CAN_RETRIEVE_TASK',\r\n\tretrieve_task_can_retrieve_task_result = 'TASKS__RETRIEVE_TASK_CAN_RETRIEVE_TASK_RESULT',\r\n\tretrieve_task_change_notes = 'TASKS__RETRIEVE_TASK_CHANGE_NOTES',\r\n\tretrieve_task = 'TASKS__RETRIEVE_TASK',\r\n\tretrieve_task_clear_data = 'TASKS__RETRIEVE_TASK_CLEAR_DATA',\r\n\r\n\t// Kill Task\r\n\tkill_task_visible_kill_task_modal = 'TASKS__KILL_TASK_VISIBLE_KILL_TASK_MODAL',\r\n\tkill_task_change_task_no = 'TASKS__KILL_TASK_CHANGE_TASK_NO',\r\n\tkill_task_change_kill_notes = 'TASKS__KILL_TASK_CHANGE_KILL_NOTES',\r\n\tkill_task_get_task_by_task_no = 'TASKS__KILL_TASK_GET_TASK_BY_TASK_NO',\r\n\tkill_task_go_to_step1 = 'TASKS__KILL_TASK_GO_TO_STEP1',\r\n\tkill_task_get_task_by_task_no_result = 'TASKS__KILL_TASK_GET_TASK_BY_TASK_NO_RESULT',\r\n\tkill_task_clear_kill_task_modal = 'TASKS__KILL_TASK_CLEAR_KILL_TASK_MODAL',\r\n\tkill_task_kill_task = 'TASKS__KILL_TASK_KILL_TASK',\r\n\r\n\t// Confirm Task\r\n\tconfirm_task_can_confirm_task = 'TASKS__CONFIRM_TASK_CAN_CONFIRM_TASK',\r\n\tconfirm_task_can_confirm_task_result = 'TASKS__CONFIRM_TASK_CAN_CONFIRM_TASK_RESULT',\r\n\tconfirm_task_change_note = 'TASKS__CONFIRM_TASK_CHANGE_NOTE',\r\n\tconfirm_task_change_rating = 'TASKS__CONFIRM_TASK_CHANGE_RATING',\r\n\tconfirm_task_clear_data = 'TASKS__CONFIRM_TASK_CLEAR_DATA',\r\n\tconfirm_task_confirm_task = 'TASKS__CONFIRM_TASK_CONFIRM_TASK',\r\n\r\n\treassign_all_tasks = 'TASKS__REASSIGN_ALL_TASKS',\r\n\treassign_all_tasks_result = 'TASKS__REASSIGN_ALL_TASKS_RESULT',\r\n}\r\n\r\nexport interface ChangeInboxModeAction extends AppAction {\r\n\ttype: ActionTypes.change_inbox_mode;\r\n\tinboxMode?: InboxMode;\r\n}\r\n\r\nexport interface FetchTasksAction extends AppAction {\r\n\ttype: ActionTypes.fetch_tasks | ActionTypes.refetch_tasks;\r\n\tpageNumber: number;\r\n}\r\n\r\nexport interface FetchTasksResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_tasks_result;\r\n\thasError: boolean;\r\n\ttasks?: TaskHeader[];\r\n\ttotalCount?: number;\r\n}\r\n\r\nexport interface FetchTaskCountResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_task_count_result;\r\n\thasError: boolean;\r\n\ttaskCount: TaskCount;\r\n\tnotificationCount: number;\r\n}\r\n\r\n// Start Task\r\nexport interface StartTaskChangeNotesAction extends AppAction {\r\n\ttype: ActionTypes.start_task_change_notes;\r\n\tnotes: string;\r\n}\r\n\r\nexport interface StartTaskStartTaskAction extends AppAction {\r\n\ttype: ActionTypes.start_task_start_task,\r\n\tuserTaskId: string,\r\n}\r\n\r\n// Finish Task\r\nexport interface FinishTaskChangeWorkHoursAction extends AppAction {\r\n\ttype: ActionTypes.finish_task_change_work_hours,\r\n\tworkHours: string;\r\n}\r\n\r\nexport interface FinishTaskChangeNotesAction extends AppAction {\r\n\ttype: ActionTypes.finish_task_change_notes;\r\n\tnotes: string;\r\n}\r\n\r\nexport interface FinishTaskFinishTaskAction extends AppAction {\r\n\ttype: ActionTypes.finish_task_finish_task,\r\n\tuserTaskId: string,\r\n}\r\n\r\n// Completion Rate Task\r\nexport interface CompletionRateTaskChangeCompletionRateAction extends AppAction {\r\n\ttype: ActionTypes.completion_rate_task_change_completion_rate,\r\n\tcompletionRate: string;\r\n}\r\n\r\nexport interface CompletionRateTaskCompletionRateTaskAction extends AppAction {\r\n\ttype: ActionTypes.completion_rate_task_completion_rate_task,\r\n\tuserTaskId: string,\r\n}\r\n\r\n// Reject Task\r\nexport interface RejectTaskChangeRejectionReasonAction extends AppAction {\r\n\ttype: ActionTypes.reject_task_change_rejection_reason;\r\n\trejectionReason: string;\r\n}\r\n\r\nexport interface RejectTaskAction extends AppAction {\r\n\ttype: ActionTypes.reject_task_reject_task,\r\n\tuserTaskId: string,\r\n}\r\n\r\n// Postpone Task\r\nexport interface PostponeTaskCanPostponeTaskAction extends AppAction {\r\n\ttype: ActionTypes.postpone_task_can_postpone_task,\r\n\tuserTaskId: string,\r\n}\r\n\r\nexport interface PostponeTaskCanPostponeTaskResultAction extends AppResultAction {\r\n\ttype: ActionTypes.postpone_task_can_postpone_task_result,\r\n\tcanPostpone?: boolean;\r\n}\r\n\r\nexport interface PostponeTaskChangePostponeReasonAction extends AppAction {\r\n\ttype: ActionTypes.postpone_task_change_postpone_reason;\r\n\tpostponeReason: string;\r\n}\r\n\r\nexport interface PostponeTaskPostponeTaskAction extends AppAction {\r\n\ttype: ActionTypes.postpone_task_postpone_task,\r\n\tuserTaskId: string,\r\n}\r\n\r\n// ReassignTask\r\nexport interface ReassignTaskSelectUserAction extends AppAction {\r\n\ttype: ActionTypes.reassign_task_select_user,\r\n\tuser?: SelectableValue,\r\n}\r\n\r\nexport interface ReassignTaskChangeNotesAction extends AppAction {\r\n\ttype: ActionTypes.reassign_task_change_notes;\r\n\tnotes: string;\r\n}\r\n\r\nexport interface ReassignTaskReassignTaskAction extends AppAction {\r\n\ttype: ActionTypes.reassign_task_reassign_task,\r\n\tuserTaskId: string,\r\n}\r\n\r\n// ForwardCC Task\r\nexport interface ForwardCCTaskCanForwardCCTaskAction extends AppAction {\r\n\ttype: ActionTypes.forward_cc_task_can_forward_cc_task,\r\n\tuserTaskId: string;\r\n}\r\n\r\nexport interface ForwardCCTaskCanForwardCCTaskResultAction extends AppResultAction {\r\n\ttype: ActionTypes.forward_cc_task_can_forward_cc_task_result,\r\n\tcanForward?: boolean;\r\n}\r\n\r\nexport interface ForwardCCTaskSelectUserAction extends AppAction {\r\n\ttype: ActionTypes.forward_cc_task_select_user,\r\n\tusers: SelectableValue[],\r\n}\r\n\r\nexport interface ForwardCCTaskChangeNotesAction extends AppAction {\r\n\ttype: ActionTypes.forward_cc_task_change_notes;\r\n\tnotes: string;\r\n}\r\n\r\nexport interface ForwardCCTaskForwardCCTaskAction extends AppAction {\r\n\ttype: ActionTypes.forward_cc_task_forward_cc_task,\r\n\tuserTaskId: string,\r\n}\r\n\r\n// Retrieve Task\r\nexport interface RetrieveTaskCanRetrieveTaskAction extends AppAction {\r\n\ttype: ActionTypes.retrieve_task_can_retrieve_task,\r\n\tuserTaskId: string;\r\n}\r\n\r\nexport interface RetrieveTaskCanRetrieveTaskResultAction extends AppResultAction {\r\n\ttype: ActionTypes.retrieve_task_can_retrieve_task_result,\r\n\tcanRetrieve?: boolean;\r\n}\r\n\r\nexport interface RetrieveTaskChangeNoteAction extends AppAction {\r\n\ttype: ActionTypes.retrieve_task_change_notes;\r\n\tnotes: string;\r\n}\r\n\r\nexport interface RetrieveTaskAction extends AppAction {\r\n\ttype: ActionTypes.retrieve_task,\r\n\tuserTaskId: string,\r\n}\r\n\r\n// Kill Task\r\nexport interface KillTaskVisibleKillTaskModalAction extends AppAction {\r\n\ttype: ActionTypes.kill_task_visible_kill_task_modal;\r\n\tisVisible: boolean;\r\n}\r\n\r\nexport interface KillTaskChangeTaskNoAction extends AppAction {\r\n\ttype: ActionTypes.kill_task_change_task_no;\r\n\ttaskNo: string;\r\n}\r\n\r\nexport interface KillTaskChangeKillNotesAction extends AppAction {\r\n\ttype: ActionTypes.kill_task_change_kill_notes;\r\n\tkillNote: string;\r\n}\r\n\r\nexport interface KillTaskGetTaskByTaskNoResultAction extends AppResultAction {\r\n\ttype: ActionTypes.kill_task_get_task_by_task_no_result;\r\n\ttask?: Task;\r\n}\r\n\r\n// Confirm Task\r\nexport interface ConfirmTaskCanConfirmTaskAction extends AppAction {\r\n\ttype: ActionTypes.confirm_task_can_confirm_task;\r\n\tuserTaskId: string;\r\n}\r\n\r\nexport interface ConfirmTaskCanConfirmTaskResultAction extends AppResultAction {\r\n\ttype: ActionTypes.confirm_task_can_confirm_task_result;\r\n\tcanConfirm?: boolean;\r\n}\r\n\r\nexport interface ConfirmTaskChangeNoteAction extends AppAction {\r\n\ttype: ActionTypes.confirm_task_change_note;\r\n\tnote: string;\r\n}\r\n\r\nexport interface ConfirmTaskChangeRatingAction extends AppAction {\r\n\ttype: ActionTypes.confirm_task_change_rating;\r\n\trating?: number;\r\n}\r\n\r\nexport interface ConfirmTaskConfirmTaskAction extends AppAction {\r\n\ttype: ActionTypes.confirm_task_confirm_task;\r\n\tuserTaskId: string,\r\n}\r\n\r\n\r\nexport enum InboxMode {\r\n\tdefaultInbox,\r\n\tinbox,\r\n\tpending,\r\n\tlate,\r\n\tretrieved,\r\n\trejected,\r\n\tdone,\r\n\tassigned,\r\n\tcc,\r\n\tfinished,\r\n\tconfirmedFinished,\r\n\tjustFinished\r\n}\r\n\r\nexport enum TaskStatus {\r\n\t// جديدة\r\n\tnew = 1,\r\n\t// معلقة\r\n\tpending,\r\n\t// تحت التنفيذ\r\n\tinProgress,\r\n\t// مرفوضة\r\n\trejected,\r\n\t// مُنجزة\r\n\tdone,\r\n\t// مسترجعة\r\n\tretrieved,\r\n\t// منتهية\r\n\tfinished,\r\n\t// متأخرة\r\n\tlate,\r\n\t// مغلقة\r\n\tclosed,\r\n\t// مسودة\r\n\tdraft\r\n}\r\n\r\nexport const inboxModeDisplay: { [key in InboxMode]: string } = {\r\n\t[InboxMode.defaultInbox]: 'المهام الواردة',\r\n\t[InboxMode.inbox]: 'المهام الجديدة',\r\n\t[InboxMode.pending]: 'المهام المعلقة',\r\n\t[InboxMode.late]: 'المهام المتأخرة',\r\n\t[InboxMode.retrieved]: 'المهام المسترجعة',\r\n\t[InboxMode.rejected]: 'المهام المرفوضة',\r\n\t[InboxMode.done]: 'المهام المنجزة',\r\n\t[InboxMode.assigned]: 'المهام المسندة',\r\n\t[InboxMode.cc]: 'صور المهام',\r\n\t[InboxMode.finished]: 'المهام المنتهية',\r\n\t[InboxMode.confirmedFinished]: 'المهام المنتهية',\r\n\t[InboxMode.justFinished]: 'المهام المنتهية',\r\n};\r\n\r\nexport const taskStatusDisplay: { [key in TaskStatus]: string } = {\r\n\t[TaskStatus.new]: 'جديدة',\r\n\t[TaskStatus.pending]: 'معلقة',\r\n\t[TaskStatus.inProgress]: 'تحت التنفيذ',\r\n\t[TaskStatus.rejected]: 'مرفوضة',\r\n\t[TaskStatus.done]: 'مُنجزة',\r\n\t[TaskStatus.retrieved]: 'مسترجعة',\r\n\t[TaskStatus.finished]: 'منتهية',\r\n\t[TaskStatus.late]: 'متأخرة',\r\n\t[TaskStatus.closed]: 'مغلقة',\r\n\t[TaskStatus.draft]: 'مسودة',\r\n};\r\n\r\nexport interface TaskCount {\r\n\tdefaultInbox: number;\r\n\tinbox: number;\r\n\tpending: number;\r\n\tlate: number;\r\n\tretrieved: number;\r\n\trejected: number;\r\n\tdone: number;\r\n\tassigned: number;\r\n\tcc: number;\r\n\tfinish: number;\r\n\tchangeDateNew: number;\r\n}\r\n\r\nexport interface TaskHeader {\r\n\tuserTaskId: string,\r\n\tuserTaskStatus: TaskStatus,\r\n\tisUserTaskConfirmed: boolean,\r\n\tisUserTaskCC: boolean,\r\n\r\n\tassignedToId: string,\r\n\tassignedToArName: string,\r\n\tassignedFromId: string,\r\n\tassignedFromArName: string,\r\n\r\n\tlastReadAt: string,\r\n\tlastReadAtDisplay: string,\r\n\r\n\ttaskId: string,\r\n\ttaskNo: string,\r\n\ttaskTitle: string,\r\n\ttaskStatus: TaskStatus,\r\n\ttaskStartDate: string,\r\n\tisTaskSecret: boolean,\r\n\tcanRetrieve?: boolean,\r\n}\r\n\r\nexport interface UserTask {\r\n\tid: string,\r\n\tno: string,\r\n\r\n\ttask: Task,\r\n\tparent: UserTask,\r\n\r\n\tstatus: TaskStatus,\r\n\tstatusDisplay: string,\r\n\r\n\tassignedTo: User,\r\n\tassignedFrom: User,\r\n\r\n\tisCC: boolean,\r\n\tisCompleted: boolean,\r\n\tisConfirmed: boolean,\r\n\tisRead: boolean,\r\n\r\n\tcreatedAt: string,\r\n\tlastUpdatedAt: string,\r\n\tlastReadAt: string,\r\n\tlastReadAtDisplay: string,\r\n}\r\n\r\nexport interface StartTask {\r\n\tnotes: string;\r\n}\r\n\r\nexport interface FinishTask {\r\n\tworkHours: string;\r\n\tnotes: string;\r\n}\r\n\r\nexport interface CompletionRateTask {\r\n\tcompletionRate: string;\r\n}\r\n\r\nexport interface PostponeTask {\r\n\tpostponeReason: string,\r\n\tcanPostpone?: boolean;\r\n}\r\n\r\nexport interface RejectTask {\r\n\trejectionReason: string,\r\n}\r\n\r\nexport interface ReAssignTask {\r\n\tuser?: SelectableValue;\r\n\tnotes: string;\r\n}\r\n\r\nexport interface ForwardCCTask {\r\n\tusers: SelectableValue[];\r\n\tnotes: string;\r\n\tcanForward?: boolean;\r\n}\r\n\r\nexport interface RetrieveTask {\r\n\tnotes: string;\r\n\tcanRetrieve?: boolean;\r\n}\r\n\r\nexport interface KillTask {\r\n\tstep1: boolean;\r\n\tstep2: boolean;\r\n\r\n\ttaskNo: string;\r\n\tkillNote: string;\r\n\ttask?: Task;\r\n\r\n\tvisibleKillTaskModal: boolean;\r\n}\r\n\r\nexport interface ConfirmTask {\r\n\tnotes: string;\r\n\trating?: number;\r\n\tcanConfirm?: boolean;\r\n}\r\n\r\nexport interface Task {\r\n\tid: string;\r\n\tno: string,\r\n\ttitle: string;\r\n\tdescription: string,\r\n\tnotes: string,\r\n\r\n\tstatus: TaskStatus,\r\n\tstatusDisplay: string,\r\n\r\n\tparent?: Task,\r\n\r\n\ttaskType: TaskType,\r\n\tpriority: Priority,\r\n\tprocedure: Procedure,\r\n\r\n\tstartDate: string,\r\n\tendDate: string,\r\n\r\n\tcreatedAt: string,\r\n\tcreatedBy: User,\r\n\tlastUpdatedAt: string,\r\n\tlastUpdatedBy: User,\r\n\r\n\tisConfirmed: boolean,\r\n\tisSecret: boolean,\r\n\r\n\tattachments: AttachmentFile[],\r\n}\r\n\r\nexport interface AttachmentFile {\r\n\tattachmentId: string,\r\n\tfileName: string,\r\n\tisSecure: boolean,\r\n}\r\n\r\n{/*it is not certain if we need to use this type or not*/\r\n}\r\n\r\nexport interface Status {\r\n\tid: string;\r\n\tname: string;\r\n}\r\n\r\nexport enum HistoryItemType {\r\n\tcomment,\r\n\thistory,\r\n}\r\n\r\nexport interface HistoryItem {\r\n\tid: string;\r\n\ttype: HistoryItemType;\r\n\tcomment: string;\r\n\tcreatedBy: User;\r\n\tcreatedAt: string;\r\n\r\n\ttaskStatus?: TaskStatus;\r\n\ttaskAction?: number;\r\n\ttaskActionDisplay?: string;\r\n\tisUserTaskConfirmed?: boolean;\r\n\tuserTaskStatus?: TaskStatus;\r\n\tuserTaskAssignedTo?: User;\r\n\tuserTaskAssignedForm?: User;\r\n\r\n\tattachments: AttachmentFile[];\r\n\tisBestAnswer: boolean;\r\n\ttaskCreatedBy: User;\r\n\r\n\tonHisBehalfUser?: User;\r\n}\r\n\r\nexport type Action =\r\n\tAppAction\r\n\t& ChangeInboxModeAction\r\n\t& FetchTasksAction\r\n\t& FetchTasksResultAction\r\n\t& FetchTaskCountResultAction\r\n\r\n\t& StartTaskChangeNotesAction\r\n\t& StartTaskStartTaskAction\r\n\r\n\t& FinishTaskChangeWorkHoursAction\r\n\t& FinishTaskChangeNotesAction\r\n\t& FinishTaskFinishTaskAction\r\n\r\n\t& CompletionRateTaskChangeCompletionRateAction\r\n\t& CompletionRateTaskCompletionRateTaskAction\r\n\r\n\t& RejectTaskChangeRejectionReasonAction\r\n\t& RejectTaskAction\r\n\r\n\t& PostponeTaskCanPostponeTaskAction\r\n\t& PostponeTaskCanPostponeTaskResultAction\r\n\t& PostponeTaskChangePostponeReasonAction\r\n\t& PostponeTaskPostponeTaskAction\r\n\r\n\t& ReassignTaskSelectUserAction\r\n\t& ReassignTaskChangeNotesAction\r\n\t& ReassignTaskReassignTaskAction\r\n\r\n\t& ForwardCCTaskCanForwardCCTaskAction\r\n\t& ForwardCCTaskCanForwardCCTaskResultAction\r\n\t& ForwardCCTaskSelectUserAction\r\n\t& ForwardCCTaskChangeNotesAction\r\n\t& ForwardCCTaskForwardCCTaskAction\r\n\r\n\t& RetrieveTaskCanRetrieveTaskAction\r\n\t& RetrieveTaskCanRetrieveTaskResultAction\r\n\t& RetrieveTaskChangeNoteAction\r\n\t& RetrieveTaskAction\r\n\r\n\t& KillTaskVisibleKillTaskModalAction\r\n\t& KillTaskChangeTaskNoAction\r\n\t& KillTaskChangeKillNotesAction\r\n\t& KillTaskGetTaskByTaskNoResultAction\r\n\r\n\t& ConfirmTaskCanConfirmTaskAction\r\n\t& ConfirmTaskCanConfirmTaskResultAction\r\n\t& ConfirmTaskChangeNoteAction\r\n\t& ConfirmTaskChangeRatingAction\r\n\t& ConfirmTaskConfirmTaskAction\r\n\r\nexport interface State {\r\n\tinboxMode?: InboxMode;\r\n\ttotalCount: number;\r\n\tpageNumber: number;\r\n\ttaskHeaders: TaskHeader[];\r\n\ttaskDetail?: UserTask;\r\n\tccUsers: User[];\r\n\tattachmentFiles: AttachmentFile[];\r\n\thistoryItems: HistoryItem[];\r\n\r\n\ttaskCount: TaskCount;\r\n\tnotificationCount: number;\r\n\tstartTask: StartTask;\r\n\tfinishTask: FinishTask;\r\n\tcompletionRateTask: CompletionRateTask;\r\n\tkillTask: KillTask;\r\n\trejectTask: RejectTask;\r\n\treassignTask: ReAssignTask;\r\n\tforwardCCTask: ForwardCCTask;\r\n\tretrieveTask: RetrieveTask;\r\n\tpostponeTask: PostponeTask;\r\n\tconfirmTask: ConfirmTask;\r\n}\r\n","import React, { useEffect, useState } from 'react';\r\nimport axios, { AxiosRequestConfig } from 'axios';\r\nimport { AxiosError } from 'axios';\r\nimport moment from 'moment-hijri';\r\nimport { TreeNode } from './types';\r\nimport { store } from './store';\r\nimport { clearAllStorage } from '../processes/Storage/logic/actions';\r\nimport { navigate } from '../processes/Services/actions';\r\n\r\nexport const request = async (options: AxiosRequestConfig) => {\r\n\t\r\n\ttry {\r\n\t\tconst response = await axios(options);\r\n\t\tif (response.data.Error) {\r\n\t\t\tthrow { message: response.data.Error.ErrorMessage, errorCode: response.data.Error.ErrorID };\r\n\t\t}\r\n\t\treturn response;\r\n\t} catch (error) {\t\r\n\t\thandleError(error as AxiosError);\r\n \tthrow error;\r\n\t}\r\n};\r\n\r\nexport const formatDate = (date: Date | string | undefined, withTime: boolean = false) => {\r\n\tif (!date) return '';\r\n\tconst momentDate = moment(date);\r\n\tlet reVal = momentDate.format(`iDD iMMMM iYYYY الموافق DD MMMM YYYY`);\r\n\tif (withTime) reVal = reVal.concat(' ').concat(momentDate.format('hh:mm a'));\r\n\treturn reVal;\r\n};\r\n\r\nexport const nodesTreeUpdater = (\r\n\ttreeNode: TreeNode,\r\n\tpredicate: (treeNode: TreeNode) => boolean,\r\n\tcallback: (prevTreeNode: TreeNode) => TreeNode,\r\n): TreeNode => {\r\n\tconst children = treeNode.children.map(child =>\r\n\t\tnodesTreeUpdater(child, predicate, callback),\r\n\t);\r\n\tif (predicate(treeNode)) {\r\n\t\treturn callback({\r\n\t\t\t...treeNode,\r\n\t\t\tchildren,\r\n\t\t});\r\n\t}\r\n\treturn { ...treeNode, children };\r\n};\r\n\r\nexport const nodesTreeMapper = (treeNode: TreeNode, callback: (treeNode: TreeNode) => T): T => {\r\n\t// @ts-ignore\r\n\treturn React.cloneElement(callback(treeNode), {\r\n\t\tchildren: treeNode.children.map(child => nodesTreeMapper(child, callback)),\r\n\t});\r\n};\r\n\r\nexport const getNodesTree = (nodesTree: TreeNode, parentId?: string) => {\r\n\tlet result: undefined | TreeNode;\r\n\tconst check = (node: TreeNode) => {\r\n\t\tif (node.id === parentId) result = node;\r\n\t\telse node.children.forEach(child => check(child));\r\n\t};\r\n\r\n\tcheck(nodesTree);\r\n\treturn result;\r\n};\r\n\r\nexport const useScreenSize = () => {\r\n\tconst [width, setWidth] = useState(window.innerWidth);\r\n\tconst [height, setHeight] = useState(window.innerHeight);\r\n\r\n\tuseEffect(() => {\r\n\t\tconst onResize = () => {\r\n\t\t\tsetWidth(window.innerWidth);\r\n\t\t\tsetHeight(window.innerHeight);\r\n\t\t};\r\n\r\n\t\twindow.addEventListener('resize', onResize);\r\n\t\treturn () => window.removeEventListener('resize', onResize);\r\n\t}, []);\r\n\r\n\treturn { width, height };\r\n};\r\n\r\nexport const generatePassword = () => {\r\n\tlet length = 8,\r\n\t\tcharset = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789',\r\n\t\tretVal = '';\r\n\tfor (let i = 0, n = charset.length; i < length; ++i) {\r\n\t\tretVal += charset.charAt(Math.floor(Math.random() * n));\r\n\t}\r\n\treturn retVal;\r\n};\r\n const handleError = (error: AxiosError) => {\r\n\tif (isAxiosError(error)) {\r\n\t if (error.response) {\r\n\t\t// Server responded with a status code outside the 2xx range\r\n\t\tconst statusCode = error.response.status;\r\n\t\tconst errorMessage = error.response.data?.message || error.message;\r\n\t\tswitch (statusCode) {\r\n\t\t case 401: \r\n\t\t\tstore.dispatch(clearAllStorage());\r\n\t\t\t return; \r\n\t\t case 403:\r\n\t\t\tstore.dispatch(navigate('Forbidden'));\r\n\t\t\treturn `Forbidden: ${errorMessage}`;\r\n\t\t case 404:\r\n\t\t\treturn `Not Found: ${errorMessage}`;\r\n\t\t case 500:\r\n\t\t\treturn `Internal Server Error: ${errorMessage}`;\r\n\t\t default:\r\n\t\t\treturn `Error: ${errorMessage} (Status Code: ${statusCode})`;\r\n\t\t}\r\n\t } else if (error.request) {\r\n\t\t// Request was made but no response was received\r\n\t\treturn `No response received: ${error.message}`;\r\n\t } else {\r\n\t\t// Something happened in setting up the request\r\n\t\treturn `Request setup error: ${error.message}`;\r\n\t }\r\n\t} else {\r\n\t // Non-Axios error\r\n\t return `Error:`;\r\n\t}\r\n };\r\n\r\n const isAxiosError = (error: any): error is AxiosError => {\r\n\treturn error.isAxiosError === true;\r\n};\r\n","import moment from 'moment';\r\nimport { TaskStatus } from '../processes/Tasks/logic/type';\r\nimport { select } from \"redux-saga/effects\";\r\nimport { AppState } from \"./types\";\r\n\r\n// @ts-ignore\r\nconst root = process.env.NODE_ENV === 'development' ? 'http://localhost:5000/TaskTracker.ReactWebApi/' : window.API_URL as string;\r\n//const root = 'http://192.168.1.101/TaskTracker.ReactWebApi/';\r\n// const root = 'http://task.swazerlab.com/';\r\n\r\n// @ts-ignore\r\nexport const DynamsoftWebTwainEnvProductKey = process.env.NODE_ENV === 'development' ? 'f0068WQAAABLSjtixobBbLu8V4vJ85YXn0sv7QrOD7EZ3v6Tvcvs4hk+5VtT/CJOxbkYgyP0tuuQYPvoQ9Wp/XAmqGSauvUs=' : window.WEB_TWAIN_SCANNER_PRODUC_KEY as string;\r\n\r\n// @ts-ignore\r\nexport const DynamsoftWebTwainEnvTrial = process.env.NODE_ENV === 'development' ? false : window.WEB_TWAIN_SCANNER_TRIAL as boolean;\r\n\r\n// @ts-ignore\r\nexport const DynamsoftWebTwainEnvResourcesPath = process.env.NODE_ENV === 'development' ? '/assets/dynamsoft/' : window.WEB_TWAIN_RESOURCE_URL as string;\r\n\r\nconst accountRoot = root.concat('Api/Account/');\r\n\r\nconst attachmentRoot = root.concat('api/attachment/');\r\nconst procedureRoot = root.concat('api/procedure/');\r\nconst searchPageRoot = root.concat('api/searchPage/');\r\nconst permissionTemplateRoot = root.concat('api/permissionTemplate/');\r\nconst priorityRoot = root.concat('api/priority/');\r\nconst taskTypeRoot = root.concat('api/taskType/');\r\nconst stakholderRoot = root.concat('api/treatmentStakholder/');\r\nconst usersRoot = root.concat('api/user/');\r\nconst logsRoot = root.concat('api/logs/');\r\nconst delegationsRoot = root.concat('api/delegation/');\r\nconst organizationsRoot = root.concat('api/organization/');\r\nconst searchRoot = root.concat('api/search/');\r\nconst auditingRoot = root.concat('api/auditing/');\r\nconst userPermissionsRoot = root.concat('api/userPermissions/');\r\nconst taskRoot = root.concat('api/task/');\r\nconst notificationRoot = root.concat('api/notification/');\r\nconst cedRequestsRoot = root.concat('api/cedRequests/');\r\nconst esRequestsRoot = root.concat('api/esrequest/');\r\nconst refferalForm = root.concat('api/refferalForm/');\r\n\r\nexport const attachmentUrl = (fileName: string) => root.concat('files/').concat(fileName);\r\n\r\nexport const login_url = accountRoot.concat('Token');\r\nexport const fetch_profile_url = accountRoot.concat('fetchProfile');\r\nexport const fetch_user_profile_url = accountRoot.concat('fetchUserProfile');\r\nexport const update_profile_url = accountRoot.concat('updateProfile');\r\n\r\nexport const upload_files_url = attachmentRoot.concat('uploadFiles');\r\nexport const delete_file_url = attachmentRoot.concat('deleteFile');\r\nexport const generate_pdf_url = attachmentRoot.concat('generatePdf');\r\nexport const fetch_attachment_settings_url = attachmentRoot.concat('getAllowedFileExtensions');\r\nexport const get_attachment_file_url = attachmentRoot.concat('getAttachmentFile');\r\nexport const send_code_for_secure_attachment_url = attachmentRoot.concat('sendCodeForSecureAttachment');\r\nexport const export_task_to_pdf_url = attachmentRoot.concat('exportTaskToPdf');\r\nexport const get_original_attachment_url = attachmentRoot.concat('getFile');\r\n\r\nexport const get_procedures_url = procedureRoot.concat('getProcedures');\r\nexport const add_procedure_url = procedureRoot.concat('addProcedure');\r\nexport const update_procedure_url = procedureRoot.concat('updateProcedures');\r\nexport const delete_procedure_url = procedureRoot.concat('deleteProcedures');\r\nexport const get_procedure_url = procedureRoot.concat('getProcedure');\r\n\r\nexport const get_taskTypes_url = taskTypeRoot.concat('getTaskTypes');\r\nexport const add_taskType_url = taskTypeRoot.concat('addTaskType');\r\nexport const update_taskType_url = taskTypeRoot.concat('updateTaskType');\r\nexport const delete_taskType_url = taskTypeRoot.concat('deleteTaskType');\r\nexport const get_taskType_url = taskTypeRoot.concat('getTaskType');\r\n\r\nexport const get_priorities_url = priorityRoot.concat('getPriorities');\r\nexport const add_priority_url = priorityRoot.concat('addPriority');\r\nexport const update_priority_url = priorityRoot.concat('updatePriority');\r\nexport const delete_priority_url = priorityRoot.concat('deletePriority');\r\nexport const get_priority_url = priorityRoot.concat('getPriority');\r\n\r\nexport const get_stakholders_url = stakholderRoot.concat('getTreatmentStakholders');\r\nexport const add_stakholder_url = stakholderRoot.concat('addTreatmentStakholder');\r\nexport const update_stakholder_url = stakholderRoot.concat('updateTreatmentStakholder');\r\nexport const delete_stakholder_url = stakholderRoot.concat('deleteTreatmentStakholder');\r\nexport const get_stakholder_url = stakholderRoot.concat('getTreatmentStakholder');\r\n\r\nexport const fetch_users_same_tree_url = usersRoot.concat('getUsersTheSameTree');\r\nexport const fetch_users_url = usersRoot.concat('getUsers');\r\nexport const fetch_organisations_url = usersRoot.concat('fetchOrganisation');\r\nexport const add_user_url = usersRoot.concat('addUsers');\r\nexport const validate_user_url = usersRoot.concat('validateUser');\r\nexport const validate_ad_user_url = usersRoot.concat('validateAdUser');\r\nexport const search_new_users_url = usersRoot.concat('getSearchUsers');\r\nexport const fetch_user_url = usersRoot.concat('fetchUser');\r\nexport const fetch_user_orgs_url = usersRoot.concat('fetchUserOrgs');\r\nexport const fetch_user_with_orgs_url = usersRoot.concat('fetchUserWithOrgs');\r\nexport const update_user_url = usersRoot.concat('updateUser');\r\nexport const delete_user_url = usersRoot.concat('deleteUser');\r\nexport const fetch_user_permissions_url = usersRoot.concat('userAllPermission');\r\nexport const fetch_user_path_url = usersRoot.concat('fetchUserPath');\r\nexport const max_bulk_users = usersRoot.concat('maxBulkUsers');\r\n\r\nexport const add_ad_user_url = usersRoot.concat('addAdUsers');\r\nexport const find_ad_user = usersRoot.concat('findAdUser');\r\n\r\nexport const change_user_password_url = usersRoot.concat('resetUserPassword');\r\nexport const change_password_url = usersRoot.concat('changePassword');\r\n\r\nexport const get_delegations_url = delegationsRoot.concat('getDelegations');\r\nexport const get_delegation_url = delegationsRoot.concat('getDelegation');\r\nexport const get_organizations_url = delegationsRoot.concat('getUsersOrganizationsNotDelegated');\r\nexport const get_users_url = delegationsRoot.concat('searchUsersInTopParentOrgs');\r\nexport const add_delegate_url = delegationsRoot.concat('addDelegate');\r\nexport const update_delegate_url = delegationsRoot.concat('updateDelegate');\r\nexport const delete_delegate_url = delegationsRoot.concat('deleteDelegate');\r\n\r\nexport const get_all_organizations_url = organizationsRoot.concat('getOrganizations');\r\nexport const get_organization_url = organizationsRoot.concat('getOrganization');\r\nexport const search_in_organizations_url = organizationsRoot.concat('searchInOrganizations');\r\nexport const add_organization_url = organizationsRoot.concat('addOrganization');\r\nexport const copy_organization_url = organizationsRoot.concat('copyOrganization');\r\nexport const update_organization_url = organizationsRoot.concat('updateOrganization');\r\nexport const delete_organization_url = organizationsRoot.concat('deleteOrganization');\r\nexport const get_organization_parent_path_url = organizationsRoot.concat('getOrganizationParentPath');\r\nexport const activate_organization_url = organizationsRoot.concat('activateOrganization');\r\nexport const deactivate_organization_url = organizationsRoot.concat('deactivateOrganization');\r\n\r\nexport const get_permissionTemplates_url = permissionTemplateRoot.concat('getPermissionTemplates');\r\nexport const get_user_permissionTemplates_url = permissionTemplateRoot.concat('getUserPermissionTemplate');\r\nexport const add_permissionTemplate_url = permissionTemplateRoot.concat('addPermissionTemplate');\r\nexport const update_permissionTemplate_url = permissionTemplateRoot.concat('updatePermissionTemplate');\r\nexport const delete_permissionTemplate_url = permissionTemplateRoot.concat('deletePermissionTemplate');\r\nexport const get_permissionTemplate_url = permissionTemplateRoot.concat('getPermissionTemplate');\r\nexport const get_all_permissions_url = permissionTemplateRoot.concat('getAllPermissions');\r\n\r\n// User Permissions\r\nexport const fetch_all_user_permissions_url = userPermissionsRoot.concat('fetchAllUserPermissions');\r\nexport const fetch_current_user_permissions_url = userPermissionsRoot.concat('fetchCurrentUserPermissions');\r\nexport const fetch_permission_categories_url = userPermissionsRoot.concat('fetchPermissionCategories');\r\nexport const update_user_permissions_url = userPermissionsRoot.concat('updateUserPermissions');\r\nexport const update_user_permission_templates_url = userPermissionsRoot.concat('updateUserPermissionTemplate');\r\n\r\nexport const my_delegations_url = delegationsRoot.concat('myDelegations');\r\nexport const has_delegations_url = delegationsRoot.concat('hasDelegation');\r\nexport const get_telegram_bot_url_url = delegationsRoot.concat('getTelegramBotUrl');\r\n\r\nexport const get_logs_url = logsRoot.concat('getLogs');\r\n\r\nexport const fetch_current_value_url = searchRoot.concat('searchDefaultPath');\r\nexport const update_path_url = searchRoot.concat('updatePath');\r\nexport const fetch_all_indexes_url = searchRoot.concat('fetchAllIndex');\r\nexport const reset_search_url = searchRoot.concat('resetSearch');\r\n\r\nexport const fetch_system_actions_url = auditingRoot.concat('fetchSystemActions');\r\nexport const fetch_user_searcing_actions_url = auditingRoot.concat('userSearchingActions');\r\nexport const remove_all_records_url = auditingRoot.concat('removeAll');\r\n\r\nexport const fetch_task_count_url = taskRoot.concat('taskCount');\r\nexport const fetch_task_user_url = taskRoot.concat('getUsers');\r\nexport const add_task_url = taskRoot.concat('addTask');\r\nexport const start_task_url = taskRoot.concat('startTask');\r\nexport const finish_task_url = taskRoot.concat('finishTask');\r\nexport const completion_rate_task_url = taskRoot.concat('completionRateTask');\r\nexport const reject_task_url = taskRoot.concat('rejectTask');\r\nexport const can_postpone_task_url = taskRoot.concat('canPostponeTask');\r\nexport const postpone_task_url = taskRoot.concat('postponeTask');\r\nexport const can_confirm_task_url = taskRoot.concat('canConfirmTask');\r\nexport const confirm_task_url = taskRoot.concat('confirmTask');\r\nexport const reassign_task_url = taskRoot.concat('reassignTask');\r\nexport const reassign_tasks_url = taskRoot.concat('reassignTasks');\r\nexport const can_forward_cc_task_url = taskRoot.concat('canForwardCCTask');\r\nexport const forward_cc_task_url = taskRoot.concat('forwardCCTask');\r\nexport const can_retrieve_task_url = taskRoot.concat('canRetrieveTask');\r\nexport const retrieve_task_url = taskRoot.concat('retrieveTask');\r\nexport const kill_task_url = taskRoot.concat('killTask');\r\nexport const get_task_by_task_no_url = taskRoot.concat('getTaskByTaskNo');\r\nexport const fetch_tasks_url = taskRoot.concat('fetchInbox');\r\nexport const get_user_task_url = taskRoot.concat('getUserTask');\r\nexport const get_task_header_url = taskRoot.concat('getTaskHeader');\r\nexport const get_parent_user_task_url = taskRoot.concat('getParentUserTask');\r\nexport const get_cc_user_in_task_url = taskRoot.concat('getCCUsersInTask');\r\nexport const get_task_attachments_url = taskRoot.concat('getTaskAttachments');\r\nexport const get_comments_and_histories = taskRoot.concat('getCommentsAndHistories');\r\nexport const set_best_answer_url = taskRoot.concat('setBestAnswer');\r\nexport const get_total_comments_and_histories_count = taskRoot.concat('getTotalCommentsAndHistoriesCount');\r\nexport const send_code_for_secure_task_url = taskRoot.concat('sendCodeForSecureTask');\r\nexport const fetch_max_task_in_cart_url = taskRoot.concat('getMaxTaskInCart');\r\n\r\nexport const get_notifications_count = notificationRoot.concat('getNotificationCount');\r\nexport const get_user_task_notifications = notificationRoot.concat('getUserTaskNotifications');\r\nexport const get_system_notifications = notificationRoot.concat('getSystemNotifications');\r\nexport const get_last_notifications = notificationRoot.concat('getLastNotifications');\r\nexport const add_task_comment_url = notificationRoot.concat('addTaskComment');\r\n\r\nexport const fetch_ced_requests_url = cedRequestsRoot.concat('fetchCedRequests');\r\nexport const fetch_ced_request_url = cedRequestsRoot.concat('fetchCedRequest');\r\nexport const update_ced_request_url = cedRequestsRoot.concat('updateCedRequest');\r\nexport const fetch_ced_requests_by_task_id_url = cedRequestsRoot.concat('fetchCedRequestByTaskId');\r\nexport const get_not_confirmed_tasks_by_task_no = cedRequestsRoot.concat('getNotConfirmedTasksByTaskNO');\r\nexport const get_task_by_task_id = cedRequestsRoot.concat('getTaskById');\r\nexport const add_ced_request_url = cedRequestsRoot.concat('addCedRequest');\r\nexport const can_send_ced_request_url = cedRequestsRoot.concat('canSendCedRequest');\r\nexport const get_active_request_url = cedRequestsRoot.concat('getActiveRequestByTaskID');\r\n\r\n// Search\r\nexport const search_tasks_url = searchPageRoot.concat('fetchSearchTasks');\r\nexport const advanced_search_tasks_url = searchPageRoot.concat('fetchAdvancedSearchTasks');\r\n\r\n//Reports\r\nexport const fetch_users_with_org_id_url = organizationsRoot.concat('getUsersWithOrgId');\r\nexport const get_all_organizations_to_report_url = organizationsRoot.concat('getOrganizationToReport');\r\nexport const get_report_server_url = taskRoot.concat('getReportServerUrl');\r\n\r\nexport const reportUrl = (name: string, params: { [key: string]: any }) => {\r\n\tconst root = '';\r\n\tlet url = `${root}${name}&rc:Parameters=false&rs:embed=true&rs:ParameterLanguage=ar-EG&`;\r\n\tObject.entries(params).forEach(([id, value], index) => {\r\n\t\tif (value === undefined) return;\r\n\t\tconst key = id.replace(' ', '');\r\n\t\tif (Array.isArray(value)) url += `${key}=(${value.reduce((accumulator, currentValue, index) => `${accumulator}${index === 0 ? '' : ','}'${currentValue}'`, '')})`;\r\n\t\telse if (moment.isMoment(value)) url += `${key}=${moment(value).format('L')}`;\r\n\t\telse url += `${key}=${value}`;\r\n\t\turl += '&';\r\n\t});\r\n\treturn url.substring(0, url.length - 1);\r\n};\r\n\r\nexport const TaskByOrganizationsURL = (\r\n\torgId: string,\r\n\torgName: string,\r\n\tincludeChildren: boolean,\r\n\ttaskTypeId?: string,\r\n\ttaskTypeName?: string,\r\n\tstatusId?: TaskStatus,\r\n\tstatusName?: string,\r\n\ttoDate?: Date,\r\n\tfromDate?: Date,\r\n) => reportUrl('rptTasksByOrg', {\r\n\tTaskTypeID: taskTypeId,\r\n\tTaskTypeName: taskTypeName,\r\n\tStatusID: statusId,\r\n\tStatusName: statusName,\r\n\tToDate: toDate,\r\n\tFromDate: fromDate,\r\n\tOrgID: orgId,\r\n\tOrgName: orgName,\r\n\tIncludeChildren: includeChildren,\r\n});\r\n\r\nexport const MainOrgTasksStatusURL = (\r\n\torgIds: string[],\r\n\tincludeChildren: boolean,\r\n) => reportUrl('rptMainOrgTasksStatus', {\r\n\tOrgIDs: orgIds,\r\n\tIncludeChildren: includeChildren,\r\n});\r\n\r\nexport const LateTasksForEmployeeURL = (\r\n\tuserId: string,\r\n\tempName: string,\r\n\tdelayDay: string,\r\n\ttoDate?: Date,\r\n\tfromDate?: Date,\r\n) => reportUrl('rptLateTasksForEmployee', {\r\n\tToDate: toDate,\r\n\tFromDate: fromDate,\r\n\tUserID: userId,\r\n\tDelayDays: delayDay,\r\n\tEmpName: empName,\r\n});\r\n\r\nexport const LateTasksForOrganizationURL = (\r\n\torgId: string,\r\n\torgName: string,\r\n\tincludeChildren: boolean,\r\n\tdelayDay: string,\r\n\ttoDate?: Date,\r\n\tfromDate?: Date,\r\n) => reportUrl('rptLateTasksForOrg', {\r\n\tToDate: toDate,\r\n\tFromDate: fromDate,\r\n\tOrgID: orgId,\r\n\tDelayDays: delayDay,\r\n\tOrgName: orgName,\r\n\tIncludeChildren: includeChildren,\r\n});\r\n\r\nexport const GetDonePercentageForOrgsDetailsURL = (\r\n\torgIds: string[],\r\n\tfromDate?: Date,\r\n\ttoDate?: Date,\r\n) => reportUrl('rptGetDonePercentageForOrgsDetails', {\r\n\tOrgsIDs: orgIds,\r\n\tFromDate: fromDate,\r\n\tToDate: toDate,\r\n});\r\nexport const GetTaskPercentageForOrgsDetailsURL = (\r\n\torgIds: string[],\r\n\tfromDate?: Date,\r\n\ttoDate?: Date,\r\n) => reportUrl('rptGetTaskPercentageForOrgsDetails', {\r\n\tOrgIDs: orgIds,\r\n\tFromDate: fromDate,\r\n\tToDate: toDate,\r\n});\r\n\r\nexport const GetTaskPercentageForEmployeesInOrgDetailsURL = (\r\n\torgId: string,\r\n\torgName: string,\r\n\tincludeChildren: boolean,\r\n\ttoDate?: Date,\r\n\tfromDate?: Date,\r\n) => reportUrl('rptGetTaskPercentageForEmployeesInOrgDetails', {\r\n\tToDate: toDate,\r\n\tFromDate: fromDate,\r\n\tOrgsID: orgId,\r\n\tOrgName: orgName,\r\n\tIncludeChildren: includeChildren,\r\n});\r\n\r\n// Es Request\r\nexport const fetch_es_requests_url = esRequestsRoot.concat('GetESRequests');\r\nexport const closed_es_request_id_url = esRequestsRoot.concat('closedEsRequest');\r\nexport const add_es_request_url = esRequestsRoot.concat('AddESRequests');\r\nexport const fetch_es_request_url = esRequestsRoot.concat('GetESRequest');\r\nexport const fetch_es_request_comments_url = esRequestsRoot.concat('GetESRequestComments');\r\nexport const fetch_es_request_user_task = esRequestsRoot.concat('GetEsRequestUserTasks');\r\nexport const add_es_request_comment_url = esRequestsRoot.concat('AddESRequestComment');\r\n\r\n// Refferal Form\r\nexport const fetch_referral_form_url = refferalForm.concat('getRefferalForm');\r\nexport const add_referral_form_url = refferalForm.concat('addRefferalForm');\r\n","import { AppAction, AppResultAction, SelectableValue } from '../../../config/types';\r\nimport { Organization } from '../../Organization/logic/types';\r\n\r\nexport enum ActionTypes {\r\n\trefetch_users = 'USERS__REFETCH_USERS',\r\n\tfetch_users = 'USERS__FETCH_USERS',\r\n\tfetch_users_result = 'USERS_FETCH_USERS_RESULT',\r\n\r\n\tchange_search_criteria_name = 'USERS__CHANGE_SEARCH_CRITERIA_NAME',\r\n\tchange_search_criteria_email = 'USERS__CHANGE_SEARCH_CRITERIA_EMAIL',\r\n\tchange_search_criteria_is_active = 'USERS__CHANGE_SEARCH_CRITERIA_IS_ACTIVE',\r\n\tselect_search_criteria_organization = 'USERS__SELECT_SEARCH_CRITERIA_ORGANIZATION',\r\n\tclear_search_criteria_data = 'USERS__CLEAR_SEARCH_CRITERIA_DATA',\r\n\r\n\tclear_users_data = 'USERS__CLEAR_USERS_DATA',\r\n\r\n\tchange_user_name = 'USERS__CHANGE_USER_NAME',\r\n\tchange_email = 'USERS__CHANGE_USER_EMAIL',\r\n\tchange_ar_name = 'USERS__CHANGE_AR_NAME',\r\n\tchange_en_name = 'USERS__CHANGE_EN_NAME',\r\n\tchange_job_description = 'USERS__CHANGE_JOB_DESCRIPTION',\r\n\tchange_mobile_phone = 'USERS__CHANGE_MOBILE_PHONE',\r\n\tchange_password = 'USERS__CHANGE_PASSWORD',\r\n\tchange_confirm_password = 'USERS__CHANGE_CONFIRM_PASSWORD',\r\n\tchange_organisation = 'USERS__ORGANISATION',\r\n\r\n\tadd_user = 'USERS__ADD_USER',\r\n\tadd_user_result = 'USERS__ADD_USER_RESULT',\r\n\r\n\tset_draft_user = 'USERS__SET_DRAFT_USER',\r\n\tclear_draft_user = 'USERS__CLEAR_DRAFT_USER',\r\n\r\n\tselect_new_user = 'USERS__SELECT_USER',\r\n\tclear_modal_data = 'USERS__CLEAR_MODAL_DATA',\r\n\r\n\tfetch_user_orgs = 'USERS__FETCH_USER_ORGS',\r\n\tfetch_user_orgs_result = 'USERS__FETCH_USER_ORGS_RESULT',\r\n\tfetch_user_path = 'USERS__FETCH_USER_PATH',\r\n\tfetch_user_path_result = 'USERS__FETCH_USER_PATH_RESULT',\r\n\tload_user = 'USERS__LOAD_USER',\r\n\tload_user_result = 'USERS__LOAD_USER_RESULT',\r\n\tupdate_user = 'USERS__UPDATE_USER',\r\n\tupdate_user_result = 'USERS__UPDATE_USER_RESULT',\r\n\tuser_active_checkbox_toggle = 'USERS__USER_ACTIVE_CHECKBOX_TOGGLE',\r\n\r\n\tdelete_user = 'USERS__DELETE_USER',\r\n\tdelete_user_result = 'USERS__DELETE_USER_RESULT',\r\n\r\n\tvisible_delete_modal = 'USERS__VISIBLE_DELETE_MODAL',\r\n\r\n\tclear_user_criteria = 'USERS__CLEAR_USER_CRITERIA',\r\n\tclear_user_path_data = 'USERS__CLEAR_USER_PATH_DATA',\r\n\r\n\tchange_ad_user_user_name = 'USERS__CHANGE_AD_USER_USER_NAME',\r\n\tchange_ad_user_organizations = 'USERS__CHANGE_AD_USER_ORGANIZATIONS',\r\n\tfill_ad_user_informations = 'USERS__FILL_AD_USER_INFORMATIONS',\r\n\tadd_ad_user = 'USERS__ADD_AD_USER',\r\n\tclear_ad_user = 'USERS__CLEAR_AD_USER',\r\n\tfind_ad_user = 'USERS__FIND_AD_USER',\r\n\tgo_to_step2 = 'USERS__GO_TO_STEP_2',\r\n\tgo_to_step1 = 'USERS__GO_TO_STEP_1',\r\n\r\n\tadd_user_to_bulk_users = 'USERS__ADD_USER_TO_BULK_USERS',\r\n\tadd_user_to_bulk_users_result = 'USERS__ADD_USER_TO_BULK_USERS_RESULT',\r\n\tedit_bulk_user = 'USERS__EDIT_BULK_USER',\r\n\tdelete_bulk_user = 'USERS__DELETE_BULK_USER',\r\n\tchange_bulk_users_organizations = 'USERS__CHANGE_BULK_USERS_ORGANIZATIONS',\r\n\tset_step_2 = 'USERS__SET_STEP_2',\r\n\r\n\tremove_from_ad_bulk_users_list = 'USERS__REMOVE_FROM_AD_BULK_USERS_LIST',\r\n\tadd_ad_user_result = 'USER__ADD_AD_USER_RESULT',\r\n\r\n\tfetch_max_bulk_users_count = 'USERS__FETCH_MAX_BULK_USERS_COUNT',\r\n\tfetch_max_bulk_users_count_result = 'USERS__FETCH_MAX_BULK_USERS_COUNT_RESULT',\r\n\r\n\tchange_user_password = 'USERS__CHANGE_USER_PASSWORD',\r\n\tchange_user_password_result = 'USERS__CHANGE_USER_PASSWORD_RESULT',\r\n}\r\n\r\nexport interface FetchUsersAction extends AppAction {\r\n\ttype: ActionTypes.fetch_users;\r\n\tpageNumber: number;\r\n}\r\n\r\nexport interface RefetchUsersAction extends AppAction {\r\n\ttype: ActionTypes.refetch_users;\r\n\tpageNumber: number;\r\n}\r\n\r\nexport interface FetchUsersResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_users_result;\r\n\tusers: User[];\r\n\ttotalCount: number;\r\n}\r\n\r\nexport interface ChangeSearchCriteriaNameAction extends AppAction {\r\n\ttype: ActionTypes.change_search_criteria_name;\r\n\tname?: string;\r\n}\r\n\r\nexport interface ChangeSearchCriteriaEmailAction extends AppAction {\r\n\ttype: ActionTypes.change_search_criteria_email;\r\n\temail?: string;\r\n}\r\n\r\nexport interface ChangeSearchCriteriaIsActiveAction extends AppAction {\r\n\ttype: ActionTypes.change_search_criteria_is_active;\r\n\tisActive?: boolean\r\n}\r\n\r\n\r\nexport interface ChangeUserNameAction extends AppAction {\r\n\ttype: ActionTypes.change_user_name;\r\n\tuserName: string;\r\n}\r\n\r\nexport interface ChangeEmailAction extends AppAction {\r\n\ttype: ActionTypes.change_email;\r\n\teMail: string;\r\n}\r\n\r\nexport interface ChangeArNameAction extends AppAction {\r\n\ttype: ActionTypes.change_ar_name;\r\n\tarName: string;\r\n}\r\n\r\nexport interface ChangeEnNameAction extends AppAction {\r\n\ttype: ActionTypes.change_en_name;\r\n\tenName: string;\r\n}\r\n\r\nexport interface ChangeJobDescriptionAction extends AppAction {\r\n\ttype: ActionTypes.change_job_description;\r\n\tjobDescription: string;\r\n}\r\n\r\nexport interface ChangeMobilePhoneAction extends AppAction {\r\n\ttype: ActionTypes.change_mobile_phone;\r\n\tphone: string;\r\n}\r\n\r\nexport interface ChangePasswordAction extends AppAction {\r\n\ttype: ActionTypes.change_password;\r\n\tpassword: string;\r\n}\r\n\r\nexport interface ChangeConfirmPasswordAction extends AppAction {\r\n\ttype: ActionTypes.change_confirm_password;\r\n\tconfirmPassword: string;\r\n}\r\n\r\nexport interface ChangeOrganisationAction extends AppAction {\r\n\ttype: ActionTypes.change_organisation;\r\n\torganizations?: SelectableValue[];\r\n}\r\n\r\nexport interface SetDraftUserAction extends AppAction {\r\n\ttype: ActionTypes.set_draft_user;\r\n\tuser: User;\r\n}\r\n\r\nexport interface FetchUserOrgsAction extends AppAction {\r\n\ttype: ActionTypes.fetch_user_orgs;\r\n\tuserId: string;\r\n}\r\n\r\nexport interface FetchUserOrgsResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_user_orgs_result;\r\n\thasError: boolean;\r\n\tuser?: User;\r\n\torganizations?: SelectableValue[];\r\n}\r\n\r\nexport interface LoadUserAction extends AppAction {\r\n\ttype: ActionTypes.load_user,\r\n\tuserId: string\r\n}\r\n\r\nexport interface LoadUserResultAction extends AppResultAction {\r\n\ttype: ActionTypes.load_user_result,\r\n\thasError: boolean,\r\n\tuser?: User,\r\n\torganizations?: SelectableValue[]\r\n}\r\n\r\nexport interface FetchUserPathAction extends AppAction {\r\n\ttype: ActionTypes.fetch_user_path;\r\n\tuserId: string;\r\n}\r\n\r\nexport interface FetchUserPathResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_user_path_result;\r\n\thasError: boolean;\r\n\tuserName?: string;\r\n\tuserPath?: [];\r\n}\r\n\r\nexport interface UpdateUserAction extends AppAction {\r\n\ttype: ActionTypes.update_user;\r\n\tuserID: string;\r\n}\r\n\r\nexport interface SelectNewUserAction extends AppAction {\r\n\ttype: ActionTypes.select_new_user;\r\n\tnewUser?: User;\r\n}\r\n\r\nexport interface VisibleDeleteModalAction extends AppAction {\r\n\ttype: ActionTypes.visible_delete_modal;\r\n\tvisible: boolean;\r\n}\r\n\r\nexport interface ChangeAdUserUserNameAction extends AppAction {\r\n\ttype: ActionTypes.change_ad_user_user_name;\r\n\tadUserUserName: string;\r\n}\r\n\r\nexport interface ChangeAdUserOrganizationsAction extends AppAction {\r\n\ttype: ActionTypes.change_ad_user_organizations;\r\n\torganizations: SelectableValue[];\r\n}\r\n\r\nexport interface FillAdUserInformation extends AppAction {\r\n\ttype: ActionTypes.fill_ad_user_informations;\r\n\tadUser: AdUser;\r\n}\r\n\r\nexport interface SelectOrganizationAction extends AppAction {\r\n\ttype: ActionTypes.select_search_criteria_organization,\r\n\torganization?: Organization;\r\n}\r\n\r\nexport interface EditBulkUserAction extends AppAction {\r\n\ttype: ActionTypes.edit_bulk_user;\r\n\tuser: User;\r\n}\r\n\r\nexport interface DeleteBulkUserAction extends AppAction {\r\n\ttype: ActionTypes.delete_bulk_user;\r\n\tuser: User;\r\n}\r\n\r\nexport interface ChangeBulkUsersOrganizationsAction extends AppAction {\r\n\ttype: ActionTypes.change_bulk_users_organizations;\r\n\torganizations: SelectableValue[];\r\n}\r\n\r\nexport interface AddUsersResultAction extends AppResultAction {\r\n\ttype: ActionTypes.add_user_result,\r\n\tfailedUserEmailList: string[]\r\n}\r\n\r\nexport interface SetStep2Action extends AppAction {\r\n\ttype: ActionTypes.set_step_2;\r\n\tstep2: boolean;\r\n}\r\n\r\nexport interface RemoveFromAdBulkUsersListAction extends AppAction {\r\n\ttype: ActionTypes.remove_from_ad_bulk_users_list;\r\n\tadUser: AdUser;\r\n}\r\n\r\nexport interface AddAdUserResultAction extends AppResultAction {\r\n\ttype: ActionTypes.add_ad_user_result;\r\n\tfailedUserEmailList: string[];\r\n}\r\n\r\nexport interface FetchMaxBulkUsersResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_max_bulk_users_count_result;\r\n\tmaxBulkUsersCount?: number;\r\n}\r\n\r\nexport interface ChangeUserPasswordAction extends AppAction {\r\n\ttype: ActionTypes.change_user_password,\r\n\tuserId: string,\r\n\tnewPassword: string\r\n}\r\n\r\nexport interface User {\r\n\tuuid?: string;\r\n\tid: string;\r\n\tuserName: string;\r\n\tarName: string;\r\n\tenName: string;\r\n\tdisplayName?: string;\r\n\temail: string;\r\n\tmobile: string;\r\n\tjobDescription: string;\r\n\tactive: boolean;\r\n\tpassword?: string;\r\n\tconfirmPassword?: string;\r\n\torganizations?: SelectableValue[];\r\n\tsource?: 'e' | 'k';\r\n}\r\n\r\nexport interface AdUser {\r\n\tid: string;\r\n\tadUserUserName: string;\r\n\tadUserMobile: string;\r\n\tadUserArName: string;\r\n\tadUserEnName: string;\r\n\tadUserJobDesc: string;\r\n\tadUserPassword: string;\r\n\tadUserOrganizations: SelectableValue[];\r\n}\r\n\r\nexport type Action =\r\n\tAppAction\r\n\t& RefetchUsersAction\r\n\t& FetchUsersAction\r\n\t& FetchUsersResultAction\r\n\t& ChangeSearchCriteriaNameAction\r\n\t& ChangeSearchCriteriaEmailAction\r\n\t& ChangeSearchCriteriaIsActiveAction\r\n\t& ChangeUserNameAction\r\n\t& ChangeEmailAction\r\n\t& ChangeArNameAction\r\n\t& ChangeEnNameAction\r\n\t& ChangeJobDescriptionAction\r\n\t& ChangeMobilePhoneAction\r\n\t& ChangePasswordAction\r\n\t& ChangeConfirmPasswordAction\r\n\t& ChangeOrganisationAction\r\n\t& SetDraftUserAction\r\n\t& SelectNewUserAction\r\n\t& LoadUserAction\r\n\t& LoadUserResultAction\r\n\t& FetchUserOrgsAction\r\n\t& FetchUserPathResultAction\r\n\t& UpdateUserAction\r\n\t& VisibleDeleteModalAction\r\n\t& ChangeAdUserUserNameAction\r\n\t& FillAdUserInformation\r\n\t& ChangeAdUserOrganizationsAction\r\n\t& SelectOrganizationAction\r\n\t& EditBulkUserAction\r\n\t& DeleteBulkUserAction\r\n\t& AddUsersResultAction\r\n\t& SetStep2Action\r\n\t& RemoveFromAdBulkUsersListAction\r\n\t& AddAdUserResultAction\r\n\t& FetchMaxBulkUsersResultAction\r\n\t& ChangeUserPasswordAction\r\n\r\nexport interface UsersSearchCriteria {\r\n\tname?: string,\r\n\temail?: string,\r\n\tisActive?: boolean,\r\n\torganization?: Organization;\r\n}\r\n\r\nexport interface State {\r\n\tsearchCriteria: UsersSearchCriteria\r\n\r\n\tusers: User[];\r\n\tsearchNewUserQuery: string;\r\n\tnewUser?: User;\r\n\r\n\tvisibleDeleteModal: boolean;\r\n\r\n\ttotalCount: number;\r\n\tpageNumber: number;\r\n\r\n\tdraftUser: User;\r\n\r\n\tadUser: AdUser;\r\n\tstep1: boolean;\r\n\tstep2: boolean;\r\n\r\n\tuserPath: [];\r\n\tuserName: string;\r\n\r\n\tbulkUsers: User[];\r\n\tbulkUsersOrganizations: SelectableValue[];\r\n\tisStep2: boolean;\r\n\r\n\tbulkAdUsers: AdUser[];\r\n\r\n\tmaxBulkUsersCount: number;\r\n}\r\n","import {\r\n\tActionTypes,\r\n\tChangeInboxModeAction,\r\n\tCompletionRateTaskChangeCompletionRateAction,\r\n\tCompletionRateTaskCompletionRateTaskAction,\r\n\tConfirmTaskCanConfirmTaskAction,\r\n\tConfirmTaskCanConfirmTaskResultAction,\r\n\tConfirmTaskChangeNoteAction,\r\n\tConfirmTaskChangeRatingAction,\r\n\tConfirmTaskConfirmTaskAction,\r\n\tFetchTaskCountResultAction,\r\n\tFetchTasksAction,\r\n\tFetchTasksResultAction,\r\n\tFinishTaskChangeNotesAction,\r\n\tFinishTaskChangeWorkHoursAction,\r\n\tFinishTaskFinishTaskAction,\r\n\tForwardCCTaskCanForwardCCTaskAction,\r\n\tForwardCCTaskCanForwardCCTaskResultAction,\r\n\tForwardCCTaskChangeNotesAction,\r\n\tForwardCCTaskForwardCCTaskAction,\r\n\tForwardCCTaskSelectUserAction,\r\n\tInboxMode,\r\n\tKillTaskChangeKillNotesAction,\r\n\tKillTaskChangeTaskNoAction,\r\n\tKillTaskGetTaskByTaskNoResultAction,\r\n\tKillTaskVisibleKillTaskModalAction,\r\n\tPostponeTaskCanPostponeTaskAction,\r\n\tPostponeTaskCanPostponeTaskResultAction,\r\n\tPostponeTaskChangePostponeReasonAction,\r\n\tPostponeTaskPostponeTaskAction,\r\n\tReassignTaskChangeNotesAction,\r\n\tReassignTaskReassignTaskAction,\r\n\tReassignTaskSelectUserAction,\r\n\tRejectTaskAction,\r\n\tRejectTaskChangeRejectionReasonAction,\r\n\tRetrieveTaskAction,\r\n\tRetrieveTaskCanRetrieveTaskAction,\r\n\tRetrieveTaskCanRetrieveTaskResultAction,\r\n\tRetrieveTaskChangeNoteAction,\r\n\tStartTaskChangeNotesAction,\r\n\tStartTaskStartTaskAction,\r\n\tTask,\r\n\tTaskCount,\r\n\tTaskHeader,\r\n} from './type';\r\nimport { AppAction, AppResultAction, SelectableValue } from '../../../config/types';\r\n\r\nexport const changeInboxMode = (inboxMode?: InboxMode): ChangeInboxModeAction => ({\r\n\ttype: ActionTypes.change_inbox_mode,\r\n\tinboxMode,\r\n});\r\nexport const clearTasksData = (): AppAction => ({\r\n\ttype: ActionTypes.clear_tasks_data,\r\n});\r\nexport const fetchTasks = (pageNumber: number): FetchTasksAction => ({\r\n\ttype: ActionTypes.fetch_tasks,\r\n\tpageNumber,\r\n});\r\nexport const refetchTasks = (): FetchTasksAction => ({\r\n\ttype: ActionTypes.refetch_tasks,\r\n\tpageNumber: 1,\r\n});\r\nexport const fetchTasksResult = (hasError: boolean, tasks?: TaskHeader[], totalCount?: number): FetchTasksResultAction => ({\r\n\ttype: ActionTypes.fetch_tasks_result,\r\n\thasError,\r\n\ttasks,\r\n\ttotalCount,\r\n});\r\nexport const fetchTaskCount = () => ({\r\n\ttype: ActionTypes.fetch_task_count,\r\n});\r\nexport const fetchTaskCountResult = (hasError: boolean, taskCount: TaskCount, notificationCount: number): FetchTaskCountResultAction => ({\r\n\ttype: ActionTypes.fetch_task_count_result,\r\n\thasError,\r\n\ttaskCount,\r\n\tnotificationCount,\r\n});\r\n\r\n// Start Task\r\nexport const startTaskChangeNotes = (notes: string): StartTaskChangeNotesAction => ({\r\n\ttype: ActionTypes.start_task_change_notes,\r\n\tnotes,\r\n});\r\nexport const startTaskStartTask = (userTaskId: string): StartTaskStartTaskAction => ({\r\n\ttype: ActionTypes.start_task_start_task,\r\n\tuserTaskId,\r\n});\r\nexport const clearStartTask = () => ({\r\n\ttype: ActionTypes.start_task_clear_data,\r\n});\r\n\r\n// Finish Task\r\nexport const finishTaskChangeWorkHours = (workHours: string): FinishTaskChangeWorkHoursAction => ({\r\n\ttype: ActionTypes.finish_task_change_work_hours,\r\n\tworkHours,\r\n});\r\nexport const finishTaskChangeNotes = (notes: string): FinishTaskChangeNotesAction => ({\r\n\ttype: ActionTypes.finish_task_change_notes,\r\n\tnotes,\r\n});\r\nexport const finishTaskFinishTask = (userTaskId: string): FinishTaskFinishTaskAction => ({\r\n\ttype: ActionTypes.finish_task_finish_task,\r\n\tuserTaskId,\r\n});\r\nexport const clearFinishTask = () => ({\r\n\ttype: ActionTypes.finish_task_clear_data,\r\n});\r\n\r\n// Completion Rate Task\r\nexport const completionRateTaskChangeCompletionRate = (completionRate: string): CompletionRateTaskChangeCompletionRateAction => ({\r\n\ttype: ActionTypes.completion_rate_task_change_completion_rate,\r\n\tcompletionRate,\r\n});\r\nexport const completionRateTaskCompletionRateTask = (userTaskId: string): CompletionRateTaskCompletionRateTaskAction => ({\r\n\ttype: ActionTypes.completion_rate_task_completion_rate_task,\r\n\tuserTaskId,\r\n});\r\nexport const clearCompletionRateTask = () => ({\r\n\ttype: ActionTypes.completion_rate_task_clear_data,\r\n});\r\n\r\n// Reject Task\r\nexport const rejectTaskChangeRejectionReason = (rejectionReason: string): RejectTaskChangeRejectionReasonAction => ({\r\n\ttype: ActionTypes.reject_task_change_rejection_reason,\r\n\trejectionReason,\r\n});\r\n\r\nexport const rejectTask = (userTaskId: string): RejectTaskAction => ({\r\n\ttype: ActionTypes.reject_task_reject_task,\r\n\tuserTaskId,\r\n});\r\nexport const rejectTaskClearData = (): AppAction => ({\r\n\ttype: ActionTypes.reject_task_clear_data,\r\n});\r\n\r\n// Postpone Task\r\nexport const postponeTaskCanPostponeTask = (userTaskId: string): PostponeTaskCanPostponeTaskAction => ({\r\n\ttype: ActionTypes.postpone_task_can_postpone_task,\r\n\tuserTaskId,\r\n});\r\nexport const postponeTaskCanPostponeTaskResult = (hasError: boolean, canPostpone?: boolean): PostponeTaskCanPostponeTaskResultAction => ({\r\n\ttype: ActionTypes.postpone_task_can_postpone_task_result,\r\n\thasError,\r\n\tcanPostpone,\r\n});\r\nexport const postponeTaskChangePostponeReason = (postponeReason: string): PostponeTaskChangePostponeReasonAction => ({\r\n\ttype: ActionTypes.postpone_task_change_postpone_reason,\r\n\tpostponeReason,\r\n});\r\n\r\nexport const postponeTask = (userTaskId: string): PostponeTaskPostponeTaskAction => ({\r\n\ttype: ActionTypes.postpone_task_postpone_task,\r\n\tuserTaskId,\r\n});\r\nexport const postponeTaskClearData = (): AppAction => ({\r\n\ttype: ActionTypes.postpone_task_clear_data,\r\n});\r\n\r\n// Reassign Task\r\nexport const reassignSelectUser = (user?: SelectableValue): ReassignTaskSelectUserAction => ({\r\n\ttype: ActionTypes.reassign_task_select_user,\r\n\tuser,\r\n});\r\nexport const reassignChangeNotes = (notes: string): ReassignTaskChangeNotesAction => ({\r\n\ttype: ActionTypes.reassign_task_change_notes,\r\n\tnotes,\r\n});\r\n\r\nexport const reassignTaskReassignTask = (userTaskId: string): ReassignTaskReassignTaskAction => ({\r\n\ttype: ActionTypes.reassign_task_reassign_task,\r\n\tuserTaskId,\r\n});\r\nexport const clearReassignTask = () => ({\r\n\ttype: ActionTypes.reassign_task_clear_data,\r\n});\r\n\r\n// ForwardCC Task\r\nexport const forwardCCTaskCanForwardCCTask = (userTaskId: string): ForwardCCTaskCanForwardCCTaskAction => ({\r\n\ttype: ActionTypes.forward_cc_task_can_forward_cc_task,\r\n\tuserTaskId,\r\n});\r\n\r\nexport const forwardCCTaskCanForwardCCTaskResult = (hasError: boolean, canForward?: boolean): ForwardCCTaskCanForwardCCTaskResultAction => ({\r\n\ttype: ActionTypes.forward_cc_task_can_forward_cc_task_result,\r\n\thasError,\r\n\tcanForward,\r\n});\r\n\r\nexport const forwardCCSelectUser = (users: SelectableValue[]): ForwardCCTaskSelectUserAction => ({\r\n\ttype: ActionTypes.forward_cc_task_select_user,\r\n\tusers,\r\n});\r\nexport const forwardCCChangeNotes = (notes: string): ForwardCCTaskChangeNotesAction => ({\r\n\ttype: ActionTypes.forward_cc_task_change_notes,\r\n\tnotes,\r\n});\r\n\r\nexport const forwardCCTaskForwardCCTask = (userTaskId: string): ForwardCCTaskForwardCCTaskAction => ({\r\n\ttype: ActionTypes.forward_cc_task_forward_cc_task,\r\n\tuserTaskId,\r\n});\r\nexport const forwardCCTaskClearData = () => ({\r\n\ttype: ActionTypes.forward_cc_task_clear_data,\r\n});\r\n\r\n// Confirm\r\nexport const confirmTaskCanConfirmTask = (userTaskId: string): ConfirmTaskCanConfirmTaskAction => ({\r\n\ttype: ActionTypes.confirm_task_can_confirm_task,\r\n\tuserTaskId,\r\n});\r\n\r\nexport const confirmTaskCanConfirmTaskResult = (hasError: boolean, canConfirm?: boolean): ConfirmTaskCanConfirmTaskResultAction => ({\r\n\ttype: ActionTypes.confirm_task_can_confirm_task_result,\r\n\thasError,\r\n\tcanConfirm,\r\n});\r\n\r\nexport const confirmTaskChangeNote = (note: string): ConfirmTaskChangeNoteAction => ({\r\n\ttype: ActionTypes.confirm_task_change_note,\r\n\tnote,\r\n});\r\n\r\nexport const confirmTaskChangeRating = (rating?: number): ConfirmTaskChangeRatingAction => ({\r\n\ttype: ActionTypes.confirm_task_change_rating,\r\n\trating,\r\n});\r\n\r\nexport const confirmTaskClearData = (): AppAction => ({\r\n\ttype: ActionTypes.confirm_task_clear_data,\r\n});\r\n\r\nexport const confirmTaskConfirmTask = (userTaskId: string): ConfirmTaskConfirmTaskAction => ({\r\n\ttype: ActionTypes.confirm_task_confirm_task,\r\n\tuserTaskId,\r\n});\r\n\r\n// Retrieve\r\nexport const retrieveTaskCanRetrieveTask = (userTaskId: string): RetrieveTaskCanRetrieveTaskAction => ({\r\n\ttype: ActionTypes.retrieve_task_can_retrieve_task,\r\n\tuserTaskId,\r\n});\r\nexport const retrieveTaskCanRetrieveTaskResult = (hasError: boolean, canRetrieve?: boolean): RetrieveTaskCanRetrieveTaskResultAction => ({\r\n\ttype: ActionTypes.retrieve_task_can_retrieve_task_result,\r\n\thasError,\r\n\tcanRetrieve,\r\n});\r\nexport const retrieveTaskChangeRetrieveTaskNote = (notes: string): RetrieveTaskChangeNoteAction => ({\r\n\ttype: ActionTypes.retrieve_task_change_notes,\r\n\tnotes,\r\n});\r\nexport const retrieveTask = (userTaskId: string): RetrieveTaskAction => ({\r\n\ttype: ActionTypes.retrieve_task,\r\n\tuserTaskId,\r\n});\r\nexport const retrieveTaskClearData = (): AppAction => ({\r\n\ttype: ActionTypes.retrieve_task_clear_data,\r\n});\r\n\r\n// Kill Task\r\nexport const killTaskVisibleKillTaskModalAction = (isVisible: boolean): KillTaskVisibleKillTaskModalAction => ({\r\n\ttype: ActionTypes.kill_task_visible_kill_task_modal,\r\n\tisVisible,\r\n});\r\nexport const killTaskChangeTaskNo = (taskNo: string): KillTaskChangeTaskNoAction => ({\r\n\ttype: ActionTypes.kill_task_change_task_no,\r\n\ttaskNo,\r\n});\r\nexport const killTaskChangeKillNotes = (killNote: string): KillTaskChangeKillNotesAction => ({\r\n\ttype: ActionTypes.kill_task_change_kill_notes,\r\n\tkillNote,\r\n});\r\nexport const killTaskGetTaskByTaskNo = (): AppAction => ({\r\n\ttype: ActionTypes.kill_task_get_task_by_task_no,\r\n});\r\nexport const killTaskGoToStep1 = (): AppAction => ({\r\n\ttype: ActionTypes.kill_task_go_to_step1,\r\n});\r\nexport const killTaskGetTaskByTaskNoResult = (hasError: boolean, task?: Task): KillTaskGetTaskByTaskNoResultAction => ({\r\n\ttype: ActionTypes.kill_task_get_task_by_task_no_result,\r\n\thasError,\r\n\ttask,\r\n});\r\nexport const killTaskClearKillTaskModal = (): AppAction => ({\r\n\ttype: ActionTypes.kill_task_clear_kill_task_modal,\r\n});\r\nexport const killTask = (): AppAction => ({\r\n\ttype: ActionTypes.kill_task_kill_task,\r\n});\r\n\r\nexport const reassignAllTasks = (): AppAction => ({\r\n\ttype: ActionTypes.reassign_all_tasks,\r\n});\r\nexport const reassignAllTasksResult = (hasError: boolean): AppResultAction => ({\r\n\ttype: ActionTypes.reassign_all_tasks_result,\r\n\thasError,\r\n});\r\n","import { AttachmentFile, HistoryItem, HistoryItemType, Task, TaskHeader, UserTask } from '../../Tasks/logic/type';\r\nimport {\r\n\tActionTypes,\r\n\tAddCommentAction,\r\n\tChangeActiveSlide,\r\n\tChangeAttachmentActiveSlide,\r\n\tChangeCommentAction,\r\n\tChangeIsTaskDetailsModalVisible,\r\n\tExportTaskPdfAction,\r\n\tExportTaskPdfResultAction,\r\n\tFetchIsAttachmentSecretAction,\r\n\tFetchIsAttachmentSecretResultAction,\r\n\tFetchIsTaskSecretAction,\r\n\tFetchIsTaskSecretResultAction,\r\n\tFetchParentTaskAction,\r\n\tFetchParentTaskActionResultAction,\r\n\tFetchTaskDetailsAction,\r\n\tFetchTaskDetailsResultAction,\r\n\tFetchTaskHistoryAndCommentsAction,\r\n\tFetchTaskHistoryAndCommentsResultAction,\r\n\tFetchTaskNotificationsAction,\r\n\tFetchTaskNotificationsResultAction,\r\n\tGetAttachmentUrlAction,\r\n\tGetAttachmentUrlResultAction,\r\n\tGetOriginalAttachmentAction,\r\n\tGetOriginalAttachmentResultAction,\r\n\tReDownloadPdfAction,\r\n\tRefetchTaskHistoryAndCommentsAction,\r\n\tSetAttachmentIdAction,\r\n\tSetBestAnswerAction,\r\n\tSetBestAnswerResultAction,\r\n\tState,\r\n\tTaskNotification,\r\n} from './types';\r\nimport { User } from '../../Users/logic/types';\r\nimport { AppAction } from '../../../config/types';\r\n\r\nexport const changeActiveSlide = (activeSlide: State['activeSlide']): ChangeActiveSlide => ({\r\n\ttype: ActionTypes.change_active_slide,\r\n\tactiveSlide,\r\n});\r\n\r\nexport const changeAttachmentActiveSlide = (attachmentActiveSlide: State['attachmentActiveSlide']): ChangeAttachmentActiveSlide => ({\r\n\ttype: ActionTypes.change_attachment_active_slide,\r\n\tattachmentActiveSlide,\r\n});\r\n\r\nexport const setAttachmentId = (attachmentId: string): SetAttachmentIdAction => ({\r\n\ttype: ActionTypes.set_attachment_id,\r\n\tattachmentId,\r\n});\r\n\r\nexport const fetchIsTaskSecret = (userTaskId: string): FetchIsTaskSecretAction => ({\r\n\ttype: ActionTypes.fetch_is_task_secret,\r\n\tuserTaskId,\r\n});\r\nexport const fetchIsTaskSecretResult = (hasError: boolean, taskHeader?: TaskHeader): FetchIsTaskSecretResultAction => ({\r\n\ttype: ActionTypes.fetch_is_task_secret_result,\r\n\thasError,\r\n\ttaskHeader,\r\n});\r\n\r\nexport const sendCodeForSecureTask = (): AppAction => ({\r\n\ttype: ActionTypes.send_code_for_secure_task,\r\n});\r\nexport const sendCodeForSecureAttachment = (): AppAction => ({\r\n\ttype: ActionTypes.send_code_for_secure_attachment,\r\n});\r\n\r\nexport const fetchTaskDetails = (userTaskId: string, code?: string): FetchTaskDetailsAction => ({\r\n\ttype: ActionTypes.fetch_task_details,\r\n\tuserTaskId,\r\n\tcode,\r\n});\r\nexport const fetchTaskDetailsResult = (hasError: boolean, userTask?: UserTask, ccUsers?: User[], attachmentFiles?: AttachmentFile[], historyAndCommentsCount?: number, notificationsCount?: number): FetchTaskDetailsResultAction => ({\r\n\ttype: ActionTypes.fetch_task_details_result,\r\n\thasError,\r\n\tuserTask,\r\n\tccUsers,\r\n\tattachmentFiles,\r\n\thistoryAndCommentsCount,\r\n\tnotificationsCount,\r\n});\r\n\r\nexport const fetchParentTask = (taskId: string): FetchParentTaskAction => ({\r\n\ttype: ActionTypes.fetch_parent_task,\r\n\ttaskId,\r\n});\r\nexport const fetchParentTaskResult = (hasError: boolean, parentTasks?: Task[]): FetchParentTaskActionResultAction => ({\r\n\ttype: ActionTypes.fetch_parent_task_result,\r\n\thasError,\r\n\tparentTasks,\r\n});\r\n\r\nexport const fetchTaskHistoryAndComments = (taskId: string): FetchTaskHistoryAndCommentsAction => ({\r\n\ttype: ActionTypes.fetch_task_history_and_comments,\r\n\ttaskId,\r\n});\r\nexport const fetchTaskHistoryAndCommentsResult = (hasError: boolean, historyAndComments?: HistoryItem[]): FetchTaskHistoryAndCommentsResultAction => ({\r\n\ttype: ActionTypes.fetch_task_history_and_comments_result,\r\n\thasError,\r\n\thistoryAndComments,\r\n});\r\nexport const toggleOrderHistoryAndComments = (): AppAction => ({\r\n\ttype: ActionTypes.toggle_order_history_and_comments,\r\n});\r\nexport const refetchTaskHistoryAndComments = (taskId: string): RefetchTaskHistoryAndCommentsAction => ({\r\n\ttype: ActionTypes.refetch_task_history_and_comments,\r\n\ttaskId,\r\n});\r\n\r\nexport const setBestAnswer = (taskId: string, itemType: HistoryItemType, isBestAnswer: boolean): SetBestAnswerAction => ({\r\n\ttype: ActionTypes.set_best_answer,\r\n\ttaskId,\r\n\titemType,\r\n\tisBestAnswer,\r\n});\r\nexport const setBestAnswerResult = (hasError: boolean, taskId?: string, isBestAnswer?: boolean): SetBestAnswerResultAction => ({\r\n\ttype: ActionTypes.set_best_answer_result,\r\n\thasError,\r\n\ttaskId,\r\n\tisBestAnswer,\r\n});\r\n\r\nexport const changeComment = (comment: string): ChangeCommentAction => ({\r\n\ttype: ActionTypes.change_comment,\r\n\tcomment,\r\n});\r\nexport const addComment = (taskId: string): AddCommentAction => ({\r\n\ttype: ActionTypes.add_comment,\r\n\ttaskId,\r\n});\r\nexport const clearAddCommentViewData = (): AppAction => ({\r\n\ttype: ActionTypes.clear_comment_view_data,\r\n});\r\n\r\nexport const fetchTaskNotifications = (userTaskId: string, pageNumber: number): FetchTaskNotificationsAction => ({\r\n\ttype: ActionTypes.fetch_task_notifications,\r\n\tuserTaskId,\r\n\tpageNumber,\r\n});\r\nexport const fetchTaskNotificationsResult = (hasError: boolean, notifications?: TaskNotification[], totalCount?: number): FetchTaskNotificationsResultAction => ({\r\n\ttype: ActionTypes.fetch_task_notifications_result,\r\n\thasError,\r\n\tnotifications,\r\n\ttotalCount,\r\n});\r\n\r\nexport const clearDetailTask = (): AppAction => ({\r\n\ttype: ActionTypes.clear_detail_task,\r\n});\r\n\r\nexport const clearViewAttachmentModal = (): AppAction => ({\r\n\ttype: ActionTypes.clear_view_attachment_modal,\r\n});\r\n\r\n// old\r\nexport const getAttachmentUrl = (attachmentId: string, code?: string): GetAttachmentUrlAction => ({\r\n\ttype: ActionTypes.get_attachment_url,\r\n\tattachmentId,\r\n\tcode,\r\n});\r\n\r\nexport const getAttachmentUrlResult = (hasError: boolean, url?: string): GetAttachmentUrlResultAction => ({\r\n\ttype: ActionTypes.get_attachment_url_result,\r\n\thasError,\r\n\turl,\r\n});\r\n\r\nexport const exportTaskPdf = (taskId: string, isTaskSecret: boolean, taskNo?: string, code?: string): ExportTaskPdfAction => ({\r\n\ttype: ActionTypes.export_task_pdf,\r\n\ttaskId,\r\n\tisTaskSecret,\r\n\ttaskNo,\r\n\tcode,\r\n});\r\n\r\nexport const exportTaskPdfResult = (hasError: boolean, samplePdfArr: any): ExportTaskPdfResultAction => ({\r\n\ttype: ActionTypes.export_task_pdf_result,\r\n\thasError,\r\n\tsamplePdfArr,\r\n});\r\n\r\nexport const reDownloadPdf = (taskId: string): ReDownloadPdfAction => ({\r\n\ttype: ActionTypes.re_download_pdf,\r\n\ttaskId,\r\n});\r\n\r\nexport const clearExportPdfData = () => ({\r\n\ttype: ActionTypes.clear_export_pdf_data,\r\n});\r\n\r\nexport const fetchIsAttachmentSecret = (attachmentId: string): FetchIsAttachmentSecretAction => ({\r\n\ttype: ActionTypes.fetch_is_attachment_secret,\r\n\tattachmentId,\r\n});\r\n\r\n\r\nexport const fetchIsAttachmentSecretResult = (hasError: boolean, attachmentFile?: AttachmentFile): FetchIsAttachmentSecretResultAction => ({\r\n\ttype: ActionTypes.fetch_is_attachment_secret_result,\r\n\thasError,\r\n\tattachmentFile,\r\n});\r\n\r\nexport const changeIsTaskDetailsModalVisible = (isTaskDetailsModalVisible: boolean): ChangeIsTaskDetailsModalVisible => ({\r\n\ttype: ActionTypes.change_is_task_details_modal_visible,\r\n\tisTaskDetailsModalVisible,\r\n});\r\n\r\nexport const getOriginalAttachment = (attachmentId: string, attachmentName: string): GetOriginalAttachmentAction => ({\r\n\ttype: ActionTypes.get_original_attachment,\r\n\tattachmentId,\r\n\tattachmentName\r\n});\r\nexport const getOriginalAttachmentResult = (): GetOriginalAttachmentResultAction => ({\r\n\ttype: ActionTypes.get_original_attachment_result,\r\n});","import { AppAction, AppResultAction, SelectableValue } from '../../../config/types';\r\nimport {\r\n\tActionTypes,\r\n\tAddAdUserResultAction,\r\n\tAddUsersResultAction,\r\n\tAdUser,\r\n\tChangeAdUserOrganizationsAction,\r\n\tChangeAdUserUserNameAction,\r\n\tChangeArNameAction,\r\n\tChangeBulkUsersOrganizationsAction,\r\n\tChangeConfirmPasswordAction,\r\n\tChangeEmailAction,\r\n\tChangeEnNameAction,\r\n\tChangeJobDescriptionAction,\r\n\tChangeMobilePhoneAction,\r\n\tChangeOrganisationAction,\r\n\tChangePasswordAction,\r\n\tChangeSearchCriteriaEmailAction,\r\n\tChangeSearchCriteriaIsActiveAction,\r\n\tChangeSearchCriteriaNameAction,\r\n\tChangeUserNameAction,\r\n\tChangeUserPasswordAction,\r\n\tDeleteBulkUserAction,\r\n\tEditBulkUserAction,\r\n\tFetchMaxBulkUsersResultAction,\r\n\tFetchUserOrgsResultAction,\r\n\tFetchUserPathResultAction,\r\n\tFetchUsersAction,\r\n\tFetchUsersResultAction,\r\n\tFillAdUserInformation,\r\n\tLoadUserAction,\r\n\tLoadUserResultAction,\r\n\tRefetchUsersAction,\r\n\tRemoveFromAdBulkUsersListAction,\r\n\tSelectNewUserAction,\r\n\tSelectOrganizationAction,\r\n\tSetDraftUserAction,\r\n\tSetStep2Action,\r\n\tUpdateUserAction,\r\n\tUser,\r\n\tVisibleDeleteModalAction,\r\n} from './types';\r\nimport { Organization } from '../../Organization/logic/types';\r\n\r\nexport const refetchUsers = (pageNumber: number): RefetchUsersAction => ({\r\n\ttype: ActionTypes.refetch_users,\r\n\tpageNumber,\r\n});\r\n\r\nexport const fetchUsers = (pageNumber: number): FetchUsersAction => ({\r\n\ttype: ActionTypes.fetch_users,\r\n\tpageNumber,\r\n});\r\nexport const fetchUsersResult = (hasError: boolean, users: [], totalCount: number): FetchUsersResultAction => ({\r\n\ttype: ActionTypes.fetch_users_result,\r\n\thasError,\r\n\tusers,\r\n\ttotalCount,\r\n});\r\n\r\nexport const changeSearchCriteriaName = (name?: string): ChangeSearchCriteriaNameAction => ({\r\n\ttype: ActionTypes.change_search_criteria_name,\r\n\tname,\r\n});\r\nexport const changeSearchCriteriaEmail = (email?: string): ChangeSearchCriteriaEmailAction => ({\r\n\ttype: ActionTypes.change_search_criteria_email,\r\n\temail,\r\n});\r\nexport const changeSearchCriteriaIsActive = (isActive?: boolean): ChangeSearchCriteriaIsActiveAction => ({\r\n\ttype: ActionTypes.change_search_criteria_is_active,\r\n\tisActive,\r\n});\r\nexport const clearSearchCriteriaData = (): AppAction => ({\r\n\ttype: ActionTypes.clear_search_criteria_data,\r\n});\r\n\r\n\r\nexport const fetchUserPath = (userId: string) => ({\r\n\ttype: ActionTypes.fetch_user_path,\r\n\tuserId,\r\n});\r\n\r\nexport const fetchUserPathResult = (hasError: boolean, userName?: string, userPath?: []): FetchUserPathResultAction => ({\r\n\ttype: ActionTypes.fetch_user_path_result,\r\n\thasError,\r\n\tuserName,\r\n\tuserPath,\r\n});\r\n\r\nexport const changeUserName = (userName: string): ChangeUserNameAction => ({\r\n\ttype: ActionTypes.change_user_name,\r\n\tuserName,\r\n});\r\nexport const changeEmail = (eMail: string): ChangeEmailAction => ({\r\n\ttype: ActionTypes.change_email,\r\n\teMail,\r\n});\r\nexport const changeArName = (arName: string): ChangeArNameAction => ({\r\n\ttype: ActionTypes.change_ar_name,\r\n\tarName,\r\n});\r\nexport const changeEnName = (enName: string): ChangeEnNameAction => ({\r\n\ttype: ActionTypes.change_en_name,\r\n\tenName,\r\n});\r\nexport const changeJobDescription = (jobDescription: string): ChangeJobDescriptionAction => ({\r\n\ttype: ActionTypes.change_job_description,\r\n\tjobDescription,\r\n});\r\nexport const changeMobilePhone = (phone: string): ChangeMobilePhoneAction => ({\r\n\ttype: ActionTypes.change_mobile_phone,\r\n\tphone,\r\n});\r\nexport const changePassword = (password: string): ChangePasswordAction => ({\r\n\ttype: ActionTypes.change_password,\r\n\tpassword,\r\n});\r\nexport const changeConfirmPassword = (confirmPassword: string): ChangeConfirmPasswordAction => ({\r\n\ttype: ActionTypes.change_confirm_password,\r\n\tconfirmPassword,\r\n});\r\nexport const changeOrganisation = (organizations?: SelectableValue[]): ChangeOrganisationAction => ({\r\n\ttype: ActionTypes.change_organisation,\r\n\torganizations,\r\n});\r\nexport const addUser = () => ({\r\n\ttype: ActionTypes.add_user,\r\n});\r\nexport const addUserResult = (hasError: boolean, failedUserEmailList: string[] = []): AddUsersResultAction => ({\r\n\ttype: ActionTypes.add_user_result,\r\n\thasError,\r\n\tfailedUserEmailList,\r\n});\r\n\r\nexport const userActiveCheckboxToggle = () => ({\r\n\ttype: ActionTypes.user_active_checkbox_toggle,\r\n});\r\n\r\nexport const setDraftUser = (user: User): SetDraftUserAction => ({\r\n\ttype: ActionTypes.set_draft_user,\r\n\tuser,\r\n});\r\n\r\nexport const clearDraftUser = () => ({\r\n\ttype: ActionTypes.clear_draft_user,\r\n});\r\n\r\nexport const selectNewUser = (newUser?: User): SelectNewUserAction => ({\r\n\ttype: ActionTypes.select_new_user,\r\n\tnewUser,\r\n});\r\n\r\nexport const clearModalData = (): AppAction => ({\r\n\ttype: ActionTypes.clear_modal_data,\r\n});\r\n\r\nexport const fetchUserOrgsResult = (hasError: boolean, user?: User, organizations?: SelectableValue[]): FetchUserOrgsResultAction => ({\r\n\ttype: ActionTypes.fetch_user_orgs_result,\r\n\thasError,\r\n\tuser,\r\n\torganizations,\r\n});\r\n\r\nexport const loadUser = (userId: string): LoadUserAction => ({\r\n\ttype: ActionTypes.load_user,\r\n\tuserId,\r\n});\r\nexport const loadUserResult = (hasError: boolean, user?: User, organizations?: SelectableValue[]): LoadUserResultAction => ({\r\n\ttype: ActionTypes.load_user_result,\r\n\thasError,\r\n\tuser,\r\n\torganizations,\r\n});\r\n\r\nexport const updateUser = (userID: string): UpdateUserAction => ({\r\n\ttype: ActionTypes.update_user,\r\n\tuserID,\r\n});\r\n\r\nexport const updateUserResult = (hasError: boolean): AppResultAction => ({\r\n\ttype: ActionTypes.update_user_result,\r\n\thasError,\r\n});\r\n\r\nexport const deleteUser = (): AppAction => ({\r\n\ttype: ActionTypes.delete_user,\r\n});\r\n\r\nexport const deleteUserResult = (hasError: boolean): AppResultAction => ({\r\n\ttype: ActionTypes.delete_user_result,\r\n\thasError,\r\n});\r\n\r\nexport const visibleDeleteModal = (visible: boolean): VisibleDeleteModalAction => ({\r\n\ttype: ActionTypes.visible_delete_modal,\r\n\tvisible,\r\n});\r\n\r\nexport const clearUserPathData = (): AppAction => ({\r\n\ttype: ActionTypes.clear_user_path_data,\r\n});\r\n\r\nexport const changeAdUserUserName = (adUserUserName: string): ChangeAdUserUserNameAction => ({\r\n\ttype: ActionTypes.change_ad_user_user_name,\r\n\tadUserUserName,\r\n});\r\n\r\nexport const changeAdUserOrganizations = (organizations: SelectableValue[]): ChangeAdUserOrganizationsAction => ({\r\n\ttype: ActionTypes.change_ad_user_organizations,\r\n\torganizations,\r\n});\r\n\r\nexport const fillAdUserInformations = (adUser: AdUser): FillAdUserInformation => ({\r\n\ttype: ActionTypes.fill_ad_user_informations,\r\n\tadUser,\r\n});\r\n\r\nexport const goToStep2 = (): AppAction => ({\r\n\ttype: ActionTypes.go_to_step2,\r\n});\r\n\r\nexport const goToStep1 = (): AppAction => ({\r\n\ttype: ActionTypes.go_to_step1,\r\n});\r\n\r\nexport const findAdUser = (): AppAction => ({\r\n\ttype: ActionTypes.find_ad_user,\r\n});\r\n\r\nexport const addAdUser = () => ({\r\n\ttype: ActionTypes.add_ad_user,\r\n});\r\n\r\nexport const clearAdUserData = () => ({\r\n\ttype: ActionTypes.clear_ad_user,\r\n});\r\n\r\nexport const selectOrganization = (organization?: Organization): SelectOrganizationAction => ({\r\n\ttype: ActionTypes.select_search_criteria_organization,\r\n\torganization,\r\n});\r\n\r\nexport const addUserToBulkUsers = (): AppAction => ({\r\n\ttype: ActionTypes.add_user_to_bulk_users,\r\n});\r\nexport const addUserToBulkUsersResult = (hasError: boolean): AppResultAction => ({\r\n\ttype: ActionTypes.add_user_to_bulk_users_result,\r\n\thasError,\r\n});\r\nexport const editBulkUser = (user: User): EditBulkUserAction => ({\r\n\ttype: ActionTypes.edit_bulk_user,\r\n\tuser,\r\n});\r\nexport const deleteBulkUser = (user: User): DeleteBulkUserAction => ({\r\n\ttype: ActionTypes.delete_bulk_user,\r\n\tuser,\r\n});\r\n\r\nexport const changeBulkUsersOrganizations = (organizations: SelectableValue[]): ChangeBulkUsersOrganizationsAction => ({\r\n\ttype: ActionTypes.change_bulk_users_organizations,\r\n\torganizations,\r\n});\r\n\r\nexport const setIsStep2 = (step2: boolean): SetStep2Action => ({\r\n\ttype: ActionTypes.set_step_2,\r\n\tstep2,\r\n});\r\n\r\nexport const removeFromAdUsersBulk = (adUser: AdUser): RemoveFromAdBulkUsersListAction => ({\r\n\ttype: ActionTypes.remove_from_ad_bulk_users_list,\r\n\tadUser,\r\n});\r\n\r\nexport const addAdUserResult = (hasError: boolean, failedUserEmailList: string[] = []): AddAdUserResultAction => ({\r\n\ttype: ActionTypes.add_ad_user_result,\r\n\thasError,\r\n\tfailedUserEmailList,\r\n});\r\n\r\nexport const fetchMaxBulkUsersCount = (): AppAction => ({\r\n\ttype: ActionTypes.fetch_max_bulk_users_count,\r\n});\r\n\r\nexport const fetchMaxBulkUsersCountResult = (hasError: boolean, maxBulkUsersCount?: number): FetchMaxBulkUsersResultAction => ({\r\n\ttype: ActionTypes.fetch_max_bulk_users_count_result,\r\n\thasError,\r\n\tmaxBulkUsersCount,\r\n});\r\n\r\nexport const changeUserPassword = (userId: string, newPassword: string): ChangeUserPasswordAction => ({\r\n\ttype: ActionTypes.change_user_password,\r\n\tuserId,\r\n\tnewPassword,\r\n});\r\nexport const changeUserPasswordResult = (hasError: boolean): AppResultAction => ({\r\n\ttype: ActionTypes.change_user_password_result,\r\n\thasError,\r\n});","export const EMAIL_VALIDATOR = /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\r\nexport const isNullOrWhiteSpace = /^\\s*$/;\r\n\r\nexport const onlyLettersAndDigits = /^(?=.*\\d)(?=.*[a-zA-Z]).{7,15}$/;\r\nexport const onlyDigitsRegex = /[0-9\\b]+$/;\r\n\r\nexport const pageSize = process.env.NODE_ENV === 'development' ? 12 : 12;\r\nexport const organisationMaxItems = 25;\r\nexport const TreeRootName = 'الجهة';\r\n","import { AppAction, AppResultAction } from '../../../config/types';\r\nimport { Task } from '../../Tasks/logic/type';\r\nimport { User } from '../../Users/logic/types';\r\n\r\nexport enum ActionTypes {\r\n\tchange_ced_request_status = 'CHANGE_END_DATE_REQUEST__CHANGE_CED_REQUEST_STATUS',\r\n\tfetch_ced_requests = 'CHANGE_END_DATE_REQUEST__FETCH_CED_REQUESTS',\r\n\tfetch_ced_requests_result = 'CHANGE_END_DATE_REQUEST__FETCH_CED_REQUESTS_RESULT',\r\n\trefetch_ced_requests = 'CHANGE_END_DATE_REQUEST__REFETCH_CED_REQUESTS',\r\n\r\n\tload_ced_request_details = 'CHANGE_END_DATE_REQUEST__LOAD_CED_REQUEST_DETAILS',\r\n\tload_ced_request_details_result = 'CHANGE_END_DATE_REQUEST__LOAD_CED_REQUEST_DETAILS_RESULT',\r\n\r\n\tselect_ced_request_new_status = 'CHANGE_END_DATE_REQUEST__SELECT_CED_REQUEST_NEW_STATUS',\r\n\tchange_ced_request_response_extra_days = 'CHANGE_END_DATE_REQUEST__CHANGE_CED_REQUEST_RESPONSE_EXTRA_DAYS',\r\n\tchange_ced_request_response_notes = 'CHANGE_END_DATE_REQUEST__CHANGE_CED_REQUEST_RESPONSE_NOTES',\r\n\tupdate_ced_request = 'CHANGE_END_DATE_REQUEST__UPDATE_CED_REQUEST',\r\n\tupdate_ced_request_result = 'CHANGE_END_DATE_REQUEST__UPDATE_CED_REQUEST_RESULT',\r\n\ttoggle_take_action_visible = 'CHANGE_END_DATE_REQUEST__TOGGLE_TAKE_ACTION_VISIBLE',\r\n\r\n\tclear_ced_request_detail_data = 'CHANGE_END_DATE_REQUEST__CLEAR_CED_REQUEST_DETAIL_DATA',\r\n\tclear_ced_requests_data = 'CHANGE_END_DATE_REQUEST__CLEAR_CED_REQUESTS_DATA',\r\n}\r\n\r\nexport interface ChangeCedRequestStatusAction extends AppAction {\r\n\ttype: ActionTypes.change_ced_request_status;\r\n\tcedRequestStatus: CedRequestStatus;\r\n}\r\n\r\nexport interface FetchCedRequestsAction extends AppAction {\r\n\ttype: ActionTypes.fetch_ced_requests | ActionTypes.refetch_ced_requests;\r\n\tpageNumber: number;\r\n}\r\n\r\nexport interface FetchCedRequestsResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_ced_requests_result;\r\n\tcedRequests?: CedRequest[];\r\n\ttotalCount?: number;\r\n}\r\n\r\nexport interface LoadCedRequestDetailsAction extends AppAction {\r\n\ttype: ActionTypes.load_ced_request_details,\r\n\tcedRequestId: string\r\n}\r\n\r\nexport interface LoadCedRequestDetailsResultAction extends AppResultAction {\r\n\ttype: ActionTypes.load_ced_request_details_result,\r\n\tcedRequest?: CedRequest\r\n}\r\n\r\nexport interface SelectCedRequestNewStatusAction extends AppAction {\r\n\ttype: ActionTypes.select_ced_request_new_status;\r\n\tnewStatus?: CedRequestStatus;\r\n}\r\n\r\nexport interface ChangeCedRequestResponseExtraDaysAction extends AppAction {\r\n\ttype: ActionTypes.change_ced_request_response_extra_days;\r\n\tnewResponseExtraDays: string;\r\n}\r\n\r\nexport interface ChangeCedRequestResponseNotesAction extends AppAction {\r\n\ttype: ActionTypes.change_ced_request_response_notes;\r\n\tnewResponseNotes: string;\r\n}\r\n\r\nexport interface UpdateCedRequestAction extends AppAction {\r\n\ttype: ActionTypes.update_ced_request;\r\n\tcedRequestId: string;\r\n}\r\n\r\nexport interface UpdateCedRequestResultAction extends AppResultAction {\r\n\ttype: ActionTypes.update_ced_request_result;\r\n\tcedRequest?: CedRequest,\r\n}\r\n\r\n\r\nexport interface DraftCedRequest {\r\n\tnewStatus?: CedRequestStatus;\r\n\tnewResponseExtraDays: string;\r\n\tnewResponseNotes: string;\r\n}\r\n\r\nexport interface CedRequest {\r\n\tid: string;\r\n\ttask: Task;\r\n\r\n\tcurrentTaskEndDate: string;\r\n\tcreatedAt: string;\r\n\r\n\tassignedTo: User;\r\n\tcreatedBy: User;\r\n\r\n\trequestExtraDays: string;\r\n\trequestNotes: string;\r\n\r\n\tstatus: CedRequestStatus,\r\n\r\n\t// Response data\r\n\tclosedBy?: User;\r\n\tlastStatusAt?: string;\r\n\trequestHijriDate?: string;\r\n\tnewTaskEndDate?: string;\r\n\tresponseExtraDays?: string;\r\n\tresponseNotes?: string;\r\n}\r\n\r\nexport enum CedRequestStatus {\r\n\tnew,\r\n\trejected,\r\n\tapproved,\r\n}\r\n\r\nexport const cedRequestTitleDisplay: { [key in CedRequestStatus]: string } = {\r\n\t[CedRequestStatus.new]: 'الطلبات الجديدة',\r\n\t[CedRequestStatus.approved]: 'الطلبات المقبولة',\r\n\t[CedRequestStatus.rejected]: 'الطلبات المرفوضة',\r\n};\r\n\r\nexport const cedRequestStatusDisplay: { [key in CedRequestStatus]: string } = {\r\n\t[CedRequestStatus.new]: 'جديد',\r\n\t[CedRequestStatus.approved]: 'مقبول',\r\n\t[CedRequestStatus.rejected]: 'مرفوض',\r\n};\r\n\r\nexport type Action =\r\n\tAppAction\r\n\t& ChangeCedRequestStatusAction\r\n\t& FetchCedRequestsAction\r\n\t& FetchCedRequestsResultAction\r\n\t& LoadCedRequestDetailsAction\r\n\t& LoadCedRequestDetailsResultAction\r\n\t& SelectCedRequestNewStatusAction\r\n\t& ChangeCedRequestResponseExtraDaysAction\r\n\t& ChangeCedRequestResponseNotesAction\r\n\t& UpdateCedRequestAction\r\n\t& UpdateCedRequestResultAction;\r\n\r\nexport interface State {\r\n\tcedRequestStatus?: CedRequestStatus;\r\n\r\n\tpageNumber: number;\r\n\tcedRequests: CedRequest[];\r\n\ttotalCount: number;\r\n\r\n\ttakeActionVisible: boolean;\r\n\tcedRequest?: CedRequest\r\n\tdraftCedRequest: DraftCedRequest;\r\n}\r\n\r\n","import { AttachmentFile, HistoryItem, HistoryItemType, Task, TaskHeader, UserTask } from '../../Tasks/logic/type';\r\nimport { AppAction, AppResultAction } from '../../../config/types';\r\nimport { User } from '../../Users/logic/types';\r\n\r\nexport enum ActionTypes {\r\n\tchange_active_slide = 'TASK_DETAILS__CHANGE_ACTIVE_SLIDE',\r\n\tchange_attachment_active_slide = 'TASK_DETAILS__CHANGE_ATTACHMENT_ACTIVE_SLIDE',\r\n\tset_attachment_id = 'TASK_DETAILS__SET_ATTACHMENT_ID',\r\n\r\n\tfetch_is_task_secret = 'TASK_DETAILS__FETCH_IS_TASK_SECRET',\r\n\tfetch_is_task_secret_result = 'TASK_DETAILS__FETCH_IS_TASK_SECRET_RESULT',\r\n\r\n\tfetch_is_attachment_secret = 'TASK_DETAILS__FETCH_IS_ATTACHMENT_SECRETE',\r\n\tfetch_is_attachment_secret_result = 'TASK_DETAILS__FETCH_IS_ATTACHMENT_SECRET_RESULT',\r\n\r\n\tfetch_task_details = 'TASK_DETAILS__FETCH_TASK_DETAILS',\r\n\tfetch_task_details_result = 'TASK_DETAILS__FETCH_TASK_DETAILS_RESULT',\r\n\r\n\ttoggle_order_history_and_comments = 'TASK_DETAILS__TOGGLE_ORDER_HISTORY_AND_COMMENTS',\r\n\tfetch_task_history_and_comments = 'TASK_DETAILS__FETCH_TASK_HISTORY_AND_COMMENTS',\r\n\tfetch_task_history_and_comments_result = 'TASK_DETAILS__FETCH_TASK_HISTORY_AND_COMMENTS_RESULT',\r\n\trefetch_task_history_and_comments = 'TASK_DETAILS__REFETCH_TASK_HISTORY_AND_COMMENTS',\r\n\r\n\tfetch_task_notifications = 'TASK_DETAILS__FETCH_TASK_NOTIFICATIONS',\r\n\tfetch_task_notifications_result = 'TASK_DETAILS__FETCH_TASK_NOTIFICATIONS_RESULT',\r\n\tset_best_answer = 'TASKS_DETAILS__SET_BEST_ANSWER',\r\n\tset_best_answer_result = 'TASKS_DETAILS__SET_BEST_ANSWER_RESULT',\r\n\r\n\tfetch_parent_task = 'TASK_DETAILS__FETCH_PARENT_TASK',\r\n\tfetch_parent_task_result = 'TASK_DETAILS__FETCH_PARENT_TASK_RESULT',\r\n\r\n\tget_attachment_url = 'TASK_DETAILS__GET_ATTACHMENT_URL',\r\n\tget_attachment_url_result = 'TASK_DETAILS__GET_ATTACHMENT_URL_RESULT',\r\n\r\n\texport_task_pdf = 'TASK_DETAILS__EXPORT_TASK_PDF',\r\n\texport_task_pdf_result = 'TASK_DETAILS__EXPORT_TASK_PDF_RESULT',\r\n\tre_download_pdf = 'TASK_DETAILS__RE_DOWNLOAD_PDF',\r\n\tclear_export_pdf_data = 'TASK_DETAILS__CLEAR_EXPORT_PDF_DATA',\r\n\r\n\tchange_comment = 'TASK_DETAILS__CHANGE_COMMENT',\r\n\tadd_comment = 'TASK_DETAILS__ADD_COMMENT',\r\n\tclear_comment_view_data = 'TASK_DETAILS__CLEAR_COMMENT_VIEW_DATA',\r\n\r\n\tclear_detail_task = 'TASK_DETAILS__CLEAR_DETAIL_TASK',\r\n\tclear_view_attachment_modal = 'TASK_DETAILS__CLEAR_VIEW_ATTACHMENT',\r\n\r\n\tsend_code_for_secure_task = 'TASK_DETAILS__SEND_CODE_FOR_SECURE_TASK',\r\n\tsend_code_for_secure_attachment = 'TASK_DETAILS__SEND_CODE_FOR_SECURE_ATTACHMENT',\r\n\r\n\tclear_attachment_file = 'TASK_DETAILS__CLEAR_ATTACHMENT_FILE',\r\n\tchange_is_task_details_modal_visible = 'TASK_DETAILS__CHANGE_IS_TASK_DETAILS_MODAL_VISIBLE',\r\n\r\n\tget_original_attachment = 'TASK_DETAILS__GET_ORIGINAL_ATTACHMENT',\r\n\tget_original_attachment_result = 'TASK_DETAILS__GET_ORIGINAL_ATTACHMENT_RESULT',\r\n}\r\n\r\nexport interface ChangeActiveSlide extends AppAction {\r\n\ttype: ActionTypes.change_active_slide;\r\n\tactiveSlide: State['activeSlide'];\r\n}\r\n\r\nexport interface ChangeAttachmentActiveSlide extends AppAction {\r\n\ttype: ActionTypes.change_attachment_active_slide;\r\n\tattachmentActiveSlide: State['attachmentActiveSlide'];\r\n}\r\n\r\nexport interface SetAttachmentIdAction extends AppAction {\r\n\ttype: ActionTypes.set_attachment_id;\r\n\tattachmentId: string;\r\n}\r\n\r\nexport interface FetchIsTaskSecretAction extends AppAction {\r\n\ttype: ActionTypes.fetch_is_task_secret;\r\n\tuserTaskId: string;\r\n}\r\n\r\nexport interface FetchIsTaskSecretResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_is_task_secret_result;\r\n\ttaskHeader?: TaskHeader;\r\n}\r\n\r\nexport interface FetchTaskDetailsAction extends AppAction {\r\n\ttype: ActionTypes.fetch_task_details;\r\n\tuserTaskId: string;\r\n\tcode?: string;\r\n}\r\n\r\nexport interface FetchTaskDetailsResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_task_details_result;\r\n\tuserTask?: UserTask;\r\n\tccUsers?: User[];\r\n\tattachmentFiles?: AttachmentFile[];\r\n\thistoryAndCommentsCount?: number;\r\n\tnotificationsCount?: number;\r\n}\r\n\r\nexport interface FetchParentTaskAction extends AppAction {\r\n\ttype: ActionTypes.fetch_parent_task;\r\n\ttaskId: string;\r\n}\r\n\r\nexport interface FetchParentTaskActionResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_parent_task_result;\r\n\tparentTasks?: Task[];\r\n}\r\n\r\nexport interface FetchTaskHistoryAndCommentsAction extends AppAction {\r\n\ttype: ActionTypes.fetch_task_history_and_comments;\r\n\ttaskId: string;\r\n}\r\n\r\nexport interface FetchTaskHistoryAndCommentsResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_task_history_and_comments_result;\r\n\thistoryAndComments?: HistoryItem[];\r\n}\r\n\r\nexport interface RefetchTaskHistoryAndCommentsAction extends AppAction {\r\n\ttype: ActionTypes.refetch_task_history_and_comments;\r\n\ttaskId: string;\r\n}\r\n\r\nexport interface SetBestAnswerAction extends AppAction {\r\n\ttype: ActionTypes.set_best_answer;\r\n\ttaskId: string;\r\n\titemType: HistoryItemType\r\n\tisBestAnswer: boolean;\r\n}\r\n\r\nexport interface SetBestAnswerResultAction extends AppResultAction {\r\n\ttype: ActionTypes.set_best_answer_result;\r\n\ttaskId?: string\r\n\tisBestAnswer?: boolean;\r\n}\r\n\r\nexport interface ChangeCommentAction extends AppAction {\r\n\ttype: ActionTypes.change_comment;\r\n\tcomment: string;\r\n}\r\n\r\nexport interface AddCommentAction extends AppAction {\r\n\ttype: ActionTypes.add_comment;\r\n\ttaskId: string;\r\n}\r\n\r\nexport interface FetchTaskNotificationsAction extends AppAction {\r\n\ttype: ActionTypes.fetch_task_notifications;\r\n\tuserTaskId: string;\r\n\tpageNumber: number;\r\n}\r\n\r\nexport interface FetchTaskNotificationsResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_task_notifications_result;\r\n\tnotifications?: TaskNotification[];\r\n\ttotalCount?: number;\r\n}\r\n\r\n// old\r\nexport interface GetAttachmentUrlAction extends AppAction {\r\n\ttype: ActionTypes.get_attachment_url;\r\n\tattachmentId: string;\r\n\tcode?: string,\r\n}\r\n\r\nexport interface GetAttachmentUrlResultAction extends AppResultAction {\r\n\ttype: ActionTypes.get_attachment_url_result;\r\n\turl?: string;\r\n}\r\n\r\nexport interface ExportTaskPdfAction extends AppAction {\r\n\ttype: ActionTypes.export_task_pdf;\r\n\ttaskId: string;\r\n\tisTaskSecret: boolean;\r\n\ttaskNo?: string;\r\n\tcode?: string;\r\n}\r\n\r\nexport interface ReDownloadPdfAction extends AppAction {\r\n\ttype: ActionTypes.re_download_pdf;\r\n\ttaskId: string;\r\n}\r\n\r\nexport interface ExportTaskPdfResultAction extends AppResultAction {\r\n\ttype: ActionTypes.export_task_pdf_result;\r\n\tsamplePdfArr: any;\r\n}\r\n\r\nexport interface FetchIsAttachmentSecretAction extends AppAction {\r\n\ttype: ActionTypes.fetch_is_attachment_secret;\r\n\tattachmentId: string;\r\n}\r\n\r\nexport interface FetchIsAttachmentSecretResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_is_attachment_secret_result;\r\n\tattachmentFile?: AttachmentFile;\r\n}\r\n\r\nexport interface ChangeIsTaskDetailsModalVisible extends AppAction {\r\n\ttype: ActionTypes.change_is_task_details_modal_visible;\r\n\tisTaskDetailsModalVisible: boolean;\r\n}\r\n\r\nexport interface GetOriginalAttachmentAction extends AppAction {\r\n\ttype: ActionTypes.get_original_attachment,\r\n\tattachmentId: string\r\n\tattachmentName: string\r\n}\r\n\r\nexport interface GetOriginalAttachmentResultAction extends AppAction {\r\n\ttype: ActionTypes.get_original_attachment_result,\r\n}\r\n\r\nexport type Action =\r\n\tAppAction &\r\n\tAppResultAction &\r\n\tChangeActiveSlide &\r\n\tChangeAttachmentActiveSlide &\r\n\tSetAttachmentIdAction &\r\n\tFetchTaskDetailsAction &\r\n\tFetchTaskDetailsResultAction &\r\n\tFetchTaskHistoryAndCommentsAction &\r\n\tFetchTaskHistoryAndCommentsResultAction &\r\n\tRefetchTaskHistoryAndCommentsAction &\r\n\tFetchTaskNotificationsAction &\r\n\tFetchTaskNotificationsResultAction &\r\n\tSetBestAnswerAction &\r\n\tSetBestAnswerResultAction &\r\n\tChangeCommentAction &\r\n\tFetchParentTaskAction &\r\n\tFetchParentTaskActionResultAction &\r\n\tFetchIsTaskSecretAction &\r\n\tFetchIsTaskSecretResultAction &\r\n\tGetAttachmentUrlAction &\r\n\tGetAttachmentUrlResultAction &\r\n\tExportTaskPdfAction &\r\n\tReDownloadPdfAction &\r\n\tExportTaskPdfResultAction &\r\n\tAddCommentAction &\r\n\tFetchIsAttachmentSecretAction &\r\n\tFetchIsAttachmentSecretResultAction &\r\n\tChangeIsTaskDetailsModalVisible &\r\n\tGetOriginalAttachmentAction &\r\n\tGetOriginalAttachmentResultAction;\r\n\r\nexport interface TaskNotification {\r\n\tnotificationID: string;\r\n\tnotifiedUser: User;\r\n\tuserTaskID: string;\r\n\tnotificationTitle: string;\r\n\tnotificationDetails: string;\r\n\tisRead: boolean;\r\n\tcreatedDateTime: string;\r\n\treadDateTime: string;\r\n\turl: string;\r\n}\r\n\r\nexport interface State {\r\n\tactiveSlide:\r\n\t\t| 'loader'\r\n\t\t| 'secret-content'\r\n\t\t| 'task-info'\r\n\t\t| 'parent-info'\r\n\t\t| 'add-comment'\r\n\t\t| 'view-attachment'\r\n\r\n\t\t| 'CompletionRateTask'\r\n\t\t| 'StartTask'\r\n\t\t| 'ConfirmTask'\r\n\t\t| 'FinishTask'\r\n\t\t| 'ForwardCCTask'\r\n\t\t| 'RejectTask'\r\n\t\t| 'RetrieveTask'\r\n\t\t| 'PostponeTask'\r\n\t\t| 'ReassignTask'\r\n\t\t| 'ShowAttachment'\r\n\t\t| 'ExportTaskPDF';\r\n\r\n\tattachmentActiveSlide:\r\n\t\t| 'loader'\r\n\t\t| 'secret-content'\r\n\t\t| 'attachment-viewer';\r\n\r\n\tisTaskSecret: boolean;\r\n\r\n\tuserTask?: UserTask;\r\n\tccUsers: User[];\r\n\tattachmentFiles: AttachmentFile[];\r\n\thistoryAndCommentsCount: number;\r\n\tnotificationsCount: number;\r\n\r\n\tparentTasks: Task[];\r\n\tisTaskDetailsModalVisible: boolean;\r\n\r\n\t// old\r\n\ttaskHeader?: TaskHeader;\r\n\r\n\tattachmentFileUrl?: string;\r\n\tattachmentId?: string;\r\n\r\n\thistoryAndComments: HistoryItem[];\r\n\thasBestAnswer: string;\r\n\tnotifications: TaskNotification[];\r\n\tpageNumber: number;\r\n\ttotalCount: number;\r\n\r\n\tcomment: string;\r\n\r\n\ttoggleCommentTab: boolean;\r\n\tsecretCode: string;\r\n\r\n\treDownloadButton: boolean;\r\n\tsamplePdfArr: any;\r\n}\r\n","import { AppAction, AppResultAction, TreeNode } from '../../../config/types';\r\n\r\nexport enum ActionTypes {\r\n\trefetch_organizations = 'ORGANIZATIONS__REFETCH_ORGANIZATIONS',\r\n\tfetch_organizations = 'ORGANIZATIONS__FETCH_ORGANIZATIONS',\r\n\tfetch_organizations_result = 'ORGANIZATIONS__FETCH_ORGANIZATIONS_RESULT',\r\n\r\n\tfetch_organization_tree = 'ORGANIZATIONS__FETCH_ORGANIZATION_TREE',\r\n\tfetch_organization_tree_result = 'ORGANIZATIONS__FETCH_ORGANIZATION_TREE_RESULT',\r\n\r\n\tsearch_organization_tree = 'ORGANIZATIONS__SEARCH_ORGANIZATION_TREE',\r\n\tsearch_organization_tree_result = 'ORGANIZATIONS__SEARCH_ORGANIZATION_TREE_RESULT',\r\n\r\n\tload_organization = 'ORGANIZATIONS__LOAD_ORGANIZATION',\r\n\tload_organizations_result = 'ORGANIZATIONS__LOAD_ORGANIZATION_RESULT',\r\n\r\n\tadd_organizations = 'ORGANIZATIONS__ADD_ORGANIZATIONS',\r\n\tadd_organizations_result = 'ORGANIZATIONS__ADD_ORGANIZATIONS_RESULT',\r\n\r\n\tupdate_organizations = 'ORGANIZATIONS__UPDATE_ORGANIZATIONS',\r\n\tupdate_organizations_result = 'ORGANIZATIONS__UPDATE_ORGANIZATIONS_RESULT',\r\n\r\n\tdelete_organizations = 'ORGANIZATIONS__DELETE_ORGANIZATIONS',\r\n\tdelete_organizations_result = 'ORGANIZATIONS__DELETE_ORGANIZATIONS_RESULT',\r\n\r\n\ttoggle_organization_node = 'ORGANIZATIONS__TOGGLE_ORGANIZATION_NODE',\r\n\tselect_organization = 'ORGANIZATIONS__SELECT_ORGANIZATION',\r\n\r\n\tclear_organization_data = 'ORGANIZATIONS__CLEAR_ORGANIZATION_DATA',\r\n\r\n\tmanage_toggle_button = 'ORGANIZATIONS__MANAGE_TOGGLE_BUTTON',\r\n\r\n\tset_draft_organization = 'ORGANIZATIONS__SET_DRAFT_ORGANIZATION',\r\n\tclear_draft_organization = 'ORGANIZATIONS__CLEAR_DRAFT_ORGANIZATION',\r\n\r\n\tchange_draft_organization_name = 'ORGANIZATIONS__DRAFT_ORGANIZATION_NAME',\r\n\tchange_draft_parent_organization = 'ORGANIZATIONS__DRAFT_PARENT_ORGANIZATION',\r\n\r\n\tget_parent_path = 'ORGANIZATIONS__GET_PARENT_PATH',\r\n\tget_parent_path_result = 'ORGANIZATIONS__GET_PARENT_PATH_RESULT',\r\n\r\n\tselect_copy_to_organization = 'ORGANIZATIONS__SELECT_COPY_TO_ORGANIZATION',\r\n\tselect_copy_from_organization = 'ORGANIZATIONS__SELECT_COPY_FROM_ORGANIZATION',\r\n\r\n\tcopy_organization = 'ORGANIZATIONS__COPY_ORGANIZATION',\r\n\r\n\tset_deactivate_organization_modal_visible = 'ORGANIZATIONS__SET_DEACTIVATE_ORGANIZATION_MODAL_VISIBLE',\r\n\ttoggle_organization_activation = 'ORGANIZATIONS__TOGGLE_ORGANIZATION_ACTIVATION',\r\n\ttoggle_organization_activation_result = 'ORGANIZATIONS__TOGGLE_ORGANIZATION_ACTIVATION_RESULT',\r\n}\r\n\r\nexport interface RefetchOrganizationsAction extends AppAction {\r\n\ttype: ActionTypes.refetch_organizations,\r\n\tparentId: string\r\n}\r\n\r\nexport interface FetchOrganizationsAction extends AppAction {\r\n\ttype: ActionTypes.fetch_organizations,\r\n\tparentId: string\r\n}\r\n\r\nexport interface SearchOrganizationTreeAction extends AppAction {\r\n\ttype: ActionTypes.search_organization_tree,\r\n\tparentId?: string,\r\n\tparentName: string\r\n}\r\n\r\nexport interface LoadOrganizationAction extends AppAction {\r\n\ttype: ActionTypes.load_organization,\r\n\torganizationId: string\r\n}\r\n\r\nexport interface LoadOrganizationResultAction extends AppResultAction {\r\n\ttype: ActionTypes.load_organizations_result,\r\n\torganization?: Organization\r\n}\r\n\r\nexport interface GetParentPathAction extends AppAction {\r\n\ttype: ActionTypes.get_parent_path,\r\n\tparentId: string\r\n}\r\n\r\nexport interface GetParentPathResultAction extends AppResultAction {\r\n\ttype: ActionTypes.get_parent_path_result,\r\n\tparentPath?: string\r\n}\r\n\r\nexport interface FetchOrganizationsResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_organizations_result,\r\n\torganizations?: Organization[];\r\n\ttotalCount?: number;\r\n\tparentId?: string;\r\n}\r\n\r\nexport interface FetchOrganizationTreeAction extends AppAction {\r\n\ttype: ActionTypes.fetch_organization_tree;\r\n\tparentId?: string;\r\n}\r\n\r\nexport interface FetchOrganizationTreeResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_organization_tree_result;\r\n\tparentId?: string;\r\n\torganizationTree?: TreeNode[];\r\n}\r\n\r\nexport interface SearchOrganizationTreeResultAction extends AppResultAction {\r\n\ttype: ActionTypes.search_organization_tree_result;\r\n\tparentId?: string;\r\n\torganizationTree?: TreeNode[];\r\n\tparentName?: string;\r\n}\r\n\r\nexport interface AddOrganizationsResultAction extends AppResultAction {\r\n\ttype: ActionTypes.add_organizations_result,\r\n}\r\n\r\nexport interface UpdateOrganizationsResultAction extends AppResultAction {\r\n\ttype: ActionTypes.update_organizations_result,\r\n}\r\n\r\nexport interface DeleteOrganizationAction extends AppAction {\r\n\ttype: ActionTypes.delete_organizations;\r\n\torganization: Organization;\r\n}\r\n\r\nexport interface DeleteOrganizationsResultAction extends AppResultAction {\r\n\ttype: ActionTypes.delete_organizations_result,\r\n}\r\n\r\nexport interface ChangeDraftOrganizationNameAction extends AppAction {\r\n\ttype: ActionTypes.change_draft_organization_name,\r\n\torganizationName: string;\r\n}\r\n\r\nexport interface ChangeDraftParentOrganizationAction extends AppAction {\r\n\ttype: ActionTypes.change_draft_parent_organization,\r\n\tparentOrganization: Organization;\r\n}\r\n\r\nexport interface SelectOrganizationAction extends AppAction {\r\n\ttype: ActionTypes.select_organization,\r\n\torganization?: Organization;\r\n}\r\n\r\nexport interface SetDraftOrganizationAction extends AppAction {\r\n\ttype: ActionTypes.set_draft_organization,\r\n\torganization: Organization;\r\n}\r\n\r\nexport interface ToggleOrganizationNodeAction extends AppAction {\r\n\ttype: ActionTypes.toggle_organization_node;\r\n\tid: string;\r\n\ttoggle: boolean;\r\n}\r\n\r\nexport interface SelectCopyToOrganizationAction extends AppAction {\r\n\ttype: ActionTypes.select_copy_to_organization,\r\n\tcopyToOrganization?: Organization;\r\n}\r\n\r\nexport interface SelectCopyFromOrganizationAction extends AppAction {\r\n\ttype: ActionTypes.select_copy_from_organization,\r\n\tcopyFromOrganization?: Organization;\r\n}\r\n\r\nexport interface SetDeactivateOrganizationModalVisibleAction extends AppAction {\r\n\ttype: ActionTypes.set_deactivate_organization_modal_visible,\r\n\tvisible: boolean;\r\n}\r\n\r\nexport interface ToggleOrganizationActivationAction extends AppAction {\r\n\ttype: ActionTypes.toggle_organization_activation;\r\n\torganization: Organization;\r\n}\r\n\r\nexport interface ToggleOrganizationActivationResultAction extends AppResultAction {\r\n\ttype: ActionTypes.toggle_organization_activation_result;\r\n\torganization: Organization;\r\n}\r\n\r\nexport interface Organization {\r\n\tid: string;\r\n\tname: string;\r\n\tparentPath?: string;\r\n\tparent?: Organization;\r\n\tactive: boolean;\r\n}\r\n\r\nexport type Action =\r\n\tAppAction\r\n\t& FetchOrganizationsResultAction\r\n\t& RefetchOrganizationsAction\r\n\t& FetchOrganizationsAction\r\n\t& LoadOrganizationAction\r\n\t& LoadOrganizationResultAction\r\n\t& GetParentPathAction\r\n\t& GetParentPathResultAction\r\n\t& AddOrganizationsResultAction\r\n\t& UpdateOrganizationsResultAction\r\n\t& DeleteOrganizationAction\r\n\t& DeleteOrganizationsResultAction\r\n\t& ToggleOrganizationNodeAction\r\n\t& SelectOrganizationAction\r\n\t& SetDraftOrganizationAction\r\n\t& FetchOrganizationTreeResultAction\r\n\t& ChangeDraftOrganizationNameAction\r\n\t& ChangeDraftParentOrganizationAction\r\n\t& SearchOrganizationTreeAction\r\n\t& SearchOrganizationTreeResultAction\r\n\t& SelectCopyToOrganizationAction\r\n\t& SelectCopyFromOrganizationAction\r\n\t& SetDeactivateOrganizationModalVisibleAction\r\n\t& ToggleOrganizationActivationAction\r\n\t& ToggleOrganizationActivationResultAction;\r\n\r\nexport interface State {\r\n\torganizations: Organization[];\r\n\torganizationTree: TreeNode;\r\n\ttotalCount: number;\r\n\r\n\tselectedOrganization?: Organization;\r\n\tdraftOrganization: Organization;\r\n\r\n\tselectedNodeId?: string;\r\n\r\n\tcopyToOrganization?: Organization;\r\n\tcopyFromOrganization?: Organization;\r\n\tisDeactivateOrganizationModalVisible: boolean;\r\n}\r\n","import { AppAction, AppResultAction } from '../../../config/types';\r\nimport { Organization } from '../../Organization/logic/types';\r\nimport { User } from '../../Users/logic/types';\r\n\r\nexport enum ActionTypes {\r\n\tchange_draft_delegate_start_date = 'DELEGATIONS__CHANGE_DRAFT_DELEGATE_START_DATE',\r\n\tchange_draft_delegate_end_date = 'DELEGATIONS__CHANGE_DRAFT_DELEGATE_END_DATE',\r\n\tchange_draft_delegate_organization = 'DELEGATIONS__CHANGE_DRAFT_DELEGATE_ORGANIZATION',\r\n\r\n\tchange_draft_delegate_active = 'DELEGATIONS__CHANGE_DRAFT_DELEGATE_ACTIVE',\r\n\tchange_draft_delegate_partially = 'DELEGATIONS__CHANGE_DRAFT_DELEGATE_PARTIALLY',\r\n\tchange_draft_delegate_on_secure_tasks = 'DELEGATIONS__CHANGE_DRAFT_DELEGATE_ON_SECURE_TASKS',\r\n\tchange_checkbox_option = 'DELEGATIONS__CHANGE_CHECKBOX_OPTION',\r\n\r\n\tsearch_users = 'DELEGATIONS__SEARCH_USERS',\r\n\tsearch_users_result = 'DELEGATIONS__SEARCH_USERS_RESULT',\r\n\tselect_user = 'DELEGATIONS__SELECT_USER',\r\n\tclear_user_search_query = 'DELEGATIONS__CLEAR_USER_SEARCH_QUERY',\r\n\tdelete_selected_user = 'DELEGATIONS__DELETE_SELECTED_USER',\r\n\r\n\tset_draft_delegation = 'DELEGATIONS__SET_DRAFT_DELEGATION',\r\n\tclear_draft_delegation = 'DELEGATIONS__CLEAR_DRAFT_DELEGATION',\r\n\tclear_delegation_data = 'DELEGATIONS__CLEAR_DELEGATION_DATA',\r\n\r\n\trefetch_delegations = 'DELEGATIONS__REFETCH_DELEGATIONS',\r\n\tfetch_delegations = 'DELEGATIONS__FETCH_DELEGATIONS',\r\n\tfetch_delegations_result = 'DELEGATIONS__FETCH_DELEGATIONS_RESULT',\r\n\r\n\tload_delegation = 'DELEGATIONS__LOAD_DELEGATION',\r\n\tload_delegation_result = 'DELEGATIONS__LOAD_DELEGATION_RESULT',\r\n\r\n\tfetch_organizations = 'DELEGATIONS__FETCH_ORGANIZATIONS',\r\n\tfetch_organizations_result = 'DELEGATIONS__FETCH_ORGANIZATIONS_RESULT',\r\n\r\n\tadd_delegation = 'DELEGATIONS__ADD_DELEGATION',\r\n\tadd_delegation_result = 'DELEGATIONS__ADD_DELEGATION_RESULT',\r\n\r\n\tupdate_delegation = 'DELEGATIONS__UPDATE_DELEGATION',\r\n\tupdate_delegation_result = 'DELEGATIONS__UPDATE_DELEGATION_RESULT',\r\n\r\n\tremove_delegation = 'DELEGATIONS__REMOVE_DELEGATION',\r\n\tremove_delegation_result = 'DELEGATIONS__REMOVE_DELEGATION_RESULT',\r\n}\r\n\r\nexport interface ChangeDraftDelegationStartDateAction extends AppAction {\r\n\ttype: ActionTypes.change_draft_delegate_start_date;\r\n\tstartDate?: Date;\r\n}\r\n\r\nexport interface ChangeDraftDelegationEndDateAction extends AppAction {\r\n\ttype: ActionTypes.change_draft_delegate_end_date;\r\n\tendDate?: Date;\r\n}\r\n\r\nexport interface SetDraftDelegation extends AppAction {\r\n\ttype: ActionTypes.set_draft_delegation,\r\n\tdelegation: Delegation,\r\n}\r\n\r\nexport interface ClearDraftDelegation extends AppAction {\r\n\ttype: ActionTypes.clear_draft_delegation\r\n}\r\n\r\nexport interface RemoveDelegationAction extends AppAction {\r\n\ttype: ActionTypes.remove_delegation;\r\n\tdelegation: Delegation;\r\n}\r\n\r\nexport interface RemoveDelegationResultAction extends AppResultAction {\r\n\ttype: ActionTypes.remove_delegation_result,\r\n}\r\n\r\nexport interface AddDelegationResultAction extends AppResultAction {\r\n\ttype: ActionTypes.add_delegation_result,\r\n}\r\n\r\nexport interface UpdateDelegationResultAction extends AppResultAction {\r\n\ttype: ActionTypes.update_delegation_result,\r\n}\r\n\r\nexport interface FetchDelegationsResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_delegations_result,\r\n\thasError: boolean,\r\n\tdelegations: Delegation[],\r\n\ttotalCount: number\r\n}\r\n\r\nexport interface LoadDelegationAction extends AppAction {\r\n\ttype: ActionTypes.load_delegation,\r\n\tdelegationId: string\r\n}\r\n\r\nexport interface LoadDelegationResultAction extends AppResultAction {\r\n\ttype: ActionTypes.load_delegation_result,\r\n\tdelegation: Delegation\r\n}\r\n\r\nexport interface FetchOrganizationsResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_organizations_result;\r\n\thasError: boolean;\r\n\torganizations: Organization[]\r\n}\r\n\r\nexport interface ChangeDraftDelegationOrganizationAction extends AppAction {\r\n\ttype: ActionTypes.change_draft_delegate_organization,\r\n\torganization?: Organization,\r\n}\r\n\r\nexport interface SearchUsersAction extends AppAction {\r\n\ttype: ActionTypes.search_users,\r\n\tsearchUserQuery: string\r\n}\r\n\r\nexport interface SearchUsersResultAction extends AppResultAction {\r\n\ttype: ActionTypes.search_users_result,\r\n\tusers: User[]\r\n}\r\n\r\nexport interface SelectUserAction extends AppAction {\r\n\ttype: ActionTypes.select_user,\r\n\ttoUser?: User\r\n}\r\n\r\nexport interface DeleteSelectedUserAction extends AppAction {\r\n\ttype: ActionTypes.delete_selected_user\r\n}\r\n\r\nexport interface ChangeCheckboxOptionAction extends AppAction {\r\n\ttype: ActionTypes.change_checkbox_option,\r\n\tindex: number\r\n}\r\n\r\nexport type Action =\r\n\tAppAction\r\n\t& AppResultAction\r\n\t& ChangeDraftDelegationStartDateAction\r\n\t& ChangeDraftDelegationEndDateAction\r\n\t& ChangeDraftDelegationOrganizationAction\r\n\t& SetDraftDelegation\r\n\t& ClearDraftDelegation\r\n\t& RemoveDelegationAction\r\n\t& RemoveDelegationResultAction\r\n\t& AddDelegationResultAction\r\n\t& UpdateDelegationResultAction\r\n\t& FetchOrganizationsResultAction\r\n\t& FetchDelegationsResultAction\r\n\t& SearchUsersAction\r\n\t& SearchUsersResultAction\r\n\t& SelectUserAction\r\n\t& DeleteSelectedUserAction\r\n\t& ChangeCheckboxOptionAction\r\n\t& LoadDelegationAction\r\n\t& LoadDelegationResultAction;\r\n\r\nexport interface Delegation {\r\n\tid: string;\r\n\torganization?: Organization;\r\n\ttoUser?: User;\r\n\tfromUser?: User;\r\n\r\n\tstartDate?: Date;\r\n\tendDate?: Date;\r\n\r\n\tactive: boolean;\r\n\tpartially: boolean;\r\n\tdelegatedOnSecureTasks: boolean;\r\n}\r\n\r\nexport interface State {\r\n\tdelegations: Delegation[];\r\n\ttotalCount: number;\r\n\r\n\tdraftDelegation: Delegation;\r\n\r\n\torganizations: Organization[];\r\n\tusers: User[];\r\n\tsearchUserQuery: string;\r\n}\r\n\r\n","import { AppAction, TreeNode } from '../../../config/types';\r\nimport {\r\n\tActionTypes,\r\n\tAddOrganizationsResultAction,\r\n\tChangeDraftOrganizationNameAction,\r\n\tChangeDraftParentOrganizationAction,\r\n\tDeleteOrganizationAction,\r\n\tDeleteOrganizationsResultAction,\r\n\tFetchOrganizationsAction,\r\n\tFetchOrganizationsResultAction,\r\n\tFetchOrganizationTreeAction,\r\n\tFetchOrganizationTreeResultAction,\r\n\tGetParentPathAction,\r\n\tGetParentPathResultAction,\r\n\tLoadOrganizationAction,\r\n\tLoadOrganizationResultAction,\r\n\tOrganization,\r\n\tRefetchOrganizationsAction,\r\n\tSearchOrganizationTreeAction,\r\n\tSearchOrganizationTreeResultAction,\r\n\tSelectCopyFromOrganizationAction,\r\n\tSelectCopyToOrganizationAction,\r\n\tSelectOrganizationAction,\r\n\tSetDeactivateOrganizationModalVisibleAction,\r\n\tSetDraftOrganizationAction,\r\n\tToggleOrganizationActivationAction,\r\n\tToggleOrganizationActivationResultAction,\r\n\tUpdateOrganizationsResultAction,\r\n} from './types';\r\n\r\nexport const changeDraftOrganizationName = (organizationName: string): ChangeDraftOrganizationNameAction => ({\r\n\ttype: ActionTypes.change_draft_organization_name,\r\n\torganizationName,\r\n});\r\n\r\nexport const changeDraftParentOrganization = (parentOrganization: Organization): ChangeDraftParentOrganizationAction => ({\r\n\ttype: ActionTypes.change_draft_parent_organization,\r\n\tparentOrganization,\r\n});\r\n\r\nexport const clearDraftOrganization = (): AppAction => ({\r\n\ttype: ActionTypes.clear_draft_organization,\r\n});\r\n\r\nexport const selectOrganization = (organization?: Organization): SelectOrganizationAction => ({\r\n\ttype: ActionTypes.select_organization,\r\n\torganization,\r\n});\r\n\r\nexport const clearOrganizationData = (): AppAction => ({\r\n\ttype: ActionTypes.clear_organization_data,\r\n});\r\n\r\nexport const addOrganizations = (): AppAction => ({\r\n\ttype: ActionTypes.add_organizations,\r\n});\r\n\r\nexport const addOrganizationsResult = (hasError: boolean): AddOrganizationsResultAction => ({\r\n\ttype: ActionTypes.add_organizations_result,\r\n\thasError,\r\n});\r\n\r\nexport const updateOrganizations = (): AppAction => ({\r\n\ttype: ActionTypes.update_organizations,\r\n});\r\n\r\nexport const updateOrganizationsResult = (hasError: boolean): UpdateOrganizationsResultAction => ({\r\n\ttype: ActionTypes.update_organizations_result,\r\n\thasError,\r\n});\r\n\r\nexport const deleteOrganization = (organization: Organization): DeleteOrganizationAction => ({\r\n\ttype: ActionTypes.delete_organizations,\r\n\torganization,\r\n});\r\n\r\nexport const deleteOrganizationResult = (hasError: boolean): DeleteOrganizationsResultAction => ({\r\n\ttype: ActionTypes.delete_organizations_result,\r\n\thasError,\r\n});\r\n\r\nexport const refetchOrganizations = (parentId: string): RefetchOrganizationsAction => ({\r\n\ttype: ActionTypes.refetch_organizations,\r\n\tparentId,\r\n});\r\n\r\nexport const fetchOrganizations = (parentId: string): FetchOrganizationsAction => ({\r\n\ttype: ActionTypes.fetch_organizations,\r\n\tparentId,\r\n});\r\n\r\nexport const fetchOrganizationsResult = (hasError: boolean, organizations?: [], totalCount?: number, parentId?: string): FetchOrganizationsResultAction => ({\r\n\ttype: ActionTypes.fetch_organizations_result,\r\n\thasError,\r\n\torganizations,\r\n\ttotalCount,\r\n\tparentId,\r\n});\r\n\r\nexport const searchOrganizationTree = (parentName: string, parentId?: string): SearchOrganizationTreeAction => ({\r\n\ttype: ActionTypes.search_organization_tree,\r\n\tparentId,\r\n\tparentName,\r\n});\r\n\r\nexport const searchOrganizationTreeResult = (hasError: boolean, parentId?: string, organizationTree?: TreeNode[], parentName?: string): SearchOrganizationTreeResultAction => ({\r\n\ttype: ActionTypes.search_organization_tree_result,\r\n\thasError,\r\n\tparentId,\r\n\torganizationTree,\r\n\tparentName,\r\n});\r\n\r\nexport const fetchOrganizationTree = (parentId?: string): FetchOrganizationTreeAction => ({\r\n\ttype: ActionTypes.fetch_organization_tree,\r\n\tparentId,\r\n});\r\n\r\nexport const fetchOrganizationTreeResult = (hasError: boolean, parentId?: string, organizationTree?: TreeNode[]): FetchOrganizationTreeResultAction => ({\r\n\ttype: ActionTypes.fetch_organization_tree_result,\r\n\thasError,\r\n\tparentId,\r\n\torganizationTree,\r\n});\r\n\r\nexport const manageToggleButton = (parentId?: string) => ({\r\n\ttype: ActionTypes.manage_toggle_button,\r\n\tparentId,\r\n});\r\n\r\n\r\nexport const getParentPath = (parentId: string): GetParentPathAction => ({\r\n\ttype: ActionTypes.get_parent_path,\r\n\tparentId,\r\n});\r\n\r\nexport const getParentPathResult = (hasError: boolean, parentPath?: string): GetParentPathResultAction => ({\r\n\ttype: ActionTypes.get_parent_path_result,\r\n\thasError,\r\n\tparentPath,\r\n});\r\n\r\nexport const loadOrganization = (organizationId: string): LoadOrganizationAction => ({\r\n\ttype: ActionTypes.load_organization,\r\n\torganizationId,\r\n});\r\n\r\nexport const loadOrganizationResult = (hasError: boolean, organization?: Organization): LoadOrganizationResultAction => ({\r\n\ttype: ActionTypes.load_organizations_result,\r\n\thasError,\r\n\torganization,\r\n});\r\n\r\nexport const selectCopyToOrganization = (copyToOrganization?: Organization): SelectCopyToOrganizationAction => ({\r\n\ttype: ActionTypes.select_copy_to_organization,\r\n\tcopyToOrganization,\r\n});\r\n\r\nexport const selectCopyFromOrganization = (copyFromOrganization?: Organization): SelectCopyFromOrganizationAction => ({\r\n\ttype: ActionTypes.select_copy_from_organization,\r\n\tcopyFromOrganization,\r\n});\r\n\r\nexport const copyOrganization = (): AppAction => ({\r\n\ttype: ActionTypes.copy_organization,\r\n});\r\n\r\nexport const setDeactivateOrganizationModalVisible = (visible: boolean): SetDeactivateOrganizationModalVisibleAction => ({\r\n\ttype: ActionTypes.set_deactivate_organization_modal_visible,\r\n\tvisible,\r\n});\r\n\r\nexport const toggleOrganizationActivation = (organization: Organization): ToggleOrganizationActivationAction => ({\r\n\ttype: ActionTypes.toggle_organization_activation,\r\n\torganization,\r\n});\r\nexport const toggleOrganizationActivationResult = (hasError: boolean, organization: Organization): ToggleOrganizationActivationResultAction => ({\r\n\ttype: ActionTypes.toggle_organization_activation_result,\r\n\thasError,\r\n\torganization,\r\n});\r\n\r\nexport const setDraftOrganization = (organization: Organization): SetDraftOrganizationAction => ({\r\n\ttype: ActionTypes.set_draft_organization,\r\n\torganization,\r\n});\r\n","import { AppAction, AppResultAction } from '../../../config/types';\r\nimport { TaskHeader, TaskStatus } from '../../Tasks/logic/type';\r\nimport { Priority } from '../../Priority/logic/types';\r\nimport { TaskType } from '../../TaskType/logic/types';\r\n\r\nexport enum ActionTypes {\r\n\tsearch_change_search_query = 'SEARCH__CHANGE_SEARCH_QUERY',\r\n\r\n\tsearch_tasks = 'SEARCH__FETCH_TASKS',\r\n\tsearch_tasks_result = 'SEARCH__FETCH_TASKS_RESULT',\r\n\r\n\tclear_search_data = 'SEARCH__CLEAR_SEARCH_DATA',\r\n\r\n\tadvanced_search_clear_data = 'ADVANCED_SEARCH__CLEAR_DATA',\r\n\tadvanced_search_change_title = 'ADVANCED_SEARCH__CHANGE_TITLE',\r\n\tadvanced_search_change_priority = 'ADVANCED_SEARCH__CHANGE_PRIORITY',\r\n\tadvanced_search_change_task_type = 'ADVANCED_SEARCH__CHANGE_TASK_TYPE',\r\n\tadvanced_search_change_status = 'ADVANCED_SEARCH__CHANGE_STATUS',\r\n\tadvanced_search_change_start_date_to = 'ADVANCED_SEARCH__CHANGE_START_DATE_TO',\r\n\tadvanced_search_change_start_date_from = 'ADVANCED_SEARCH__CHANGE_START_DATE_FROM',\r\n\tadvanced_search_change_end_date_to = 'ADVANCED_SEARCH__CHANGE_END_DATE_TO',\r\n\tadvanced_search_change_end_date_from = 'ADVANCED_SEARCH__CHANGE_END_DATE_FROM',\r\n\tadvanced_search_change_task_level = 'ADVANCED_SEARCH__CHANGE_TASK_LEVEL',\r\n\r\n\tadvanced_search_fetch_look_up = 'ADVANCED_SEARCH_FETCH_LOOK_UP',\r\n\tadvanced_search_fetch_look_up_result = 'ADVANCED_SEARCH_FETCH_LOOK_UP_RESULT',\r\n\r\n\tadvanced_search_tasks = 'ADVANCED_SEARCH_TASKS',\r\n\tadvanced_search_tasks_result = 'ADVANCED_SEARCH_TASKS_RESULT',\r\n}\r\n\r\nexport interface ChangeSearchQueryAction extends AppAction {\r\n\ttype: ActionTypes.search_change_search_query;\r\n\tsearchQuery: string;\r\n}\r\n\r\nexport interface SearchTasksAction extends AppAction {\r\n\ttype: ActionTypes.search_tasks;\r\n\tpageNumber: number;\r\n\tsearchQuery: string;\r\n}\r\n\r\nexport interface SearchTasksResultAction extends AppResultAction {\r\n\ttype: ActionTypes.search_tasks_result,\r\n\tuserTasks?: TaskHeader[];\r\n\ttotalCount?: number;\r\n\trequestTime?: number;\r\n}\r\n\r\nexport interface AdvancedSearchChangeTitleAction extends AppAction {\r\n\ttype: ActionTypes.advanced_search_change_title;\r\n\ttitle: string;\r\n}\r\n\r\nexport interface AdvancedSearchChangePriorityAction extends AppAction {\r\n\ttype: ActionTypes.advanced_search_change_priority;\r\n\tpriority?: Priority;\r\n}\r\n\r\nexport interface AdvancedSearchChangeTaskTypeAction extends AppAction {\r\n\ttype: ActionTypes.advanced_search_change_task_type;\r\n\ttaskType?: TaskType;\r\n}\r\n\r\nexport interface AdvancedSearchChangeStatusAction extends AppAction {\r\n\ttype: ActionTypes.advanced_search_change_status;\r\n\tstatus?: TaskStatus;\r\n}\r\n\r\nexport interface AdvancedSearchChangeTaskLevelAction extends AppAction {\r\n\ttype: ActionTypes.advanced_search_change_task_level;\r\n\ttaskLevel: 'all' | 'justMine' | 'mineAndOthers';\r\n}\r\n\r\nexport interface AdvancedSearchChangeStartDateToAction extends AppAction {\r\n\ttype: ActionTypes.advanced_search_change_start_date_to;\r\n\tstartDateTo?: Date;\r\n}\r\n\r\nexport interface AdvancedSearchChangeStartDateFromAction extends AppAction {\r\n\ttype: ActionTypes.advanced_search_change_start_date_from;\r\n\tstartDateFrom?: Date;\r\n}\r\n\r\nexport interface AdvancedSearchChangeEndDateToAction extends AppAction {\r\n\ttype: ActionTypes.advanced_search_change_end_date_to;\r\n\tendDateTo?: Date;\r\n}\r\n\r\nexport interface AdvancedSearchChangeEndDateFromAction extends AppAction {\r\n\ttype: ActionTypes.advanced_search_change_end_date_from;\r\n\tendDateFrom?: Date;\r\n}\r\n\r\nexport interface AdvancedSearchFetchLookUpResultAction extends AppResultAction {\r\n\ttype: ActionTypes.advanced_search_fetch_look_up_result,\r\n\tpriorities?: Priority[],\r\n\ttaskTypes?: TaskType[],\r\n}\r\n\r\nexport interface AdvancedSearchTasksAction extends AppAction {\r\n\ttype: ActionTypes.advanced_search_tasks;\r\n\tpageNumber: number;\r\n}\r\n\r\nexport interface AdvancedSearchTasksResultAction extends AppResultAction {\r\n\ttype: ActionTypes.advanced_search_tasks_result;\r\n\tuserTasks?: TaskHeader[];\r\n\ttotalCount?: number;\r\n\trequestTime?: number;\r\n}\r\n\r\nexport type Action =\r\n\tAppAction\r\n\t& SearchTasksAction\r\n\t& SearchTasksResultAction\r\n\t& ChangeSearchQueryAction\r\n\t& AdvancedSearchChangeTitleAction\r\n\t& AdvancedSearchChangePriorityAction\r\n\t& AdvancedSearchChangeTaskTypeAction\r\n\t& AdvancedSearchChangeStatusAction\r\n\t& AdvancedSearchChangeTaskLevelAction\r\n\t& AdvancedSearchChangeStartDateToAction\r\n\t& AdvancedSearchChangeStartDateFromAction\r\n\t& AdvancedSearchChangeEndDateToAction\r\n\t& AdvancedSearchChangeEndDateFromAction\r\n\t& AdvancedSearchFetchLookUpResultAction\r\n\t& AdvancedSearchTasksAction\r\n\t& AdvancedSearchTasksResultAction;\r\n\r\nexport interface AdvancedSearch {\r\n\tpriority?: Priority;\r\n\ttaskType?: TaskType;\r\n\r\n\ttitle: string;\r\n\tstatus?: TaskStatus;\r\n\r\n\tstartDateFrom?: Date;\r\n\tstartDateTo?: Date;\r\n\r\n\tendDateFrom?: Date;\r\n\tendDateTo?: Date;\r\n\r\n\ttaskLevel: 'all' | 'justMine' | 'mineAndOthers';\r\n}\r\n\r\nexport interface Search {\r\n\tsearchQuery: string;\r\n}\r\n\r\nexport interface State {\r\n\ttaskTypes: TaskType[];\r\n\tpriorities: Priority[];\r\n\trequestTime: number;\r\n\r\n\tadvancedSearch: AdvancedSearch;\r\n\tsearch: Search;\r\n\tuserTasks: TaskHeader[];\r\n\r\n\tpageNumber: number;\r\n\ttotalCount: number;\r\n}\r\n","import { AppAction, AppResultAction, PermissionName } from '../../../config/types';\r\n\r\nexport enum ActionTypes {\r\n\tchange_email = 'AUTH__CHANGE_EMAIL',\r\n\tchange_password = 'AUTH__CHANGE_PASSWORD',\r\n\r\n\tlogin = 'AUTH__LOGIN',\r\n\tlogin_result = 'AUTH__LOGIN_RESULT',\r\n\tlogout = 'AUTH__LOGOUT',\r\n\r\n\tfetch_user_permissions = 'AUTH__FETCH_USER_PERMISSIONS',\r\n\tfetch_user_permissions_result = 'AUTH__FETCH_USER_PERMISSIONS_RESULT',\r\n\tclear_user_permissions = 'AUTH__CLEAR_USER_PERMISSIONS',\r\n\ttoggle_super_user = 'USERS__TOGGLE_SUPER_USER',\r\n\r\n\tchange_phoneNumber = 'AUTH__CHANGE_PHONE_NUMBER',\r\n\tchange_note = 'AUTH__CHANGE_NOTE',\r\n\tchange_email_checkbox = 'AUTH__CHANGE_EMAIL_CHECKBOX',\r\n\tchange_phone_checkbox = 'AUTH__CHANGE_PHONE_CHECKBOX',\r\n\tchange_system_checkbox = 'AUTH__CHANGE_SYSTEM_CHECKBOX',\r\n\tfetch_user_profile = 'AUTH__FETCH_USER_PROFILE',\r\n\tfetch_user_profile_result = 'AUTH__FETCH_USER_PROFILE_RESULT',\r\n\tfetch_profile = 'AUTH__FETCH_PROFILE',\r\n\tfetch_profile_result = 'AUTH__FETCH_PROFILE_RESULT',\r\n\tsave_profile = 'AUTH__SAVE_PROFILE',\r\n\tsave_profile_result = 'AUTH__SAVE_PROFILE_RESULT',\r\n\r\n\tset_sid_value = 'USERS__SET_SID_VALUE',\r\n\tclear_profile_data = 'USERS__CLEAR_PROFILE_DATA',\r\n}\r\n\r\nexport interface ChangeEmailAction extends AppAction {\r\n\ttype: ActionTypes.change_email;\r\n\temail: string;\r\n}\r\n\r\nexport interface ChangePasswordAction extends AppAction {\r\n\ttype: ActionTypes.change_password;\r\n\tpassword: string;\r\n}\r\n\r\nexport interface FetchUserPermissionsResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_user_permissions_result;\r\n\thasError: boolean;\r\n\tuserPermissions?: PermissionName[];\r\n}\r\n\r\nexport interface ChangePhoneNumberAction extends AppAction {\r\n\ttype: ActionTypes.change_phoneNumber;\r\n\tphoneNumber: string;\r\n}\r\n\r\nexport interface ChangeNoteAction extends AppAction {\r\n\ttype: ActionTypes.change_note;\r\n\tnote: string;\r\n}\r\n\r\nexport interface ChangeEmailCheckboxAction extends AppAction {\r\n\ttype: ActionTypes.change_email_checkbox;\r\n\temailCheckboxId: string;\r\n}\r\n\r\nexport interface ChangePhoneCheckboxAction extends AppAction {\r\n\ttype: ActionTypes.change_phone_checkbox;\r\n\tphoneCheckboxId: string;\r\n}\r\n\r\nexport interface ChangeSystemCheckboxAction extends AppAction {\r\n\ttype: ActionTypes.change_system_checkbox;\r\n\tpushCheckboxId: string;\r\n}\r\n\r\nexport interface LoginAction extends AppAction {\r\n\ttype: ActionTypes.login;\r\n\tredirectTo?: string;\r\n}\r\n\r\nexport interface FetchProfileResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_profile_result;\r\n\thasError: boolean;\r\n\tprofile: Profile;\r\n\tnotifications: Notifications[]\r\n}\r\n\r\nexport interface FetchUserProfileResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_user_profile_result;\r\n\thasError: boolean;\r\n\tprofile?: Profile;\r\n\tdelegator?: Profile;\r\n\tloginAsFullName?: string;\r\n\tpartially?: boolean;\r\n}\r\n\r\nexport interface SetSIDValueAction extends AppAction {\r\n\ttype: ActionTypes.set_sid_value;\r\n\tsid: string\r\n}\r\n\r\nexport interface SaveProfileResultAction extends AppResultAction {\r\n\ttype: ActionTypes.save_profile_result;\r\n\thasError: boolean;\r\n}\r\n\r\nexport type Action =\r\n\tAppAction\r\n\t& AppResultAction\r\n\t& ChangeEmailAction\r\n\t& ChangePasswordAction\r\n\t& ChangeEmailCheckboxAction\r\n\t& ChangePhoneCheckboxAction\r\n\t& ChangeSystemCheckboxAction\r\n\t& FetchUserPermissionsResultAction\r\n\t& ChangePhoneNumberAction\r\n\t& ChangeNoteAction\r\n\t& FetchProfileResultAction\r\n\t& FetchUserProfileResultAction\r\n\t& SaveProfileResultAction\r\n\t& SetSIDValueAction\r\n\t& LoginAction;\r\n\r\nexport interface Profile {\r\n\tuserId?: string;\r\n\tarName: string;\r\n\temail: string;\r\n\tphoneNumber: string;\r\n\tnote: string;\r\n\tsource?: string;\r\n}\r\n\r\nexport interface Notifications {\r\n\tnotificationTypeId: string;\r\n\tnotificationName: string;\r\n\temailNotification: boolean;\r\n\tsystemNotification: boolean;\r\n\tphoneNotification: boolean;\r\n\tuserID: string;\r\n\tsettingID: string;\r\n}\r\n\r\nexport interface State {\r\n\temail: string;\r\n\tpassword: string;\r\n\r\n\tloggingIn: boolean;\r\n\tcredentialsValid?: boolean;\r\n\r\n\tsid: string;\r\n\r\n\tloadingPermissions: boolean;\r\n\tuserPermissions?: PermissionName[];\r\n\r\n\tprofile: Profile;\r\n\tdelegator?: Profile;\r\n\tpartially?: boolean;\r\n\tloginAsFullName?: string;\r\n\tnotifications: Notifications[]\r\n\r\n\t// Force passing all permissions\r\n\tsuperUser: boolean;\r\n}\r\n","import { AppAction, AppResultAction } from '../../../config/types';\r\n\r\nexport enum ActionTypes {\r\n\tchange_draft_permission_templates_name = 'PERMISSION_TEMPLATES__CHANGE_DRAFT_PERMISSION_TEMPLATE_NAME',\r\n\tchange_draft_permission_templates_permission = 'PERMISSION_TEMPLATES__CHANGE_DRAFT_PERMISSION_TEMPLATE_PERMISSION',\r\n\tchange_draft_permission_templates_default_template = 'PERMISSION_TEMPLATES__CHANGE_DRAFT_PERMISSION_TEMPLATE_DEFAULT_TEMPLATE',\r\n\r\n\tset_draft_permission_template = 'PERMISSION_TEMPLATES__SET_DRAFT_PERMISSION_TEMPLATE',\r\n\tclear_draft_permission_template = 'PERMISSION_TEMPLATES__CLEAR_DRAFT_PERMISSION_TEMPLATE',\r\n\tclear_permission_templates_data = 'PERMISSION_TEMPLATES__CLEAR_PERMISSION_TEMPLATES_DATA',\r\n\r\n\trefetch_permission_templates = 'PERMISSION_TEMPLATES__REFETCH_PERMISSION_TEMPLATES',\r\n\tfetch_permission_templates = 'PERMISSION_TEMPLATES__FETCH_PERMISSION_TEMPLATES',\r\n\tfetch_permission_templates_result = 'PERMISSION_TEMPLATES__FETCH_PERMISSION_TEMPLATES_RESULT',\r\n\r\n\tget_all_permissions = 'PERMISSION_TEMPLATES__GET_ALL_PERMISSIONS',\r\n\tget_all_permissions_result = 'PERMISSION_TEMPLATES__GET_ALL_PERMISSIONS_RESULT',\r\n\r\n\tadd_permission_template = 'PERMISSION_TEMPLATES__ADD_PERMISSION_TEMPLATE',\r\n\tadd_permission_template_result = 'PERMISSION_TEMPLATES__ADD_PERMISSION_TEMPLATE_RESULT',\r\n\r\n\tupdate_permission_template = 'PERMISSION_TEMPLATES__UPDATE_PERMISSION_TEMPLATE',\r\n\tupdate_permission_template_result = 'PERMISSION_TEMPLATES__UPDATE_PERMISSION_TEMPLATE_RESULT',\r\n\r\n\tremove_permission_template = 'PERMISSION_TEMPLATES__REMOVE_PERMISSION_TEMPLATE',\r\n\tremove_permission_template_result = 'PERMISSION_TEMPLATES__REMOVE_PERMISSION_TEMPLATE_RESULT',\r\n\r\n\tload_permission_template = 'PERMISSION_TEMPLATES__LOAD_PERMISSION_TEMPLATE',\r\n\tload_permission_template_result = 'PERMISSION_TEMPLATES__LOAD_PERMISSION_TEMPLATE_RESULT',\r\n}\r\n\r\nexport interface ChangeDraftPermissionTemplateNameAction extends AppAction {\r\n\ttype: ActionTypes.change_draft_permission_templates_name;\r\n\tname: string;\r\n}\r\n\r\nexport interface ChangeDraftPermissionTemplatePermissionAction extends AppAction {\r\n\ttype: ActionTypes.change_draft_permission_templates_permission;\r\n\tid: string;\r\n}\r\n\r\nexport interface LoadPermissionTemplateAction extends AppAction {\r\n\ttype: ActionTypes.load_permission_template,\r\n\tpermissionTemplateId: string\r\n}\r\n\r\nexport interface LoadPermissionTemplateResultAction extends AppResultAction {\r\n\ttype: ActionTypes.load_permission_template_result,\r\n\tpermissionTemplate?: PermissionTemplate\r\n}\r\n\r\nexport interface SetDraftPermissionTemplate extends AppAction {\r\n\ttype: ActionTypes.set_draft_permission_template,\r\n\tpermissionTemplate: PermissionTemplate,\r\n}\r\n\r\nexport interface AddPermissionTemplateResultAction extends AppResultAction {\r\n\ttype: ActionTypes.add_permission_template_result,\r\n}\r\n\r\nexport interface UpdatePermissionTemplateResultAction extends AppResultAction {\r\n\ttype: ActionTypes.update_permission_template_result,\r\n}\r\n\r\nexport interface FetchPermissionTemplateResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_permission_templates_result,\r\n\tpermissionTemplates: PermissionTemplate[];\r\n\ttotalCount: number;\r\n}\r\n\r\nexport interface GetAllPermissionResultAction extends AppResultAction {\r\n\ttype: ActionTypes.get_all_permissions_result,\r\n\tpermissions?: Permission[]\r\n}\r\n\r\nexport interface RemovePermissionTemplateAction extends AppAction {\r\n\ttype: ActionTypes.remove_permission_template;\r\n\tpermissionId: string;\r\n}\r\n\r\nexport interface RemovePermissionTemplateResultAction extends AppResultAction {\r\n\ttype: ActionTypes.remove_permission_template_result,\r\n}\r\n\r\nexport interface Permission {\r\n\tid: string,\r\n\tname: string\r\n}\r\n\r\nexport interface PermissionTemplate {\r\n\tid: string;\r\n\ttemplateName: string;\r\n\tdefaultTemplate: boolean;\r\n\tpermissions: string[];\r\n}\r\n\r\nexport type Action =\r\n\tAppAction\r\n\t& ChangeDraftPermissionTemplateNameAction\r\n\t& ChangeDraftPermissionTemplatePermissionAction\r\n\t& SetDraftPermissionTemplate\r\n\t& RemovePermissionTemplateResultAction\r\n\t& AddPermissionTemplateResultAction\r\n\t& UpdatePermissionTemplateResultAction\r\n\t& FetchPermissionTemplateResultAction\r\n\t& LoadPermissionTemplateAction\r\n\t& LoadPermissionTemplateResultAction\r\n\t& GetAllPermissionResultAction\r\n\t& RemovePermissionTemplateAction;\r\n\r\nexport interface State {\r\n\tpermissionTemplates: PermissionTemplate[];\r\n\tallPermissions: Permission[];\r\n\r\n\tdraftPermissionTemplate: PermissionTemplate;\r\n\r\n\ttotalCount: number;\r\n}\r\n","import { AppAction, AppResultAction } from '../../../config/types';\r\n\r\nexport enum ActionTypes {\r\n\tchange_stakholder_name = 'STAKHOLDERS__CHANGE_STAKHOLDER_NAME',\r\n\tchange_stakholder_ref_id = 'STAKHOLDERS__CHANGE_STAKHOLDER_REF_ID',\r\n\r\n\tchange_stakholder_search_query = 'STAKHOLDERS__CHANGE_STAKHOLDER_SEARCH_QUERY',\r\n\tclear_search_queries = 'STAKHOLDERS__CLEAR_SEARCH_QUERIES',\r\n\tclear_stakholders_data = 'STAKHOLDERS__CLEAR_STAKHOLDERS_DATA',\r\n\r\n\tset_draft_stakholder = 'STAKHOLDERS__SET_DRAFT_STAKHOLDER',\r\n\tclear_draft_stakholder = 'STAKHOLDERS__CLEAR_DRAFT',\r\n\r\n\trefetch_stakholders = 'STAKHOLDERS__REFETCH_STAKHOLDERS',\r\n\tfetch_stakholders = 'STAKHOLDERS__FETCH_STAKHOLDERS',\r\n\tfetch_stakholders_result = 'STAKHOLDERS__FETCH_STAKHOLDERS_RESULT',\r\n\r\n\tload_stakholder = 'STAKHOLDERS__LOAD_STAKHOLDER',\r\n\tload_stakholder_result = 'STAKHOLDERS__LOAD_STAKHOLDER_RESULT',\r\n\r\n\tadd_stakholder = 'STAKHOLDERS__ADD_STAKHOLDER',\r\n\tadd_stakholder_result = 'STAKHOLDERS__ADD_STAKHOLDER_RESULT',\r\n\r\n\tupdate_stakholder = 'STAKHOLDERS__UPDATE_STAKHOLDER',\r\n\tupdate_stakholder_result = 'STAKHOLDERS__UPDATE_STAKHOLDER_RESULT',\r\n\r\n\tremove_stakholder = 'STAKHOLDERS__REMOVE_STAKHOLDER',\r\n\tremove_stakholder_result = 'STAKHOLDERS__REMOVE_STAKHOLDER_RESULT',\r\n}\r\n\r\nexport interface ChangeStakholderNameAction extends AppAction {\r\n\ttype: ActionTypes.change_stakholder_name;\r\n\tname: string;\r\n}\r\n\r\nexport interface ChangeStakholderRefIdAction extends AppAction {\r\n\ttype: ActionTypes.change_stakholder_ref_id;\r\n\trefId: string;\r\n}\r\n\r\nexport interface ChangeStakholderSearchQueryAction extends AppAction {\r\n\ttype: ActionTypes.change_stakholder_search_query;\r\n\tsearchQuery: string;\r\n}\r\n\r\nexport interface SetDraftStakholderAction extends AppAction {\r\n\ttype: ActionTypes.set_draft_stakholder,\r\n\tstakholder: Stakholder,\r\n}\r\n\r\nexport interface RemoveStakholderAction extends AppAction {\r\n\ttype: ActionTypes.remove_stakholder;\r\n\tstakholder: Stakholder;\r\n}\r\n\r\nexport interface RemoveStakholderResultAction extends AppResultAction {\r\n\ttype: ActionTypes.remove_stakholder_result,\r\n}\r\n\r\nexport interface AddStakholderResultAction extends AppResultAction {\r\n\ttype: ActionTypes.add_stakholder_result,\r\n}\r\n\r\nexport interface UpdateStakholderResultAction extends AppResultAction {\r\n\ttype: ActionTypes.update_stakholder_result,\r\n}\r\n\r\nexport interface RefetchStakholdersAction extends AppAction {\r\n\ttype: ActionTypes.refetch_stakholders,\r\n\tpageNumber: number\r\n}\r\n\r\nexport interface FetchStakholdersAction extends AppAction {\r\n\ttype: ActionTypes.fetch_stakholders,\r\n\tpageNumber: number\r\n}\r\n\r\nexport interface FetchStakholdersResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_stakholders_result;\r\n\tstakholders?: Stakholder[];\r\n\ttotalCount?: number;\r\n}\r\n\r\nexport interface LoadStakholderAction extends AppAction {\r\n\ttype: ActionTypes.load_stakholder,\r\n\tstakholderId: string\r\n}\r\n\r\nexport interface LoadStakholderResultAction extends AppResultAction {\r\n\ttype: ActionTypes.load_stakholder_result,\r\n\tstakholder?: Stakholder\r\n}\r\n\r\nexport interface Stakholder {\r\n\tid: string;\r\n\tname: string;\r\n\trefId: string;\r\n}\r\n\r\nexport type Action =\r\n\tAppAction\r\n\t& ChangeStakholderNameAction\r\n\t& ChangeStakholderSearchQueryAction\r\n\t& ChangeStakholderRefIdAction\r\n\t& SetDraftStakholderAction\r\n\t& RemoveStakholderAction\r\n\t& RemoveStakholderResultAction\r\n\t& AddStakholderResultAction\r\n\t& UpdateStakholderResultAction\r\n\t& RefetchStakholdersAction\r\n\t& FetchStakholdersResultAction\r\n\t& FetchStakholdersAction\r\n\t& LoadStakholderAction\r\n\t& LoadStakholderResultAction;\r\n\r\nexport interface State {\r\n\tdraftStakholder: Stakholder;\r\n\r\n\tstakholders: Stakholder[];\r\n\ttotalCount: number;\r\n\tpageNumber: number;\r\n\r\n\tsearchQuery: string;\r\n}\r\n","import { AppAction, AppResultAction, SelectableValue } from '../../../config/types';\r\nimport { TaskType } from '../../TaskType/logic/types';\r\nimport { Procedure } from '../../Procedure/logic/types';\r\nimport { Priority } from '../../Priority/logic/types';\r\n\r\nexport enum ActionTypes {\r\n\tfetch_lookup = 'ADD_TASK__FETCH_LOOKUP',\r\n\tfetch_lookup_result = 'ADD_TASK__FETCH_LOOKUP_RESULT',\r\n\r\n\tchange_title = 'ADD_TASK__CHANGE_TITLE',\r\n\ttoggle_secret = 'ADD_TASK__TOGGLE_SECRET',\r\n\tchange_description = 'ADD_TASK__CHANGE_DESCRIPTION',\r\n\tchange_start_date = 'ADD_TASK__CHANGE_START_DATE',\r\n\tchange_end_date = 'ADD_TASK__CHANGE_END_DATE',\r\n\tchange_note = 'ADD_TASK__CHANGE_NOTE',\r\n\r\n\tselect_task_type = 'ADD_TASK__SELECT_TASK_TYPE',\r\n\tselect_priority = 'ADD_TASK__SELECT_PRIORITY',\r\n\tselect_procedure = 'ADD_TASK__SELECT_PROCEDURE',\r\n\r\n\tselect_to_users = 'ADD_TASK__SELECT_TO_USERS',\r\n\tselect_copy_to_users = 'ADD_TASK__SELECT_COPY_TO_USERS',\r\n\r\n\ttoggle_has_parent_task = 'ADD_TASK__TOGGLE_HAS_PARENT_TASK',\r\n\tchange_parent_task_no = 'ADD_TASK__CHANGE_PARENT_TASK_NO',\r\n\tget_task_by_task_no = 'ADD_TASK__GET_TASK_BY_TASK_NO',\r\n\tget_task_by_task_no_result = 'ADD_TASK__GET_TASK_BY_TASK_NO_RESULT',\r\n\r\n\tclear_add_task_data = 'ADD_TASK__CLEAR_ADD_TASK_DATA',\r\n\tclear_parent_task = 'ADD_TASK__CLEAR_PARENT_TASK',\r\n\r\n\tadd_task = 'ADD_TASK__ADD_TASK',\r\n\tadd_task_result = 'ADD_TASK__ADD_TASK_RESULT',\r\n}\r\n\r\nexport interface FetchLookupResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_lookup_result;\r\n\thasError: boolean;\r\n\ttaskTypes?: TaskType[];\r\n\tprocedures?: Procedure[];\r\n\tpriorities?: Priority[];\r\n}\r\n\r\nexport interface ChangeTitleAction extends AppAction {\r\n\ttype: ActionTypes.change_title;\r\n\ttaskTitle: string;\r\n}\r\n\r\nexport interface ChangeDescriptionAction extends AppAction {\r\n\ttype: ActionTypes.change_description;\r\n\ttaskDescription: string;\r\n}\r\n\r\nexport interface ChangeStartDateAction extends AppAction {\r\n\ttype: ActionTypes.change_start_date;\r\n\tstartDate: Date;\r\n}\r\n\r\nexport interface ChangeEndDateAction extends AppAction {\r\n\ttype: ActionTypes.change_end_date;\r\n\tendDate?: Date;\r\n}\r\n\r\nexport interface ChangeNoteAction extends AppAction {\r\n\ttype: ActionTypes.change_note;\r\n\tnote: string;\r\n}\r\n\r\nexport interface SelectTaskTypeAction extends AppAction {\r\n\ttype: ActionTypes.select_task_type;\r\n\ttaskType?: TaskType;\r\n}\r\n\r\nexport interface SelectPriorityAction extends AppAction {\r\n\ttype: ActionTypes.select_priority;\r\n\tpriority?: Priority;\r\n}\r\n\r\nexport interface SelectProcedureAction extends AppAction {\r\n\ttype: ActionTypes.select_procedure;\r\n\tprocedure?: Procedure;\r\n}\r\n\r\nexport interface SelectToUsersAction extends AppAction {\r\n\ttype: ActionTypes.select_to_users;\r\n\ttoUsers: SelectableValue[];\r\n}\r\n\r\nexport interface SelectCopyToUsersAction extends AppAction {\r\n\ttype: ActionTypes.select_copy_to_users;\r\n\tcopyToUsers: SelectableValue[];\r\n}\r\n\r\nexport interface ChangeParentTaskNoAction extends AppAction {\r\n\ttype: ActionTypes.change_parent_task_no;\r\n\tparentTaskNo: string;\r\n}\r\n\r\nexport interface GetTaskByTaskNoResultAction extends AppResultAction {\r\n\ttype: ActionTypes.get_task_by_task_no_result,\r\n\tparentTask?: Task;\r\n}\r\n\r\nexport type Action =\r\n\tAppAction\r\n\t& FetchLookupResultAction\r\n\r\n\t& ChangeTitleAction\r\n\t& ChangeDescriptionAction\r\n\t& ChangeStartDateAction\r\n\t& ChangeEndDateAction\r\n\t& ChangeNoteAction\r\n\r\n\t& SelectTaskTypeAction\r\n\t& SelectPriorityAction\r\n\t& SelectProcedureAction\r\n\r\n\t& SelectToUsersAction\r\n\t& SelectCopyToUsersAction\r\n\r\n\t& ChangeParentTaskNoAction\r\n\t& GetTaskByTaskNoResultAction;\r\n\r\nexport interface Task {\r\n\tid: string;\r\n\ttitle: string;\r\n}\r\n\r\nexport interface State {\r\n\ttaskTypes: TaskType[];\r\n\tprocedures: Procedure[];\r\n\tpriorities: Priority[];\r\n\r\n\ttitle: string;\r\n\tisSecret: boolean;\r\n\tdescription: string;\r\n\tstartDate: Date;\r\n\tendDate?: Date;\r\n\tnote: string;\r\n\r\n\thasParentTask: boolean;\r\n\tparentTaskNo: string;\r\n\tparentTask?: Task,\r\n\r\n\tselectedTaskType?: TaskType;\r\n\tselectedProcedure?: Procedure;\r\n\tselectedPriority?: Priority;\r\n\r\n\ttoUsers: SelectableValue[],\r\n\tcopyToUsers: SelectableValue[],\r\n}\r\n","import { AppAction, AppResultAction } from '../../../config/types';\r\nimport { AttachmentFile, Task } from '../../Tasks/logic/type';\r\nimport { User } from '../../Users/logic/types';\r\n\r\nexport enum ActionTypes {\r\n\tchange_es_request_status = 'ELECTRONIC_SIGNATURE_REQUEST__CHANGE_ES_REQUEST_STATUS',\r\n\tfetch_es_requests = 'ELECTRONIC_SIGNATURE_REQUEST__FETCH_ES_REQUESTS',\r\n\tfetch_es_requests_result = 'ELECTRONIC_SIGNATURE_REQUEST__FETCH_ES_REQUESTS_RESULT',\r\n\tre_fetch_es_requests = 'ELECTRONIC_SIGNATURE_REQUEST__RE_FETCH_ES_REQUESTS',\r\n\r\n\tclosed_es_request = 'ELECTRONIC_SIGNATURE_REQUEST__CLOSED_ES_REQUEST',\r\n\tclear_es_requests_data = 'ELECTRONIC_SIGNATURE_REQUEST__CLEAR_ES_REQUESTS_DATA',\r\n}\r\n\r\nexport interface ChangeEsRequestStatusAction extends AppAction {\r\n\ttype: ActionTypes.change_es_request_status;\r\n\tesRequestStatus: EsRequestStatus;\r\n}\r\n\r\nexport interface FetchEsRequestsAction extends AppAction {\r\n\ttype: ActionTypes.fetch_es_requests | ActionTypes.re_fetch_es_requests;\r\n\tpageNumber: number;\r\n}\r\n\r\nexport interface FetchEsRequestsResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_es_requests_result;\r\n\tesRequests?: EsRequest[];\r\n\ttotalCount?: number;\r\n}\r\n\r\nexport interface ClosedEsRequestAction extends AppAction {\r\n\ttype: ActionTypes.closed_es_request;\r\n\tesRequestId: string\r\n}\r\n\r\n\r\nexport interface DraftEsRequest {\r\n\tnewStatus?: EsRequestStatus;\r\n\tnewResponseExtraDays: string;\r\n\tnewResponseNotes: string;\r\n}\r\n\r\nexport interface EsRequest {\r\n\tid: string;\r\n\ttask: Task;\r\n\tuserTaskId: string;\r\n\r\n\tcreatedDate: string;\r\n\tlastUpdatedDate: string;\r\n\r\n\tassignedTo: User;\r\n\tassignedFrom: User;\r\n\r\n\tnotes: string;\r\n\r\n\tstatusId: string;\r\n\tstatusName: string;\r\n\tstatus: EsRequestStatus;\r\n\r\n\trequestHijriDate?: string;\r\n\trequestTitle?: string;\r\n\tsignedFile: AttachmentFile;\r\n\tisReferral?: boolean;\r\n}\r\n\r\nexport enum EsRequestStatus {\r\n\tnew=1,\r\n\tclosed=2,\r\n\tapproved=3,\r\n\t//returned=4,\r\n}\r\nexport const esRequestTitleDisplay: { [key in EsRequestStatus]: string } = {\r\n\t[EsRequestStatus.new]: 'الطلبات الجديدة',\r\n\t//[EsRequestStatus.returned]: 'الطلبات المعادة',\r\n\t[EsRequestStatus.approved]: 'الطلبات المعتمدة',\r\n\t[EsRequestStatus.closed]: 'الطلبات المغلقة',\r\n};\r\n\r\nexport const esRequestStatusDisplay: { [key in EsRequestStatus]: string } = {\r\n\t[EsRequestStatus.new]: 'جديد',\r\n\t//[EsRequestStatus.returned]: 'معاد',\r\n\t[EsRequestStatus.approved]: 'معتمد',\r\n\t[EsRequestStatus.closed]: 'مغلق',\r\n};\r\n\r\nexport type Action =\r\n\tAppAction\r\n\t& ChangeEsRequestStatusAction\r\n\t& FetchEsRequestsAction\r\n\t& FetchEsRequestsResultAction\r\n\t& ClosedEsRequestAction;\r\n\r\nexport interface State {\r\n\tesRequestStatus?: EsRequestStatus;\r\n\r\n\tpageNumber: number;\r\n\tesRequests: EsRequest[];\r\n\ttotalCount: number;\r\n\r\n\ttakeActionVisible: boolean;\r\n\tesRequest?: EsRequest\r\n\tdraftEsRequest: DraftEsRequest;\r\n}\r\n\r\n","import {\r\n\tActionTypes,\r\n\tChangeActiveSlideAction,\r\n\tChangeAttachmentActiveSlide,\r\n\tFetchEsRequestAction,\r\n\tFetchEsRequestCommentsAction,\r\n\tFetchEsRequestCommentsResultAction,\r\n\tFetchEsRequestResultAction,\r\n\tFetchIsAttachmentSecretAction,\r\n\tFetchIsAttachmentSecretResultAction,\r\n\tGetAttachmentUrlAction,\r\n\tGetAttachmentUrlResultAction,\r\n\tSetAttachmentIdAction,\r\n\tSelectEsRequestNewStatusAction,\r\n\tChangeRequestStatusAction,\r\n\tChangeNoteAction,\r\n\r\n\tState,\r\n} from './types';\r\nimport { EsRequest, EsRequestStatus } from '../../EsRequests/logic/types';\r\nimport { AttachmentFile } from '../../Tasks/logic/type';\r\nimport { AppAction } from '../../../config/types';\r\n\r\nexport const fetchEsRequest = (esRequestId: string): FetchEsRequestAction => ({\r\n\ttype: ActionTypes.fetch_es_request,\r\n\tesRequestId,\r\n});\r\n\r\nexport const fetchEsRequestResult = (hasError: boolean, esRequest?: EsRequest, attachmentFile?: AttachmentFile, signedFile?: AttachmentFile): FetchEsRequestResultAction => ({\r\n\ttype: ActionTypes.fetch_es_request_result,\r\n\thasError,\r\n\tesRequest,\r\n\tattachmentFile,\r\n\tsignedFile\r\n});\r\n\r\nexport const fetchEsRequestComments = (esRequestId: string): FetchEsRequestCommentsAction => ({\r\n\ttype: ActionTypes.fetch_es_request_comments,\r\n\tesRequestId,\r\n});\r\n\r\nexport const fetchEsRequestCommentsResult = (hasError: boolean, comments?: [], totalCount?: number): FetchEsRequestCommentsResultAction => ({\r\n\ttype: ActionTypes.fetch_es_request_comments_result,\r\n\thasError,\r\n\tcomments,\r\n\ttotalCount\r\n});\r\n\r\nexport const changeActiveSlide = (activeSlide: State['activeSlide']): ChangeActiveSlideAction => ({\r\n\ttype: ActionTypes.change_active_slide,\r\n\tactiveSlide,\r\n});\r\n\r\nexport const changeAttachmentActiveSlide = (attachmentActiveSlide: State['attachmentActiveSlide']): ChangeAttachmentActiveSlide => ({\r\n\ttype: ActionTypes.change_attachment_active_slide,\r\n\tattachmentActiveSlide,\r\n});\r\n\r\nexport const changeNote = (note: string): ChangeNoteAction => ({\r\n\ttype: ActionTypes.change_note,\r\n\tnote,\r\n});\r\nexport const changeRequestStatus = (esRequestId: string): ChangeRequestStatusAction => ({\r\n\ttype: ActionTypes.change_request_status,\r\n\tesRequestId,\r\n});\r\n\r\nexport const selectEsRequestNewStatus = (newStatus?: EsRequestStatus): SelectEsRequestNewStatusAction => ({\r\n\ttype: ActionTypes.select_es_request_new_status,\r\n\tnewStatus,\r\n});\r\n\r\nexport const setAttachmentId = (attachmentId: string): SetAttachmentIdAction => ({\r\n\ttype: ActionTypes.set_attachment_id,\r\n\tattachmentId,\r\n});\r\n\r\nexport const getAttachmentUrl = (attachmentId: string, code?: string): GetAttachmentUrlAction => ({\r\n\ttype: ActionTypes.get_attachment_url,\r\n\tattachmentId,\r\n\tcode,\r\n});\r\n\r\nexport const getAttachmentUrlResult = (hasError: boolean, url?: string): GetAttachmentUrlResultAction => ({\r\n\ttype: ActionTypes.get_attachment_url_result,\r\n\thasError,\r\n\turl,\r\n});\r\n\r\nexport const fetchIsAttachmentSecret = (attachmentId: string): FetchIsAttachmentSecretAction => ({\r\n\ttype: ActionTypes.fetch_is_attachment_secret,\r\n\tattachmentId,\r\n});\r\n\r\nexport const fetchIsAttachmentSecretResult = (hasError: boolean, attachmentFile?: AttachmentFile): FetchIsAttachmentSecretResultAction => ({\r\n\ttype: ActionTypes.fetch_is_attachment_secret_result,\r\n\thasError,\r\n\tattachmentFile,\r\n});\r\n\r\nexport const clearViewAttachmentModal = (): AppAction => ({\r\n\ttype: ActionTypes.clear_view_attachment_modal,\r\n});\r\n\r\nexport const clearAddCommentViewData = (): AppAction => ({\r\n\ttype: ActionTypes.clear_change_request_status_view_data,\r\n});\r\n\r\nexport const clearDetailEsRequest = (): AppAction => ({\r\n\ttype: ActionTypes.clear_detail_es_request,\r\n});\r\n","import { AppAction, AppResultAction } from '../../../config/types';\r\n\r\nexport enum ActionTypes {\r\n\tchange_draft_task_type_name = 'TASK_TYPES__CHANGE_DRAFT_TASK_TYPE_NAME',\r\n\tchange_draft_task_type_default_days = 'TASK_TYPES__CHANGE_DRAFT_TASK_TYPE_DEFAULT_DAYS',\r\n\tchange_draft_task_type_allow_edit_end_date = 'TASK_TYPES__CHANGE_DRAFT_TASK_TYPE_ALLOW_EDIT_END_DATE',\r\n\tclear_task_type_page_data = 'TASK_TYPES__CLEAR_TASK_TYPE_PAGE_DATA',\r\n\r\n\tset_draft_task_type = 'TASK_TYPES__SET_DRAFT_TASK_TYPE',\r\n\tclear_draft_task_type = 'TASK_TYPES__CLEAR_DRAFT_TASK_TYPE',\r\n\r\n\trefetch_task_types = 'TASK_TYPES__REFETCH_TASK_TYPES',\r\n\tfetch_task_types = 'TASK_TYPES__FETCH_TASK_TYPES',\r\n\tfetch_task_types_result = 'TASK_TYPES__FETCH_TASK_TYPES_RESULT',\r\n\r\n\tload_task_type = 'TASK_TYPES__LOAD_TASK_TYPE',\r\n\tload_task_type_result = 'TASK_TYPES__LOAD_TASK_TYPE_RESULT',\r\n\r\n\tadd_task_type = 'TASK_TYPES__ADD_TASK_TYPE',\r\n\tadd_task_type_result = 'TASK_TYPES__ADD_TASK_TYPE_RESULT',\r\n\r\n\tupdate_task_type = 'TASK_TYPES__UPDATE_TASK_TYPE',\r\n\tupdate_task_type_result = 'TASK_TYPES__UPDATE_TASK_TYPE_RESULT',\r\n\r\n\tremove_task_type = 'TASK_TYPES__REMOVE_TASK_TYPE',\r\n\tremove_task_type_result = 'TASK_TYPES__REMOVE_TASK_TYPE_RESULT',\r\n}\r\n\r\nexport interface ChangeDraftTaskTypeNameAction extends AppAction {\r\n\ttype: ActionTypes.change_draft_task_type_name;\r\n\tname: string;\r\n}\r\n\r\nexport interface ChangeDraftTaskTypeDefaultDaysAction extends AppAction {\r\n\ttype: ActionTypes.change_draft_task_type_default_days;\r\n\tdefaultDays: string;\r\n}\r\n\r\nexport interface SetDraftTaskType extends AppAction {\r\n\ttype: ActionTypes.set_draft_task_type,\r\n\ttaskType: TaskType,\r\n}\r\n\r\nexport interface RemoveTaskTypeAction extends AppAction {\r\n\ttype: ActionTypes.remove_task_type;\r\n\ttaskType: TaskType\r\n}\r\n\r\nexport interface RemoveTaskTypeResultAction extends AppResultAction {\r\n\ttype: ActionTypes.remove_task_type_result,\r\n}\r\n\r\nexport interface AddTaskTypeResultAction extends AppResultAction {\r\n\ttype: ActionTypes.add_task_type_result,\r\n}\r\n\r\nexport interface UpdateTaskTypeResultAction extends AppResultAction {\r\n\ttype: ActionTypes.update_task_type_result,\r\n}\r\n\r\nexport interface FetchTaskTypesResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_task_types_result,\r\n\ttaskTypes: TaskType[];\r\n\ttotalCount: number;\r\n}\r\n\r\nexport interface LoadTaskTypeAction extends AppAction {\r\n\ttype: ActionTypes.load_task_type,\r\n\ttaskTypeId: string\r\n}\r\n\r\nexport interface LoadTaskTypeResultAction extends AppResultAction {\r\n\ttype: ActionTypes.load_task_type_result,\r\n\ttaskType?: TaskType\r\n}\r\n\r\nexport interface TaskType {\r\n\tid: string;\r\n\tname: string;\r\n\tdefaultDays: string;\r\n\tallowEditEndDate: boolean\r\n}\r\n\r\nexport type Action =\r\n\tAppAction\r\n\t& ChangeDraftTaskTypeNameAction\r\n\t& ChangeDraftTaskTypeDefaultDaysAction\r\n\t& SetDraftTaskType\r\n\t& RemoveTaskTypeAction\r\n\t& RemoveTaskTypeResultAction\r\n\t& AddTaskTypeResultAction\r\n\t& UpdateTaskTypeResultAction\r\n\t& FetchTaskTypesResultAction\r\n\t& LoadTaskTypeAction\r\n\t& LoadTaskTypeResultAction;\r\n\r\nexport interface State {\r\n\ttaskTypes: TaskType[];\r\n\ttotalCount: number;\r\n\r\n\tdraftTaskType: TaskType;\r\n}\r\n","import { AppAction, AppResultAction, SelectableValue } from '../../../config/types';\r\nimport { User } from '../../Users/logic/types';\r\n\r\nexport enum ActionTypes {\r\n\tchange_user_permission = 'USER_PERMISSIONS__CHANGE_USER_PERMISSION',\r\n\tchange_user_permission_category = 'USER_PERMISSIONS__CHANGE_USER_PERMISSION_CATEGORY',\r\n\r\n\tfetch_current_user_permissions = 'USER_PERMISSIONS__FETCH_CURRENT_USER_PERMISSIONS',\r\n\tfetch_current_user_permissions_result = 'USER_PERMISSIONS__FETCH_CURRENT_USER_PERMISSIONS_RESULT',\r\n\r\n\tfetch_user_permissions = 'USER_PERMISSIONS__FETCH_USER_PERMISSIONS',\r\n\tfetch_user_permissions_result = 'USER_PERMISSIONS__FETCH_USER_PERMISSIONS_RESULT',\r\n\r\n\tload_user = 'USER_PERMISSIONS__LOAD_USER',\r\n\tload_user_result = 'USER_PERMISSIONS__LOAD_USER_RESULT',\r\n\r\n\tfilter_user_permissions = 'USER_PERMISSIONS__FILTER_USER_PERMISSIONS',\r\n\r\n\tfetch_permission_categories = 'USER_PERMISSIONS__FETCH_PERMISSION_CATEGORIES',\r\n\tfetch_permission_categories_result = 'USER_PERMISSIONS__FETCH_PERMISSION_CATEGORIES_RESULT',\r\n\r\n\tupdate_user_permission = 'USER_PERMISSIONS__UPDATE_USER_PERMISSION',\r\n\tupdate_user_permission_result = 'USER_PERMISSIONS__UPDATE_USER_PERMISSION_RESULT',\r\n\r\n\tclear_user_permissions = 'USER_PERMISSIONS__CLEAR_USER_PERMISSIONS',\r\n\r\n\tfetch_permission_templates = 'USER_PERMISSIONS__FETCH_PERMISSION_TEMPLATES',\r\n\tfetch_permission_templates_result = 'USER_PERMISSIONS__FETCH_PERMISSION_TEMPLATES_RESULT',\r\n\r\n\tfetch_user_permission_templates = 'USER_PERMISSIONS__FETCH_USER_PERMISSION_TEMPLATES',\r\n\tfetch_user_permission_templates_result = 'USER_PERMISSIONS__FETCH_USER_PERMISSION_TEMPLATES_RESULT',\r\n\r\n\tchange_user_permission_template = 'USER_PERMISSIONS__CHANGE_USER_PERMISSION_TEMPLATE',\r\n\r\n\tupdate_user_permission_template = 'USER_PERMISSIONS__UPDATE_USER_PERMISSION_TEMPLATE',\r\n}\r\n\r\nexport interface ChangeUserPermissionAction extends AppAction {\r\n\ttype: ActionTypes.change_user_permission;\r\n\tid: string;\r\n}\r\n\r\nexport interface ChangeUserPermissionCategoryAction extends AppAction {\r\n\ttype: ActionTypes.change_user_permission_category;\r\n\tpermissionCategory?: SelectableValue;\r\n}\r\n\r\nexport interface UpdateUserPermissionAction extends AppAction {\r\n\ttype: ActionTypes.update_user_permission;\r\n\tuserId: string;\r\n}\r\n\r\nexport interface FetchPermissionCategoriesResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_permission_categories_result;\r\n\tpermissionCategories?: SelectableValue[];\r\n}\r\n\r\nexport interface FetchUserPermissionsAction extends AppAction {\r\n\ttype: ActionTypes.fetch_user_permissions;\r\n\tpermissionCategoryId?: string;\r\n}\r\n\r\nexport interface FilterUserPermissionsAction extends AppAction {\r\n\ttype: ActionTypes.filter_user_permissions;\r\n\tselectedCategory?: SelectableValue;\r\n}\r\n\r\nexport interface FetchUserPermissionsResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_user_permissions_result;\r\n\tuserPermissions?: Permission[];\r\n\ttotalCount?: number;\r\n}\r\n\r\n\r\nexport interface FetchPermissionTemplateResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_permission_templates_result,\r\n\tpermissionTemplates?: PermissionTemplate[];\r\n\ttotalCount?: number;\r\n}\r\n\r\nexport interface FetchUserPermissionTemplateAction extends AppAction {\r\n\ttype: ActionTypes.fetch_user_permission_templates,\r\n\tuserId: string;\r\n}\r\n\r\nexport interface FetchUserPermissionTemplateResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_user_permission_templates_result,\r\n\tselectedUserPermissionTemplates?: string[];\r\n}\r\n\r\nexport interface FetchCurrentUserPermissionsAction extends AppAction {\r\n\ttype: ActionTypes.fetch_current_user_permissions;\r\n\tuserId: string\r\n}\r\n\r\nexport interface FetchCurrentUserPermissionsResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_current_user_permissions_result;\r\n\tselectedUserPermissions?: string[];\r\n}\r\n\r\nexport interface UpdateUserPermissionTemplateAction extends AppAction {\r\n\ttype: ActionTypes.update_user_permission_template;\r\n\tuserId: string;\r\n}\r\n\r\nexport interface ChangeUserPermissionTemplateAction extends AppAction {\r\n\ttype: ActionTypes.change_user_permission_template;\r\n\tid: string;\r\n}\r\n\r\nexport interface LoadUserAction extends AppAction {\r\n\ttype: ActionTypes.load_user;\r\n\tuserId: string;\r\n}\r\n\r\nexport interface LoadUserResultAction extends AppResultAction {\r\n\ttype: ActionTypes.load_user_result;\r\n\tuser?: User;\r\n}\r\n\r\nexport type Action =\r\n\tAppAction\r\n\t& ChangeUserPermissionAction\r\n\t& UpdateUserPermissionAction\r\n\t& FetchUserPermissionsAction\r\n\t& FetchUserPermissionsResultAction\r\n\t& FetchPermissionCategoriesResultAction\r\n\t& FetchCurrentUserPermissionsResultAction\r\n\t& FetchCurrentUserPermissionsAction\r\n\t& ChangeUserPermissionCategoryAction\r\n\t& FilterUserPermissionsAction\r\n\t& ChangeUserPermissionTemplateAction\r\n\t& FetchPermissionTemplateResultAction\r\n\t& FetchUserPermissionTemplateAction\r\n\t& FetchUserPermissionTemplateResultAction\r\n\t& UpdateUserPermissionTemplateAction\r\n\t& LoadUserAction\r\n\t& LoadUserResultAction;\r\n\r\n\r\nexport interface Permission {\r\n\tid: string,\r\n\tname: string,\r\n\tpermissionCategoryId: string\r\n}\r\n\r\nexport interface PermissionTemplate {\r\n\tid: string,\r\n\tname: string\r\n}\r\n\r\nexport interface State {\r\n\tuser?: User;\r\n\r\n\tpermissionCategories: SelectableValue[];\r\n\tselectedPermissionCategory?: SelectableValue;\r\n\r\n\tuserPermissions: Permission[];\r\n\tfilteredUserPermissions: Permission[];\r\n\r\n\tselectedUserPermissions: string[];\r\n\ttotalCount: number;\r\n\r\n\tpermissionTemplates: PermissionTemplate[];\r\n\tselectedTemplates: string[];\r\n\ttotalPermissionTemplateCount: number;\r\n}\r\n","import { AppAction, AppResultAction } from '../../../config/types';\r\n\r\nexport enum ActionTypes {\r\n\tchange_draft_procedure_name = 'PROCEDURES__CHANGE_DRAFT_PROCEDURE_NAME',\r\n\r\n\tset_draft_procedure = 'PROCEDURES__SET_DRAFT_PROCEDURE',\r\n\tclear_draft_procedure = 'PROCEDURES__CLEAR_DRAFT_PROCEDURE',\r\n\tclear_procedure_data = 'PROCEDURES__CLEAR_PROCEDURE_DATA',\r\n\r\n\trefetch_procedures = 'PROCEDURES__REFETCH_PROCEDURES',\r\n\tfetch_procedures = 'PROCEDURES__FETCH_PROCEDURES',\r\n\tfetch_procedures_result = 'PROCEDURES__FETCH_PROCEDURES_RESULT',\r\n\r\n\tload_procedure = 'PROCEDURES__LOAD_PROCEDURE',\r\n\tload_procedure_result = 'PROCEDURES__LOAD_PROCEDURE_RESULT',\r\n\r\n\tadd_procedure = 'PROCEDURES__ADD_PROCEDURE',\r\n\tadd_procedure_result = 'PROCEDURES__ADD_PROCEDURE_RESULT',\r\n\r\n\tupdate_procedure = 'PROCEDURES__UPDATE_PROCEDURE',\r\n\tupdate_procedure_result = 'PROCEDURES__UPDATE_PROCEDURE_RESULT',\r\n\r\n\tremove_procedure = 'PROCEDURES__REMOVE_PROCEDURE',\r\n\tremove_procedure_result = 'PROCEDURES__REMOVE_PROCEDURE_RESULT',\r\n}\r\n\r\nexport interface ChangeDraftProcedureNameAction extends AppAction {\r\n\ttype: ActionTypes.change_draft_procedure_name;\r\n\tname: string;\r\n}\r\n\r\nexport interface SetDraftProcedure extends AppAction {\r\n\ttype: ActionTypes.set_draft_procedure,\r\n\tprocedure: Procedure,\r\n}\r\n\r\nexport interface RemoveProcedureAction extends AppAction {\r\n\ttype: ActionTypes.remove_procedure;\r\n\tprocedure: Procedure\r\n}\r\n\r\nexport interface RemoveProcedureResultAction extends AppResultAction {\r\n\ttype: ActionTypes.remove_procedure_result,\r\n}\r\n\r\nexport interface AddProcedureResultAction extends AppResultAction {\r\n\ttype: ActionTypes.add_procedure_result,\r\n}\r\n\r\nexport interface UpdateProcedureResultAction extends AppResultAction {\r\n\ttype: ActionTypes.update_procedure_result,\r\n}\r\n\r\nexport interface FetchProcedureResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_procedures_result,\r\n\tprocedures: Procedure[];\r\n\ttotalCount: number;\r\n}\r\n\r\nexport interface LoadProcedureAction extends AppAction {\r\n\ttype: ActionTypes.load_procedure,\r\n\tprocedureId: string\r\n}\r\n\r\nexport interface LoadProcedureResultAction extends AppResultAction {\r\n\ttype: ActionTypes.load_procedure_result,\r\n\tprocedure?: Procedure\r\n}\r\n\r\nexport interface Procedure {\r\n\tid: string;\r\n\tname: string;\r\n}\r\n\r\nexport type Action =\r\n\tAppAction\r\n\t& ChangeDraftProcedureNameAction\r\n\t& SetDraftProcedure\r\n\t& RemoveProcedureAction\r\n\t& RemoveProcedureResultAction\r\n\t& AddProcedureResultAction\r\n\t& UpdateProcedureResultAction\r\n\t& FetchProcedureResultAction\r\n\t& LoadProcedureAction\r\n\t& LoadProcedureResultAction;\r\n\r\nexport interface State {\r\n\tdraftProcedure: Procedure;\r\n\r\n\tprocedures: Procedure[];\r\n\ttotalCount: number;\r\n}\r\n","import { Schema } from 'morphism';\r\nimport { AdUser, User } from './types';\r\nimport { SelectableValue } from '../../../config/types';\r\n\r\nexport const userMap: Schema = {\r\n\tuuid: () => require('uuid/v4')(),\r\n\tid: 'userID',\r\n\tuserName: 'userName',\r\n\tarName: 'arName',\r\n\tenName: 'enName',\r\n\tdisplayName: (obj: any) => obj.arName && obj.arName.concat(obj.jobDesc ? ` - ${obj.jobDesc}` : ''),\r\n\temail: 'email',\r\n\tmobile: 'mobile',\r\n\tjobDescription: 'jobDesc',\r\n\tactive: 'active',\r\n\tsource: 'source',\r\n};\r\n\r\nexport const adUserMap: Schema = {\r\n\tid: 'userID',\r\n\tadUserUserName: 'userName',\r\n\tadUserArName: 'arName',\r\n\tadUserEnName: 'enName',\r\n\tadUserMobile: 'mobile',\r\n\tadUserJobDesc: 'jobDesc',\r\n\tadUserPassword: 'password',\r\n};\r\n\r\nexport const autocompleteUserMap: Schema = {\r\n\tvalue: 'userID',\r\n\tlabel: iteratee => iteratee.arName + '-' + iteratee.jobDesc,\r\n};\r\n\r\nexport const organisationMap: Schema = {\r\n\tvalue: 'orgID',\r\n\tlabel: 'orgPath',\r\n};\r\n","import { AppAction, AppResultAction } from '../../../config/types';\r\n\r\nexport enum ActionTypes {\r\n\trefetch_priorities = 'PRIORITIES__REFETCH_PRIORITIES',\r\n\tfetch_priorities = 'PRIORITIES__FETCH_PRIORITIES',\r\n\tfetch_priorities_result = 'PRIORITIES__FETCH_PRIORITIES_RESULT',\r\n\r\n\tload_priority = 'PRIORITIES__LOAD_PRIORITY',\r\n\tload_priority_result = 'PRIORITIES__LOAD_PRIORITY_RESULT',\r\n\r\n\tchange_draft_priority_name = 'PRIORITIES__CHANGE_DRAFT_PRIORITY_NAME',\r\n\r\n\tset_draft_priority = 'PRIORITIES__SET_DRAFT_PRIORITY',\r\n\tclear_draft_priority = 'PRIORITIES__CLEAR_DRAFT_PRIORITY',\r\n\r\n\tclear_priority_data = 'PRIORITIES__CLEAR_PRIORITY_DATA',\r\n\r\n\tadd_priority = 'PRIORITIES__ADD_PRIORITY',\r\n\tadd_priority_result = 'PRIORITIES__ADD_PRIORITY_RESULT',\r\n\r\n\tupdate_priority = 'PRIORITIES__UPDATE_PRIORITY',\r\n\tupdate_priority_result = 'PRIORITIES__UPDATE_PRIORITY_RESULT',\r\n\r\n\tremove_priority = 'PRIORITIES__REMOVE_PRIORITY',\r\n\tremove_priority_result = 'PRIORITIES__REMOVE_PRIORITY_RESULT',\r\n}\r\n\r\nexport interface FetchPriorityResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_priorities_result,\r\n\tpriorities: Priority[],\r\n\ttotalCount: number\r\n}\r\n\r\nexport interface LoadPriorityAction extends AppAction {\r\n\ttype: ActionTypes.load_priority,\r\n\tpriorityId: string\r\n}\r\n\r\nexport interface LoadPriorityResultAction extends AppResultAction {\r\n\ttype: ActionTypes.load_priority_result,\r\n\tpriority?: Priority\r\n}\r\n\r\nexport interface ChangeDraftPriorityNameAction extends AppAction {\r\n\ttype: ActionTypes.change_draft_priority_name;\r\n\tname: string;\r\n}\r\n\r\nexport interface SetDraftPriority extends AppAction {\r\n\ttype: ActionTypes.set_draft_priority,\r\n\tpriority: Priority,\r\n}\r\n\r\nexport interface RemovePriorityAction extends AppAction {\r\n\ttype: ActionTypes.remove_priority;\r\n\tpriority: Priority\r\n}\r\n\r\nexport interface AddPriorityResultAction extends AppResultAction {\r\n\ttype: ActionTypes.add_priority_result,\r\n}\r\n\r\nexport interface UpdatePriorityResultAction extends AppResultAction {\r\n\ttype: ActionTypes.update_priority_result,\r\n}\r\n\r\nexport interface RemovePriorityResultAction extends AppResultAction {\r\n\ttype: ActionTypes.remove_priority_result,\r\n}\r\n\r\nexport interface Priority {\r\n\tid: string;\r\n\tname: string;\r\n}\r\n\r\nexport type Action =\r\n\tAppAction\r\n\t& ChangeDraftPriorityNameAction\r\n\t& SetDraftPriority\r\n\t& RemovePriorityAction\r\n\t& RemovePriorityResultAction\r\n\t& AddPriorityResultAction\r\n\t& UpdatePriorityResultAction\r\n\t& FetchPriorityResultAction\r\n\t& LoadPriorityAction\r\n\t& LoadPriorityResultAction;\r\n\r\nexport interface State {\r\n\tdraftPriority: Priority;\r\n\r\n\tpriorities: Priority[];\r\n\ttotalCount: number;\r\n}\r\n","import { AppAction, AppResultAction } from '../../../config/types';\r\nimport { EsRequest, EsRequestStatus } from '../../EsRequests/logic/types';\r\nimport { AttachmentFile } from '../../Tasks/logic/type';\r\nimport { User } from '../../Users/logic/types';\r\n\r\nexport enum ActionTypes {\r\n\tchange_active_slide = 'ES_REQUEST_DETAILS__CHANGE_ACTIVE_SLIDE',\r\n\tchange_attachment_active_slide = 'ES_REQUEST_DETAILS__CHANGE_ATTACHMENT_ACTIVE_SLIDE',\r\n\tfetch_es_request = 'ES_REQUEST_DETAILS__FETCH_ES_REQUEST',\r\n\tfetch_es_request_result = 'ES_REQUEST_DETAILS__FETCH_ES_REQUEST_RESULT',\r\n\r\n\tfetch_es_request_comments = 'ES_REQUEST_DETAILS__FETCH_ES_REQUEST_COMMENTS',\r\n\tfetch_es_request_comments_result = 'ES_REQUEST_DETAILS__FETCH_ES_REQUEST_COMMENTS_RESULT',\r\n\r\n\tchange_note = 'ES_REQUEST_DETAILS__CHANGE_NOTE',\r\n\tselect_es_request_new_status = 'ES_REQUEST_DETAILS__SELECT_ES_REQUEST_NEW_STATUS',\r\n\tchange_request_status = 'ES_REQUEST_DETAILS__CHANGE_REQUEST_STATUS',\r\n\r\n\tset_attachment_id = 'ES_REQUEST_DETAILS__SET_ATTACHMENT_ID',\r\n\tget_attachment_url = 'ES_REQUEST_DETAILS__GET_ATTACHMENT_URL',\r\n\tget_attachment_url_result = 'ES_REQUEST_DETAILS__GET_ATTACHMENT_URL_RESULT',\r\n\r\n\tfetch_is_attachment_secret = 'ES_REQUEST_DETAILS__FETCH_IS_ATTACHMENT_SECRETE',\r\n\tfetch_is_attachment_secret_result = 'ES_REQUEST_DETAILS__FETCH_IS_ATTACHMENT_SECRET_RESULT',\r\n\r\n\tclear_view_attachment_modal = 'ES_REQUEST_DETAILS__CLEAR_VIEW_ATTACHMENT',\r\n\tclear_change_request_status_view_data = 'ES_REQUEST_DETAILS__CLEAR_ADD_COMMENT_VIEW_DATA',\r\n\tclear_detail_es_request = 'ES_REQUEST_DETAILS__CLEAR_DETAIL_ES_REQUEST',\r\n}\r\n\r\nexport interface ChangeActiveSlideAction extends AppAction {\r\n\ttype: ActionTypes.change_active_slide;\r\n\tactiveSlide: State['activeSlide'];\r\n}\r\n\r\nexport interface ChangeAttachmentActiveSlide extends AppAction {\r\n\ttype: ActionTypes.change_attachment_active_slide;\r\n\tattachmentActiveSlide: State['attachmentActiveSlide'];\r\n}\r\n\r\nexport interface FetchEsRequestCommentsAction extends AppAction {\r\n\ttype: ActionTypes.fetch_es_request_comments;\r\n\tesRequestId: string;\r\n}\r\n\r\nexport interface FetchEsRequestCommentsResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_es_request_comments_result;\r\n\tcomments?: EsRequestCommentItem[],\r\n\ttotalCount?: number\r\n}\r\n\r\nexport interface FetchEsRequestAction extends AppAction {\r\n\ttype: ActionTypes.fetch_es_request;\r\n\tesRequestId: string;\r\n}\r\n\r\nexport interface FetchEsRequestResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_es_request_result;\r\n\tesRequest?: EsRequest;\r\n\tattachmentFile?: AttachmentFile,\r\n\tsignedFile?: AttachmentFile,\r\n}\r\n\r\nexport interface ChangeNoteAction extends AppAction {\r\n\ttype: ActionTypes.change_note;\r\n\tnote: string;\r\n}\r\n\r\nexport interface ChangeRequestStatusAction extends AppAction {\r\n\ttype: ActionTypes.change_request_status;\r\n\tesRequestId: string;\r\n}\r\n\r\nexport interface SelectEsRequestNewStatusAction extends AppAction {\r\n\ttype: ActionTypes.select_es_request_new_status;\r\n\tnewStatus?: EsRequestStatus;\r\n}\r\n\r\nexport interface SetAttachmentIdAction extends AppAction {\r\n\ttype: ActionTypes.set_attachment_id;\r\n\tattachmentId: string;\r\n}\r\n\r\nexport interface GetAttachmentUrlAction extends AppAction {\r\n\ttype: ActionTypes.get_attachment_url;\r\n\tattachmentId: string;\r\n\tcode?: string,\r\n}\r\n\r\nexport interface GetAttachmentUrlResultAction extends AppResultAction {\r\n\ttype: ActionTypes.get_attachment_url_result;\r\n\turl?: string;\r\n}\r\n\r\nexport interface FetchIsAttachmentSecretAction extends AppAction {\r\n\ttype: ActionTypes.fetch_is_attachment_secret;\r\n\tattachmentId: string;\r\n}\r\n\r\nexport interface FetchIsAttachmentSecretResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_is_attachment_secret_result;\r\n\tattachmentFile?: AttachmentFile;\r\n}\r\n\r\nexport type Action =\r\n\tAppAction\r\n\t& ChangeActiveSlideAction\r\n\t& ChangeAttachmentActiveSlide\r\n & FetchEsRequestAction\r\n & FetchEsRequestResultAction\r\n\t& FetchEsRequestCommentsAction\r\n & FetchEsRequestCommentsResultAction\r\n\t& ChangeNoteAction\r\n & ChangeRequestStatusAction\r\n\t& SelectEsRequestNewStatusAction\r\n\t& SetAttachmentIdAction\r\n\t& GetAttachmentUrlAction\r\n & GetAttachmentUrlResultAction\r\n\t& FetchIsAttachmentSecretAction\r\n & FetchIsAttachmentSecretResultAction;\r\n\r\nexport interface EsRequestCommentItem{\r\n\tid: string;\r\n\tcreatedBy: User;\r\n\tcreatedAt: string;\r\n\tnotes: string;\r\n\tattachmentFile?: AttachmentFile;\r\n}\r\n\r\nexport interface State {\r\n\tesRequest?: EsRequest;\r\n\tcomments: EsRequestCommentItem[];\r\n\ttotalCount: number;\r\n\r\n\tactiveSlide:\r\n\t\t| 'loader'\r\n\t\t| 'info'\r\n\t\t| 'change-status'\r\n\t\t| 'view-attachment';\r\n\r\n\tattachmentActiveSlide:\r\n\t\t| 'loader'\r\n\t\t| 'secret-content'\r\n\t\t| 'attachment-viewer';\r\n\r\n\tattachmentFileUrl?: string;\r\n\tattachmentId?: string;\r\n\tattachmentFile?: AttachmentFile;\r\n\tsignedFile?: AttachmentFile;\r\n\r\n\t// Change Es Request Status\r\n\tnote: string;\r\n\tesRequestStatus?: EsRequestStatus;\r\n}\r\n\r\n","import {\r\n\tActionTypes,\r\n\tAddDelegationResultAction,\r\n\tChangeDraftDelegationEndDateAction,\r\n\tChangeDraftDelegationOrganizationAction,\r\n\tChangeDraftDelegationStartDateAction,\r\n\tDelegation,\r\n\tFetchDelegationsResultAction,\r\n\tFetchOrganizationsResultAction,\r\n\tLoadDelegationAction,\r\n\tLoadDelegationResultAction,\r\n\tRemoveDelegationAction,\r\n\tRemoveDelegationResultAction,\r\n\tSearchUsersResultAction,\r\n\tSelectUserAction,\r\n\tUpdateDelegationResultAction,\r\n} from './types';\r\nimport { AppAction } from '../../../config/types';\r\nimport { Organization } from '../../Organization/logic/types';\r\nimport { User } from '../../Users/logic/types';\r\n\r\nexport const changeDraftDelegationEndDate = (endDate?: Date): ChangeDraftDelegationEndDateAction => ({\r\n\ttype: ActionTypes.change_draft_delegate_end_date,\r\n\tendDate,\r\n});\r\n\r\nexport const changeDraftDelegationStartDate = (startDate?: Date): ChangeDraftDelegationStartDateAction => ({\r\n\ttype: ActionTypes.change_draft_delegate_start_date,\r\n\tstartDate,\r\n});\r\n\r\nexport const changeDraftDelegationOrganization = (organization?: Organization): ChangeDraftDelegationOrganizationAction => ({\r\n\ttype: ActionTypes.change_draft_delegate_organization,\r\n\torganization,\r\n});\r\n\r\nexport const clearDraftDelegation = (): AppAction => ({\r\n\ttype: ActionTypes.clear_draft_delegation,\r\n});\r\n\r\nexport const refetchDelegations = (): AppAction => ({\r\n\ttype: ActionTypes.refetch_delegations,\r\n});\r\n\r\nexport const fetchDelegations = (): AppAction => ({\r\n\ttype: ActionTypes.fetch_delegations,\r\n});\r\n\r\nexport const fetchDelegationsResult = (hasError: boolean, delegations: Delegation[], totalCount: number): FetchDelegationsResultAction => ({\r\n\ttype: ActionTypes.fetch_delegations_result,\r\n\thasError,\r\n\tdelegations,\r\n\ttotalCount,\r\n});\r\n\r\nexport const fetchOrganizations = (): AppAction => ({\r\n\ttype: ActionTypes.fetch_organizations,\r\n});\r\n\r\nexport const fetchOrganizationsResult = (hasError: boolean, organizations: Organization[]): FetchOrganizationsResultAction => ({\r\n\ttype: ActionTypes.fetch_organizations_result,\r\n\thasError,\r\n\torganizations,\r\n});\r\n\r\nexport const loadDelegation = (delegationId: string): LoadDelegationAction => ({\r\n\ttype: ActionTypes.load_delegation,\r\n\tdelegationId,\r\n});\r\n\r\nexport const loadDelegationsResult = (hasError: boolean, delegation: Delegation): LoadDelegationResultAction => ({\r\n\ttype: ActionTypes.load_delegation_result,\r\n\thasError,\r\n\tdelegation,\r\n});\r\n\r\nexport const changeDraftDelegateActive = (): AppAction => ({\r\n\ttype: ActionTypes.change_draft_delegate_active,\r\n});\r\n\r\nexport const changeDraftDelegateOnSecureTasks = (): AppAction => ({\r\n\ttype: ActionTypes.change_draft_delegate_on_secure_tasks,\r\n});\r\n\r\nexport const changeDraftDelegatePartially = (): AppAction => ({\r\n\ttype: ActionTypes.change_draft_delegate_partially,\r\n});\r\n\r\nexport const addDelegation = (): AppAction => ({\r\n\ttype: ActionTypes.add_delegation,\r\n});\r\n\r\nexport const addDelegationResult = (hasError: boolean): AddDelegationResultAction => ({\r\n\ttype: ActionTypes.add_delegation_result,\r\n\thasError,\r\n});\r\n\r\nexport const updateDelegationResult = (hasError: boolean): UpdateDelegationResultAction => ({\r\n\ttype: ActionTypes.update_delegation_result,\r\n\thasError,\r\n});\r\n\r\nexport const updateDelegation = (): AppAction => ({\r\n\ttype: ActionTypes.update_delegation,\r\n});\r\n\r\nexport const removeDelegation = (delegation: Delegation): RemoveDelegationAction => ({\r\n\ttype: ActionTypes.remove_delegation,\r\n\tdelegation,\r\n});\r\nexport const removeDelegationResult = (hasError: boolean): RemoveDelegationResultAction => ({\r\n\ttype: ActionTypes.remove_delegation_result,\r\n\thasError,\r\n});\r\n\r\nexport const searchUsersResult = (hasError: boolean, users: User[]): SearchUsersResultAction => ({\r\n\ttype: ActionTypes.search_users_result,\r\n\thasError,\r\n\tusers,\r\n});\r\n\r\nexport const selectUser = (toUser?: User): SelectUserAction => ({\r\n\ttype: ActionTypes.select_user,\r\n\ttoUser,\r\n});\r\n","import { AppAction, AppResultAction } from '../../config/types';\r\nimport { RouteName } from '../../config/router';\r\n\r\nexport enum ActionTypes {\r\n\tnavigate = 'SERVICE__NAVIGATE',\r\n\treplace = 'SERVICE__REPLACE',\r\n\r\n\tshow_progress = 'SERVICE_PROGRESS__SHOW_PROGRESS',\r\n\thide_progress = 'SERVICE_PROGRESS__HIDE_PROGRESS',\r\n\r\n\tshow_alert = 'SERVICE_ALERT__SHOW_ALERT',\r\n\tclear_alert = 'SERVICE_ALERT__CLEAR_ALERT',\r\n\r\n\tchange_is_modal_visible = 'SERVICE__CHANGE_MODAL_IS_VISIBLE',\r\n\r\n\ttoggle_drawer = 'SERVICE__TOGGLE_DRAWER',\r\n\r\n\t// Attachments\r\n\tfetch_attachment_settings = 'SERVICE__FETCH_ATTACHMENT_SETTINGS',\r\n\tfetch_attachment_settings_result = 'SERVICE__FETCH_ATTACHMENT_SETTINGS_RESULT',\r\n\ttoggle_secure = 'SERVICE__TOGGLE_SECURE',\r\n\tadd_attachment = 'SERVICE__ADD_ATTACHMENT',\r\n\tupdate_attachment_status = 'SERVICE__UPDATE_ATTACHMENT_STATUS',\r\n\tdelete_attachment = 'SERVICE__DELETE_ATTACHMENT',\r\n\tdelete_attachment_result = 'SERVICE__DELETE_ATTACHMENT_RESULT',\r\n\tclear_attachments = 'SERVICE__CLEAR_ATTACHMENTS',\r\n}\r\n\r\nexport interface NavigateAction extends AppAction {\r\n\ttype: ActionTypes.navigate;\r\n\trouteName: RouteName;\r\n}\r\n\r\nexport interface ReplaceAction extends AppAction {\r\n\ttype: ActionTypes.replace;\r\n\trouteName: RouteName;\r\n}\r\n\r\n// Progress\r\nexport interface ShowProgressAction extends AppAction {\r\n\ttype: ActionTypes.show_progress,\r\n\tmessage?: string,\r\n\tshouldDisableForm: boolean,\r\n}\r\n\r\nexport interface ChangeIsModalVisibleAction extends AppAction {\r\n\ttype: ActionTypes.change_is_modal_visible,\r\n\tisModalVisible: boolean,\r\n}\r\n\r\n// Alert\r\nexport type AlertType = 'error' | 'success' | 'warn' | 'info';\r\n\r\nexport interface ShowAlertAction extends AppAction {\r\n\ttype: ActionTypes.show_alert,\r\n\talertType: AlertType,\r\n\tmessage: string,\r\n}\r\n\r\n// Attachment\r\nexport type AttachmentStatus = 'uploading' | 'uploaded' | 'failed';\r\n\r\nexport interface Attachment {\r\n\tuuid: string,\r\n\tserverId?: string,\r\n\tfileName: string,\r\n\tisSecure: boolean,\r\n\tstatus: AttachmentStatus,\r\n}\r\n\r\n\r\nexport interface FetchAttachmentSettingsResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_attachment_settings_result,\r\n\tallowedFileExtensions?: string[],\r\n\tmaxFileSize?: number,\r\n}\r\n\r\nexport interface AddAttachmentAction extends AppAction {\r\n\ttype: ActionTypes.add_attachment,\r\n\tuuid: string,\r\n\tname: string,\r\n\tmultiple: boolean,\r\n}\r\n\r\nexport interface UpdateAttachmentStatusAction extends AppAction {\r\n\ttype: ActionTypes.update_attachment_status,\r\n\tuuid: string,\r\n\tstatus: 'uploading' | 'uploaded' | 'failed',\r\n\tserverId?: string\r\n}\r\n\r\nexport interface DeleteAttachmentAction extends AppAction {\r\n\ttype: ActionTypes.delete_attachment,\r\n\tuuid: string,\r\n}\r\n\r\nexport interface DeleteAttachmentResultAction extends AppResultAction {\r\n\ttype: ActionTypes.delete_attachment_result,\r\n\thasError: boolean,\r\n\tuuid?: string\r\n}\r\n\r\nexport type Action =\r\n\tAppAction\r\n\t& AppResultAction\r\n\t& NavigateAction\r\n\t& ReplaceAction\r\n\t& ShowProgressAction\r\n\t& ShowAlertAction\r\n\t& ChangeIsModalVisibleAction\r\n\r\n\t& FetchAttachmentSettingsResultAction\r\n\t& AddAttachmentAction\r\n\t& UpdateAttachmentStatusAction\r\n\t& DeleteAttachmentAction\r\n\t& DeleteAttachmentResultAction;\r\n\r\nexport interface State {\r\n\tprogress: {\r\n\t\tvisible: boolean;\r\n\t\tmessage: string;\r\n\r\n\t\tisFormDisabled: boolean,\r\n\t},\r\n\talert: {\r\n\t\tvisible: boolean,\r\n\t\ttype: AlertType,\r\n\t\tmessage: string,\r\n\t},\r\n\tisModalVisible: boolean;\r\n\tisDrawerVisible: boolean;\r\n\r\n\t// Attachments\r\n\tallowedFileExtensions?: string[],\r\n\tmaxFileSize?: number,\r\n\tisSecure: boolean,\r\n\tattachments: Attachment[],\r\n}\r\n","import { AppAction, AppResultAction, TreeNode } from '../../../../config/types';\r\nimport { TaskType } from '../../../TaskType/logic/types';\r\nimport { TaskStatus } from '../../../Tasks/logic/type';\r\n\r\nexport enum ActionTypes {\r\n\tselect_task_type = 'TASK_BY_ORGANIZATIONS__SELECT_TASK_TYPE',\r\n\tselect_status = 'TASK_BY_ORGANIZATIONS__SELECT_STATUS',\r\n\tchange_to_date = 'TASK_BY_ORGANIZATIONS__CHANGE_TO_DATE',\r\n\tchange_from_date = 'TASK_BY_ORGANIZATIONS__CHANGE_FROM_DATE',\r\n\tchange_include_children = 'TASK_BY_ORGANIZATIONS__CHANGE_INCLUDE_CHILDREN',\r\n\r\n\tfetch_task_types = 'TASK_BY_ORGANIZATIONS__FETCH_TASK_TYPES',\r\n\tfetch_fetch_task_types_result = 'TASK_BY_ORGANIZATIONS__FETCH_TASK_TYPES_RESULT',\r\n\r\n\tfetch_organization_tree = 'TASK_BY_ORGANIZATIONS__FETCH_ORGANIZATION_TREE',\r\n\tfetch_organization_tree_result = 'TASK_BY_ORGANIZATIONS__FETCH_ORGANIZATION_TREE_RESULT',\r\n\tselect_organization = 'TASK_BY_ORGANIZATIONS__SELECT_ORGANIZATION',\r\n\tmanage_toggle_button = 'TASK_BY_ORGANIZATIONS__MANAGE_TOGGLE_BUTTON',\r\n\r\n\tsearch_tasks_by_organization = 'TASK_BY_ORGANIZATIONS__SEARCH_TASKS_BY_ORGANIZATION',\r\n\tset_visible_report = 'TASK_BY_ORGANIZATIONS__SET_VISIBLE_REPORT',\r\n\treset_data = 'TASK_BY_ORGANIZATIONS__RESET_DATA',\r\n}\r\n\r\nexport interface FetchOrganizationTreeAction extends AppAction {\r\n\ttype: ActionTypes.fetch_organization_tree;\r\n\tparentId?: string;\r\n}\r\n\r\nexport interface FetchOrganizationTreeResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_organization_tree_result;\r\n\tparentId?: string;\r\n\torganizationTree?: TreeNode[];\r\n}\r\n\r\nexport interface SelectTaskTypeAction extends AppAction {\r\n\ttype: ActionTypes.select_task_type;\r\n\ttaskType?: TaskType;\r\n}\r\n\r\nexport interface SelectStatusAction extends AppAction {\r\n\ttype: ActionTypes.select_status;\r\n\tstatus?: TaskStatus;\r\n}\r\n\r\nexport interface FetchTaskTypesResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_fetch_task_types_result;\r\n\ttaskTypes?: TaskType[],\r\n}\r\n\r\nexport interface ChangeToDateAction extends AppAction {\r\n\ttype: ActionTypes.change_to_date;\r\n\ttoDate?: Date;\r\n}\r\n\r\nexport interface ChangeFromDateAction extends AppAction {\r\n\ttype: ActionTypes.change_from_date;\r\n\tfromDate?: Date;\r\n}\r\n\r\nexport interface SelectOrganizationAction extends AppAction {\r\n\ttype: ActionTypes.select_organization;\r\n\torganizationId: string;\r\n}\r\n\r\nexport interface SetVisibleReportAction extends AppAction {\r\n\ttype: ActionTypes.set_visible_report;\r\n\tvisibleReport: boolean;\r\n}\r\n\r\nexport type Action =\r\n\tAppAction\r\n\t& SelectTaskTypeAction\r\n\t& SelectStatusAction\r\n\t& SelectOrganizationAction\r\n\t& ChangeToDateAction\r\n\t& ChangeFromDateAction\r\n & FetchTaskTypesResultAction\r\n\t& FetchOrganizationTreeAction\r\n & FetchOrganizationTreeResultAction\r\n\t& SetVisibleReportAction;\r\n\r\nexport interface State {\r\n\ttaskTypes: TaskType[];\r\n\tselectedTaskType?: TaskType;\r\n\r\n\tselectedStatus?: TaskStatus;\r\n\tincludeChildren: boolean;\r\n\tfromDate?: Date;\r\n\ttoDate?: Date;\r\n\r\n\torganizationTree: TreeNode;\r\n\tselectedNodeId?: string;\r\n\r\n\tvisibleReport: boolean;\r\n}\r\n","import { AppAction, AppResultAction } from '../../../config/types';\r\nimport { Task } from '../../Tasks/logic/type';\r\nimport { CedRequest } from '../../CedRequests/logic/types';\r\n\r\nexport enum ActionTypes {\r\n\tchange_note = 'TASK_CED_REQUEST__CHANGE_NOTE',\r\n\tchange_requested_extra_days = 'TASK_CED_REQUEST__CHANGE_REQUESTED_EXTRA_DAYS',\r\n\r\n\tcan_send_ced_request = 'TASK_CED_REQUEST__CAN_SEND_CED_REQUEST',\r\n\tcan_send_ced_request_result = 'TASK_CED_REQUEST__CAN_SEND_CED_REQUEST_RESULT',\r\n\r\n\tget_active_request = 'TASK_CED_REQUEST__GET_ACTIVE_REQUEST',\r\n\tget_active_request_result = 'TASK_CED_REQUEST__GET_ACTIVE_REQUEST_RESULT',\r\n\r\n\tchange_end_date_request = 'TASK_CED_REQUEST__CHANGE_END_DATE_REQUEST',\r\n\tclear_add_ced_request_popup = 'TASK_CED_REQUEST__CLEAR_ADD_CED_REQUEST_POPUP',\r\n\r\n\t/**/\r\n\r\n\tchange_task = 'TASK_CED_REQUEST__CHANGE_TASK',\r\n\r\n\tload_task = 'TASK_CED_REQUEST__LOAD_TASK',\r\n\tload_task_result = 'TASK_CED_REQUEST__LOAD_TASK_RESULT',\r\n\r\n\tfetch_task_ced_requests_by_task_id = 'TASK_CED_REQUEST__FETCH_TASK_CED_REQUESTS_BY_TASK_ID',\r\n\tfetch_task_ced_requests_by_task_id_result = 'TASK_CED_REQUEST__FETCH_TASK_CED_REQUESTS_BY_TASK_ID_RESULT',\r\n\r\n\tclear_task_ced_requests = 'TASK_CED_REQUESTS__CLEAR_TASK_CED_REQUESTS'\r\n}\r\n\r\nexport interface ChangeRequestedExtraDaysAction extends AppAction {\r\n\ttype: ActionTypes.change_requested_extra_days;\r\n\trequestedExtraDays: string;\r\n}\r\n\r\nexport interface ChangeNoteAction extends AppAction {\r\n\ttype: ActionTypes.change_note;\r\n\tnote: string;\r\n}\r\n\r\nexport interface CanSendRequestAction extends AppAction {\r\n\ttype: ActionTypes.can_send_ced_request;\r\n\ttaskId: string;\r\n}\r\n\r\nexport interface CanSendRequestActionResult extends AppResultAction {\r\n\ttype: ActionTypes.can_send_ced_request_result;\r\n\tcanSendRequest?: boolean;\r\n}\r\n\r\nexport interface GetActiveRequestAction extends AppAction {\r\n\ttype: ActionTypes.get_active_request;\r\n\ttaskId: string;\r\n}\r\n\r\nexport interface GetActiveRequestActionResult extends AppResultAction {\r\n\ttype: ActionTypes.get_active_request_result;\r\n\tisThereActiveRequest?: boolean;\r\n}\r\n\r\n\r\nexport interface ChangeEndDateRequest extends AppAction {\r\n\ttype: ActionTypes.change_end_date_request;\r\n\tautoApproved: boolean;\r\n}\r\n\r\n/************/\r\n\r\nexport interface ChangeTaskAction extends AppAction {\r\n\ttype: ActionTypes.change_task;\r\n\ttask?: Task;\r\n}\r\n\r\nexport interface LoadTaskAction extends AppAction {\r\n\ttype: ActionTypes.load_task;\r\n\ttaskId: string;\r\n}\r\n\r\nexport interface LoadTaskActionResult extends AppResultAction {\r\n\ttype: ActionTypes.load_task_result;\r\n\ttask?: Task;\r\n}\r\n\r\nexport interface FetchTaskCedRequestsByTaskIdAction extends AppAction {\r\n\ttype: ActionTypes.fetch_task_ced_requests_by_task_id;\r\n\ttaskId: string;\r\n}\r\n\r\nexport interface FetchTaskCedRequestsByTaskIdResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_task_ced_requests_by_task_id_result;\r\n\tcedRequests?: CedRequest[];\r\n\ttotalCount?: number;\r\n}\r\n\r\nexport type Action =\r\n\tAppAction\r\n\t& FetchTaskCedRequestsByTaskIdAction\r\n\t& FetchTaskCedRequestsByTaskIdResultAction\r\n\t& ChangeTaskAction\r\n\t& LoadTaskAction\r\n & LoadTaskActionResult\r\n\t& ChangeRequestedExtraDaysAction\r\n & ChangeNoteAction\r\n & CanSendRequestAction\r\n & CanSendRequestActionResult\r\n & ChangeEndDateRequest\r\n\t& GetActiveRequestAction\r\n & GetActiveRequestActionResult;\r\n\r\nexport interface State {\r\n\ttaskId?: string;\r\n\ttask?: Task;\r\n\r\n\ttotalCount: number;\r\n\tcedRequests: CedRequest[];\r\n\r\n\trequestedExtraDays: string;\r\n\tnotes: string;\r\n\tcanSendRequest: boolean;\r\n\tisThereActiveRequest: boolean;\r\n}\r\n","import React from 'react';\r\n\r\nconst PermissionDenied = () => {\r\n\treturn (\r\n\t\t
عذراً ليس لديك الصلاحيات الكافية لعرض هذه الصفحة.
\r\n\t);\r\n};\r\n\r\nexport default PermissionDenied;\r\n","import React, { useEffect, useMemo } from 'react';\r\nimport { AppState, PermissionName } from '../../config/types';\r\nimport { useDispatch, useSelector } from '../../config/store';\r\nimport { fetchUserPermissions } from '../../processes/Auth/logic/actions';\r\nimport PermissionDenied from './PermissionDenied';\r\nimport { navigate } from '../../processes/Services/actions';\r\n\r\ninterface Props {\r\n\tpermissionName?: PermissionName;\r\n\r\n\t// Determines whether to hide the children or to show a progress indicator while checking the permission.\r\n\twhileChecking?: 'hidden' | 'progress';\r\n\t// Determines whether to hide the children or to show an error message if the permission is denied.\r\n\tifDenied?: 'hidden' | 'message';\r\n\r\n\tchildren: any;\r\n}\r\n\r\nconst PermissionContainer = (props: Props) => {\r\n\tconst { permissionName, whileChecking, ifDenied, children } = props;\r\n\r\n\tconst dispatch = useDispatch();\r\n\tconst userPermissions = useSelector(state => state.auth.userPermissions);\r\n\tconst loadingPermissions = useSelector(state => state.auth.loadingPermissions);\r\n\tconst superUser = useSelector(state => state.auth.superUser);\r\n\tconst accessToken = useSelector((state: AppState) => state.storage.accessToken);\r\n\r\n\tconst hasPermission = useMemo(() => {\r\n\t\tif (superUser) return true;\r\n\t\tif (!permissionName) return true;\r\n\t\tif (!userPermissions) return false;\r\n\t\tif (loadingPermissions) return false;\r\n\r\n\t\treturn userPermissions.includes(permissionName);\r\n\t}, [permissionName, userPermissions, loadingPermissions, superUser]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (permissionName && !userPermissions && !loadingPermissions) {\r\n\t\t\tif (accessToken && accessToken !== 'undefined') {\r\n\t\t\t\tdispatch(fetchUserPermissions());\r\n\t\t\t\tif (window.location.pathname === \"/\" || window.location.pathname === \"/myDelegations\") {\r\n\t\t\t\t\tnavigate('Dashboard');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t \t}\r\n\t}, [permissionName, userPermissions, loadingPermissions, accessToken, dispatch]);\r\n\r\n\tif (hasPermission) return children;\r\n\tif (loadingPermissions && whileChecking === 'progress') return

جار التحميل...

;\r\n\tif (!hasPermission && ifDenied === 'message' && !loadingPermissions && userPermissions) return ;\r\n\r\n\treturn React.Fragment;\r\n};\r\n\r\nPermissionContainer.defaultProps = {\r\n\twhileChecking: 'hidden',\r\n\tifDenied: 'hidden',\r\n};\r\n\r\nexport default PermissionContainer;\r\n","import {\r\n\tActionTypes,\r\n\tSearchTasksAction,\r\n\tSearchTasksResultAction,\r\n\tChangeSearchQueryAction,\r\n\r\n\tAdvancedSearchChangeEndDateFromAction,\r\n\tAdvancedSearchChangeEndDateToAction,\r\n\tAdvancedSearchChangePriorityAction,\r\n\tAdvancedSearchChangeStartDateFromAction,\r\n\tAdvancedSearchChangeStartDateToAction,\r\n\tAdvancedSearchChangeStatusAction,\r\n\tAdvancedSearchChangeTaskTypeAction,\r\n\tAdvancedSearchChangeTitleAction,\r\n\tAdvancedSearchFetchLookUpResultAction,\r\n\tAdvancedSearchTasksAction,\r\n\tAdvancedSearchTasksResultAction, AdvancedSearchChangeTaskLevelAction,\r\n} from './types';\r\nimport { Priority } from '../../Priority/logic/types';\r\nimport { TaskType } from '../../TaskType/logic/types';\r\nimport { TaskStatus } from '../../Tasks/logic/type';\r\nimport { AppAction } from '../../../config/types';\r\n\r\nexport const changeSearchQuery = (searchQuery: string): ChangeSearchQueryAction => ({\r\n\ttype: ActionTypes.search_change_search_query,\r\n\tsearchQuery,\r\n});\r\nexport const searchTasks = (pageNumber: number, searchQuery: string): SearchTasksAction => ({\r\n\ttype: ActionTypes.search_tasks,\r\n\tpageNumber,\r\n\tsearchQuery,\r\n});\r\nexport const searchTasksResult = (hasError: boolean, userTasks?: [], totalCount?: number, requestTime?: number): SearchTasksResultAction => ({\r\n\ttype: ActionTypes.search_tasks_result,\r\n\thasError,\r\n\tuserTasks,\r\n\ttotalCount,\r\n\trequestTime,\r\n});\r\n\r\nexport const advancedSearchChangeTitle = (title: string): AdvancedSearchChangeTitleAction => ({\r\n\ttype: ActionTypes.advanced_search_change_title,\r\n\ttitle\r\n});\r\n\r\nexport const advancedSearchChangeTaskLevel = (taskLevel:'all' | 'justMine' | 'mineAndOthers'): AdvancedSearchChangeTaskLevelAction => ({\r\n\ttype: ActionTypes.advanced_search_change_task_level,\r\n\ttaskLevel\r\n});\r\n\r\nexport const advancedSearchChangeStatus = (status?: TaskStatus): AdvancedSearchChangeStatusAction => ({\r\n\ttype: ActionTypes.advanced_search_change_status,\r\n\tstatus,\r\n});\r\n\r\nexport const advancedSearchChangeStartDateTo = (startDateTo?: Date): AdvancedSearchChangeStartDateToAction => ({\r\n\ttype: ActionTypes.advanced_search_change_start_date_to,\r\n\tstartDateTo,\r\n});\r\n\r\nexport const advancedSearchChangeStartDateFrom = (startDateFrom?: Date): AdvancedSearchChangeStartDateFromAction => ({\r\n\ttype: ActionTypes.advanced_search_change_start_date_from,\r\n\tstartDateFrom,\r\n});\r\n\r\nexport const advancedSearchChangeTaskType = (taskType?: TaskType): AdvancedSearchChangeTaskTypeAction => ({\r\n\ttype: ActionTypes.advanced_search_change_task_type,\r\n\ttaskType,\r\n});\r\n\r\nexport const advancedSearchChangePriority = (priority?: Priority): AdvancedSearchChangePriorityAction => ({\r\n\ttype: ActionTypes.advanced_search_change_priority,\r\n\tpriority,\r\n});\r\n\r\nexport const advancedSearchChangeEndDateTo = (endDateTo?: Date): AdvancedSearchChangeEndDateToAction => ({\r\n\ttype: ActionTypes.advanced_search_change_end_date_to,\r\n\tendDateTo,\r\n});\r\n\r\nexport const advancedSearchChangeEndDateFrom = (endDateFrom?: Date): AdvancedSearchChangeEndDateFromAction => ({\r\n\ttype: ActionTypes.advanced_search_change_end_date_from,\r\n\tendDateFrom,\r\n});\r\n\r\nexport const advancedSearchFetchLookUp = (): AppAction => ({\r\n\ttype: ActionTypes.advanced_search_fetch_look_up,\r\n});\r\n\r\nexport const advancedSearchFetchLookUpResult = (hasError: boolean, priorities?: [], taskTypes?: []): AdvancedSearchFetchLookUpResultAction => ({\r\n\ttype: ActionTypes.advanced_search_fetch_look_up_result,\r\n\thasError,\r\n\tpriorities,\r\n\ttaskTypes,\r\n});\r\n\r\nexport const advancedSearchTasks = (pageNumber: number): AdvancedSearchTasksAction => ({\r\n\ttype: ActionTypes.advanced_search_tasks,\r\n\tpageNumber,\r\n});\r\n\r\nexport const advancedSearchTasksResult = (hasError: boolean, userTasks?: [], totalCount?: number, requestTime?: number): AdvancedSearchTasksResultAction => ({\r\n\ttype: ActionTypes.advanced_search_tasks_result,\r\n\thasError,\r\n\tuserTasks,\r\n\ttotalCount,\r\n\trequestTime,\r\n});\r\n\r\nexport const clearSearchData = (): AppAction => ({\r\n\ttype: ActionTypes.clear_search_data,\r\n});\r\n\r\nexport const clearAdvancedSearchData = (): AppAction => ({\r\n\ttype: ActionTypes.advanced_search_clear_data,\r\n});\r\n\r\n","import { AppAction, AppResultAction, SelectableValue } from '../../../config/types';\r\n\r\nexport enum ActionTypes {\r\n\tfetch_system_actions = 'AUDITING__FETCH_SYSTEM_ACTIONS',\r\n\tfetch_system_actions_result = 'AUDITING__FETCH_SYSTEM_ACTIONS_RESULT',\r\n\r\n\tselect_search_criteria_system_action = 'AUDITING__SELECT_SEARCH_CRITERIA_SYSTEM_ACTION',\r\n\tselect_search_criteria_user = 'AUDITING__SELECT_SEARCH_CRITERIA_USER',\r\n\tchange_search_criteria_start_date = 'AUDITING__CHANGE_SEARCH_CRITERIA_START_DATE',\r\n\tchange_search_criteria_end_date = 'AUDITING__CHANGE_SEARCH_CRITERIA_END_DATE',\r\n\r\n\tfetch_records = 'AUDITING__FETCH_RECORDS',\r\n\tfetch_records_result = 'AUDITING__FETCH_RECORDS_RESULT',\r\n\r\n\tremove_all_records = 'AUDITING__REMOVE_ALL_RECORDS',\r\n\tremove_all_records_result = 'AUDITING__REMOVE_ALL_RECORDS_RESULT',\r\n\r\n\tclear_auditing_data = 'AUDITING__CLEAR_AUDITING_DATA',\r\n}\r\n\r\nexport interface FetchSystemActionsResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_system_actions_result,\r\n\tsystemActions?: SystemAction[]\r\n}\r\n\r\nexport interface SelectSearchCriteriaSystemActionAction extends AppAction {\r\n\ttype: ActionTypes.select_search_criteria_system_action,\r\n\tsystemAction?: SystemAction,\r\n}\r\n\r\nexport interface SelectSearchCriteriaUserAction extends AppAction {\r\n\ttype: ActionTypes.select_search_criteria_user,\r\n\tuser?: SelectableValue,\r\n}\r\n\r\nexport interface ChangeSearchCriteriaStartDateAction extends AppAction {\r\n\ttype: ActionTypes.change_search_criteria_start_date;\r\n\tstartDate?: Date;\r\n}\r\n\r\nexport interface ChangeSearchCriteriaEndDateAction extends AppAction {\r\n\ttype: ActionTypes.change_search_criteria_end_date;\r\n\tendDate?: Date;\r\n}\r\n\r\nexport interface FetchRecordsAction extends AppAction {\r\n\ttype: ActionTypes.fetch_records;\r\n\tpageNumber: number;\r\n\tpageSize: number;\r\n}\r\n\r\nexport interface FetchRecordsResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_records_result;\r\n\thasError: boolean;\r\n\trecords?: Record[];\r\n\ttotalCount?: number;\r\n}\r\n\r\nexport interface RemoveAllRecordsResultAction extends AppResultAction {\r\n\ttype: ActionTypes.remove_all_records_result;\r\n\thasError: boolean;\r\n}\r\n\r\nexport type Action =\r\n\tAppAction\r\n\t& FetchSystemActionsResultAction\r\n\t& SelectSearchCriteriaUserAction\r\n\t& SelectSearchCriteriaSystemActionAction\r\n\t& ChangeSearchCriteriaStartDateAction\r\n\t& ChangeSearchCriteriaEndDateAction\r\n\t& FetchRecordsAction\r\n\t& FetchRecordsResultAction;\r\n\r\nexport interface SystemAction {\r\n\tid: string,\r\n\tname: string,\r\n}\r\n\r\nexport interface Record {\r\n\tid: string;\r\n\tname: string;\r\n\tactionName: string;\r\n\tadditionalData: string;\r\n\tdate: Date;\r\n}\r\n\r\nexport interface AuditingSearchCriteria {\r\n\tsystemAction?: SystemAction;\r\n\tuser?: SelectableValue;\r\n\tstartDate?: Date;\r\n\tendDate?: Date;\r\n}\r\n\r\nexport interface State {\r\n\tsystemActions: SystemAction[];\r\n\tsearchCriteria: AuditingSearchCriteria;\r\n\tpageNumber: number;\r\n\ttotalCount: number;\r\n\r\n\trecords: Record[];\r\n}\r\n","import { AppAction, AppResultAction, SelectableValue, TreeNode } from '../../../../config/types';\r\nimport { User } from '../../../Users/logic/types';\r\nimport { CedRequestStatus } from '../../../CedRequests/logic/types';\r\n\r\nexport enum ActionTypes {\r\n\tchange_delay_day = 'LATE_TASKS_FOR_EMPLOYEE__CHANGE_DELAY_DAY',\r\n\tchange_to_date = 'LATE_TASKS_FOR_EMPLOYEE__CHANGE_TO_DATE',\r\n\tchange_from_date = 'LATE_TASKS_FOR_EMPLOYEE__CHANGE_FROM_DATE',\r\n\tselect_user = 'LATE_TASKS_FOR_EMPLOYEE__SELECT_USER',\r\n\r\n\tfetch_organization_tree = 'LATE_TASKS_FOR_EMPLOYEE__FETCH_ORGANIZATION_TREE',\r\n\tfetch_organization_tree_result = 'LATE_TASKS_FOR_EMPLOYEE__FETCH_ORGANIZATION_TREE_RESULT',\r\n\tselect_organization = 'LATE_TASKS_FOR_EMPLOYEE__SELECT_ORGANIZATION',\r\n\tmanage_toggle_button = 'LATE_TASKS_FOR_EMPLOYEE__MANAGE_TOGGLE_BUTTON',\r\n\r\n\tsearch_late_tasks_for_employee = 'LATE_TASKS_FOR_EMPLOYEE__SEARCH_LATE_TASKS_FOR_EMPLOYEE',\r\n\tset_visible_report = 'LATE_TASKS_FOR_EMPLOYEE__SET_VISIBLE_REPORT',\r\n\treset_data = 'LATE_TASKS_FOR_EMPLOYEE__RESET_DATA',\r\n\tfetch_users_with_org_id = 'LATE_TASKS_FOR_EMPLOYEE__FETCH_USERS_WITH_ORG_ID',\r\n\tfetch_users_with_org_id_result = 'LATE_TASKS_FOR_EMPLOYEE__FETCH_USERS_WITH_ORG_ID_RESULT',\r\n}\r\n\r\nexport interface FetchOrganizationTreeAction extends AppAction {\r\n\ttype: ActionTypes.fetch_organization_tree;\r\n\tparentId?: string;\r\n}\r\n\r\nexport interface FetchOrganizationTreeResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_organization_tree_result;\r\n\tparentId?: string;\r\n\torganizationTree?: TreeNode[];\r\n}\r\n\r\nexport interface ChangeDelayDayAction extends AppAction {\r\n\ttype: ActionTypes.change_delay_day;\r\n\tdelayDay: string;\r\n}\r\n\r\nexport interface ChangeToDateAction extends AppAction {\r\n\ttype: ActionTypes.change_to_date;\r\n\ttoDate?: Date;\r\n}\r\n\r\nexport interface ChangeFromDateAction extends AppAction {\r\n\ttype: ActionTypes.change_from_date;\r\n\tfromDate?: Date;\r\n}\r\n\r\nexport interface SelectOrganizationAction extends AppAction {\r\n\ttype: ActionTypes.select_organization;\r\n\torganizationId: string;\r\n}\r\n\r\nexport interface SetVisibleReportAction extends AppAction {\r\n\ttype: ActionTypes.set_visible_report;\r\n\tvisibleReport: boolean;\r\n}\r\n\r\nexport interface SelectUserAction extends AppAction {\r\n\ttype: ActionTypes.select_user;\r\n\tselectedUser?: SelectableValue;\r\n}\r\n\r\nexport interface FetchUsersWithOrgIdAction extends AppAction {\r\n\ttype: ActionTypes.fetch_users_with_org_id;\r\n\torgId: string;\r\n}\r\n\r\nexport interface FetchUsersWithOrgIdResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_users_with_org_id_result;\r\n\tusers: [];\r\n}\r\n\r\nexport type Action =\r\n\tAppAction\r\n\t& SelectOrganizationAction\r\n\t& ChangeToDateAction\r\n\t& ChangeFromDateAction\r\n\t& SelectUserAction\r\n\t& FetchOrganizationTreeAction\r\n\t& FetchOrganizationTreeResultAction\r\n\t& SetVisibleReportAction\r\n\t& ChangeDelayDayAction\r\n\t& FetchUsersWithOrgIdAction\r\n\t& FetchUsersWithOrgIdResultAction;\r\n\r\nexport interface State {\r\n\tfromDate?: Date;\r\n\ttoDate?: Date;\r\n delayDay: string;\r\n\tuser?: SelectableValue;\r\n\r\n\torganizationTree: TreeNode;\r\n\tselectedNodeId?: string;\r\n\r\n\tvisibleReport: boolean;\r\n\r\n\tusers: SelectableValue[];\r\n}\r\n","import { morphism, Schema } from 'morphism';\r\n\r\nimport { AttachmentFile, HistoryItem, Task, TaskCount, TaskHeader, UserTask } from './type';\r\nimport { userMap } from '../../Users/logic/mapper';\r\nimport { taskTypeMap } from '../../TaskType/logic/mapper';\r\nimport { priorityMap } from '../../Priority/logic/mapper';\r\nimport { procedureMap } from '../../Procedure/logic/mapper';\r\n\r\nexport const attachmentFileMap: Schema = {\r\n\tattachmentId: 'attachmentID',\r\n\tfileName: 'fileName',\r\n\tisSecure: 'isSecure',\r\n};\r\n\r\nexport const historyItemMap: Schema = {\r\n\tid: (obj: any) => String(obj.id),\r\n\ttype: 'historyType',\r\n\tcomment: 'comment',\r\n\tcreatedBy: (obj: any) => morphism(userMap, obj.createdBy),\r\n\tcreatedAt: 'createdDateTime',\r\n\r\n\ttaskStatus: (obj: any) => obj.taskStatus && obj.taskStatus.statusID,\r\n\ttaskAction: (obj: any) => obj.taskAction && obj.taskAction.actionID,\r\n\ttaskActionDisplay: (obj: any) => obj.taskAction && obj.taskAction.actionName,\r\n\tisUserTaskConfirmed: 'userTaskConfirmed',\r\n\tuserTaskStatus: (obj: any) => obj.userTaskStatus && obj.userTaskStatus.statusID,\r\n\tuserTaskAssignedTo: (obj: any) => morphism(userMap, obj.userTaskAssignedTo),\r\n\tuserTaskAssignedForm: (obj: any) => morphism(userMap, obj.userTaskAssignedFrom),\r\n\r\n\tattachments: (obj: any) => morphism(attachmentFileMap, obj.attachments as any[]),\r\n\r\n\tisBestAnswer: 'bestAnswer',\r\n\ttaskCreatedBy: (obj: any) => morphism(userMap, obj.taskCreatedBy),\r\n\r\n\tonHisBehalfUser: (obj: any) => morphism(userMap, obj.onHisBehalfUser),\r\n};\r\n\r\nexport const taskMap: Schema = {\r\n\tid: (obj: any) => String(obj.taskID),\r\n\tno: 'taskNO',\r\n\ttitle: 'taskTitle',\r\n\tdescription: 'taskDesc',\r\n\tnotes: 'notes',\r\n\r\n\tstatus: 'currentStatus.statusID',\r\n\tstatusDisplay: 'currentStatus.statusName',\r\n\r\n\tparent: (obj: any) => morphism(taskMap, obj.taskParent),\r\n\r\n\ttaskType: (obj: any) => morphism(taskTypeMap, obj.taskType),\r\n\tpriority: (obj: any) => morphism(priorityMap, obj.priority),\r\n\tprocedure: (obj: any) => morphism(procedureMap, obj.procedure),\r\n\r\n\tstartDate: 'startDate',\r\n\tendDate: 'expectedEndDate',\r\n\r\n\tcreatedAt: 'createdDateTime',\r\n\tcreatedBy: (obj: any) => morphism(userMap, obj.createdBy),\r\n\tlastUpdatedAt: 'lastUpdateDateTime',\r\n\tlastUpdatedBy: (obj: any) => morphism(userMap, obj.updatedBy),\r\n\r\n\tisConfirmed: 'confirmed',\r\n\tisSecret: 'secure',\r\n\r\n\tattachments: (obj: any) => morphism(attachmentFileMap, obj.attachments as any[]),\r\n};\r\n\r\nexport const taskHeaderMap: Schema = {\r\n\tuserTaskId: (obj: any) => String(obj.userTaskID),\r\n\tisUserTaskConfirmed: 'isUserTaskConfirmed',\r\n\tisUserTaskCC: 'isUserTaskCC',\r\n\tuserTaskStatus: 'userTaskStatus.statusID',\r\n\r\n\tassignedToId: 'assignedToId',\r\n\tassignedToArName: 'assignedToArName',\r\n\tassignedFromId: 'assignedFromId',\r\n\tassignedFromArName: 'assignedFromArName',\r\n\r\n\tlastReadAt: 'lastReadAt',\r\n\tlastReadAtDisplay: 'lastReadAtDisplay',\r\n\r\n\ttaskId: 'taskId',\r\n\ttaskNo: 'taskNo',\r\n\ttaskTitle: 'taskTitle',\r\n\ttaskStatus: 'taskStatus.statusID',\r\n\ttaskStartDate: 'taskStartDate',\r\n\tisTaskSecret: 'taskSecret',\r\n\tcanRetrieve: 'canRetrieve',\r\n};\r\n\r\nexport const userTaskMap: Schema = {\r\n\tid: (obj: any) => String(obj.userTaskID),\r\n\tno: 'taskNO',\r\n\r\n\ttask: (obj: any) => morphism(taskMap, obj.task),\r\n\tparent: (obj: any) => morphism(userTaskMap, obj.parentUserTask),\r\n\r\n\tstatus: 'status.statusID',\r\n\tstatusDisplay: 'status.statusName',\r\n\r\n\tassignedTo: (obj: any) => morphism(userMap, obj.assignedTo),\r\n\tassignedFrom: (obj: any) => morphism(userMap, obj.assignedFrom),\r\n\r\n\tisCC: 'isCC',\r\n\tisCompleted: 'completed',\r\n\tisConfirmed: 'confirmed',\r\n\tisRead: 'read',\r\n\r\n\tcreatedAt: 'createdDateTime',\r\n\tlastUpdatedAt: 'lastUpdateDateTime',\r\n\tlastReadAt: 'lastReadDateTime',\r\n\tlastReadAtDisplay: 'lastReadDateTimeString',\r\n};\r\n\r\nexport const taskCountMap: Schema = {\r\n\tinbox: 'inboxCount',\r\n\tpending: 'pendingCount',\r\n\tlate: 'lateCount',\r\n\tretrieved: 'retrievedCount',\r\n\trejected: 'rejectedCount',\r\n\tdone: 'doneCount',\r\n\tassigned: 'sentCount',\r\n\tcc: 'ccCount',\r\n\tfinish: 'finishCount',\r\n\tchangeDateNew: 'changeDateNewCount',\r\n\tdefaultInbox: (obj: any) => (obj.inboxCount + obj.pendingCount + obj.lateCount + obj.retrievedCount + obj.rejectedCount + obj.doneCount),\r\n};\r\n","import {\r\n\tActionTypes,\r\n\tChangeEmailAction,\r\n\tChangeEmailCheckboxAction,\r\n\tChangeNoteAction,\r\n\tChangePasswordAction,\r\n\tChangePhoneCheckboxAction,\r\n\tChangePhoneNumberAction,\r\n\tChangeSystemCheckboxAction,\r\n\tFetchProfileResultAction,\r\n\tFetchUserPermissionsResultAction,\r\n\tFetchUserProfileResultAction,\r\n\tLoginAction,\r\n\tNotifications,\r\n\tProfile,\r\n\tSaveProfileResultAction,\r\n\tSetSIDValueAction,\r\n} from './types';\r\nimport { AppAction, AppResultAction, PermissionName } from '../../../config/types';\r\n\r\nexport const changeEmail = (email: string): ChangeEmailAction => ({\r\n\ttype: ActionTypes.change_email,\r\n\temail,\r\n});\r\nexport const changePassword = (password: string): ChangePasswordAction => ({\r\n\ttype: ActionTypes.change_password,\r\n\tpassword,\r\n});\r\n\r\nexport const clearProfileData = (): AppAction => ({\r\n\ttype: ActionTypes.clear_profile_data,\r\n});\r\n\r\nexport const login = (redirectTo?: string): LoginAction => ({\r\n\ttype: ActionTypes.login,\r\n\tredirectTo,\r\n});\r\n\r\nexport const logout = (): AppAction => ({\r\n\ttype: ActionTypes.logout,\r\n});\r\n\r\nexport const loginResult = (hasError: boolean): AppResultAction => ({\r\n\ttype: ActionTypes.login_result,\r\n\thasError,\r\n});\r\n\r\nexport const fetchUserPermissions = () => ({\r\n\ttype: ActionTypes.fetch_user_permissions,\r\n});\r\nexport const fetchUserPermissionsResult = (hasError: boolean, userPermissions?: PermissionName[]): FetchUserPermissionsResultAction => ({\r\n\ttype: ActionTypes.fetch_user_permissions_result,\r\n\thasError,\r\n\tuserPermissions,\r\n});\r\nexport const clearUserPermissions = (): AppAction => ({\r\n\ttype: ActionTypes.clear_user_permissions,\r\n});\r\nexport const toggleSuperUser = (): AppAction => ({\r\n\ttype: ActionTypes.toggle_super_user,\r\n});\r\n\r\nexport const changePhoneNumber = (phoneNumber: string): ChangePhoneNumberAction => ({\r\n\ttype: ActionTypes.change_phoneNumber,\r\n\tphoneNumber,\r\n});\r\nexport const changeNote = (note: string): ChangeNoteAction => ({\r\n\ttype: ActionTypes.change_note,\r\n\tnote,\r\n});\r\nexport const changeEmailCheckbox = (emailCheckboxId: string): ChangeEmailCheckboxAction => ({\r\n\ttype: ActionTypes.change_email_checkbox,\r\n\temailCheckboxId,\r\n});\r\nexport const changePhoneCheckbox = (phoneCheckboxId: string): ChangePhoneCheckboxAction => ({\r\n\ttype: ActionTypes.change_phone_checkbox,\r\n\tphoneCheckboxId,\r\n});\r\nexport const changeSystemCheckbox = (pushCheckboxId: string): ChangeSystemCheckboxAction => ({\r\n\ttype: ActionTypes.change_system_checkbox,\r\n\tpushCheckboxId,\r\n});\r\nexport const fetchProfile = () => ({\r\n\ttype: ActionTypes.fetch_profile,\r\n});\r\nexport const fetchProfileResult = (hasError: boolean, profile: Profile, notifications: Notifications[]): FetchProfileResultAction => ({\r\n\ttype: ActionTypes.fetch_profile_result,\r\n\thasError,\r\n\tprofile,\r\n\tnotifications,\r\n});\r\n\r\nexport const fetchUserProfile = () => ({\r\n\ttype: ActionTypes.fetch_user_profile,\r\n});\r\n\r\nexport const fetchUserProfileResult = (hasError: boolean, profile?: Profile, delegator?: Profile, loginAsFullName?: string, partially?: boolean): FetchUserProfileResultAction => ({\r\n\ttype: ActionTypes.fetch_user_profile_result,\r\n\thasError,\r\n\tprofile,\r\n\tdelegator,\r\n\tloginAsFullName,\r\n\tpartially,\r\n});\r\n\r\nexport const saveProfile = () => ({\r\n\ttype: ActionTypes.save_profile,\r\n});\r\nexport const saveProfileResult = (hasError: boolean): SaveProfileResultAction => ({\r\n\ttype: ActionTypes.save_profile_result,\r\n\thasError,\r\n});\r\n\r\nexport const setSID = (sid: string): SetSIDValueAction => ({\r\n\ttype: ActionTypes.set_sid_value,\r\n\tsid,\r\n});\r\n","import { AppAction, SelectableValue } from '../../../config/types';\r\nimport {\r\n\tActionTypes,\r\n\tChangeUserPermissionAction,\r\n\tChangeUserPermissionCategoryAction,\r\n\tChangeUserPermissionTemplateAction,\r\n\tFetchCurrentUserPermissionsAction,\r\n\tFetchCurrentUserPermissionsResultAction,\r\n\tFetchPermissionCategoriesResultAction,\r\n\tFetchPermissionTemplateResultAction,\r\n\tFetchUserPermissionsAction,\r\n\tFetchUserPermissionsResultAction,\r\n\tFetchUserPermissionTemplateAction,\r\n\tFetchUserPermissionTemplateResultAction,\r\n\tFilterUserPermissionsAction,\r\n\tLoadUserAction,\r\n\tLoadUserResultAction,\r\n\tUpdateUserPermissionAction,\r\n\tUpdateUserPermissionTemplateAction,\r\n} from './types';\r\nimport { User } from '../../Users/logic/types';\r\n\r\nexport const changeUserPermission = (id: string): ChangeUserPermissionAction => ({\r\n\ttype: ActionTypes.change_user_permission,\r\n\tid,\r\n});\r\n\r\nexport const changeUserPermissionCategory = (permissionCategory?: SelectableValue): ChangeUserPermissionCategoryAction => ({\r\n\ttype: ActionTypes.change_user_permission_category,\r\n\tpermissionCategory,\r\n});\r\n\r\nexport const fetchPermissionCategories = (): AppAction => ({\r\n\ttype: ActionTypes.fetch_permission_categories,\r\n});\r\n\r\nexport const fetchPermissionCategoriesResult = (hasError: boolean, permissionCategories?: []): FetchPermissionCategoriesResultAction => ({\r\n\ttype: ActionTypes.fetch_permission_categories_result,\r\n\thasError,\r\n\tpermissionCategories,\r\n});\r\n\r\nexport const fetchUserPermissions = (permissionCategoryId?: string): FetchUserPermissionsAction => ({\r\n\ttype: ActionTypes.fetch_user_permissions,\r\n\tpermissionCategoryId,\r\n});\r\n\r\nexport const filterUserPermissions = (selectedCategory?: SelectableValue): FilterUserPermissionsAction => ({\r\n\ttype: ActionTypes.filter_user_permissions,\r\n\tselectedCategory,\r\n});\r\n\r\nexport const fetchCurrentUserPermissions = (userId: string): FetchCurrentUserPermissionsAction => ({\r\n\ttype: ActionTypes.fetch_current_user_permissions,\r\n\tuserId,\r\n});\r\n\r\nexport const fetchCurrentUserPermissionsResult = (hasError: boolean, selectedUserPermissions?: string[]): FetchCurrentUserPermissionsResultAction => ({\r\n\ttype: ActionTypes.fetch_current_user_permissions_result,\r\n\thasError,\r\n\tselectedUserPermissions,\r\n});\r\n\r\nexport const fetchUserPermissionsResult = (hasError: boolean, userPermissions?: [], totalCount?: number): FetchUserPermissionsResultAction => ({\r\n\ttype: ActionTypes.fetch_user_permissions_result,\r\n\thasError,\r\n\tuserPermissions,\r\n\ttotalCount,\r\n});\r\n\r\nexport const updateUserPermission = (userId: string): UpdateUserPermissionAction => ({\r\n\ttype: ActionTypes.update_user_permission,\r\n\tuserId,\r\n});\r\n\r\nexport const loadUser = (userId: string): LoadUserAction => ({\r\n\ttype: ActionTypes.load_user,\r\n\tuserId,\r\n});\r\n\r\nexport const loadUserResult = (hasError: boolean, user?: User): LoadUserResultAction => ({\r\n\ttype: ActionTypes.load_user_result,\r\n\thasError,\r\n\tuser,\r\n});\r\n\r\n// Permission Templates\r\nexport const fetchPermissionTemplates = (): AppAction => ({\r\n\ttype: ActionTypes.fetch_permission_templates,\r\n});\r\n\r\nexport const fetchPermissionTemplatesResult = (hasError: boolean, permissionTemplates?: [], totalCount?: number): FetchPermissionTemplateResultAction => ({\r\n\ttype: ActionTypes.fetch_permission_templates_result,\r\n\thasError,\r\n\tpermissionTemplates,\r\n\ttotalCount,\r\n});\r\n\r\nexport const changeUserPermissionTemplate = (id: string): ChangeUserPermissionTemplateAction => ({\r\n\ttype: ActionTypes.change_user_permission_template,\r\n\tid,\r\n});\r\n\r\nexport const fetchUserPermissionTemplate = (userId: string): FetchUserPermissionTemplateAction => ({\r\n\ttype: ActionTypes.fetch_user_permission_templates,\r\n\tuserId,\r\n});\r\n\r\nexport const fetchUserPermissionTemplateResult = (hasError: boolean, selectedUserPermissionTemplates?: string[]): FetchUserPermissionTemplateResultAction => ({\r\n\ttype: ActionTypes.fetch_user_permission_templates_result,\r\n\thasError,\r\n\tselectedUserPermissionTemplates,\r\n});\r\n\r\nexport const updateUserPermissionTemplate = (userId: string): UpdateUserPermissionTemplateAction => ({\r\n\ttype: ActionTypes.update_user_permission_template,\r\n\tuserId,\r\n});\r\n\r\n","import { AppAction, AppResultAction, SelectableValue } from '../../../config/types';\r\nimport {\r\n\tActionTypes,\r\n\tChangeDescriptionAction,\r\n\tChangeEndDateAction,\r\n\tChangeNoteAction,\r\n\tChangeParentTaskNoAction,\r\n\tChangeStartDateAction,\r\n\tChangeTitleAction,\r\n\tFetchLookupResultAction,\r\n\tGetTaskByTaskNoResultAction,\r\n\tSelectCopyToUsersAction,\r\n\tSelectPriorityAction,\r\n\tSelectProcedureAction,\r\n\tSelectTaskTypeAction,\r\n\tSelectToUsersAction,\r\n\tTask,\r\n} from './types';\r\nimport { TaskType } from '../../TaskType/logic/types';\r\nimport { Procedure } from '../../Procedure/logic/types';\r\nimport { Priority } from '../../Priority/logic/types';\r\n\r\nexport const fetchLookup = (): AppAction => ({\r\n\ttype: ActionTypes.fetch_lookup,\r\n});\r\nexport const fetchLookupResult = (hasError: boolean, taskTypes?: TaskType[], procedures?: Procedure[], priorities?: Priority[]): FetchLookupResultAction => ({\r\n\ttype: ActionTypes.fetch_lookup_result,\r\n\thasError,\r\n\ttaskTypes,\r\n\tprocedures,\r\n\tpriorities,\r\n});\r\n\r\nexport const changeTitle = (taskTitle: string): ChangeTitleAction => ({\r\n\ttype: ActionTypes.change_title,\r\n\ttaskTitle,\r\n});\r\nexport const toggleSecret = (): AppAction => ({\r\n\ttype: ActionTypes.toggle_secret,\r\n});\r\nexport const changeDescription = (taskDescription: string): ChangeDescriptionAction => ({\r\n\ttype: ActionTypes.change_description,\r\n\ttaskDescription,\r\n});\r\nexport const changeStartDate = (startDate: Date): ChangeStartDateAction => ({\r\n\ttype: ActionTypes.change_start_date,\r\n\tstartDate,\r\n});\r\nexport const changeEndDate = (endDate?: Date): ChangeEndDateAction => ({\r\n\ttype: ActionTypes.change_end_date,\r\n\tendDate,\r\n});\r\nexport const changeNote = (note: string): ChangeNoteAction => ({\r\n\ttype: ActionTypes.change_note,\r\n\tnote,\r\n});\r\n\r\nexport const toggleHasParentTask = (): AppAction => ({\r\n\ttype: ActionTypes.toggle_has_parent_task,\r\n});\r\nexport const changeParentTaskNo = (parentTaskNo: string): ChangeParentTaskNoAction => ({\r\n\ttype: ActionTypes.change_parent_task_no,\r\n\tparentTaskNo,\r\n});\r\n\r\nexport const selectTaskType = (taskType?: TaskType): SelectTaskTypeAction => ({\r\n\ttype: ActionTypes.select_task_type,\r\n\ttaskType,\r\n});\r\nexport const selectProcedure = (procedure?: Procedure): SelectProcedureAction => ({\r\n\ttype: ActionTypes.select_procedure,\r\n\tprocedure,\r\n});\r\nexport const selectPriority = (priority?: Priority): SelectPriorityAction => ({\r\n\ttype: ActionTypes.select_priority,\r\n\tpriority,\r\n});\r\n\r\nexport const selectToUsers = (toUsers: SelectableValue[]): SelectToUsersAction => ({\r\n\ttype: ActionTypes.select_to_users,\r\n\ttoUsers,\r\n});\r\nexport const selectCopyToUsers = (copyToUsers: SelectableValue[]): SelectCopyToUsersAction => ({\r\n\ttype: ActionTypes.select_copy_to_users,\r\n\tcopyToUsers,\r\n});\r\n\r\nexport const getTaskByTaskNo = (): AppAction => ({\r\n\ttype: ActionTypes.get_task_by_task_no,\r\n});\r\nexport const getParentTaskByTaskNoResult = (hasError: boolean, parentTask?: Task): GetTaskByTaskNoResultAction => ({\r\n\ttype: ActionTypes.get_task_by_task_no_result,\r\n\thasError,\r\n\tparentTask,\r\n});\r\n\r\nexport const addTask = (): AppAction => ({\r\n\ttype: ActionTypes.add_task,\r\n});\r\nexport const addTaskResult = (hasError: boolean): AppResultAction => ({\r\n\ttype: ActionTypes.add_task_result,\r\n\thasError,\r\n});\r\n\r\nexport const clearAddTaskData = (): AppAction => ({\r\n\ttype: ActionTypes.clear_add_task_data,\r\n});\r\nexport const clearParentTask = (): AppAction => ({\r\n\ttype: ActionTypes.clear_parent_task,\r\n});\r\n\r\n\r\n\r\n","import { ActionTypes, ChangeAccessTokenAction, ChangeCalendarAction, ChangeDelegationIdAction, ChangeIsLoggedInAction, ChangeLoginAsUserIdAction } from './types';\r\nimport { AppAction } from '../../../config/types';\r\n\r\nexport const changeCalendar = (calendar?: 'gregorian' | 'hijri'): ChangeCalendarAction => ({\r\n\ttype: ActionTypes.change_calendar,\r\n\tcalendar,\r\n});\r\n\r\nexport const changeIsLoggedIn = (isLoggedIn: boolean): ChangeIsLoggedInAction => ({\r\n\ttype: ActionTypes.change_is_logged_in,\r\n\tisLoggedIn,\r\n});\r\nexport const changeAccessToken = (accessToken: string, refreshToken?: string): ChangeAccessTokenAction => ({\r\n\ttype: ActionTypes.change_access_token,\r\n\taccessToken,\r\n\trefreshToken,\r\n});\r\n\r\nexport const clearAllStorage = (): AppAction => ({\r\n\ttype: ActionTypes.clear_all_storage,\r\n});\r\n\r\nexport const changeDelegationId = (delegationId: string): ChangeDelegationIdAction => ({\r\n\ttype: ActionTypes.change_delegation_id,\r\n\tdelegationId\r\n});\r\nexport const changeLoginAsUserId = (loginAsUserId: string): ChangeLoginAsUserIdAction => ({\r\n\ttype: ActionTypes.change_login_as_user_id,\r\n\tloginAsUserId\r\n});","import { AppAction } from '../../../config/types';\r\nimport {\r\n\tActionTypes,\r\n\tAddPermissionTemplateResultAction,\r\n\tChangeDraftPermissionTemplateNameAction,\r\n\tChangeDraftPermissionTemplatePermissionAction,\r\n\tFetchPermissionTemplateResultAction,\r\n\tGetAllPermissionResultAction,\r\n\tLoadPermissionTemplateAction,\r\n\tLoadPermissionTemplateResultAction,\r\n\tPermission,\r\n\tPermissionTemplate,\r\n\tRemovePermissionTemplateAction,\r\n\tRemovePermissionTemplateResultAction,\r\n\tUpdatePermissionTemplateResultAction,\r\n} from './types';\r\n\r\nexport const changeDraftPermissionTemplateName = (name: string): ChangeDraftPermissionTemplateNameAction => ({\r\n\ttype: ActionTypes.change_draft_permission_templates_name,\r\n\tname,\r\n});\r\n\r\nexport const changeDraftPermissionTemplatePermission = (id: string): ChangeDraftPermissionTemplatePermissionAction => ({\r\n\ttype: ActionTypes.change_draft_permission_templates_permission,\r\n\tid,\r\n});\r\n\r\nexport const changeDraftPermissionTemplateDefaultTemplate = (): AppAction => ({\r\n\ttype: ActionTypes.change_draft_permission_templates_default_template,\r\n});\r\n\r\nexport const clearDraftPermissionTemplate = (): AppAction => ({\r\n\ttype: ActionTypes.clear_draft_permission_template,\r\n});\r\n\r\nexport const refetchPermissionTemplates = (): AppAction => ({\r\n\ttype: ActionTypes.refetch_permission_templates,\r\n});\r\n\r\nexport const fetchPermissionTemplates = (): AppAction => ({\r\n\ttype: ActionTypes.fetch_permission_templates,\r\n});\r\n\r\nexport const fetchPermissionTemplatesResult = (hasError: boolean, permissionTemplates: [], totalCount: number): FetchPermissionTemplateResultAction => ({\r\n\ttype: ActionTypes.fetch_permission_templates_result,\r\n\thasError,\r\n\tpermissionTemplates,\r\n\ttotalCount,\r\n});\r\n\r\nexport const loadPermissionTemplate = (permissionTemplateId: string): LoadPermissionTemplateAction => ({\r\n\ttype: ActionTypes.load_permission_template,\r\n\tpermissionTemplateId,\r\n});\r\n\r\nexport const loadPermissionTemplateResult = (hasError: boolean, permissionTemplate?: PermissionTemplate): LoadPermissionTemplateResultAction => ({\r\n\ttype: ActionTypes.load_permission_template_result,\r\n\thasError,\r\n\tpermissionTemplate,\r\n});\r\n\r\nexport const getAllPermissions = (): AppAction => ({\r\n\ttype: ActionTypes.get_all_permissions,\r\n});\r\n\r\nexport const getAllPermissionResult = (hasError: boolean, permissions?: Permission[]): GetAllPermissionResultAction => ({\r\n\ttype: ActionTypes.get_all_permissions_result,\r\n\thasError,\r\n\tpermissions,\r\n});\r\n\r\nexport const addPermissionTemplate = (): AppAction => ({\r\n\ttype: ActionTypes.add_permission_template,\r\n});\r\nexport const addPermissionTemplateResult = (hasError: boolean): AddPermissionTemplateResultAction => ({\r\n\ttype: ActionTypes.add_permission_template_result,\r\n\thasError,\r\n});\r\n\r\nexport const updatePermissionTemplate = (): AppAction => ({\r\n\ttype: ActionTypes.update_permission_template,\r\n});\r\n\r\nexport const updatePermissionTemplateResult = (hasError: boolean): UpdatePermissionTemplateResultAction => ({\r\n\ttype: ActionTypes.update_permission_template_result,\r\n\thasError,\r\n});\r\n\r\nexport const removePermissionTemplate = (permissionId: string): RemovePermissionTemplateAction => ({\r\n\ttype: ActionTypes.remove_permission_template,\r\n\tpermissionId,\r\n});\r\nexport const removePermissionTemplateResult = (hasError: boolean): RemovePermissionTemplateResultAction => ({\r\n\ttype: ActionTypes.remove_permission_template_result,\r\n\thasError,\r\n});\r\n","import { AppAction, AppResultAction, SelectableValue, TreeNode } from '../../../../config/types';\r\n\r\nexport enum ActionTypes {\r\n\tchange_delay_day = 'LATE_TASKS_FOR_ORGANIZATION__CHANGE_DELAY_DAY',\r\n\tchange_to_date = 'LATE_TASKS_FOR_ORGANIZATION__CHANGE_TO_DATE',\r\n\tchange_from_date = 'LATE_TASKS_FOR_ORGANIZATION__CHANGE_FROM_DATE',\r\n\tchange_include_children = 'LATE_TASKS_FOR_ORGANIZATION__CHANGE_INCLUDE_CHILDREN',\r\n\r\n\tfetch_organization_tree = 'LATE_TASKS_FOR_ORGANIZATION__FETCH_ORGANIZATION_TREE',\r\n\tfetch_organization_tree_result = 'LATE_TASKS_FOR_ORGANIZATION__FETCH_ORGANIZATION_TREE_RESULT',\r\n\tselect_organization = 'LATE_TASKS_FOR_ORGANIZATION__SELECT_ORGANIZATION',\r\n\tmanage_toggle_button = 'LATE_TASKS_FOR_ORGANIZATION__MANAGE_TOGGLE_BUTTON',\r\n\r\n\tsearch_late_tasks_for_organization = 'LATE_TASKS_FOR_ORGANIZATION__SEARCH_LATE_TASKS_FOR_ORG',\r\n\tset_visible_report = 'LATE_TASKS_FOR_ORGANIZATION__SET_VISIBLE_REPORT',\r\n\treset_data = 'LATE_TASKS_FOR_ORGANIZATION__RESET_DATA',\r\n}\r\n\r\nexport interface FetchOrganizationTreeAction extends AppAction {\r\n\ttype: ActionTypes.fetch_organization_tree;\r\n\tparentId?: string;\r\n}\r\n\r\nexport interface FetchOrganizationTreeResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_organization_tree_result;\r\n\tparentId?: string;\r\n\torganizationTree?: TreeNode[];\r\n}\r\n\r\nexport interface ChangeDelayDayAction extends AppAction {\r\n\ttype: ActionTypes.change_delay_day;\r\n\tdelayDay: string;\r\n}\r\n\r\nexport interface ChangeToDateAction extends AppAction {\r\n\ttype: ActionTypes.change_to_date;\r\n\ttoDate?: Date;\r\n}\r\n\r\nexport interface ChangeFromDateAction extends AppAction {\r\n\ttype: ActionTypes.change_from_date;\r\n\tfromDate?: Date;\r\n}\r\n\r\nexport interface SelectOrganizationAction extends AppAction {\r\n\ttype: ActionTypes.select_organization;\r\n\torganizationId: string;\r\n}\r\n\r\nexport interface SetVisibleReportAction extends AppAction {\r\n\ttype: ActionTypes.set_visible_report;\r\n\tvisibleReport: boolean;\r\n}\r\n\r\nexport type Action =\r\n\tAppAction\r\n\t& SelectOrganizationAction\r\n\t& ChangeToDateAction\r\n\t& ChangeFromDateAction\r\n\t& FetchOrganizationTreeAction\r\n\t& FetchOrganizationTreeResultAction\r\n\t& SetVisibleReportAction\r\n\t& ChangeDelayDayAction;\r\n\r\nexport interface State {\r\n\tincludeChildren: boolean;\r\n\tfromDate?: Date;\r\n\ttoDate?: Date;\r\n\tdelayDay: string;\r\n\r\n\torganizationTree: TreeNode;\r\n\tselectedNodeId?: string;\r\n\r\n\tvisibleReport: boolean;\r\n}\r\n","import { AppAction } from '../../../config/types';\r\nimport {\r\n\tActionTypes,\r\n\tAddStakholderResultAction,\r\n\tChangeStakholderNameAction,\r\n\tChangeStakholderRefIdAction,\r\n\tChangeStakholderSearchQueryAction,\r\n\tRefetchStakholdersAction,\r\n\tFetchStakholdersAction,\r\n\tFetchStakholdersResultAction,\r\n\tLoadStakholderAction,\r\n\tLoadStakholderResultAction,\r\n\tRemoveStakholderAction,\r\n\tRemoveStakholderResultAction,\r\n\tStakholder,\r\n\tUpdateStakholderResultAction,\r\n} from './types';\r\n\r\nexport const refetchStakholders = (pageNumber: number): RefetchStakholdersAction => ({\r\n\ttype: ActionTypes.refetch_stakholders,\r\n\tpageNumber,\r\n});\r\n\r\nexport const fetchStakholders = (pageNumber: number): FetchStakholdersAction => ({\r\n\ttype: ActionTypes.fetch_stakholders,\r\n\tpageNumber,\r\n});\r\n\r\nexport const fetchStakholdersResult = (hasError: boolean, stakholders?: [], totalCount?: number): FetchStakholdersResultAction => ({\r\n\ttype: ActionTypes.fetch_stakholders_result,\r\n\thasError,\r\n\tstakholders,\r\n\ttotalCount,\r\n});\r\n\r\nexport const changeStakholderName = (name: string): ChangeStakholderNameAction => ({\r\n\ttype: ActionTypes.change_stakholder_name,\r\n\tname,\r\n});\r\n\r\nexport const changeStakholderSearchQuery = (searchQuery: string): ChangeStakholderSearchQueryAction => ({\r\n\ttype: ActionTypes.change_stakholder_search_query,\r\n\tsearchQuery,\r\n});\r\n\r\nexport const clearSearchQueries = (): AppAction => ({\r\n\ttype: ActionTypes.clear_search_queries,\r\n});\r\n\r\nexport const changeStakholderRefId = (refId: string): ChangeStakholderRefIdAction => ({\r\n\ttype: ActionTypes.change_stakholder_ref_id,\r\n\trefId,\r\n});\r\n\r\nexport const clearDraftStakholder = (): AppAction => ({\r\n\ttype: ActionTypes.clear_draft_stakholder,\r\n});\r\n\r\nexport const addStakholder = (): AppAction => ({\r\n\ttype: ActionTypes.add_stakholder,\r\n});\r\n\r\nexport const addStakholderResult = (hasError: boolean): AddStakholderResultAction => ({\r\n\ttype: ActionTypes.add_stakholder_result,\r\n\thasError,\r\n});\r\n\r\nexport const updateStakholder = (): AppAction => ({\r\n\ttype: ActionTypes.update_stakholder,\r\n});\r\n\r\nexport const updateStakholderResult = (hasError: boolean): UpdateStakholderResultAction => ({\r\n\ttype: ActionTypes.update_stakholder_result,\r\n\thasError,\r\n});\r\n\r\nexport const removeStakholder = (stakholder: Stakholder): RemoveStakholderAction => ({\r\n\ttype: ActionTypes.remove_stakholder,\r\n\tstakholder,\r\n});\r\n\r\nexport const removeStakholderResult = (hasError: boolean): RemoveStakholderResultAction => ({\r\n\ttype: ActionTypes.remove_stakholder_result,\r\n\thasError,\r\n});\r\n\r\nexport const loadStakholder = (stakholderId: string): LoadStakholderAction => ({\r\n\ttype: ActionTypes.load_stakholder,\r\n\tstakholderId,\r\n});\r\nexport const loadStakholderResult = (hasError: boolean, stakholder?: Stakholder): LoadStakholderResultAction => ({\r\n\ttype: ActionTypes.load_stakholder_result,\r\n\thasError,\r\n\tstakholder,\r\n});\r\n\r\n","import {\r\n\tActionTypes,\r\n\tCanSendRequestAction,\r\n\tCanSendRequestActionResult,\r\n\tChangeEndDateRequest,\r\n\tChangeNoteAction,\r\n\tChangeRequestedExtraDaysAction,\r\n\tChangeTaskAction,\r\n\tFetchTaskCedRequestsByTaskIdAction,\r\n\tFetchTaskCedRequestsByTaskIdResultAction,\r\n\tGetActiveRequestAction,\r\n\tGetActiveRequestActionResult,\r\n\tLoadTaskAction,\r\n\tLoadTaskActionResult,\r\n} from './types';\r\nimport { Task } from '../../Tasks/logic/type';\r\nimport { CedRequest } from '../../CedRequests/logic/types';\r\nimport { AppAction } from '../../../config/types';\r\n\r\nexport const changeTask = (task?: Task): ChangeTaskAction => ({\r\n\ttype: ActionTypes.change_task,\r\n\ttask,\r\n});\r\n\r\nexport const loadTask = (taskId: string): LoadTaskAction => ({\r\n\ttype: ActionTypes.load_task,\r\n\ttaskId,\r\n});\r\n\r\nexport const loadTaskResult = (hasError: boolean, task?: Task): LoadTaskActionResult => ({\r\n\ttype: ActionTypes.load_task_result,\r\n\thasError,\r\n\ttask,\r\n});\r\n\r\nexport const fetchTaskCedRequestByTaskId = (taskId: string): FetchTaskCedRequestsByTaskIdAction => ({\r\n\ttype: ActionTypes.fetch_task_ced_requests_by_task_id,\r\n\ttaskId,\r\n});\r\n\r\nexport const fetchTaskCedRequestByTaskIdResult = (hasError: boolean, cedRequests?: CedRequest[], totalCount?: number): FetchTaskCedRequestsByTaskIdResultAction => ({\r\n\ttype: ActionTypes.fetch_task_ced_requests_by_task_id_result,\r\n\thasError,\r\n\tcedRequests,\r\n\ttotalCount,\r\n});\r\n\r\nexport const changeNote = (note: string): ChangeNoteAction => ({\r\n\ttype: ActionTypes.change_note,\r\n\tnote,\r\n});\r\n\r\nexport const changeRequestedExtraDays = (requestedExtraDays: string): ChangeRequestedExtraDaysAction => ({\r\n\ttype: ActionTypes.change_requested_extra_days,\r\n\trequestedExtraDays,\r\n});\r\n\r\nexport const canSendRequestAction = (taskId: string): CanSendRequestAction => ({\r\n\ttype: ActionTypes.can_send_ced_request,\r\n\ttaskId,\r\n});\r\n\r\nexport const canSendRequestResult = (hasError: boolean, canSendRequest?: boolean): CanSendRequestActionResult => ({\r\n\ttype: ActionTypes.can_send_ced_request_result,\r\n\thasError,\r\n\tcanSendRequest,\r\n});\r\n\r\nexport const changeEndDateRequest = (autoApproved: boolean): ChangeEndDateRequest => ({\r\n\ttype: ActionTypes.change_end_date_request,\r\n\tautoApproved,\r\n});\r\n\r\nexport const getActiveRequest = (taskId: string): GetActiveRequestAction => ({\r\n\ttype: ActionTypes.get_active_request,\r\n\ttaskId,\r\n});\r\n\r\nexport const getActiveRequestResult = (hasError: boolean, isThereActiveRequest?: boolean): GetActiveRequestActionResult => ({\r\n\ttype: ActionTypes.get_active_request_result,\r\n\thasError,\r\n\tisThereActiveRequest,\r\n});\r\n\r\nexport const clearAddCedRequestPopup = (): AppAction => ({\r\n\ttype: ActionTypes.clear_add_ced_request_popup,\r\n});\r\n\r\nexport const clearTaskCedRequests = (): AppAction => ({\r\n\ttype: ActionTypes.clear_task_ced_requests,\r\n});\r\n","import { AppAction } from '../../../config/types';\r\nimport {\r\n\tActionTypes,\r\n\tAddTaskTypeResultAction,\r\n\tChangeDraftTaskTypeDefaultDaysAction,\r\n\tChangeDraftTaskTypeNameAction,\r\n\tFetchTaskTypesResultAction,\r\n\tLoadTaskTypeAction,\r\n\tLoadTaskTypeResultAction,\r\n\tRemoveTaskTypeAction,\r\n\tRemoveTaskTypeResultAction,\r\n\r\n\tTaskType,\r\n\tUpdateTaskTypeResultAction,\r\n} from './types';\r\n\r\nexport const fetchTaskTypes = (): AppAction => ({\r\n\ttype: ActionTypes.fetch_task_types,\r\n});\r\n\r\nexport const refetchTaskTypes = (): AppAction => ({\r\n\ttype: ActionTypes.refetch_task_types,\r\n});\r\n\r\nexport const fetchTaskTypesResult = (hasError: boolean, taskTypes: [], totalCount: number): FetchTaskTypesResultAction => ({\r\n\ttype: ActionTypes.fetch_task_types_result,\r\n\thasError,\r\n\ttaskTypes,\r\n\ttotalCount,\r\n});\r\n\r\nexport const loadTaskType = (taskTypeId: string): LoadTaskTypeAction => ({\r\n\ttype: ActionTypes.load_task_type,\r\n\ttaskTypeId,\r\n});\r\nexport const loadTaskTypeResult = (hasError: boolean, taskType?: TaskType): LoadTaskTypeResultAction => ({\r\n\ttype: ActionTypes.load_task_type_result,\r\n\thasError,\r\n\ttaskType,\r\n});\r\n\r\nexport const changeDraftTaskTypeName = (name: string): ChangeDraftTaskTypeNameAction => ({\r\n\ttype: ActionTypes.change_draft_task_type_name,\r\n\tname,\r\n});\r\n\r\nexport const changeDraftTaskTypeAllowEditEndDate = (): AppAction => ({\r\n\ttype: ActionTypes.change_draft_task_type_allow_edit_end_date,\r\n});\r\n\r\nexport const changeDraftTaskTypeDefaultDays = (defaultDays: string): ChangeDraftTaskTypeDefaultDaysAction => ({\r\n\ttype: ActionTypes.change_draft_task_type_default_days,\r\n\tdefaultDays,\r\n});\r\n\r\nexport const clearDraftTaskType = (): AppAction => ({\r\n\ttype: ActionTypes.clear_draft_task_type,\r\n});\r\n\r\nexport const addTaskType = (): AppAction => ({\r\n\ttype: ActionTypes.add_task_type,\r\n});\r\n\r\nexport const addTaskTypeResult = (hasError: boolean): AddTaskTypeResultAction => ({\r\n\ttype: ActionTypes.add_task_type_result,\r\n\thasError,\r\n});\r\n\r\nexport const updateTaskType = (): AppAction => ({\r\n\ttype: ActionTypes.update_task_type,\r\n});\r\n\r\nexport const updateTaskTypeResult = (hasError: boolean): UpdateTaskTypeResultAction => ({\r\n\ttype: ActionTypes.update_task_type_result,\r\n\thasError,\r\n});\r\n\r\nexport const removeTaskType = (taskType: TaskType): RemoveTaskTypeAction => ({\r\n\ttype: ActionTypes.remove_task_type,\r\n\ttaskType,\r\n});\r\n\r\nexport const removeTaskTypeResult = (hasError: boolean): RemoveTaskTypeResultAction => ({\r\n\ttype: ActionTypes.remove_task_type_result,\r\n\thasError,\r\n});\r\n","import { AppAction, AppResultAction, TreeNode } from '../../../../config/types';\r\n\r\nexport enum ActionTypes {\r\n\tmanage_toggle_button = 'GET_DONE_PERCENTAGE_FOR_ORGS_DETAILS__MANAGE_TOGGLE_BUTTON',\r\n\r\n\tchange_to_date = 'GET_DONE_PERCENTAGE_FOR_ORGS_DETAILS__CHANGE_TO_DATE',\r\n\tchange_from_date = 'GET_DONE_PERCENTAGE_FOR_ORGS_DETAILS__CHANGE_FROM_DATE',\r\n\tchange_include_children = 'GET_DONE_PERCENTAGE_FOR_ORGS_DETAILS__CHANGE_INCLUDE_CHILDREN',\r\n\r\n\tfetch_organization_tree = 'GET_DONE_PERCENTAGE_FOR_ORGS_DETAILS__FETCH_ORGANIZATION_TREE',\r\n\tfetch_organization_tree_result = 'GET_DONE_PERCENTAGE_FOR_ORGS_DETAILS__FETCH_ORGANIZATION_TREE_RESULT',\r\n\r\n\tselect_organization = 'GET_DONE_PERCENTAGE_FOR_ORGS_DETAILS__SELECT_ORGANIZATION',\r\n\r\n\treset_search_criteria_data = 'GET_DONE_PERCENTAGE_FOR_ORGS_DETAILS__RESET_SEARCH_CRITERIA_DATA',\r\n\tset_visible_report = 'GET_DONE_PERCENTAGE_FOR_ORGS_DETAILS__SET_VISIBLE_REPORT',\r\n\tsearch_main_org_task_status = 'GET_DONE_PERCENTAGE_FOR_ORGS_DETAILS__SEARCH_MAIN_ORG_TASK_STATUS',\r\n}\r\n\r\nexport interface FetchOrganizationTreeAction extends AppAction {\r\n\ttype: ActionTypes.fetch_organization_tree;\r\n\tparentId?: string;\r\n}\r\n\r\nexport interface FetchOrganizationTreeResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_organization_tree_result;\r\n\tparentId?: string;\r\n\torganizationTree?: TreeNode[];\r\n}\r\n\r\nexport interface ChangeToDateAction extends AppAction {\r\n\ttype: ActionTypes.change_to_date;\r\n\ttoDate?: Date;\r\n}\r\n\r\nexport interface ChangeFromDateAction extends AppAction {\r\n\ttype: ActionTypes.change_from_date;\r\n\tfromDate?: Date;\r\n}\r\n\r\nexport interface SelectOrganizationAction extends AppAction {\r\n\ttype: ActionTypes.select_organization;\r\n\torganizationId: string;\r\n}\r\n\r\nexport interface SetVisibleReportAction extends AppAction {\r\n\ttype: ActionTypes.set_visible_report;\r\n\tvisibleReport: boolean;\r\n}\r\n\r\nexport type Action =\r\n\tAppAction\r\n\t& ChangeToDateAction\r\n\t& ChangeFromDateAction\r\n\t& FetchOrganizationTreeAction\r\n\t& FetchOrganizationTreeResultAction\r\n\t& SelectOrganizationAction\r\n\t& SetVisibleReportAction;\r\n\r\nexport interface State {\r\n\tincludeChildren: boolean;\r\n\tfromDate?: Date;\r\n\ttoDate?: Date;\r\n\r\n\tselectedOrganizations: string[];\r\n\r\n\torganizationTree: TreeNode;\r\n\tselectedNodeId?: string;\r\n\r\n\tvisibleReport: boolean;\r\n}\r\n","\r\nimport { AppAction, AppResultAction, TreeNode } from '../../../../config/types';\r\n\r\nexport enum ActionTypes {\r\n\tchange_to_date = 'GET_TASK_PERCENTAGE_FOR_EMPLOYEES_IN_ORG_DETAILS__CHANGE_TO_DATE',\r\n\tchange_from_date = 'GET_TASK_PERCENTAGE_FOR_EMPLOYEES_IN_ORG_DETAILS__CHANGE_FROM_DATE',\r\n\tchange_include_children = 'GET_TASK_PERCENTAGE_FOR_EMPLOYEES_IN_ORG_DETAILS__CHANGE_INCLUDE_CHILDREN',\r\n\r\n\tfetch_organization_tree = 'GET_TASK_PERCENTAGE_FOR_EMPLOYEES_IN_ORG_DETAILS__FETCH_ORGANIZATION_TREE',\r\n\tfetch_organization_tree_result = 'GET_TASK_PERCENTAGE_FOR_EMPLOYEES_IN_ORG_DETAILS__FETCH_ORGANIZATION_TREE_RESULT',\r\n\tselect_organization = 'GET_TASK_PERCENTAGE_FOR_EMPLOYEES_IN_ORG_DETAILS__SELECT_ORGANIZATION',\r\n\tmanage_toggle_button = 'GET_TASK_PERCENTAGE_FOR_EMPLOYEES_IN_ORG_DETAILS__MANAGE_TOGGLE_BUTTON',\r\n\r\n\tsearch_get_task_percentage_for_employees_in_org_details = 'GET_TASK_PERCENTAGE_FOR_EMPLOYEES_IN_ORG_DETAILS__SEARCH_LATE_TASKS_FOR_ORG',\r\n\tset_visible_report = 'GET_TASK_PERCENTAGE_FOR_EMPLOYEES_IN_ORG_DETAILS__SET_VISIBLE_REPORT',\r\n\treset_data = 'GET_TASK_PERCENTAGE_FOR_EMPLOYEES_IN_ORG_DETAILS__RESET_DATA',\r\n}\r\n\r\nexport interface FetchOrganizationTreeAction extends AppAction {\r\n\ttype: ActionTypes.fetch_organization_tree;\r\n\tparentId?: string;\r\n}\r\n\r\nexport interface FetchOrganizationTreeResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_organization_tree_result;\r\n\tparentId?: string;\r\n\torganizationTree?: TreeNode[];\r\n}\r\n\r\nexport interface ChangeToDateAction extends AppAction {\r\n\ttype: ActionTypes.change_to_date;\r\n\ttoDate?: Date;\r\n}\r\n\r\nexport interface ChangeFromDateAction extends AppAction {\r\n\ttype: ActionTypes.change_from_date;\r\n\tfromDate?: Date;\r\n}\r\n\r\nexport interface SelectOrganizationAction extends AppAction {\r\n\ttype: ActionTypes.select_organization;\r\n\torganizationId: string;\r\n}\r\n\r\nexport interface SetVisibleReportAction extends AppAction {\r\n\ttype: ActionTypes.set_visible_report;\r\n\tvisibleReport: boolean;\r\n}\r\n\r\nexport type Action =\r\n\tAppAction\r\n\t& SelectOrganizationAction\r\n\t& ChangeToDateAction\r\n\t& ChangeFromDateAction\r\n\t& FetchOrganizationTreeAction\r\n\t& FetchOrganizationTreeResultAction\r\n\t& SetVisibleReportAction;\r\n\r\nexport interface State {\r\n\tincludeChildren: boolean;\r\n\tfromDate?: Date;\r\n\ttoDate?: Date;\r\n\r\n\torganizationTree: TreeNode;\r\n\tselectedNodeId?: string;\r\n\r\n\tvisibleReport: boolean;\r\n}\r\n","import { AppAction, AppResultAction, TreeNode } from '../../../../config/types';\r\n\r\nexport enum ActionTypes {\r\n\tmanage_toggle_button = 'GET_TASK_PERCENTAGE_FOR_ORGS_DETAILS__MANAGE_TOGGLE_BUTTON',\r\n\r\n\tchange_to_date = 'GET_TASK_PERCENTAGE_FOR_ORGS_DETAILS__CHANGE_TO_DATE',\r\n\tchange_from_date = 'GET_TASK_PERCENTAGE_FOR_ORGS_DETAILS__CHANGE_FROM_DATE',\r\n\tchange_include_children = 'GET_TASK_PERCENTAGE_FOR_ORGS_DETAILS__CHANGE_INCLUDE_CHILDREN',\r\n\r\n\tfetch_organization_tree = 'GET_TASK_PERCENTAGE_FOR_ORGS_DETAILS__FETCH_ORGANIZATION_TREE',\r\n\tfetch_organization_tree_result = 'GET_TASK_PERCENTAGE_FOR_ORGS_DETAILS__FETCH_ORGANIZATION_TREE_RESULT',\r\n\r\n\tselect_organization = 'GET_TASK_PERCENTAGE_FOR_ORGS_DETAILS__SELECT_ORGANIZATION',\r\n\r\n\treset_search_criteria_data = 'GET_TASK_PERCENTAGE_FOR_ORGS_DETAILS__RESET_SEARCH_CRITERIA_DATA',\r\n\tset_visible_report = 'GET_TASK_PERCENTAGE_FOR_ORGS_DETAILS__SET_VISIBLE_REPORT',\r\n\tsearch_get_task_percentage_for_orgs_details = 'GET_TASK_PERCENTAGE_FOR_ORGS_DETAILS__SEARCH_GET_TASK_PERCENTAGE_FOR_ORGS_DETAILS',\r\n}\r\n\r\nexport interface FetchOrganizationTreeAction extends AppAction {\r\n\ttype: ActionTypes.fetch_organization_tree;\r\n\tparentId?: string;\r\n}\r\n\r\nexport interface FetchOrganizationTreeResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_organization_tree_result;\r\n\tparentId?: string;\r\n\torganizationTree?: TreeNode[];\r\n}\r\n\r\nexport interface ChangeToDateAction extends AppAction {\r\n\ttype: ActionTypes.change_to_date;\r\n\ttoDate?: Date;\r\n}\r\n\r\nexport interface ChangeFromDateAction extends AppAction {\r\n\ttype: ActionTypes.change_from_date;\r\n\tfromDate?: Date;\r\n}\r\n\r\nexport interface SelectOrganizationAction extends AppAction {\r\n\ttype: ActionTypes.select_organization;\r\n\torganizationId: string;\r\n}\r\n\r\nexport interface SetVisibleReportAction extends AppAction {\r\n\ttype: ActionTypes.set_visible_report;\r\n\tvisibleReport: boolean;\r\n}\r\n\r\nexport type Action =\r\n\tAppAction\r\n\t& ChangeToDateAction\r\n\t& ChangeFromDateAction\r\n\t& FetchOrganizationTreeAction\r\n\t& FetchOrganizationTreeResultAction\r\n\t& SelectOrganizationAction\r\n\t& SetVisibleReportAction;\r\n\r\nexport interface State {\r\n\tincludeChildren: boolean;\r\n\tfromDate?: Date;\r\n\ttoDate?: Date;\r\n\r\n\tselectedOrganizations: string[];\r\n\r\n\torganizationTree: TreeNode;\r\n\tselectedNodeId?: string;\r\n\r\n\tvisibleReport: boolean;\r\n}\r\n","import { AxiosRequestConfig } from 'axios';\r\nimport { morphism } from 'morphism';\r\n\r\nimport { request } from '../../../config/utilities';\r\nimport {\r\n\tadd_ad_user_url,\r\n\tadd_user_url,\r\n\tchange_user_password_url,\r\n\tdelete_user_url,\r\n\tfetch_organisations_url,\r\n\tfetch_user_orgs_url,\r\n\tfetch_user_path_url,\r\n\tfetch_user_with_orgs_url,\r\n\tfetch_users_url,\r\n\tfind_ad_user,\r\n\tget_all_organizations_url,\r\n\tmax_bulk_users,\r\n\tsearch_new_users_url,\r\n\tupdate_user_url,\r\n\tvalidate_ad_user_url,\r\n\tvalidate_user_url,\r\n} from '../../../config/urls';\r\n\r\nimport { adUserMap, organisationMap, userMap } from './mapper';\r\nimport { organizationMap } from '../../Organization/logic/mapper';\r\nimport { User } from './types';\r\nimport { organisationMaxItems, pageSize } from '../../../config/constant';\r\nimport { SelectableValue } from '../../../config/types';\r\n\r\nexport const fetchUsers = async (pageNumber: number, searchName?: string, searchEmail?: string, searchActive?: boolean, organizationId?: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: fetch_users_url,\r\n\t\tmethod: 'GET',\r\n\r\n\t\tparams: {\r\n\t\t\tpageSize: pageSize,\r\n\t\t\tpageNumber: pageNumber,\r\n\t\t\tname: searchName,\r\n\t\t\temail: searchEmail,\r\n\t\t\tactive: searchActive,\r\n\t\t\torgID: organizationId,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\treturn {\r\n\t\ttotalCount: response.data.totalCount,\r\n\t\tusers: morphism(userMap, response.data.users as any[]),\r\n\t};\r\n};\r\n\r\nexport const fetchUsersApi = async (name: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: search_new_users_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\tName: name,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\treturn morphism(userMap, response.data as any[]);\r\n};\r\n\r\nexport const fetchUserPathApi = async (userId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\tmethod: 'GET',\r\n\t\turl: fetch_user_path_url,\r\n\t\tparams: {\r\n\t\t\tuserId: userId,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\treturn {\r\n\t\tuserName: response.data.userName,\r\n\t\tuserPath: response.data.userPath,\r\n\t};\r\n};\r\n\r\nexport const deleteUserApi = async (userId: number, newUserId: number) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: delete_user_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tUserId: userId,\r\n\t\t\tNewUserId: newUserId,\r\n\t\t},\r\n\t};\r\n\r\n\treturn await request(options);\r\n};\r\n\r\nexport const fetchOrganisationApi = async (organisationName: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: fetch_organisations_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\torgName: organisationName,\r\n\t\t\tmaxItems: organisationMaxItems,\r\n\t\t},\r\n\t};\r\n\tconst response = await request(options);\r\n\treturn morphism(organisationMap, response.data);\r\n};\r\n\r\nexport const fetchUserOrgsApi = async (userId: string) => {\r\n\tconst config: AxiosRequestConfig = {\r\n\t\tmethod: 'GET',\r\n\t\turl: fetch_user_orgs_url,\r\n\t\tparams: {\r\n\t\t\tuserId: userId,\r\n\t\t},\r\n\t};\r\n\tconst response = await request(config);\r\n\treturn morphism(organisationMap, response.data);\r\n};\r\n\r\nexport const fetchUserWithOrgsApi = async (userId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\tmethod: 'GET',\r\n\t\turl: fetch_user_with_orgs_url,\r\n\t\tparams: {\r\n\t\t\tuserId: userId,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\r\n\treturn {\r\n\t\torganizations: morphism(organisationMap, response.data.userOrgs),\r\n\t\tuser: morphism(userMap, response.data.user),\r\n\t};\r\n};\r\n\r\nexport const addUserApi = async (users: User[], organizations: SelectableValue[]) => {\r\n\tconst orgIds = organizations && organizations.map(x => x.value);\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: add_user_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tusers: users.map(user => ({\r\n\t\t\t\tUserName: user.userName,\r\n\t\t\t\tEmail: user.email,\r\n\t\t\t\tArName: user.arName,\r\n\t\t\t\tEnName: user.enName,\r\n\t\t\t\tJobDescription: user.jobDescription,\r\n\t\t\t\tMobilePhone: user.mobile,\r\n\t\t\t\tPassword: user.password,\r\n\t\t\t})),\r\n\t\t\torgIDs: orgIds,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\treturn response.data;\r\n};\r\n\r\nexport const validateUserApi = async (user: User) => {\r\n\tconst orgIds = user.organizations && user.organizations.map(x => x.value);\r\n\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: validate_user_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tUserName: user.userName,\r\n\t\t\tEmail: user.email,\r\n\t\t\tArName: user.arName,\r\n\t\t\tEnName: user.enName,\r\n\t\t\tJobDescription: user.jobDescription,\r\n\t\t\tMobilePhone: user.mobile,\r\n\t\t\tPassword: user.password,\r\n\t\t\torgIDs: orgIds,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\treturn morphism(userMap, response.data);\r\n};\r\n\r\nexport const validateAdUserApi = async (userName: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: validate_ad_user_url,\r\n\t\tmethod: 'POST',\r\n\t\tparams: {\r\n\t\t\tUserName: userName,\r\n\t\t},\r\n\t};\r\n\treturn await request(options);\r\n};\r\n\r\nexport const getMaxBulkUsers = async () => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: max_bulk_users,\r\n\t\tmethod: 'GET'\r\n\t};\r\n\treturn await request(options);\r\n};\r\n\r\nexport const updateUserApi = async (userCriteria: User, userID: string) => {\r\n\tconst orgIds = userCriteria.organizations && userCriteria.organizations.map(x => x.value);\r\n\r\n\tconst options: AxiosRequestConfig = {\r\n\t\tmethod: 'POST',\r\n\t\turl: update_user_url,\r\n\t\tdata: {\r\n\t\t\tUserID: userID,\r\n\t\t\tUserName: userCriteria.userName,\r\n\t\t\tEmail: userCriteria.email,\r\n\t\t\tArName: userCriteria.arName,\r\n\t\t\tEnName: userCriteria.enName,\r\n\t\t\tJobDescription: userCriteria.jobDescription,\r\n\t\t\tMobilePhone: userCriteria.mobile,\r\n\t\t\tPassword: userCriteria.password,\r\n\t\t\tActive: userCriteria.active,\r\n\t\t\torgIDs: orgIds,\r\n\t\t},\r\n\t};\r\n\treturn await request(options);\r\n};\r\n\r\nexport const addAdUserApi = async (emails: string[], orgIds: string[]) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: add_ad_user_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tEmails: emails,\r\n\t\t\tOrgIds: orgIds,\r\n\t\t},\r\n\t};\r\n\tconst response = await request(options);\r\n\treturn await response.data;\r\n};\r\n\r\nexport const findAdUserApi = async (userName: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: find_ad_user,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\tuserName: userName,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\r\n\treturn {\r\n\t\texists: !!response.data.userInfo,\r\n\t\tregistered: response.data.registered,\r\n\t\tuser: morphism(adUserMap, response.data.userInfo),\r\n\t};\r\n};\r\n\r\nexport const fetchOrganizationsApi = async (parentId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_all_organizations_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\tparentId: parentId,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\r\n\treturn {\r\n\t\ttotalCount: response.data.totalCount,\r\n\t\torganizations: morphism(organizationMap, response.data.organizations as any[]),\r\n\t};\r\n};\r\n\r\nexport const changeUserPasswordAPI = async (userId: string, newPassword: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: change_user_password_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tuserId,\r\n\t\t\tnewPassword,\r\n\t\t},\r\n\t};\r\n\tawait request(options);\r\n};","import { AppAction, AppResultAction, SelectableValue } from '../../../config/types';\r\nimport { TaskHeader, UserTask } from '../../Tasks/logic/type';\r\n\r\nexport enum ActionTypes {\r\n\tchange_es_request_type = 'ADD_ES_REQUEST__CHANGE_ES_REQUEST_TYPE',\r\n\tchange_es_request_send_to_user = 'ADD_ES_REQUEST__CHANGE_ES_REQUEST_SEND_TO_USER',\r\n\tchange_es_request_title = 'ADD_ES_REQUEST__CHANGE_ES_REQUEST_TITLE',\r\n\tchange_es_request_notes = 'ADD_ES_REQUEST__CHANGE_ES_REQUEST_NOTES',\r\n\tchange_es_request_task_no = 'ADD_ES_REQUEST__CHANGE_ES_REQUEST_TASK_NO',\r\n\tclear_es_request_task = 'ADD_ES_REQUEST__CLEAR_ES_REQUEST_TASK',\r\n\tclear_es_request = 'ADD_ES_REQUEST__CLEAR_ES_REQUEST',\r\n\r\n\tadd_es_request = 'ADD_ES_REQUEST__ADD_ES_REQUEST',\r\n\tget_es_request_task = 'ADD_ES_REQUEST__GET_ES_REQUEST_TASK',\r\n\tget_es_request_task_result = 'ADD_ES_REQUEST__GET_ES_REQUEST_TASK_RESULT',\r\n}\r\n\r\nexport interface ChangeEsRequestTypeAction extends AppAction {\r\n\ttype: ActionTypes.change_es_request_type;\r\n\tesRequestType: 'withTask' | 'withoutTask' | 'withRedirectionForm';\r\n}\r\n\r\nexport interface ChangeEsRequestTitleAction extends AppAction {\r\n\ttype: ActionTypes.change_es_request_title;\r\n\ttitle: string;\r\n}\r\n\r\nexport interface ChangeEsRequestTaskNoAction extends AppAction {\r\n\ttype: ActionTypes.change_es_request_task_no;\r\n\ttaskNo: string;\r\n}\r\n\r\nexport interface ChangeEsRequestNotesAction extends AppAction {\r\n\ttype: ActionTypes.change_es_request_notes;\r\n\tnotes: string;\r\n}\r\n\r\nexport interface ChangeEsRequestSendToUserAction extends AppAction {\r\n\ttype: ActionTypes.change_es_request_send_to_user;\r\n\tsendToUser: SelectableValue;\r\n}\r\n\r\nexport interface GetEsRequestTaskResultAction extends AppResultAction {\r\n\ttype: ActionTypes.get_es_request_task_result;\r\n\ttask?: UserTask;\r\n}\r\n\r\nexport type Action =\r\n\tAppAction\r\n\t& ChangeEsRequestTypeAction\r\n\t& ChangeEsRequestTitleAction\r\n\t& ChangeEsRequestTaskNoAction\r\n\t& ChangeEsRequestNotesAction\r\n\t& ChangeEsRequestSendToUserAction\r\n\t& GetEsRequestTaskResultAction;\r\n\r\nexport interface State {\r\n\tesRequestType: 'withTask' | 'withoutTask' | 'withRedirectionForm';\r\n\ttask?: UserTask;\r\n\ttaskNo: string;\r\n\r\n\ttitle: string;\r\n\tnotes: string;\r\n\tsendToUser?: SelectableValue;\r\n}\r\n\r\n","import { AppAction } from '../../../config/types';\r\nimport {\r\n\tActionTypes,\r\n\tAddProcedureResultAction,\r\n\tChangeDraftProcedureNameAction,\r\n\tFetchProcedureResultAction,\r\n\tLoadProcedureAction,\r\n\tLoadProcedureResultAction,\r\n\tProcedure,\r\n\tRemoveProcedureAction,\r\n\tRemoveProcedureResultAction,\r\n\tSetDraftProcedure,\r\n\tUpdateProcedureResultAction,\r\n} from './types';\r\n\r\nexport const changeDraftProcedureName = (name: string): ChangeDraftProcedureNameAction => ({\r\n\ttype: ActionTypes.change_draft_procedure_name,\r\n\tname,\r\n});\r\n\r\nexport const clearDraftProcedure = (): AppAction => ({\r\n\ttype: ActionTypes.clear_draft_procedure,\r\n});\r\n\r\nexport const refetchProcedures = (): AppAction => ({\r\n\ttype: ActionTypes.refetch_procedures,\r\n});\r\nexport const fetchProcedures = (): AppAction => ({\r\n\ttype: ActionTypes.fetch_procedures,\r\n});\r\nexport const fetchProcedureResult = (hasError: boolean, procedures: [], totalCount: number): FetchProcedureResultAction => ({\r\n\ttype: ActionTypes.fetch_procedures_result,\r\n\thasError,\r\n\tprocedures,\r\n\ttotalCount,\r\n});\r\nexport const loadProcedure = (procedureId: string): LoadProcedureAction => ({\r\n\ttype: ActionTypes.load_procedure,\r\n\tprocedureId,\r\n});\r\nexport const loadProcedureResult = (hasError: boolean, procedure?: Procedure): LoadProcedureResultAction => ({\r\n\ttype: ActionTypes.load_procedure_result,\r\n\thasError,\r\n\tprocedure,\r\n});\r\n\r\nexport const addProcedure = (): AppAction => ({\r\n\ttype: ActionTypes.add_procedure,\r\n});\r\nexport const addProcedureResult = (hasError: boolean): AddProcedureResultAction => ({\r\n\ttype: ActionTypes.add_procedure_result,\r\n\thasError,\r\n});\r\n\r\nexport const updateProcedure = (): AppAction => ({\r\n\ttype: ActionTypes.update_procedure,\r\n});\r\nexport const updateProcedureResult = (hasError: boolean): UpdateProcedureResultAction => ({\r\n\ttype: ActionTypes.update_procedure_result,\r\n\thasError,\r\n});\r\n\r\nexport const removeProcedure = (procedure: Procedure): RemoveProcedureAction => ({\r\n\ttype: ActionTypes.remove_procedure,\r\n\tprocedure,\r\n});\r\nexport const removeProcedureResult = (hasError: boolean): RemoveProcedureResultAction => ({\r\n\ttype: ActionTypes.remove_procedure_result,\r\n\thasError,\r\n});\r\n\r\n\r\n","import { AppAction } from '../../../config/types';\r\nimport {\r\n\tActionTypes,\r\n\tAddPriorityResultAction,\r\n\tChangeDraftPriorityNameAction,\r\n\tFetchPriorityResultAction,\r\n\tLoadPriorityAction,\r\n\tLoadPriorityResultAction,\r\n\tPriority,\r\n\tRemovePriorityAction,\r\n\tRemovePriorityResultAction,\r\n\tUpdatePriorityResultAction,\r\n} from './types';\r\n\r\nexport const refetchPriorities = (): AppAction => ({\r\n\ttype: ActionTypes.refetch_priorities,\r\n});\r\nexport const fetchPriorities = (): AppAction => ({\r\n\ttype: ActionTypes.fetch_priorities,\r\n});\r\nexport const fetchPrioritiesResult = (hasError: boolean, priorities: [], totalCount: number): FetchPriorityResultAction => ({\r\n\ttype: ActionTypes.fetch_priorities_result,\r\n\thasError,\r\n\tpriorities,\r\n\ttotalCount,\r\n});\r\n\r\nexport const loadPriority = (priorityId: string): LoadPriorityAction => ({\r\n\ttype: ActionTypes.load_priority,\r\n\tpriorityId,\r\n});\r\nexport const loadPriorityResult = (hasError: boolean, priority?: Priority): LoadPriorityResultAction => ({\r\n\ttype: ActionTypes.load_priority_result,\r\n\thasError,\r\n\tpriority,\r\n});\r\n\r\nexport const changeDraftPriorityName = (name: string): ChangeDraftPriorityNameAction => ({\r\n\ttype: ActionTypes.change_draft_priority_name,\r\n\tname,\r\n});\r\n\r\nexport const clearDraftPriority = (): AppAction => ({\r\n\ttype: ActionTypes.clear_draft_priority,\r\n});\r\n\r\nexport const addPriority = (): AppAction => ({\r\n\ttype: ActionTypes.add_priority,\r\n});\r\nexport const addPriorityResult = (hasError: boolean): AddPriorityResultAction => ({\r\n\ttype: ActionTypes.add_priority_result,\r\n\thasError,\r\n});\r\n\r\nexport const updatePriority = (): AppAction => ({\r\n\ttype: ActionTypes.update_priority,\r\n});\r\nexport const updatePriorityResult = (hasError: boolean): UpdatePriorityResultAction => ({\r\n\ttype: ActionTypes.update_priority_result,\r\n\thasError,\r\n});\r\n\r\nexport const removePriority = (priority: Priority): RemovePriorityAction => ({\r\n\ttype: ActionTypes.remove_priority,\r\n\tpriority,\r\n});\r\nexport const removePriorityResult = (hasError: boolean): RemovePriorityResultAction => ({\r\n\ttype: ActionTypes.remove_priority_result,\r\n\thasError,\r\n});\r\n\r\n","import {\r\n\tActionTypes,\r\n\tCedRequest,\r\n\tCedRequestStatus,\r\n\tChangeCedRequestResponseExtraDaysAction,\r\n\tChangeCedRequestResponseNotesAction,\r\n\tChangeCedRequestStatusAction,\r\n\tFetchCedRequestsAction,\r\n\tFetchCedRequestsResultAction,\r\n\tLoadCedRequestDetailsAction,\r\n\tLoadCedRequestDetailsResultAction,\r\n\tSelectCedRequestNewStatusAction,\r\n\tUpdateCedRequestAction,\r\n\tUpdateCedRequestResultAction,\r\n} from './types';\r\n\r\nexport const changeCedRequestStatus = (cedRequestStatus: CedRequestStatus): ChangeCedRequestStatusAction => ({\r\n\ttype: ActionTypes.change_ced_request_status,\r\n\tcedRequestStatus,\r\n});\r\nexport const fetchCedRequests = (pageNumber: number): FetchCedRequestsAction => ({\r\n\ttype: ActionTypes.fetch_ced_requests,\r\n\tpageNumber,\r\n});\r\nexport const reFetchCedRequests = (): FetchCedRequestsAction => ({\r\n\ttype: ActionTypes.refetch_ced_requests,\r\n\tpageNumber: 1,\r\n});\r\nexport const fetchCedRequestsResult = (hasError: boolean, cedRequests?: CedRequest[], totalCount?: number): FetchCedRequestsResultAction => ({\r\n\ttype: ActionTypes.fetch_ced_requests_result,\r\n\thasError,\r\n\tcedRequests,\r\n\ttotalCount,\r\n});\r\n\r\nexport const loadCedRequestDetails = (cedRequestId: string): LoadCedRequestDetailsAction => ({\r\n\ttype: ActionTypes.load_ced_request_details,\r\n\tcedRequestId,\r\n});\r\nexport const loadCedRequestDetailsResult = (hasError: boolean, cedRequest?: CedRequest): LoadCedRequestDetailsResultAction => ({\r\n\ttype: ActionTypes.load_ced_request_details_result,\r\n\thasError,\r\n\tcedRequest,\r\n});\r\n\r\nexport const selectCedRequestNewStatus = (newStatus?: CedRequestStatus): SelectCedRequestNewStatusAction => ({\r\n\ttype: ActionTypes.select_ced_request_new_status,\r\n\tnewStatus,\r\n});\r\nexport const changeCedRequestResponseExtraDays = (newResponseExtraDays: string): ChangeCedRequestResponseExtraDaysAction => ({\r\n\ttype: ActionTypes.change_ced_request_response_extra_days,\r\n\tnewResponseExtraDays,\r\n});\r\nexport const changeCedRequestResponseNotes = (newResponseNotes: string): ChangeCedRequestResponseNotesAction => ({\r\n\ttype: ActionTypes.change_ced_request_response_notes,\r\n\tnewResponseNotes,\r\n});\r\n\r\nexport const updateCedRequest = (cedRequestId: string): UpdateCedRequestAction => ({\r\n\ttype: ActionTypes.update_ced_request,\r\n\tcedRequestId,\r\n});\r\nexport const updateCedRequestResult = (hasError: boolean, cedRequest?: CedRequest): UpdateCedRequestResultAction => ({\r\n\ttype: ActionTypes.update_ced_request_result,\r\n\thasError,\r\n\tcedRequest,\r\n});\r\n\r\nexport const toggleTakeActionVisible = () => ({\r\n\ttype: ActionTypes.toggle_take_action_visible,\r\n});\r\n\r\nexport const clearCedRequestDetailsData = () => ({\r\n\ttype: ActionTypes.clear_ced_request_detail_data,\r\n});\r\n\r\nexport const clearCedRequestsData = () => ({\r\n\ttype: ActionTypes.clear_ced_requests_data,\r\n});\r\n","import {\r\n\tActionTypes,\r\n\tAddTaskToCartAction,\r\n\tClearTasksCartAction,\r\n\tFetchMaxTaskInCartResultAction,\r\n\tRemoveTaskFromCartAction,\r\n\tRemoveTaskFromCartByUserTaskAction,\r\n} from './types';\r\nimport { TaskHeader } from '../../Tasks/logic/type';\r\nimport { AppAction } from '../../../config/types';\r\n\r\nexport const addTaskToCart = (taskHeader: TaskHeader): AddTaskToCartAction => ({\r\n\ttype: ActionTypes.add_task_to_cart,\r\n\ttaskHeader,\r\n});\r\n\r\nexport const removeTaskFromCart = (userTaskId: string): RemoveTaskFromCartAction => ({\r\n\ttype: ActionTypes.remove_task_from_cart,\r\n\tuserTaskId,\r\n});\r\n\r\nexport const removeTaskFromCartByTaskId = (taskId: string): RemoveTaskFromCartByUserTaskAction => ({\r\n\ttype: ActionTypes.remove_task_from_cart_by_user_task,\r\n\ttaskId,\r\n});\r\n\r\nexport const clearTasksCart = (failedTasks: string[] = []): ClearTasksCartAction => ({\r\n\ttype: ActionTypes.clear_tasks_cart,\r\n\tfailedTasks,\r\n});\r\n\r\nexport const fetchMaxTaskInCart = (): AppAction => ({\r\n\ttype: ActionTypes.fetch_max_task_in_cart,\r\n});\r\n\r\nexport const fetchMaxTaskInCartResult = (hasError: boolean, maxTaskInCart?: number): FetchMaxTaskInCartResultAction => ({\r\n\ttype: ActionTypes.fetch_max_task_in_cart_result,\r\n\thasError,\r\n\tmaxTaskInCart,\r\n});\r\n","import { AppAction, AppResultAction } from '../../../config/types';\r\n\r\nexport enum ActionTypes {\r\n\tfetch_default_path = 'SEARCH__FETCH_DEFAULT_PATH',\r\n\tfetch_default_path_result = 'SEARCH__FETCH_DEFAULT_PATH_RESULT',\r\n\tchange_search_text = 'SEARCH__CHANGE_SEARCH_TEXT',\r\n\tfetch_all_indexes = 'SEARCH__FETCH_ALL_INDEXES',\r\n\tfetch_all_indexes_result = 'SEARCH__FETCH_ALL_INDEXES_RESULT',\r\n\treset_search_index = 'SEARCH__RESET_SEARCH_INDEX',\r\n\treset_search_index_result = 'SEARCH__RESET_SEARCH_INDEX_RESULT',\r\n\tupdate_path_index = 'SEARCH__UPDATE_PATH_INDEX',\r\n\tupdate_path_index_result = 'SEARCH__UPDATE_PATH_INDEX_RESULT',\r\n\r\n\tclear_search_index_data = 'SEARCH__CLEAR_SEARCH_INDEX_DATA',\r\n}\r\n\r\nexport interface ChangeSearchPathAction extends AppAction {\r\n\ttype: ActionTypes.change_search_text;\r\n\tpath: string;\r\n}\r\n\r\nexport interface FetchDefaultPathResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_default_path_result,\r\n\thasError: boolean;\r\n\tpath: string;\r\n}\r\n\r\nexport interface UpdatePathIndexResultAction extends AppResultAction {\r\n\ttype: ActionTypes.update_path_index_result;\r\n\thasError: boolean;\r\n}\r\n\r\nexport interface FetchAllIndexResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_all_indexes_result,\r\n\thasError: boolean;\r\n\tindexes: SearchIndex[];\r\n\ttotalCount: number\r\n}\r\n\r\nexport interface ResetAllIndexAction extends AppResultAction {\r\n\ttype: ActionTypes.reset_search_index_result;\r\n\thasError: boolean;\r\n}\r\n\r\nexport type Action =\r\n\tAppAction\r\n\t& ChangeSearchPathAction\r\n\t& FetchDefaultPathResultAction\r\n\t& UpdatePathIndexResultAction\r\n\t& FetchAllIndexResultAction\r\n\t& ResetAllIndexAction;\r\n\r\nexport interface SearchIndex {\r\n\tid: string;\r\n\tserverName: string,\r\n\tlastIndexDateTime: string;\r\n\tlastDocumentDateTime: string;\r\n}\r\n\r\nexport interface State {\r\n\tpath: string;\r\n\tindexes: SearchIndex[],\r\n\ttotalCount: number\r\n}\r\n","import { AppAction, AppResultAction, TreeNode } from '../../../../config/types';\r\n\r\nexport enum ActionTypes {\r\n\tmanage_toggle_button = 'MAIN_ORG_TASK_STATUS__MANAGE_TOGGLE_BUTTON',\r\n\r\n\tchange_to_date = 'MAIN_ORG_TASK_STATUS__CHANGE_TO_DATE',\r\n\tchange_from_date = 'MAIN_ORG_TASK_STATUS__CHANGE_FROM_DATE',\r\n\tchange_include_children = 'MAIN_ORG_TASK_STATUS__CHANGE_INCLUDE_CHILDREN',\r\n\r\n\tfetch_organization_tree = 'MAIN_ORG_TASK_STATUS__FETCH_ORGANIZATION_TREE',\r\n\tfetch_organization_tree_result = 'MAIN_ORG_TASK_STATUS__FETCH_ORGANIZATION_TREE_RESULT',\r\n\r\n\tselect_organization = 'MAIN_ORG_TASK_STATUS__SELECT_ORGANIZATION',\r\n\r\n\treset_search_criteria_data = 'MAIN_ORG_TASK_STATUS__RESET_SEARCH_CRITERIA_DATA',\r\n\tset_visible_report = 'MAIN_ORG_TASK_STATUS__SET_VISIBLE_REPORT',\r\n\tsearch_main_org_task_status = 'MAIN_ORG_TASK_STATUS__SEARCH_MAIN_ORG_TASK_STATUS',\r\n}\r\n\r\nexport interface FetchOrganizationTreeAction extends AppAction {\r\n\ttype: ActionTypes.fetch_organization_tree;\r\n\tparentId?: string;\r\n}\r\n\r\nexport interface FetchOrganizationTreeResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_organization_tree_result;\r\n\tparentId?: string;\r\n\torganizationTree?: TreeNode[];\r\n}\r\n\r\nexport interface ChangeToDateAction extends AppAction {\r\n\ttype: ActionTypes.change_to_date;\r\n\ttoDate?: Date;\r\n}\r\n\r\nexport interface ChangeFromDateAction extends AppAction {\r\n\ttype: ActionTypes.change_from_date;\r\n\tfromDate?: Date;\r\n}\r\n\r\nexport interface SelectOrganizationAction extends AppAction {\r\n\ttype: ActionTypes.select_organization;\r\n\torganizationId: string;\r\n}\r\n\r\nexport interface SetVisibleReportAction extends AppAction {\r\n\ttype: ActionTypes.set_visible_report;\r\n\tvisibleReport: boolean;\r\n}\r\n\r\nexport type Action =\r\n\tAppAction\r\n\t& ChangeToDateAction\r\n\t& ChangeFromDateAction\r\n\t& FetchOrganizationTreeAction\r\n\t& FetchOrganizationTreeResultAction\r\n\t& SelectOrganizationAction\r\n\t& SetVisibleReportAction;\r\n\r\nexport interface State {\r\n\tincludeChildren: boolean;\r\n\tfromDate?: Date;\r\n\ttoDate?: Date;\r\n\r\n\tselectedOrganizations: string[];\r\n\r\n\torganizationTree: TreeNode;\r\n\tselectedNodeId?: string;\r\n\r\n\tvisibleReport: boolean;\r\n}\r\n","import { AxiosRequestConfig } from 'axios';\r\nimport { morphism } from 'morphism';\r\nimport { request } from '../../../config/utilities';\r\nimport {\r\n\tactivate_organization_url,\r\n\tadd_organization_url,\r\n\tcopy_organization_url,\r\n\tdeactivate_organization_url,\r\n\tdelete_organization_url,\r\n\tget_all_organizations_url,\r\n\tget_organization_parent_path_url,\r\n\tget_organization_url,\r\n\tsearch_in_organizations_url,\r\n\tupdate_organization_url,\r\n} from '../../../config/urls';\r\nimport { organizationMap, treeNodeMap } from './mapper';\r\n\r\nexport const getOrganizations = async (parentId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_all_organizations_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\tparentId: parentId,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\r\n\treturn {\r\n\t\ttotalCount: response.data.totalCount,\r\n\t\torganizations: morphism(organizationMap, response.data.organizations as any[]),\r\n\t};\r\n};\r\n\r\nexport const fetchOrganizationTree = async (parentId = '') => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_all_organizations_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\tparentId,\r\n\t\t},\r\n\t};\r\n\tconst response = await request(options);\r\n\treturn {\r\n\t\ttotalCount: response.data.totalCount,\r\n\t\torganizationsTree: morphism(treeNodeMap, response.data.organizations as []),\r\n\t};\r\n};\r\n\r\nexport const getOrganization = async (organizationId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_organization_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\torganizationId: organizationId,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\r\n\treturn morphism(organizationMap, response.data);\r\n};\r\n\r\nexport const searchOrganizations = async (orgName: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: search_in_organizations_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\torgName: orgName,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\r\n\treturn morphism(organizationMap, response.data as any[]);\r\n};\r\n\r\nexport const addOrganization = async (orgName: string, parentId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: add_organization_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tOrgName: orgName,\r\n\t\t\tParentId: parentId,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(options);\r\n\r\n\treturn morphism(organizationMap, response.data);\r\n};\r\n\r\nexport const copyOrganizationApi = async (fromOrganizationId: string, toOrganizationId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: copy_organization_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tCopyToOrganizationId: toOrganizationId,\r\n\t\t\tCopyFromOrganizationId: fromOrganizationId,\r\n\t\t},\r\n\t};\r\n\r\n\tawait request(options);\r\n};\r\n\r\nexport const updateOrganization = async (orgId: string, orgName: string, parentId: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: update_organization_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tOrgId: orgId,\r\n\t\t\tOrgName: orgName,\r\n\t\t\tParentId: parentId,\r\n\t\t},\r\n\t};\r\n\r\n\tawait request(options);\r\n};\r\n\r\nexport const deleteOrganization = async (id: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: delete_organization_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tOrgId: id,\r\n\t\t},\r\n\t};\r\n\r\n\tawait request(options);\r\n};\r\n\r\nexport const getOrganizationParentPath = async (id: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_organization_parent_path_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\tparentId: id,\r\n\t\t},\r\n\t};\r\n\r\n\treturn await request(options);\r\n};\r\n\r\nexport const activateOrganizationApi = async (id: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: activate_organization_url,\r\n\t\tmethod: 'POST',\r\n\r\n\t\tdata: { orgId: id },\r\n\t};\r\n\r\n\treturn await request(options);\r\n};\r\n\r\nexport const deactivateOrganizationApi = async (id: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: deactivate_organization_url,\r\n\t\tmethod: 'POST',\r\n\r\n\t\tdata: { orgId: id },\r\n\t};\r\n\r\n\treturn await request(options);\r\n};\r\n","import { ActionTypes, GetReportServerUrlResult } from './types';\r\nimport { AppAction } from '../../../../config/types';\r\n\r\nexport const getReportServerUri = (): AppAction => ({\r\n\ttype: ActionTypes.get_report_server_uri,\r\n});\r\n\r\nexport const getReportServerUriResult = (hasError: boolean, uri?: string ): GetReportServerUrlResult => ({\r\n\ttype: ActionTypes.get_report_server_uri_result,\r\n\thasError,\r\n\turi,\r\n});\r\n","import {\r\n\tActionTypes,\r\n\tSelectTaskTypeAction,\r\n\tSelectStatusAction,\r\n\tSelectOrganizationAction,\r\n\tChangeFromDateAction,\r\n\tChangeToDateAction,\r\n\tFetchTaskTypesResultAction,\r\n\tFetchOrganizationTreeAction,\r\n\tFetchOrganizationTreeResultAction,\r\n\tSetVisibleReportAction,\r\n} from './types';\r\n\r\nimport { TaskType } from '../../../TaskType/logic/types';\r\nimport { TaskStatus } from '../../../Tasks/logic/type';\r\nimport { AppAction, TreeNode } from '../../../../config/types';\r\n\r\nexport const selectTaskType = (taskType?: TaskType): SelectTaskTypeAction => ({\r\n\ttype: ActionTypes.select_task_type,\r\n\ttaskType,\r\n});\r\n\r\nexport const selectStatus = (status?: TaskStatus): SelectStatusAction => ({\r\n\ttype: ActionTypes.select_status,\r\n\t status,\r\n});\r\n\r\nexport const changeToDate = (toDate?: Date): ChangeToDateAction => ({\r\n\ttype: ActionTypes.change_to_date,\r\n\ttoDate,\r\n});\r\n\r\nexport const changeFromDate = (fromDate?: Date): ChangeFromDateAction => ({\r\n\ttype: ActionTypes.change_from_date,\r\n\tfromDate,\r\n});\r\n\r\nexport const changeIncludeChildren = (): AppAction => ({\r\n\ttype: ActionTypes.change_include_children,\r\n});\r\n\r\nexport const fetchTaskTypes = (): AppAction => ({\r\n\ttype: ActionTypes.fetch_task_types,\r\n});\r\n\r\nexport const fetchTaskTypesResult = (hasError: boolean, taskTypes?: []): FetchTaskTypesResultAction => ({\r\n\ttype: ActionTypes.fetch_fetch_task_types_result,\r\n\thasError,\r\n\ttaskTypes,\r\n});\r\n\r\nexport const fetchOrganizationTree = (parentId?: string): FetchOrganizationTreeAction => ({\r\n\ttype: ActionTypes.fetch_organization_tree,\r\n\tparentId,\r\n});\r\n\r\nexport const fetchOrganizationTreeResult = (hasError: boolean, parentId?: string, organizationTree?: TreeNode[]): FetchOrganizationTreeResultAction => ({\r\n\ttype: ActionTypes.fetch_organization_tree_result,\r\n\thasError,\r\n\tparentId,\r\n\torganizationTree,\r\n});\r\n\r\nexport const selectOrganization = (organizationId: string) : SelectOrganizationAction => ({\r\n\ttype: ActionTypes.select_organization,\r\n\torganizationId,\r\n});\r\n\r\nexport const manageToggleButton = (parentId?: string) => ({\r\n\ttype: ActionTypes.manage_toggle_button,\r\n\tparentId,\r\n});\r\n\r\nexport const resetData = () : AppAction => ({\r\n\ttype: ActionTypes.reset_data,\r\n});\r\n\r\nexport const searchTasksByOrganization = () : AppAction => ({\r\n\ttype: ActionTypes.search_tasks_by_organization,\r\n});\r\n\r\nexport const setVisibleReport = (visibleReport: boolean) : SetVisibleReportAction => ({\r\n\ttype: ActionTypes.set_visible_report,\r\n\tvisibleReport,\r\n});\r\n","import {\r\n\tActionTypes,\r\n\tChangeDelayDayAction,\r\n\tChangeFromDateAction,\r\n\tChangeToDateAction,\r\n\tFetchOrganizationTreeAction,\r\n\tFetchOrganizationTreeResultAction,\r\n\tFetchUsersWithOrgIdAction,\r\n\tFetchUsersWithOrgIdResultAction,\r\n\tSelectOrganizationAction,\r\n\tSelectUserAction,\r\n\tSetVisibleReportAction,\r\n} from './types';\r\nimport { AppAction, SelectableValue, TreeNode } from '../../../../config/types';\r\n\r\nexport const changeToDate = (toDate?: Date): ChangeToDateAction => ({\r\n\ttype: ActionTypes.change_to_date,\r\n\ttoDate,\r\n});\r\n\r\nexport const changeFromDate = (fromDate?: Date): ChangeFromDateAction => ({\r\n\ttype: ActionTypes.change_from_date,\r\n\tfromDate,\r\n});\r\n\r\nexport const changeDelayDay = (delayDay: string): ChangeDelayDayAction => ({\r\n\ttype: ActionTypes.change_delay_day,\r\n\tdelayDay,\r\n});\r\n\r\nexport const selectUser = (selectedUser?: SelectableValue): SelectUserAction => ({\r\n\ttype: ActionTypes.select_user,\r\n\tselectedUser,\r\n});\r\n\r\nexport const fetchOrganizationTree = (parentId?: string): FetchOrganizationTreeAction => ({\r\n\ttype: ActionTypes.fetch_organization_tree,\r\n\tparentId,\r\n});\r\n\r\nexport const fetchOrganizationTreeResult = (hasError: boolean, parentId?: string, organizationTree?: TreeNode[]): FetchOrganizationTreeResultAction => ({\r\n\ttype: ActionTypes.fetch_organization_tree_result,\r\n\thasError,\r\n\tparentId,\r\n\torganizationTree,\r\n});\r\n\r\nexport const selectOrganization = (organizationId: string): SelectOrganizationAction => ({\r\n\ttype: ActionTypes.select_organization,\r\n\torganizationId,\r\n});\r\n\r\nexport const manageToggleButton = (parentId?: string) => ({\r\n\ttype: ActionTypes.manage_toggle_button,\r\n\tparentId,\r\n});\r\n\r\nexport const resetData = (): AppAction => ({\r\n\ttype: ActionTypes.reset_data,\r\n});\r\n\r\nexport const searchLateTasksByEmployee = (): AppAction => ({\r\n\ttype: ActionTypes.search_late_tasks_for_employee,\r\n});\r\n\r\nexport const setVisibleReport = (visibleReport: boolean): SetVisibleReportAction => ({\r\n\ttype: ActionTypes.set_visible_report,\r\n\tvisibleReport,\r\n});\r\n\r\nexport const fetchUsersWithOrgId = (orgId: string): FetchUsersWithOrgIdAction => ({\r\n\ttype: ActionTypes.fetch_users_with_org_id,\r\n\torgId,\r\n});\r\n\r\nexport const fetchUsersWithOrgIdResult = (hasError: boolean, users: []): FetchUsersWithOrgIdResultAction => ({\r\n\ttype: ActionTypes.fetch_users_with_org_id_result,\r\n\thasError,\r\n\tusers,\r\n});\r\n","import { AppAction, AppResultAction } from '../../../config/types';\r\n\r\nexport enum ActionTypes {\r\n\tclear_directing_form = 'DIRECTING_FORM__CLEAR_DIRECTING_FORM',\r\n\ttoggle_is_directing_form_visible = 'DIRECTING_FORM__TOGGLE_IS_DIRECTING_FORM_VISIBLE',\r\n\tfetch_refferal_form_file = 'DIRECTING_FORM__FETCH_REFFERAL_FORM_FILE',\r\n\tfetch_refferal_form_file_result = 'DIRECTING_FORM__FETCH_REFFERAL_FORM_FILE_RESULT',\r\n\tadd_refferal_form_file = 'DIRECTING_FORM__ADD_REFFERAL_FORM_FILE',\r\n\tadd_refferal_form_file_result = 'DIRECTING_FORM__ADD_REFFERAL_FORM_FILE_RESULT',\r\n\ttoggel_is_pdf_viewer_visible = 'DIRECTING_FORM__TOGGEL_IS_PDF_VIEWER_VISIBLE',\r\n}\r\n\r\nexport interface ToggleIsDirectingFormVisibleAction extends AppAction {\r\n\ttype: ActionTypes.toggle_is_directing_form_visible;\r\n\tvisible: boolean;\r\n}\r\n\r\nexport interface FetchRefferalFormFileResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_refferal_form_file_result;\r\n\tfileURL?: string;\r\n}\r\n\r\nexport interface ToggelIsPdfViewerVisibleAction extends AppAction {\r\n\ttype: ActionTypes.toggel_is_pdf_viewer_visible;\r\n\tvisible: boolean;\r\n}\r\n\r\nexport type Action =\r\n\t& AppAction\r\n\t& AppResultAction\r\n\t& ToggleIsDirectingFormVisibleAction\r\n\t& ToggelIsPdfViewerVisibleAction\r\n\t& FetchRefferalFormFileResultAction\r\n\r\nexport interface State {\r\n\tisDirectingFormVisible: boolean;\r\n\tisPDFViewerVisible: boolean;\r\n\tfileURL?: string;\r\n}\r\n","import { AppAction, AppResultAction } from '../../../config/types';\r\n\r\nexport enum ActionTypes {\r\n\tclear_change_password = 'CHANGE_PASSWORD__CLEAR_CHANGE_PASSWORD',\r\n\ttoggle_is_modal_visible = 'CHANGE_PASSWORD__TOGGLE_IS_MODAL_VISIBLE',\r\n\tchange_old_password = 'CHANGE_PASSWORD__CHANGE_OLD_PASSWORD',\r\n\tchange_new_password = 'CHANGE_PASSWORD__CHANGE_NEW_PASSWORD',\r\n\tchange_password = 'CHANGE_PASSWORD__CHANGE_PASSWORD',\r\n\tchange_password_result = 'CHANGE_PASSWORD__CHANGE_PASSWORD_RESULT',\r\n\tchange_confirm_password = 'CHANGE_PASSWORD__CHANGE_CONFIRM_PASSWORD',\r\n}\r\n\r\nexport interface ToggleIsModalVisibleAction extends AppAction {\r\n\ttype: ActionTypes.toggle_is_modal_visible;\r\n\tvisible: boolean;\r\n}\r\n\r\nexport interface ChangeOldPasswordAction extends AppAction {\r\n\ttype: ActionTypes.change_old_password;\r\n\toldPassword: string;\r\n}\r\n\r\nexport interface ChangeNewPasswordAction extends AppAction {\r\n\ttype: ActionTypes.change_new_password;\r\n\tnewPassword: string;\r\n}\r\n\r\nexport interface ChangeConfirmPasswordAction extends AppAction {\r\n\ttype: ActionTypes.change_confirm_password;\r\n\tpassword: string;\r\n}\r\n\r\nexport type Action =\r\n\t& AppAction\r\n\t& AppResultAction\r\n\t& ToggleIsModalVisibleAction\r\n\t& ChangeOldPasswordAction\r\n\t& ChangeNewPasswordAction\r\n\t& ChangeConfirmPasswordAction;\r\n\r\nexport interface State {\r\n\tisModalVisible: boolean;\r\n\toldPassword: string;\r\n\tnewPassword: string;\r\n\tconfirmPassword: string;\r\n}","import {\r\n\tActionTypes,\r\n\tChangeSearchCriteriaEndDateAction,\r\n\tChangeSearchCriteriaStartDateAction,\r\n\tFetchRecordsAction,\r\n\tFetchRecordsResultAction,\r\n\tFetchSystemActionsResultAction,\r\n\tRecord,\r\n\tRemoveAllRecordsResultAction,\r\n\tSelectSearchCriteriaSystemActionAction,\r\n\tSelectSearchCriteriaUserAction, SystemAction,\r\n} from './types';\r\n\r\nimport { AppAction, SelectableValue } from '../../../config/types';\r\n\r\nexport const fetchSystemActions = (): AppAction => ({\r\n\ttype: ActionTypes.fetch_system_actions,\r\n});\r\nexport const fetchSystemActionResult = (hasError: boolean, systemActions?: SystemAction[]): FetchSystemActionsResultAction => ({\r\n\ttype: ActionTypes.fetch_system_actions_result,\r\n\thasError,\r\n\tsystemActions,\r\n});\r\n\r\nexport const selectSearchCriteriaSystemAction = (systemAction?: SystemAction): SelectSearchCriteriaSystemActionAction => ({\r\n\ttype: ActionTypes.select_search_criteria_system_action,\r\n\tsystemAction,\r\n});\r\nexport const selectSearchCriteriaUser = (user?: SelectableValue): SelectSearchCriteriaUserAction => ({\r\n\ttype: ActionTypes.select_search_criteria_user,\r\n\tuser,\r\n});\r\nexport const changeSearchCriteriaStartDate = (startDate?: Date): ChangeSearchCriteriaStartDateAction => ({\r\n\ttype: ActionTypes.change_search_criteria_start_date,\r\n\tstartDate,\r\n});\r\nexport const changeSearchCriteriaEndDate = (endDate?: Date): ChangeSearchCriteriaEndDateAction => ({\r\n\ttype: ActionTypes.change_search_criteria_end_date,\r\n\tendDate,\r\n});\r\n\r\nexport const fetchRecords = (pageNumber: number, pageSize: number): FetchRecordsAction => ({\r\n\ttype: ActionTypes.fetch_records,\r\n\tpageNumber,\r\n\tpageSize,\r\n});\r\nexport const fetchRecordsResult = (hasError: boolean, records?: Record[], totalCount?: number): FetchRecordsResultAction => ({\r\n\ttype: ActionTypes.fetch_records_result,\r\n\thasError,\r\n\trecords,\r\n\ttotalCount,\r\n});\r\n\r\nexport const removeAllRecords = (): AppAction => ({\r\n\ttype: ActionTypes.remove_all_records,\r\n});\r\nexport const removeAllRecordsResult = (hasError: boolean): RemoveAllRecordsResultAction => ({\r\n\ttype: ActionTypes.remove_all_records_result,\r\n\thasError,\r\n});\r\n\r\nexport const clearAuditingData = () => ({\r\n\ttype: ActionTypes.clear_auditing_data,\r\n});\r\n\r\n","import {\r\n\tActionTypes,\r\n\tEsRequest,\r\n\tEsRequestStatus,\r\n\tChangeEsRequestStatusAction,\r\n\tFetchEsRequestsAction,\r\n\tFetchEsRequestsResultAction,\r\n\tClosedEsRequestAction,\r\n} from './types';\r\n\r\nexport const changeEsRequestStatus = (esRequestStatus: EsRequestStatus): ChangeEsRequestStatusAction => ({\r\n\ttype: ActionTypes.change_es_request_status,\r\n\tesRequestStatus,\r\n});\r\nexport const fetchEsRequests = (pageNumber: number): FetchEsRequestsAction => ({\r\n\ttype: ActionTypes.fetch_es_requests,\r\n\tpageNumber,\r\n});\r\nexport const reFetchEsRequests = (): FetchEsRequestsAction => ({\r\n\ttype: ActionTypes.re_fetch_es_requests,\r\n\tpageNumber: 1,\r\n});\r\nexport const fetchEsRequestsResult = (hasError: boolean, esRequests?: EsRequest[], totalCount?: number): FetchEsRequestsResultAction => ({\r\n\ttype: ActionTypes.fetch_es_requests_result,\r\n\thasError,\r\n\tesRequests,\r\n\ttotalCount,\r\n});\r\n\r\nexport const closedEsRequest = (esRequestId: string): ClosedEsRequestAction => ({\r\n\ttype: ActionTypes.closed_es_request,\r\n\tesRequestId\r\n});\r\n\r\nexport const clearEsRequestsData = () => ({\r\n\ttype: ActionTypes.clear_es_requests_data,\r\n});\r\n","import {\r\n\tActionTypes,\r\n\tSelectOrganizationAction,\r\n\tChangeFromDateAction,\r\n\tChangeToDateAction,\r\n\tChangeDelayDayAction,\r\n\tFetchOrganizationTreeAction,\r\n\tFetchOrganizationTreeResultAction,\r\n\tSetVisibleReportAction,\r\n} from './types';\r\nimport { AppAction, TreeNode } from '../../../../config/types';\r\n\r\nexport const changeToDate = (toDate?: Date): ChangeToDateAction => ({\r\n\ttype: ActionTypes.change_to_date,\r\n\ttoDate,\r\n});\r\n\r\nexport const changeFromDate = (fromDate?: Date): ChangeFromDateAction => ({\r\n\ttype: ActionTypes.change_from_date,\r\n\tfromDate,\r\n});\r\n\r\nexport const changeDelayDay = (delayDay: string): ChangeDelayDayAction => ({\r\n\ttype: ActionTypes.change_delay_day,\r\n\tdelayDay,\r\n});\r\n\r\nexport const changeIncludeChildren = (): AppAction => ({\r\n\ttype: ActionTypes.change_include_children,\r\n});\r\n\r\nexport const fetchOrganizationTree = (parentId?: string): FetchOrganizationTreeAction => ({\r\n\ttype: ActionTypes.fetch_organization_tree,\r\n\tparentId,\r\n});\r\n\r\nexport const fetchOrganizationTreeResult = (hasError: boolean, parentId?: string, organizationTree?: TreeNode[]): FetchOrganizationTreeResultAction => ({\r\n\ttype: ActionTypes.fetch_organization_tree_result,\r\n\thasError,\r\n\tparentId,\r\n\torganizationTree,\r\n});\r\n\r\nexport const selectOrganization = (organizationId: string) : SelectOrganizationAction => ({\r\n\ttype: ActionTypes.select_organization,\r\n\torganizationId,\r\n});\r\n\r\nexport const manageToggleButton = (parentId?: string) => ({\r\n\ttype: ActionTypes.manage_toggle_button,\r\n\tparentId,\r\n});\r\n\r\nexport const resetData = () : AppAction => ({\r\n\ttype: ActionTypes.reset_data,\r\n});\r\n\r\nexport const searchLateTasksForOrganization = () : AppAction => ({\r\n\ttype: ActionTypes.search_late_tasks_for_organization,\r\n});\r\n\r\nexport const setVisibleReport = (visibleReport: boolean) : SetVisibleReportAction => ({\r\n\ttype: ActionTypes.set_visible_report,\r\n\tvisibleReport,\r\n});\r\n","import React, { AnchorHTMLAttributes, ButtonHTMLAttributes } from 'react';\r\nimport { RouteName, routes } from '../../config/router';\r\nimport { PermissionName } from '../../config/types';\r\nimport PermissionContainer from '../Permission/PermissionContainer';\r\nimport { useDispatch } from '../../config/store';\r\nimport { navigate } from '../../processes/Services/actions';\r\n\r\ntype Color =\r\n\t'dark-blue'\r\n\t| 'red-1'\r\n\t| 'orange'\r\n\t| 'dark-green'\r\n\t| 'd-red-1'\r\n\t| 'green-m-1'\r\n\t| 'orange-1'\r\n\t| 'aqua'\r\n\t| 'blue-d-1'\r\n\t| 'red-d'\r\n\t| 'light-blue'\r\n\t| 'blue-l-1'\r\n\t| 'blue-d-3'\r\n\t| 'purple-d'\r\n\t| 'purple-d-1'\r\n\t| 'blue-m-3'\r\n\t| 'green-d-3'\r\n\t| 'gray'\r\n\t| 'dark-orange'\r\n\t| 'red-3-m';\r\ntype Icon =\r\n\t'export'\r\n\t| 'print'\r\n\t| 'confirm'\r\n\t| 'brush'\r\n\t| 'send'\r\n\t| 'file'\r\n\t| 'search'\r\n\t| 'view'\r\n\t| 'add'\r\n\t| 'edit'\r\n\t| 'delete'\r\n\t| 'reset'\r\n\t| 'cancel'\r\n\t| 'new'\r\n\t| 'import'\r\n\t| 'redirect'\r\n\t| 'preview'\r\n\t| 'login'\r\n\t| 'more'\r\n\t| 'undo'\r\n\t| 'discard'\r\n\t| 'create'\r\n\t| 'sort'\r\n\t| 'addToCart'\r\n\t| 'removeFromCart'\r\n\t| 'file-black'\r\n\t| 'next'\r\n\t| 'prev';\r\nexport type Template =\r\n\t'export'\r\n\t| 'print'\r\n\t| 'confirm-task'\r\n\t| 'e-sign'\r\n\t| 'send'\r\n\t| 'assign'\r\n\t| 'search'\r\n\t| 'view'\r\n\t| 'add'\r\n\t| 'edit'\r\n\t| 'delete'\r\n\t| 'reset'\r\n\t| 'cancel'\r\n\t| 'new'\r\n\t| 'save'\r\n\t| 'delay'\r\n\t| 'show-task-info'\r\n\t| 'accept'\r\n\t| 'login-as-another-user'\r\n\t| 'set-as-task-reply'\r\n\t| 'retrieve'\r\n\t| 'ignore-delegation-and-continue'\r\n\t| 'go-back'\r\n\t| 'close'\r\n\t| 'reject'\r\n\t| 'under-construction'\r\n\t| 'postpone'\r\n\t| 'compilation'\r\n\t| 'sort'\r\n\t| 'completion-rate'\r\n\t| 'add-to-cart'\r\n\t| 'logout'\r\n\t| 'remove-from-cart';\r\n\r\nexport const iconMap: { [key in Icon]: string } = {\r\n\t'export': require('../../assets/img/export.svg'),\r\n\t'print': require('../../assets/img/print.svg'),\r\n\t'confirm': require('../../assets/img/confirm.svg'),\r\n\t'brush': require('../../assets/img/sign.svg'),\r\n\t'send': require('../../assets/img/send-btn.svg'),\r\n\t'file': require('../../assets/img/assign-btn.svg'),\r\n\t'file-black': require('../../assets/img/assign-btn-black.svg'),\r\n\t'search': require('../../assets/img/search-white.svg'),\r\n\t'view': require('../../assets/img/show-btn.svg'),\r\n\t'add': require('../../assets/img/plus.svg'),\r\n\t'edit': require('../../assets/img/edit-1.svg'),\r\n\t'delete': require('../../assets/img/delete-btn.svg'),\r\n\t'reset': require('../../assets/img/reset-btn.svg'),\r\n\t'cancel': require('../../assets/img/cancel-btn.svg'),\r\n\t'new': require('../../assets/img/new-btn.svg'),\r\n\t'import': require('../../assets/img/import-btn.svg'),\r\n\t'redirect': require('../../assets/img/redirect-btn.svg'),\r\n\t'preview': require('../../assets/img/preview-btn.svg'),\r\n\t'login': require('../../assets/img/login-btn.svg'),\r\n\t'more': require('../../assets/img/more-btn.svg'),\r\n\t'undo': require('../../assets/img/undo-btn.svg'),\r\n\t'discard': require('../../assets/img/discard-btn.svg'),\r\n\t'create': require('../../assets/img/plus-1.svg'),\r\n\t'sort': require('../../assets/img/sort.svg'),\r\n\t'addToCart': require('../../assets/img/add-to-cart.svg'),\r\n\t'removeFromCart': require('../../assets/img/remove-from-cart.svg'),\r\n\t'next': require('../../assets/img/next.svg'),\r\n\t'prev': require('../../assets/img/prev.svg'),\r\n};\r\n\r\nconst templates: { [key in Template]: { color: Color, icon: Icon, title: string } } = {\r\n\t'export': { title: 'تصدير', color: 'dark-blue', icon: 'export' },\r\n\t'print': { title: 'طباعة', color: 'red-1', icon: 'print' },\r\n\t'confirm-task': { title: 'تأكيد الإنجاز', color: 'dark-blue', icon: 'confirm' },\r\n\t'e-sign': { title: 'توقيع إلكتروني', color: 'orange', icon: 'brush' },\r\n\t'send': { title: 'إرسال', color: 'dark-green', icon: 'send' },\r\n\t'assign': { title: 'إسناد', color: 'd-red-1', icon: 'file' },\r\n\t'search': { title: 'بحث', color: 'green-m-1', icon: 'search' },\r\n\t'view': { title: 'عرض', color: 'orange-1', icon: 'view' },\r\n\t'add': { title: 'إضافة', color: 'aqua', icon: 'add' },\r\n\t'edit': { title: 'تعديل', color: 'blue-d-1', icon: 'edit' },\r\n\t'delete': { title: 'حذف', color: 'red-d', icon: 'delete' },\r\n\t'reset': { title: 'إعادة', color: 'light-blue', icon: 'reset' },\r\n\t'cancel': { title: 'إلغاء', color: 'red-d', icon: 'cancel' },\r\n\t'new': { title: 'جديد', color: 'blue-l-1', icon: 'new' },\r\n\t'save': { title: 'حفظ', color: 'blue-d-3', icon: 'edit' },\r\n\t'delay': { title: 'متأخرة', color: 'purple-d', icon: 'redirect' },\r\n\t'show-task-info': { title: 'إظهار معلومات مهمة', color: 'purple-d-1', icon: 'preview' },\r\n\t'accept': { title: 'مقبول', color: 'blue-m-3', icon: 'confirm' },\r\n\t'login-as-another-user': { title: 'دخول كممثل عن المستخدم', color: 'green-d-3', icon: 'login' },\r\n\t'set-as-task-reply': { title: 'تعيين كرد على المهمة', color: 'gray', icon: 'more' },\r\n\t'retrieve': { title: 'إسترجاع', color: 'dark-orange', icon: 'undo' },\r\n\t'ignore-delegation-and-continue': { title: 'تجاهل التفويض والمتابعة', color: 'red-3-m', icon: 'discard' },\r\n\t'go-back': { title: 'رجوع', color: 'gray', icon: 'undo' },\r\n\t'close': { title: 'اغلاق', color: 'gray', icon: 'cancel' },\r\n\t'reject': { title: 'رفض', color: 'red-3-m', icon: 'discard' },\r\n\t'under-construction': { title: 'تحت التنفيذ', color: 'dark-green', icon: 'view' },\r\n\t'compilation': { title: 'إنجاز', color: 'aqua', icon: 'view' },\r\n\t'postpone': { title: 'تعليق', color: 'purple-d-1', icon: 'more' },\r\n\t'sort': { title: 'عكس الترتيب', color: 'aqua', icon: 'sort' },\r\n\t'completion-rate': { title: 'نسبة الإنجاز', color: 'blue-l-1', icon: 'view' },\r\n\t'add-to-cart': { title: 'إضافة إلى سلة المهام', color: 'green-m-1', icon: 'addToCart' },\r\n\t'remove-from-cart': { title: 'إزالة من سلة المهام', color: 'red-1', icon: 'removeFromCart' },\r\n\t'logout': { title: 'تسجيل الخروج', color: 'gray', icon: 'cancel' }\r\n};\r\n\r\ntype SomeType = ButtonHTMLAttributes | AnchorHTMLAttributes;\r\n\r\ntype Props = SomeType & {\r\n\tcolor?: Color,\r\n\ticon?: Icon,\r\n\ttitle?: string,\r\n\r\n\ttemplate?: Template,\r\n\tmode?: 'normal' | 'borderless',\r\n\r\n\tpermissionName?: PermissionName,\r\n\trouteName?: RouteName,\r\n\ticonless?: boolean;\r\n}\r\n\r\nconst Button = (props: Props) => {\r\n\tconst dispatch = useDispatch();\r\n\r\n\tconst { className, color, icon, title, template, mode, permissionName, routeName, children, iconless, ...remainingProps } = props;\r\n\tconst { onClick, ...remainingAnchorProps } = remainingProps as AnchorHTMLAttributes;\r\n\tconst remainingButtonProps = remainingProps as ButtonHTMLAttributes;\r\n\r\n\tconst finalColor = color || (template && templates[template].color) || 'gray';\r\n\tconst finalIcon = icon || (template && templates[template].icon);\r\n\tconst finalTitle = title || (template && templates[template].title);\r\n\tconst finalClassName = `${className || ''} ${mode === 'borderless' ? 'link-add' : `link-w-icon ${finalColor}`}`;\r\n\tconst finalImgClassName = mode === 'borderless' ? 'img-h-1' : 'img-m-links';\r\n\r\n\tconst renderContent = (\r\n\t\t<>\r\n\t\t\t{finalTitle}\r\n\t\t\t{(finalIcon && !iconless) &&\r\n\t\t\t{finalTitle}}\r\n\t\t\r\n\t);\r\n\r\n\tconst renderButton = () => {\r\n\t\tif (routeName) {\r\n\t\t\tconst onLinkClicked = (event: React.MouseEvent) => {\r\n\t\t\t\tevent.preventDefault();\r\n\t\t\t\tdispatch(navigate(routeName));\r\n\t\t\t};\r\n\r\n\t\t\treturn (\r\n\t\t\t\t\r\n\t\t\t\t\t{renderContent}\r\n\t\t\t\t\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t{renderContent}\r\n\t\t\t\r\n\t\t);\r\n\t};\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t{renderButton()}\r\n\t\t\r\n\t);\r\n};\r\n\r\nButton.defaultProps = {\r\n\tmode: 'normal',\r\n\ticonless: false,\r\n};\r\n\r\nexport default Button;\r\n","import { AppAction, AppResultAction } from '../../../config/types';\r\nimport { TaskHeader } from '../../Tasks/logic/type';\r\n\r\nexport enum ActionTypes {\r\n\tadd_task_to_cart = 'TASKS__ADD_TASK_TO_CART',\r\n\tremove_task_from_cart = 'TASKS__REMOVE_TASK_FROM_CART',\r\n\tremove_task_from_cart_by_user_task = 'TASKS__REMOVE_TASK_FROM_CART_BY_USER_TASK',\r\n\tclear_tasks_cart = 'TASKS__CLEAR_TASKS_CART',\r\n\tfetch_max_task_in_cart = 'TASKS__FETCH_MAX_TASK_IN_CART',\r\n\tfetch_max_task_in_cart_result = 'TASKS__FETCH_MAX_TASK_IN_CART_RESULT'\r\n}\r\n\r\nexport interface AddTaskToCartAction {\r\n\ttype: ActionTypes.add_task_to_cart;\r\n\ttaskHeader: TaskHeader;\r\n}\r\n\r\nexport interface RemoveTaskFromCartAction {\r\n\ttype: ActionTypes.remove_task_from_cart;\r\n\tuserTaskId: string;\r\n}\r\n\r\nexport interface RemoveTaskFromCartByUserTaskAction extends AppAction {\r\n\ttype: ActionTypes.remove_task_from_cart_by_user_task;\r\n\ttaskId: string;\r\n}\r\n\r\nexport interface ClearTasksCartAction extends AppAction {\r\n\ttype: ActionTypes.clear_tasks_cart;\r\n\tfailedTasks: string[]\r\n}\r\n\r\nexport interface FetchMaxTaskInCartResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_max_task_in_cart_result,\r\n\tmaxTaskInCart?: number\r\n}\r\n\r\nexport type Action =\r\n\tAppAction\r\n\t& AddTaskToCartAction\r\n\t& RemoveTaskFromCartAction\r\n\t& ClearTasksCartAction\r\n\t& RemoveTaskFromCartByUserTaskAction\r\n\t& FetchMaxTaskInCartResultAction\r\n\r\nexport interface State {\r\n\ttasksCart: TaskHeader[],\r\n\tmaximumTasksInCart: number;\r\n}\r\n","import { AppAction, AppResultAction } from '../../../config/types';\r\nimport {\r\n\tActionTypes,\r\n\tFetchRefferalFormFileResultAction,\r\n\tToggelIsPdfViewerVisibleAction,\r\n\tToggleIsDirectingFormVisibleAction,\r\n} from './types';\r\n\r\nexport const clearDirectingForm = (): AppAction => ({\r\n\ttype: ActionTypes.clear_directing_form,\r\n});\r\n\r\nexport const toggleIsDirectingFormVisible = (visible: boolean): ToggleIsDirectingFormVisibleAction => ({\r\n\ttype: ActionTypes.toggle_is_directing_form_visible,\r\n\tvisible,\r\n});\r\n\r\nexport const fetchRefferalFormFile = (): AppAction => ({\r\n\ttype: ActionTypes.fetch_refferal_form_file,\r\n\r\n});\r\n\r\nexport const fetchRefferalFormFileResult = (hasError: boolean, fileURL?: string): FetchRefferalFormFileResultAction => ({\r\n\ttype: ActionTypes.fetch_refferal_form_file_result,\r\n\thasError,\r\n\tfileURL,\r\n});\r\n\r\nexport const addRefferalFormFile = (): AppAction => ({\r\n\ttype: ActionTypes.add_refferal_form_file,\r\n\r\n});\r\n\r\nexport const addRefferalFormFileResult = (hasError: boolean): AppResultAction => ({\r\n\ttype: ActionTypes.add_refferal_form_file_result,\r\n\thasError,\r\n});\r\n\r\nexport const toggelIsPdfViewerVisible = (visible: boolean): ToggelIsPdfViewerVisibleAction => ({\r\n\ttype: ActionTypes.toggel_is_pdf_viewer_visible,\r\n\tvisible,\r\n});\r\n","import {\r\n\tActionTypes, ChangeFromDateAction, ChangeToDateAction,\r\n\tFetchOrganizationTreeAction,\r\n\tFetchOrganizationTreeResultAction,\r\n\tSelectOrganizationAction,\r\n\tSetVisibleReportAction,\r\n} from './types';\r\nimport { AppAction, TreeNode } from '../../../../config/types';\r\n\r\nexport const changeIncludeChildren = (): AppAction => ({\r\n\ttype: ActionTypes.change_include_children,\r\n});\r\n\r\nexport const fetchOrganizationTree = (parentId?: string): FetchOrganizationTreeAction => ({\r\n\ttype: ActionTypes.fetch_organization_tree,\r\n\tparentId,\r\n});\r\n\r\nexport const fetchOrganizationTreeResult = (hasError: boolean, parentId?: string, organizationTree?: TreeNode[]): FetchOrganizationTreeResultAction => ({\r\n\ttype: ActionTypes.fetch_organization_tree_result,\r\n\thasError,\r\n\tparentId,\r\n\torganizationTree,\r\n});\r\n\r\nexport const changeToDate = (toDate?: Date): ChangeToDateAction => ({\r\n\ttype: ActionTypes.change_to_date,\r\n\ttoDate,\r\n});\r\n\r\nexport const changeFromDate = (fromDate?: Date): ChangeFromDateAction => ({\r\n\ttype: ActionTypes.change_from_date,\r\n\tfromDate,\r\n});\r\n\r\nexport const manageToggleButton = (parentId?: string) => ({\r\n\ttype: ActionTypes.manage_toggle_button,\r\n\tparentId,\r\n});\r\n\r\nexport const selectOrganization = (organizationId: string): SelectOrganizationAction => ({\r\n\ttype: ActionTypes.select_organization,\r\n\torganizationId,\r\n});\r\n\r\nexport const resetSearchCriteriaData = (): AppAction => ({\r\n\ttype: ActionTypes.reset_search_criteria_data,\r\n});\r\n\r\nexport const searchMainOrgTaskStatusSaga = () : AppAction => ({\r\n\ttype: ActionTypes.search_main_org_task_status,\r\n});\r\n\r\nexport const setVisibleReport = (visibleReport: boolean) : SetVisibleReportAction => ({\r\n\ttype: ActionTypes.set_visible_report,\r\n\tvisibleReport,\r\n});\r\n","import {\r\n\tActionTypes,\r\n\tSelectOrganizationAction,\r\n\tChangeFromDateAction,\r\n\tChangeToDateAction,\r\n\tFetchOrganizationTreeAction,\r\n\tFetchOrganizationTreeResultAction,\r\n\tSetVisibleReportAction,\r\n} from './types';\r\nimport { AppAction, TreeNode } from '../../../../config/types';\r\n\r\nexport const changeToDate = (toDate?: Date): ChangeToDateAction => ({\r\n\ttype: ActionTypes.change_to_date,\r\n\ttoDate,\r\n});\r\n\r\nexport const changeFromDate = (fromDate?: Date): ChangeFromDateAction => ({\r\n\ttype: ActionTypes.change_from_date,\r\n\tfromDate,\r\n});\r\n\r\nexport const changeIncludeChildren = (): AppAction => ({\r\n\ttype: ActionTypes.change_include_children,\r\n});\r\n\r\nexport const fetchOrganizationTree = (parentId?: string): FetchOrganizationTreeAction => ({\r\n\ttype: ActionTypes.fetch_organization_tree,\r\n\tparentId,\r\n});\r\n\r\nexport const fetchOrganizationTreeResult = (hasError: boolean, parentId?: string, organizationTree?: TreeNode[]): FetchOrganizationTreeResultAction => ({\r\n\ttype: ActionTypes.fetch_organization_tree_result,\r\n\thasError,\r\n\tparentId,\r\n\torganizationTree,\r\n});\r\n\r\nexport const selectOrganization = (organizationId: string) : SelectOrganizationAction => ({\r\n\ttype: ActionTypes.select_organization,\r\n\torganizationId,\r\n});\r\n\r\nexport const manageToggleButton = (parentId?: string) => ({\r\n\ttype: ActionTypes.manage_toggle_button,\r\n\tparentId,\r\n});\r\n\r\nexport const resetData = () : AppAction => ({\r\n\ttype: ActionTypes.reset_data,\r\n});\r\n\r\nexport const searchGetTaskPercentageForEmployeesInOrgDetails = () : AppAction => ({\r\n\ttype: ActionTypes.search_get_task_percentage_for_employees_in_org_details,\r\n});\r\n\r\nexport const setVisibleReport = (visibleReport: boolean) : SetVisibleReportAction => ({\r\n\ttype: ActionTypes.set_visible_report,\r\n\tvisibleReport,\r\n});\r\n","import {\r\n\tActionTypes, ChangeFromDateAction, ChangeToDateAction,\r\n\tFetchOrganizationTreeAction,\r\n\tFetchOrganizationTreeResultAction,\r\n\tSelectOrganizationAction,\r\n\tSetVisibleReportAction,\r\n} from './types';\r\nimport { AppAction, TreeNode } from '../../../../config/types';\r\n\r\nexport const changeIncludeChildren = (): AppAction => ({\r\n\ttype: ActionTypes.change_include_children,\r\n});\r\n\r\nexport const fetchOrganizationTree = (parentId?: string): FetchOrganizationTreeAction => ({\r\n\ttype: ActionTypes.fetch_organization_tree,\r\n\tparentId,\r\n});\r\n\r\nexport const fetchOrganizationTreeResult = (hasError: boolean, parentId?: string, organizationTree?: TreeNode[]): FetchOrganizationTreeResultAction => ({\r\n\ttype: ActionTypes.fetch_organization_tree_result,\r\n\thasError,\r\n\tparentId,\r\n\torganizationTree,\r\n});\r\n\r\nexport const changeToDate = (toDate?: Date): ChangeToDateAction => ({\r\n\ttype: ActionTypes.change_to_date,\r\n\ttoDate,\r\n});\r\n\r\nexport const changeFromDate = (fromDate?: Date): ChangeFromDateAction => ({\r\n\ttype: ActionTypes.change_from_date,\r\n\tfromDate,\r\n});\r\n\r\nexport const manageToggleButton = (parentId?: string) => ({\r\n\ttype: ActionTypes.manage_toggle_button,\r\n\tparentId,\r\n});\r\n\r\nexport const selectOrganization = (organizationId: string): SelectOrganizationAction => ({\r\n\ttype: ActionTypes.select_organization,\r\n\torganizationId,\r\n});\r\n\r\nexport const resetSearchCriteriaData = (): AppAction => ({\r\n\ttype: ActionTypes.reset_search_criteria_data,\r\n});\r\n\r\nexport const searchGetTaskPercentageForOrgDetails = () : AppAction => ({\r\n\ttype: ActionTypes.search_get_task_percentage_for_orgs_details,\r\n});\r\n\r\nexport const setVisibleReport = (visibleReport: boolean) : SetVisibleReportAction => ({\r\n\ttype: ActionTypes.set_visible_report,\r\n\tvisibleReport,\r\n});\r\n","import { morphism, Schema } from 'morphism';\r\nimport { Organization } from './types';\r\nimport { TreeNode } from '../../../config/types';\r\n\r\nexport const organizationMap: Schema = {\r\n\tid: (obj: any) => obj.orgID || obj.organizationId,\r\n\tname: (obj: any) => obj.orgName || obj.organizationName,\r\n\tparentPath: 'orgPath',\r\n\r\n\t// @ts-ignore\r\n\tparent: {\r\n\t\tpath: 'parent',\r\n\t\tfn: (value: any) => morphism(organizationMap, value),\r\n\t},\r\n\tactive: 'active',\r\n};\r\n\r\nexport const treeNodeMap: Schema = {\r\n\tid: 'orgID',\r\n\tname: 'orgName',\r\n\tloading: () => false,\r\n\tcollapsed: () => true,\r\n\tchildren: iteratee => [],\r\n};\r\n","import { Action as ReduxAction } from 'redux';\r\n\r\nexport enum ActionTypes {\r\n\tchange_is_logged_in = 'STORAGE__CHANGE_IS_LOGGED_IN',\r\n\tchange_access_token = 'STORAGE__CHANGE_ACCESS_TOKEN',\r\n\tchange_calendar = 'STORAGE__CHANGE_CALENDAR',\r\n\tclear_all_storage = 'STORAGE__CLEAR_ALL_STORAGE',\r\n\tchange_delegation_id = 'STORAGE__CHANGE_DELEGATION_ID',\r\n\tchange_login_as_user_id = 'STORAGE__change_login_as_user_id',\r\n}\r\n\r\nexport interface StorageAction extends ReduxAction {\r\n}\r\n\r\nexport interface ChangeCalendarAction extends StorageAction {\r\n\ttype: ActionTypes.change_calendar,\r\n\tcalendar?: 'gregorian' | 'hijri';\r\n}\r\n\r\nexport interface ChangeIsLoggedInAction extends StorageAction {\r\n\ttype: ActionTypes.change_is_logged_in,\r\n\tisLoggedIn: boolean\r\n}\r\n\r\nexport interface ChangeAccessTokenAction extends StorageAction {\r\n\ttype: ActionTypes.change_access_token,\r\n\taccessToken: string,\r\n\trefreshToken?: string,\r\n}\r\n\r\nexport interface ChangeDelegationIdAction extends StorageAction {\r\n\ttype: ActionTypes.change_delegation_id,\r\n\tdelegationId: string,\r\n}\r\n\r\nexport interface ChangeLoginAsUserIdAction extends StorageAction {\r\n\ttype: ActionTypes.change_login_as_user_id,\r\n\tloginAsUserId: string,\r\n}\r\n\r\nexport type Action =\r\n\t& StorageAction\r\n\t& ChangeIsLoggedInAction\r\n\t& ChangeAccessTokenAction\r\n\t& ChangeCalendarAction\r\n\t& ChangeDelegationIdAction\r\n\t& ChangeLoginAsUserIdAction;\r\n\r\nexport interface State {\r\n\tisLoggedIn: boolean;\r\n\taccessToken: string;\r\n\trefreshToken?: string;\r\n\tcalendar?: 'gregorian' | 'hijri';\r\n\tdelegationId?: string;\r\n\tloginAsUserId?: string;\r\n}\r\n","import { AppAction } from '../../../config/types';\r\nimport {\r\n\tActionTypes,\r\n\tSearchIndex,\r\n\tChangeSearchPathAction,\r\n\tFetchAllIndexResultAction,\r\n\tFetchDefaultPathResultAction,\r\n\tResetAllIndexAction,\r\n\tUpdatePathIndexResultAction,\r\n} from './types';\r\n\r\nexport const fetchDefultPath = (): AppAction => ({\r\n\ttype: ActionTypes.fetch_default_path,\r\n});\r\nexport const fetchDefaultPathResult = (hasError: boolean, path: string): FetchDefaultPathResultAction => ({\r\n\ttype: ActionTypes.fetch_default_path_result,\r\n\thasError,\r\n\tpath,\r\n});\r\n\r\nexport const changeSearchPath = (path: string): ChangeSearchPathAction => ({\r\n\ttype: ActionTypes.change_search_text,\r\n\tpath,\r\n});\r\n\r\nexport const updatePathIndex = (): AppAction => ({\r\n\ttype: ActionTypes.update_path_index,\r\n});\r\n\r\nexport const updatePathIndexResult = (hasError: boolean): UpdatePathIndexResultAction => ({\r\n\ttype: ActionTypes.update_path_index_result,\r\n\thasError,\r\n});\r\n\r\nexport const fetchAllIndexes = (): AppAction => ({\r\n\ttype: ActionTypes.fetch_all_indexes,\r\n});\r\nexport const fetchAllIndexResult = (hasError: boolean, indexes: SearchIndex[], totalCount: number): FetchAllIndexResultAction => ({\r\n\ttype: ActionTypes.fetch_all_indexes_result,\r\n\thasError,\r\n\tindexes,\r\n\ttotalCount,\r\n});\r\n\r\nexport const resetAllIndex = (): AppAction => ({\r\n\ttype: ActionTypes.reset_search_index,\r\n});\r\nexport const resetAllIndexResult = (hasError: boolean): ResetAllIndexAction => ({\r\n\ttype: ActionTypes.reset_search_index_result,\r\n\thasError,\r\n});\r\n\r\nexport const clearSearchIndexData = (): AppAction => ({\r\n\ttype: ActionTypes.clear_search_index_data,\r\n});\r\n\r\n","import { AppAction, SelectableValue } from '../../../config/types';\r\nimport {\r\n\tActionTypes,\r\n\tChangeEsRequestNotesAction,\r\n\tChangeEsRequestSendToUserAction,\r\n\tChangeEsRequestTitleAction,\r\n\tChangeEsRequestTypeAction,\r\n\tChangeEsRequestTaskNoAction,\r\n\tGetEsRequestTaskResultAction,\r\n} from './types';\r\nimport { UserTask } from '../../Tasks/logic/type';\r\n\r\nexport const changeEsRequestType = (esRequestType: 'withTask' | 'withoutTask' | 'withRedirectionForm'): ChangeEsRequestTypeAction => ({\r\n\ttype: ActionTypes.change_es_request_type,\r\n\tesRequestType,\r\n});\r\n\r\nexport const changeEsRequestTitle = (title: string): ChangeEsRequestTitleAction => ({\r\n\ttype: ActionTypes.change_es_request_title,\r\n\ttitle,\r\n});\r\n\r\nexport const changeEsRequestTaskNo = (taskNo: string): ChangeEsRequestTaskNoAction => ({\r\n\ttype: ActionTypes.change_es_request_task_no,\r\n\ttaskNo,\r\n});\r\n\r\nexport const changeEsRequestSendToUser = (sendToUser: SelectableValue): ChangeEsRequestSendToUserAction => ({\r\n\ttype: ActionTypes.change_es_request_send_to_user,\r\n\tsendToUser,\r\n});\r\n\r\nexport const changeEsRequestNotes = (notes: string): ChangeEsRequestNotesAction => ({\r\n\ttype: ActionTypes.change_es_request_notes,\r\n\tnotes,\r\n});\r\n\r\nexport const addEsRequest = (): AppAction => ({\r\n\ttype: ActionTypes.add_es_request,\r\n});\r\n\r\nexport const getEsRequestTask = (): AppAction => ({\r\n\ttype: ActionTypes.get_es_request_task,\r\n});\r\n\r\nexport const getEsRequestTaskResult = (hasError: boolean, task?: UserTask): GetEsRequestTaskResultAction => ({\r\n\ttype: ActionTypes.get_es_request_task_result,\r\n\thasError,\r\n\ttask,\r\n});\r\n\r\nexport const clearEsRequestTask = (): AppAction => ({\r\n\ttype: ActionTypes.clear_es_request_task,\r\n});\r\n\r\nexport const clearEsRequest = (): AppAction => ({\r\n\ttype: ActionTypes.clear_es_request,\r\n});\r\n\r\n\r\n","import { Schema } from 'morphism';\r\nimport { Task } from './types';\r\n\r\nexport const taskMap: Schema = {\r\n\tid: 'taskID',\r\n\ttitle: 'taskTitle',\r\n};\r\n","import axios, { AxiosRequestConfig } from 'axios';\r\nimport { morphism } from 'morphism';\r\n\r\nimport { request } from '../../../config/utilities';\r\nimport { add_task_url, fetch_task_user_url, get_task_by_task_no_url } from '../../../config/urls';\r\n\r\nimport { taskMap } from './mapper';\r\nimport { userMap } from '../../Auditing/logic/mapper';\r\n\r\nexport const searchUsersApi = async (name: string) => {\r\n\tconst config: AxiosRequestConfig = {\r\n\t\tmethod: 'GET',\r\n\t\turl: fetch_task_user_url,\r\n\t\tparams: {\r\n\t\t\tname: name,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await request(config);\r\n\r\n\treturn morphism(userMap, response.data);\r\n};\r\n\r\nexport const getTaskByTaskNo = async (taskNo: string) => {\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: get_task_by_task_no_url,\r\n\t\tmethod: 'GET',\r\n\t\tparams: {\r\n\t\t\ttaskNo: taskNo,\r\n\t\t},\r\n\t};\r\n\r\n\tconst response = await axios(options);\r\n\r\n\tif (response.data === null) {\r\n\t\treturn false;\r\n\t}\r\n\r\n\treturn morphism(taskMap, response.data);\r\n};\r\n\r\nexport const addTaskApi = async (taskTitle: string, taskDesc: string, secure: boolean, hasParent: boolean, note: string, parentTaskNo: string, taskTypeId: string,\r\n procedureId: string, priorityId: string, attachmentsIds: string[], toUserIds: string[], copyToUsers: string[], startDate: Date, endDate: Date) => {\r\n\r\n\tconst options: AxiosRequestConfig = {\r\n\t\turl: add_task_url,\r\n\t\tmethod: 'POST',\r\n\t\tdata: {\r\n\t\t\tTaskTitle: taskTitle,\r\n\t\t\tTaskDescription: taskDesc,\r\n\t\t\tSecure: secure,\r\n\t\t\tHasParent: hasParent,\r\n\t\t\tParentTaskNo: parentTaskNo,\r\n\t\t\tTaskTypeId: taskTypeId,\r\n\t\t\tProcedureId: procedureId,\r\n\t\t\tPriorityId: priorityId,\r\n\t\t\tToUserIds: toUserIds,\r\n\t\t\tCopyToUserIds: copyToUsers,\r\n\t\t\tStartDate: startDate,\r\n\t\t\tEndDate: endDate,\r\n\t\t\tAttachments: attachmentsIds,\r\n\t\t\tNotes: note,\r\n\t\t},\r\n\t};\r\n\r\n\tawait axios(options);\r\n};\r\n","import { AppAction, AppResultAction } from '../../../config/types';\r\n\r\nexport enum ActionTypes {\r\n\tchange_page_number = 'NOTIFICATIONS__CHANGE_PAGE_NUMBER',\r\n\r\n\tfetch_last_notifications = 'NOTIFICATIONS__FETCH_LAST_NOTIFICATIONS',\r\n\tfetch_last_notifications_result = 'NOTIFICATIONS__FETCH_LAST_NOTIFICATIONS_RESULT',\r\n\r\n\tfetch_notifications = 'NOTIFICATIONS__FETCH_NOTIFICATIONS',\r\n\tfetch_notifications_result = 'NOTIFICATIONS__FETCH_NOTIFICATIONS_RESULT',\r\n}\r\n\r\nexport interface ChangePageNumberAction extends AppAction {\r\n\ttype: ActionTypes.change_page_number,\r\n\tpageNumber: number;\r\n}\r\n\r\nexport interface FetchNotificationsAction extends AppAction {\r\n\ttype: ActionTypes.fetch_notifications,\r\n\tpageNumber: number;\r\n}\r\n\r\nexport interface FetchNotificationsResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_notifications_result,\r\n\tnotifications?: Notification[],\r\n\ttotalCount?: number;\r\n}\r\n\r\nexport interface FetchLastNotificationsResultAction extends AppResultAction {\r\n\ttype: ActionTypes.fetch_last_notifications_result,\r\n\tnotifications?: Notification[],\r\n}\r\n\r\nexport interface Notification {\r\n\tid: string;\r\n\ttitle: string;\r\n\tnotificationDetails: string;\r\n\tcreatedDateTime: Date;\r\n\tnotifiedDateTime?: Date;\r\n\tuserTaskId?: string;\r\n}\r\n\r\nexport type Action =\r\n\tAppAction\r\n\t& ChangePageNumberAction\r\n\t& FetchNotificationsAction\r\n\t& FetchNotificationsResultAction\r\n\t& FetchLastNotificationsResultAction;\r\n\r\nexport interface State {\r\n\tnotifications: Notification[];\r\n\r\n\tlastNotifications: Notification[];\r\n\tpageNumber: number;\r\n\ttotalCount: number;\r\n}\r\n","import {\r\n\tActionTypes,\r\n\tFetchOrganizationTreeAction,\r\n\tFetchOrganizationTreeResultAction,\r\n\tSelectOrganizationAction,\r\n\tSetVisibleReportAction\r\n} from './types';\r\nimport { AppAction, TreeNode } from '../../../../config/types';\r\n\r\nexport const changeIncludeChildren = (): AppAction => ({\r\n\ttype: ActionTypes.change_include_children,\r\n});\r\n\r\nexport const fetchOrganizationTree = (parentId?: string): FetchOrganizationTreeAction => ({\r\n\ttype: ActionTypes.fetch_organization_tree,\r\n\tparentId,\r\n});\r\n\r\nexport const fetchOrganizationTreeResult = (hasError: boolean, parentId?: string, organizationTree?: TreeNode[]): FetchOrganizationTreeResultAction => ({\r\n\ttype: ActionTypes.fetch_organization_tree_result,\r\n\thasError,\r\n\tparentId,\r\n\torganizationTree,\r\n});\r\n\r\nexport const manageToggleButton = (parentId?: string) => ({\r\n\ttype: ActionTypes.manage_toggle_button,\r\n\tparentId,\r\n});\r\n\r\nexport const selectOrganization = (organizationId: string): SelectOrganizationAction => ({\r\n\ttype: ActionTypes.select_organization,\r\n\torganizationId,\r\n});\r\n\r\nexport const resetSearchCriteriaData = (): AppAction => ({\r\n\ttype: ActionTypes.reset_search_criteria_data,\r\n});\r\n\r\nexport const searchMainOrgTaskStatusSaga = () : AppAction => ({\r\n\ttype: ActionTypes.search_main_org_task_status,\r\n});\r\n\r\nexport const setVisibleReport = (visibleReport: boolean) : SetVisibleReportAction => ({\r\n\ttype: ActionTypes.set_visible_report,\r\n\tvisibleReport,\r\n});\r\n\r\n","import { AppAction, AppResultAction } from '../../../config/types';\r\nimport {\r\n\tActionTypes,\r\n\tChangeConfirmPasswordAction,\r\n\tChangeNewPasswordAction,\r\n\tChangeOldPasswordAction,\r\n\tToggleIsModalVisibleAction,\r\n} from './types';\r\n\r\nexport const clearChangePassword = (): AppAction => ({\r\n\ttype: ActionTypes.clear_change_password,\r\n});\r\n\r\nexport const toggleIsModalVisible = (visible: boolean): ToggleIsModalVisibleAction => ({\r\n\ttype: ActionTypes.toggle_is_modal_visible,\r\n\tvisible,\r\n});\r\nexport const changeOldPassword = (oldPassword: string): ChangeOldPasswordAction => ({\r\n\ttype: ActionTypes.change_old_password,\r\n\toldPassword,\r\n});\r\nexport const changeNewPassword = (newPassword: string): ChangeNewPasswordAction => ({\r\n\ttype: ActionTypes.change_new_password,\r\n\tnewPassword,\r\n});\r\n\r\nexport const changePassword = (): AppAction => ({\r\n\ttype: ActionTypes.change_password,\r\n\r\n});\r\nexport const changePasswordResult = (hasError: boolean): AppResultAction => ({\r\n\ttype: ActionTypes.change_password_result,\r\n\thasError,\r\n});\r\nexport const changeConfirmPassword = (password: string): ChangeConfirmPasswordAction => ({\r\n\ttype: ActionTypes.change_confirm_password,\r\n\tpassword,\r\n});","module.exports = __webpack_public_path__ + \"static/media/cancel.4707e09c.svg\";","import React, { useEffect, useState } from 'react';\r\n\r\ninterface Props {\r\n\tvisible: boolean;\r\n\ttype: 'success' | 'error' | 'warn' | 'info';\r\n\tmessage: string;\r\n\tmodal?: boolean\r\n}\r\n\r\nconst Alert = (props: Props) => {\r\n\tconst { visible, type, message, modal = false } = props;\r\n\r\n\tconst [firstWord, setFirstWord] = useState('');\r\n\tconst [restMessage, setRestMessage] = useState('');\r\n\tuseEffect(() => {\r\n\t\tconst wordList = message.split(' ');\r\n\t\tsetFirstWord(wordList[0]);\r\n\t\twordList.shift();\r\n\t\tsetRestMessage(wordList.reduce((previousValue, currentValue) => previousValue.concat(' ' + currentValue), ''));\r\n\t}, [message]);\r\n\r\n\tif (!visible) return
;\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t \r\n\t\t\t\t{firstWord}\r\n\t\t\t\t{restMessage}\r\n\t\t\t
}\r\n\t\t
\r\n\t);\r\n};\r\n\r\nexport default Alert;\r\n","import { AppAction } from '../../../config/types';\r\nimport { ActionTypes, SelectUserAction, VisibleLoginAsModalAction } from './types';\r\nimport { User } from '../../Users/logic/types';\r\n\r\nexport const selectUser = (user?: User): SelectUserAction => ({\r\n\ttype: ActionTypes.select_user,\r\n\tuser,\r\n});\r\n\r\nexport const visibleLoginAs = (visible: boolean): VisibleLoginAsModalAction => ({\r\n\ttype: ActionTypes.visible_login_as_modal,\r\n\tvisible,\r\n});\r\n\r\nexport const clearLoginAsData = (): AppAction => ({\r\n\ttype: ActionTypes.clear_login_as_data,\r\n});\r\n\r\nexport const loginAs = (): AppAction => ({\r\n\ttype: ActionTypes.login_as,\r\n});\r\n\r\n\r\n\r\n","import React, { TableHTMLAttributes } from 'react';\r\n\r\ninterface Props extends TableHTMLAttributes {\r\n}\r\n\r\nconst Table = (props: Props) => {\r\n\treturn ;\r\n};\r\n\r\nexport default Table;\r\n","import React, { HTMLAttributes } from 'react';\r\n\r\ninterface Props extends HTMLAttributes {\r\n}\r\n\r\nconst TableBody = (props: Props) => {\r\n\treturn ;\r\n};\r\n\r\nexport default TableBody;\r\n","import React, { TdHTMLAttributes } from 'react';\r\n\r\ninterface Props extends TdHTMLAttributes {\r\n\twidth?: string\r\n}\r\n\r\nconst TableCell = (props: Props) => {\r\n\treturn ;\r\n};\r\n\r\nexport default TableHeader;\r\n","import React, { HTMLAttributes } from 'react';\r\n\r\ninterface Props extends HTMLAttributes {\r\n}\r\n\r\nconst TableRow = (props: Props) => {\r\n\treturn ;\r\n};\r\n\r\nexport default TableRow;\r\n","import React, { ThHTMLAttributes } from 'react';\r\n\r\ninterface Props extends ThHTMLAttributes {\r\n}\r\n\r\nconst TableHead = (props: Props) => {\r\n\tconst { children, title, ...remainingProps } = props;\r\n\treturn (\r\n\t\t\r\n\t);\r\n};\r\n\r\nexport default TableHead;\r\n","import React from 'react';\r\nimport Pagination from 'react-js-pagination';\r\n\r\nimport { pageSize } from '../../config/constant';\r\n\r\ninterface Props {\r\n\tpageNumber: number;\r\n\ttotalCount: number;\r\n\r\n\thandlePagingChange: (pageNumber: number) => void\r\n}\r\n\r\nconst PaginationComponent = (props: Props) => {\r\n\tconst { pageNumber, totalCount, handlePagingChange } = props;\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t\r\n\t\t
\r\n\t);\r\n};\r\n\r\nexport default PaginationComponent;\r\n","import React, { LabelHTMLAttributes } from 'react';\r\nimport { Control } from './index';\r\n\r\ninterface Props extends Control, LabelHTMLAttributes {\r\n}\r\n\r\nconst LabelControl = (props: Props) => {\r\n\tconst { title, required, ...remainingProps } = props;\r\n\r\n\treturn (\r\n\t\t\r\n\t);\r\n};\r\n\r\nLabelControl.defaultProps = {\r\n\trequired: false,\r\n};\r\n\r\nexport default LabelControl;\r\n","import React, { InputHTMLAttributes, useMemo } from 'react';\r\nimport LabelControl from './LabelControl';\r\n\r\ninterface Props extends InputHTMLAttributes {\r\n\tlabelText: string;\r\n\tinForm?: boolean;\r\n}\r\n\r\nconst CheckboxControl = (props: Props) => {\r\n\tconst checkboxId = useMemo(() => `check_${Math.random()}`, []);\r\n\tconst { labelText, inForm, ...remainingProps } = props;\r\n\r\n\tconst renderContent = (\r\n\t\t
\r\n\t\t\t\r\n\t\t\t\r\n\t\t
\r\n\t);\r\n\r\n\treturn props.title ? (\r\n\t\t
\r\n\t\t\t{props.title && }\r\n\t\t\t{renderContent}\r\n\t\t
\r\n\t) : renderContent;\r\n};\r\n\r\nCheckboxControl.defaultProps = {\r\n\tinForm: true,\r\n};\r\n\r\nexport default CheckboxControl;\r\n","import React from 'react';\r\n\r\ninterface Props {\r\n\ttitle?: string;\r\n\toptions: { id: string, name: string }[];\r\n\tselectedOptions: string[];\r\n\tonSelect: (option: { id: string, name: string }) => void;\r\n\tdisabled?: boolean;\r\n\trequired?: boolean;\r\n}\r\n\r\nconst CheckboxVerticalControl = (props: Props) => {\r\n\tconst { options, selectedOptions, title, onSelect, disabled = false, required } = props;\r\n\r\n\tconst renderOptions = () => options && options.map((option) => {\r\n\t\tconst onInputChanged = () => {\r\n\t\t\tonSelect(option);\r\n\t\t};\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t \r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t});\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t{title &&\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t}\r\n\t\t\t\t{renderOptions()}\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n\r\nexport default CheckboxVerticalControl;\r\n;\r\n","import React, { InputHTMLAttributes } from 'react';\r\nimport { Control } from './index';\r\nimport LabelControl from './LabelControl';\r\n\r\ninterface Props extends Control, InputHTMLAttributes {\r\n\tautofocus?: boolean;\r\n}\r\n\r\nconst InputControl = (props: Props) => {\r\n\tconst { placeholder, disabled, required, autofocus, ...remainingProps } = props;\r\n\r\n\tconst renderContent = (\r\n\t\t\r\n\t);\r\n\r\n\treturn props.title ? (\r\n\t\t
\r\n\t\t\t{props.title && }\r\n\t\t\t{renderContent}\r\n\t\t
\r\n\t) : renderContent;\r\n};\r\n\r\nexport default InputControl;\r\n","import React, { useMemo } from 'react';\r\nimport { Control } from './index';\r\nimport LabelControl from './LabelControl';\r\n\r\ninterface Props extends Control {\r\n\tvertical?: boolean\r\n\toptions: string[];\r\n\tselectedOption: number;\r\n\tonSelect: (index: number) => void;\r\n\r\n\tinForm?: boolean;\r\n}\r\n\r\nconst RadioButtonControl = (props: Props) => {\r\n\tconst { title, required, vertical, options, selectedOption, onSelect, inForm } = props;\r\n\r\n\tconst renderOptions = useMemo(() => (\r\n\t\toptions.map((option, index) => (\r\n\t\t\t\r\n\t\t))\r\n\t), [options, selectedOption, onSelect]);\r\n\r\n\tconst renderVertical = useMemo(() => (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t{props.title &&\r\n\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t
\r\n\t\t\t\t{renderOptions.map(option => (\r\n\t\t\t\t\t
{option}
\r\n\t\t\t\t))}\r\n\t\t\t
\r\n\t\t
\r\n\t), [title, required, options]);\r\n\r\n\tconst renderHorizontal = useMemo(() => (\r\n\t\t
\r\n\t\t\t{props.title &&\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\t{renderOptions}\r\n\t\t\t
\r\n\t\t\r\n\t), [title, required, options]);\r\n\r\n\treturn vertical ? renderVertical : renderHorizontal;\r\n};\r\n\r\nRadioButtonControl.defaultProps = {\r\n\tinForm: true,\r\n};\r\n\r\nexport default RadioButtonControl;\r\n","import React, { SelectHTMLAttributes } from 'react';\r\nimport { Control } from './index';\r\nimport LabelControl from './LabelControl';\r\n\r\ninterface Props extends Control, SelectHTMLAttributes {\r\n\toptions: T[];\r\n\tselectedOptionId?: Q;\r\n\tonOptionChange?: (selectedOption?: T) => void;\r\n\r\n\textractId?: (options: T) => Q;\r\n\textractTitle?: (options: T) => string;\r\n}\r\n\r\nfunction NewSelectControl(props: Props) {\r\n\tconst { options, selectedOptionId, onChange, onOptionChange, extractId, extractTitle, placeholder, required, ...remainingProps } = props;\r\n\r\n\tconst handleChange = (event: React.ChangeEvent) => {\r\n\t\tonChange && onChange(event);\r\n\r\n\t\tif (onOptionChange) {\r\n\t\t\tconst selectedOptionId = event.currentTarget.value;\r\n\t\t\tconst selectedOption = options.find(x => String(extractId ? extractId(x) : (x as any).id) === selectedOptionId);\r\n\t\t\tonOptionChange(selectedOption);\r\n\t\t}\r\n\t};\r\n\r\n\tconst renderOptions = () => options ? options.map(option => {\r\n\t\tconst id = extractId ? extractId(option) : ((option as any).id as Q);\r\n\t\tconst title = extractTitle ? extractTitle(option) : (option as any).title;\r\n\r\n\t\treturn (\r\n\t\t\t\r\n\t\t);\r\n\t}) : null;\r\n\r\n\tconst renderContent = (\r\n\t\t\r\n\t\t\t\r\n\t\t\t{renderOptions()}\r\n\t\t\r\n\t);\r\n\r\n\treturn props.title ? (\r\n\t\t
\r\n\t\t\t{props.title && }\r\n\t\t\t{renderContent}\r\n\t\t
\r\n\t) : renderContent;\r\n}\r\n\r\nexport default NewSelectControl;\r\n","import React, { TextareaHTMLAttributes } from 'react';\r\nimport { Control } from './index';\r\nimport LabelControl from './LabelControl';\r\n\r\ninterface Props extends Control, TextareaHTMLAttributes {\r\n}\r\n\r\nconst TextAreaControl = (props: Props) => {\r\n\tconst { placeholder, disabled, required, ...remainingProps } = props;\r\n\r\n\tconst renderContent = (\r\n\t\t\r\n\t);\r\n\r\n\treturn props.title ? (\r\n\t\t
\r\n\t\t\t{props.title && }\r\n\t\t\t{renderContent}\r\n\t\t
\r\n\t) : renderContent;\r\n};\r\n\r\nexport default TextAreaControl;\r\n","import React, { LabelHTMLAttributes } from 'react';\r\nimport { Control } from './index';\r\nimport LabelControl from './LabelControl';\r\n\r\ninterface Props extends Control, LabelHTMLAttributes {\r\n}\r\n\r\nconst ReadonlyControl = (props: Props) => {\r\n\tconst { placeholder, disabled, required, ...remainingProps } = props;\r\n\r\n\tconst renderContent = (\r\n\t\t\r\n\t);\r\n\r\n\treturn props.title ? (\r\n\t\t
\r\n\t\t\t{props.title && }\r\n\t\t\t{renderContent}\r\n\t\t
\r\n\t) : renderContent;\r\n};\r\n\r\nexport default ReadonlyControl;\r\n","import React, { useEffect, useMemo } from 'react';\r\nimport axios from 'axios';\r\nimport Dynamsoft from 'dwt';\r\nimport { useDropzone } from 'react-dropzone';\r\nimport mime from 'mime-types';\r\nimport { DynamsoftWebTwainEnvProductKey, DynamsoftWebTwainEnvTrial, DynamsoftWebTwainEnvResourcesPath } from '../../config/urls';\r\n\r\ninterface Props {\r\n\tmode?: 'uploader' | 'scanner' | 'both';\r\n\tserverSettings: { url: string, accessToken: string };\r\n\tallowedExtensions?: string[];\r\n\tmaxFileSize?: number;\r\n\tmultiple?: boolean;\r\n\tisSecure?: boolean;\r\n\tisDisabled?: boolean;\r\n\tisDirectingForm?: boolean;\r\n\r\n\tonFileAdded?: (id: string, name: string) => void;\r\n\tonFileUploaded?: (id: string, serverId: string) => void;\r\n\tonFileFailed?: (id: string, error: any) => void;\r\n}\r\n\r\nconst ImageUploader = (props: Props) => {\r\n\tconst { mode, serverSettings, isSecure, isDisabled, allowedExtensions, maxFileSize, multiple, isDirectingForm } = props;\r\n\t\r\n\tconst directingFormHeader = isDirectingForm ? '1' : '0';\r\n\r\n\tconst allowedMimes = useMemo(() => {\r\n\t\tif (!allowedExtensions || allowedExtensions.length <= 0) return [];\r\n\t\treturn allowedExtensions.map(x => mime.lookup(x) || '').filter(x => !!x);\r\n\t}, [allowedExtensions]);\r\n\r\n\tconst allowedExtensionsDisplay = useMemo(() => {\r\n\t\tif (!allowedExtensions || allowedExtensions.length <= 0) return '';\r\n\t\treturn allowedExtensions.reduce((previousValue, currentValue) => previousValue.concat(`*.${currentValue}; `), '');\r\n\t}, [allowedExtensions]);\r\n\r\n\tconst isMobile = () => 'ontouchstart' in window;\r\n\r\n\tuseEffect(() => {\r\n\r\n\t\tDynamsoft.WebTwainEnv.AutoLoad = false;\r\n\t\tDynamsoft.WebTwainEnv.Trial = DynamsoftWebTwainEnvTrial;\r\n\t\tDynamsoft.WebTwainEnv.ProductKey = DynamsoftWebTwainEnvProductKey;\r\n\t\tDynamsoft.WebTwainEnv.ResourcesPath = DynamsoftWebTwainEnvResourcesPath;\r\n\r\n\t\tif ((mode === 'scanner' || mode === 'both') && !isMobile()) {\r\n\t\t\tDynamsoft.WebTwainEnv.Load();\r\n\t\t}\r\n\t}, [mode]);\r\n\r\n\tconst onDrop = async (acceptedFiles: File[], rejectedFiles: File[]) => {\r\n\t\tif (isDisabled) return;\r\n\r\n\t\tif (rejectedFiles.length !== 0) {\r\n\t\t\talert(`بعض الملفات التي قمت باختيارها غير صالحة، يجب أن يكون الملف المرفق اصغر من ${maxFileSize}MB`);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst allFiles = acceptedFiles.map(x => ({ uuid: require('uuid/v4')(), file: x }));\r\n\r\n\t\tfor (const file of allFiles) {\r\n\t\t\tprops.onFileAdded && props.onFileAdded(file.uuid, file.file.name);\r\n\t\t}\r\n\r\n\t\tfor (const file of allFiles) {\r\n\t\t\tconst data = new FormData();\r\n\t\t\tdata.append('file', file.file);\r\n\r\n\t\t\tconst config = {\r\n\t\t\t\theaders: {\r\n\t\t\t\t\t'X-Requested-With': 'XMLHttpRequest',\r\n\t\t\t\t\t'Authorization': 'Bearer ' + serverSettings.accessToken,\r\n\t\t\t\t\t'DirectingForm': directingFormHeader\r\n\t\t\t\t},\r\n\t\t\t};\r\n\r\n\t\t\ttry {\r\n\t\t\t\tconst url = serverSettings.url.concat(`?isSecure=${isSecure}`);\r\n\t\t\t\tconst response = await axios.post(url, data, config);\r\n\t\t\t\tconst { attachmentId } = response.data;\r\n\t\t\t\tprops.onFileUploaded && props.onFileUploaded(file.uuid, attachmentId);\r\n\t\t\t} catch (e) {\r\n\t\t\t\tprops.onFileFailed && props.onFileFailed(file.uuid, e);\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\r\n\tconst onScanner = () => {\r\n\t\tif (isDisabled) return;\r\n\r\n\t\tconst dwObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer');\r\n\r\n\t\tif (!dwObject) {\r\n\t\t\talert('يجب تحميل أداة المسح الضوئي اولاً، اذا كنت قد حملت الأداة بالفعل قم باعادة تحميل الصفحة.');\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tdwObject.AsyncMode = false;\r\n\t\tdwObject.RegisterEvent('OnPostAllTransfers', (e: any) => {\r\n\t\t\tdwObject.SelectedImagesCount = dwObject.HowManyImagesInBuffer;\r\n\t\t\tfor (let i = 0; i < dwObject.HowManyImagesInBuffer; i++) {\r\n\t\t\t\tdwObject.SetSelectedImageIndex(i, i);\r\n\t\t\t}\r\n\r\n\t\t\tconst uuid = require('uuid/v4')();\r\n\t\t\tconst fileName = `RemoteFile_${uuid}.pdf`;\r\n\t\t\tprops.onFileAdded && props.onFileAdded(uuid, fileName);\r\n\r\n\t\t\tconst url = serverSettings.url.concat(`?isSecure=${isSecure}&isScannedFile=true&`);\r\n\t\t\tdwObject.SetHTTPHeader('Authorization', `Bearer ${serverSettings.accessToken}`);\r\n\t\t\tdwObject.SetHTTPHeader('DirectingForm', directingFormHeader);\r\n\r\n\t\t\tdwObject.HTTPUploadAllThroughPostAsPDF(url, '', fileName,\r\n\t\t\t\t() => {\r\n\t\t\t\t\tprops.onFileFailed && props.onFileFailed(uuid, '');\r\n\t\t\t\t},\r\n\t\t\t\t(errorCode, errorString, httpResponse) => {\r\n\t\t\t\t\t// Due to a design failure in the library we need to handle success inside error function.\r\n\t\t\t\t\t// For more info read: https://developer.dynamsoft.com/dwt/guide/exploring-the-features/dynamic-web-twain-how-to-pass-information-back-from-the-server-after-upload\r\n\r\n\t\t\t\t\tconst response = JSON.parse(httpResponse);\r\n\t\t\t\t\tif (response.status === 'success') {\r\n\t\t\t\t\t\tprops.onFileUploaded && props.onFileUploaded(uuid, response.attachmentId);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tprops.onFileFailed && props.onFileFailed(uuid, httpResponse);\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t);\r\n\t\t});\r\n\r\n\t\tconst bSelected = dwObject.SelectSource();\r\n\t\tif (bSelected) {\r\n\t\t\tdwObject.RegisterEvent('OnPostTransferAsync', (outputInfo: any) => {\r\n\r\n\t\t\t});\r\n\r\n\t\t\tconst onAcquireImageSuccess = () => {\r\n\t\t\t\tdwObject.CloseSource();\r\n\t\t\t};\r\n\r\n\t\t\tconst onAcquireImageFailure = onAcquireImageSuccess;\r\n\t\t\tdwObject.OpenSource();\r\n\t\t\tdwObject.AcquireImage({}, onAcquireImageSuccess, onAcquireImageFailure);\r\n\t\t}\r\n\t};\r\n\r\n\tconst {\r\n\t\tgetRootProps,\r\n\t\tgetInputProps,\r\n\t\tisDragActive,\r\n\t} = useDropzone({\r\n\t\taccept: allowedMimes,\r\n\t\tonDrop,\r\n\t\tmaxSize: ((maxFileSize || 1) * 1000000),\r\n\t\tmultiple: multiple,\r\n\t});\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t{(mode === 'uploader' || mode === 'both') &&\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t

{isDragActive ? 'أفلت الملفات هنا' : 'اسحب بعض الملفات إلى هنا أو انقر لاختيار الملفات'}

\r\n\t\t\t\t{`(أنواع الملفات المسموح بها: ${allowedExtensionsDisplay})`}\r\n\t\t\t
\r\n\t\t\t}\r\n\t\t\t{(mode === 'both' && !isMobile()) &&\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t

أو

\r\n\t\t\t
\r\n\t\t\t}\r\n\t\t\t{((mode === 'scanner' || mode === 'both') && !isMobile()) &&\r\n\t\t\t
\r\n\t\t\t\t

{'انقر هنا لمسح الملفات عن طريق الماسح الضوئي'}

\r\n\t\t\t\t(قد تحتاج لتحميل وتنصيب برنامج Dynamsoft من اجل هذه الميزة)\r\n\t\t\t
\r\n\t\t\t}\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n\r\nImageUploader.defaultProps = {\r\n\tmode: 'both',\r\n\tmultiple: true,\r\n};\r\n\r\nexport default ImageUploader;\r\n","import React, { useEffect } from 'react';\r\nimport { put } from 'redux-saga/effects';\r\n\r\nimport { Control } from './index';\r\nimport LabelControl from './LabelControl';\r\nimport {\r\n\tCheckboxControl,\r\n\tPermissionContainer,\r\n\tTable,\r\n\tTableBody,\r\n\tTableCell,\r\n\tTableHead,\r\n\tTableHeader,\r\n\tTableRow,\r\n} from '../index';\r\nimport ImageUploader from './ImageUploader';\r\nimport { upload_files_url } from '../../config/urls';\r\nimport { useDispatch, useSelector } from '../../config/store';\r\nimport {\r\n\taddAttachment,\r\n\tdeleteAttachment,\r\n\tfetchAttachmentSettings,\r\n\ttoggleSecure,\r\n\tupdateAttachmentStatus,\r\n\tshowHttpErrorAlert\r\n} from '../../processes/Services/actions';\r\n\r\ninterface Props extends Control {\r\n\tmultiple?: boolean;\r\n\tallowedOnlyPdf?: boolean;\r\n\tisDirectingForm?: boolean;\r\n}\r\n\r\nconst AttachmentControl = (props: Props) => {\r\n\tconst { title, disabled, required, multiple, allowedOnlyPdf, isDirectingForm } = props;\r\n\r\n\tconst dispatch = useDispatch();\r\n\tconst accessToken = useSelector(x => x.storage.accessToken);\r\n\tconst allowedFileExtensions = useSelector(x => x.service.allowedFileExtensions);\r\n\tconst maxFileSize = useSelector(x => x.service.maxFileSize);\r\n\tconst isSecure = useSelector(x => x.service.isSecure);\r\n\tconst attachments = useSelector(x => x.service.attachments);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (accessToken && accessToken !== 'undefined') {\r\n\t\t\tdispatch(fetchAttachmentSettings());\r\n\t\t}\r\n\t}, [accessToken, dispatch]);\r\n\r\n\tconst onSecureToggled = () => {\r\n\t\tdispatch(toggleSecure());\r\n\t};\r\n\r\n\tconst onFileAdded = (uuid: string, fileName: string) => {\r\n\t\tdispatch(addAttachment(uuid, fileName, multiple));\r\n\t};\r\n\r\n\tconst onFileUploaded = (uuid: string, serverId: string) => {\r\n\t\tdispatch(updateAttachmentStatus(uuid, 'uploaded', serverId));\r\n\t};\r\n\r\n\tconst onFileFailed = (uuid: string, error: any) => {\r\n\t\tif (error.response && error.response.data)\r\n\t\t\twindow.alert(error.response.data.message);\r\n\t\tdispatch(updateAttachmentStatus(uuid, 'failed'));\r\n\t};\r\n\r\n\tconst onDeleteAttachmentClicked = (uuid: string) => {\r\n\t\tconst attachment = attachments.find(x => x.uuid === uuid);\r\n\t\tif (!attachment || attachment.status === 'uploading') return;\r\n\r\n\t\tdispatch(deleteAttachment(uuid));\r\n\t};\r\n\r\n\tconst renderAttachments = attachments.map(x => {\r\n\t\tconst deleteStyle = {\r\n\t\t\tcolor: x.status === 'uploading' ? 'gray' : '#0000EE',\r\n\t\t\tcursor: x.status === 'uploading' ? 'not-allowed' : 'pointer',\r\n\t\t};\r\n\r\n\t\tconst statuses = {\r\n\t\t\tuploading: 'قيد التحميل',\r\n\t\t\tuploaded: 'تم التحميل',\r\n\t\t\tfailed: 'فشل التحميل',\r\n\t\t};\r\n\r\n\t\tconst { uuid, fileName, isSecure, status } = x;\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t{fileName}\r\n\t\t\t\t\r\n\t\t\t\t\t{isSecure ? 'نعم' : 'لا'}\r\n\t\t\t\t\r\n\t\t\t\t{statuses[status]}\r\n\t\t\t\t\r\n\t\t\t\t\t onDeleteAttachmentClicked(uuid)} style={deleteStyle}>حذف\r\n\t\t\t\t\r\n\t\t\t);\r\n\t});\r\n\r\n\treturn (\r\n\t\t<>\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
;\r\n};\r\n\r\nexport default TableCell;\r\n","import React, { HTMLAttributes } from 'react';\r\n\r\ninterface Props extends HTMLAttributes {\r\n}\r\n\r\nconst TableHeader = (props: Props) => {\r\n\treturn
\r\n\t\t\t{title}\r\n\t\t\t{children}\r\n\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tاسم المرفق\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tالمرفق مشفر\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tالحالة\r\n\t\t\t\t\t\t\tخيارات\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{renderAttachments}\r\n\t\t\t\t\t\t{attachments.length <= 0 &&\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tلا يوجد مرفقات\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\r\n\t\t\r\n\t);\r\n};\r\n\r\nexport default AttachmentControl;\r\n","import React, { HTMLAttributes } from 'react';\r\nimport cx from 'classnames';\r\nimport './styles.css';\r\n\r\ninterface Props extends HTMLAttributes {\r\n\toptions: T[];\r\n\tselectedOptionId?: Q;\r\n\tonOptionChange?: (selectedOption: T) => void;\r\n\r\n\textractId?: (options: T) => Q;\r\n\textractTitle?: (options: T) => string;\r\n}\r\n\r\nfunction SegmentedView(props: Props) {\r\n\tconst { options, selectedOptionId, onOptionChange, extractId, extractTitle, ...remainingProps } = props;\r\n\r\n\tconst handleChange = (selectedOptionId: Q) => {\r\n\t\tconst selectedOption = options.find(x => String(extractId ? extractId(x) : (x as any).id) === String(selectedOptionId));\r\n\t\tif (onOptionChange && selectedOption) {\r\n\t\t\tonOptionChange(selectedOption);\r\n\t\t}\r\n\t};\r\n\r\n\tconst renderOptions = () => options ? options.map(option => {\r\n\t\tconst id = extractId ? extractId(option) : (option as any).id as Q;\r\n\t\tconst title = extractTitle ? extractTitle(option) : (option as any).title as string;\r\n\t\tconst isSelected = String(selectedOptionId) === String(id);\r\n\r\n\t\treturn (\r\n\t\t\t handleChange(id)}\r\n\t\t\t>\r\n\t\t\t\t{title}\r\n\t\t\t\r\n\t\t);\r\n\t}) : null;\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t{renderOptions()}\r\n\t\t
\r\n\t);\r\n}\r\n\r\n\r\nexport default SegmentedView;\r\n","import React, { FormHTMLAttributes } from 'react';\r\nimport { Button } from '../index';\r\n\r\ninterface Props extends FormHTMLAttributes {\r\n\ttitle?: string,\r\n\tchildren?: React.ReactNode,\r\n\tactions?: React.ReactNode,\r\n\r\n\thasSearchIcon?: boolean\r\n}\r\n\r\nconst SearchCriteriaContainer = (props: Props) => {\r\n\tconst { title, children, actions, hasSearchIcon = true, ...remainingProps } = props;\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{hasSearchIcon &&\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t
{title}
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{children}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{actions ||
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n\r\nSearchCriteriaContainer.defaultProps = {\r\n\ttitle: 'بحث',\r\n};\r\n\r\nexport default SearchCriteriaContainer;\r\n","import React, { useMemo } from 'react';\r\nimport { useNoResultMessage } from '../../layout';\r\n\r\ninterface Props {\r\n\ttitle?: string,\r\n\ttotalCount?: number,\r\n\tchildren?: React.ReactNode,\r\n\tactions?: React.ReactNode,\r\n\tshowNoResultsIfNecessary?: boolean,\r\n}\r\n\r\nconst TableContainer = (props: Props) => {\r\n\tconst { title, totalCount, showNoResultsIfNecessary, children, actions } = props;\r\n\r\n\tconst combinedTitle = useMemo(() => {\r\n\t\tlet reVal = '';\r\n\t\tif (title) reVal += title + ' ';\r\n\t\tif (totalCount === -1 || totalCount === 0) reVal += '(0)';\r\n\t\telse if (totalCount) reVal += `(${totalCount})`;\r\n\r\n\t\treturn reVal;\r\n\t}, [title, totalCount]);\r\n\r\n\tconst noResultAlert = useNoResultMessage(totalCount || 0);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t{actions &&\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t{actions}\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t}\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{combinedTitle}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t{children}\r\n\t\t\t\t\t\t\t\t{showNoResultsIfNecessary && noResultAlert}\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n\r\nTableContainer.defaultProps = {\r\n\tshowNoResultsIfNecessary: true,\r\n};\r\n\r\nexport default TableContainer;\r\n","import React, { FormHTMLAttributes } from 'react';\r\nimport { Button } from '../index';\r\n\r\ninterface Props extends FormHTMLAttributes {\r\n\ttitle?: string,\r\n\tchildren?: React.ReactNode,\r\n\tactions?: React.ReactNode,\r\n}\r\n\r\nconst FormContainer = (props: Props) => {\r\n\tconst { title, children, actions, ...remainingProps } = props;\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
{title}
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{children}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{actions ||
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n\r\nexport default FormContainer;\r\n","import React, { useMemo } from 'react';\r\n\r\ninterface Props {\r\n\ttitle?: string,\r\n\tsubtitle?: string,\r\n\ttotalCount?: number,\r\n\tshowNoResultsIfNecessary?: boolean,\r\n\r\n\tchildren?: React.ReactNode,\r\n\tactions?: React.ReactNode,\r\n}\r\n\r\nconst CardsContainer = (props: Props) => {\r\n\tconst { title, subtitle, totalCount, showNoResultsIfNecessary, children, actions } = props;\r\n\r\n\tconst combinedTitle = useMemo(() => {\r\n\t\tlet reVal = '';\r\n\t\tif (title) reVal += title + ' ';\r\n\t\tif (totalCount === -1 || totalCount === 0) reVal += '(0)';\r\n\t\telse if (totalCount) reVal += `(${totalCount})`;\r\n\r\n\t\treturn reVal;\r\n\t}, [title, totalCount]);\r\n\r\n\tconst renderEmptyState = showNoResultsIfNecessary && totalCount === 0 && (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t\tعذراً \r\n\t\t\t\t\t\tلا يوجد بيانات\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n\r\n\treturn (\r\n\t\t<>\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
{combinedTitle}
\r\n\t\t\t\t\t\t\t{subtitle &&\r\n\t\t\t\t\t\t\t{subtitle}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{actions}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\r\n\t\t\t{children}\r\n\t\t\t{renderEmptyState}\r\n\t\t\r\n\t);\r\n};\r\n\r\nCardsContainer.defaultProps = {\r\n\tshowNoResultsIfNecessary: true,\r\n};\r\n\r\nexport default CardsContainer;\r\n","import React, { FormHTMLAttributes } from 'react';\r\nimport cx from 'classnames';\r\nimport Alert from '../../layout/components/Alert';\r\nimport { useSelector } from '../../config/store';\r\n\r\ninterface Props extends FormHTMLAttributes {\r\n\tchildren?: React.ReactNode,\r\n\tactions?: React.ReactNode,\r\n\talerts?: React.ReactNode,\r\n\thasPadding?: boolean,\r\n}\r\n\r\nconst PopupContainer = (props: Props) => {\r\n\tconst { children, actions, alerts, hasPadding, ...remainingProps } = props;\r\n\r\n\tconst visible = useSelector(state => state.service.alert.visible);\r\n\tconst type = useSelector(state => state.service.alert.type);\r\n\tconst message = useSelector(state => state.service.alert.message);\r\n\r\n\tconst progressVisible = useSelector(state => state.service.progress.visible);\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t{alerts}\r\n\t\t\t\t{children}\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{actions}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\r\n\t);\r\n};\r\n\r\nPopupContainer.defaultProps = {\r\n\thasPadding: true,\r\n};\r\n\r\nexport default PopupContainer;\r\n","export default {\r\n /**\r\n * Application authorization details. For more information check \"Getting Started\" in README.md\r\n */\r\n // Specifies the environment’s UUID.\r\n environmentId: \"\",\r\n // Specifies the code or token type returned by an authorization request. Options are token, id_token, and code. Default values is \"token id_token\". This is a required property.\r\n responseType: \"code\",\r\n // Specifies the application’s UUID.\r\n clientId: \"TTNSSO\",\r\n // Specifies the application’s secret key\r\n // Should be used only for testing purposes and not in production!!!\r\n clientSecret: \"\",\r\n // Specifies the grant type of the token request. Options are authorization_code, implicit, and client_credentials\r\n grantType: \"authorization_code\",\r\n // Specifies the URL that specifies the return entry point of the application. This is a required property.\r\n redirectUri: \"https://ttn.ksu.edu.sa/account/SSO\",\r\n // Specifies an optional parameter that specifies the URL to which the browser is redirected after a logout has been performed.\r\n logoutRedirectUri: \"https://ttn.ksu.edu.sa/\",\r\n // Specifies permissions that determine the resources that the application can access. This parameter is not required, but it is needed to specify accessible resources.\r\n scope: \"openid\",\r\n // Specifies whether the user is prompted to login for re-authentication. The prompt parameter can be used as a way to check for existing authentication, verifying that the user is still present for the current session. For prompt=none, the user is never prompted to login to re-authenticate, which can result in an error if authentication is required. For prompt=login, if time since last login is greater than the max-age, then the current session is stashed away in the flow state and treated in the flow as if there was no previous existing session. When the flow completes, if the flow’s user is the same as the user from the stashed away session, the stashed away session is updated with the new flow data and persisted (preserving the existing session ID). If the flow’s user is not the same as the user from the stashed away session, the stashed away session is deleted (logout) and the new session is persisted.\r\n prompt: \"login\",\r\n // Specifies the client authentication methods supported by the token endpoint. This is a required property. Options are none, client_secret_basic, and client_secret_post.\r\n tokenEndpointAuthMethod: \"client_secret_post\",\r\n // Specifies the maximum amount of time allowed since the user last authenticated. If the max_age value is exceeded, the user must re-authenticate.\r\n maxAge: 3600,\r\n // Optional parameter that designates whether the authentication request includes steps for a single-factor or multi-factor authentication flow. This parameter maps to the name of a sign-on policy that must be assigned to the application. For more information, see Sign-on policies.\r\n //acr_values: \"Single_Factor\"\r\n API_URI: 'https://iam.ksu.edu.sa',\r\n \r\n AUTH_URI: 'https://iam.ksu.edu.sa'\r\n};\r\n\r\n","import * as request from 'superagent';\r\nimport * as jwt from 'jsonwebtoken';\r\n\r\nvar IdTokenVerifier = function (config) {\r\n const wellKnownConfigUrl = config.issuer + '/.well-known/openid-configuration'\r\n\r\n async function retrieveKeys() {\r\n const config = await request.get(wellKnownConfigUrl);\r\n const keysResponse = await request.get(config.body.jwks_uri);\r\n return keysResponse.body.keys;\r\n }\r\n\r\n function formatRSPublicKey(rawKey) {\r\n return [\r\n '-----BEGIN CERTIFICATE-----',\r\n ...rawKey.match(/.{1,64}/g),\r\n '-----END CERTIFICATE-----'\r\n ].join('\\n');\r\n }\r\n\r\n /**\r\n * Verify whether token signature and other claims are valid.\r\n * @param token it token\r\n * @param options token claims to validate. (i.e subject, issuer, audience etc )\r\n * @returns {Promise<*>}\r\n */\r\n async function verify(token, options) {\r\n const keys = await retrieveKeys();\r\n return new Promise((resolve, reject) => {\r\n let decoded_token = null;\r\n for (let key of keys) {\r\n try {\r\n decoded_token =\r\n // Returns the payload decoded if the signature is valid and optional expiration, audience, or issuer are valid. If not, it will throw the error.\r\n jwt.verify(token.toString(), formatRSPublicKey(key.x5c[0]), options);\r\n break;\r\n } catch (error) {\r\n // We don't want to reject here, because there's an array of keys provided, and the correct\r\n // one might be in the middle.\r\n }\r\n }\r\n\r\n if (decoded_token) {\r\n resolve(decoded_token)\r\n } else {\r\n reject(\"Id token verification failed.\");\r\n }\r\n });\r\n }\r\n\r\n return {\r\n verify: verify\r\n }\r\n}\r\n\r\nexport default IdTokenVerifier;\r\n","import _ from \"lodash\";\r\nimport request from \"superagent\";\r\nimport config from \"../config\";\r\nimport IdTokenVerifier from \"./jwt_verifier\";\r\nimport crypto from 'crypto';\r\nimport axios from 'axios';\r\n\r\n/******************************************************************************\r\n * OAuth 2/OpenID Connect Protocol API with PKCE\r\n ******************************************************************************/\r\n\r\nconst generateCodeVerifier = () => {\r\n const randomBytes = crypto.randomBytes(32);\r\n return randomBytes.toString('base64')\r\n .replace(/\\+/g, '-') // Replace + with -\r\n .replace(/\\//g, '_') // Replace / with _\r\n .replace(/=+$/, ''); // Remove trailing =\r\n};\r\n\r\nconst generateCodeChallenge = (codeVerifier) => {\r\n return crypto.createHash('sha256')\r\n .update(codeVerifier)\r\n .digest('base64')\r\n .replace(/\\+/g, '-') // Replace + with -\r\n .replace(/\\//g, '_') // Replace / with _\r\n .replace(/=+$/, ''); // Remove trailing =\r\n};\r\n\r\n\r\nconst authorize = (state, nonce) => {\r\n const codeVerifier = generateCodeVerifier();\r\n const codeChallenge = generateCodeChallenge(codeVerifier);\r\n\r\n localStorage.setItem('code_verifier', codeVerifier);\r\n\r\n let authUrl = `${getBaseApiUrl(true)}/as/authorization.oauth2?` +\r\n `redirect_uri=${config.redirectUri}&` +\r\n `client_id=${config.clientId}&` +\r\n `response_type=code` +\r\n (state ? `&state=${state}` : '') +\r\n (config.scope ? `&scope=${config.scope}&` : '') +\r\n `access_type=offline&` +\r\n `code_challenge=${codeChallenge}&` +\r\n `code_challenge_method=S256`;\r\n\r\n window.location.replace(authUrl);\r\n};\r\n\r\nconst signOff = async (accessToken) => {\r\n const singOffUrl = `${getBaseApiUrl(true)}/idp/startSLO.ping?TargetResource=${config.logoutRedirectUri}`;\r\n // Revoke the access token\r\n if (accessToken) {\r\n const revokeTokenUrl = `${getBaseApiUrl(true)}/as/revoke_token.oauth2`;\r\n await axios.post(\r\n revokeTokenUrl,\r\n new URLSearchParams({ token: accessToken }).toString(), // Convert to x-www-form-urlencoded\r\n {\r\n headers: {\r\n 'Content-Type': 'application/x-www-form-urlencoded',\r\n 'Authorization': `Basic ${btoa(`${config.clientId}`)}`\r\n },\r\n }\r\n );\r\n \r\n }\r\n window.location.assign(singOffUrl);\r\n};\r\n\r\nconst getUserInfo = (access_token) => {\r\n return get(`${getBaseApiUrl(true)}/idp/userinfo.openid`, true,\r\n {'Authorization': `Bearer ${access_token}`});\r\n};\r\n\r\nconst getAccessToken = (code) => {\r\n const codeVerifier = localStorage.getItem('code_verifier');\r\n\r\n const body = `grant_type=authorization_code&code=${code}&client_id=${config.clientId}`\r\n + (config.redirectUri ? `&redirect_uri=${config.redirectUri}` : '')\r\n + `&code_verifier=${codeVerifier}`;\r\n\r\n const headers = {'Content-Type': 'application/x-www-form-urlencoded'};\r\n \r\n if (_.isEqual(config.tokenEndpointAuthMethod, 'client_secret_post')) {\r\n return post(`${getBaseApiUrl(true)}/as/token.oauth2`, headers, body\r\n + (config.clientSecret ? `&client_secret=${config.clientSecret}` : ''));\r\n } else if (_.isEqual(config.tokenEndpointAuthMethod, 'none')) {\r\n return post(`${getBaseApiUrl(true)}/as/token.oauth2`, headers, body);\r\n } else {\r\n return post(`${getBaseApiUrl(true)}/as/token.oauth2`, {\r\n ...headers,\r\n 'Authorization': `Basic ${window.btoa(config.clientId + \":\" + config.clientSecret)}`\r\n }, body);\r\n }\r\n};\r\n\r\nconst getBaseApiUrl = (useAuthUrl) => {\r\n return useAuthUrl ?\r\n config.AUTH_URI :\r\n config.API_URI;\r\n};\r\n\r\nconst idTokenVerifier = IdTokenVerifier({issuer: `${getBaseApiUrl(true)}`});\r\n\r\nconst verifyIdToken = (id_token, options) => {\r\n return idTokenVerifier.verify(id_token, {\r\n ...options,\r\n audience: config.clientId,\r\n algorithms: ['RS256']\r\n });\r\n};\r\n\r\nconst post = (apiPath, headers, body = {}) =>\r\n new Promise((resolved, rejected) =>\r\n request\r\n .post(apiPath)\r\n .send(body)\r\n .set(headers)\r\n .end((err, res) => {\r\n if (err) {\r\n rejected(res ? res.body : err);\r\n } else {\r\n resolved(res.body);\r\n }\r\n }));\r\n\r\nconst get = (apiPath, getBody = false, headers = {}) =>\r\n new Promise((resolved, rejected) =>\r\n request\r\n .get(apiPath)\r\n .set(headers)\r\n .end((err, res) => {\r\n if (err) {\r\n rejected(res ? res.body : err);\r\n } else {\r\n resolved(getBody ? res.body : res);\r\n }\r\n }));\r\n\r\nexport const flatten = (objectOrArray, prefix = '', formatter = (k) => (k)) => {\r\n const nestedFormatter = (k) => ('_' + k)\r\n const nestElement = (prev, value, key) => (\r\n (value && typeof value === 'object')\r\n ? { ...prev, ...flatten(value, `${prefix}${formatter(key)}`, nestedFormatter) }\r\n : { ...prev, ...{ [`${prefix}${formatter(key)}`]: value } });\r\n\r\n return Array.isArray(objectOrArray)\r\n ? objectOrArray.reduce(nestElement, {})\r\n : Object.keys(objectOrArray).reduce(\r\n (prev, element) => nestElement(prev, objectOrArray[element], element),\r\n {},\r\n );\r\n};\r\n\r\nconst parseHash = () => {\r\n return window.location.hash.replace('#', '').split('&').reduce(\r\n (prev, item) => {\r\n return Object.assign(\r\n {[item.split('=')[0]]: decodeURIComponent(item.split('=')[1])},\r\n prev);\r\n }, {});\r\n};\r\nconst generateRandomValue = () => {\r\n let crypto = window.crypto || window.msCrypto;\r\n let D = new Uint32Array(2);\r\n crypto.getRandomValues(D);\r\n return D[0].toString(36);\r\n};\r\n\r\nexport const CLAIMS_MAPPING = {\r\n at_hash: 'Access Token hash value.',\r\n sub: 'User Identifier.',\r\n name: 'User\\'s full name.',\r\n given_name: 'User given name(s) or first name(s).',\r\n family_name: 'Surname(s) or last name(s) of the User.',\r\n middle_name: 'User middle name.',\r\n nickname: 'User casual name.',\r\n preferred_username: 'User shorthand name.',\r\n email: 'User e-mail address.',\r\n updated_at: 'Last time User\\'s information was updated.',\r\n amr: 'Authentication Methods Reference.',\r\n iss: 'Response Issuer Identifier.',\r\n nonce: 'Client session unique and random value.',\r\n aud: 'ID Token Audience.',\r\n acr: 'Authentication Context Class Reference.',\r\n auth_time: 'User authentication time.',\r\n exp: 'ID Token expiration time.',\r\n iat: 'Time at which the JWT was issued.',\r\n address_country: 'Country name.',\r\n address_postal_code: 'Zip code or postal code.',\r\n address_region: 'State, province, prefecture, or region.',\r\n address_locality: 'City or locality.',\r\n address_formatted: 'Full mailing address.',\r\n address_street_address: 'Full street address.',\r\n amr_0: 'Authentication methods.'\r\n};\r\n\r\nexport default {\r\n authorize,\r\n signOff,\r\n getAccessToken,\r\n getUserInfo,\r\n verifyIdToken,\r\n flatten,\r\n CLAIMS_MAPPING,\r\n parseHash,\r\n generateRandomValue\r\n};\r\n","import React, { FormEvent, useCallback, useEffect, useMemo, useRef } from 'react';\r\nimport cx from 'classnames';\r\n\r\nimport { useDispatch, useSelector } from '../../config/store';\r\nimport { visibleLoginAs } from '../../processes/LoginAs/logic/action';\r\nimport { clearAlert, navigate, replace, toggleDrawer } from '../../processes/Services/actions';\r\nimport { toggleIsModalVisible } from '../../processes/changePassword/logic/actions';\r\nimport { PermissionContainer } from '../../components';\r\nimport { changeSearchQuery } from '../../processes/Search/logic/actions';\r\nimport { fetchLastNotifications } from '../../processes/Notification/logic/actions';\r\nimport { getPagePath } from '../../config/router';\r\nimport { AppState } from '../../config/types';\r\nimport authClient from '../../../src/processes/Auth/sdk/api';\r\nimport { changeIsLoggedIn, clearAllStorage } from '../../processes/Storage/logic/actions';\r\nimport { updateDefaultHeaders } from '../../config/api';\r\n\r\nconst Header = () => {\r\n\tconst dispatch = useDispatch();\r\n\tconst accessToken = useSelector((state: AppState) => state.storage.accessToken);\r\n\r\n\tconst lastNotifications = useSelector(state => state.notification.lastNotifications);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (accessToken && accessToken !== 'undefined') {\r\n\t\t dispatch(fetchLastNotifications());\r\n\t\t}\r\n\t}, [accessToken, dispatch]);\r\n\t\r\n\tconst searchQuery = useSelector(state => state.searchPage.search.searchQuery);\r\n\r\n\tconst email = useSelector(state => state.auth.profile.email);\r\n\tconst username = useSelector(state => state.auth.profile.arName);\r\n\tconst delegatorName = useSelector(state => state.auth.delegator && state.auth.delegator.arName);\r\n\tconst loginAsFullName = useSelector(state => state.auth.loginAsFullName);\r\n\tconst source = useSelector(state => state.auth.profile.source);\r\n\r\n\tconst notificationCount = useSelector(state => state.tasks.notificationCount);\r\n\tconst tasksCart = useSelector(state => state.tasksCart.tasksCart);\r\n\r\n\tconst greeting = useMemo(\r\n\t\t() => (\r\n\t\t\t\r\n\t\t\t\tمرحباً بك \r\n\t\t\t\t{loginAsFullName && (\r\n\t\t\t\t\t<>\r\n\t\t\t\t\t\t{loginAsFullName}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{' بالتمثيل عن '}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t)}\r\n\t\t\t\t{username && ` ${username} `}\r\n\t\t\t\t{delegatorName && (\r\n\t\t\t\t\t<>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{' نيابة عن '}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{delegatorName}\r\n\t\t\t\t\t\r\n\t\t\t\t)}\r\n\t\t\t\r\n\t\t),\r\n\t\t[username, delegatorName, loginAsFullName],\r\n\t);\r\n\r\n\tconst onNavigateTasksCart = useCallback((e: any) => {\r\n\t\te.preventDefault();\r\n\t\tdispatch(navigate('TasksCart'));\r\n\t}, []);\r\n\r\n\tconst onNavigateNotifications = useCallback((e: any) => {\r\n\t\te.preventDefault();\r\n\t\tdispatch(navigate('Notifications'));\r\n\t}, []);\r\n\r\n\tconst onNavigateNotificationDetails = useCallback((userTaskId?: string) => (e: any) => {\r\n\t\te.preventDefault();\r\n\t\tif (!userTaskId) return;\r\n\t\tdispatch(replace('NotificationsTaskDetails', userTaskId));\r\n\t}, []);\r\n\r\n\tconst onNavigateProfile = useCallback(() => {\r\n\t\tdispatch(navigate('Profile'));\r\n\t}, []);\r\n\r\n\tconst onNavigateEmailClick = useCallback((e?: FormEvent) => {\r\n\t\te && e.preventDefault();\r\n\t}, []);\r\n\r\n\t// const onLogoutClicked = useCallback((e: any) => {\r\n\t// \te.preventDefault();\r\n\t// \tdispatch(logout());\r\n\t// }, []);\r\n\r\n\tconst onLogoutClicked = (e: any) => {\r\n\t\te.preventDefault();\r\n\t\t// dispatch(changeIsLoggedIn(false))\r\n\t\t// dispatch(clearAllStorage());\r\n\t\tupdateDefaultHeaders(accessToken, undefined, undefined);\r\n\t\tauthClient.signOff(accessToken);\r\n\t};\r\n\r\n\r\n\tconst onChangeSearchQuery = useCallback((e: FormEvent) => {\r\n\t\tdispatch(changeSearchQuery(e.currentTarget.value));\r\n\t}, []);\r\n\r\n\tconst onEnterClicked = useCallback((e?: any) => {\r\n\t\tif (e && e.key === 'Enter') {\r\n\t\t\te && e.preventDefault();\r\n\t\t\tdispatch(navigate('Search', searchQuery));\r\n\t\t}\r\n\t}, [searchQuery]);\r\n\r\n\tconst onSideBarToggle = () => {\r\n\t\tdispatch(toggleDrawer());\r\n\t};\r\n\r\n\tconst onClickedOpenLoginAsModal = useCallback((e: any) => {\r\n\t\te.preventDefault();\r\n\t\tdispatch(clearAlert());\r\n\t\tdispatch(visibleLoginAs(true));\r\n\t}, []);\r\n\r\n\tconst searchElement = useRef(null);\r\n\tconst onSearchButtonClick = (e: any) => {\r\n\t\te.preventDefault();\r\n\t\t//@ts-ignore\r\n\t\tsearchElement.current!.focus();\r\n\t};\r\n\r\n\tconst renderNotifications = useMemo(\r\n\t\t() => lastNotifications && lastNotifications.map((lastNotification) => (\r\n\t\t\t
  • \r\n\t\t\t\t\r\n\t\t\t\t\t {lastNotification.title}\r\n\t\t\t\t\r\n\t\t\t
  • \r\n\t\t)), [lastNotifications]);\r\n\r\n\tconst renderTaskCart = useMemo(\r\n\t\t() => tasksCart && tasksCart.slice(0, 6).map(x => (\r\n\t\t\t
  • \r\n\t\t\t\t\r\n\t\t\t\t\t {x.taskTitle}\r\n\t\t\t\t\r\n\t\t\t
  • \r\n\t\t)), [tasksCart]);\r\n\r\n\treturn (\r\n\t\t\r\n\t);\r\n};\r\n\r\nexport default Header;\r\n","import React, { FormEvent, useCallback, useEffect, useState } from 'react';\r\nimport cx from 'classnames';\r\nimport { useRouteMatch } from 'react-router-dom';\r\nimport { useDispatch, useSelector } from '../../../config/store';\r\nimport { IRoute, routes } from '../../../config/router';\r\nimport { clearAlert, navigate, toggleDrawer } from '../../../processes/Services/actions';\r\nimport { InboxMode } from '../../../processes/Tasks/logic/type';\r\nimport './styles.css';\r\nimport { killTaskVisibleKillTaskModalAction } from '../../../processes/Tasks/logic/action';\r\nimport { PermissionContainer } from '../../../components';\r\nimport ReactTooltip from 'react-tooltip';\r\n\r\ninterface Props {\r\n\ttitle: string;\r\n\tisDrawerVisible: boolean;\r\n\tsrc?: string;\r\n\tlabel?: string | number;\r\n\tselected?: boolean;\r\n\tonClick?: () => void;\r\n\thref?: string;\r\n\tchildren?: any;\r\n}\r\n\r\nlet lastExpanded = false;\r\nconst DrawerItem = (props: Props) => {\r\n\tconst { title, src, label, selected, onClick, href = '', children, isDrawerVisible } = props;\r\n\r\n\tconst [expanded, setExpanded] = useState(lastExpanded);\r\n\tuseEffect(() => {\r\n\t\tconst selectedList = [children && selected];\r\n\t\tReact.Children.map(children, (child) => {\r\n\t\t\tif (!React.isValidElement(child)) return;\r\n\t\t\tselectedList.push((child.props as any).selected);\r\n\t\t});\r\n\t\tlastExpanded = selectedList.includes(true);\r\n\t\tsetExpanded(selectedList.includes(true));\r\n\t}, [children, selected]);\r\n\r\n\treturn (\r\n\t\t<>\r\n\t\t\t{isDrawerVisible &&\r\n\t\t\t {\r\n\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\tonClick && onClick();\r\n\t\t\t\t}}\r\n\t\t\t\ttitle={title}\r\n\t\t\t>\r\n\t\t\t\t
  • \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t{src && {title}}\r\n\t\t\t\t\t\t{title}\r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    {label !== undefined && {label}}
    \r\n\t\t\t\t
  • \r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t{!isDrawerVisible &&\r\n\t\t\t<>\r\n\t\t\t\t {\r\n\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\tonClick && onClick();\r\n\t\t\t\t\t}}\r\n\t\t\t\t\tdata-tip\r\n\t\t\t\t\tdata-for={title}\r\n\t\t\t\t>\r\n\t\t\t\t\t
  • \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t{src && {title}}\r\n\t\t\t\t\t\t\t{title}\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    {label !== undefined && {label}}
    \r\n\t\t\t\t\t
  • \r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t{title}\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t{children &&
    {children}
    }\r\n\t\t\r\n\t);\r\n};\r\n\r\nconst Drawer = (props: { route: IRoute }) => {\r\n\tconst dispatch = useDispatch();\r\n\r\n\tconst inboxMode = useSelector((state) => state.tasks.inboxMode);\r\n\tconst isDrawerVisible = useSelector((state) => state.service.isDrawerVisible);\r\n\r\n\tuseEffect(() => {\r\n\t\tconst element = document.getElementsByTagName('body')[0];\r\n\t\tif (element && window.innerWidth < 768) {\r\n\t\t\telement.style.overflow = isDrawerVisible ? 'hidden' : 'auto';\r\n\t\t}\r\n\t}, [isDrawerVisible]);\r\n\r\n\tconst [isSmallScreen, setIsSmallScreen] = useState(window.innerWidth < 768);\r\n\tuseEffect(() => {\r\n\t\tconst onResizeWindow = () => setIsSmallScreen(window.innerWidth < 768);\r\n\t\twindow.addEventListener('resize', onResizeWindow);\r\n\t\treturn () => {\r\n\t\t\twindow.removeEventListener('resize', onResizeWindow);\r\n\t\t};\r\n\t}, []);\r\n\r\n\tconst defaultInboxCount = useSelector(state => state.tasks.taskCount.defaultInbox);\r\n\tconst inboxCount = useSelector(state => state.tasks.taskCount.inbox);\r\n\tconst pendingCount = useSelector(state => state.tasks.taskCount.pending);\r\n\tconst lateCount = useSelector(state => state.tasks.taskCount.late);\r\n\tconst retrievedCount = useSelector(state => state.tasks.taskCount.retrieved);\r\n\tconst rejectedCount = useSelector(state => state.tasks.taskCount.rejected);\r\n\tconst doneCount = useSelector(state => state.tasks.taskCount.done);\r\n\tconst assignedCount = useSelector(state => state.tasks.taskCount.assigned);\r\n\tconst ccCount = useSelector(state => state.tasks.taskCount.cc);\r\n\tconst finishCount = useSelector(state => state.tasks.taskCount.finish);\r\n\tconst changeDateNewCount = useSelector(state => state.tasks.taskCount.changeDateNew);\r\n\r\n\tconst isDashboard = !!useRouteMatch({ path: routes.Dashboard.path, exact: true });\r\n\tconst isAdvancedSearch = !!useRouteMatch(routes.AdvancedSearch.path);\r\n\tconst isTasks = !!useRouteMatch(routes.Tasks.path);\r\n\tconst isProfile = !!useRouteMatch(routes.Profile.path);\r\n\tconst isCedRequests = !!useRouteMatch(routes.CedRequests.path);\r\n\tconst isEsRequests = !!useRouteMatch(routes.EsRequests.path);\r\n\r\n\tconst onNavigateTasks = useCallback((inboxMode?: InboxMode, e?: FormEvent) => () => {\r\n\t\tconst mode = InboxMode[(inboxMode || InboxMode.defaultInbox)];\r\n\t\tdispatch(navigate('Tasks', mode));\r\n\t}, []);\r\n\r\n\tconst onClickedOpenKillTaskModal = useCallback(() => {\r\n\t\tdispatch(clearAlert());\r\n\t\tdispatch(killTaskVisibleKillTaskModalAction(true));\r\n\t}, []);\r\n\r\n\tconst onNavigateDashboard = useCallback((e?: FormEvent) => {\r\n\t\te && e.preventDefault();\r\n\t\tdispatch(navigate('Dashboard'));\r\n\t}, []);\r\n\r\n\r\n\tconst renderAppBrand = (\r\n\t\t\r\n\t);\r\n\tconst renderList = (\r\n\t\t
      \r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t dispatch(navigate('AdvancedSearch'))}\r\n\t\t\t\t\thref={routes.AdvancedSearch.path}\r\n\t\t\t\t\tisDrawerVisible={isDrawerVisible}\r\n\t\t\t\t/>\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t dispatch(navigate('Profile'))}\r\n\t\t\t\t\thref={routes.Profile.path}\r\n\t\t\t\t\tisDrawerVisible={isDrawerVisible}\r\n\t\t\t\t/>\r\n\t\t\t\r\n\t\t\t dispatch(navigate('CedRequests', 'new'))}\r\n\t\t\t\thref={routes.CedRequests.path + '/new'}\r\n\t\t\t\tisDrawerVisible={isDrawerVisible}\r\n\t\t\t/>\r\n\t\t\t dispatch(navigate('EsRequests', 'new'))}\r\n\t\t\t\thref={routes.EsRequests.path + '/new'}\r\n\t\t\t\tisDrawerVisible={isDrawerVisible}\r\n\t\t\t/>\r\n\t\t
    \r\n\t);\r\n\r\n\treturn (\r\n\t\t {\r\n\t\t\t\tdispatch(toggleDrawer());\r\n\t\t\t}}\r\n\t\t>\r\n\t\t\t e.stopPropagation()}\r\n\t\t\t>\r\n\t\t\t\t{renderAppBrand}\r\n\t\t\t\t{renderList}\r\n\t\t\t\r\n\t\t\r\n\t);\r\n};\r\n\r\nexport default Drawer;\r\n","import React from 'react';\r\nimport moment from 'moment';\r\n\r\nconst Footer = () => (\r\n\t
    \r\n\t\t
    \r\n\t\t\t

    {('جميع الحقوق محفوظة © ').concat(moment().format('YYYY'))}

    \r\n\t\t
    \r\n\t
    \r\n);\r\n\r\nexport default Footer;\r\n","import React, { FormHTMLAttributes, useEffect, useMemo, useState } from 'react';\r\nimport Button from './Controls/Button';\r\nimport { useDispatch } from '../config/store';\r\nimport { changeIsModalVisible } from '../processes/Services/actions';\r\nimport { useScreenSize } from '../config/utilities';\r\n\r\ninterface Props extends FormHTMLAttributes {\r\n\ttitle?: string;\r\n\tchildren?: React.ReactNode,\r\n\tactions?: React.ReactNode,\r\n\r\n\tonRequestClose: () => void;\r\n\tvisible: boolean;\r\n\tmodalHeight?: number;\r\n\tmodalBodyStyle?: any;\r\n}\r\n\r\nconst Popup = (props: Props) => {\r\n\tconst { visible, title, children, actions, onRequestClose, modalHeight, ...remainingProps } = props;\r\n\r\n\tconst dispatch = useDispatch();\r\n\tconst [isFirstTime, setFirstTime] = useState(true);\r\n\tconst modalId = useMemo(() => require('uuid/v4')(), []);\r\n\r\n\tuseEffect(() => {\r\n\t\t//@ts-ignore\r\n\t\t$(`#${modalId}`).modal(visible ? 'show' : 'hide');\r\n\t}, [visible]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (isFirstTime) {\r\n\t\t\tsetFirstTime(false);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tdispatch(changeIsModalVisible(visible));\r\n\t}, [visible]);\r\n\r\n\tuseEffect(() => {\r\n\t\t//@ts-ignore\r\n\t\t$(`#${modalId}`).on('hidden.bs.modal', function () {\r\n\t\t\tonRequestClose();\r\n\t\t});\r\n\t}, []);\r\n\r\n\tconst onClickEscape = (e: any) => {\r\n\t\tif (e.key === 'Escape') {\r\n\t\t\tonRequestClose();\r\n\t\t}\r\n\t};\r\n\r\n\tuseEffect(() => {\r\n\t\twindow.addEventListener('keydown', onClickEscape);\r\n\t\treturn () => window.removeEventListener('keydown', onClickEscape);\r\n\t}, []);\r\n\r\n\tconst screenSize = useScreenSize();\r\n\tconst { popupWidth, popupHeight } = useMemo(() => {\r\n\t\tconst { width, height } = screenSize;\r\n\t\tconst hSpacing = 110;\r\n\t\tconst vSpacing = 55;\r\n\t\tconst requestedWidth = 1200;\r\n\t\tconst requestedHeight = modalHeight;\r\n\r\n\t\tconst pWidth = width < (requestedWidth + hSpacing)\r\n\t\t\t? width - hSpacing\r\n\t\t\t: requestedWidth;\r\n\r\n\t\tconst pHeight = height < (requestedHeight! + vSpacing)\r\n\t\t\t? height - vSpacing\r\n\t\t\t: requestedHeight;\r\n\r\n\t\treturn {\r\n\t\t\tpopupWidth: `${pWidth}px`,\r\n\t\t\tpopupHeight: `${pHeight}px`,\r\n\t\t};\r\n\t}, [screenSize, modalHeight]);\r\n\r\n\treturn (\r\n\t\t
    \r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    {title}
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t{children}\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t{actions ||
    \r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t
    \r\n\t);\r\n};\r\n\r\nPopup.defaultProps = {\r\n\tmodalHeight: 560,\r\n};\r\n\r\nexport default Popup;\r\n","import React, { FormEvent, useCallback, useEffect } from 'react';\r\nimport Popup from '../../../components/Popup';\r\nimport { Alert } from '../../../layout';\r\nimport { useDispatch, useSelector } from '../../../config/store';\r\nimport {\r\n\tkillTask,\r\n\tkillTaskChangeKillNotes,\r\n\tkillTaskChangeTaskNo,\r\n\tkillTaskClearKillTaskModal,\r\n\tkillTaskGetTaskByTaskNo,\r\n\tkillTaskGoToStep1,\r\n\tkillTaskVisibleKillTaskModalAction,\r\n} from '../logic/action';\r\nimport { Button, InputControl, LabelControl } from '../../../components';\r\nimport TextAreaControl from '../../../components/Controls/TextAreaControl';\r\nimport { formatDate } from '../../../config/utilities';\r\nimport { clearAlert } from '../../Services/actions';\r\n\r\nconst KillTask = () => {\r\n\tconst dispatch = useDispatch();\r\n\r\n\tconst visibleKillTaskModal = useSelector(state => state.tasks.killTask.visibleKillTaskModal);\r\n\tconst taskNo = useSelector(state => state.tasks.killTask.taskNo);\r\n\tconst killNote = useSelector(state => state.tasks.killTask.killNote);\r\n\r\n\tconst notes = useSelector(state => state.tasks.killTask.task?.notes);\r\n\tconst status = useSelector(state => state.tasks.killTask.task?.status);\r\n\tconst statusDisplay = useSelector(state => state.tasks.killTask.task?.statusDisplay);\r\n\tconst createdBy = useSelector(state => state.tasks.killTask.task?.createdBy.arName);\r\n\tconst description = useSelector(state => state.tasks.killTask.task?.description);\r\n\tconst title = useSelector(state => state.tasks.killTask.task?.title);\r\n\tconst procedure = useSelector(state => state.tasks.killTask.task?.procedure.name);\r\n\tconst priority = useSelector(state => state.tasks.killTask.task?.priority.name);\r\n\tconst taskType = useSelector(state => state.tasks.killTask.task?.taskType.name);\r\n\tconst startDate = useSelector(state => state.tasks.killTask.task?.startDate);\r\n\tconst endDate = useSelector(state => state.tasks.killTask.task?.endDate);\r\n\r\n\tconst step1 = useSelector(state => state.tasks.killTask.step1);\r\n\tconst step2 = useSelector(state => state.tasks.killTask.step2);\r\n\r\n\tconst visible = useSelector(state => state.service.alert.visible);\r\n\tconst type = useSelector(state => state.service.alert.type);\r\n\tconst message = useSelector(state => state.service.alert.message);\r\n\tconst isDisabled = useSelector(state => state.service.progress.isFormDisabled);\r\n\r\n\tuseEffect(() => {\r\n\t\tdispatch(clearAlert());\r\n\t}, [visibleKillTaskModal]);\r\n\r\n\tconst onRequestedClose = () => {\r\n\t\tdispatch(killTaskClearKillTaskModal());\r\n\t\tdispatch(killTaskVisibleKillTaskModalAction(false));\r\n\t};\r\n\r\n\tconst onChangeTaskNo = (e: FormEvent) => {\r\n\t\tdispatch(killTaskChangeTaskNo(e.currentTarget.value));\r\n\t};\r\n\r\n\tconst onChangeKillNotes = (e: FormEvent) => {\r\n\t\tdispatch(killTaskChangeKillNotes(e.currentTarget.value));\r\n\t};\r\n\r\n\tconst onGoToStep1 = () => {\r\n\t\tdispatch(killTaskGoToStep1());\r\n\t};\r\n\r\n\tconst onClickGetTaskByTaskNo = () => {\r\n\t\tdispatch(killTaskGetTaskByTaskNo());\r\n\t};\r\n\r\n\tconst onClickKillTask = (e: any) => {\r\n\t\te.preventDefault();\r\n\t\tdispatch(killTask());\r\n\t};\r\n\r\n\tconst onEnterClickedInStep1 = useCallback((e?: any) => {\r\n\t\tif (e && e.key === 'Enter') {\r\n\t\t\te && e.preventDefault();\r\n\t\t\tdispatch(killTaskGetTaskByTaskNo());\r\n\t\t}\r\n\t}, []);\r\n\r\n\tconst actions = step1 ? (\r\n\t\t<>\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t{children}\r\n\t\t\r\n\t);\r\n};\r\n\r\nexport default ModalLayout;\r\n","import React, { useEffect, useMemo, useState } from 'react';\r\nimport MainLayout from './MainLayout';\r\nimport ModalLayout from './ModalLayout';\r\nimport { Button, PermissionContainer } from '../components/';\r\nimport { useDispatch, useSelector } from '../config/store';\r\nimport { PermissionName } from '../config/types';\r\nimport { history, IRoute, RouteName } from '../config/router';\r\nimport { clearAlert } from '../processes/Services/actions';\r\nimport { iconMap } from '../components/Controls/Button';\r\nimport authClient from '../../src/processes/Auth/sdk/api';\r\nimport _ from 'lodash';\r\nimport { changeIsLoggedIn } from '../processes/Storage/logic/actions';\r\n\r\ntype Pick = T | ((pick: (forCreate: C, forUpdate: U) => C | U) => T);\r\n\r\nexport interface LayoutOptions {\r\n\ttitle?: Pick;\r\n\tlayout?: Pick<'MainLayout' | 'AuthLayout' | 'ModalLayout'>;\r\n\tauthorized?: Pick;\r\n\tpermissionName?: Pick;\r\n\tmodalHeight?: Pick;\r\n\tparent?: RouteName;\r\n}\r\n\r\ninterface Props {\r\n\tlayoutOptions: LayoutOptions;\r\n\troute: IRoute;\r\n\tComponent: any;\r\n}\r\n\r\nconst Layout = (props: Props) => {\r\n\tconst { Component, route } = props; \r\n\r\n\tconst dispatch = useDispatch();\r\n\r\n\tlet isLoggedIn = useSelector((state) => state.storage.isLoggedIn);\t\r\n\r\n\tconst [pathname, setPathname] = useState(history.location.pathname);\r\n\r\n\tuseEffect(() => {\r\n\t\tconst unsubscribe = history.listen(location => {\r\n\t\t\tdispatch(clearAlert());\r\n\t\t\tsetPathname(location.pathname);\r\n\t\t});\r\n\t\treturn () => {\r\n\t\t\tunsubscribe();\r\n\t\t};\r\n\t}, []);\r\n\r\n\tconst pick = useMemo(() => (forCreate: C, forUpdate: U) => {\r\n\t\treturn pathname.toLowerCase().includes('edit') ? forUpdate : forCreate;\r\n\t}, [pathname]);\r\n\r\n\tconst title = useMemo(() => {\r\n\t\tconst o = props.layoutOptions.title;\r\n\t\treturn o !== undefined ? (typeof o === 'function' ? o(pick) : o) : 'Task Tracker';\r\n\t}, [props.layoutOptions.title, pick]);\r\n\r\n\tconst layout = useMemo(() => {\r\n\t\tconst o = props.layoutOptions.layout;\r\n\t\treturn o !== undefined ? (typeof o === 'function' ? o(pick) : o) : 'MainLayout';\r\n\t}, [props.layoutOptions.layout, pick]);\r\n\r\n\tconst authorized = useMemo(() => {\r\n\t\tconst o = props.layoutOptions.authorized;\r\n\t\treturn o !== undefined ? (typeof o === 'function' ? o(pick) : o) : true;\r\n\t}, [props.layoutOptions.authorized, pick]);\r\n\r\n\tconst permissionName = useMemo(() => {\r\n\t\tconst o = props.layoutOptions.permissionName;\r\n\t\treturn o !== undefined ? (typeof o === 'function' ? o(pick) : o) : undefined;\r\n\t}, [props.layoutOptions.permissionName, pick]);\r\n\r\n\tconst modalHeight = useMemo(() => {\r\n\t\tconst o = props.layoutOptions.modalHeight;\r\n\t\treturn o !== undefined ? (typeof o === 'function' ? o(pick) : o) : 660;\r\n\t}, [props.layoutOptions, pick]);\r\n\r\n\tconst parent = useMemo(() => {\r\n\t\treturn props.layoutOptions.parent;\r\n\t}, [props.layoutOptions]);\r\n\r\n\tconst layoutOptions = useMemo(() => ({\r\n\t\ttitle,\r\n\t\tlayout,\r\n\t\tauthorized,\r\n\t\tpermissionName,\r\n\t\tmodalHeight,\r\n\t\tparent,\r\n\t}), [title, layout, authorized, permissionName, modalHeight, parent]);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (process.env.NODE_ENV !== 'development') return;\r\n\t\tconsole.group(''.concat(history.location.pathname, ' (', title, ')'));\r\n\t\tconsole.log(`%c title: ${title}`, 'font-weight: bold; color: #FFCC00;');\r\n\t\tconsole.log(`%c layout: ${layout}`, 'font-weight: bold; color: #FFCC00;');\r\n\t\tconsole.log(`%c authorized: ${authorized}`, 'font-weight: bold; color: #FFCC00;');\r\n\t\tconsole.log(`%c permissionName: ${permissionName}`, 'font-weight: bold; color: #FFCC00;');\r\n\t\tconsole.groupEnd();\r\n\t}, [title, layout, authorized, permissionName]);\r\n\r\n\tuseEffect(() => {\r\n\t\tdocument.title = ('نظام متابعة المهام').concat(' | ').concat(title);\r\n\t}, [title]);\r\n\r\n\tuseEffect(() => {\r\n\t\tconst codeMatch = new URLSearchParams(window.location.search).get('code');\r\n\t\tif (codeMatch) {\r\n\t\t\tdispatch(changeIsLoggedIn(true));\r\n\t\t\tisLoggedIn = true;\r\n\t\t}\r\n\t\tif (authorized && !isLoggedIn) {\r\n\t\t\thandleSignIn();\r\n\t\t\t// dispatch(replace('Login', pathname !== '/' ? btoa(pathname) : ''));\r\n\t\t}\r\n\t}, [authorized, isLoggedIn, dispatch]);\r\n\r\n\tconst Layout = useMemo(\r\n\t\t() =>\r\n\t\t\tlayout === 'MainLayout'\r\n\t\t\t\t? MainLayout\r\n\t\t\t\t: layout === 'ModalLayout'\r\n\t\t\t\t? ModalLayout\r\n\t\t\t\t: React.Fragment,\r\n\t\t[],\r\n\t);\r\n\r\n\tconst handleSignIn = () => {\r\n\t\tconst state = authClient.generateRandomValue();\r\n\t\tconst nonce = authClient.generateRandomValue();\r\n\t\tsessionStorage.setItem('state', state);\r\n\t\tsessionStorage.setItem('nonce', nonce);\r\n\t\t// dispatch(changeIsLoggedIn(true));\r\n\t\tauthClient.authorize(state, nonce);\r\n\t };\r\n\r\n\tconst renderConfirmDialog = useMemo(() => (\r\n\t\t\r\n\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t

    \r\n\t\t\t\t\t

    \r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
    \r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t\r\n\t), []);\r\n\r\n\treturn useMemo(() => (\r\n\t\t(authorized && !isLoggedIn) ? null :\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t{renderConfirmDialog}\r\n\t\t\t\r\n\t), [authorized, isLoggedIn, permissionName]);\r\n};\r\n\r\nexport default Layout;\r\n\r\nexport const setLayoutOptions = (Component: any, layoutOptions: LayoutOptions) => {\r\n\tComponent.layoutOptions = layoutOptions;\r\n};\r\n\r\n// Move to another place\r\ntype ModalTemplate = 'delete' | 'confirm';\r\ntype ModalOptions = {\r\n\tmessage?: string,\r\n\tconfirmButton?: string,\r\n\tcancelButton?: string,\r\n\tconfirmButtonIcon?: string,\r\n\tconfirmButtonColor?: string\r\n};\r\n\r\nconst buttonTitle = (title: string, template?: string) => template ? template.replace(/ .*? /, ` ${title} `) : ` ${title} `;\r\n\r\nconst modalTemplates: { [key in ModalTemplate]: ModalOptions } = {\r\n\t'delete': {\r\n\t\tmessage: 'هل أنت متأكد من أنك تريد حذف العنصر؟',\r\n\t\tconfirmButton: 'حذف',\r\n\t\tconfirmButtonIcon: 'delete',\r\n\t\tconfirmButtonColor: 'red-d',\r\n\t\tcancelButton: 'الغاء الأمر',\r\n\t},\r\n\t'confirm': {\r\n\t\tmessage: 'هل أنت متأكد من أنك تريد تنفيذ هذه العملية؟',\r\n\t\tconfirmButton: 'نعم',\r\n\t\tconfirmButtonIcon: 'confirm',\r\n\t\tconfirmButtonColor: 'dark-blue',\r\n\t\tcancelButton: 'لا',\r\n\t},\r\n};\r\n\r\nexport const confirmSomething = (onConfirm: () => void, template: ModalTemplate = 'delete', options?: ModalOptions) => {\r\n\t//@ts-ignore\r\n\tconst confirmDialog = $('#confirm-dialog');\r\n\tconfirmDialog.modal('show');\r\n\r\n\tconst finalIcon = (template === 'delete' ? 'fa-times-circle' : 'fa-question-circle');\r\n\tconst finalMessage = (options && options.message) || modalTemplates[template].message || '';\r\n\tconst finalConfirm = (options && options.confirmButton) || modalTemplates[template].confirmButton || '';\r\n\tconst finalConfirmIcon = (options && options.confirmButtonIcon) || modalTemplates[template].confirmButtonIcon || '';\r\n\tconst finalConfirmColor = (options && options.confirmButtonColor) || modalTemplates[template].confirmButtonColor || '';\r\n\tconst finalCancel = (options && options.cancelButton) || modalTemplates[template].cancelButton || '';\r\n\r\n\tconst iconElement = document.getElementById('conf-dlg-icon');\r\n\tconst messageParagraph = document.getElementById('conf-dlg-message');\r\n\tconst confirmButton = document.getElementById('conf-dlg-confirm')!;\r\n\tconst cancelButton = document.getElementById('conf-dlg-cancel')!;\r\n\r\n\tif (iconElement) {\r\n\t\ticonElement.className = iconElement.className.replace('fa-times-circle', finalIcon).replace('fa-question-circle', finalIcon);\r\n\t}\r\n\r\n\tif (messageParagraph) messageParagraph.innerHTML = finalMessage;\r\n\tif (confirmButton) {\r\n\t\tconfirmButton.onclick = onConfirm;\r\n\t\tconfirmButton.innerHTML = buttonTitle(finalConfirm, confirmButton.innerHTML);\r\n\t\tconfirmButton.className = `link-w-icon ${finalConfirmColor}`;\r\n\t\tif (confirmButton.lastChild) {\r\n\t\t\t// @ts-ignore\r\n\t\t\tconfirmButton.lastChild.src = iconMap[template];\r\n\t\t}\r\n\t}\r\n\tif (cancelButton)\r\n\t\tcancelButton.innerHTML = buttonTitle(finalCancel, cancelButton.innerHTML);\r\n};\r\n\r\nexport const useNoResultMessage = (totalCount: number) =>\r\n\tuseMemo(\r\n\t\t() =>\r\n\t\t\ttotalCount === 0 && (\r\n\t\t\t\t
    \r\n\t\t\t\t\t \r\n\t\t\t\t\tعذراً \r\n\t\t\t\t\tلا يوجد نتائج\r\n\t\t\t\t
    \r\n\t\t\t),\r\n\t\t[totalCount],\r\n\t);\r\n","import React, { FormEvent, useCallback, useEffect, useMemo } from 'react';\r\n\r\nimport { useDispatch, useSelector } from '../../../config/store';\r\nimport InputControl from '../../../components/Controls/InputControl';\r\nimport {\r\n\tchangeEmailCheckbox,\r\n\tchangeNote,\r\n\tchangePhoneCheckbox,\r\n\tchangePhoneNumber,\r\n\tchangeSystemCheckbox,\r\n\tfetchProfile,\r\n\tsaveProfile,\r\n} from '../logic/actions';\r\nimport { setLayoutOptions } from '../../../layout/Layout';\r\nimport TextAreaControl from '../../../components/Controls/TextAreaControl';\r\nimport { Button, CheckboxControl, FormContainer, LabelControl } from '../../../components';\r\nimport { onlyDigitsRegex } from '../../../config/constant';\r\n\r\nconst Profile = () => {\r\n\tconst dispatch = useDispatch();\r\n\r\n\tuseEffect(() => {\r\n\t\tdispatch(fetchProfile());\r\n\t}, []);\r\n\r\n\tconst profile = useSelector(state => state.auth.profile);\r\n\tconst notifications = useSelector(state => state.auth.notifications);\r\n\r\n\tconst onPhoneNumberChange = useCallback((e: FormEvent) => {\r\n\t\tif (onlyDigitsRegex.test(e.currentTarget.value) || e.currentTarget.value === '') {\r\n\t\t\tdispatch(changePhoneNumber(e.currentTarget.value));\r\n\t\t}\r\n\t}, []);\r\n\r\n\tconst onEmailCheckboxChange = useCallback((id: string) => () => {\r\n\t\tdispatch(changeEmailCheckbox(id));\r\n\t}, []);\r\n\r\n\tconst onPhoneCheckboxChange = useCallback((id: string) => () => {\r\n\t\tdispatch(changePhoneCheckbox(id));\r\n\t}, []);\r\n\r\n\tconst onSystemCheckboxChange = useCallback((id: string) => () => {\r\n\t\tdispatch(changeSystemCheckbox(id));\r\n\t}, []);\r\n\r\n\tconst onNoteChange = useCallback((e: any) => {\r\n\t\tdispatch(changeNote(e.target.value));\r\n\t}, []);\r\n\r\n\tconst onProfileSave = useCallback((e?: FormEvent) => {\r\n\t\te!.preventDefault();\r\n\t\tdispatch(saveProfile());\r\n\t}, []);\r\n\r\n\r\n\tconst renderNotificationSettings = useMemo(() => notifications.map((notification) => {\r\n\t\treturn (\r\n\t\t\t
    \r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
    \r\n\t\t);\r\n\t}), [notifications]);\r\n\r\n\tconst renderActions =