hgs-twilio-class-lib 1.1.70 → 1.1.72
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/package.json +56 -56
- package/lib/aws/abstract/ServiceObjectStore.d.ts +0 -9
- package/lib/aws/abstract/ServiceObjectStore.js +0 -10
- package/lib/aws/abstract/ServiceOpenRequest.d.ts +0 -7
- package/lib/aws/abstract/ServiceOpenRequest.js +0 -10
- package/lib/aws/abstract/ServiceRequest.d.ts +0 -3
- package/lib/aws/abstract/ServiceRequest.js +0 -7
- package/lib/aws/abstract/ServiceResource.d.ts +0 -20
- package/lib/aws/abstract/ServiceResource.js +0 -31
- package/lib/aws/abstract/ServiceResourceFactory.d.ts +0 -13
- package/lib/aws/abstract/ServiceResourceFactory.js +0 -14
- package/lib/aws/abstract/ServiceTransaction.d.ts +0 -6
- package/lib/aws/abstract/ServiceTransaction.js +0 -11
- package/lib/aws/impl/AWSAPIConfig.d.ts +0 -14
- package/lib/aws/impl/AWSAPIConfig.js +0 -38
- package/lib/aws/impl/AWSClient.d.ts +0 -5
- package/lib/aws/impl/AWSClient.js +0 -21
- package/lib/aws/impl/AWSConnectAPIConfig.d.ts +0 -17
- package/lib/aws/impl/AWSConnectAPIConfig.js +0 -38
- package/lib/aws/impl/DynamoDB/DynamoOpenRequest.d.ts +0 -18
- package/lib/aws/impl/DynamoDB/DynamoOpenRequest.js +0 -24
- package/lib/aws/impl/DynamoDB/DynamoRequest.d.ts +0 -16
- package/lib/aws/impl/DynamoDB/DynamoRequest.js +0 -21
- package/lib/aws/impl/DynamoDB/DynamoResourse.d.ts +0 -29
- package/lib/aws/impl/DynamoDB/DynamoResourse.js +0 -45
- package/lib/aws/impl/DynamoDB/DynamoServiceFactory.d.ts +0 -16
- package/lib/aws/impl/DynamoDB/DynamoServiceFactory.js +0 -63
- package/lib/aws/impl/DynamoDB/DynamoTable.d.ts +0 -26
- package/lib/aws/impl/DynamoDB/DynamoTable.js +0 -126
- package/lib/aws/impl/DynamoDB/DynamoTransaction.d.ts +0 -21
- package/lib/aws/impl/DynamoDB/DynamoTransaction.js +0 -37
- package/lib/aws/impl/HoopServices/HoopService.d.ts +0 -28
- package/lib/aws/impl/HoopServices/HoopService.js +0 -124
- package/lib/aws/impl/HoopServices/HoopServiceFactory.d.ts +0 -17
- package/lib/aws/impl/HoopServices/HoopServiceFactory.js +0 -53
- package/lib/aws/impl/HoopServices/HoopServiceOpenRequest.d.ts +0 -18
- package/lib/aws/impl/HoopServices/HoopServiceOpenRequest.js +0 -24
- package/lib/aws/impl/HoopServices/HoopServiceResource.d.ts +0 -29
- package/lib/aws/impl/HoopServices/HoopServiceResource.js +0 -46
- package/lib/aws/impl/HoopServices/HoopServiceTransaction.d.ts +0 -22
- package/lib/aws/impl/HoopServices/HoopServiceTransaction.js +0 -37
- package/lib/aws/interface/IDirection.d.ts +0 -2
- package/lib/aws/interface/IDirection.js +0 -2
- package/lib/aws/interface/ILink.d.ts +0 -2
- package/lib/aws/interface/ILink.js +0 -2
- package/lib/aws/interface/IServiceDBOpenRequest.d.ts +0 -3
- package/lib/aws/interface/IServiceDBOpenRequest.js +0 -2
- package/lib/aws/interface/IServiceObjectStore.d.ts +0 -3
- package/lib/aws/interface/IServiceObjectStore.js +0 -2
- package/lib/aws/interface/IServiceObjectStoreParameters.d.ts +0 -4
- package/lib/aws/interface/IServiceObjectStoreParameters.js +0 -2
- package/lib/aws/interface/IServiceRequest.d.ts +0 -3
- package/lib/aws/interface/IServiceRequest.js +0 -2
- package/lib/aws/interface/IServiceResource.d.ts +0 -7
- package/lib/aws/interface/IServiceResource.js +0 -2
- package/lib/aws/interface/IServiceTransation.d.ts +0 -3
- package/lib/aws/interface/IServiceTransation.js +0 -2
- package/lib/aws/interface/ISubResourceUri.d.ts +0 -2
- package/lib/aws/interface/ISubResourceUri.js +0 -2
- package/lib/aws/interface/ISyncItemData.d.ts +0 -0
- package/lib/aws/interface/ISyncItemData.js +0 -1
- package/lib/aws/interface/ISyncObjectStoreParameters.d.ts +0 -0
- package/lib/aws/interface/ISyncObjectStoreParameters.js +0 -1
- package/lib/aws/interface/ISyncTransactionOptions.d.ts +0 -4
- package/lib/aws/interface/ISyncTransactionOptions.js +0 -2
- package/lib/common/abstract/CommonError.d.ts +0 -8
- package/lib/common/abstract/CommonError.js +0 -12
- package/lib/common/abstract/Database.d.ts +0 -44
- package/lib/common/abstract/Database.js +0 -58
- package/lib/common/abstract/DatabaseClient.d.ts +0 -11
- package/lib/common/abstract/DatabaseClient.js +0 -21
- package/lib/common/abstract/DatabaseClientConfig.d.ts +0 -5
- package/lib/common/abstract/DatabaseClientConfig.js +0 -9
- package/lib/common/abstract/DatabaseFactory.d.ts +0 -70
- package/lib/common/abstract/DatabaseFactory.js +0 -32
- package/lib/common/abstract/DatabaseObjectStore.d.ts +0 -29
- package/lib/common/abstract/DatabaseObjectStore.js +0 -13
- package/lib/common/abstract/DatabaseOpenRequest.d.ts +0 -24
- package/lib/common/abstract/DatabaseOpenRequest.js +0 -13
- package/lib/common/abstract/DatabaseRequest.d.ts +0 -21
- package/lib/common/abstract/DatabaseRequest.js +0 -14
- package/lib/common/abstract/DatabaseTransaction.d.ts +0 -22
- package/lib/common/abstract/DatabaseTransaction.js +0 -13
- package/lib/common/abstract/Filter.d.ts +0 -12
- package/lib/common/abstract/Filter.js +0 -30
- package/lib/common/enum/ErrorTypes.d.ts +0 -4
- package/lib/common/enum/ErrorTypes.js +0 -9
- package/lib/common/enum/FilterTypes.d.ts +0 -10
- package/lib/common/enum/FilterTypes.js +0 -14
- package/lib/common/interface/IDatabaesInfo.d.ts +0 -2
- package/lib/common/interface/IDatabaesInfo.js +0 -2
- package/lib/common/interface/IDatabase.d.ts +0 -4
- package/lib/common/interface/IDatabase.js +0 -2
- package/lib/common/interface/IDatabaseClient.d.ts +0 -5
- package/lib/common/interface/IDatabaseClient.js +0 -2
- package/lib/common/interface/IDatabaseConfig.d.ts +0 -8
- package/lib/common/interface/IDatabaseConfig.js +0 -10
- package/lib/common/interface/IDatabaseDBOpenRequest.d.ts +0 -2
- package/lib/common/interface/IDatabaseDBOpenRequest.js +0 -2
- package/lib/common/interface/IDatabaseFactory.d.ts +0 -21
- package/lib/common/interface/IDatabaseFactory.js +0 -2
- package/lib/common/interface/IDatabaseObjectStore.d.ts +0 -2
- package/lib/common/interface/IDatabaseObjectStore.js +0 -2
- package/lib/common/interface/IDatabaseObjectStoreParameters.d.ts +0 -2
- package/lib/common/interface/IDatabaseObjectStoreParameters.js +0 -2
- package/lib/common/interface/IDatabaseRecord.d.ts +0 -2
- package/lib/common/interface/IDatabaseRecord.js +0 -2
- package/lib/common/interface/IDatabaseRequest.d.ts +0 -2
- package/lib/common/interface/IDatabaseRequest.js +0 -2
- package/lib/common/interface/IDatabaseTransaction.d.ts +0 -2
- package/lib/common/interface/IDatabaseTransaction.js +0 -2
- package/lib/common/interface/IDatabaseTransactionOptions.d.ts +0 -2
- package/lib/common/interface/IDatabaseTransactionOptions.js +0 -2
- package/lib/common/interface/IError.d.ts +0 -5
- package/lib/common/interface/IError.js +0 -2
- package/lib/common/interface/IErrorDetails.d.ts +0 -6
- package/lib/common/interface/IErrorDetails.js +0 -2
- package/lib/common/interface/IFilter.d.ts +0 -25
- package/lib/common/interface/IFilter.js +0 -2
- package/lib/common/type/DatabaseReadyType.d.ts +0 -1
- package/lib/common/type/DatabaseReadyType.js +0 -2
- package/lib/common/type/FilterInputType.d.ts +0 -1
- package/lib/common/type/FilterInputType.js +0 -2
- package/lib/common/type/SearchParameterType.d.ts +0 -15
- package/lib/common/type/SearchParameterType.js +0 -3
- package/lib/common/utils/dateFormat.d.ts +0 -1
- package/lib/common/utils/dateFormat.js +0 -58
- package/lib/common/utils/filter.d.ts +0 -1
- package/lib/common/utils/filter.js +0 -99
- package/lib/common/utils/newFilter.d.ts +0 -1
- package/lib/common/utils/newFilter.js +0 -126
- package/lib/common/utils/pagination.d.ts +0 -1
- package/lib/common/utils/pagination.js +0 -9
- package/lib/common/utils/search.d.ts +0 -1
- package/lib/common/utils/search.js +0 -14
- package/lib/common/utils/sort.d.ts +0 -1
- package/lib/common/utils/sort.js +0 -29
- package/lib/config/AWSConfig.d.ts +0 -6
- package/lib/config/AWSConfig.js +0 -9
- package/lib/config/DatabaseConfig.d.ts +0 -33
- package/lib/config/DatabaseConfig.js +0 -36
- package/lib/config/TwilioConfig.d.ts +0 -4
- package/lib/config/TwilioConfig.js +0 -7
- package/lib/controller/Common.d.ts +0 -20
- package/lib/controller/Common.js +0 -57
- package/lib/controller/DatabaseFactoryCollection.d.ts +0 -6
- package/lib/controller/DatabaseFactoryCollection.js +0 -14
- package/lib/controller/MainController.d.ts +0 -6
- package/lib/controller/MainController.js +0 -174
- package/lib/controller/aws/HoopBuisnessHours.d.ts +0 -23
- package/lib/controller/aws/HoopBuisnessHours.js +0 -408
- package/lib/controller/aws/HoopOperationsController.d.ts +0 -9
- package/lib/controller/aws/HoopOperationsController.js +0 -86
- package/lib/controller/aws/HoopOverrideBranchesController.d.ts +0 -7
- package/lib/controller/aws/HoopOverrideBranchesController.js +0 -40
- package/lib/controller/aws/HoopProfilesListController.d.ts +0 -8
- package/lib/controller/aws/HoopProfilesListController.js +0 -61
- package/lib/controller/aws/PlaybackScreenrecordings.d.ts +0 -9
- package/lib/controller/aws/PlaybackScreenrecordings.js +0 -63
- package/lib/controller/twilio/AgentActionsController.d.ts +0 -54
- package/lib/controller/twilio/AgentActionsController.js +0 -177
- package/lib/controller/twilio/AgentScorecardController.d.ts +0 -53
- package/lib/controller/twilio/AgentScorecardController.js +0 -173
- package/lib/controller/twilio/AuditLogController.d.ts +0 -15
- package/lib/controller/twilio/AuditLogController.js +0 -137
- package/lib/controller/twilio/CallLogsController.d.ts +0 -12
- package/lib/controller/twilio/CallLogsController.js +0 -131
- package/lib/controller/twilio/CallbackAndVoicemailController.d.ts +0 -12
- package/lib/controller/twilio/CallbackAndVoicemailController.js +0 -114
- package/lib/controller/twilio/ChannelSettingTaskInfoController.d.ts +0 -11
- package/lib/controller/twilio/ChannelSettingTaskInfoController.js +0 -117
- package/lib/controller/twilio/ChannelSettingsController.d.ts +0 -16
- package/lib/controller/twilio/ChannelSettingsController.js +0 -142
- package/lib/controller/twilio/CxConfigAssetController.d.ts +0 -12
- package/lib/controller/twilio/CxConfigAssetController.js +0 -128
- package/lib/controller/twilio/CxConfigController.d.ts +0 -18
- package/lib/controller/twilio/CxConfigController.js +0 -112
- package/lib/controller/twilio/CxConfigExternalNumbersController.d.ts +0 -12
- package/lib/controller/twilio/CxConfigExternalNumbersController.js +0 -138
- package/lib/controller/twilio/CxConfigOther.d.ts +0 -16
- package/lib/controller/twilio/CxConfigOther.js +0 -128
- package/lib/controller/twilio/CxConfigQueueMenuController.d.ts +0 -12
- package/lib/controller/twilio/CxConfigQueueMenuController.js +0 -129
- package/lib/controller/twilio/CxConfigUIconfigController.d.ts +0 -12
- package/lib/controller/twilio/CxConfigUIconfigController.js +0 -132
- package/lib/controller/twilio/GPMController.d.ts +0 -12
- package/lib/controller/twilio/GPMController.js +0 -151
- package/lib/controller/twilio/HoopBusinessHoursController.d.ts +0 -18
- package/lib/controller/twilio/HoopBusinessHoursController.js +0 -285
- package/lib/controller/twilio/HoopHolidaysController.d.ts +0 -14
- package/lib/controller/twilio/HoopHolidaysController.js +0 -152
- package/lib/controller/twilio/HoopMainController.d.ts +0 -13
- package/lib/controller/twilio/HoopMainController.js +0 -297
- package/lib/controller/twilio/HoopNotesController.d.ts +0 -14
- package/lib/controller/twilio/HoopNotesController.js +0 -149
- package/lib/controller/twilio/HoopOperationsController.d.ts +0 -14
- package/lib/controller/twilio/HoopOperationsController.js +0 -138
- package/lib/controller/twilio/HoopOverrideBranchesController.d.ts +0 -14
- package/lib/controller/twilio/HoopOverrideBranchesController.js +0 -137
- package/lib/controller/twilio/HoopPartialDaysController.d.ts +0 -14
- package/lib/controller/twilio/HoopPartialDaysController.js +0 -152
- package/lib/controller/twilio/HoopProfilesListController.d.ts +0 -14
- package/lib/controller/twilio/HoopProfilesListController.js +0 -147
- package/lib/controller/twilio/NavigationController.d.ts +0 -13
- package/lib/controller/twilio/NavigationController.js +0 -170
- package/lib/controller/twilio/QualityFormsController.d.ts +0 -12
- package/lib/controller/twilio/QualityFormsController.js +0 -129
- package/lib/controller/twilio/QuickLinkController.d.ts +0 -11
- package/lib/controller/twilio/QuickLinkController.js +0 -122
- package/lib/controller/twilio/RealTimeReportQueueDetailsController.d.ts +0 -14
- package/lib/controller/twilio/RealTimeReportQueueDetailsController.js +0 -126
- package/lib/controller/twilio/RealTimeReportsWGDetailsController.d.ts +0 -53
- package/lib/controller/twilio/RealTimeReportsWGDetailsController.js +0 -160
- package/lib/controller/twilio/TaskInfoPanelController.d.ts +0 -15
- package/lib/controller/twilio/TaskInfoPanelController.js +0 -134
- package/lib/controller/twilio/filterImpl/AgentScorecardFilter.d.ts +0 -12
- package/lib/controller/twilio/filterImpl/AgentScorecardFilter.js +0 -52
- package/lib/controller/twilio/filterImpl/AuditLogsFilter.d.ts +0 -12
- package/lib/controller/twilio/filterImpl/AuditLogsFilter.js +0 -89
- package/lib/controller/twilio/filterImpl/CXConfigPromptFilter.d.ts +0 -12
- package/lib/controller/twilio/filterImpl/CXConfigPromptFilter.js +0 -81
- package/lib/controller/twilio/filterImpl/CallLogsFilter.d.ts +0 -20
- package/lib/controller/twilio/filterImpl/CallLogsFilter.js +0 -101
- package/lib/controller/twilio/filterImpl/CxConfigAssetFilter.d.ts +0 -12
- package/lib/controller/twilio/filterImpl/CxConfigAssetFilter.js +0 -59
- package/lib/controller/twilio/filterImpl/CxConfigExternalNumbersFilter.d.ts +0 -12
- package/lib/controller/twilio/filterImpl/CxConfigExternalNumbersFilter.js +0 -67
- package/lib/controller/twilio/filterImpl/CxConfigOtherFilter.d.ts +0 -14
- package/lib/controller/twilio/filterImpl/CxConfigOtherFilter.js +0 -52
- package/lib/controller/twilio/filterImpl/CxConfigQueueMenuFilter.d.ts +0 -17
- package/lib/controller/twilio/filterImpl/CxConfigQueueMenuFilter.js +0 -78
- package/lib/controller/twilio/filterImpl/CxConfigUIconfigFilter.d.ts +0 -12
- package/lib/controller/twilio/filterImpl/CxConfigUIconfigFilter.js +0 -51
- package/lib/controller/twilio/filterImpl/HoopHolidaysFilter.d.ts +0 -14
- package/lib/controller/twilio/filterImpl/HoopHolidaysFilter.js +0 -58
- package/lib/controller/twilio/filterImpl/HoopNotesFilter.d.ts +0 -12
- package/lib/controller/twilio/filterImpl/HoopNotesFilter.js +0 -51
- package/lib/controller/twilio/filterImpl/HoopPartialDaysFilter.d.ts +0 -14
- package/lib/controller/twilio/filterImpl/HoopPartialDaysFilter.js +0 -58
- package/lib/controller/twilio/filterImpl/MainFilterService.d.ts +0 -4
- package/lib/controller/twilio/filterImpl/MainFilterService.js +0 -108
- package/lib/controller/twilio/filterImpl/NavigationFilter.d.ts +0 -20
- package/lib/controller/twilio/filterImpl/NavigationFilter.js +0 -90
- package/lib/controller/twilio/filterImpl/QueueDetailsFilter.d.ts +0 -14
- package/lib/controller/twilio/filterImpl/QueueDetailsFilter.js +0 -53
- package/lib/controller/twilio/filterImpl/TaskCompleteFilter.d.ts +0 -12
- package/lib/controller/twilio/filterImpl/TaskCompleteFilter.js +0 -62
- package/lib/controller/twilio/filterImpl/TaskInfoPanelFilter.d.ts +0 -12
- package/lib/controller/twilio/filterImpl/TaskInfoPanelFilter.js +0 -52
- package/lib/express/ApiResponse.d.ts +0 -15
- package/lib/express/ApiResponse.js +0 -11
- package/lib/express/RequestValidator.d.ts +0 -50
- package/lib/express/RequestValidator.js +0 -77
- package/lib/express/RequireParamsPicker.d.ts +0 -7
- package/lib/express/RequireParamsPicker.js +0 -14
- package/lib/express/ValidateRequireParameters.d.ts +0 -3
- package/lib/express/ValidateRequireParameters.js +0 -39
- package/lib/index.d.ts +0 -39
- package/lib/index.js +0 -100
- package/lib/models/BatchUpdateSkills.model.d.ts +0 -0
- package/lib/models/BatchUpdateSkills.model.js +0 -11
- package/lib/models/CannedMessage.model.d.ts +0 -4
- package/lib/models/CannedMessage.model.js +0 -1
- package/lib/models/ChannelSettingsTaskInfo.model.d.ts +0 -87
- package/lib/models/ChannelSettingsTaskInfo.model.js +0 -1
- package/lib/models/CustomerFeedback.model.d.ts +0 -9
- package/lib/models/CustomerFeedback.model.js +0 -1
- package/lib/models/Filter.model.d.ts +0 -15
- package/lib/models/Filter.model.js +0 -2
- package/lib/models/Hoop.model.d.ts +0 -15
- package/lib/models/Hoop.model.js +0 -18
- package/lib/models/Navigation.model.d.ts +0 -28
- package/lib/models/Navigation.model.js +0 -8
- package/lib/models/Roles.Model.d.ts +0 -8
- package/lib/models/Roles.Model.js +0 -1
- package/lib/models/abstract/BaseModel.d.ts +0 -17
- package/lib/models/abstract/BaseModel.js +0 -40
- package/lib/models/impl/AgentActionsLogsModel.d.ts +0 -27
- package/lib/models/impl/AgentActionsLogsModel.js +0 -89
- package/lib/models/impl/AgentActionsModel.d.ts +0 -19
- package/lib/models/impl/AgentActionsModel.js +0 -60
- package/lib/models/impl/AgentScorecardModel.d.ts +0 -66
- package/lib/models/impl/AgentScorecardModel.js +0 -282
- package/lib/models/impl/AuditLogsModel.d.ts +0 -31
- package/lib/models/impl/AuditLogsModel.js +0 -146
- package/lib/models/impl/CallLogsModel.d.ts +0 -37
- package/lib/models/impl/CallLogsModel.js +0 -109
- package/lib/models/impl/CallStatisticsModel.d.ts +0 -16
- package/lib/models/impl/CallStatisticsModel.js +0 -52
- package/lib/models/impl/CategoryDetailsModel.d.ts +0 -17
- package/lib/models/impl/CategoryDetailsModel.js +0 -44
- package/lib/models/impl/MemberModel.d.ts +0 -42
- package/lib/models/impl/MemberModel.js +0 -170
- package/lib/models/impl/ModelValidationError.d.ts +0 -6
- package/lib/models/impl/ModelValidationError.js +0 -15
- package/lib/models/impl/NavigationModel.d.ts +0 -39
- package/lib/models/impl/NavigationModel.js +0 -126
- package/lib/models/impl/PerformanceStatisticsModel.d.ts +0 -41
- package/lib/models/impl/PerformanceStatisticsModel.js +0 -129
- package/lib/models/impl/PlaybackScreenrecordings.d.ts +0 -39
- package/lib/models/impl/PlaybackScreenrecordings.js +0 -133
- package/lib/models/impl/ProfileModel.d.ts +0 -23
- package/lib/models/impl/ProfileModel.js +0 -102
- package/lib/models/impl/QualityFormsModel.d.ts +0 -39
- package/lib/models/impl/QualityFormsModel.js +0 -150
- package/lib/models/impl/QuestionDetailsModel.d.ts +0 -39
- package/lib/models/impl/QuestionDetailsModel.js +0 -173
- package/lib/models/impl/QueueDetailsModel.d.ts +0 -63
- package/lib/models/impl/QueueDetailsModel.js +0 -261
- package/lib/models/impl/QueueModel.d.ts +0 -39
- package/lib/models/impl/QueueModel.js +0 -156
- package/lib/models/impl/QuickLinkModel.d.ts +0 -24
- package/lib/models/impl/QuickLinkModel.js +0 -122
- package/lib/models/impl/StatisticsNumberDetailsModel.d.ts +0 -18
- package/lib/models/impl/StatisticsNumberDetailsModel.js +0 -72
- package/lib/models/impl/StatisticsTimeDetailsModel.d.ts +0 -18
- package/lib/models/impl/StatisticsTimeDetailsModel.js +0 -72
- package/lib/models/impl/TaskAttributesModel.d.ts +0 -31
- package/lib/models/impl/TaskAttributesModel.js +0 -108
- package/lib/models/impl/TaskChannelModel.d.ts +0 -15
- package/lib/models/impl/TaskChannelModel.js +0 -69
- package/lib/models/impl/TaskComplete.d.ts +0 -0
- package/lib/models/impl/TaskComplete.js +0 -1
- package/lib/models/impl/TaskInfoPanelModel.d.ts +0 -16
- package/lib/models/impl/TaskInfoPanelModel.js +0 -69
- package/lib/models/impl/TaskModel.d.ts +0 -59
- package/lib/models/impl/TaskModel.js +0 -234
- package/lib/models/impl/WorkGroupDetailsModel.d.ts +0 -63
- package/lib/models/impl/WorkGroupDetailsModel.js +0 -281
- package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailModel.d.ts +0 -33
- package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailModel.js +0 -140
- package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailNamespace.d.ts +0 -8
- package/lib/models/impl/callbackandvoicemail/CallbackAndVoicemailNamespace.js +0 -12
- package/lib/models/impl/callbackandvoicemail/CallbackModel.d.ts +0 -19
- package/lib/models/impl/callbackandvoicemail/CallbackModel.js +0 -82
- package/lib/models/impl/callbackandvoicemail/VoicemailModel.d.ts +0 -25
- package/lib/models/impl/callbackandvoicemail/VoicemailModel.js +0 -108
- package/lib/models/impl/channelsettings/ChannelSettingModel.d.ts +0 -68
- package/lib/models/impl/channelsettings/ChannelSettingModel.js +0 -240
- package/lib/models/impl/channelsettings/ChannelSettingTaskInfoModel.d.ts +0 -31
- package/lib/models/impl/channelsettings/ChannelSettingTaskInfoModel.js +0 -106
- package/lib/models/impl/channelsettings/TaskInfoAttributeModel.d.ts +0 -25
- package/lib/models/impl/channelsettings/TaskInfoAttributeModel.js +0 -80
- package/lib/models/impl/channelsettings/TaskInfoModel.d.ts +0 -13
- package/lib/models/impl/channelsettings/TaskInfoModel.js +0 -52
- package/lib/models/impl/cxconfig/CxConfigNamespace.d.ts +0 -16
- package/lib/models/impl/cxconfig/CxConfigNamespace.js +0 -20
- package/lib/models/impl/cxconfig/CxConfigUIConfigModel.d.ts +0 -27
- package/lib/models/impl/cxconfig/CxConfigUIConfigModel.js +0 -173
- package/lib/models/impl/cxconfig/CxConfiguratorConfigModel.d.ts +0 -24
- package/lib/models/impl/cxconfig/CxConfiguratorConfigModel.js +0 -103
- package/lib/models/impl/cxconfig/CxConfiguratorExternalNumbersModel.d.ts +0 -24
- package/lib/models/impl/cxconfig/CxConfiguratorExternalNumbersModel.js +0 -149
- package/lib/models/impl/cxconfig/CxConfiguratorGPMAssetModel.d.ts +0 -27
- package/lib/models/impl/cxconfig/CxConfiguratorGPMAssetModel.js +0 -179
- package/lib/models/impl/cxconfig/CxConfiguratorGPMPromptModel.d.ts +0 -37
- package/lib/models/impl/cxconfig/CxConfiguratorGPMPromptModel.js +0 -197
- package/lib/models/impl/cxconfig/CxConfiguratorOtherModel.d.ts +0 -27
- package/lib/models/impl/cxconfig/CxConfiguratorOtherModel.js +0 -159
- package/lib/models/impl/cxconfig/CxConfiguratorQueueMenuModel.d.ts +0 -40
- package/lib/models/impl/cxconfig/CxConfiguratorQueueMenuModel.js +0 -128
- package/lib/models/impl/hoop/HoopBusinessHoursModel.d.ts +0 -39
- package/lib/models/impl/hoop/HoopBusinessHoursModel.js +0 -122
- package/lib/models/impl/hoop/HoopDescriptionModel.d.ts +0 -16
- package/lib/models/impl/hoop/HoopDescriptionModel.js +0 -64
- package/lib/models/impl/hoop/HoopHolidaysImplModel.d.ts +0 -25
- package/lib/models/impl/hoop/HoopHolidaysImplModel.js +0 -118
- package/lib/models/impl/hoop/HoopNotesImplModel.d.ts +0 -25
- package/lib/models/impl/hoop/HoopNotesImplModel.js +0 -117
- package/lib/models/impl/hoop/HoopOperationsImplModel.d.ts +0 -28
- package/lib/models/impl/hoop/HoopOperationsImplModel.js +0 -161
- package/lib/models/impl/hoop/HoopOverrideImplModel.d.ts +0 -22
- package/lib/models/impl/hoop/HoopOverrideImplModel.js +0 -143
- package/lib/models/impl/hoop/HoopPartialDaysImplModel.d.ts +0 -31
- package/lib/models/impl/hoop/HoopPartialDaysImplModel.js +0 -140
- package/lib/models/impl/hoop/HoopProfilesListImplModel.d.ts +0 -22
- package/lib/models/impl/hoop/HoopProfilesListImplModel.js +0 -104
- package/lib/models/impl/hoop/HoopWeeklyTimingModel.d.ts +0 -22
- package/lib/models/impl/hoop/HoopWeeklyTimingModel.js +0 -86
- package/lib/models/index.d.ts +0 -25
- package/lib/models/index.js +0 -53
- package/lib/models/interface/IBaseModel.d.ts +0 -11
- package/lib/models/interface/IBaseModel.js +0 -2
- package/lib/models/types/AgentScorecard.type.d.ts +0 -6
- package/lib/models/types/AgentScorecard.type.js +0 -7
- package/lib/models/types/AuditLog.type.d.ts +0 -13
- package/lib/models/types/AuditLog.type.js +0 -10
- package/lib/models/types/CallLog.type.d.ts +0 -16
- package/lib/models/types/CallLog.type.js +0 -10
- package/lib/models/types/ChannelSetting.type.d.ts +0 -7
- package/lib/models/types/ChannelSetting.type.js +0 -11
- package/lib/models/types/CxConfig.type.d.ts +0 -72
- package/lib/models/types/CxConfig.type.js +0 -43
- package/lib/models/types/Hoop.type.d.ts +0 -9
- package/lib/models/types/Hoop.type.js +0 -13
- package/lib/models/types/Navigation.type.d.ts +0 -11
- package/lib/models/types/Navigation.type.js +0 -8
- package/lib/models/types/Profile.type.d.ts +0 -1
- package/lib/models/types/Profile.type.js +0 -2
- package/lib/models/types/QueueDetails.type.d.ts +0 -6
- package/lib/models/types/QueueDetails.type.js +0 -7
- package/lib/models/types/TaskComplete.type.d.ts +0 -7
- package/lib/models/types/TaskComplete.type.js +0 -6
- package/lib/models/types/TaskInfoPanel.type.d.ts +0 -6
- package/lib/models/types/TaskInfoPanel.type.js +0 -7
- package/lib/server.d.ts +0 -1
- package/lib/server.js +0 -39
- package/lib/twilio/abstract/ServiceObjectStore.d.ts +0 -6
- package/lib/twilio/abstract/ServiceObjectStore.js +0 -10
- package/lib/twilio/abstract/ServiceOpenRequest.d.ts +0 -7
- package/lib/twilio/abstract/ServiceOpenRequest.js +0 -10
- package/lib/twilio/abstract/ServiceRequest.d.ts +0 -3
- package/lib/twilio/abstract/ServiceRequest.js +0 -7
- package/lib/twilio/abstract/ServiceResource.d.ts +0 -23
- package/lib/twilio/abstract/ServiceResource.js +0 -37
- package/lib/twilio/abstract/ServiceResourceFactory.d.ts +0 -15
- package/lib/twilio/abstract/ServiceResourceFactory.js +0 -18
- package/lib/twilio/abstract/ServiceTransaction.d.ts +0 -6
- package/lib/twilio/abstract/ServiceTransaction.js +0 -11
- package/lib/twilio/abstract/SyncServiceItemResource.d.ts +0 -31
- package/lib/twilio/abstract/SyncServiceItemResource.js +0 -60
- package/lib/twilio/abstract/TwilioClientConfig.d.ts +0 -0
- package/lib/twilio/abstract/TwilioClientConfig.js +0 -1
- package/lib/twilio/impl/TwilioAPIKeyConfig.d.ts +0 -14
- package/lib/twilio/impl/TwilioAPIKeyConfig.js +0 -31
- package/lib/twilio/impl/TwilioAuthTokenConfig.d.ts +0 -11
- package/lib/twilio/impl/TwilioAuthTokenConfig.js +0 -24
- package/lib/twilio/impl/TwilioClient.d.ts +0 -6
- package/lib/twilio/impl/TwilioClient.js +0 -21
- package/lib/twilio/impl/message/messageService.d.ts +0 -0
- package/lib/twilio/impl/message/messageService.js +0 -42
- package/lib/twilio/impl/sync/SyncDocument.d.ts +0 -24
- package/lib/twilio/impl/sync/SyncDocument.js +0 -52
- package/lib/twilio/impl/sync/SyncDocumentTransaction.d.ts +0 -20
- package/lib/twilio/impl/sync/SyncDocumentTransaction.js +0 -31
- package/lib/twilio/impl/sync/SyncList.d.ts +0 -24
- package/lib/twilio/impl/sync/SyncList.js +0 -52
- package/lib/twilio/impl/sync/SyncListItem.d.ts +0 -5
- package/lib/twilio/impl/sync/SyncListItem.js +0 -22
- package/lib/twilio/impl/sync/SyncListTransaction.d.ts +0 -20
- package/lib/twilio/impl/sync/SyncListTransaction.js +0 -31
- package/lib/twilio/impl/sync/SyncMap.d.ts +0 -25
- package/lib/twilio/impl/sync/SyncMap.js +0 -139
- package/lib/twilio/impl/sync/SyncMapItem.d.ts +0 -5
- package/lib/twilio/impl/sync/SyncMapItem.js +0 -7
- package/lib/twilio/impl/sync/SyncMapTransaction.d.ts +0 -22
- package/lib/twilio/impl/sync/SyncMapTransaction.js +0 -38
- package/lib/twilio/impl/sync/SyncOpenRequest.d.ts +0 -18
- package/lib/twilio/impl/sync/SyncOpenRequest.js +0 -24
- package/lib/twilio/impl/sync/SyncRequest.d.ts +0 -16
- package/lib/twilio/impl/sync/SyncRequest.js +0 -21
- package/lib/twilio/impl/sync/SyncResource.d.ts +0 -50
- package/lib/twilio/impl/sync/SyncResource.js +0 -97
- package/lib/twilio/impl/sync/SyncServiceFactory.d.ts +0 -22
- package/lib/twilio/impl/sync/SyncServiceFactory.js +0 -117
- package/lib/twilio/interface/IDirection.d.ts +0 -2
- package/lib/twilio/interface/IDirection.js +0 -2
- package/lib/twilio/interface/ILink.d.ts +0 -2
- package/lib/twilio/interface/ILink.js +0 -2
- package/lib/twilio/interface/IServiceDBOpenRequest.d.ts +0 -3
- package/lib/twilio/interface/IServiceDBOpenRequest.js +0 -2
- package/lib/twilio/interface/IServiceObjectStore.d.ts +0 -3
- package/lib/twilio/interface/IServiceObjectStore.js +0 -2
- package/lib/twilio/interface/IServiceObjectStoreParameters.d.ts +0 -4
- package/lib/twilio/interface/IServiceObjectStoreParameters.js +0 -2
- package/lib/twilio/interface/IServiceRequest.d.ts +0 -3
- package/lib/twilio/interface/IServiceRequest.js +0 -2
- package/lib/twilio/interface/IServiceResource.d.ts +0 -8
- package/lib/twilio/interface/IServiceResource.js +0 -2
- package/lib/twilio/interface/IServiceTransation.d.ts +0 -3
- package/lib/twilio/interface/IServiceTransation.js +0 -2
- package/lib/twilio/interface/ISubResourceUri.d.ts +0 -2
- package/lib/twilio/interface/ISubResourceUri.js +0 -2
- package/lib/twilio/interface/ISyncItemData.d.ts +0 -0
- package/lib/twilio/interface/ISyncItemData.js +0 -1
- package/lib/twilio/interface/ISyncObjectStoreParameters.d.ts +0 -0
- package/lib/twilio/interface/ISyncObjectStoreParameters.js +0 -1
- package/lib/twilio/interface/ISyncTransactionOptions.d.ts +0 -4
- package/lib/twilio/interface/ISyncTransactionOptions.js +0 -2
|
@@ -1,128 +0,0 @@
|
|
|
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.CxConfigOtherController = void 0;
|
|
13
|
-
const DatabaseConfig_1 = require("../../config/DatabaseConfig");
|
|
14
|
-
const CxConfiguratorOtherModel_1 = require("../../models/impl/cxconfig/CxConfiguratorOtherModel");
|
|
15
|
-
const Common_1 = require("../Common");
|
|
16
|
-
const CxConfigOtherFilter_1 = require("./filterImpl/CxConfigOtherFilter");
|
|
17
|
-
class CxConfigOtherController {
|
|
18
|
-
constructor(dbFactory) {
|
|
19
|
-
this._dbFactory = dbFactory;
|
|
20
|
-
}
|
|
21
|
-
add(data) {
|
|
22
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
try {
|
|
24
|
-
const configother = new CxConfiguratorOtherModel_1.CxConfiguratorOtherModel(data.id, data.name, data.key, data.value, data.description, data.createdAt, data.updatedAt);
|
|
25
|
-
if (configother.validationMessages.length > 0) {
|
|
26
|
-
throw configother.validationMessages;
|
|
27
|
-
}
|
|
28
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
29
|
-
const database = databaseConnection.result;
|
|
30
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.cxConfigOtherTable, "readwrite");
|
|
31
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.cxConfigOtherTable);
|
|
32
|
-
let result = yield table.add(configother.serialize, configother.id);
|
|
33
|
-
return result;
|
|
34
|
-
}
|
|
35
|
-
catch (error) {
|
|
36
|
-
const response = (0, Common_1.handleError)(error);
|
|
37
|
-
return response;
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
get(query) {
|
|
42
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
-
try {
|
|
44
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
45
|
-
const database = databaseConnection.result;
|
|
46
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.cxConfigOtherTable, "readwrite");
|
|
47
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.cxConfigOtherTable);
|
|
48
|
-
let result = yield table.get(query.id);
|
|
49
|
-
let response = {
|
|
50
|
-
data: result,
|
|
51
|
-
statusCode: 200,
|
|
52
|
-
};
|
|
53
|
-
return response;
|
|
54
|
-
}
|
|
55
|
-
catch (error) {
|
|
56
|
-
const response = (0, Common_1.handleError)(error);
|
|
57
|
-
return response;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
getAll(query) {
|
|
62
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
-
try {
|
|
64
|
-
console.log(query);
|
|
65
|
-
// changed to Specfic factory as method override is not working
|
|
66
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
67
|
-
const database = databaseConnection.result;
|
|
68
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.cxConfigOtherTable, "readwrite");
|
|
69
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.cxConfigOtherTable);
|
|
70
|
-
const allowedFields = [];
|
|
71
|
-
if (query.getFilterContent) {
|
|
72
|
-
query.allowedFields = allowedFields;
|
|
73
|
-
}
|
|
74
|
-
query.category = "CXConfig-Other";
|
|
75
|
-
let result = yield table.getAll(query);
|
|
76
|
-
if (query.getFilterContent) {
|
|
77
|
-
result.filterContent = CxConfigOtherFilter_1.CXConfigOtherFilterService.getFilterData(result.filterOptions);
|
|
78
|
-
}
|
|
79
|
-
if ("filterOptions" in result) {
|
|
80
|
-
delete result.filterOptions;
|
|
81
|
-
}
|
|
82
|
-
return { result, meta: query };
|
|
83
|
-
}
|
|
84
|
-
catch (error) {
|
|
85
|
-
console.log('error ', error);
|
|
86
|
-
return error;
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
edit(data) {
|
|
91
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
-
try {
|
|
93
|
-
const configother = new CxConfiguratorOtherModel_1.CxConfiguratorOtherModel(data.id, data.name, data.key, data.value, data.description, data.createdAt, data.updatedAt);
|
|
94
|
-
if (configother.validationMessages.length > 0) {
|
|
95
|
-
throw configother.validationMessages;
|
|
96
|
-
}
|
|
97
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
98
|
-
const database = databaseConnection.result;
|
|
99
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.cxConfigOtherTable, "readwrite");
|
|
100
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.cxConfigOtherTable);
|
|
101
|
-
const key = configother.id;
|
|
102
|
-
let result = yield table.put(configother.serialize, key);
|
|
103
|
-
return result;
|
|
104
|
-
}
|
|
105
|
-
catch (error) {
|
|
106
|
-
console.log("error ", error);
|
|
107
|
-
return error;
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
delete(query) {
|
|
112
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
113
|
-
try {
|
|
114
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
115
|
-
const database = databaseConnection.result;
|
|
116
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.cxConfigOtherTable, "readwrite");
|
|
117
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.cxConfigOtherTable);
|
|
118
|
-
let result = yield table.delete(query.id);
|
|
119
|
-
return result;
|
|
120
|
-
}
|
|
121
|
-
catch (error) {
|
|
122
|
-
const response = (0, Common_1.handleError)(error);
|
|
123
|
-
return response;
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
exports.CxConfigOtherController = CxConfigOtherController;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SyncServiceFactory } from "../../twilio/impl/sync/SyncServiceFactory";
|
|
2
|
-
import { SearchParameterType } from "../../common/type/SearchParameterType";
|
|
3
|
-
import { CxConfiguratorQueueMenuModel } from "../../models/impl/cxconfig/CxConfiguratorQueueMenuModel";
|
|
4
|
-
export declare class CxConfigQueueMenuController {
|
|
5
|
-
private _dbFactory;
|
|
6
|
-
constructor(dbFactory: SyncServiceFactory);
|
|
7
|
-
add(data: CxConfiguratorQueueMenuModel): Promise<any>;
|
|
8
|
-
get(query: Pick<CxConfiguratorQueueMenuModel, "id">): Promise<any>;
|
|
9
|
-
getAll(query: SearchParameterType): Promise<any>;
|
|
10
|
-
edit(data: CxConfiguratorQueueMenuModel): Promise<any>;
|
|
11
|
-
delete(query: Pick<CxConfiguratorQueueMenuModel, "id">): Promise<any>;
|
|
12
|
-
}
|
|
@@ -1,129 +0,0 @@
|
|
|
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.CxConfigQueueMenuController = void 0;
|
|
13
|
-
const DatabaseConfig_1 = require("../../config/DatabaseConfig");
|
|
14
|
-
const CxConfiguratorQueueMenuModel_1 = require("../../models/impl/cxconfig/CxConfiguratorQueueMenuModel");
|
|
15
|
-
const CxConfigQueueMenuFilter_1 = require("./filterImpl/CxConfigQueueMenuFilter");
|
|
16
|
-
class CxConfigQueueMenuController {
|
|
17
|
-
constructor(dbFactory) {
|
|
18
|
-
this._dbFactory = dbFactory;
|
|
19
|
-
}
|
|
20
|
-
add(data) {
|
|
21
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
try {
|
|
23
|
-
const cxqueuemenu = new CxConfiguratorQueueMenuModel_1.CxConfiguratorQueueMenuModel(data.id, data.name, data.category, data.type, data.value, data.language, data.fileName, data.voice, data.order, data.createdAt, data.updatedAt);
|
|
24
|
-
if (cxqueuemenu.validationMessages.length > 0) {
|
|
25
|
-
throw cxqueuemenu.validationMessages;
|
|
26
|
-
}
|
|
27
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
28
|
-
const database = databaseConnection.result;
|
|
29
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.cxConfigQueueMenuTable, "readwrite");
|
|
30
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.cxConfigQueueMenuTable);
|
|
31
|
-
let result = yield table.add(cxqueuemenu.serialize, cxqueuemenu.id);
|
|
32
|
-
return result;
|
|
33
|
-
}
|
|
34
|
-
catch (error) {
|
|
35
|
-
console.log('error occrred', error);
|
|
36
|
-
throw error;
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
get(query) {
|
|
41
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
-
try {
|
|
43
|
-
console.log(query);
|
|
44
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
45
|
-
const database = databaseConnection.result;
|
|
46
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.cxConfigQueueMenuTable, "readwrite");
|
|
47
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.cxConfigQueueMenuTable);
|
|
48
|
-
let result = yield table.get(query.id);
|
|
49
|
-
return result;
|
|
50
|
-
}
|
|
51
|
-
catch (error) {
|
|
52
|
-
console.log('error ', error);
|
|
53
|
-
return error;
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
//Get GPM Messages
|
|
58
|
-
getAll(query) {
|
|
59
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
-
try {
|
|
61
|
-
console.log(query);
|
|
62
|
-
// changed to Specfic factory as method override is not working
|
|
63
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
64
|
-
const database = databaseConnection.result;
|
|
65
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.cxConfigQueueMenuTable, "readwrite");
|
|
66
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.cxConfigQueueMenuTable);
|
|
67
|
-
const allowedFields = [
|
|
68
|
-
"type",
|
|
69
|
-
"voice",
|
|
70
|
-
"order"
|
|
71
|
-
];
|
|
72
|
-
if (query.getFilterContent) {
|
|
73
|
-
query.allowedFields = allowedFields;
|
|
74
|
-
}
|
|
75
|
-
query.category = "CXConfig-QueueMenu";
|
|
76
|
-
let result = yield table.getAll(query);
|
|
77
|
-
if (query.getFilterContent) {
|
|
78
|
-
result.filterContent = CxConfigQueueMenuFilter_1.CXConfigQueueMenuFilterService.getFilterData(result.filterOptions);
|
|
79
|
-
}
|
|
80
|
-
if ("filterOptions" in result) {
|
|
81
|
-
delete result.filterOptions;
|
|
82
|
-
}
|
|
83
|
-
return { result, meta: query };
|
|
84
|
-
}
|
|
85
|
-
catch (error) {
|
|
86
|
-
console.log('error ', error);
|
|
87
|
-
return error;
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
edit(data) {
|
|
92
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
-
try {
|
|
94
|
-
const cxqueuemenu = new CxConfiguratorQueueMenuModel_1.CxConfiguratorQueueMenuModel(data.id, data.name, data.category, data.type, data.value, data.language, data.fileName, data.voice, data.order, data.createdAt, data.updatedAt);
|
|
95
|
-
if (cxqueuemenu.validationMessages.length > 0) {
|
|
96
|
-
throw cxqueuemenu.validationMessages;
|
|
97
|
-
}
|
|
98
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
99
|
-
const database = databaseConnection.result;
|
|
100
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.cxConfigQueueMenuTable, "readwrite");
|
|
101
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.cxConfigQueueMenuTable);
|
|
102
|
-
const key = cxqueuemenu.id;
|
|
103
|
-
let result = yield table.put(cxqueuemenu.serialize, key);
|
|
104
|
-
return result;
|
|
105
|
-
}
|
|
106
|
-
catch (error) {
|
|
107
|
-
console.log('error ', error);
|
|
108
|
-
return error;
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
delete(query) {
|
|
113
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
-
try {
|
|
115
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
116
|
-
const database = databaseConnection.result;
|
|
117
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.cxConfigQueueMenuTable, "readwrite");
|
|
118
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.cxConfigQueueMenuTable);
|
|
119
|
-
let result = yield table.delete(query.id);
|
|
120
|
-
return result;
|
|
121
|
-
}
|
|
122
|
-
catch (error) {
|
|
123
|
-
console.log('delete record error ', error);
|
|
124
|
-
return error;
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
exports.CxConfigQueueMenuController = CxConfigQueueMenuController;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SyncServiceFactory } from "../../twilio/impl/sync/SyncServiceFactory";
|
|
2
|
-
import { SearchParameterType } from "../../common/type/SearchParameterType";
|
|
3
|
-
import { CxGpmUIConfigModel } from "../../models/impl/cxconfig/CxConfigUIConfigModel";
|
|
4
|
-
export declare class CxConfigUIConfigController {
|
|
5
|
-
private _dbFactory;
|
|
6
|
-
constructor(dbFactory: SyncServiceFactory);
|
|
7
|
-
add(data: CxGpmUIConfigModel): Promise<any>;
|
|
8
|
-
get(query: Pick<CxGpmUIConfigModel, "id">): Promise<any>;
|
|
9
|
-
getAll(query: SearchParameterType): Promise<any>;
|
|
10
|
-
edit(data: CxGpmUIConfigModel): Promise<any>;
|
|
11
|
-
delete(query: Pick<CxGpmUIConfigModel, "id">): Promise<any>;
|
|
12
|
-
}
|
|
@@ -1,132 +0,0 @@
|
|
|
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.CxConfigUIConfigController = void 0;
|
|
13
|
-
const DatabaseConfig_1 = require("../../config/DatabaseConfig");
|
|
14
|
-
const CxConfigUIConfigModel_1 = require("../../models/impl/cxconfig/CxConfigUIConfigModel");
|
|
15
|
-
const CxConfigUIconfigFilter_1 = require("./filterImpl/CxConfigUIconfigFilter");
|
|
16
|
-
// Controller class for managing GPM UI Configuration data
|
|
17
|
-
class CxConfigUIConfigController {
|
|
18
|
-
// Constructor to initialize the database factory
|
|
19
|
-
constructor(dbFactory) {
|
|
20
|
-
this._dbFactory = dbFactory;
|
|
21
|
-
}
|
|
22
|
-
// Validates the data before adding it to the database
|
|
23
|
-
add(data) {
|
|
24
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
-
try {
|
|
26
|
-
const gpmuiconfig = new CxConfigUIConfigModel_1.CxGpmUIConfigModel(data.id, data.name, data.value, data.description, data.createdAt, data.updatedAt);
|
|
27
|
-
if (gpmuiconfig.validationMessages.length > 0) {
|
|
28
|
-
throw gpmuiconfig.validationMessages;
|
|
29
|
-
}
|
|
30
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
31
|
-
const database = databaseConnection.result;
|
|
32
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.cxConfigUIconfigTable, "readwrite");
|
|
33
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.cxConfigUIconfigTable);
|
|
34
|
-
let result = yield table.add(gpmuiconfig.serialize, gpmuiconfig.id);
|
|
35
|
-
return result;
|
|
36
|
-
}
|
|
37
|
-
catch (error) {
|
|
38
|
-
console.log("error occurred", error);
|
|
39
|
-
throw error;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
// Method to get a specific GPM UI Configuration data by ID
|
|
44
|
-
get(query) {
|
|
45
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
46
|
-
try {
|
|
47
|
-
console.log(query);
|
|
48
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
49
|
-
const database = databaseConnection.result;
|
|
50
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.cxConfigUIconfigTable, "readwrite");
|
|
51
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.cxConfigUIconfigTable);
|
|
52
|
-
let result = yield table.get(query.id);
|
|
53
|
-
return result;
|
|
54
|
-
}
|
|
55
|
-
catch (error) {
|
|
56
|
-
console.log("error ", error);
|
|
57
|
-
return error;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
// Method to get all GPM UI Configuration data based on search parameters
|
|
62
|
-
getAll(query) {
|
|
63
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
-
try {
|
|
65
|
-
console.log(query);
|
|
66
|
-
// Specific factory used as method override is not working
|
|
67
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
68
|
-
const database = databaseConnection.result;
|
|
69
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.cxConfigUIconfigTable, "readwrite");
|
|
70
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.cxConfigUIconfigTable);
|
|
71
|
-
const allowedFields = [];
|
|
72
|
-
if (query.getFilterContent) {
|
|
73
|
-
query.allowedFields = allowedFields;
|
|
74
|
-
}
|
|
75
|
-
query.category = "CXConfig-UIConfig";
|
|
76
|
-
let result = yield table.getAll(query);
|
|
77
|
-
if (query.getFilterContent) {
|
|
78
|
-
result.filterContent = CxConfigUIconfigFilter_1.CXConfigUIConfigFilterService.getFilterData(result.filterOptions);
|
|
79
|
-
}
|
|
80
|
-
if ("filterOptions" in result) {
|
|
81
|
-
delete result.filterOptions;
|
|
82
|
-
}
|
|
83
|
-
return { result, meta: query };
|
|
84
|
-
}
|
|
85
|
-
catch (error) {
|
|
86
|
-
console.log("error ", error);
|
|
87
|
-
return error;
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
// Method to edit existing GPM UI Configuration data
|
|
92
|
-
// Validates the data before updating it in the database
|
|
93
|
-
edit(data) {
|
|
94
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
-
try {
|
|
96
|
-
const gpmuiconfig = new CxConfigUIConfigModel_1.CxGpmUIConfigModel(data.id, data.name, data.value, data.description, data.createdAt, data.updatedAt);
|
|
97
|
-
if (gpmuiconfig.validationMessages.length > 0) {
|
|
98
|
-
throw gpmuiconfig.validationMessages;
|
|
99
|
-
}
|
|
100
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
101
|
-
const database = databaseConnection.result;
|
|
102
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.cxConfigUIconfigTable, "readwrite");
|
|
103
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.cxConfigUIconfigTable);
|
|
104
|
-
const key = gpmuiconfig.id;
|
|
105
|
-
let result = yield table.put(gpmuiconfig.serialize, key);
|
|
106
|
-
return result;
|
|
107
|
-
}
|
|
108
|
-
catch (error) {
|
|
109
|
-
console.log("error ", error);
|
|
110
|
-
return error;
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
// Method to delete a specific GPM UI Configuration data by ID
|
|
115
|
-
delete(query) {
|
|
116
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
-
try {
|
|
118
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
119
|
-
const database = databaseConnection.result;
|
|
120
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.cxConfigUIconfigTable, "readwrite");
|
|
121
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.cxConfigUIconfigTable);
|
|
122
|
-
let result = yield table.delete(query.id);
|
|
123
|
-
return result;
|
|
124
|
-
}
|
|
125
|
-
catch (error) {
|
|
126
|
-
console.log("delete record error ", error);
|
|
127
|
-
return error;
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
exports.CxConfigUIConfigController = CxConfigUIConfigController;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SyncServiceFactory } from "../../twilio/impl/sync/SyncServiceFactory";
|
|
2
|
-
import { SearchParameterType } from "../../common/type/SearchParameterType";
|
|
3
|
-
import { CxConfiguratorGPMPromptModel } from "../../models/impl/cxconfig/CxConfiguratorGPMPromptModel";
|
|
4
|
-
export declare class GPMController {
|
|
5
|
-
private _dbFactory;
|
|
6
|
-
constructor(dbFactory: SyncServiceFactory);
|
|
7
|
-
add(data: CxConfiguratorGPMPromptModel): Promise<any>;
|
|
8
|
-
get(query: Pick<CxConfiguratorGPMPromptModel, "id">): Promise<any>;
|
|
9
|
-
getAll(query: SearchParameterType): Promise<any>;
|
|
10
|
-
edit(data: CxConfiguratorGPMPromptModel): Promise<any>;
|
|
11
|
-
delete(query: Pick<CxConfiguratorGPMPromptModel, "id">): Promise<any>;
|
|
12
|
-
}
|
|
@@ -1,151 +0,0 @@
|
|
|
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.GPMController = void 0;
|
|
13
|
-
const DatabaseConfig_1 = require("../../config/DatabaseConfig");
|
|
14
|
-
const CxConfiguratorGPMPromptModel_1 = require("../../models/impl/cxconfig/CxConfiguratorGPMPromptModel");
|
|
15
|
-
const CXConfigPromptFilter_1 = require("./filterImpl/CXConfigPromptFilter");
|
|
16
|
-
class GPMController {
|
|
17
|
-
constructor(dbFactory) {
|
|
18
|
-
this._dbFactory = dbFactory;
|
|
19
|
-
}
|
|
20
|
-
add(data) {
|
|
21
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
try {
|
|
23
|
-
const gpmprompt = new CxConfiguratorGPMPromptModel_1.CxConfiguratorGPMPromptModel(data.id, data.name, data.type, data.fileType, data.value, data.language, data.voice, data.hints, data.createdAt, data.updatedAt);
|
|
24
|
-
if (gpmprompt.validationMessages.length > 0) {
|
|
25
|
-
throw gpmprompt.validationMessages;
|
|
26
|
-
}
|
|
27
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
28
|
-
const database = databaseConnection.result;
|
|
29
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.gpmTable, "readwrite");
|
|
30
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.gpmTable);
|
|
31
|
-
const key = gpmprompt.id;
|
|
32
|
-
let result = yield table.add(gpmprompt.serialize, key);
|
|
33
|
-
return result;
|
|
34
|
-
}
|
|
35
|
-
catch (error) {
|
|
36
|
-
console.log('error ', error);
|
|
37
|
-
return error;
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
get(query) {
|
|
42
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
-
try {
|
|
44
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
45
|
-
const database = databaseConnection.result;
|
|
46
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.gpmTable, "readwrite");
|
|
47
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.gpmTable);
|
|
48
|
-
let result = yield table.get(query.id);
|
|
49
|
-
return result;
|
|
50
|
-
}
|
|
51
|
-
catch (error) {
|
|
52
|
-
console.log("error ", error);
|
|
53
|
-
return error;
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
//Get GPM Messages
|
|
58
|
-
getAll(query) {
|
|
59
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
-
try {
|
|
61
|
-
console.log(query);
|
|
62
|
-
// changed to Specfic factory as method override is not working
|
|
63
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
64
|
-
const database = databaseConnection.result;
|
|
65
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.gpmTable, "readwrite");
|
|
66
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.gpmTable);
|
|
67
|
-
const allowedFields = [
|
|
68
|
-
"type",
|
|
69
|
-
"language",
|
|
70
|
-
"voice"
|
|
71
|
-
];
|
|
72
|
-
if (query.getFilterContent) {
|
|
73
|
-
query.allowedFields = allowedFields;
|
|
74
|
-
}
|
|
75
|
-
query.category = "CXConfig-Prompt";
|
|
76
|
-
let result = yield table.getAll(query);
|
|
77
|
-
if (query.getFilterContent) {
|
|
78
|
-
result.filterContent = CXConfigPromptFilter_1.CXConfigPromptFilterService.getFilterData(result.filterOptions);
|
|
79
|
-
}
|
|
80
|
-
if (query.getPromptForIVR) {
|
|
81
|
-
result.items = transformArrayToJson(result.items);
|
|
82
|
-
}
|
|
83
|
-
if ("filterOptions" in result) {
|
|
84
|
-
delete result.filterOptions;
|
|
85
|
-
}
|
|
86
|
-
return { result, meta: query };
|
|
87
|
-
}
|
|
88
|
-
catch (error) {
|
|
89
|
-
console.log('error ', error);
|
|
90
|
-
return error;
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
edit(data) {
|
|
95
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
96
|
-
try {
|
|
97
|
-
const gpmprompt = new CxConfiguratorGPMPromptModel_1.CxConfiguratorGPMPromptModel(data.id, data.name, data.type, data.fileType, data.value, data.language, data.voice, data.hints, data.createdAt, data.updatedAt);
|
|
98
|
-
if (gpmprompt.validationMessages.length > 0) {
|
|
99
|
-
throw gpmprompt.validationMessages;
|
|
100
|
-
}
|
|
101
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
102
|
-
const database = databaseConnection.result;
|
|
103
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.gpmTable, "readwrite");
|
|
104
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.gpmTable);
|
|
105
|
-
const key = gpmprompt.id;
|
|
106
|
-
let result = yield table.put(gpmprompt.serialize, key);
|
|
107
|
-
return result;
|
|
108
|
-
}
|
|
109
|
-
catch (error) {
|
|
110
|
-
console.log('error ', error);
|
|
111
|
-
return error;
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
// async deleteDatabase(req: Request, res: Response): Promise<void> {
|
|
116
|
-
// try {
|
|
117
|
-
// const { name } = req.params;
|
|
118
|
-
// // changed to Specfic factory as method override is not working
|
|
119
|
-
// const databaseConnection: IDBOpenDBRequest = await this._dbFactory.deleteDatabase(name);
|
|
120
|
-
// res.json(databaseConnection.result);
|
|
121
|
-
// } catch (error: any) {
|
|
122
|
-
// console.log('error ', error)
|
|
123
|
-
// res.status(500).json({ error: error.message });
|
|
124
|
-
// }
|
|
125
|
-
// }
|
|
126
|
-
delete(query) {
|
|
127
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
128
|
-
try {
|
|
129
|
-
// const DataValidation = new CxConfiguratorGPMPrompt(query)
|
|
130
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
131
|
-
const database = databaseConnection.result;
|
|
132
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.gpmTable, "readwrite");
|
|
133
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.gpmTable);
|
|
134
|
-
let result = yield table.delete(query.id);
|
|
135
|
-
return result;
|
|
136
|
-
}
|
|
137
|
-
catch (error) {
|
|
138
|
-
console.log('delete record error ', error);
|
|
139
|
-
return error;
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
exports.GPMController = GPMController;
|
|
145
|
-
function transformArrayToJson(inputArray) {
|
|
146
|
-
return inputArray.reduce((acc, item) => {
|
|
147
|
-
const { name, value, voice, language, type, hints } = item;
|
|
148
|
-
acc[name] = { value, voice, language, type, hints };
|
|
149
|
-
return acc;
|
|
150
|
-
}, {});
|
|
151
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { SyncServiceFactory } from "../../twilio/impl/sync/SyncServiceFactory";
|
|
2
|
-
export declare class HoopBusinessHoursController {
|
|
3
|
-
private _dbFactory;
|
|
4
|
-
constructor(dbFactory: SyncServiceFactory);
|
|
5
|
-
/**
|
|
6
|
-
* Method to get business hours based on the profile ID.
|
|
7
|
-
* Handles multiple statuses such as Emergency, ACD Down, IVR Down, Meetings, etc.
|
|
8
|
-
* @param query - Object containing the profileName
|
|
9
|
-
* @returns - Business hours status
|
|
10
|
-
*/
|
|
11
|
-
getBusinessHours(query: {
|
|
12
|
-
profileName: string;
|
|
13
|
-
}): Promise<any>;
|
|
14
|
-
private formatTime;
|
|
15
|
-
private getWeeklyTimingString;
|
|
16
|
-
private createHoopDescription;
|
|
17
|
-
private getBranchStatusDescription;
|
|
18
|
-
}
|