hgs-twilio-class-lib 1.1.72 → 1.1.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/lib/aws/abstract/ServiceObjectStore.d.ts +9 -0
- package/lib/aws/abstract/ServiceObjectStore.js +10 -0
- package/lib/aws/abstract/ServiceOpenRequest.d.ts +7 -0
- package/lib/aws/abstract/ServiceOpenRequest.js +10 -0
- package/lib/aws/abstract/ServiceRequest.d.ts +3 -0
- package/lib/aws/abstract/ServiceRequest.js +7 -0
- package/lib/aws/abstract/ServiceResource.d.ts +20 -0
- package/lib/aws/abstract/ServiceResource.js +31 -0
- package/lib/aws/abstract/ServiceResourceFactory.d.ts +13 -0
- package/lib/aws/abstract/ServiceResourceFactory.js +14 -0
- package/lib/aws/abstract/ServiceTransaction.d.ts +6 -0
- package/lib/aws/abstract/ServiceTransaction.js +11 -0
- package/lib/aws/impl/AWSAPIConfig.d.ts +14 -0
- package/lib/aws/impl/AWSAPIConfig.js +38 -0
- package/lib/aws/impl/AWSClient.d.ts +5 -0
- package/lib/aws/impl/AWSClient.js +21 -0
- package/lib/aws/impl/AWSConnectAPIConfig.d.ts +17 -0
- package/lib/aws/impl/AWSConnectAPIConfig.js +38 -0
- package/lib/aws/impl/DynamoDB/DynamoOpenRequest.d.ts +18 -0
- package/lib/aws/impl/DynamoDB/DynamoOpenRequest.js +24 -0
- package/lib/aws/impl/DynamoDB/DynamoRequest.d.ts +16 -0
- package/lib/aws/impl/DynamoDB/DynamoRequest.js +21 -0
- package/lib/aws/impl/DynamoDB/DynamoResourse.d.ts +29 -0
- package/lib/aws/impl/DynamoDB/DynamoResourse.js +45 -0
- package/lib/aws/impl/DynamoDB/DynamoServiceFactory.d.ts +16 -0
- package/lib/aws/impl/DynamoDB/DynamoServiceFactory.js +63 -0
- package/lib/aws/impl/DynamoDB/DynamoTable.d.ts +26 -0
- package/lib/aws/impl/DynamoDB/DynamoTable.js +126 -0
- package/lib/aws/impl/DynamoDB/DynamoTransaction.d.ts +21 -0
- package/lib/aws/impl/DynamoDB/DynamoTransaction.js +37 -0
- package/lib/aws/impl/HoopServices/HoopService.d.ts +28 -0
- package/lib/aws/impl/HoopServices/HoopService.js +124 -0
- package/lib/aws/impl/HoopServices/HoopServiceFactory.d.ts +17 -0
- package/lib/aws/impl/HoopServices/HoopServiceFactory.js +53 -0
- package/lib/aws/impl/HoopServices/HoopServiceOpenRequest.d.ts +18 -0
- package/lib/aws/impl/HoopServices/HoopServiceOpenRequest.js +24 -0
- package/lib/aws/impl/HoopServices/HoopServiceResource.d.ts +29 -0
- package/lib/aws/impl/HoopServices/HoopServiceResource.js +46 -0
- package/lib/aws/impl/HoopServices/HoopServiceTransaction.d.ts +22 -0
- package/lib/aws/impl/HoopServices/HoopServiceTransaction.js +37 -0
- package/lib/aws/interface/IDirection.d.ts +2 -0
- package/lib/aws/interface/IDirection.js +2 -0
- package/lib/aws/interface/ILink.d.ts +2 -0
- package/lib/aws/interface/ILink.js +2 -0
- package/lib/aws/interface/IServiceDBOpenRequest.d.ts +3 -0
- package/lib/aws/interface/IServiceDBOpenRequest.js +2 -0
- package/lib/aws/interface/IServiceObjectStore.d.ts +3 -0
- package/lib/aws/interface/IServiceObjectStore.js +2 -0
- package/lib/aws/interface/IServiceObjectStoreParameters.d.ts +4 -0
- package/lib/aws/interface/IServiceObjectStoreParameters.js +2 -0
- package/lib/aws/interface/IServiceRequest.d.ts +3 -0
- package/lib/aws/interface/IServiceRequest.js +2 -0
- package/lib/aws/interface/IServiceResource.d.ts +7 -0
- package/lib/aws/interface/IServiceResource.js +2 -0
- package/lib/aws/interface/IServiceTransation.d.ts +3 -0
- package/lib/aws/interface/IServiceTransation.js +2 -0
- package/lib/aws/interface/ISubResourceUri.d.ts +2 -0
- package/lib/aws/interface/ISubResourceUri.js +2 -0
- package/lib/aws/interface/ISyncItemData.d.ts +0 -0
- package/lib/aws/interface/ISyncItemData.js +1 -0
- package/lib/aws/interface/ISyncObjectStoreParameters.d.ts +0 -0
- package/lib/aws/interface/ISyncObjectStoreParameters.js +1 -0
- package/lib/aws/interface/ISyncTransactionOptions.d.ts +4 -0
- package/lib/aws/interface/ISyncTransactionOptions.js +2 -0
- package/lib/common/abstract/CommonError.d.ts +8 -0
- package/lib/common/abstract/CommonError.js +12 -0
- package/lib/common/abstract/Database.d.ts +44 -0
- package/lib/common/abstract/Database.js +58 -0
- package/lib/common/abstract/DatabaseClient.d.ts +11 -0
- package/lib/common/abstract/DatabaseClient.js +21 -0
- package/lib/common/abstract/DatabaseClientConfig.d.ts +5 -0
- package/lib/common/abstract/DatabaseClientConfig.js +9 -0
- package/lib/common/abstract/DatabaseFactory.d.ts +70 -0
- package/lib/common/abstract/DatabaseFactory.js +32 -0
- package/lib/common/abstract/DatabaseObjectStore.d.ts +29 -0
- package/lib/common/abstract/DatabaseObjectStore.js +13 -0
- package/lib/common/abstract/DatabaseOpenRequest.d.ts +24 -0
- package/lib/common/abstract/DatabaseOpenRequest.js +13 -0
- package/lib/common/abstract/DatabaseRequest.d.ts +21 -0
- package/lib/common/abstract/DatabaseRequest.js +14 -0
- package/lib/common/abstract/DatabaseTransaction.d.ts +22 -0
- package/lib/common/abstract/DatabaseTransaction.js +13 -0
- package/lib/common/abstract/Filter.d.ts +12 -0
- package/lib/common/abstract/Filter.js +30 -0
- package/lib/common/enum/ErrorTypes.d.ts +4 -0
- package/lib/common/enum/ErrorTypes.js +9 -0
- package/lib/common/enum/FilterTypes.d.ts +10 -0
- package/lib/common/enum/FilterTypes.js +14 -0
- package/lib/common/interface/IDatabaesInfo.d.ts +2 -0
- package/lib/common/interface/IDatabaesInfo.js +2 -0
- package/lib/common/interface/IDatabase.d.ts +4 -0
- package/lib/common/interface/IDatabase.js +2 -0
- package/lib/common/interface/IDatabaseClient.d.ts +5 -0
- package/lib/common/interface/IDatabaseClient.js +2 -0
- package/lib/common/interface/IDatabaseConfig.d.ts +8 -0
- package/lib/common/interface/IDatabaseConfig.js +10 -0
- package/lib/common/interface/IDatabaseDBOpenRequest.d.ts +2 -0
- package/lib/common/interface/IDatabaseDBOpenRequest.js +2 -0
- package/lib/common/interface/IDatabaseFactory.d.ts +21 -0
- package/lib/common/interface/IDatabaseFactory.js +2 -0
- package/lib/common/interface/IDatabaseObjectStore.d.ts +2 -0
- package/lib/common/interface/IDatabaseObjectStore.js +2 -0
- package/lib/common/interface/IDatabaseObjectStoreParameters.d.ts +2 -0
- package/lib/common/interface/IDatabaseObjectStoreParameters.js +2 -0
- package/lib/common/interface/IDatabaseRecord.d.ts +2 -0
- package/lib/common/interface/IDatabaseRecord.js +2 -0
- package/lib/common/interface/IDatabaseRequest.d.ts +2 -0
- package/lib/common/interface/IDatabaseRequest.js +2 -0
- package/lib/common/interface/IDatabaseTransaction.d.ts +2 -0
- package/lib/common/interface/IDatabaseTransaction.js +2 -0
- package/lib/common/interface/IDatabaseTransactionOptions.d.ts +2 -0
- package/lib/common/interface/IDatabaseTransactionOptions.js +2 -0
- package/lib/common/interface/IError.d.ts +5 -0
- package/lib/common/interface/IError.js +2 -0
- package/lib/common/interface/IErrorDetails.d.ts +6 -0
- package/lib/common/interface/IErrorDetails.js +2 -0
- package/lib/common/interface/IFilter.d.ts +25 -0
- package/lib/common/interface/IFilter.js +2 -0
- package/lib/common/type/DatabaseReadyType.d.ts +1 -0
- package/lib/common/type/DatabaseReadyType.js +2 -0
- package/lib/common/type/FilterInputType.d.ts +1 -0
- package/lib/common/type/FilterInputType.js +2 -0
- package/lib/common/type/SearchParameterType.d.ts +15 -0
- package/lib/common/type/SearchParameterType.js +3 -0
- package/lib/common/utils/dateFormat.d.ts +1 -0
- package/lib/common/utils/dateFormat.js +58 -0
- package/lib/common/utils/filter.d.ts +1 -0
- package/lib/common/utils/filter.js +99 -0
- package/lib/common/utils/newFilter.d.ts +1 -0
- package/lib/common/utils/newFilter.js +126 -0
- package/lib/common/utils/pagination.d.ts +1 -0
- package/lib/common/utils/pagination.js +9 -0
- package/lib/common/utils/search.d.ts +1 -0
- package/lib/common/utils/search.js +14 -0
- package/lib/common/utils/sort.d.ts +1 -0
- package/lib/common/utils/sort.js +29 -0
- package/lib/config/AWSConfig.d.ts +6 -0
- package/lib/config/AWSConfig.js +9 -0
- package/lib/config/DatabaseConfig.d.ts +6 -0
- package/lib/config/DatabaseConfig.js +38 -0
- package/lib/config/TwilioConfig.d.ts +4 -0
- package/lib/config/TwilioConfig.js +7 -0
- package/lib/controller/Common.d.ts +20 -0
- package/lib/controller/Common.js +57 -0
- package/lib/controller/DatabaseFactoryCollection.d.ts +6 -0
- package/lib/controller/DatabaseFactoryCollection.js +14 -0
- package/lib/controller/MainController.d.ts +6 -0
- package/lib/controller/MainController.js +174 -0
- package/lib/controller/RealTimeDashboardController.d.ts +39 -0
- package/lib/controller/RealTimeDashboardController.js +267 -0
- package/lib/controller/aws/HoopBuisnessHours.d.ts +23 -0
- package/lib/controller/aws/HoopBuisnessHours.js +408 -0
- package/lib/controller/aws/HoopOperationsController.d.ts +9 -0
- package/lib/controller/aws/HoopOperationsController.js +86 -0
- package/lib/controller/aws/HoopOverrideBranchesController.d.ts +7 -0
- package/lib/controller/aws/HoopOverrideBranchesController.js +40 -0
- package/lib/controller/aws/HoopProfilesListController.d.ts +8 -0
- package/lib/controller/aws/HoopProfilesListController.js +61 -0
- package/lib/controller/aws/PlaybackScreenrecordings.d.ts +9 -0
- package/lib/controller/aws/PlaybackScreenrecordings.js +63 -0
- package/lib/controller/twilio/AgentActionsController.d.ts +54 -0
- package/lib/controller/twilio/AgentActionsController.js +177 -0
- package/lib/controller/twilio/AgentScorecardController.d.ts +53 -0
- package/lib/controller/twilio/AgentScorecardController.js +173 -0
- package/lib/controller/twilio/AuditLogController.d.ts +15 -0
- package/lib/controller/twilio/AuditLogController.js +137 -0
- package/lib/controller/twilio/CallLogsController.d.ts +12 -0
- package/lib/controller/twilio/CallLogsController.js +131 -0
- package/lib/controller/twilio/CallbackAndVoicemailController.d.ts +12 -0
- package/lib/controller/twilio/CallbackAndVoicemailController.js +114 -0
- package/lib/controller/twilio/ChannelSettingTaskInfoController.d.ts +11 -0
- package/lib/controller/twilio/ChannelSettingTaskInfoController.js +117 -0
- package/lib/controller/twilio/ChannelSettingsController.d.ts +16 -0
- package/lib/controller/twilio/ChannelSettingsController.js +142 -0
- package/lib/controller/twilio/CxConfigAssetController.d.ts +12 -0
- package/lib/controller/twilio/CxConfigAssetController.js +128 -0
- package/lib/controller/twilio/CxConfigController.d.ts +18 -0
- package/lib/controller/twilio/CxConfigController.js +112 -0
- package/lib/controller/twilio/CxConfigExternalNumbersController.d.ts +12 -0
- package/lib/controller/twilio/CxConfigExternalNumbersController.js +138 -0
- package/lib/controller/twilio/CxConfigOther.d.ts +16 -0
- package/lib/controller/twilio/CxConfigOther.js +138 -0
- package/lib/controller/twilio/CxConfigQueueMenuController.d.ts +12 -0
- package/lib/controller/twilio/CxConfigQueueMenuController.js +129 -0
- package/lib/controller/twilio/CxConfigUIconfigController.d.ts +12 -0
- package/lib/controller/twilio/CxConfigUIconfigController.js +132 -0
- package/lib/controller/twilio/GPMController.d.ts +12 -0
- package/lib/controller/twilio/GPMController.js +151 -0
- package/lib/controller/twilio/HoopBusinessHoursController.d.ts +18 -0
- package/lib/controller/twilio/HoopBusinessHoursController.js +285 -0
- package/lib/controller/twilio/HoopHolidaysController.d.ts +14 -0
- package/lib/controller/twilio/HoopHolidaysController.js +152 -0
- package/lib/controller/twilio/HoopMainController.d.ts +13 -0
- package/lib/controller/twilio/HoopMainController.js +297 -0
- package/lib/controller/twilio/HoopNotesController.d.ts +14 -0
- package/lib/controller/twilio/HoopNotesController.js +149 -0
- package/lib/controller/twilio/HoopOperationsController.d.ts +14 -0
- package/lib/controller/twilio/HoopOperationsController.js +138 -0
- package/lib/controller/twilio/HoopOverrideBranchesController.d.ts +14 -0
- package/lib/controller/twilio/HoopOverrideBranchesController.js +137 -0
- package/lib/controller/twilio/HoopPartialDaysController.d.ts +14 -0
- package/lib/controller/twilio/HoopPartialDaysController.js +152 -0
- package/lib/controller/twilio/HoopProfilesListController.d.ts +14 -0
- package/lib/controller/twilio/HoopProfilesListController.js +147 -0
- package/lib/controller/twilio/NavigationController.d.ts +13 -0
- package/lib/controller/twilio/NavigationController.js +170 -0
- package/lib/controller/twilio/QualityFormsController.d.ts +12 -0
- package/lib/controller/twilio/QualityFormsController.js +129 -0
- package/lib/controller/twilio/QuickLinkController.d.ts +11 -0
- package/lib/controller/twilio/QuickLinkController.js +122 -0
- package/lib/controller/twilio/RealTimeReportQueueDetailsController.d.ts +14 -0
- package/lib/controller/twilio/RealTimeReportQueueDetailsController.js +126 -0
- package/lib/controller/twilio/RealTimeReportsWGDetailsController.d.ts +53 -0
- package/lib/controller/twilio/RealTimeReportsWGDetailsController.js +160 -0
- package/lib/controller/twilio/TaskInfoPanelController.d.ts +15 -0
- package/lib/controller/twilio/TaskInfoPanelController.js +134 -0
- package/lib/controller/twilio/filterImpl/AgentScorecardFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/AgentScorecardFilter.js +52 -0
- package/lib/controller/twilio/filterImpl/AuditLogsFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/AuditLogsFilter.js +89 -0
- package/lib/controller/twilio/filterImpl/CXConfigPromptFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/CXConfigPromptFilter.js +81 -0
- package/lib/controller/twilio/filterImpl/CallLogsFilter.d.ts +20 -0
- package/lib/controller/twilio/filterImpl/CallLogsFilter.js +101 -0
- package/lib/controller/twilio/filterImpl/CxConfigAssetFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/CxConfigAssetFilter.js +59 -0
- package/lib/controller/twilio/filterImpl/CxConfigExternalNumbersFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/CxConfigExternalNumbersFilter.js +67 -0
- package/lib/controller/twilio/filterImpl/CxConfigOtherFilter.d.ts +14 -0
- package/lib/controller/twilio/filterImpl/CxConfigOtherFilter.js +52 -0
- package/lib/controller/twilio/filterImpl/CxConfigQueueMenuFilter.d.ts +17 -0
- package/lib/controller/twilio/filterImpl/CxConfigQueueMenuFilter.js +78 -0
- package/lib/controller/twilio/filterImpl/CxConfigUIconfigFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/CxConfigUIconfigFilter.js +51 -0
- package/lib/controller/twilio/filterImpl/HoopHolidaysFilter.d.ts +14 -0
- package/lib/controller/twilio/filterImpl/HoopHolidaysFilter.js +58 -0
- package/lib/controller/twilio/filterImpl/HoopNotesFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/HoopNotesFilter.js +51 -0
- package/lib/controller/twilio/filterImpl/HoopPartialDaysFilter.d.ts +14 -0
- package/lib/controller/twilio/filterImpl/HoopPartialDaysFilter.js +58 -0
- package/lib/controller/twilio/filterImpl/MainFilterService.d.ts +4 -0
- package/lib/controller/twilio/filterImpl/MainFilterService.js +108 -0
- package/lib/controller/twilio/filterImpl/NavigationFilter.d.ts +20 -0
- package/lib/controller/twilio/filterImpl/NavigationFilter.js +90 -0
- package/lib/controller/twilio/filterImpl/QueueDetailsFilter.d.ts +14 -0
- package/lib/controller/twilio/filterImpl/QueueDetailsFilter.js +53 -0
- package/lib/controller/twilio/filterImpl/TaskCompleteFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/TaskCompleteFilter.js +62 -0
- package/lib/controller/twilio/filterImpl/TaskInfoPanelFilter.d.ts +12 -0
- package/lib/controller/twilio/filterImpl/TaskInfoPanelFilter.js +52 -0
- package/lib/express/ApiResponse.d.ts +15 -0
- package/lib/express/ApiResponse.js +11 -0
- package/lib/express/RequestValidator.d.ts +50 -0
- package/lib/express/RequestValidator.js +77 -0
- package/lib/express/RequireParamsPicker.d.ts +7 -0
- package/lib/express/RequireParamsPicker.js +14 -0
- package/lib/express/ValidateRequireParameters.d.ts +3 -0
- package/lib/express/ValidateRequireParameters.js +39 -0
- package/lib/index.d.ts +39 -0
- package/lib/index.js +100 -0
- package/lib/models/BatchUpdateSkills.model.d.ts +0 -0
- package/lib/models/BatchUpdateSkills.model.js +11 -0
- package/lib/models/CannedMessage.model.d.ts +4 -0
- package/lib/models/CannedMessage.model.js +1 -0
- package/lib/models/ChannelSettingsTaskInfo.model.d.ts +87 -0
- package/lib/models/ChannelSettingsTaskInfo.model.js +1 -0
- package/lib/models/CustomerFeedback.model.d.ts +9 -0
- package/lib/models/CustomerFeedback.model.js +1 -0
- package/lib/models/Filter.model.d.ts +15 -0
- package/lib/models/Filter.model.js +2 -0
- package/lib/models/Hoop.model.d.ts +15 -0
- package/lib/models/Hoop.model.js +18 -0
- package/lib/models/Navigation.model.d.ts +28 -0
- package/lib/models/Navigation.model.js +8 -0
- package/lib/models/Roles.Model.d.ts +8 -0
- package/lib/models/Roles.Model.js +1 -0
- package/lib/models/abstract/BaseModel.d.ts +17 -0
- package/lib/models/abstract/BaseModel.js +40 -0
- package/lib/models/impl/AgentActionsLogsModel.d.ts +27 -0
- package/lib/models/impl/AgentActionsLogsModel.js +89 -0
- package/lib/models/impl/AgentActionsModel.d.ts +19 -0
- package/lib/models/impl/AgentActionsModel.js +60 -0
- package/lib/models/impl/AgentScorecardModel.d.ts +66 -0
- package/lib/models/impl/AgentScorecardModel.js +282 -0
- package/lib/models/impl/AuditLogsModel.d.ts +31 -0
- package/lib/models/impl/AuditLogsModel.js +146 -0
- package/lib/models/impl/CallLogsModel.d.ts +37 -0
- package/lib/models/impl/CallLogsModel.js +109 -0
- package/lib/models/impl/CallStatisticsModel.d.ts +16 -0
- package/lib/models/impl/CallStatisticsModel.js +52 -0
- package/lib/models/impl/CategoryDetailsModel.d.ts +17 -0
- package/lib/models/impl/CategoryDetailsModel.js +44 -0
- package/lib/models/impl/DailySummaryModel.d.ts +60 -0
- package/lib/models/impl/DailySummaryModel.js +247 -0
- package/lib/models/impl/IntervalSummaryModel.d.ts +63 -0
- package/lib/models/impl/IntervalSummaryModel.js +261 -0
- package/lib/models/impl/MemberModel.d.ts +42 -0
- package/lib/models/impl/MemberModel.js +170 -0
- package/lib/models/impl/ModelValidationError.d.ts +6 -0
- package/lib/models/impl/ModelValidationError.js +15 -0
- package/lib/models/impl/NavigationModel.d.ts +39 -0
- package/lib/models/impl/NavigationModel.js +126 -0
- package/lib/models/impl/PerformanceStatisticsModel.d.ts +41 -0
- package/lib/models/impl/PerformanceStatisticsModel.js +129 -0
- package/lib/models/impl/PlaybackScreenrecordings.d.ts +39 -0
- package/lib/models/impl/PlaybackScreenrecordings.js +133 -0
- package/lib/models/impl/ProfileModel.d.ts +23 -0
- package/lib/models/impl/ProfileModel.js +102 -0
- package/lib/models/impl/QualityFormsModel.d.ts +39 -0
- package/lib/models/impl/QualityFormsModel.js +150 -0
- package/lib/models/impl/QuestionDetailsModel.d.ts +39 -0
- package/lib/models/impl/QuestionDetailsModel.js +173 -0
- package/lib/models/impl/QueueDetailsModel.d.ts +63 -0
- package/lib/models/impl/QueueDetailsModel.js +261 -0
- package/lib/models/impl/QueueModel.d.ts +39 -0
- package/lib/models/impl/QueueModel.js +156 -0
- package/lib/models/impl/QuickLinkModel.d.ts +24 -0
- package/lib/models/impl/QuickLinkModel.js +122 -0
- package/lib/models/impl/StatisticsNumberDetailsModel.d.ts +18 -0
- package/lib/models/impl/StatisticsNumberDetailsModel.js +72 -0
- package/lib/models/impl/StatisticsTimeDetailsModel.d.ts +18 -0
- package/lib/models/impl/StatisticsTimeDetailsModel.js +72 -0
- package/lib/models/impl/TaskAttributesModel.d.ts +31 -0
- package/lib/models/impl/TaskAttributesModel.js +108 -0
- package/lib/models/impl/TaskChannelModel.d.ts +15 -0
- package/lib/models/impl/TaskChannelModel.js +69 -0
- package/lib/models/impl/TaskComplete.d.ts +0 -0
- package/lib/models/impl/TaskComplete.js +1 -0
- package/lib/models/impl/TaskInfoPanelModel.d.ts +16 -0
- package/lib/models/impl/TaskInfoPanelModel.js +69 -0
- package/lib/models/impl/TaskModel.d.ts +59 -0
- package/lib/models/impl/TaskModel.js +234 -0
- package/lib/models/impl/WorkGroupDetailsModel.d.ts +63 -0
- package/lib/models/impl/WorkGroupDetailsModel.js +281 -0
- package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailModel.d.ts +33 -0
- package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailModel.js +140 -0
- package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailNamespace.d.ts +8 -0
- package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailNamespace.js +12 -0
- package/lib/models/impl/callbackandvoicemail/CallbackModel.d.ts +19 -0
- package/lib/models/impl/callbackandvoicemail/CallbackModel.js +82 -0
- package/lib/models/impl/callbackandvoicemail/VoicemailModel.d.ts +25 -0
- package/lib/models/impl/callbackandvoicemail/VoicemailModel.js +108 -0
- package/lib/models/impl/channelsettings/ChannelSettingModel.d.ts +68 -0
- package/lib/models/impl/channelsettings/ChannelSettingModel.js +240 -0
- package/lib/models/impl/channelsettings/ChannelSettingTaskInfoModel.d.ts +31 -0
- package/lib/models/impl/channelsettings/ChannelSettingTaskInfoModel.js +106 -0
- package/lib/models/impl/channelsettings/TaskInfoAttributeModel.d.ts +25 -0
- package/lib/models/impl/channelsettings/TaskInfoAttributeModel.js +80 -0
- package/lib/models/impl/channelsettings/TaskInfoModel.d.ts +13 -0
- package/lib/models/impl/channelsettings/TaskInfoModel.js +52 -0
- package/lib/models/impl/cxconfig/CxConfigNamespace.d.ts +16 -0
- package/lib/models/impl/cxconfig/CxConfigNamespace.js +20 -0
- package/lib/models/impl/cxconfig/CxConfigUIConfigModel.d.ts +27 -0
- package/lib/models/impl/cxconfig/CxConfigUIConfigModel.js +173 -0
- package/lib/models/impl/cxconfig/CxConfiguratorConfigModel.d.ts +24 -0
- package/lib/models/impl/cxconfig/CxConfiguratorConfigModel.js +103 -0
- package/lib/models/impl/cxconfig/CxConfiguratorExternalNumbersModel.d.ts +24 -0
- package/lib/models/impl/cxconfig/CxConfiguratorExternalNumbersModel.js +149 -0
- package/lib/models/impl/cxconfig/CxConfiguratorGPMAssetModel.d.ts +27 -0
- package/lib/models/impl/cxconfig/CxConfiguratorGPMAssetModel.js +179 -0
- package/lib/models/impl/cxconfig/CxConfiguratorGPMPromptModel.d.ts +37 -0
- package/lib/models/impl/cxconfig/CxConfiguratorGPMPromptModel.js +197 -0
- package/lib/models/impl/cxconfig/CxConfiguratorOtherModel.d.ts +27 -0
- package/lib/models/impl/cxconfig/CxConfiguratorOtherModel.js +159 -0
- package/lib/models/impl/cxconfig/CxConfiguratorQueueMenuModel.d.ts +40 -0
- package/lib/models/impl/cxconfig/CxConfiguratorQueueMenuModel.js +128 -0
- package/lib/models/impl/hoop/HoopBusinessHoursModel.d.ts +39 -0
- package/lib/models/impl/hoop/HoopBusinessHoursModel.js +122 -0
- package/lib/models/impl/hoop/HoopDescriptionModel.d.ts +16 -0
- package/lib/models/impl/hoop/HoopDescriptionModel.js +64 -0
- package/lib/models/impl/hoop/HoopHolidaysImplModel.d.ts +25 -0
- package/lib/models/impl/hoop/HoopHolidaysImplModel.js +118 -0
- package/lib/models/impl/hoop/HoopNotesImplModel.d.ts +25 -0
- package/lib/models/impl/hoop/HoopNotesImplModel.js +117 -0
- package/lib/models/impl/hoop/HoopOperationsImplModel.d.ts +28 -0
- package/lib/models/impl/hoop/HoopOperationsImplModel.js +161 -0
- package/lib/models/impl/hoop/HoopOverrideImplModel.d.ts +22 -0
- package/lib/models/impl/hoop/HoopOverrideImplModel.js +143 -0
- package/lib/models/impl/hoop/HoopPartialDaysImplModel.d.ts +31 -0
- package/lib/models/impl/hoop/HoopPartialDaysImplModel.js +140 -0
- package/lib/models/impl/hoop/HoopProfilesListImplModel.d.ts +22 -0
- package/lib/models/impl/hoop/HoopProfilesListImplModel.js +104 -0
- package/lib/models/impl/hoop/HoopWeeklyTimingModel.d.ts +22 -0
- package/lib/models/impl/hoop/HoopWeeklyTimingModel.js +86 -0
- package/lib/models/index.d.ts +27 -0
- package/lib/models/index.js +57 -0
- package/lib/models/interface/IBaseModel.d.ts +11 -0
- package/lib/models/interface/IBaseModel.js +2 -0
- package/lib/models/types/AgentScorecard.type.d.ts +6 -0
- package/lib/models/types/AgentScorecard.type.js +7 -0
- package/lib/models/types/AuditLog.type.d.ts +13 -0
- package/lib/models/types/AuditLog.type.js +10 -0
- package/lib/models/types/CallLog.type.d.ts +16 -0
- package/lib/models/types/CallLog.type.js +10 -0
- package/lib/models/types/ChannelSetting.type.d.ts +7 -0
- package/lib/models/types/ChannelSetting.type.js +11 -0
- package/lib/models/types/CxConfig.type.d.ts +72 -0
- package/lib/models/types/CxConfig.type.js +43 -0
- package/lib/models/types/Hoop.type.d.ts +9 -0
- package/lib/models/types/Hoop.type.js +13 -0
- package/lib/models/types/Navigation.type.d.ts +11 -0
- package/lib/models/types/Navigation.type.js +8 -0
- package/lib/models/types/Profile.type.d.ts +1 -0
- package/lib/models/types/Profile.type.js +2 -0
- package/lib/models/types/QueueDetails.type.d.ts +6 -0
- package/lib/models/types/QueueDetails.type.js +7 -0
- package/lib/models/types/RealtimeSyncMapDetails.type.d.ts +6 -0
- package/lib/models/types/RealtimeSyncMapDetails.type.js +7 -0
- package/lib/models/types/TaskComplete.type.d.ts +7 -0
- package/lib/models/types/TaskComplete.type.js +6 -0
- package/lib/models/types/TaskInfoPanel.type.d.ts +6 -0
- package/lib/models/types/TaskInfoPanel.type.js +7 -0
- package/lib/server.d.ts +1 -0
- package/lib/server.js +41 -0
- package/lib/twilio/abstract/ServiceObjectStore.d.ts +6 -0
- package/lib/twilio/abstract/ServiceObjectStore.js +10 -0
- package/lib/twilio/abstract/ServiceOpenRequest.d.ts +7 -0
- package/lib/twilio/abstract/ServiceOpenRequest.js +10 -0
- package/lib/twilio/abstract/ServiceRequest.d.ts +3 -0
- package/lib/twilio/abstract/ServiceRequest.js +7 -0
- package/lib/twilio/abstract/ServiceResource.d.ts +23 -0
- package/lib/twilio/abstract/ServiceResource.js +37 -0
- package/lib/twilio/abstract/ServiceResourceFactory.d.ts +15 -0
- package/lib/twilio/abstract/ServiceResourceFactory.js +18 -0
- package/lib/twilio/abstract/ServiceTransaction.d.ts +6 -0
- package/lib/twilio/abstract/ServiceTransaction.js +11 -0
- package/lib/twilio/abstract/SyncServiceItemResource.d.ts +31 -0
- package/lib/twilio/abstract/SyncServiceItemResource.js +60 -0
- package/lib/twilio/abstract/TwilioClientConfig.d.ts +0 -0
- package/lib/twilio/abstract/TwilioClientConfig.js +1 -0
- package/lib/twilio/impl/TwilioAPIKeyConfig.d.ts +14 -0
- package/lib/twilio/impl/TwilioAPIKeyConfig.js +31 -0
- package/lib/twilio/impl/TwilioAuthTokenConfig.d.ts +11 -0
- package/lib/twilio/impl/TwilioAuthTokenConfig.js +24 -0
- package/lib/twilio/impl/TwilioClient.d.ts +6 -0
- package/lib/twilio/impl/TwilioClient.js +21 -0
- package/lib/twilio/impl/message/messageService.d.ts +0 -0
- package/lib/twilio/impl/message/messageService.js +42 -0
- package/lib/twilio/impl/sync/SyncDocument.d.ts +24 -0
- package/lib/twilio/impl/sync/SyncDocument.js +52 -0
- package/lib/twilio/impl/sync/SyncDocumentTransaction.d.ts +20 -0
- package/lib/twilio/impl/sync/SyncDocumentTransaction.js +31 -0
- package/lib/twilio/impl/sync/SyncList.d.ts +24 -0
- package/lib/twilio/impl/sync/SyncList.js +52 -0
- package/lib/twilio/impl/sync/SyncListItem.d.ts +5 -0
- package/lib/twilio/impl/sync/SyncListItem.js +22 -0
- package/lib/twilio/impl/sync/SyncListTransaction.d.ts +20 -0
- package/lib/twilio/impl/sync/SyncListTransaction.js +31 -0
- package/lib/twilio/impl/sync/SyncMap.d.ts +25 -0
- package/lib/twilio/impl/sync/SyncMap.js +81 -0
- package/lib/twilio/impl/sync/SyncMapItem.d.ts +25 -0
- package/lib/twilio/impl/sync/SyncMapItem.js +139 -0
- package/lib/twilio/impl/sync/SyncMapItemsTransaction.d.ts +22 -0
- package/lib/twilio/impl/sync/SyncMapItemsTransaction.js +38 -0
- package/lib/twilio/impl/sync/SyncMapTransaction.d.ts +22 -0
- package/lib/twilio/impl/sync/SyncMapTransaction.js +38 -0
- package/lib/twilio/impl/sync/SyncOpenRequest.d.ts +18 -0
- package/lib/twilio/impl/sync/SyncOpenRequest.js +24 -0
- package/lib/twilio/impl/sync/SyncRequest.d.ts +16 -0
- package/lib/twilio/impl/sync/SyncRequest.js +21 -0
- package/lib/twilio/impl/sync/SyncResource.d.ts +51 -0
- package/lib/twilio/impl/sync/SyncResource.js +104 -0
- package/lib/twilio/impl/sync/SyncServiceFactory.d.ts +22 -0
- package/lib/twilio/impl/sync/SyncServiceFactory.js +116 -0
- package/lib/twilio/interface/IDirection.d.ts +2 -0
- package/lib/twilio/interface/IDirection.js +2 -0
- package/lib/twilio/interface/ILink.d.ts +2 -0
- package/lib/twilio/interface/ILink.js +2 -0
- package/lib/twilio/interface/IServiceDBOpenRequest.d.ts +3 -0
- package/lib/twilio/interface/IServiceDBOpenRequest.js +2 -0
- package/lib/twilio/interface/IServiceObjectStore.d.ts +3 -0
- package/lib/twilio/interface/IServiceObjectStore.js +2 -0
- package/lib/twilio/interface/IServiceObjectStoreParameters.d.ts +4 -0
- package/lib/twilio/interface/IServiceObjectStoreParameters.js +2 -0
- package/lib/twilio/interface/IServiceRequest.d.ts +3 -0
- package/lib/twilio/interface/IServiceRequest.js +2 -0
- package/lib/twilio/interface/IServiceResource.d.ts +8 -0
- package/lib/twilio/interface/IServiceResource.js +2 -0
- package/lib/twilio/interface/IServiceTransation.d.ts +3 -0
- package/lib/twilio/interface/IServiceTransation.js +2 -0
- package/lib/twilio/interface/ISubResourceUri.d.ts +2 -0
- package/lib/twilio/interface/ISubResourceUri.js +2 -0
- package/lib/twilio/interface/ISyncItemData.d.ts +0 -0
- package/lib/twilio/interface/ISyncItemData.js +1 -0
- package/lib/twilio/interface/ISyncObjectStoreParameters.d.ts +0 -0
- package/lib/twilio/interface/ISyncObjectStoreParameters.js +1 -0
- package/lib/twilio/interface/ISyncTransactionOptions.d.ts +4 -0
- package/lib/twilio/interface/ISyncTransactionOptions.js +2 -0
- package/package.json +56 -56
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.TaskInfoPanelController = void 0;
|
|
13
|
+
const DatabaseConfig_1 = require("../../config/DatabaseConfig");
|
|
14
|
+
const TaskInfoPanelModel_1 = require("../../models/impl/TaskInfoPanelModel");
|
|
15
|
+
const TaskInfoPanelFilter_1 = require("./filterImpl/TaskInfoPanelFilter");
|
|
16
|
+
class TaskInfoPanelController {
|
|
17
|
+
constructor(dbFactory) {
|
|
18
|
+
this._dbFactory = dbFactory;
|
|
19
|
+
}
|
|
20
|
+
getDatabaseConnection() {
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
23
|
+
return databaseConnection.result;
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
getTransaction() {
|
|
27
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
const database = yield this.getDatabaseConnection();
|
|
29
|
+
const dbTransaction = database.transactionItem(DatabaseConfig_1.databaseConfig.tables.taskInfoPanelTable, "readwrite");
|
|
30
|
+
return dbTransaction;
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
validateTaskInfoPanel(TaskInfoPanel) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
const validationMessages = TaskInfoPanel.validationMessages;
|
|
36
|
+
if (validationMessages.length > 0) {
|
|
37
|
+
throw validationMessages;
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
add(data) {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
try {
|
|
44
|
+
const TaskInfoPanel = new TaskInfoPanelModel_1.TaskInfoPanelModel(data.id, data.callSid, data.ivrPath);
|
|
45
|
+
if (TaskInfoPanel.validationMessages.length > 0) {
|
|
46
|
+
throw TaskInfoPanel.validationMessages;
|
|
47
|
+
}
|
|
48
|
+
const dbTransaction = yield this.getTransaction();
|
|
49
|
+
const table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.taskInfoPanelTable);
|
|
50
|
+
const result = yield table.add(TaskInfoPanel.serialize, TaskInfoPanel.id, 60 * 60);
|
|
51
|
+
return result;
|
|
52
|
+
}
|
|
53
|
+
catch (error) {
|
|
54
|
+
console.error("Error adding audit log:", error);
|
|
55
|
+
throw error;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
get(query) {
|
|
60
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
try {
|
|
62
|
+
const dbTransaction = yield this.getTransaction();
|
|
63
|
+
const table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.taskInfoPanelTable);
|
|
64
|
+
const result = yield table.get(query.id);
|
|
65
|
+
return result;
|
|
66
|
+
}
|
|
67
|
+
catch (error) {
|
|
68
|
+
console.error("Error retrieving audit log:", error);
|
|
69
|
+
return error;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
getAll(query) {
|
|
74
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
try {
|
|
76
|
+
const dbTransaction = yield this.getTransaction();
|
|
77
|
+
const table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.taskInfoPanelTable);
|
|
78
|
+
const allowedFields = [
|
|
79
|
+
"callSid"
|
|
80
|
+
];
|
|
81
|
+
if (query.getFilterContent) {
|
|
82
|
+
query.allowedFields = allowedFields;
|
|
83
|
+
}
|
|
84
|
+
query.category = "TaskInfoPanels";
|
|
85
|
+
let result = yield table.getAll(query);
|
|
86
|
+
if (query.getFilterContent) {
|
|
87
|
+
result.filterContent = TaskInfoPanelFilter_1.TaskInfoPanelFilterService.getFilterData(result.filterOptions);
|
|
88
|
+
}
|
|
89
|
+
if ("filterOptions" in result) {
|
|
90
|
+
delete result.filterOptions;
|
|
91
|
+
}
|
|
92
|
+
return { result, meta: query };
|
|
93
|
+
}
|
|
94
|
+
catch (error) {
|
|
95
|
+
console.error("Error retrieving all audit logs:", error);
|
|
96
|
+
return error;
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
edit(data) {
|
|
101
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
102
|
+
try {
|
|
103
|
+
const TaskInfoPanel = new TaskInfoPanelModel_1.TaskInfoPanelModel(data.id, data.callSid, data.ivrPath);
|
|
104
|
+
if (TaskInfoPanel.validationMessages.length > 0) {
|
|
105
|
+
throw TaskInfoPanel.validationMessages;
|
|
106
|
+
}
|
|
107
|
+
const dbTransaction = yield this.getTransaction();
|
|
108
|
+
const table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.taskInfoPanelTable);
|
|
109
|
+
const key = TaskInfoPanel.id;
|
|
110
|
+
const result = yield table.put(TaskInfoPanel.serialize, key);
|
|
111
|
+
return result;
|
|
112
|
+
}
|
|
113
|
+
catch (error) {
|
|
114
|
+
console.error("Error editing audit log:", error);
|
|
115
|
+
return error;
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
delete(query) {
|
|
120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
121
|
+
try {
|
|
122
|
+
const dbTransaction = yield this.getTransaction();
|
|
123
|
+
const table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.taskInfoPanelTable);
|
|
124
|
+
const result = yield table.delete(query.id);
|
|
125
|
+
return result;
|
|
126
|
+
}
|
|
127
|
+
catch (error) {
|
|
128
|
+
console.error("Error deleting audit log:", error);
|
|
129
|
+
return error;
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
exports.TaskInfoPanelController = TaskInfoPanelController;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MultiFieldFilter, FilterDataObject } from "../../../common/interface/IFilter";
|
|
2
|
+
import { Filter } from "../../../common/abstract/Filter";
|
|
3
|
+
import { AgentScorecardFilterFields } from "../../../models/types/AgentScorecard.type";
|
|
4
|
+
export declare class AgentScorecardFilterService extends Filter {
|
|
5
|
+
private data;
|
|
6
|
+
allowedFields: AgentScorecardFilterFields;
|
|
7
|
+
constructor(data: any[]);
|
|
8
|
+
applyFilter(data: any[]): any[];
|
|
9
|
+
filterApply(filterParams: MultiFieldFilter): any[];
|
|
10
|
+
private validateFilters;
|
|
11
|
+
static getFilterData(filterOptions: Record<string, any[]> | null): FilterDataObject[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AgentScorecardFilterService = void 0;
|
|
4
|
+
const MainFilterService_1 = require("./MainFilterService");
|
|
5
|
+
const Filter_1 = require("../../../common/abstract/Filter");
|
|
6
|
+
const FilterTypes_1 = require("../../../common/enum/FilterTypes");
|
|
7
|
+
class AgentScorecardFilterService extends Filter_1.Filter {
|
|
8
|
+
constructor(data) {
|
|
9
|
+
super({ fieldName: "", value: null, filterType: FilterTypes_1.FilterTypes.Equality, caseSensitive: false, ignoreNull: true });
|
|
10
|
+
this.allowedFields = {
|
|
11
|
+
uniqueName: "string"
|
|
12
|
+
};
|
|
13
|
+
this.data = data;
|
|
14
|
+
}
|
|
15
|
+
applyFilter(data) {
|
|
16
|
+
// Implementation of applyFilter if needed
|
|
17
|
+
return data;
|
|
18
|
+
}
|
|
19
|
+
filterApply(filterParams) {
|
|
20
|
+
const validFilters = this.validateFilters(filterParams);
|
|
21
|
+
const filteredParams = { filters: validFilters };
|
|
22
|
+
return MainFilterService_1.MainFilterService.applyFilter(this.data, filteredParams);
|
|
23
|
+
}
|
|
24
|
+
validateFilters(filterParams) {
|
|
25
|
+
return filterParams.filters.filter(filter => {
|
|
26
|
+
const expectedType = this.allowedFields[filter.fieldName];
|
|
27
|
+
if (!expectedType)
|
|
28
|
+
return false;
|
|
29
|
+
switch (expectedType) {
|
|
30
|
+
case "string":
|
|
31
|
+
return typeof filter.value === "string" || typeof filter.value === "object";
|
|
32
|
+
default:
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
static getFilterData(filterOptions) {
|
|
38
|
+
// Create the filter data mappings with conditional dataList population
|
|
39
|
+
const fieldMappings = {
|
|
40
|
+
uniqueName: {
|
|
41
|
+
type: "dropdown",
|
|
42
|
+
attributeName: "uniqueName",
|
|
43
|
+
label: "Unique Name",
|
|
44
|
+
dataList: filterOptions && filterOptions.callSid ? filterOptions.callSid : [], // Conditional dataList
|
|
45
|
+
isMultiselect: true
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
// Return as an array
|
|
49
|
+
return Object.values(fieldMappings);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.AgentScorecardFilterService = AgentScorecardFilterService;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MultiFieldFilter, FilterDataObject } from "../../../common/interface/IFilter";
|
|
2
|
+
import { Filter } from "../../../common/abstract/Filter";
|
|
3
|
+
import { AuditLogsFilterFields } from "../../../models/types/AuditLog.type";
|
|
4
|
+
export declare class AuditLogsFilterService extends Filter {
|
|
5
|
+
private data;
|
|
6
|
+
allowedFields: AuditLogsFilterFields;
|
|
7
|
+
constructor(data: any[]);
|
|
8
|
+
applyFilter(data: any[]): any[];
|
|
9
|
+
filterApply(filterParams: MultiFieldFilter): any[];
|
|
10
|
+
private validateFilters;
|
|
11
|
+
static getFilterData(filterOptions: Record<string, any[]> | null): FilterDataObject[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuditLogsFilterService = void 0;
|
|
4
|
+
const MainFilterService_1 = require("./MainFilterService");
|
|
5
|
+
const Filter_1 = require("../../../common/abstract/Filter");
|
|
6
|
+
const FilterTypes_1 = require("../../../common/enum/FilterTypes");
|
|
7
|
+
class AuditLogsFilterService extends Filter_1.Filter {
|
|
8
|
+
constructor(data) {
|
|
9
|
+
super({ fieldName: "", value: null, filterType: FilterTypes_1.FilterTypes.Equality, caseSensitive: false, ignoreNull: true });
|
|
10
|
+
// Define allowed fields for AuditLog filters
|
|
11
|
+
this.allowedFields = {
|
|
12
|
+
workerSid: "string",
|
|
13
|
+
fieldName: "string",
|
|
14
|
+
category: "string",
|
|
15
|
+
date: "dateTimeRange",
|
|
16
|
+
action: "string"
|
|
17
|
+
};
|
|
18
|
+
this.data = data;
|
|
19
|
+
}
|
|
20
|
+
applyFilter(data) {
|
|
21
|
+
// Implementation of applyFilter if needed
|
|
22
|
+
return data;
|
|
23
|
+
}
|
|
24
|
+
filterApply(filterParams) {
|
|
25
|
+
const validFilters = this.validateFilters(filterParams);
|
|
26
|
+
const filteredParams = { filters: validFilters };
|
|
27
|
+
return MainFilterService_1.MainFilterService.applyFilter(this.data, filteredParams);
|
|
28
|
+
}
|
|
29
|
+
validateFilters(filterParams) {
|
|
30
|
+
return filterParams.filters.filter(filter => {
|
|
31
|
+
const expectedType = this.allowedFields[filter.fieldName];
|
|
32
|
+
if (!expectedType)
|
|
33
|
+
return false;
|
|
34
|
+
switch (expectedType) {
|
|
35
|
+
case "string":
|
|
36
|
+
return typeof filter.value === "string" || typeof filter.value === "object";
|
|
37
|
+
case "dateTimeRange":
|
|
38
|
+
return (filter.value &&
|
|
39
|
+
typeof filter.value.startDate === "string" &&
|
|
40
|
+
typeof filter.value.endDate === "string" &&
|
|
41
|
+
!isNaN(Date.parse(filter.value.startDate)) &&
|
|
42
|
+
!isNaN(Date.parse(filter.value.endDate)));
|
|
43
|
+
default:
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
static getFilterData(filterOptions) {
|
|
49
|
+
// Create the filter data mappings with conditional dataList population
|
|
50
|
+
const fieldMappings = {
|
|
51
|
+
workerSid: {
|
|
52
|
+
type: "dropdown",
|
|
53
|
+
attributeName: "workerSid",
|
|
54
|
+
label: "Worker",
|
|
55
|
+
dataList: filterOptions && filterOptions.workerSid ? filterOptions.workerSid : [], // Conditional dataList
|
|
56
|
+
isMultiselect: true
|
|
57
|
+
},
|
|
58
|
+
fieldName: {
|
|
59
|
+
type: "dropdown",
|
|
60
|
+
attributeName: "fieldName",
|
|
61
|
+
label: "Field Name",
|
|
62
|
+
dataList: filterOptions && filterOptions.fieldName ? filterOptions.fieldName : [],
|
|
63
|
+
isMultiselect: true
|
|
64
|
+
},
|
|
65
|
+
category: {
|
|
66
|
+
type: "dropdown",
|
|
67
|
+
attributeName: "category",
|
|
68
|
+
label: "Category",
|
|
69
|
+
dataList: filterOptions && filterOptions.category ? filterOptions.category : [],
|
|
70
|
+
isMultiselect: true
|
|
71
|
+
},
|
|
72
|
+
date: {
|
|
73
|
+
type: "dateTimeRange",
|
|
74
|
+
attributeName: "date",
|
|
75
|
+
label: "Date",
|
|
76
|
+
},
|
|
77
|
+
action: {
|
|
78
|
+
type: "checkbox",
|
|
79
|
+
attributeName: "action",
|
|
80
|
+
label: "Operation type",
|
|
81
|
+
dataList: filterOptions && filterOptions.action ? filterOptions.action : [],
|
|
82
|
+
isSelectAll: true
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
// Return as an array
|
|
86
|
+
return Object.values(fieldMappings);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
exports.AuditLogsFilterService = AuditLogsFilterService;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MultiFieldFilter, FilterDataObject } from "../../../common/interface/IFilter";
|
|
2
|
+
import { PromptsFilterFields } from "../../../models/types/CxConfig.type";
|
|
3
|
+
import { Filter } from "../../../common/abstract/Filter";
|
|
4
|
+
export declare class CXConfigPromptFilterService extends Filter {
|
|
5
|
+
private data;
|
|
6
|
+
allowedFields: PromptsFilterFields;
|
|
7
|
+
constructor(data: any[]);
|
|
8
|
+
applyFilter(data: any[]): any[];
|
|
9
|
+
filterApply(filterParams: MultiFieldFilter): any[];
|
|
10
|
+
private validateFilters;
|
|
11
|
+
static getFilterData(filterOptions: Record<string, any[]> | null): FilterDataObject[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CXConfigPromptFilterService = void 0;
|
|
4
|
+
const MainFilterService_1 = require("./MainFilterService");
|
|
5
|
+
const Filter_1 = require("../../../common/abstract/Filter");
|
|
6
|
+
const FilterTypes_1 = require("../../../common/enum/FilterTypes");
|
|
7
|
+
class CXConfigPromptFilterService extends Filter_1.Filter {
|
|
8
|
+
constructor(data) {
|
|
9
|
+
super({ fieldName: "", value: null, filterType: FilterTypes_1.FilterTypes.Equality, caseSensitive: false, ignoreNull: true });
|
|
10
|
+
// Define allowed fields for AuditLog filters
|
|
11
|
+
this.allowedFields = {
|
|
12
|
+
name: "string",
|
|
13
|
+
type: "string",
|
|
14
|
+
language: "string",
|
|
15
|
+
voice: "string",
|
|
16
|
+
hints: "string"
|
|
17
|
+
};
|
|
18
|
+
this.data = data;
|
|
19
|
+
}
|
|
20
|
+
applyFilter(data) {
|
|
21
|
+
// Implementation of applyFilter if needed
|
|
22
|
+
return data;
|
|
23
|
+
}
|
|
24
|
+
filterApply(filterParams) {
|
|
25
|
+
const validFilters = this.validateFilters(filterParams);
|
|
26
|
+
const filteredParams = { filters: validFilters };
|
|
27
|
+
return MainFilterService_1.MainFilterService.applyFilter(this.data, filteredParams);
|
|
28
|
+
}
|
|
29
|
+
validateFilters(filterParams) {
|
|
30
|
+
return filterParams.filters.filter(filter => {
|
|
31
|
+
const expectedType = this.allowedFields[filter.fieldName];
|
|
32
|
+
if (!expectedType)
|
|
33
|
+
return false;
|
|
34
|
+
switch (expectedType) {
|
|
35
|
+
case "string":
|
|
36
|
+
return typeof filter.value === "string" || typeof filter.value === "object";
|
|
37
|
+
default:
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
static getFilterData(filterOptions) {
|
|
43
|
+
// Create the filter data mappings with conditional dataList population
|
|
44
|
+
const fieldMappings = {
|
|
45
|
+
name: {
|
|
46
|
+
type: "input",
|
|
47
|
+
attributeName: "name",
|
|
48
|
+
label: "Name"
|
|
49
|
+
},
|
|
50
|
+
type: {
|
|
51
|
+
type: "dropdown",
|
|
52
|
+
attributeName: "type",
|
|
53
|
+
label: "Type",
|
|
54
|
+
dataList: filterOptions && filterOptions.type ? filterOptions.type : [], // Conditional dataList
|
|
55
|
+
isMultiselect: true
|
|
56
|
+
},
|
|
57
|
+
language: {
|
|
58
|
+
type: "dropdown",
|
|
59
|
+
attributeName: "language",
|
|
60
|
+
label: "Language",
|
|
61
|
+
dataList: filterOptions && filterOptions.language ? filterOptions.language : [], // Conditional dataList
|
|
62
|
+
isMultiselect: true
|
|
63
|
+
},
|
|
64
|
+
voice: {
|
|
65
|
+
type: "dropdown",
|
|
66
|
+
attributeName: "voice",
|
|
67
|
+
label: "Voice",
|
|
68
|
+
dataList: filterOptions && filterOptions.voice ? filterOptions.voice : [], // Conditional dataList
|
|
69
|
+
isMultiselect: true
|
|
70
|
+
},
|
|
71
|
+
hints: {
|
|
72
|
+
type: "input",
|
|
73
|
+
attributeName: "hints",
|
|
74
|
+
label: "Hints"
|
|
75
|
+
},
|
|
76
|
+
};
|
|
77
|
+
// Return as an array
|
|
78
|
+
return Object.values(fieldMappings);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.CXConfigPromptFilterService = CXConfigPromptFilterService;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { MultiFieldFilter, FilterDataObject } from "../../../common/interface/IFilter";
|
|
2
|
+
import { Filter } from "../../../common/abstract/Filter";
|
|
3
|
+
export declare class CallLogsFilterService extends Filter {
|
|
4
|
+
private data;
|
|
5
|
+
allowedFields: {
|
|
6
|
+
uniqueName: string;
|
|
7
|
+
disposition: string;
|
|
8
|
+
hangUpDirection: string;
|
|
9
|
+
fromNumber: string;
|
|
10
|
+
toNumber: string;
|
|
11
|
+
start: string;
|
|
12
|
+
end: string;
|
|
13
|
+
callSid: string;
|
|
14
|
+
};
|
|
15
|
+
constructor(data: any[]);
|
|
16
|
+
applyFilter(data: any[]): any[];
|
|
17
|
+
filterApply(filterParams: MultiFieldFilter): any[];
|
|
18
|
+
private validateFilters;
|
|
19
|
+
static getFilterData(filterOptions: Record<string, any[]> | null): FilterDataObject[];
|
|
20
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CallLogsFilterService = void 0;
|
|
4
|
+
const MainFilterService_1 = require("./MainFilterService");
|
|
5
|
+
const Filter_1 = require("../../../common/abstract/Filter");
|
|
6
|
+
const FilterTypes_1 = require("../../../common/enum/FilterTypes");
|
|
7
|
+
class CallLogsFilterService extends Filter_1.Filter {
|
|
8
|
+
constructor(data) {
|
|
9
|
+
super({ fieldName: "", value: null, filterType: FilterTypes_1.FilterTypes.Equality, caseSensitive: false, ignoreNull: true });
|
|
10
|
+
// Define allowed fields for AuditLog filters
|
|
11
|
+
this.allowedFields = {
|
|
12
|
+
uniqueName: "string",
|
|
13
|
+
disposition: "string",
|
|
14
|
+
hangUpDirection: "string",
|
|
15
|
+
fromNumber: "string",
|
|
16
|
+
toNumber: "string",
|
|
17
|
+
start: "dateTimeRange",
|
|
18
|
+
end: "dateTimeRange",
|
|
19
|
+
callSid: "string"
|
|
20
|
+
};
|
|
21
|
+
this.data = data;
|
|
22
|
+
}
|
|
23
|
+
applyFilter(data) {
|
|
24
|
+
// Implementation of applyFilter if needed
|
|
25
|
+
return data;
|
|
26
|
+
}
|
|
27
|
+
filterApply(filterParams) {
|
|
28
|
+
const validFilters = this.validateFilters(filterParams);
|
|
29
|
+
const filteredParams = { filters: validFilters };
|
|
30
|
+
return MainFilterService_1.MainFilterService.applyFilter(this.data, filteredParams);
|
|
31
|
+
}
|
|
32
|
+
validateFilters(filterParams) {
|
|
33
|
+
return filterParams.filters.filter(filter => {
|
|
34
|
+
const expectedType = this.allowedFields[filter.fieldName];
|
|
35
|
+
if (!expectedType)
|
|
36
|
+
return false;
|
|
37
|
+
switch (expectedType) {
|
|
38
|
+
case "string":
|
|
39
|
+
return typeof filter.value === "string" || typeof filter.value === "object";
|
|
40
|
+
case "dateTimeRange":
|
|
41
|
+
return (filter.value &&
|
|
42
|
+
typeof filter.value.startDate === "string" &&
|
|
43
|
+
typeof filter.value.endDate === "string" &&
|
|
44
|
+
!isNaN(Date.parse(filter.value.startDate)) &&
|
|
45
|
+
!isNaN(Date.parse(filter.value.endDate)));
|
|
46
|
+
default:
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
static getFilterData(filterOptions) {
|
|
52
|
+
// Create the filter data mappings with conditional dataList population
|
|
53
|
+
const fieldMappings = {
|
|
54
|
+
disposition: {
|
|
55
|
+
type: "checkbox",
|
|
56
|
+
attributeName: "disposition",
|
|
57
|
+
label: "Direction",
|
|
58
|
+
dataList: filterOptions && filterOptions.disposition ? filterOptions.disposition : [],
|
|
59
|
+
isSelectAll: true
|
|
60
|
+
},
|
|
61
|
+
callSid: {
|
|
62
|
+
type: "input",
|
|
63
|
+
attributeName: "callSid",
|
|
64
|
+
label: "CallSid"
|
|
65
|
+
},
|
|
66
|
+
hangUpDirection: {
|
|
67
|
+
type: "checkbox",
|
|
68
|
+
attributeName: "hangUpDirection",
|
|
69
|
+
label: "Hangup By",
|
|
70
|
+
dataList: filterOptions && filterOptions.hangUpDirection ? filterOptions.hangUpDirection : [],
|
|
71
|
+
isSelectAll: true
|
|
72
|
+
},
|
|
73
|
+
fromNumber: {
|
|
74
|
+
type: "dropdown",
|
|
75
|
+
attributeName: "fromNumber",
|
|
76
|
+
label: "From Number",
|
|
77
|
+
dataList: filterOptions && filterOptions.fromNumber ? filterOptions.fromNumber : [],
|
|
78
|
+
isMultiselect: true
|
|
79
|
+
},
|
|
80
|
+
toNumber: {
|
|
81
|
+
type: "dropdown",
|
|
82
|
+
attributeName: "toNumber",
|
|
83
|
+
label: "To Number",
|
|
84
|
+
dataList: filterOptions && filterOptions.toNumber ? filterOptions.toNumber : [],
|
|
85
|
+
isMultiselect: true
|
|
86
|
+
},
|
|
87
|
+
start: {
|
|
88
|
+
type: "dateTimeRange",
|
|
89
|
+
attributeName: "start",
|
|
90
|
+
label: "Start",
|
|
91
|
+
},
|
|
92
|
+
end: {
|
|
93
|
+
type: "dateTimeRange",
|
|
94
|
+
attributeName: "end",
|
|
95
|
+
label: "End",
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
return Object.values(fieldMappings);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
exports.CallLogsFilterService = CallLogsFilterService;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MultiFieldFilter, FilterDataObject } from "../../../common/interface/IFilter";
|
|
2
|
+
import { AssetFilterFields } from "../../../models/types/CxConfig.type";
|
|
3
|
+
import { Filter } from "../../../common/abstract/Filter";
|
|
4
|
+
export declare class CXConfigAssetFilterService extends Filter {
|
|
5
|
+
private data;
|
|
6
|
+
allowedFields: AssetFilterFields;
|
|
7
|
+
constructor(data: any[]);
|
|
8
|
+
applyFilter(data: any[]): any[];
|
|
9
|
+
filterApply(filterParams: MultiFieldFilter): any[];
|
|
10
|
+
private validateFilters;
|
|
11
|
+
static getFilterData(filterOptions: Record<string, any[]> | null): FilterDataObject[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CXConfigAssetFilterService = void 0;
|
|
4
|
+
const MainFilterService_1 = require("./MainFilterService");
|
|
5
|
+
const Filter_1 = require("../../../common/abstract/Filter");
|
|
6
|
+
const FilterTypes_1 = require("../../../common/enum/FilterTypes");
|
|
7
|
+
class CXConfigAssetFilterService extends Filter_1.Filter {
|
|
8
|
+
constructor(data) {
|
|
9
|
+
super({ fieldName: "", value: null, filterType: FilterTypes_1.FilterTypes.Equality, caseSensitive: false, ignoreNull: true });
|
|
10
|
+
// Define allowed fields for AuditLog filters
|
|
11
|
+
this.allowedFields = {
|
|
12
|
+
name: "string",
|
|
13
|
+
type: "string"
|
|
14
|
+
};
|
|
15
|
+
this.data = data;
|
|
16
|
+
}
|
|
17
|
+
applyFilter(data) {
|
|
18
|
+
// Implementation of applyFilter if needed
|
|
19
|
+
return data;
|
|
20
|
+
}
|
|
21
|
+
filterApply(filterParams) {
|
|
22
|
+
const validFilters = this.validateFilters(filterParams);
|
|
23
|
+
const filteredParams = { filters: validFilters };
|
|
24
|
+
return MainFilterService_1.MainFilterService.applyFilter(this.data, filteredParams);
|
|
25
|
+
}
|
|
26
|
+
validateFilters(filterParams) {
|
|
27
|
+
return filterParams.filters.filter(filter => {
|
|
28
|
+
const expectedType = this.allowedFields[filter.fieldName];
|
|
29
|
+
if (!expectedType)
|
|
30
|
+
return false;
|
|
31
|
+
switch (expectedType) {
|
|
32
|
+
case "string":
|
|
33
|
+
return typeof filter.value === "string" || typeof filter.value === "object";
|
|
34
|
+
default:
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
static getFilterData(filterOptions) {
|
|
40
|
+
// Create the filter data mappings with conditional dataList population
|
|
41
|
+
const fieldMappings = {
|
|
42
|
+
name: {
|
|
43
|
+
type: "input",
|
|
44
|
+
attributeName: "name",
|
|
45
|
+
label: "Name"
|
|
46
|
+
},
|
|
47
|
+
type: {
|
|
48
|
+
type: "dropdown",
|
|
49
|
+
attributeName: "type",
|
|
50
|
+
label: "Type",
|
|
51
|
+
dataList: filterOptions && filterOptions.type ? filterOptions.type : [], // Conditional dataList
|
|
52
|
+
isMultiselect: true
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
// Return as an array
|
|
56
|
+
return Object.values(fieldMappings);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.CXConfigAssetFilterService = CXConfigAssetFilterService;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MultiFieldFilter, FilterDataObject } from "../../../common/interface/IFilter";
|
|
2
|
+
import { ExternalNumbersFilterFields } from "../../../models/types/CxConfig.type";
|
|
3
|
+
import { Filter } from "../../../common/abstract/Filter";
|
|
4
|
+
export declare class CXConfigExternalNumbersFilterService extends Filter {
|
|
5
|
+
private data;
|
|
6
|
+
allowedFields: ExternalNumbersFilterFields;
|
|
7
|
+
constructor(data: any[]);
|
|
8
|
+
applyFilter(data: any[]): any[];
|
|
9
|
+
filterApply(filterParams: MultiFieldFilter): any[];
|
|
10
|
+
private validateFilters;
|
|
11
|
+
static getFilterData(filterOptions: Record<string, any[]> | null): FilterDataObject[];
|
|
12
|
+
}
|