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,297 +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.HoopMainController = void 0;
|
|
13
|
-
const DatabaseConfig_1 = require("../../config/DatabaseConfig");
|
|
14
|
-
const uuid_1 = require("uuid");
|
|
15
|
-
const HoopProfilesListController_1 = require("./HoopProfilesListController");
|
|
16
|
-
const HoopOverrideBranchesController_1 = require("./HoopOverrideBranchesController");
|
|
17
|
-
const HoopOperationsController_1 = require("./HoopOperationsController");
|
|
18
|
-
const HoopProfilesListImplModel_1 = require("../../models/impl/hoop/HoopProfilesListImplModel");
|
|
19
|
-
const HoopOverrideImplModel_1 = require("../../models/impl/hoop/HoopOverrideImplModel");
|
|
20
|
-
const HoopOperationsImplModel_1 = require("../../models/impl/hoop/HoopOperationsImplModel");
|
|
21
|
-
const HoopHolidaysController_1 = require("./HoopHolidaysController");
|
|
22
|
-
const HoopPartialDaysController_1 = require("./HoopPartialDaysController");
|
|
23
|
-
const HoopNotesController_1 = require("./HoopNotesController");
|
|
24
|
-
// Controller class to manage holidays-related data
|
|
25
|
-
class HoopMainController {
|
|
26
|
-
// Constructor to initialize SyncServiceFactory
|
|
27
|
-
constructor(dbFactory) {
|
|
28
|
-
this._dbFactory = dbFactory;
|
|
29
|
-
}
|
|
30
|
-
// Method to add new data to the profiles list
|
|
31
|
-
addProfile(data) {
|
|
32
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
-
try {
|
|
34
|
-
if (data.validationMessages.length > 0) {
|
|
35
|
-
throw data.validationMessages; // Throw error if data validation fails
|
|
36
|
-
}
|
|
37
|
-
// Open database connection
|
|
38
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
39
|
-
const database = databaseConnection.result;
|
|
40
|
-
// Start database transaction
|
|
41
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.hoopProfileList, "readwrite");
|
|
42
|
-
// Access object store
|
|
43
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.hoopProfileList);
|
|
44
|
-
// Add data to the object store
|
|
45
|
-
let result = table.add(data.serialize, data.profileId);
|
|
46
|
-
return result;
|
|
47
|
-
}
|
|
48
|
-
catch (error) {
|
|
49
|
-
throw error;
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
// Method to add new data to the override branches
|
|
54
|
-
addBranch(data) {
|
|
55
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
-
try {
|
|
57
|
-
// Validate incoming data
|
|
58
|
-
if (data.validationMessages.length > 0) {
|
|
59
|
-
throw data.validationMessages; // Throw error if data validation fails
|
|
60
|
-
}
|
|
61
|
-
// Open database connection
|
|
62
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
63
|
-
const database = databaseConnection.result;
|
|
64
|
-
// Start database transaction
|
|
65
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.hoopOverrideBranches, "readwrite");
|
|
66
|
-
// Access object store
|
|
67
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.hoopOverrideBranches);
|
|
68
|
-
// Add data to the object store
|
|
69
|
-
let result = yield table.add(data.serialize, data.branchId);
|
|
70
|
-
return result;
|
|
71
|
-
}
|
|
72
|
-
catch (error) {
|
|
73
|
-
throw error;
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
addOperations(data) {
|
|
78
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
79
|
-
try {
|
|
80
|
-
if (data.validationMessages.length > 0) {
|
|
81
|
-
throw data.validationMessages; // Throw error if data validation fails
|
|
82
|
-
}
|
|
83
|
-
// Open database connection
|
|
84
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
85
|
-
const database = databaseConnection.result;
|
|
86
|
-
// Start database transaction
|
|
87
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.hoopOperations, "readwrite");
|
|
88
|
-
// Access object store
|
|
89
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.hoopOperations);
|
|
90
|
-
// Add data to the object store
|
|
91
|
-
let result = yield table.add(data.serialize, data.operationId);
|
|
92
|
-
return result;
|
|
93
|
-
}
|
|
94
|
-
catch (error) {
|
|
95
|
-
throw error;
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
// Method to add new data to the holidays
|
|
100
|
-
createProfile(query) {
|
|
101
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
102
|
-
try {
|
|
103
|
-
// Initialize necessary controllers for fetching data
|
|
104
|
-
const profilesListController = new HoopProfilesListController_1.HoopProfilesListController(this._dbFactory);
|
|
105
|
-
// Fetch profile information based on profile ID
|
|
106
|
-
const profileInfo = yield profilesListController.getAll({
|
|
107
|
-
itemsPerPage: 100,
|
|
108
|
-
pageNo: 1,
|
|
109
|
-
});
|
|
110
|
-
const profilesList = profileInfo.result.items;
|
|
111
|
-
const isProfileAvailable = profilesList.some((profile) => profile.profileName === query.profileName);
|
|
112
|
-
if (isProfileAvailable) {
|
|
113
|
-
return "Profile is already available";
|
|
114
|
-
}
|
|
115
|
-
else {
|
|
116
|
-
const profiledata = {
|
|
117
|
-
profileId: query.profileId,
|
|
118
|
-
profileName: query.profileName,
|
|
119
|
-
timeZone: query.timeZone,
|
|
120
|
-
createdAt: query.createdAt,
|
|
121
|
-
updatedAt: query.updatedAt,
|
|
122
|
-
};
|
|
123
|
-
const HoopProfilesList = new HoopProfilesListImplModel_1.HoopProfilesListImplModel(profiledata.profileId, profiledata.profileName, profiledata.timeZone, profiledata.createdAt, profiledata.updatedAt);
|
|
124
|
-
const profile_data = yield this.addProfile(HoopProfilesList);
|
|
125
|
-
console.log("profile_data_159", profile_data);
|
|
126
|
-
const branchData = {
|
|
127
|
-
branchId: (0, uuid_1.v4)(),
|
|
128
|
-
profileId: query.profileId,
|
|
129
|
-
branchStatus: {
|
|
130
|
-
emergency: false,
|
|
131
|
-
weather: false,
|
|
132
|
-
meeting: false,
|
|
133
|
-
normal: true,
|
|
134
|
-
other: false,
|
|
135
|
-
acdDown: false,
|
|
136
|
-
ivrDown: false,
|
|
137
|
-
hasEndDate: false,
|
|
138
|
-
endDatePeriod: "",
|
|
139
|
-
},
|
|
140
|
-
createdAt: query.createdAt,
|
|
141
|
-
updatedAt: query.updatedAt,
|
|
142
|
-
};
|
|
143
|
-
const HoopOverride = new HoopOverrideImplModel_1.HoopOverrideBranchImplModel(branchData.branchId, branchData.profileId, branchData.branchStatus, branchData.createdAt, branchData.updatedAt);
|
|
144
|
-
let addBranch = yield this.addBranch(HoopOverride);
|
|
145
|
-
console.log("addBranch_159", addBranch);
|
|
146
|
-
const daysOfWeek = [
|
|
147
|
-
"Sunday",
|
|
148
|
-
"Monday",
|
|
149
|
-
"Tuesday",
|
|
150
|
-
"Wednesday",
|
|
151
|
-
"Thursday",
|
|
152
|
-
"Friday",
|
|
153
|
-
"Saturday",
|
|
154
|
-
];
|
|
155
|
-
for (const day of daysOfWeek) {
|
|
156
|
-
let operationsData = {
|
|
157
|
-
operationId: (0, uuid_1.v4)(),
|
|
158
|
-
profileId: query.profileId,
|
|
159
|
-
day: day,
|
|
160
|
-
status: "",
|
|
161
|
-
beginTime: "",
|
|
162
|
-
endTime: "",
|
|
163
|
-
createdAt: query.createdAt,
|
|
164
|
-
updatedAt: query.updatedAt,
|
|
165
|
-
};
|
|
166
|
-
if (day === "Saturday" || day === "Sunday") {
|
|
167
|
-
// operationsData.status = "closed";
|
|
168
|
-
operationsData.beginTime = "00:00";
|
|
169
|
-
operationsData.endTime = "00:00";
|
|
170
|
-
}
|
|
171
|
-
else {
|
|
172
|
-
// operationsData.status = "open";
|
|
173
|
-
operationsData.beginTime = "08:00";
|
|
174
|
-
operationsData.endTime = "17:00";
|
|
175
|
-
}
|
|
176
|
-
// Convert beginTime and endTime to Date objects
|
|
177
|
-
// const beginTimeDate = await this.timeStringToDate(operationsData.beginTime);
|
|
178
|
-
// const endTimeDate = await this.timeStringToDate(operationsData.endTime);
|
|
179
|
-
const operations = new HoopOperationsImplModel_1.HoopOperationsImplModel(operationsData.operationId, operationsData.profileId, operationsData.day,
|
|
180
|
-
// beginTimeDate,
|
|
181
|
-
// endTimeDate,
|
|
182
|
-
operationsData.beginTime, operationsData.endTime, operationsData.createdAt, operationsData.updatedAt);
|
|
183
|
-
// Call the asynchronous addOperations method and wait for it to complete
|
|
184
|
-
yield this.addOperations(operations);
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
catch (error) {
|
|
189
|
-
throw error;
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
// private async timeStringToDate(time: string): Promise<Date> {
|
|
194
|
-
// const [hours, minutes] = time.split(":").map((value) => Number(value));
|
|
195
|
-
// const today = new Date();
|
|
196
|
-
// return new Date(Date.UTC(today.getUTCFullYear(), today.getUTCMonth(), today.getUTCDate(), hours, minutes, 0, 0));
|
|
197
|
-
// }
|
|
198
|
-
deleteProfile(query) {
|
|
199
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
200
|
-
try {
|
|
201
|
-
if (query.profileId) {
|
|
202
|
-
// Initialize necessary controllers for fetching data
|
|
203
|
-
const profilesListController = new HoopProfilesListController_1.HoopProfilesListController(this._dbFactory);
|
|
204
|
-
// Fetch profile information based on profile ID
|
|
205
|
-
const profileInfo = yield profilesListController.get({
|
|
206
|
-
profileId: query.profileId,
|
|
207
|
-
});
|
|
208
|
-
if (profileInfo) {
|
|
209
|
-
// profile
|
|
210
|
-
const deleteprofile = yield profilesListController.delete({
|
|
211
|
-
profileId: query.profileId,
|
|
212
|
-
});
|
|
213
|
-
// over ride branches
|
|
214
|
-
const overrideBranchesController = new HoopOverrideBranchesController_1.HoopOverrideBranchesController(this._dbFactory);
|
|
215
|
-
const getverrideBranches = yield overrideBranchesController.getAll({
|
|
216
|
-
itemsPerPage: 100,
|
|
217
|
-
pageNo: 1,
|
|
218
|
-
});
|
|
219
|
-
const branches = getverrideBranches.result.items;
|
|
220
|
-
if (branches.length > 0) {
|
|
221
|
-
const filteredBranchData = branches.filter((item) => item.profileId === query.profileId);
|
|
222
|
-
filteredBranchData.forEach((element) => __awaiter(this, void 0, void 0, function* () {
|
|
223
|
-
const deleteBranches = yield overrideBranchesController.delete({
|
|
224
|
-
branchId: element.branchId,
|
|
225
|
-
});
|
|
226
|
-
}));
|
|
227
|
-
}
|
|
228
|
-
// operations
|
|
229
|
-
const operationsController = new HoopOperationsController_1.HoopOperationsController(this._dbFactory);
|
|
230
|
-
const getAllOperations = yield operationsController.getAll({
|
|
231
|
-
itemsPerPage: 100,
|
|
232
|
-
pageNo: 1,
|
|
233
|
-
});
|
|
234
|
-
const operations = getAllOperations.result.items;
|
|
235
|
-
if (operations.length > 0) {
|
|
236
|
-
const filteredData = operations.filter((item) => item.profileId === query.profileId);
|
|
237
|
-
filteredData.forEach((element) => __awaiter(this, void 0, void 0, function* () {
|
|
238
|
-
const deleteOperations = yield operationsController.delete({
|
|
239
|
-
operationId: element.operationId,
|
|
240
|
-
});
|
|
241
|
-
}));
|
|
242
|
-
}
|
|
243
|
-
// holidays
|
|
244
|
-
const holidaysController = new HoopHolidaysController_1.HoopHolidaysController(this._dbFactory);
|
|
245
|
-
const getAllholidays = yield holidaysController.getAll({
|
|
246
|
-
itemsPerPage: 100,
|
|
247
|
-
pageNo: 1,
|
|
248
|
-
});
|
|
249
|
-
if (getAllholidays.length > 0) {
|
|
250
|
-
const filteredHolidaysData = getAllholidays.filter((item) => item.profileId === query.profileId);
|
|
251
|
-
filteredHolidaysData.forEach((element) => __awaiter(this, void 0, void 0, function* () {
|
|
252
|
-
const deleteholidays = yield holidaysController.delete({
|
|
253
|
-
holidaysId: element.holidaysId,
|
|
254
|
-
});
|
|
255
|
-
}));
|
|
256
|
-
}
|
|
257
|
-
// Partial Days
|
|
258
|
-
const partialDaysController = new HoopPartialDaysController_1.HoopPartialDaysController(this._dbFactory);
|
|
259
|
-
const getAllpartialDays = yield partialDaysController.getAll({
|
|
260
|
-
itemsPerPage: 100,
|
|
261
|
-
pageNo: 1,
|
|
262
|
-
});
|
|
263
|
-
if (getAllpartialDays.length > 0) {
|
|
264
|
-
const filteredpartialDaysData = getAllpartialDays.filter((item) => item.profileId === query.profileId);
|
|
265
|
-
filteredpartialDaysData.forEach((element) => __awaiter(this, void 0, void 0, function* () {
|
|
266
|
-
const deletepartialDays = yield partialDaysController.delete({
|
|
267
|
-
partialDaysId: element.partialDaysId,
|
|
268
|
-
});
|
|
269
|
-
}));
|
|
270
|
-
}
|
|
271
|
-
// Notes
|
|
272
|
-
const notesController = new HoopNotesController_1.HoopNotesController(this._dbFactory);
|
|
273
|
-
const getAllNotes = yield notesController.getAll({
|
|
274
|
-
itemsPerPage: 100,
|
|
275
|
-
pageNo: 1,
|
|
276
|
-
});
|
|
277
|
-
if (getAllNotes.length > 0) {
|
|
278
|
-
const filterednotesData = getAllNotes.filter((item) => item.profileId === query.profileId);
|
|
279
|
-
filterednotesData.forEach((element) => __awaiter(this, void 0, void 0, function* () {
|
|
280
|
-
const deletenotes = yield notesController.delete({
|
|
281
|
-
notesId: element.notesId,
|
|
282
|
-
});
|
|
283
|
-
}));
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
else {
|
|
288
|
-
return "Profile Id not received";
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
catch (error) {
|
|
292
|
-
return "There is an error while deleting";
|
|
293
|
-
}
|
|
294
|
-
});
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
exports.HoopMainController = HoopMainController;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { SyncServiceFactory } from "../../twilio/impl/sync/SyncServiceFactory";
|
|
2
|
-
import { SearchParameterType } from "../../common/type/SearchParameterType";
|
|
3
|
-
import { HoopNotesImplModel } from "../../models/impl/hoop/HoopNotesImplModel";
|
|
4
|
-
export declare class HoopNotesController {
|
|
5
|
-
private _dbFactory;
|
|
6
|
-
constructor(dbFactory: SyncServiceFactory);
|
|
7
|
-
add(data: HoopNotesImplModel): Promise<any>;
|
|
8
|
-
edit(data: HoopNotesImplModel): Promise<any>;
|
|
9
|
-
get(query: {
|
|
10
|
-
notesId: string;
|
|
11
|
-
}): Promise<any>;
|
|
12
|
-
getAll(query: SearchParameterType): Promise<any>;
|
|
13
|
-
delete(query: Pick<HoopNotesImplModel, "notesId">): Promise<any>;
|
|
14
|
-
}
|
|
@@ -1,149 +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.HoopNotesController = void 0;
|
|
13
|
-
const DatabaseConfig_1 = require("../../config/DatabaseConfig");
|
|
14
|
-
const HoopNotesImplModel_1 = require("../../models/impl/hoop/HoopNotesImplModel");
|
|
15
|
-
const HoopNotesFilter_1 = require("./filterImpl/HoopNotesFilter");
|
|
16
|
-
// Controller class to manage holidays-related data
|
|
17
|
-
class HoopNotesController {
|
|
18
|
-
// Constructor to initialize SyncServiceFactory
|
|
19
|
-
constructor(dbFactory) {
|
|
20
|
-
this._dbFactory = dbFactory;
|
|
21
|
-
}
|
|
22
|
-
// Method to add new data to the holidays
|
|
23
|
-
add(data) {
|
|
24
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
-
try {
|
|
26
|
-
// Validate incoming data
|
|
27
|
-
const HoopNotes = new HoopNotesImplModel_1.HoopNotesImplModel(data.notesId, data.profileId, data.heading, data.description, data.createdAt, data.updatedAt);
|
|
28
|
-
if (HoopNotes.validationMessages.length > 0) {
|
|
29
|
-
throw HoopNotes.validationMessages; // Throw error if data validation fails
|
|
30
|
-
}
|
|
31
|
-
// Open database connection
|
|
32
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
33
|
-
const database = databaseConnection.result;
|
|
34
|
-
// Start database transaction
|
|
35
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.hoopNotes, "readwrite");
|
|
36
|
-
// Access object store
|
|
37
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.hoopNotes);
|
|
38
|
-
// Add data to the object store
|
|
39
|
-
let result = yield table.add(HoopNotes.serialize, data.notesId);
|
|
40
|
-
return result;
|
|
41
|
-
}
|
|
42
|
-
catch (error) {
|
|
43
|
-
throw error;
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
// Method to edit existing data in the holidays
|
|
48
|
-
edit(data) {
|
|
49
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
-
try {
|
|
51
|
-
// Validate incoming data
|
|
52
|
-
const HoopNotes = new HoopNotesImplModel_1.HoopNotesImplModel(data.notesId, data.profileId, data.heading, data.description, data.createdAt, data.updatedAt);
|
|
53
|
-
if (HoopNotes.validationMessages.length > 0) {
|
|
54
|
-
throw HoopNotes.validationMessages; // Throw error if data validation fails
|
|
55
|
-
}
|
|
56
|
-
// Open database connection
|
|
57
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
58
|
-
const database = databaseConnection.result;
|
|
59
|
-
// Start database transaction
|
|
60
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.hoopNotes, "readwrite");
|
|
61
|
-
// Access object store
|
|
62
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.hoopNotes);
|
|
63
|
-
const key = data.notesId;
|
|
64
|
-
// Update existing data in the object store
|
|
65
|
-
let result = table.put(data, key);
|
|
66
|
-
return result;
|
|
67
|
-
}
|
|
68
|
-
catch (error) {
|
|
69
|
-
return error;
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
// Method to get data by notesId
|
|
74
|
-
get(query) {
|
|
75
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
-
try {
|
|
77
|
-
console.log(query);
|
|
78
|
-
if (typeof query.notesId !== "string") {
|
|
79
|
-
throw new Error("notesId must be a string");
|
|
80
|
-
}
|
|
81
|
-
// Open database connection
|
|
82
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
83
|
-
const database = databaseConnection.result;
|
|
84
|
-
// Start database transaction
|
|
85
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.hoopNotes, "readwrite");
|
|
86
|
-
// Access object store
|
|
87
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.hoopNotes);
|
|
88
|
-
// Get data by notesId from the object store
|
|
89
|
-
let result = table.get(query.notesId);
|
|
90
|
-
return result;
|
|
91
|
-
}
|
|
92
|
-
catch (error) {
|
|
93
|
-
console.log("error ", error);
|
|
94
|
-
return error;
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
// Method to get all data with query parameters
|
|
99
|
-
getAll(query) {
|
|
100
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
101
|
-
try {
|
|
102
|
-
// Open database connection
|
|
103
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
104
|
-
const database = databaseConnection.result;
|
|
105
|
-
// Start database transaction
|
|
106
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.hoopNotes, "readwrite");
|
|
107
|
-
// Access object store
|
|
108
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.hoopNotes);
|
|
109
|
-
const allowedFields = [];
|
|
110
|
-
if (query.getFilterContent) {
|
|
111
|
-
query.allowedFields = allowedFields;
|
|
112
|
-
}
|
|
113
|
-
query.category = "hoopNotes";
|
|
114
|
-
let result = yield table.getAll(query);
|
|
115
|
-
if (query.getFilterContent) {
|
|
116
|
-
result.filterContent = HoopNotesFilter_1.HoopNotesFilterService.getFilterData(result.filterOptions);
|
|
117
|
-
}
|
|
118
|
-
if ("filterOptions" in result) {
|
|
119
|
-
delete result.filterOptions;
|
|
120
|
-
}
|
|
121
|
-
return { result, meta: query };
|
|
122
|
-
}
|
|
123
|
-
catch (error) {
|
|
124
|
-
return error;
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
// Method to delete data by notesId
|
|
129
|
-
delete(query) {
|
|
130
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
131
|
-
try {
|
|
132
|
-
// Open database connection
|
|
133
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
134
|
-
const database = databaseConnection.result;
|
|
135
|
-
// Start database transaction
|
|
136
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.hoopNotes, "readwrite");
|
|
137
|
-
// Access object store
|
|
138
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.hoopNotes);
|
|
139
|
-
// Delete data by notesId from the object store
|
|
140
|
-
let result = table.delete(query.notesId);
|
|
141
|
-
return result;
|
|
142
|
-
}
|
|
143
|
-
catch (error) {
|
|
144
|
-
return error;
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
exports.HoopNotesController = HoopNotesController;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { SyncServiceFactory } from "../../twilio/impl/sync/SyncServiceFactory";
|
|
2
|
-
import { SearchParameterType } from "../../common/type/SearchParameterType";
|
|
3
|
-
import { HoopOperationsImplModel } from "../../models/impl/hoop/HoopOperationsImplModel";
|
|
4
|
-
export declare class HoopOperationsController {
|
|
5
|
-
private _dbFactory;
|
|
6
|
-
constructor(dbFactory: SyncServiceFactory);
|
|
7
|
-
add(data: HoopOperationsImplModel): Promise<any>;
|
|
8
|
-
edit(data: HoopOperationsImplModel): Promise<any>;
|
|
9
|
-
get(query: {
|
|
10
|
-
operationId: string;
|
|
11
|
-
}): Promise<any>;
|
|
12
|
-
getAll(query: SearchParameterType): Promise<any>;
|
|
13
|
-
delete(query: Pick<HoopOperationsImplModel, "operationId">): Promise<any>;
|
|
14
|
-
}
|
|
@@ -1,138 +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.HoopOperationsController = void 0;
|
|
13
|
-
const DatabaseConfig_1 = require("../../config/DatabaseConfig");
|
|
14
|
-
const HoopOperationsImplModel_1 = require("../../models/impl/hoop/HoopOperationsImplModel");
|
|
15
|
-
// Controller class to manage operations-related data
|
|
16
|
-
class HoopOperationsController {
|
|
17
|
-
// Constructor to initialize SyncServiceFactory
|
|
18
|
-
constructor(dbFactory) {
|
|
19
|
-
this._dbFactory = dbFactory;
|
|
20
|
-
}
|
|
21
|
-
// Method to add new data to the operations
|
|
22
|
-
add(data) {
|
|
23
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
try {
|
|
25
|
-
// Validate incoming data
|
|
26
|
-
const HoopOperations = new HoopOperationsImplModel_1.HoopOperationsImplModel(data.operationId, data.profileId, data.day, data.beginTime, data.endTime, data.createdAt, data.updatedAt);
|
|
27
|
-
if (HoopOperations.validationMessages.length > 0) {
|
|
28
|
-
throw HoopOperations.validationMessages; // Throw error if data validation fails
|
|
29
|
-
}
|
|
30
|
-
// Open database connection
|
|
31
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
32
|
-
const database = databaseConnection.result;
|
|
33
|
-
// Start database transaction
|
|
34
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.hoopOperations, "readwrite");
|
|
35
|
-
// Access object store
|
|
36
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.hoopOperations);
|
|
37
|
-
// Add data to the object store
|
|
38
|
-
let result = yield table.add(HoopOperations.serialize, data.operationId);
|
|
39
|
-
return result;
|
|
40
|
-
}
|
|
41
|
-
catch (error) {
|
|
42
|
-
throw error;
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
// Method to edit existing data in the operations
|
|
47
|
-
edit(data) {
|
|
48
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
-
try {
|
|
50
|
-
// Validate incoming data
|
|
51
|
-
const HoopOperations = new HoopOperationsImplModel_1.HoopOperationsImplModel(data.operationId, data.profileId, data.day, data.beginTime, data.endTime, data.createdAt, data.updatedAt);
|
|
52
|
-
if (HoopOperations.validationMessages.length > 0) {
|
|
53
|
-
throw HoopOperations.validationMessages; // Throw error if data validation fails
|
|
54
|
-
}
|
|
55
|
-
// Open database connection
|
|
56
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
57
|
-
const database = databaseConnection.result;
|
|
58
|
-
// Start database transaction
|
|
59
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.hoopOperations, "readwrite");
|
|
60
|
-
// Access object store
|
|
61
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.hoopOperations);
|
|
62
|
-
const key = data.operationId;
|
|
63
|
-
// Update existing data in the object store
|
|
64
|
-
let result = table.put(data, key);
|
|
65
|
-
return result;
|
|
66
|
-
}
|
|
67
|
-
catch (error) {
|
|
68
|
-
return error;
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
// Method to get data by operationId
|
|
73
|
-
get(query) {
|
|
74
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
-
try {
|
|
76
|
-
console.log(query);
|
|
77
|
-
if (typeof query.operationId !== "string") {
|
|
78
|
-
throw new Error("operationId must be a string");
|
|
79
|
-
}
|
|
80
|
-
// Open database connection
|
|
81
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
82
|
-
const database = databaseConnection.result;
|
|
83
|
-
// Start database transaction
|
|
84
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.hoopOperations, "readwrite");
|
|
85
|
-
// Access object store
|
|
86
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.hoopOperations);
|
|
87
|
-
// Get data by operationId from the object store
|
|
88
|
-
let result = table.get(query.operationId);
|
|
89
|
-
return result;
|
|
90
|
-
}
|
|
91
|
-
catch (error) {
|
|
92
|
-
console.log('error ', error);
|
|
93
|
-
return error;
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
// Method to get all data with query parameters
|
|
98
|
-
getAll(query) {
|
|
99
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
100
|
-
try {
|
|
101
|
-
// Open database connection
|
|
102
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
103
|
-
const database = databaseConnection.result;
|
|
104
|
-
// Start database transaction
|
|
105
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.hoopOperations, "readwrite");
|
|
106
|
-
// Access object store
|
|
107
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.hoopOperations);
|
|
108
|
-
// Retrieve all data from the object store
|
|
109
|
-
let result = yield table.getAll(query);
|
|
110
|
-
return { result, meta: query }; // Return result with meta data
|
|
111
|
-
}
|
|
112
|
-
catch (error) {
|
|
113
|
-
return error;
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
// Method to delete data by operationId
|
|
118
|
-
delete(query) {
|
|
119
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
120
|
-
try {
|
|
121
|
-
// Open database connection
|
|
122
|
-
const databaseConnection = yield this._dbFactory.asyncOpen(DatabaseConfig_1.databaseConfig.databaseName, DatabaseConfig_1.databaseConfig.version);
|
|
123
|
-
const database = databaseConnection.result;
|
|
124
|
-
// Start database transaction
|
|
125
|
-
const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.hoopOperations, "readwrite");
|
|
126
|
-
// Access object store
|
|
127
|
-
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.hoopOperations);
|
|
128
|
-
// Delete data by operationId from the object store
|
|
129
|
-
let result = table.delete(query.operationId);
|
|
130
|
-
return result;
|
|
131
|
-
}
|
|
132
|
-
catch (error) {
|
|
133
|
-
return error;
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
exports.HoopOperationsController = HoopOperationsController;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { SyncServiceFactory } from "../../twilio/impl/sync/SyncServiceFactory";
|
|
2
|
-
import { SearchParameterType } from "../../common/type/SearchParameterType";
|
|
3
|
-
import { HoopOverrideBranchImplModel } from "../../models/impl/hoop/HoopOverrideImplModel";
|
|
4
|
-
export declare class HoopOverrideBranchesController {
|
|
5
|
-
private _dbFactory;
|
|
6
|
-
constructor(dbFactory: SyncServiceFactory);
|
|
7
|
-
add(data: HoopOverrideBranchImplModel): Promise<any>;
|
|
8
|
-
edit(data: HoopOverrideBranchImplModel): Promise<any>;
|
|
9
|
-
get(query: {
|
|
10
|
-
branchId: string;
|
|
11
|
-
}): Promise<any>;
|
|
12
|
-
getAll(query: SearchParameterType): Promise<any>;
|
|
13
|
-
delete(query: Pick<HoopOverrideBranchImplModel, "branchId">): Promise<any>;
|
|
14
|
-
}
|