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kBAAoB,CACjC,UAAW,kBAAkB,WAG/B,OAAO,QAAQ,QAAU,CACvB,aAAc,QAAQ,aACtB,cAAe,QAAQ,eAGzB,OAAO,QAAQ,kBAAoB,CACjC,gBAAiB,kBAAkB","file":"/npm/base-common-utils@2.0.88/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/base-common-utils@2.0.88/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict'\r\n\r\n// This module is one way of exposing subdependencies to dependent modules\r\n// Modules are still `require`d on demand\r\nconst fs = require('fs');\r\nconst path = require('path');\r\n//const Logger = require('./Logger/index');\r\nconst Logger = require('./Logger').getLogger();\r\nconst validation = require('./validation/CoreValidations');\r\nconst sendResponse = require('./exception/SendResponse');\r\nconst CustomException = require('./exception/CustomException');\r\nconst SSMConfig = require('./SSMConfig');\r\nconst ApplicationContextService = require('./ApplicationContextService');\r\nconst schemaValidation = require('./validation/SchemaValidation');\r\nconst AWSS3Utils = require('./utils/aws/AWSS3Utils');\r\nconst CoreUtils = require('./CoreUtils');\r\nconst FrequencyValidator = require('./validation/FrequencyValidator');\r\nconst ScheduleCalculationService = require('./ScheduleCalculationService');\r\nconst AWSSNSBasedEmailDispatcher = require('./utils/aws/AWSSNSBasedEmailDispatcher');\r\nconst AWSSNSBasedSMSDispatcher = require('./utils/aws/AWSSNSBasedSMSDispatcher');\r\nconst LambdaCommunicationService = require('./utils/aws/LambdaCommunicationService');\r\nconst AWSSNSUtils = require('./utils/aws/AWSSNSUtils');\r\nconst AWSAPIKeyGenerator = require('./utils/aws/AWSAPIKeyGenerator');\r\nconst AESEncryptionUsingKMS = require('./utils/aws/AESEncryptionUsingKMS');\r\nconst AccessInterceptor = require('./utils/AccessInterceptor');\r\nconst HashIds = require('./utils/HashIds');\r\nconst modulePath = path.resolve(__dirname, 'node_modules');\r\nconst TimeZoneConverter = require('./utils/TimeZoneConverter');\r\nconst ModuleIds = require('./constants/ModuleIds');\r\nconst Features = require('./constants/Features');\r\n\r\ntry {\r\n  console.log('common library initialized*******');\r\n  fs.readdirSync(modulePath)\r\n    .map(subDir => path.resolve(modulePath, subDir))\r\n    .filter(file => fs.statSync(file).isDirectory() && fs.existsSync(path.resolve(file, 'package.json')))\r\n    .forEach(moduleDir => {\r\n      const moduleName = path.basename(moduleDir)\r\n      Object.defineProperty(\r\n        module.exports,\r\n        moduleName,\r\n        {\r\n          get: () => require(moduleName)\r\n        })\r\n    })\r\n} catch (error) {\r\n  console.error('************index called modulePath error ***********' + error);\r\n}\r\n\r\nmodule.exports.ModuleIds = ModuleIds\r\nmodule.exports.Features = Features\r\nmodule.exports.Logger = Logger\r\nmodule.exports.CustomException = CustomException;\r\nmodule.exports.SSMConfig = {\r\n  ssmConfig: SSMConfig.ssmConfig\r\n};\r\nmodule.exports.ApplicationContextService = {\r\n  setContextAttributes: ApplicationContextService.setContextAttributes\r\n};\r\n\r\nmodule.exports.SendResponse = {\r\n\r\n  generateErrorResponse: sendResponse.sendErrorMessage,\r\n  databaseConnectionError: sendResponse.databaseConnectionError,\r\n  dataNotFound: sendResponse.dataNotFound,\r\n  errorMessage: sendResponse.errorMessage,\r\n  sendData: sendResponse.sendData,\r\n  successMessageForPost: sendResponse.successMessageForPost,\r\n  successMessage: sendResponse.successMessage,\r\n  getAllSuccessMessage: sendResponse.getAllSuccessMessage,\r\n  unAuthorizedAccess: sendResponse.unAuthorizedAccess,\r\n  validationException: sendResponse.validationException,\r\n  merchantInActive: sendResponse.merchantInActive,\r\n  invalidMerchant: sendResponse.invalidMerchant,\r\n  successOnlyMessage: sendResponse.successOnlyMessage,\r\n  errorMessageResponse: sendResponse.errorMessageResponse\r\n\r\n};\r\n\r\nmodule.exports.Validations = {\r\n  generateErrorResponse: validation.generateErrorResponse,\r\n  validateRequest: validation.validateRequest\r\n};\r\nmodule.exports.SchemaValidation = {\r\n  validateRequest: schemaValidation.validateRequest\r\n};\r\n\r\nmodule.exports.FrequencyValidator = {\r\n  isValidFrequency: FrequencyValidator.isValidFrequency\r\n};\r\n\r\nmodule.exports.ScheduleCalculationService = {\r\n  getNextDate: ScheduleCalculationService.getNextDate,\r\n  getLastDayOfMonth: ScheduleCalculationService.getLastDayOfMonth\r\n\r\n};\r\n\r\nmodule.exports.CoreUtils = {\r\n  convertUCfirst: CoreUtils.convertUCfirst,\r\n  prefixPad: CoreUtils.prefixPad\r\n};\r\n\r\nmodule.exports.AWSS3Utils = {\r\n  getS3File: AWSS3Utils.getS3File,\r\n  putS3File: AWSS3Utils.putS3File,\r\n  getS3FileStream: AWSS3Utils.getS3FileStream\r\n};\r\nmodule.exports.AWSSNSBasedEmailDispatcher = {\r\n  dispatchNotification: AWSSNSBasedEmailDispatcher.dispatchNotification\r\n}\r\nmodule.exports.AWSSNSBasedSMSDispatcher = {\r\n  dispatchNotification: AWSSNSBasedSMSDispatcher.dispatchNotification\r\n}\r\nmodule.exports.LambdaCommunicationService = {\r\n  invokeAPI: LambdaCommunicationService.invokeAPI,\r\n  invokeLambdaAPI: LambdaCommunicationService.invokeLambdaAPI,\r\n  invokeHandler: LambdaCommunicationService.invokeHandler\r\n}\r\n\r\nmodule.exports.AWSSNSUtils = {\r\n  publish: AWSSNSUtils.publish,\r\n}\r\n\r\nmodule.exports.AWSAPIKeyGenerator = {\r\n  addApiKey: AWSAPIKeyGenerator.addApiKey,\r\n  createUsagePlan: AWSAPIKeyGenerator.createUsagePlan,\r\n  getApiKey: AWSAPIKeyGenerator.getApiKey,\r\n  deleteApiKey: AWSAPIKeyGenerator.deleteApiKey,\r\n  createApiKey: AWSAPIKeyGenerator.createApiKey\r\n}\r\n\r\nmodule.exports.AESEncryptionUsingKMS = {\r\n  encrypt: AESEncryptionUsingKMS.encrypt,\r\n  decrypt: AESEncryptionUsingKMS.decrypt,\r\n\r\n}\r\n\r\nmodule.exports.AWSUsagePlanAndApiKey = {\r\n  encrypt: AESEncryptionUsingKMS.encrypt,\r\n  decrypt: AESEncryptionUsingKMS.decrypt,\r\n\r\n}\r\n\r\nmodule.exports.AccessInterceptor = {\r\n  authorize: AccessInterceptor.authorize\r\n}\r\n\r\nmodule.exports.HashIds = {\r\n  hashResponse: HashIds.hashResponse,\r\n  unHashRequest: HashIds.unHashRequest\r\n}\r\n\r\nmodule.exports.TimeZoneConverter = {\r\n  timeZoneConvert: TimeZoneConverter.timeZoneConvert\r\n}\r\n\r\n\r\n"]}