heimdall-api-platform 3.9.0 → 3.10.0

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.
Files changed (94) hide show
  1. package/dist/lib/clients/http-client.js +1 -1
  2. package/dist/lib/environment.js +1 -1
  3. package/dist/lib/factory/api-gateway.js +1 -1
  4. package/dist/lib/factory/client-factory.js +1 -1
  5. package/dist/lib/factory/function-factory.js +1 -1
  6. package/dist/lib/factory/operation-flow-factory.js +1 -1
  7. package/dist/lib/factory/server-factory.js +1 -1
  8. package/dist/lib/factory/transformation-function-factory.js +1 -1
  9. package/dist/lib/handle-route.js +1 -1
  10. package/dist/lib/index.js +1 -1
  11. package/dist/lib/integrations/commons-elasticsearch.js +1 -1
  12. package/dist/lib/integrations/commons-opensearch.js +1 -1
  13. package/dist/lib/integrations/commons-splunk.js +1 -1
  14. package/dist/lib/license/license-service.js +1 -1
  15. package/dist/lib/models/base-context.js +1 -1
  16. package/dist/lib/models/flow-context.js +1 -1
  17. package/dist/lib/models/monitor-request-view.js +1 -1
  18. package/dist/lib/models/route-context.js +1 -1
  19. package/dist/lib/models/security-route.js +1 -1
  20. package/dist/lib/models/service-context.js +1 -1
  21. package/dist/lib/models/service-group.js +1 -1
  22. package/dist/lib/models/service-route.js +1 -1
  23. package/dist/lib/models/splunk-data.js +1 -1
  24. package/dist/lib/observability/gateway-log-capture.js +1 -1
  25. package/dist/lib/observability/live-streams.js +1 -1
  26. package/dist/lib/observability/models/monitor-flow-step.js +1 -1
  27. package/dist/lib/observability/models/monitor-function-operation.js +1 -1
  28. package/dist/lib/observability/models/monitor-function-transformation.js +1 -1
  29. package/dist/lib/observability/models/monitor-http-operation.js +1 -1
  30. package/dist/lib/observability/models/monitor-mock-operation.js +1 -1
  31. package/dist/lib/observability/monitor-event-bus.js +1 -1
  32. package/dist/lib/observability/monitor-event.js +1 -1
  33. package/dist/lib/observability/subscribers/monitor-event-subscriber.js +1 -1
  34. package/dist/lib/observability/subscribers/opensearch-event-subscriber.js +1 -1
  35. package/dist/lib/observability/subscribers/redis-event-subscriber.js +1 -1
  36. package/dist/lib/observability/subscribers/spans-event-subscriber.js +1 -1
  37. package/dist/lib/observability/subscribers/splunk-event-subscriber.js +1 -1
  38. package/dist/lib/operations/abstract-operation.js +1 -1
  39. package/dist/lib/operations/function.js +1 -1
  40. package/dist/lib/operations/http.js +1 -1
  41. package/dist/lib/operations/mock.js +1 -1
  42. package/dist/lib/operations/monitor-check.js +1 -1
  43. package/dist/lib/orchestration-flow.js +1 -1
  44. package/dist/lib/router.js +1 -1
  45. package/dist/lib/routes/default-routes-admin.js +1 -1
  46. package/dist/lib/routes/default-routes-docs.js +1 -1
  47. package/dist/lib/routes/default-routes-ingest.js +1 -1
  48. package/dist/lib/routes/default-routes-mcp.js +1 -1
  49. package/dist/lib/routes/default-routes-monitor-metrics.js +1 -1
  50. package/dist/lib/routes/default-routes-opensearch.js +1 -1
  51. package/dist/lib/routes/default-routes-pos.js +1 -1
  52. package/dist/lib/routes/default-routes-pre.js +1 -1
  53. package/dist/lib/routes/default-routes-redis.js +1 -1
  54. package/dist/lib/routes/native-routes-catalog.js +1 -1
  55. package/dist/lib/routes/route-catalog-builder.js +1 -1
  56. package/dist/lib/security/api-key-validator.js +1 -1
  57. package/dist/lib/security/basic-auth-validator.js +1 -1
  58. package/dist/lib/security/ingest-token-validator.js +1 -1
  59. package/dist/lib/security/jwt-util.js +1 -1
  60. package/dist/lib/security/quota-enforcer.js +1 -1
  61. package/dist/lib/security/rate-limiter.js +1 -1
  62. package/dist/lib/security/resolve-auth-secret.js +1 -1
  63. package/dist/lib/security/security-validation.js +1 -1
  64. package/dist/lib/services/api-key-service.js +1 -1
  65. package/dist/lib/services/consumer-service.js +1 -1
  66. package/dist/lib/services/fixed-window-rate-limit-service.js +1 -1
  67. package/dist/lib/services/health-service.js +1 -1
  68. package/dist/lib/services/ingest-error-service.js +1 -1
  69. package/dist/lib/services/log-ingest-service.js +1 -1
  70. package/dist/lib/services/logfmt-kv.js +1 -1
  71. package/dist/lib/services/metrics-service.js +1 -1
  72. package/dist/lib/services/monitor-metrics-service.js +1 -1
  73. package/dist/lib/services/otlp-ingest-service.js +1 -1
  74. package/dist/lib/services/otlp-protobuf.js +1 -1
  75. package/dist/lib/services/quota-service.js +1 -1
  76. package/dist/lib/services/rate-limit-service.js +1 -1
  77. package/dist/lib/services/server.js +1 -1
  78. package/dist/lib/services/trace-link-repair.js +1 -1
  79. package/dist/lib/storage/key-value-storage.js +1 -1
  80. package/dist/lib/utils/commons-cache.js +1 -1
  81. package/dist/lib/utils/commons-const.js +1 -1
  82. package/dist/lib/utils/commons-context.js +1 -1
  83. package/dist/lib/utils/commons-cookie.js +1 -1
  84. package/dist/lib/utils/commons-date.js +1 -1
  85. package/dist/lib/utils/commons-encoding.js +1 -1
  86. package/dist/lib/utils/commons-errors.js +1 -1
  87. package/dist/lib/utils/commons-headers.js +1 -1
  88. package/dist/lib/utils/commons-logger.js +1 -1
  89. package/dist/lib/utils/commons-trace.js +1 -1
  90. package/dist/lib/utils/commons-util.js +1 -1
  91. package/dist/lib/utils/document-utils.js +1 -1
  92. package/dist/lib/utils/monitor-filter-builder.js +1 -1
  93. package/dist/lib/utils/monitor-query-language.js +1 -1
  94. package/package.json +1 -1
@@ -1 +1 @@
1
- 'use strict';const _0x15be34=_0x4727;(function(_0xf7f28b,_0x22f3a0){const _0x8c8c5a=_0x4727,_0x22751=_0xf7f28b();while(!![]){try{const _0x2ca221=-parseInt(_0x8c8c5a(0x137))/0x1*(-parseInt(_0x8c8c5a(0x9a))/0x2)+parseInt(_0x8c8c5a(0xf5))/0x3+-parseInt(_0x8c8c5a(0xd1))/0x4*(-parseInt(_0x8c8c5a(0x83))/0x5)+parseInt(_0x8c8c5a(0xc2))/0x6+-parseInt(_0x8c8c5a(0xa3))/0x7+-parseInt(_0x8c8c5a(0x139))/0x8+-parseInt(_0x8c8c5a(0xc0))/0x9;if(_0x2ca221===_0x22f3a0)break;else _0x22751['push'](_0x22751['shift']());}catch(_0x137761){_0x22751['push'](_0x22751['shift']());}}}(_0x2bb1,0x8a50e));function _0x4727(_0x579f6b,_0x504366){_0x579f6b=_0x579f6b-0x79;const _0x2bb1f0=_0x2bb1();let _0x472782=_0x2bb1f0[_0x579f6b];if(_0x4727['vqDqIw']===undefined){var _0x435d4f=function(_0x183a2d){const _0x1f1b88='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3f61ef='',_0x286cce='';for(let _0x40f7f4=0x0,_0x599cd6,_0x2d3f53,_0x2485a4=0x0;_0x2d3f53=_0x183a2d['charAt'](_0x2485a4++);~_0x2d3f53&&(_0x599cd6=_0x40f7f4%0x4?_0x599cd6*0x40+_0x2d3f53:_0x2d3f53,_0x40f7f4++%0x4)?_0x3f61ef+=String['fromCharCode'](0xff&_0x599cd6>>(-0x2*_0x40f7f4&0x6)):0x0){_0x2d3f53=_0x1f1b88['indexOf'](_0x2d3f53);}for(let _0x3daafc=0x0,_0x334931=_0x3f61ef['length'];_0x3daafc<_0x334931;_0x3daafc++){_0x286cce+='%'+('00'+_0x3f61ef['charCodeAt'](_0x3daafc)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x286cce);};_0x4727['JhvkEU']=_0x435d4f,_0x4727['NdQoPG']={},_0x4727['vqDqIw']=!![];}const _0xca20ef=_0x2bb1f0[0x0],_0x2d0975=_0x579f6b+_0xca20ef,_0x46f578=_0x4727['NdQoPG'][_0x2d0975];return!_0x46f578?(_0x472782=_0x4727['JhvkEU'](_0x472782),_0x4727['NdQoPG'][_0x2d0975]=_0x472782):_0x472782=_0x46f578,_0x472782;}function _0x2bb1(){const _0x431939=['ChjVy2vZC1jLC3vSDa','zw5JyxbZDwXLrxjYB3i','B3zLCG','zML4zwrxAw5KB3DsyxrLtgLTAxrtzxj2AwnL','u0rirNa','q2Dysgu','C3rHz2u9zxjYB3iGBwv0Ag9KpuHHBMrSzvjVDxrLlNzHBgLKyxrLuMf0zuXPBwL0lMXPBwL0ig1LC3nHz2u9uMf0zsbmAw1PDcbjBMzVie92zxi','C3rHz2u9Aw5MBYbTzxrOB2q9sgfUzgXLuM91DguUzxHLy3v0zuzSB3CGBwvZC2fNzt1fEgvJDxrPBMCGzMXVDYHZkq','re9SDM4','Agj5sKy','B2jQzwn0','zMXVDW','yxbWBgLJyxrPB24','t3HPzeu','mtK2A0jhyNrR','uM5xr2G','ywrKuMvZDwX0','B3jJAgvZDhjHDg9Y','zwTXrxe','txHRDLq','sLLwDg4','D3jPDgvizwfK','B2jZzxj2zuH0Dhbszxf1zxn0','CMvZDwX0','DhjHy2vjza','DgLWB1rVA2vU','CMvSzwfZzvjLC3bVBNnL','uNfAuwq','zgvJB2rLqMfZzty0','CKzbALm','AufJs3q','uhfuDgK','DMfSAwrHDgvtzwn1CML0Eq','AgfZrw5HyMXLzfn1yNnJCMLIzxjZ','wLrfELq','qK5qq04','sLjHte0','zxHLy3v0zuzSB3C','lI9VyNnLCNzHyMLSAxr5l3n1yNnJCMLIzxjZl29Wzw5ZzwfYy2GTzxzLBNqTC3vIC2nYAwjLCG','zgvJsw5gBgLNAhq','DxjS','AMXiuxi','B3vmCM8','AwjJrfa','y29Kzq','CMf0zuXPBwL0','AgfUzgXL','wf9iruLnrefmtf9trvjwsunfx05btuu','Dfzxt3m','DxvPza','nZG4odGWCxjqsgnn','BgvUz3rO','C3rHz2u9Aw5PDcbTzxrOB2q9sgfUzgXLuM91DguUAgfUzgXLuMvXDwvZDcbJB25MAwD1CMf0Aw9U','DhjPBq','yxbWBgLJyxrPB24VDM5KlM9Wzw54BwXMB3jTyxrZlw9MzMLJzwrVy3vTzw50lNnWCMvHzhnOzwv0BwWUC2HLzxq','zgvZy3jPChrPB24','sMHnuvq','revgqvvmvf9dt05uru5ux1rzuevFvKfmvuu','DMHAvw8','y29TCgLSzuTLEq','Bhvjyum','CMvXDwvZDa','C3rHz2u9Aw5MBYbTzxrOB2q9sgfUzgXLuM91DguUDMfSAwrHDgvsyxrLtgLTAxqUBgLTAxq','rLL3s1a','Aw5MBW','DgHLBG','q09ovevovf9uwvbf','AxncDwzMzxi','wMTPv1y','Dg9mB2nHBgvmB3DLCKnHC2u','A0vct2W','zxHLy3v0zq','CMf0zq','DMzczwi','t0jkrunux1rzueu','ww91ig11C3qGChjVDMLKzsb0AguGzMXVDYb0BYbIzsbLEgvJDxrLzc4','lI9VyNnLCNzHyMLSAxr5l21VBML0B3iTzxzLBNq','whf1z2m','vLnmvKG','zhvYyxrPB24','AxnfBxb0Eq','wf9iruLnrefmtf9dt1jsruXbveLptL9jrf9oqu1f','Dg9eyxrLu3rYAw5N','CuDVAuS','txbbDu0','wNfqqwu','ChvIBgLZAa','C3rHz2u9zw5Kig1LDgHVzd1iyw5KBgvsB3v0zs5Oyw5KBgvszxn1BhqGCMvZCg9UC2u','vNrlAxO','C3rYAw5NAwz5','Dhj5ugfYC2vku09o','yxbWBgLJyxrPB24VCgrM','AgfZt3DUuhjVCgvYDhK','suXLBMi','z2v0vgLTzq','BwTbA3e','suLRDKy','EeDIr1a','zxjYB3i','zxH0zw5K','vg9Vie1HBNKGuMvXDwvZDhm','C3rHz2u9zxjYB3iGBwv0Ag9KpuHHBMrSzvjVDxrLlMDLDenVBxbPBgvdB250zxH0ig1LC3nHz2u9rxjYB3iGr2v0ienVBxbPBguGq29UDgv4DcbLCNjVCG','ELLry2K','ve9px01btLLFuKvrvuvtvfm','B3DUAwq','CejdrvO','A2v5CW','tLbOqvK','CMvZCg9UC2vizwfKzxjZ','whntrLu','sLnptL9dt05uru5ux1rzuevFvKfmvuu','twjvyvm','CMf0zs1SAw1PDa','Aw5JBhvKzxm','Aw5Jsw5gBgLNAhq','BM9Tzq','mtqWmtCXwgThq1bN','Bwv0Ag9K','mZq3mZiYnejMt0vtDa','vgzPDNe','wKzzBNG','C2v0uMvZDwX0','DvfYwhy','BNvTyMvY','runlvNC','AgfZu3vIC2nYAwjLCNm','yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT','wf9bvvrit1jjwKfusu9o','Aw5KzxHszxf1zxn0','ChjVDg90ExbL','C2vYDMLJzq','y29YCMvSyxrPB25jza','qLvgrKvs','sevbrevsuW','lI91DgLSCY9JB21TB25Zlxv0AwW','C3vI','u0vux0npt0Tjrq','B2jMDxnJyxrPB25ku09o','y3jLyxrLrNvUy3rPB25cEu5HBwu','rLH3B3e','rgLwyxm','lI9VyNnLCNzHyMLSAxr5l2XPDMuTC3rYzwfTCW','BwfW','DgLTzxjZ','AgvHzgvYCW','sLvpugu','ueftu1riuK9vr0G','DgvSzwzVBMu','x3nLCNzPy2vpChrPB25Z','BMfTzq','C3rLCa','sMD4tfe','yxbWBgLJyxrPB24VBxn3B3jK','yxbWBgLJyxrPB24Vz3PPCa','t0jkrunu','swLMre0','y29TCgLSzvjHDgvmAw1PDeTLEq','AxnbCNjHEq','Exf0Dey','CMvWBgfJzq','qMfxqMm','Dg9vChbLCKnHC2u','uencBwK','tK9Fq09ovevova','C3vTBwfYAxPLrM9Ytg9N','lI9Zzwn1CML0Es9Zzwn1CML0Es12ywXPzgf0Aw9U','CMvZCg9UC2u','Aw5JuMf0zuXPBwL0sgL0','EeztrK0','uKvbrfnuuKvbtq','suzcB3K','CMvZB2X2zuvUzfjLC3bVBNnL','t2fIzwS','C3rHCNrLza','CMnYv3m','AgfUzgXLuMvZDwX0','Aw5PDa','EeXRDeW','CMvZB2X2zunVBNrLEhruExbLuMvZCg9UC2u','AgfUzgXLqxvKAxq','A2v5','q09ovevovf9esvnqt1njveLptG','y1LAC1K','yxbWBgLJyxrPB24VDM5KlM1Zlwv4y2vS','Dgv4Dc9JC3y','CMvXDwvZDhm','DMfSAwrHDgvsyxrLtgLTAxq','Ec1MB3j3yxjKzwqTzM9Y','y3jVC3mTB3jPz2LU','yM9KEq','CMv3uxq','y3vYCMvUDezSB3C','Bw9UAxrVCKv2zw50qNvZ','wf9iruLnrefmtf9srvfvrvnux0rvuKfusu9ox05btuu','EKzVwwO','C3rYAw5N','C3rHz2u9zxjYB3iGBwv0Ag9KpuHHBMrSzvjVDxrLlMHHBMrSzuf1zgL0ig1LC3nHz2u9sgfUzgXLief1zgL0ievYCM9Y','CMvKAxjLy3q','BfPSuMm','rhvhuu0','CMvKAxndBgLLBNq','ywDvzu4','nti3mtbpwLjnzgS','CLPRAK4','EM1szwC','CMvZCg9UC2vdB2rL','wwXnD0C','z2v0q29TCgLSzunVBNrLEhq','z2v0uMvZDwX0','DwjvCKe','CxvLCNK','yxvKAxrgDw5JDgLVBG','D1PAvMG','yuz3rva','vxvRz2y','Axnku09ovMfSAwq','v25oELm','wKn5sem','zw5K','C2v0q3vYCMvUDezSB3C','yuLYAvy','uwzhugS','CgHHC2vnyxjR','quTNDMO','igTLEunVBxbPBgvKpq','nNHbu0TJzq','zxHWB3j0CW','zw1WDhLszxn1BhrbC1n1y2nLC3m','qMvHCMvY','rLHzqva','DgHYB3DfCNjVCKLMsxrfEgLZDhm','CgfYyw1Z','lI9VyNnLCNzHyMLSAxr5l21VBML0B3iTzxzLBNqTyNvZ','whnUzxC','mti2odqWsw9RB2Dc','y2zhrue','zw5HyMXLuMf0zuXPBwL0','BxvSDgLWyxj0l2zVCM0Tzgf0yq','C3rHz2u9zw5Kig1LDgHVzd1iyw5KBgvsB3v0zs5JB21WAwXLuMf0zuXPBwL0s2v5igXPBwL0s2v5pq','lI9LBNzPCM9UBwvUDa','lI91DgLSCY9JB21TB25ZlwnVBNn0','y29UC3rYDwn0B3i','vwHZD1a','rg93BMXVywrF','Dg9ju09tDhjPBMC','z2vUzxjHDgvlzxK','ANDIvxu','Dw5KzxjZy29Yzq','z2vUzxjHDgvizwfKzxjZrgvMyxvSDa','C3rHDhvZq29Kzq','C3bSAxq','uhLLweq','yxbWBgLJyxrPB24VDM5KlM9Wzw54BwXMB3jTyxrZlw9MzMLJzwrVy3vTzw50lNDVCMrWCM9JzxnZAw5NBwWUzg9JDw1LBNq','B3bLCMf0Aw9U','zvjmEKi','CgLWzq','y2fSBa','r1v1wMO','AxnvCMW','z2ryD04','C3rHz2u9zxjYB3iGBwv0Ag9KpuHHBMrSzvjVDxrLlNzHBgLKyxrLuMf0zuXPBwL0ig1LC3nHz2u9uMf0zsbmAw1PDcbwywXPzgf0Aw9UievYCM9Y','zLLnt3y','BM9UtNvSBa','odu2mti4nLHrDuruqW','zMLUAxnOzwq','ndyYmdiYoeHhALHYvq'];_0x2bb1=function(){return _0x431939;};return _0x2bb1();}const Util=require(_0x15be34(0x149)),Const=require(_0x15be34(0xa9)),Env=require(_0x15be34(0xa8))[_0x15be34(0xcf)],{ApiGatewayError,RequestTooManyRequests,CreateCustomError}=require('./utils/commons-errors'),_=require(_0x15be34(0xb0)),Step=require(_0x15be34(0x159)),RouteContext=require('./models/route-context'),liveStreams=require(_0x15be34(0x150)),ValidateSecurity=require(_0x15be34(0x168)),Environment=require(_0x15be34(0xa8)),FunctionFactory=require('./factory/function-factory'),metricsService=require('./services/metrics-service'),{FixedWindowRateLimitService}=require('./services/fixed-window-rate-limit-service'),MonitorEvent=require(_0x15be34(0x10f)),MonitorEventBus=require(_0x15be34(0xa1)),OpenSearchEventSubscriber=require(_0x15be34(0xe9)),SplunkEventSubscriber=require('./observability/subscribers/splunk-event-subscriber'),MAX_HEADER_VALUE_LENGTH=0x100;function sanitizeHeaderValue(_0x4c674d){const _0x33673b=_0x15be34,_0x505315={'kIEKD':function(_0x49e32d,_0x296d8e){return _0x49e32d===_0x296d8e;},'IFBoy':function(_0x47dc4a,_0x2cf62a){return _0x47dc4a(_0x2cf62a);}};if(_0x4c674d===null||_0x505315['kIEKD'](_0x4c674d,undefined))return'';return _0x505315[_0x33673b(0x16d)](String,_0x4c674d)['normalize']('NFKD')['replace'](/[̀-ͯ]/g,'')[_0x33673b(0x162)](/[^\x20-\x7E]/g,'')['slice'](0x0,MAX_HEADER_VALUE_LENGTH);}const validContentTypes=[_0x15be34(0xa6),_0x15be34(0x17b),_0x15be34(0x11e),_0x15be34(0x15b),_0x15be34(0xb5),_0x15be34(0x17a),_0x15be34(0xf9),'application/zip',_0x15be34(0x15c),_0x15be34(0x141)];function buildRequestTailEvent(_0x2d4462){const _0x2b9d7d=_0x15be34,_0x2a50f8={'oovfO':_0x2b9d7d(0x7c),'vwWRe':function(_0x171376,_0x3b4b44){return _0x171376(_0x3b4b44);},'rZkjN':function(_0x589a93,_0x447bea){return _0x589a93!==_0x447bea;},'ZqPAe':'ExFya','GeTLy':_0x2b9d7d(0x80),'UhswP':function(_0x1488be,_0x470861){return _0x1488be-_0x470861;}},_0x4d9127=_0x2d4462&&_0x2d4462[_0x2b9d7d(0x100)]||{},_0x3260b7=_0x2d4462&&_0x2d4462['response']||{},_0x2ac264=_0x2d4462&&_0x2d4462['timers']||{};let _0xe61141;try{if(_0x2a50f8[_0x2b9d7d(0x84)](_0x2a50f8[_0x2b9d7d(0x118)],_0x2a50f8['GeTLy']))_0x2ac264[_0x2b9d7d(0xc1)]&&_0x2ac264['started']&&(_0xe61141=_0x2a50f8[_0x2b9d7d(0xab)](new Date(_0x2ac264[_0x2b9d7d(0xc1)]['at'])[_0x2b9d7d(0x121)](),new Date(_0x2ac264['started']['at'])['getTime']()));else{_0x197193['error']('stage=error\x20method=HandleRoute.generateHeadersDefault\x20message=Invalid\x20header\x20value\x20sanitized',_0xc2c1b2);for(const _0x243434 of _0x43dc04[_0x2b9d7d(0x12d)](_0x170315['service'][_0x2b9d7d(0x12f)])){const _0x1873ea=_0x12f26d['service']['responseHeaders'][_0x243434];typeof _0x1873ea===_0x2a50f8['oovfO']&&(_0x33dd5d[_0x2b9d7d(0x145)]['responseHeaders'][_0x243434]=_0x2a50f8['vwWRe'](_0x58db8b,_0x1873ea));}_0xc273ae[_0x2b9d7d(0x169)][_0x2b9d7d(0xd8)](_0x3e5030,_0x507273['service']['responseHeaders']);}}catch{}return{'ts':new Date()[_0x2b9d7d(0xad)](),'method':_0x4d9127[_0x2b9d7d(0x138)],'url':_0x4d9127[_0x2b9d7d(0xeb)],'status':_0x3260b7[_0x2b9d7d(0xb2)],'service':_0x2d4462&&_0x2d4462['service']&&_0x2d4462[_0x2b9d7d(0x145)][_0x2b9d7d(0x158)],'correlationId':_0x2d4462&&(_0x2d4462[_0x2b9d7d(0x146)]||_0x2d4462[_0x2b9d7d(0xf4)])||undefined,'traceId':_0x2d4462&&_0x2d4462['traceId'],'durationMs':_0xe61141};}class HandleRoute{constructor(_0x31be53,_0x46a90f,_0x3ad979,_0x55908c,_0x29f7cd={}){const _0x26e955=_0x15be34,_0x3ab9ff={'gbvXM':function(_0x32f330,_0x125660){return _0x32f330===_0x125660;},'SDHFp':function(_0x5b41bc,_0xb4c72c){return _0x5b41bc(_0xb4c72c);}};if(!_0x46a90f[_0x26e955(0xce)]){if(_0x3ab9ff['gbvXM'](_0x26e955(0x96),_0x26e955(0x16b)))_0x211848[_0x26e955(0xb2)]=_0x4b3cf3['responseCode'],_0x42f049[_0x26e955(0x125)]=!![],_0x347432[_0x26e955(0x13c)](_0x470b61);else throw _0x3ab9ff[_0x26e955(0xc7)](ApiGatewayError,_0x26e955(0x10e));}this[_0x26e955(0xd4)]=_0x31be53,this[_0x26e955(0x157)]=_0x46a90f,this['splunkProvider']=_0x3ad979,this['openSearch']=_0x55908c,this[_0x26e955(0x81)]=_0x31be53[_0x26e955(0x81)],this[_0x26e955(0xa5)]=!!_0x46a90f[_0x26e955(0xf0)],this[_0x26e955(0xf0)]=_0x46a90f[_0x26e955(0xf0)],this[_0x26e955(0x8c)]=_0x46a90f[_0x26e955(0x8c)],this[_0x26e955(0xc6)]=_0x29f7cd[_0x26e955(0xc6)]||new FixedWindowRateLimitService({'redisClient':this[_0x26e955(0x81)]}),this[_0x26e955(0x79)]=_0x29f7cd['monitorEventBus']||new MonitorEventBus({'subscribers':[new SplunkEventSubscriber({'splunkProvider':_0x3ad979}),new OpenSearchEventSubscriber({'openSearch':_0x55908c})]});}['handleRequest'](_0x288b32,_0x2f4408,_0x326374){const _0x1d35ad=_0x15be34,_0x3e2d7b={'ZkiWV':function(_0x5cddf7,_0x345077){return _0x5cddf7(_0x345077);},'gfeJg':_0x1d35ad(0x7f),'ZCyHC':_0x1d35ad(0xf7),'kgZeq':function(_0x4b8ef8,_0x4d4189,_0x5260c7,_0x3b40b6,_0x138224){return _0x4b8ef8(_0x4d4189,_0x5260c7,_0x3b40b6,_0x138224);}};let _0x52991a=this,_0x1ebe3e=new RouteContext(_0x288b32,_0x2f4408,_0x326374,this[_0x1d35ad(0x157)],this[_0x1d35ad(0xd4)]);metricsService[_0x1d35ad(0x135)](_0x1ebe3e['service'][_0x1d35ad(0x158)]),Util[_0x1d35ad(0x103)](_0x3e2d7b[_0x1d35ad(0x92)],{'method':_0x1ebe3e[_0x1d35ad(0x145)][_0x1d35ad(0x138)][_0x1d35ad(0x164)](),'service':_0x1ebe3e['service']['name'],'url':_0x1ebe3e[_0x1d35ad(0x100)][_0x1d35ad(0xeb)],'uuid':_0x1ebe3e[_0x1d35ad(0xf4)],'body':Util[_0x1d35ad(0x14c)](_0x1ebe3e[_0x1d35ad(0x180)]||{}),'query':_0x1ebe3e[_0x1d35ad(0x8b)],'params':_0x1ebe3e[_0x1d35ad(0xa0)],'headers':Util[_0x1d35ad(0x14c)](_0x1ebe3e[_0x1d35ad(0x153)]||{})}),_0x1ebe3e[_0x1d35ad(0x173)](),_0x1ebe3e[_0x1d35ad(0x145)][_0x1d35ad(0x94)](_0x1ebe3e[_0x1d35ad(0x145)][_0x1d35ad(0xce)][0x0]);let _0x5dc8e0=_0x1ebe3e[_0x1d35ad(0x97)]();_0x3e2d7b['kgZeq'](Step,function(){_0x52991a['validateRateLimit'](_0x1ebe3e,this);},function(_0x5b3e0e){const _0x277c99=_0x1d35ad;Util['throwErrorIfItExists'](_0x5b3e0e),_0x1ebe3e['recordPhase'](_0x277c99(0x133),_0x5dc8e0),_0x52991a[_0x277c99(0xe3)](_0x1ebe3e,this);},function(_0x52f1e1){const _0x176c23=_0x1d35ad;Util[_0x176c23(0x9f)](_0x52f1e1),_0x52991a[_0x176c23(0xe8)](_0x1ebe3e,this);},function(){const _0x2d85f0=_0x1d35ad,_0x21bae8={'ZTEzT':function(_0x4cf7ae,_0x7b119c){const _0x15f396=_0x4727;return _0x3e2d7b[_0x15f396(0x107)](_0x4cf7ae,_0x7b119c);}};if(_0x2d85f0(0x7f)===_0x3e2d7b['gfeJg'])_0x52991a['processResult'](_0x1ebe3e);else{_0x114ee5[_0x2d85f0(0x17c)][_0x2d85f0(0x140)]()&&_0x479b7b['requests'][_0x2d85f0(0x119)](_0x21bae8[_0x2d85f0(0xe5)](_0x374948,_0x5afbad));if(!this['monitorEventBus']['hasEnabledSubscribers']())return;const _0xe83ece=new _0x501e97(_0x2fb39e);this['monitorEventBus']['publish'](_0xe83ece,_0x349493);}});}[_0x15be34(0x143)](_0x295e22){const _0x2a3e38=_0x15be34,_0x303c9d={'FXYAP':function(_0x224244,_0x4a52a1){return _0x224244(_0x4a52a1);},'NPhAY':function(_0xb8ac4f,_0x5ce809){return _0xb8ac4f===_0x5ce809;},'XOvIk':'eieXr'};liveStreams[_0x2a3e38(0x17c)][_0x2a3e38(0x140)]()&&liveStreams[_0x2a3e38(0x17c)][_0x2a3e38(0x119)](_0x303c9d[_0x2a3e38(0x9e)](buildRequestTailEvent,_0x295e22));if(!this[_0x2a3e38(0x79)][_0x2a3e38(0xe4)]()){if(_0x303c9d[_0x2a3e38(0x12e)](_0x303c9d['XOvIk'],'zGzbX'))_0x159150=this[_0x2a3e38(0x15f)](_0x2375b6);else return;}const _0x50c01d=new MonitorEvent(_0x295e22);this[_0x2a3e38(0x79)][_0x2a3e38(0x119)](_0x50c01d,_0x295e22);}[_0x15be34(0xe3)](_0x17d627,_0x32206e){const _0x4961b0=_0x15be34,_0x15f03f={'BNPCN':_0x4961b0(0xee),'vfBeb':_0x4961b0(0xe2),'zmReg':function(_0x2243d0,_0x525336){return _0x2243d0(_0x525336);}};Step(function(){const _0x38f162=_0x4961b0;_0x15f03f[_0x38f162(0xe6)]!==_0x15f03f['BNPCN']?_0x535eba[_0x38f162(0x160)](_0x36d219)&&_0x52be76[_0x38f162(0xf6)]?_0x5931d0=_0x26ed40[_0x38f162(0x151)](_0x326e18=>_0x326e18+';\x20'+_0x1b6c44):_0x10925c=[_0x108290]:ValidateSecurity[_0x38f162(0x10a)](_0x17d627,this);},function(_0x1e3600){const _0x5d041e=_0x4961b0;if('PqTti'===_0x15f03f[_0x5d041e(0x10c)])_0x1e3600&&(_0x17d627['statusCode']=_0x1e3600[_0x5d041e(0x86)],_0x17d627[_0x5d041e(0x125)]=!![],_0x17d627[_0x5d041e(0x13c)](_0x1e3600)),_0x15f03f[_0x5d041e(0x85)](_0x32206e,_0x1e3600);else return;});}[_0x15be34(0x88)](_0x30c77d){const _0x397a5c=_0x15be34,_0x2fb8ac={'hbyJF':function(_0x33e36c,_0x3b7848){return _0x33e36c(_0x3b7848);},'eRLzB':'undefined','ekqEq':'epIVd','zFoYj':_0x397a5c(0x116),'rcrWs':'Bearer','pBCEZ':'rEmMq','Oabek':function(_0x240793,_0x5aa09b){return _0x240793!==_0x5aa09b;},'iAcKt':_0x397a5c(0x163),'vYlcA':'pnPXX'};let _0x18f53a={'name':_0x2fb8ac['eRLzB'],'ownId':Util[_0x397a5c(0xae)](_0x30c77d[_0x397a5c(0x153)]),'document':_0x2fb8ac['eRLzB'],'type':_0x2fb8ac[_0x397a5c(0xb7)],'phoneNumber':_0x2fb8ac['eRLzB']};if(_0x30c77d[_0x397a5c(0x153)][Const[_0x397a5c(0x148)]['X_AUTHORIZATION']])try{if(_0x2fb8ac[_0x397a5c(0xd5)]===_0x2fb8ac[_0x397a5c(0x7b)])try{if(this[_0x397a5c(0x8c)]){let _0xa1cbc0=_0x42034d[_0x397a5c(0x14d)](this[_0x397a5c(0x8c)]);_0xa1cbc0[_0x397a5c(0xf1)](_0x13ecb9);}}catch(_0x151dfa){_0x546630[_0x397a5c(0x125)]('stage=error\x20method=HandleRoute.handleAudit\x20message=Handle\x20Audit\x20Error',_0x151dfa);}else{let _0x34c4e1=_0x30c77d[_0x397a5c(0x153)][Const['HEADERS'][_0x397a5c(0x142)]]['replace'](_0x2fb8ac[_0x397a5c(0x171)],'')[_0x397a5c(0xf8)](),_0x1cb7c5=Util[_0x397a5c(0x11d)](Util['decodeBase64'](_0x34c4e1['split']('.')[0x1]));Util[_0x397a5c(0x90)](_0x1cb7c5)&&(_0x2fb8ac[_0x397a5c(0x12c)]!==_0x2fb8ac[_0x397a5c(0x12c)]?_0x3e6bd6[_0x397a5c(0x145)][_0x397a5c(0x12f)][_0x259e2c]=_0x2fb8ac[_0x397a5c(0xcc)](_0x435d02,_0x5e33ad):_0x18f53a={'name':_0x1cb7c5[_0x397a5c(0x136)],'ownId':_0x1cb7c5[_0x397a5c(0x12b)],'document':_0x1cb7c5[_0x397a5c(0x14a)],'type':_0x1cb7c5[_0x397a5c(0xdc)],'phoneNumber':_0x1cb7c5[_0x397a5c(0x156)]});}}catch(_0x80d985){_0x2fb8ac[_0x397a5c(0x16f)](_0x2fb8ac[_0x397a5c(0xe1)],_0x2fb8ac['vYlcA'])?Util[_0x397a5c(0x125)](_0x397a5c(0x128),_0x80d985):_0x35c7b5[_0x397a5c(0x169)]['end'](_0xb0d308[_0x397a5c(0x89)]());}return _['extend'](_0x30c77d,{'env':Env,'util':Util,'customerToken':_0x18f53a});}['compileRateLimitKey'](_0x5ab4e5){const _0x338946=_0x15be34,_0x3760dd={'VSLVH':_0x338946(0x17e)},_0x2f4141=this[_0x338946(0xc6)][_0x338946(0xfe)]({'serviceName':_0x5ab4e5['service']['name'],'keyTemplate':this[_0x338946(0xf0)][_0x338946(0x177)],'fallbackKey':_0x5ab4e5[_0x338946(0x153)][_0x3760dd[_0x338946(0x111)]],'templateContext':this['getCompileContext'](_0x5ab4e5)});return Util[_0x338946(0x103)](_0x338946(0xa7)+this['rateLimit'][_0x338946(0x177)]+_0x338946(0x99)+_0x2f4141),_0x2f4141;}[_0x15be34(0x17d)](_0x53b6c6,_0x595b93){const _0x32c42f=_0x15be34,_0x4dc0fd={'PCBmi':function(_0xafed34,_0x399c0a){return _0xafed34(_0x399c0a);},'gyFrT':function(_0x450180,_0x1a4b98,_0xb501a1){return _0x450180(_0x1a4b98,_0xb501a1);},'tVWOs':_0x32c42f(0x101),'cfGEA':function(_0x2aa6dc){return _0x2aa6dc();},'cYZsY':_0x32c42f(0xc9),'fYMOv':_0x32c42f(0x12a),'WnNzS':function(_0x28eb43,_0x8a2895){return _0x28eb43(_0x8a2895);},'Xqugc':function(_0xa60d09){return _0xa60d09();},'vhZUo':_0x32c42f(0x177),'IvFkx':_0x32c42f(0x10b),'ouLro':function(_0x2a949e,_0x42e381){return _0x2a949e===_0x42e381;},'PyeXD':_0x32c42f(0xd2),'rewQt':'40/s'};if(!this[_0x32c42f(0xa5)])return _0x4dc0fd['Xqugc'](_0x595b93);const _0x25414d=Object[_0x32c42f(0x144)][_0x32c42f(0x11f)]['call'](this[_0x32c42f(0xf0)],_0x4dc0fd[_0x32c42f(0xfd)]),_0x4cc5d9=Object[_0x32c42f(0x144)][_0x32c42f(0x11f)][_0x32c42f(0xb9)](this[_0x32c42f(0xf0)],_0x4dc0fd['IvFkx']);if(!this[_0x32c42f(0x81)]['enableRedis']||!_0x25414d||!_0x4cc5d9){if(_0x4dc0fd[_0x32c42f(0xed)](_0x32c42f(0x132),_0x4dc0fd[_0x32c42f(0xb4)]))_0x4dc0fd['gyFrT'](_0xe3bc59,function(){const _0x20b0be=_0x32c42f;_0x26cdfd[_0x20b0be(0x10a)](_0x471b5f,this);},function(_0x21c750){const _0x2b32b0=_0x32c42f;_0x21c750&&(_0x3c9151[_0x2b32b0(0xb2)]=_0x21c750[_0x2b32b0(0x86)],_0x403be9[_0x2b32b0(0x125)]=!![],_0x4ec1ff['setResult'](_0x21c750)),_0x4dc0fd[_0x2b32b0(0x165)](_0x4c353d,_0x21c750);});else return _0x595b93();}let _0x59e249;try{_0x59e249=this['compileRateLimitKey'](_0x53b6c6);}catch(_0x2852f1){return Util[_0x32c42f(0x125)]('stage=error\x20method=HandleRoute.validateRateLimit\x20message=Rate\x20Limit\x20Key\x20Compilation\x20Error\x20service='+(_0x53b6c6[_0x32c42f(0x145)]&&_0x53b6c6[_0x32c42f(0x145)][_0x32c42f(0x158)]),_0x2852f1),_0x4dc0fd[_0x32c42f(0x110)](_0x595b93);}this[_0x32c42f(0xc6)]['consume']({'key':_0x59e249,'rate':this[_0x32c42f(0xf0)][_0x32c42f(0x10b)]||Environment[_0x32c42f(0xcf)]['requestPerSecond']||_0x4dc0fd[_0x32c42f(0x181)]})[_0x32c42f(0x104)](_0x4f1cfa=>{const _0x2b0803=_0x32c42f;Util[_0x2b0803(0x103)](_0x4dc0fd[_0x2b0803(0xf3)],_0x4f1cfa);if(!_0x4f1cfa[_0x2b0803(0xc5)])return _0x4dc0fd[_0x2b0803(0xa4)](_0x595b93);Util[_0x2b0803(0x125)](_0x4dc0fd[_0x2b0803(0x179)],_0x4f1cfa),metricsService[_0x2b0803(0x16a)](_0x53b6c6[_0x2b0803(0x145)]['name']);const _0x5193c7=new RequestTooManyRequests('TOO_MANY_REQUESTS',new CreateCustomError(_0x4dc0fd[_0x2b0803(0xbe)],_0x2b0803(0x127)));_0x53b6c6[_0x2b0803(0x145)][_0x2b0803(0xd3)](_0x5193c7),_0x53b6c6[_0x2b0803(0x13c)](_0x5193c7),_0x53b6c6['statusCode']=0x1ad,_0x53b6c6[_0x2b0803(0x125)]=!![],_0x4dc0fd[_0x2b0803(0x91)](_0x595b93,_0x5193c7);})['catch'](_0x1df6c8=>{const _0x57f5c8=_0x32c42f;Util[_0x57f5c8(0x125)](_0x57f5c8(0xbd),_0x1df6c8),_0x4dc0fd['cfGEA'](_0x595b93);});}[_0x15be34(0xe8)](_0x1306cc,_0x453365){const _0x54e73c=_0x15be34;Util[_0x54e73c(0x103)](_0x54e73c(0xca),{'service':_0x1306cc['service'][_0x54e73c(0x158)],'totalFlow':_0x1306cc[_0x54e73c(0x145)][_0x54e73c(0xce)][_0x54e73c(0xf6)],'contextUuid':_0x1306cc[_0x54e73c(0xf4)]}),this[_0x54e73c(0xd4)][_0x54e73c(0x10a)](_0x1306cc,_0x453365);}[_0x15be34(0xb1)](_0x4b6e62){const _0x362ebf=_0x15be34,_0x112456={'jlHQr':_0x362ebf(0x9d),'JhMQT':function(_0x35c8b5,_0x4d475b){return _0x35c8b5+_0x4d475b;},'ubUrA':function(_0x2afdf7,_0x501783){return _0x2afdf7===_0x501783;},'RqZQd':_0x362ebf(0x13e),'yqttF':function(_0x1f85be,_0x182f99){return _0x1f85be/_0x182f99;},'ECKVw':function(_0xedb1b3,_0x37b9ca){return _0xedb1b3-_0x37b9ca;},'AKgvj':function(_0x46249c,_0x5e657a){return _0x46249c(_0x5e657a);},'hJmrd':_0x362ebf(0x8e),'MpAuM':_0x362ebf(0xe0),'Xsnew':function(_0x1b6e21,_0x5b5d87){return _0x1b6e21!==_0x5b5d87;},'MNahH':_0x362ebf(0x8f),'agUeN':function(_0x3998bd,_0xabf9f8){return _0x3998bd===_0xabf9f8;},'IifDM':'ERR_INVALID_CHAR','GUuZj':_0x362ebf(0x154),'Gpasm':_0x362ebf(0x8d),'xPSKh':_0x362ebf(0xc8),'ILenb':_0x362ebf(0x7c),'JRaLM':_0x362ebf(0x174),'gDhpX':function(_0x17e4b8,_0x55b9bb){return _0x17e4b8(_0x55b9bb);}};let _0x4adc13=_[_0x362ebf(0x126)]({[Const[_0x362ebf(0x148)][_0x362ebf(0x114)]]:_0x4b6e62[_0x362ebf(0xf4)],[Const[_0x362ebf(0x148)][_0x362ebf(0xf2)]]:_0x112456[_0x362ebf(0x98)](sanitizeHeaderValue,_0x4b6e62[_0x362ebf(0x145)][_0x362ebf(0x158)]),'Cross-Origin-Resource-Policy':_0x362ebf(0x17f)},_0x4b6e62['service'][_0x362ebf(0x12f)]),_0x155373=_0x4adc13[Const[_0x362ebf(0x148)][_0x362ebf(0x105)]]||this['resolveContextTypeResponse'](_0x4b6e62);_0x4adc13[Const['HEADERS'][_0x362ebf(0x105)]]=_0x155373,_0x4adc13[Const[_0x362ebf(0x148)][_0x362ebf(0x7a)]]=_0x4b6e62[_0x362ebf(0x152)][_0x362ebf(0x112)];let _0x2c347a=_0x4b6e62[_0x362ebf(0x145)][_0x362ebf(0x153)][Const[_0x362ebf(0x148)]['SET_COOKIE'][_0x362ebf(0x108)]()]||{};const _0x1ad9d0=_0x4b6e62[_0x362ebf(0x145)][_0x362ebf(0x12f)][Const[_0x362ebf(0x148)][_0x362ebf(0x14b)]]||_0x4b6e62['service']['responseHeaders'][Const[_0x362ebf(0x148)][_0x362ebf(0x14b)][_0x362ebf(0x108)]()];if(_0x1ad9d0){if(Array[_0x362ebf(0x160)](_0x2c347a)&&_0x2c347a['length'])_0x2c347a=_0x2c347a[_0x362ebf(0x151)](_0x1af587=>_0x1af587+';\x20'+_0x1ad9d0);else{if(_0x112456[_0x362ebf(0x8a)](_0x112456['hJmrd'],_0x112456[_0x362ebf(0x117)]))try{let _0x4babd0=_0x1ff2b6['headers'][_0x2e0b41[_0x362ebf(0x148)]['X_AUTHORIZATION']]['replace'](_0x112456[_0x362ebf(0xec)],'')[_0x362ebf(0xf8)](),_0x5b5289=_0x12208d[_0x362ebf(0x11d)](_0x36b5ac[_0x362ebf(0xdf)](_0x4babd0[_0x362ebf(0xb3)]('.')[0x1]));_0x31c1aa[_0x362ebf(0x90)](_0x5b5289)&&(_0x3369cf={'name':_0x5b5289['nome'],'ownId':_0x5b5289[_0x362ebf(0x12b)],'document':_0x5b5289['sub'],'type':_0x5b5289[_0x362ebf(0xdc)],'phoneNumber':_0x5b5289['telefone']});}catch(_0x58ba63){_0x485baf[_0x362ebf(0x125)](_0x362ebf(0x128),_0x58ba63);}else _0x2c347a=[_0x1ad9d0];}}Util[_0x362ebf(0xbf)](_0x2c347a)&&(_0x4adc13=_[_0x362ebf(0x126)](_0x4adc13,{[Const[_0x362ebf(0x148)][_0x362ebf(0x14b)][_0x362ebf(0x108)]()]:_0x2c347a}));if(validContentTypes[_0x362ebf(0x134)](_0x4adc13[Const[_0x362ebf(0x148)][_0x362ebf(0x105)]])||validContentTypes[_0x362ebf(0x134)](_0x4adc13[Const[_0x362ebf(0x148)]['CONTENT_TYPE']['toLocaleLowerCase']()])){if(_0x112456[_0x362ebf(0xa2)]('rraFh',_0x112456['MNahH'])){let _0x4c9f15=_0x4b6e62[_0x362ebf(0x145)][_0x362ebf(0x153)][Const['HEADERS'][_0x362ebf(0x178)][_0x362ebf(0x108)]()]||_0x4b6e62[_0x362ebf(0x145)][_0x362ebf(0x153)][Const[_0x362ebf(0x148)][_0x362ebf(0x178)]]||_0x362ebf(0xac)+new Date()['toDateString']();_0x4adc13={..._0x4adc13,[Const[_0x362ebf(0x148)]['CONTENT_DISPOSITION'][_0x362ebf(0x108)]()]:_0x4c9f15};}else{let _0x18c3de=_0x17c5e2[_0x362ebf(0x153)][_0x3172f6['HEADERS']['X_AUTHORIZATION']][_0x362ebf(0x162)](_0x362ebf(0x9d),'')['trim'](),_0x3c98e7=_0x4e5b9c[_0x362ebf(0x11d)](_0x2c2c89['decodeBase64'](_0x18c3de[_0x362ebf(0xb3)]('.')[0x1]));_0x4832c7[_0x362ebf(0x90)](_0x3c98e7)&&(_0x586c71={'name':_0x3c98e7['nome'],'ownId':_0x3c98e7[_0x362ebf(0x12b)],'document':_0x3c98e7[_0x362ebf(0x14a)],'type':_0x3c98e7[_0x362ebf(0xdc)],'phoneNumber':_0x3c98e7[_0x362ebf(0x156)]});}}_0x4b6e62[_0x362ebf(0x145)][_0x362ebf(0x12f)]=_0x4adc13;if(!Util[_0x362ebf(0xbb)](_0x4b6e62[_0x362ebf(0x89)]())){const _0x182a61=Util[_0x362ebf(0x113)](_0x4b6e62[_0x362ebf(0x89)]())&&!_0x4b6e62[_0x362ebf(0x145)][_0x362ebf(0x9c)]?Const['HTTP_STATUS'][_0x362ebf(0x166)]:_0x4b6e62[_0x362ebf(0xb2)];try{_0x4b6e62[_0x362ebf(0x169)][_0x362ebf(0xd8)](_0x182a61,_0x4b6e62['service'][_0x362ebf(0x12f)]);}catch(_0x1c0015){if(_0x1c0015&&_0x112456[_0x362ebf(0x82)](_0x1c0015[_0x362ebf(0xef)],_0x112456[_0x362ebf(0x15e)])){if(_0x112456[_0x362ebf(0xba)]===_0x112456[_0x362ebf(0xba)]){Util[_0x362ebf(0x125)]('stage=error\x20method=HandleRoute.generateHeadersDefault\x20message=Invalid\x20header\x20value\x20sanitized',_0x1c0015);for(const _0x5dca62 of Object[_0x362ebf(0x12d)](_0x4b6e62[_0x362ebf(0x145)][_0x362ebf(0x12f)])){if(_0x112456[_0x362ebf(0xa2)](_0x112456['Gpasm'],_0x112456['xPSKh'])){const _0x6b79a9=_0x4b6e62['service'][_0x362ebf(0x12f)][_0x5dca62];if(_0x112456['agUeN'](typeof _0x6b79a9,_0x112456[_0x362ebf(0x120)])){if(_0x112456[_0x362ebf(0xa2)](_0x112456[_0x362ebf(0xe7)],_0x112456[_0x362ebf(0xe7)])){let _0x2c6a67=_0x31d99e['service'][_0x362ebf(0x153)][_0x59bf0f['HEADERS'][_0x362ebf(0x178)][_0x362ebf(0x108)]()]||_0x517130[_0x362ebf(0x145)]['headers'][_0x2a038c['HEADERS'][_0x362ebf(0x178)]]||_0x112456[_0x362ebf(0xfb)](_0x362ebf(0xac),new _0x5f162b()[_0x362ebf(0x115)]());_0x4c9ba5={..._0x143b6f,[_0x20493a[_0x362ebf(0x148)][_0x362ebf(0x178)][_0x362ebf(0x108)]()]:_0x2c6a67};}else _0x4b6e62['service'][_0x362ebf(0x12f)][_0x5dca62]=_0x112456['gDhpX'](sanitizeHeaderValue,_0x6b79a9);}}else{_0x492afc[_0x362ebf(0x93)](),this[_0x362ebf(0xb1)](_0x1baafe),this['releaseResponse'](_0x28bb56);const _0x16a5ee=_0x50b049['timers']['duration'],_0x31d04b=_0x112456['ubUrA'](typeof _0x16a5ee,_0x112456[_0x362ebf(0xde)])?_0x112456[_0x362ebf(0x161)](_0x16a5ee,0x3e8):null;_0x25b147['observeHttpRequest']({'service':_0x5a0162[_0x362ebf(0x145)]['name'],'method':_0xfe1632[_0x362ebf(0x145)][_0x362ebf(0x138)],'status':_0x196dac['statusCode'],'durationSeconds':_0x31d04b}),_0x23628f[_0x362ebf(0xea)](_0x564a82[_0x362ebf(0x145)][_0x362ebf(0x158)]),_0x47da65[_0x362ebf(0x103)](_0x362ebf(0x11a),{'method':_0x9e1a9a['service']['method']['toUpperCase'](),'service':_0x1527cf[_0x362ebf(0x145)]['name'],'route':_0x2b3ba2['request'][_0x362ebf(0xeb)],'uuid':_0x5b9c4c[_0x362ebf(0xf4)],'body':_0xcc81ce[_0x362ebf(0x167)](_0x1c88c2['getResult']()),'headers':_0x3e6cbd[_0x362ebf(0x145)][_0x362ebf(0x12f)],'duration':_0x16a5ee});}}_0x4b6e62['response'][_0x362ebf(0xd8)](_0x182a61,_0x4b6e62[_0x362ebf(0x145)][_0x362ebf(0x12f)]);}else{const _0x1cbbd0=_0x51c1e4&&_0x2e82c3[_0x362ebf(0x100)]||{},_0x2f5c31=_0x327e01&&_0x41a3d5[_0x362ebf(0x169)]||{},_0x1fc2af=_0x23aaa2&&_0x30bd2d[_0x362ebf(0x152)]||{};let _0xb053db;try{_0x1fc2af[_0x362ebf(0xc1)]&&_0x1fc2af[_0x362ebf(0x170)]&&(_0xb053db=_0x112456[_0x362ebf(0x13f)](new _0x5e7ec5(_0x1fc2af['finished']['at'])[_0x362ebf(0x121)](),new _0x14c9e7(_0x1fc2af[_0x362ebf(0x170)]['at'])[_0x362ebf(0x121)]()));}catch{}return{'ts':new _0x48bb34()[_0x362ebf(0xad)](),'method':_0x1cbbd0[_0x362ebf(0x138)],'url':_0x1cbbd0[_0x362ebf(0xeb)],'status':_0x2f5c31['statusCode'],'service':_0x27f013&&_0x36ffbd['service']&&_0x52056d[_0x362ebf(0x145)][_0x362ebf(0x158)],'correlationId':_0x2cc35b&&(_0x1f0a80[_0x362ebf(0x146)]||_0xc30d6d[_0x362ebf(0xf4)])||_0x34ad64,'traceId':_0x57bc1e&&_0x1eddf8[_0x362ebf(0xdb)],'durationMs':_0xb053db};}}else throw _0x1c0015;}}}[_0x15be34(0x175)](_0x557375){const _0x128c39=_0x15be34,_0x3087cb={'OxidE':function(_0x191217,_0x23cf9f){return _0x191217===_0x23cf9f;},'JYVtn':_0x128c39(0xcd),'Tfivq':_0x128c39(0x7c)};if(Buffer[_0x128c39(0x106)](_0x557375[_0x128c39(0x89)]()))return Const['STREAM_CONTENT_TYPE_VALUE'];if(_0x557375[_0x128c39(0x89)]()!==null&&_0x3087cb[_0x128c39(0xd0)](typeof _0x557375[_0x128c39(0x89)](),_0x3087cb[_0x128c39(0xd7)]))return Const[_0x128c39(0x131)];if(_0x3087cb[_0x128c39(0xd0)](_0x557375['getResult'](),_0x3087cb[_0x128c39(0x13a)]))return Const[_0x128c39(0xfc)];return Const[_0x128c39(0xfc)];}[_0x15be34(0x16e)](_0x580237){const _0x162f70=_0x15be34,_0x465ce5={'YlMwG':function(_0x1f13f2,_0x933b1a){return _0x1f13f2!==_0x933b1a;},'kEBOl':_0x162f70(0x11b),'jwbUu':_0x162f70(0x14e)};switch(_0x580237[_0x162f70(0x89)]()[_0x162f70(0xaa)][_0x162f70(0x158)]){case Const['OBJECT_TYPE'][_0x162f70(0x16c)]:_0x580237[_0x162f70(0x89)]()[_0x162f70(0xb8)](_0x580237[_0x162f70(0x169)]);break;case Const[_0x162f70(0x10d)][_0x162f70(0x155)]:_0x580237[_0x162f70(0x89)]()['pipe'](_0x580237[_0x162f70(0x169)]);break;case Const[_0x162f70(0x10d)][_0x162f70(0x147)]:_0x580237[_0x162f70(0x169)][_0x162f70(0x93)](_0x580237[_0x162f70(0x89)]());break;case Const[_0x162f70(0x10d)][_0x162f70(0x15d)]:_0x580237[_0x162f70(0x169)][_0x162f70(0x93)](Util[_0x162f70(0x11c)](_0x580237[_0x162f70(0x89)]()));break;case Const['OBJECT_TYPE']['STRING']:if(Util[_0x162f70(0xbb)](_0x580237[_0x162f70(0x89)]()))_0x580237[_0x162f70(0x169)][_0x162f70(0x7e)](0x12e,_0x580237[_0x162f70(0x89)]());else{if(_0x465ce5[_0x162f70(0x87)](_0x465ce5[_0x162f70(0x109)],_0x465ce5[_0x162f70(0xaf)]))_0x580237[_0x162f70(0x169)][_0x162f70(0x93)](_0x580237[_0x162f70(0x89)]());else throw _0x9ad949;}break;default:_0x580237[_0x162f70(0x169)][_0x162f70(0x93)](Util[_0x162f70(0x11c)](_0x580237['getResult']()));}}[_0x15be34(0xdd)](_0x287371){const _0x34aa36=_0x15be34,_0xc45067={'MxkvT':function(_0x3fcdf0,_0x5bd38c){return _0x3fcdf0||_0x5bd38c;},'FYwKP':function(_0xc86825,_0x5817bd){return _0xc86825===_0x5817bd;},'DiVas':_0x34aa36(0x130),'zYQci':function(_0x3d8897,_0x10cd8e){return _0x3d8897||_0x10cd8e;}};if(_0x287371[_0x34aa36(0x125)]){if(_0xc45067[_0x34aa36(0x102)]('XsSFU',_0xc45067[_0x34aa36(0x14f)])){let _0x342039=Util['nonNull'](_0x287371[_0x34aa36(0x145)][_0x34aa36(0x182)][_0x34aa36(0xda)])?_0x287371[_0x34aa36(0x145)][_0x34aa36(0x182)][_0x34aa36(0xda)]:_0x287371[_0x34aa36(0x145)][_0x34aa36(0xda)],_0x3a08f5=_0x287371[_0x34aa36(0x145)][_0x34aa36(0x182)][_0x34aa36(0xb6)][_0x34aa36(0xc4)]||!![];_0x3a08f5?_0x287371['setResult'](_[_0x34aa36(0x126)](_0xc45067[_0x34aa36(0x129)](_0x342039,{}),{'description':_0x287371['service']['description'],'serviceName':_0x287371[_0x34aa36(0x145)][_0x34aa36(0x158)],'requestId':_0x287371[_0x34aa36(0xf4)]})):_0x287371[_0x34aa36(0x13c)](_0x342039);}else{if(_0x4e7163['error']){let _0x3d01b3=_0x30606a[_0x34aa36(0xbf)](_0x530fd9[_0x34aa36(0x145)][_0x34aa36(0x182)][_0x34aa36(0xda)])?_0x19319e['service'][_0x34aa36(0x182)][_0x34aa36(0xda)]:_0x5885d4['service'][_0x34aa36(0xda)],_0x54bc68=_0x1043d3['service'][_0x34aa36(0x182)][_0x34aa36(0xb6)][_0x34aa36(0xc4)]||!![];_0x54bc68?_0x4c8090[_0x34aa36(0x13c)](_0x5eac10[_0x34aa36(0x126)](_0xc45067[_0x34aa36(0xd6)](_0x3d01b3,{}),{'description':_0x519615[_0x34aa36(0x145)][_0x34aa36(0xfa)],'serviceName':_0x391275[_0x34aa36(0x145)][_0x34aa36(0x158)],'requestId':_0x294339[_0x34aa36(0xf4)]})):_0x2e1fa7['setResult'](_0x3d01b3);}this[_0x34aa36(0x16e)](_0x239c46);}}this[_0x34aa36(0x16e)](_0x287371);}[_0x15be34(0xc3)](_0x307713){const _0x502e17=_0x15be34;this[_0x502e17(0x172)](_0x307713),this[_0x502e17(0x143)](_0x307713),this[_0x502e17(0x176)](_0x307713);}[_0x15be34(0x172)](_0x135dbe){const _0x3306c5=_0x15be34,_0x3f4424={'uQrXv':function(_0xe50f10,_0x2e65db){return _0xe50f10===_0x2e65db;},'IIkvF':function(_0x5a1ad6,_0x54b718){return _0x5a1ad6/_0x54b718;},'DOlvn':'stage=end\x20method=HandleRoute.handleResult\x20response'};_0x135dbe[_0x3306c5(0x93)](),this[_0x3306c5(0xb1)](_0x135dbe),this[_0x3306c5(0xdd)](_0x135dbe);const _0x1e4450=_0x135dbe[_0x3306c5(0x152)][_0x3306c5(0x112)],_0x51e5a1=_0x3f4424[_0x3306c5(0x13d)](typeof _0x1e4450,'number')?_0x3f4424[_0x3306c5(0x123)](_0x1e4450,0x3e8):null;metricsService[_0x3306c5(0xd9)]({'service':_0x135dbe['service'][_0x3306c5(0x158)],'method':_0x135dbe['service'][_0x3306c5(0x138)],'status':_0x135dbe[_0x3306c5(0xb2)],'durationSeconds':_0x51e5a1}),metricsService[_0x3306c5(0xea)](_0x135dbe[_0x3306c5(0x145)][_0x3306c5(0x158)]),Util['info'](_0x3f4424[_0x3306c5(0xcb)],{'method':_0x135dbe[_0x3306c5(0x145)][_0x3306c5(0x138)][_0x3306c5(0x164)](),'service':_0x135dbe[_0x3306c5(0x145)][_0x3306c5(0x158)],'route':_0x135dbe[_0x3306c5(0x100)]['url'],'uuid':_0x135dbe[_0x3306c5(0xf4)],'body':Util[_0x3306c5(0x167)](_0x135dbe[_0x3306c5(0x89)]()),'headers':_0x135dbe[_0x3306c5(0x145)][_0x3306c5(0x12f)],'duration':_0x1e4450});}['handleAudit'](_0x486010){const _0x32d404=_0x15be34,_0x1082f6={'ZFYnx':function(_0x1fab14,_0x5e31fa){return _0x1fab14(_0x5e31fa);},'JgxLQ':function(_0x12ee9a,_0x3f88ad){return _0x12ee9a===_0x3f88ad;},'mkAkq':_0x32d404(0x124),'gdXwN':'YPyCx','luIaC':_0x32d404(0x95)};try{if(this[_0x32d404(0x8c)]){if(_0x1082f6[_0x32d404(0x15a)](_0x1082f6[_0x32d404(0x122)],_0x1082f6[_0x32d404(0xbc)]))_0x333c48[_0x32d404(0x17c)][_0x32d404(0x119)](_0x1082f6[_0x32d404(0x13b)](_0x7f6d87,_0x56e6dd));else{let _0x2a90c4=FunctionFactory['createFunctionByName'](this[_0x32d404(0x8c)]);_0x2a90c4[_0x32d404(0xf1)](_0x486010);}}}catch(_0x5d1830){_0x1082f6[_0x32d404(0x15a)](_0x1082f6['luIaC'],_0x1082f6[_0x32d404(0xff)])?Util['error'](_0x32d404(0x7d),_0x5d1830):_0x4321b6[_0x32d404(0x17d)](_0x270221,this);}}}module[_0x15be34(0x9b)]=HandleRoute;
1
+ 'use strict';const _0xabdb8e=_0xd496;(function(_0x293350,_0x1abbf4){const _0x56fea5=_0xd496,_0x1c9d41=_0x293350();while(!![]){try{const _0x4e0a65=-parseInt(_0x56fea5(0x1c6))/0x1+parseInt(_0x56fea5(0x161))/0x2+-parseInt(_0x56fea5(0x221))/0x3+parseInt(_0x56fea5(0x196))/0x4*(parseInt(_0x56fea5(0x169))/0x5)+parseInt(_0x56fea5(0x148))/0x6+parseInt(_0x56fea5(0x19f))/0x7*(parseInt(_0x56fea5(0x1c4))/0x8)+-parseInt(_0x56fea5(0x152))/0x9;if(_0x4e0a65===_0x1abbf4)break;else _0x1c9d41['push'](_0x1c9d41['shift']());}catch(_0x3acb74){_0x1c9d41['push'](_0x1c9d41['shift']());}}}(_0x2377,0xc1cf9));const Util=require('./utils/commons-util'),Const=require('./utils/commons-const'),Env=require(_0xabdb8e(0x217))[_0xabdb8e(0x17a)],{ApiGatewayError,RequestTooManyRequests,CreateCustomError}=require(_0xabdb8e(0x143)),_=require('underscore'),Step=require(_0xabdb8e(0x1b3)),RouteContext=require(_0xabdb8e(0x193)),liveStreams=require(_0xabdb8e(0x176)),ValidateSecurity=require(_0xabdb8e(0x1cb)),Environment=require('./environment'),FunctionFactory=require('./factory/function-factory'),metricsService=require(_0xabdb8e(0x18e)),{FixedWindowRateLimitService}=require('./services/fixed-window-rate-limit-service'),MonitorEvent=require(_0xabdb8e(0x1a1)),MonitorEventBus=require('./observability/monitor-event-bus'),OpenSearchEventSubscriber=require(_0xabdb8e(0x21f)),SplunkEventSubscriber=require(_0xabdb8e(0x13a)),MAX_HEADER_VALUE_LENGTH=0x100;function sanitizeHeaderValue(_0x12e9fd){const _0x54d0bf=_0xabdb8e,_0x28174e={'NlJfn':function(_0x54c5fc,_0x2a23ab){return _0x54c5fc===_0x2a23ab;},'HvINr':function(_0x2d7012,_0x3a7b92){return _0x2d7012(_0x3a7b92);},'sthHS':'NFKD'};if(_0x28174e[_0x54d0bf(0x164)](_0x12e9fd,null)||_0x28174e['NlJfn'](_0x12e9fd,undefined))return'';return _0x28174e[_0x54d0bf(0x1c2)](String,_0x12e9fd)[_0x54d0bf(0x1b5)](_0x28174e[_0x54d0bf(0x166)])[_0x54d0bf(0x179)](/[̀-ͯ]/g,'')['replace'](/[^\x20-\x7E]/g,'')['slice'](0x0,MAX_HEADER_VALUE_LENGTH);}const validContentTypes=[_0xabdb8e(0x177),_0xabdb8e(0x19d),_0xabdb8e(0x18b),_0xabdb8e(0x1a7),_0xabdb8e(0x1e5),_0xabdb8e(0x17f),_0xabdb8e(0x146),_0xabdb8e(0x1c7),_0xabdb8e(0x1ca),_0xabdb8e(0x160)];function _0x2377(){const _0x191226=['AgfUzgXL','C3rHz2u9zxjYB3iGBwv0Ag9KpuHHBMrSzvjVDxrLlMDLDenVBxbPBgvdB250zxH0ig1LC3nHz2u9rxjYB3iGr2v0ienVBxbPBguGq29UDgv4DcbLCNjVCG','z2vUzxjHDgvizwfKzxjZrgvMyxvSDa','yxvKAxrgDw5JDgLVBG','DNbZDey','y29Kzq','zxHLy3v0zq','B3DUAwq','y3jLyxrLrNvUy3rPB25cEu5HBwu','AuTAuwy','uKTbqKq','shzjtNi','ChjVy2vZC1jLC3vSDa','oe5sEezmrG','CMvZCg9UC2vdB2rL','mtiWmdq5owLewLvKwa','yxbWBgLJyxrPB24VEMLW','AgfUzgXLqxvKAxq','quXVsem','yxbWBgLJyxrPB24Vz3PPCa','lI9Zzwn1CML0Es9Zzwn1CML0Es12ywXPzgf0Aw9U','CgLWzq','q09ovevovf9esvnqt1njveLptG','DxjS','BM9UtNvSBa','DhjHy2vjza','y2fSBa','CxvLCNK','De9xBwO','Eevwywy','u0vux0npt0Tjrq','zML4zwrxAw5KB3DsyxrLtgLTAxrtzxj2AwnL','zw5K','BwrYD0e','C3rHz2u9zxjYB3iGBwv0Ag9KpuHHBMrSzvjVDxrLlMDLBMvYyxrLsgvHzgvYC0rLzMf1BhqGBwvZC2fNzt1jBNzHBgLKigHLywrLCIb2ywX1zsbZyw5PDgL6zwq','AgvHzgvYCW','t0jkrunux1rzueu','y29YCMvSyxrPB25jza','Axnku09ovMfSAwq','y0vur0O','u1rsrufnx0nptLrftLrFvfLqrv9wquXvrq','ueftu1riuK9vr0G','z3zxwNK','DgP2Cu4','wgjOq1K','zhzjBfm','yxbWBgLJyxrPB24VDM5KlM9Wzw54BwXMB3jTyxrZlw9MzMLJzwrVy3vTzw50lNDVCMrWCM9JzxnZAw5NBwWUzg9JDw1LBNq','BfrkvKG','CMvXDwvZDfbLCLnLy29Uza','zxHWB3j0CW','C3rHz2u9zxjYB3iGBwv0Ag9KpuHHBMrSzvjVDxrLlNzHBgLKyxrLuMf0zuXPBwL0lMXPBwL0ig1LC3nHz2u9uMf0zsbmAw1PDcbjBMzVie92zxi','CLfrCgu','Afrtu2m','BM9Tzq','u0juqK0','sNPZDhO','Aw5KzxHszxf1zxn0','txb4B00','zwXTree','vg9Vie1HBNKGuMvXDwvZDhm','z2v0vgLTzq','AgfZrw5HyMXLzfn1yNnJCMLIzxjZ','CMvZB2X2zuvUzfjLC3bVBNnL','revgqvvmvf9dt05uru5ux1rzuevFvKfmvuu','DgHLBG','y3vYCMvUDezSB3C','B3jJAgvZDhjHDg9Y','sevbrevsuW','CMvKAxjLy3q','CvHfrgK','C3rHz2u9zw5Kig1LDgHVzd1iyw5KBgvsB3v0zs5JB21WAwXLuMf0zuXPBwL0s2v5igXPBwL0s2v5pq','CMf0zuXPBwL0','BNvTyMvY','ugTvuuy','Dhj5ugfYC2vku09o','AxnbCNjHEq','wf9bvvrit1jjwKfusu9o','rg93BMXVywrF','zMXVDW','CMvJB3jKugHHC2u','C3vTBwfYAxPLrM9Ytg9N','BMvUu04','DMfSAwrHDgvsyxrLtgLTAxq','DgLWB1rVA2vU','Dg9mB2nHBgvmB3DLCKnHC2u','t0jkrunu','A2v5CW','ugjNEfa','ugXTExi','Dg9ju09tDhjPBMC','wevRuKO','z2vUzxjHDgvlzxK','A2v5','Aw5MBW','BMfTzq','C2vYDMLJzq','lI9LBNzPCM9UBwvUDa','CMvZCg9UC2u','y3jVC3mTB3jPz2LU','B2jQzwn0','zw5JyxbZDwXLrxjYB3i','rM1Twvy','CMvKAxndBgLLBNq','uKL2CK8','lI9VyNnLCNzHyMLSAxr5l3n1yNnJCMLIzxjZl29Wzw5ZzwfYy2GTzxzLBNqTC3vIC2nYAwjLCG','zxjYB3i','mJy2mtLcwxblu0C','vMfjr0W','C3bSDw5RuhjVDMLKzxi','z2v0uMvZDwX0','DgLTzxjZ','qLvgrKvs','sfruuf9tvefuvvm','zvLYAhK','ChjVDg90ExbL','lI9VyNnLCNzHyMLSAxr5l3n1yNnJCMLIzxjZl3nWBhvUAY1LDMvUDc1ZDwjZy3jPyMvY','venWEK4','zw5HyMXLuMf0zuXPBwL0','wf9iruLnrefmtf9trvjwsunfx05btuu','y29UC3rYDwn0B3i','z1nWC0e','zMLUAxnOzwq','CMvZDwX0','qMvHCMvY','lI91DgLSCY9JB21TB25ZlwvYCM9YCW','DhjPBq','DxvPza','yxbWBgLJyxrPB24VDM5KlM9Wzw54BwXMB3jTyxrZlw9MzMLJzwrVy3vTzw50lNnWCMvHzhnOzwv0BwWUC2HLzxq','CNvcu0G','nJy1mdC2mhvVr0Lxvq','CxfXAMu','Aw5JBhvKzxm','AgfUzgXLuMvXDwvZDa','wM5PEMu','wf9iruLnrefmtf9dt1jsruXbveLptL9jrf9oqu1f','CgHHC2vnyxjR','zxH0zw5K','B2jMDxnJyxrPB25ku09o','B3bLBLnLyxjJAa','mtu4otuWmdHKuK9yAeC','AMnhrM8','BM9VDuK','CMvXDwvZDhm','C3rHz2u9zxjYB3iGBwv0Ag9KpuHHBMrSzvjVDxrLlMHHBMrSzuf1zgL0ig1LC3nHz2u9sgfUzgXLief1zgL0ievYCM9Y','z2v0q29TCgLSzunVBNrLEhq','Bwv0Ag9K','q09ovevovf9uwvbf','s0LvBvO','zhP4EuG','Dw5KzwzPBMvK','Aw5Jsw5gBgLNAhq','Dg9vChbLCKnHC2u','BgvUz3rO','yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT','mtaWnZaWC0DesMrK','C3rHz2u9zxjYB3iGBwv0Ag9KpuHHBMrSzvjVDxrLlNzHBgLKyxrLuMf0zuXPBwL0ig1LC3nHz2u9uMf0zsbmAw1PDcbwywXPzgf0Aw9UievYCM9Y','zw5HyMXLuMvKAxm','tMXkzM4','CuDmDw8','C3rOsfm','sfbmBeO','uKvbrfnuuKvbtq','mti1tK5oyMLV','yM9KEq','B3bLCMf0Aw9U','ChvIBgLZAa','y29TCgLSzuTLEq','rxvYCva','DxbzD3O','EeTLALi','yuz6rvO','Bw9UAxrVCKv2zw50qNvZ','C3rHCNrLza','zhvYyxrPB24','zxHLy3v0zuzSB3C','lI9VyNnLCNzHyMLSAxr5l2XPDMuTC3rYzwfTCW','BxvSDgLWyxj0l2zVCM0Tzgf0yq','AxnfBxb0Eq','CMvWBgfJzq','yxbWBgLJyxrPB24','Dxn2AgO','C3rHDhvZq29Kzq','rvnSvNK','CwzwEKO','yxbWBgLJyxrPB24VDM5KlM1Zlwv4y2vS','zMvQzvq','seTHAhy','AgfUzgXLuMvZDwX0','CfvABeW','DgHYB3DfCNjVCKLMsxrfEgLZDhm','C3bSAxq','CMvZCg9UC2vizwfKzxjZ','D3jPDgvizwfK','C2v0uMvZDwX0','DgvSzwzVBMu','Aw5JuMf0zuXPBwL0sgL0','yxbWBgLJyxrPB24VCgrM','u1rssu5h','BMnwrM4','lI9Zzxj2AwnLCY9TzxrYAwnZlxnLCNzPy2u','CMvXDwvZDa','CMvSzwfZzvjLC3bVBNnL','yw9tu3i','zxPdqw4','lI9TB2rLBhmVCM91DguTy29UDgv4Da','igTLEunVBxbPBgvKpq','wf9iruLnrefmtf9srvfvrvnux0rvuKfusu9ox05btuu','mJqZmte2DwPet1vQ','A1npDMy','qwjwCKu','Ec1MB3j3yxjKzwqTzM9Y','C3rHz2u9Aw5MBYbTzxrOB2q9sgfUzgXLuM91DguUzxHLy3v0zuzSB3CGBwvZC2fNzt1fEgvJDxrPBMCGzMXVDYHZkq','DMfSAwrHDgvtzwn1CML0Eq','Dg9eyxrLu3rYAw5N','Dgv4Dc9JC3y','sMTnAg8','nZyZnZmZnLfWBKPlDq','ugjuAeO','lI9VyNnLCNzHyMLSAxr5l21VBML0B3iTzxzLBNq','DK9vzgO','B3zLCG','tK9Fq09ovevova','ywrKuMvZDwX0','veLPBNm','yxbWBgLJyxrPB24VBxn3B3jK','vLjIvfi','C3rHz2u9zxjYB3iGBwv0Ag9KpuHHBMrSzvjVDxrLlNzHBgLKyxrLuMf0zuXPBwL0ig1LC3nHz2u9uMf0zsbmAw1PDcblzxKGq29TCgLSyxrPB24GrxjYB3iGC2vYDMLJzt0','DgfVA3C','zgvJB2rLqMfZzty0','ve9px01btLLFuKvrvuvtvfm','B3r4uwC','AxnvCMW','CMvZB2X2zunVBNrLEhruExbLuMvZCg9UC2u','u21sywC','C3rYAw5NAwz5','x3nLCNzPy2vpChrPB25Z','C3rLCa','AgfZt3DUuhjVCgvYDhK','BM9YBwfSAxPL','C3rHz2u9Aw5PDcbTzxrOB2q9sgfUzgXLuM91DguUAgfUzgXLuMvXDwvZDcbJB25MAwD1CMf0Aw9U'];_0x2377=function(){return _0x191226;};return _0x2377();}function buildRequestTailEvent(_0x2ff50a){const _0x2d4048=_0xabdb8e,_0xdd711a={'otxQg':function(_0x2fe39d,_0x5dc1d9){return _0x2fe39d-_0x5dc1d9;}},_0x5a2bd6=_0x2ff50a&&_0x2ff50a[_0x2d4048(0x18f)]||{},_0x5866af=_0x2ff50a&&_0x2ff50a[_0x2d4048(0x218)]||{},_0xdf1d8=_0x2ff50a&&_0x2ff50a[_0x2d4048(0x135)]||{};let _0x175bec;try{_0xdf1d8[_0x2d4048(0x140)]&&_0xdf1d8[_0x2d4048(0x173)]&&(_0x175bec=_0xdd711a[_0x2d4048(0x1ad)](new Date(_0xdf1d8[_0x2d4048(0x140)]['at'])[_0x2d4048(0x1f3)](),new Date(_0xdf1d8[_0x2d4048(0x173)]['at'])[_0x2d4048(0x1f3)]()));}catch{}return{'ts':new Date()[_0x2d4048(0x210)](),'method':_0x5a2bd6[_0x2d4048(0x158)],'url':_0x5a2bd6['url'],'status':_0x5866af[_0x2d4048(0x17c)],'service':_0x2ff50a&&_0x2ff50a[_0x2d4048(0x216)]&&_0x2ff50a[_0x2d4048(0x216)][_0x2d4048(0x215)],'correlationId':_0x2ff50a&&(_0x2ff50a[_0x2d4048(0x1dc)]||_0x2ff50a[_0x2d4048(0x145)])||undefined,'traceId':_0x2ff50a&&_0x2ff50a[_0x2d4048(0x1d0)],'durationMs':_0x175bec};}function _0xd496(_0x256258,_0x225200){_0x256258=_0x256258-0x133;const _0x23777d=_0x2377();let _0xd496a3=_0x23777d[_0x256258];if(_0xd496['mVFkjo']===undefined){var _0x2a8a07=function(_0x33ded1){const _0x45510='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3c1321='',_0x443ef0='';for(let _0x334646=0x0,_0x5b4f69,_0x1efd3b,_0x52fae3=0x0;_0x1efd3b=_0x33ded1['charAt'](_0x52fae3++);~_0x1efd3b&&(_0x5b4f69=_0x334646%0x4?_0x5b4f69*0x40+_0x1efd3b:_0x1efd3b,_0x334646++%0x4)?_0x3c1321+=String['fromCharCode'](0xff&_0x5b4f69>>(-0x2*_0x334646&0x6)):0x0){_0x1efd3b=_0x45510['indexOf'](_0x1efd3b);}for(let _0x53cc53=0x0,_0x5dcf53=_0x3c1321['length'];_0x53cc53<_0x5dcf53;_0x53cc53++){_0x443ef0+='%'+('00'+_0x3c1321['charCodeAt'](_0x53cc53)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x443ef0);};_0xd496['fwHfxA']=_0x2a8a07,_0xd496['TNPIba']={},_0xd496['mVFkjo']=!![];}const _0x209f6d=_0x23777d[0x0],_0x52e549=_0x256258+_0x209f6d,_0x45404e=_0xd496['TNPIba'][_0x52e549];return!_0x45404e?(_0xd496a3=_0xd496['fwHfxA'](_0xd496a3),_0xd496['TNPIba'][_0x52e549]=_0xd496a3):_0xd496a3=_0x45404e,_0xd496a3;}class HandleRoute{constructor(_0x3edee2,_0xe8d80f,_0x250a1b,_0x4557bb,_0x1d1ca6={}){const _0x31d0ec=_0xabdb8e,_0xfcdff9={'vpQyq':function(_0x4aaac7,_0x1698d3){return _0x4aaac7-_0x1698d3;},'usvhj':_0x31d0ec(0x1eb),'Jzstz':'sJIhJ','PkUQF':function(_0x449196,_0xaf9234){return _0x449196(_0xaf9234);},'SERbt':'You\x20must\x20provide\x20the\x20flow\x20to\x20be\x20executed.'};if(!_0xe8d80f[_0x31d0ec(0x205)]){if(_0xfcdff9[_0x31d0ec(0x17b)]!==_0xfcdff9[_0x31d0ec(0x1ee)])throw _0xfcdff9[_0x31d0ec(0x200)](ApiGatewayError,_0xfcdff9['SERbt']);else _0x3b159d=_0xfcdff9['vpQyq'](new _0x5bf8fa(_0x298541[_0x31d0ec(0x140)]['at'])[_0x31d0ec(0x1f3)](),new _0x321daf(_0x1345be[_0x31d0ec(0x173)]['at'])[_0x31d0ec(0x1f3)]());}this['orchestrator']=_0x3edee2,this[_0x31d0ec(0x1b2)]=_0xe8d80f,this[_0x31d0ec(0x133)]=_0x250a1b,this[_0x31d0ec(0x151)]=_0x4557bb,this[_0x31d0ec(0x21d)]=_0x3edee2[_0x31d0ec(0x21d)],this[_0x31d0ec(0x13c)]=!!_0xe8d80f[_0x31d0ec(0x1fe)],this[_0x31d0ec(0x1fe)]=_0xe8d80f[_0x31d0ec(0x1fe)],this['auditFunction']=_0xe8d80f[_0x31d0ec(0x1ba)],this[_0x31d0ec(0x1d6)]=_0x1d1ca6[_0x31d0ec(0x1d6)]||new FixedWindowRateLimitService({'redisClient':this[_0x31d0ec(0x21d)]}),this[_0x31d0ec(0x172)]=_0x1d1ca6['monitorEventBus']||new MonitorEventBus({'subscribers':[new SplunkEventSubscriber({'splunkProvider':_0x250a1b}),new OpenSearchEventSubscriber({'openSearch':_0x4557bb})]});}[_0xabdb8e(0x14b)](_0x8845a8,_0x2cb7ff,_0x4022b3){const _0x39902f=_0xabdb8e,_0x8964d={'RIvrO':function(_0x57db62,_0x253c99){return _0x57db62===_0x253c99;},'haCuk':_0x39902f(0x167),'AbVrE':_0x39902f(0x211),'TCpzN':function(_0x495e6b,_0xb4c3bd){return _0x495e6b!==_0xb4c3bd;},'taokw':_0x39902f(0x17d),'uAEON':function(_0x3570f0,_0x37969e,_0x55282f,_0x3d92ae,_0x1539a0){return _0x3570f0(_0x37969e,_0x55282f,_0x3d92ae,_0x1539a0);}};let _0xa39104=this,_0x4a991a=new RouteContext(_0x8845a8,_0x2cb7ff,_0x4022b3,this[_0x39902f(0x1b2)],this[_0x39902f(0x1f9)]);metricsService[_0x39902f(0x15d)](_0x4a991a[_0x39902f(0x216)][_0x39902f(0x215)]),Util['info'](_0x39902f(0x1b6),{'method':_0x4a991a[_0x39902f(0x216)][_0x39902f(0x158)][_0x39902f(0x15e)](),'service':_0x4a991a[_0x39902f(0x216)][_0x39902f(0x215)],'url':_0x4a991a[_0x39902f(0x18f)]['url'],'uuid':_0x4a991a[_0x39902f(0x145)],'body':Util['obfuscationJSON'](_0x4a991a[_0x39902f(0x16a)]||{}),'query':_0x4a991a[_0x39902f(0x1d2)],'params':_0x4a991a['params'],'headers':Util[_0x39902f(0x150)](_0x4a991a[_0x39902f(0x1da)]||{})}),_0x4a991a['init'](),_0x4a991a['service']['setCurrentFlow'](_0x4a991a['service'][_0x39902f(0x205)][0x0]);let _0x33b88a=_0x4a991a[_0x39902f(0x14e)]();_0x8964d['uAEON'](Step,function(){const _0x247b5d=_0x39902f;_0xa39104[_0x247b5d(0x209)](_0x4a991a,this);},function(_0x367ea4){const _0x4795c3=_0x39902f;if(_0x8964d[_0x4795c3(0x21e)](_0x8964d['haCuk'],_0x8964d[_0x4795c3(0x198)])){if(this[_0x4795c3(0x1ba)]){let _0x25c5bf=_0x5bb467[_0x4795c3(0x1bf)](this['auditFunction']);_0x25c5bf[_0x4795c3(0x1b7)](_0x9b6c01);}}else Util[_0x4795c3(0x184)](_0x367ea4),_0x4a991a[_0x4795c3(0x206)]('rate-limit',_0x33b88a),_0xa39104[_0x4795c3(0x19b)](_0x4a991a,this);},function(_0x358cfe){const _0x323e49=_0x39902f;if(_0x8964d[_0x323e49(0x13b)]('fEfwJ',_0x8964d[_0x323e49(0x1aa)]))Util[_0x323e49(0x184)](_0x358cfe),_0xa39104[_0x323e49(0x175)](_0x4a991a,this);else try{if(this[_0x323e49(0x1ba)]){let _0x4674a9=_0x5a0851[_0x323e49(0x1bf)](this[_0x323e49(0x1ba)]);_0x4674a9[_0x323e49(0x1b7)](_0x4bed9b);}}catch(_0x36c4ea){_0x97c5a9[_0x323e49(0x220)](_0x323e49(0x156),_0x36c4ea);}},function(){const _0x199a81=_0x39902f;_0xa39104[_0x199a81(0x1c3)](_0x4a991a);});}[_0xabdb8e(0x1ef)](_0x4f1be8){const _0x17dcdd=_0xabdb8e;liveStreams[_0x17dcdd(0x155)]['hasSubscribers']()&&liveStreams['requests'][_0x17dcdd(0x16c)](buildRequestTailEvent(_0x4f1be8));if(!this[_0x17dcdd(0x172)][_0x17dcdd(0x1f4)]())return;const _0x42846e=new MonitorEvent(_0x4f1be8);this[_0x17dcdd(0x172)][_0x17dcdd(0x16c)](_0x42846e,_0x4f1be8);}[_0xabdb8e(0x19b)](_0x494ff4,_0x3d8443){const _0x4dc1a1=_0xabdb8e,_0x2fae64={'JkMho':function(_0x5e188f,_0x2adf17){return _0x5e188f(_0x2adf17);},'qfVzJ':function(_0xf0ab1c,_0x3a4643,_0x236829){return _0xf0ab1c(_0x3a4643,_0x236829);}};_0x2fae64[_0x4dc1a1(0x17e)](Step,function(){const _0x4a8fbf=_0x4dc1a1;ValidateSecurity[_0x4a8fbf(0x1bd)](_0x494ff4,this);},function(_0x57a5c1){const _0x6cbcae=_0x4dc1a1;_0x57a5c1&&(_0x494ff4[_0x6cbcae(0x17c)]=_0x57a5c1[_0x6cbcae(0x1c5)],_0x494ff4['error']=!![],_0x494ff4[_0x6cbcae(0x188)](_0x57a5c1)),_0x2fae64[_0x6cbcae(0x19e)](_0x3d8443,_0x57a5c1);});}['getCompileContext'](_0x1c5cd8){const _0x475306=_0xabdb8e,_0x534143={'EurqP':_0x475306(0x15c),'pMXuW':_0x475306(0x142)};let _0x4c5f4c={'name':_0x534143['EurqP'],'ownId':Util[_0x475306(0x212)](_0x1c5cd8[_0x475306(0x1da)]),'document':_0x534143[_0x475306(0x16e)],'type':_0x534143[_0x475306(0x16e)],'phoneNumber':_0x534143[_0x475306(0x16e)]};if(_0x1c5cd8['headers'][Const[_0x475306(0x1fa)][_0x475306(0x203)]])try{let _0x1ddaee=_0x1c5cd8[_0x475306(0x1da)][Const[_0x475306(0x1fa)][_0x475306(0x203)]][_0x475306(0x179)](_0x534143['pMXuW'],'')['trim'](),_0x1c02d7=Util['tryParseJSON'](Util[_0x475306(0x1ab)](_0x1ddaee[_0x475306(0x185)]('.')[0x1]));Util[_0x475306(0x1dd)](_0x1c02d7)&&(_0x4c5f4c={'name':_0x1c02d7[_0x475306(0x1ec)],'ownId':_0x1c02d7[_0x475306(0x1be)],'document':_0x1c02d7['sub'],'type':_0x1c02d7[_0x475306(0x20a)],'phoneNumber':_0x1c02d7[_0x475306(0x189)]});}catch(_0x212ad9){Util[_0x475306(0x220)](_0x475306(0x1b8),_0x212ad9);}return _[_0x475306(0x14f)](_0x1c5cd8,{'env':Env,'util':Util,'customerToken':_0x4c5f4c});}['compileRateLimitKey'](_0x380f0c){const _0x157f58=_0xabdb8e,_0x37064c=this['fixedWindowRateLimitService'][_0x157f58(0x16d)]({'serviceName':_0x380f0c[_0x157f58(0x216)][_0x157f58(0x215)],'keyTemplate':this[_0x157f58(0x1fe)][_0x157f58(0x213)],'fallbackKey':_0x380f0c['headers'][_0x157f58(0x199)],'templateContext':this[_0x157f58(0x157)](_0x380f0c)});return Util[_0x157f58(0x214)](_0x157f58(0x1fd)+this['rateLimit']['key']+_0x157f58(0x194)+_0x37064c),_0x37064c;}[_0xabdb8e(0x209)](_0x46edd5,_0x54808f){const _0x4b11cc=_0xabdb8e,_0x44c917={'PbThJ':_0x4b11cc(0x142),'elmDA':function(_0x5218d2){return _0x5218d2();},'MpxoM':function(_0x4d9ef2,_0x427e0b){return _0x4d9ef2!==_0x427e0b;},'PhAnG':'WvXLj','gSpsA':'stage=info\x20method=HandleRoute.validateRateLimit.limit','uvluv':function(_0x58621f,_0x34e2be){return _0x58621f!==_0x34e2be;},'tOWmj':'veEOj','nenSN':function(_0x17ca69){return _0x17ca69();},'pKMGt':_0x4b11cc(0x1e9),'iKZQf':_0x4b11cc(0x1ac),'Znize':_0x4b11cc(0x213),'VaIGL':'rate','RKABD':_0x4b11cc(0x183),'aFzEZ':'FTBRj'};if(!this[_0x4b11cc(0x13c)])return _0x44c917[_0x4b11cc(0x208)](_0x54808f);const _0x3a504b=Object['prototype'][_0x4b11cc(0x1b4)][_0x4b11cc(0x1d1)](this['rateLimit'],_0x44c917[_0x4b11cc(0x14c)]),_0x17dcc7=Object[_0x4b11cc(0x139)][_0x4b11cc(0x1b4)][_0x4b11cc(0x1d1)](this[_0x4b11cc(0x1fe)],_0x44c917[_0x4b11cc(0x222)]);if(!this['redisClient'][_0x4b11cc(0x163)]||!_0x3a504b||!_0x17dcc7)return _0x44c917['nenSN'](_0x54808f);let _0x1ab60c;try{_0x44c917[_0x4b11cc(0x1f0)]('UFzoV',_0x44c917[_0x4b11cc(0x1c1)])?_0x1ab60c=this['compileRateLimitKey'](_0x46edd5):_0x5df3d8=[_0x41f316];}catch(_0x43d2f6){if(_0x44c917[_0x4b11cc(0x171)]===_0x44c917['aFzEZ'])return Util['error'](_0x4b11cc(0x1a9)+(_0x46edd5[_0x4b11cc(0x216)]&&_0x46edd5[_0x4b11cc(0x216)][_0x4b11cc(0x215)]),_0x43d2f6),_0x54808f();else _0x1033ea=_0x21d321['map'](_0x373a83=>_0x373a83+';\x20'+_0x2670bb);}this[_0x4b11cc(0x1d6)]['consume']({'key':_0x1ab60c,'rate':this['rateLimit']['rate']||Environment['application'][_0x4b11cc(0x1e7)]||'40/s'})[_0x4b11cc(0x1f7)](_0x38fb4d=>{const _0x56fa60=_0x4b11cc;if(_0x44c917['MpxoM'](_0x44c917['PhAnG'],_0x44c917['PhAnG'])){let _0x9e6985=_0x47d295[_0x56fa60(0x1da)][_0x3ed56e[_0x56fa60(0x1fa)][_0x56fa60(0x203)]][_0x56fa60(0x179)](_0x44c917[_0x56fa60(0x1a0)],'')[_0x56fa60(0x144)](),_0x1481d5=_0x53fc94[_0x56fa60(0x201)](_0x4d671d[_0x56fa60(0x1ab)](_0x9e6985[_0x56fa60(0x185)]('.')[0x1]));_0x5c277c[_0x56fa60(0x1dd)](_0x1481d5)&&(_0xfb1be4={'name':_0x1481d5[_0x56fa60(0x1ec)],'ownId':_0x1481d5[_0x56fa60(0x1be)],'document':_0x1481d5['sub'],'type':_0x1481d5[_0x56fa60(0x20a)],'phoneNumber':_0x1481d5[_0x56fa60(0x189)]});}else{Util[_0x56fa60(0x214)](_0x44c917[_0x56fa60(0x13f)],_0x38fb4d);if(!_0x38fb4d[_0x56fa60(0x1a3)])return _0x44c917['uvluv'](_0x44c917['tOWmj'],_0x44c917[_0x56fa60(0x1d3)])?_0x44c917['elmDA'](_0x4d152a):_0x44c917[_0x56fa60(0x208)](_0x54808f);Util[_0x56fa60(0x220)](_0x44c917['pKMGt'],_0x38fb4d),metricsService[_0x56fa60(0x18a)](_0x46edd5[_0x56fa60(0x216)][_0x56fa60(0x215)]);const _0x501c27=new RequestTooManyRequests(_0x44c917[_0x56fa60(0x1c0)],new CreateCustomError(_0x44c917['iKZQf'],_0x56fa60(0x1f2)));_0x46edd5[_0x56fa60(0x216)][_0x56fa60(0x1a5)](_0x501c27),_0x46edd5[_0x56fa60(0x188)](_0x501c27),_0x46edd5['statusCode']=0x1ad,_0x46edd5['error']=!![],_0x54808f(_0x501c27);}})['catch'](_0x67d339=>{const _0x34ced2=_0x4b11cc;Util[_0x34ced2(0x220)](_0x34ced2(0x162),_0x67d339),_0x44c917[_0x34ced2(0x1f1)](_0x54808f);});}[_0xabdb8e(0x175)](_0x2dd3cd,_0x13cbd8){const _0x2b86fe=_0xabdb8e;Util[_0x2b86fe(0x214)]('stage=info\x20method=HandleRoute.executeFlow\x20message=Executing\x20flow(s)',{'service':_0x2dd3cd['service'][_0x2b86fe(0x215)],'totalFlow':_0x2dd3cd[_0x2b86fe(0x216)][_0x2b86fe(0x205)][_0x2b86fe(0x15f)],'contextUuid':_0x2dd3cd[_0x2b86fe(0x145)]}),this[_0x2b86fe(0x1f9)][_0x2b86fe(0x1bd)](_0x2dd3cd,_0x13cbd8);}[_0xabdb8e(0x1b9)](_0x2f829b){const _0x33bc56=_0xabdb8e,_0x1f3fab={'FmmYV':'stage=info\x20method=HandleRoute.validateRateLimit.limit','gPNAp':function(_0x53c1d8){return _0x53c1d8();},'mdrwA':_0x33bc56(0x1ac),'KIUmZ':function(_0x166f45,_0x136371){return _0x166f45(_0x136371);},'AYQWs':_0x33bc56(0x199),'noouI':_0x33bc56(0x219),'xKejR':function(_0x312c69,_0x44a1da){return _0x312c69!==_0x44a1da;},'yVlxB':_0x33bc56(0x1de),'ncVFn':function(_0x5af05e,_0x27e4f9){return _0x5af05e===_0x27e4f9;},'upYwz':'ORZan','iVQyX':function(_0x2c7848,_0x22bce5){return _0x2c7848+_0x22bce5;},'PqZTZ':_0x33bc56(0x204),'Plmyr':function(_0x1484fc,_0x32042e){return _0x1484fc!==_0x32042e;},'fejeT':_0x33bc56(0x138),'XbhCY':function(_0x360fc9,_0x2041c3){return _0x360fc9===_0x2041c3;},'kSOvf':'ERR_INVALID_CHAR','jcGFo':'string','ALoHC':function(_0x28d7fd,_0x22d7eb){return _0x28d7fd!==_0x22d7eb;},'qGLuo':'RpWfi'};let _0x2bd175=_[_0x33bc56(0x14f)]({[Const[_0x33bc56(0x1fa)][_0x33bc56(0x14d)]]:_0x2f829b['uuid'],[Const[_0x33bc56(0x1fa)][_0x33bc56(0x13d)]]:_0x1f3fab[_0x33bc56(0x15a)](sanitizeHeaderValue,_0x2f829b[_0x33bc56(0x216)][_0x33bc56(0x215)]),'Cross-Origin-Resource-Policy':_0x1f3fab[_0x33bc56(0x154)]},_0x2f829b['service']['responseHeaders']),_0x35ce8b=_0x2bd175[Const[_0x33bc56(0x1fa)][_0x33bc56(0x159)]]||this['resolveContextTypeResponse'](_0x2f829b);_0x2bd175[Const[_0x33bc56(0x1fa)][_0x33bc56(0x159)]]=_0x35ce8b,_0x2bd175[Const[_0x33bc56(0x1fa)][_0x33bc56(0x195)]]=_0x2f829b[_0x33bc56(0x135)][_0x33bc56(0x174)];let _0x1eaf08=_0x2f829b[_0x33bc56(0x216)][_0x33bc56(0x1da)][Const[_0x33bc56(0x1fa)]['SET_COOKIE']['toLocaleLowerCase']()]||{};const _0x9948a5=_0x2f829b[_0x33bc56(0x216)][_0x33bc56(0x186)][Const[_0x33bc56(0x1fa)][_0x33bc56(0x1d5)]]||_0x2f829b[_0x33bc56(0x216)][_0x33bc56(0x186)][Const[_0x33bc56(0x1fa)][_0x33bc56(0x1d5)][_0x33bc56(0x20b)]()];_0x9948a5&&(_0x1f3fab[_0x33bc56(0x170)](_0x1f3fab['yVlxB'],_0x33bc56(0x1b0))?Array[_0x33bc56(0x202)](_0x1eaf08)&&_0x1eaf08[_0x33bc56(0x15f)]?_0x1eaf08=_0x1eaf08['map'](_0x56d378=>_0x56d378+';\x20'+_0x9948a5):_0x1eaf08=[_0x9948a5]:_0x178f0d[_0x33bc56(0x220)](_0x33bc56(0x156),_0x5ba66d));if(Util[_0x33bc56(0x1cf)](_0x1eaf08)){if(_0x1f3fab[_0x33bc56(0x18d)](_0x1f3fab[_0x33bc56(0x16f)],_0x1f3fab['upYwz']))_0x2bd175=_[_0x33bc56(0x14f)](_0x2bd175,{[Const['HEADERS'][_0x33bc56(0x1d5)][_0x33bc56(0x20b)]()]:_0x1eaf08});else{_0x5c7887[_0x33bc56(0x214)](_0x1f3fab[_0x33bc56(0x21c)],_0x107676);if(!_0x4d434e['over'])return _0x1f3fab['gPNAp'](_0x3f13f5);_0x3b18f3[_0x33bc56(0x220)]('stage=error\x20method=HandleRoute.validateRateLimit.limit\x20message=Rate\x20Limit\x20Info\x20Over',_0x3c925f),_0x252340[_0x33bc56(0x18a)](_0x1ed971[_0x33bc56(0x216)][_0x33bc56(0x215)]);const _0x17ee57=new _0xf7a65(_0x1f3fab['mdrwA'],new _0x21f28f(_0x1f3fab[_0x33bc56(0x1d8)],_0x33bc56(0x1f2)));_0x3944a5[_0x33bc56(0x216)][_0x33bc56(0x1a5)](_0x17ee57),_0x2eac4b['setResult'](_0x17ee57),_0x232bde[_0x33bc56(0x17c)]=0x1ad,_0x25c6b6[_0x33bc56(0x220)]=!![],_0x1f3fab['KIUmZ'](_0x42fb0f,_0x17ee57);}}if(validContentTypes['includes'](_0x2bd175[Const[_0x33bc56(0x1fa)][_0x33bc56(0x159)]])||validContentTypes[_0x33bc56(0x14a)](_0x2bd175[Const[_0x33bc56(0x1fa)][_0x33bc56(0x159)][_0x33bc56(0x20b)]()])){let _0x31867c=_0x2f829b['service']['headers'][Const[_0x33bc56(0x1fa)][_0x33bc56(0x1cd)][_0x33bc56(0x20b)]()]||_0x2f829b[_0x33bc56(0x216)][_0x33bc56(0x1da)][Const[_0x33bc56(0x1fa)][_0x33bc56(0x1cd)]]||_0x1f3fab['iVQyX'](_0x1f3fab['PqZTZ'],new Date()['toDateString']());_0x2bd175={..._0x2bd175,[Const[_0x33bc56(0x1fa)][_0x33bc56(0x1cd)][_0x33bc56(0x20b)]()]:_0x31867c};}_0x2f829b[_0x33bc56(0x216)][_0x33bc56(0x186)]=_0x2bd175;if(!Util[_0x33bc56(0x1ae)](_0x2f829b[_0x33bc56(0x134)]())){if(_0x1f3fab[_0x33bc56(0x20f)](_0x1f3fab['fejeT'],_0x1f3fab[_0x33bc56(0x180)]))_0x2bb990[_0x33bc56(0x214)](_0x33bc56(0x19a),{'service':_0x477a72[_0x33bc56(0x216)]['name'],'totalFlow':_0x2fc041[_0x33bc56(0x216)][_0x33bc56(0x205)][_0x33bc56(0x15f)],'contextUuid':_0x42b79c[_0x33bc56(0x145)]}),this[_0x33bc56(0x1f9)][_0x33bc56(0x1bd)](_0x5ef92c,_0x196894);else{const _0x1a5aa8=Util[_0x33bc56(0x178)](_0x2f829b[_0x33bc56(0x134)]())&&!_0x2f829b[_0x33bc56(0x216)]['emptyResultAsSuccess']?Const[_0x33bc56(0x137)][_0x33bc56(0x1a4)]:_0x2f829b[_0x33bc56(0x17c)];try{_0x2f829b[_0x33bc56(0x218)][_0x33bc56(0x187)](_0x1a5aa8,_0x2f829b[_0x33bc56(0x216)][_0x33bc56(0x186)]);}catch(_0x4d60cf){if(_0x4d60cf&&_0x1f3fab[_0x33bc56(0x1e3)](_0x4d60cf[_0x33bc56(0x1bc)],_0x1f3fab[_0x33bc56(0x197)])){Util[_0x33bc56(0x220)](_0x33bc56(0x1d9),_0x4d60cf);for(const _0x5a1acb of Object[_0x33bc56(0x20d)](_0x2f829b[_0x33bc56(0x216)]['responseHeaders'])){const _0x4baf64=_0x2f829b[_0x33bc56(0x216)][_0x33bc56(0x186)][_0x5a1acb];_0x1f3fab[_0x33bc56(0x18d)](typeof _0x4baf64,_0x1f3fab[_0x33bc56(0x153)])&&(_0x2f829b['service'][_0x33bc56(0x186)][_0x5a1acb]=_0x1f3fab[_0x33bc56(0x15a)](sanitizeHeaderValue,_0x4baf64));}_0x2f829b[_0x33bc56(0x218)]['writeHead'](_0x1a5aa8,_0x2f829b[_0x33bc56(0x216)][_0x33bc56(0x186)]);}else{if(_0x1f3fab[_0x33bc56(0x1c9)](_0x1f3fab[_0x33bc56(0x165)],'ekLdP'))throw _0x4d60cf;else{const _0x5156d0=this['fixedWindowRateLimitService'][_0x33bc56(0x16d)]({'serviceName':_0x563e8a[_0x33bc56(0x216)][_0x33bc56(0x215)],'keyTemplate':this[_0x33bc56(0x1fe)][_0x33bc56(0x213)],'fallbackKey':_0x3f8f8b[_0x33bc56(0x1da)][_0x1f3fab['AYQWs']],'templateContext':this[_0x33bc56(0x157)](_0x246423)});return _0x5d189e['info'](_0x33bc56(0x1fd)+this[_0x33bc56(0x1fe)][_0x33bc56(0x213)]+_0x33bc56(0x194)+_0x5156d0),_0x5156d0;}}}}}}[_0xabdb8e(0x1af)](_0x9fd32c){const _0x3a1d07=_0xabdb8e,_0x2c250d={'gvWZy':function(_0x2be744,_0x2e998f){return _0x2be744!==_0x2e998f;},'uKVqa':function(_0x2458cb,_0x1a8a45){return _0x2458cb===_0x1a8a45;},'HKahv':'string'};if(Buffer['isBuffer'](_0x9fd32c[_0x3a1d07(0x134)]()))return Const[_0x3a1d07(0x1df)];if(_0x2c250d[_0x3a1d07(0x1e1)](_0x9fd32c[_0x3a1d07(0x134)](),null)&&typeof _0x9fd32c[_0x3a1d07(0x134)]()===_0x3a1d07(0x21a))return Const['JSON_CONTENT_TYPE_VALUE'];if(_0x2c250d['uKVqa'](_0x9fd32c[_0x3a1d07(0x134)](),_0x2c250d[_0x3a1d07(0x181)]))return Const[_0x3a1d07(0x1f6)];return Const[_0x3a1d07(0x1f6)];}[_0xabdb8e(0x1f5)](_0x50bc05){const _0x5c45c6=_0xabdb8e,_0x3cec3a={'rQQpe':function(_0x35ece6,_0x41a4c6){return _0x35ece6-_0x41a4c6;},'vpstF':function(_0x43d8df,_0x404914){return _0x43d8df===_0x404914;},'qqqje':'DCUxi','vOUdj':'nxKlX','PbgxP':function(_0x33cc25,_0x489462){return _0x33cc25!==_0x489462;},'VRbTR':_0x5c45c6(0x147),'yHNuP':_0x5c45c6(0x15b)};switch(_0x50bc05['getResult']()[_0x5c45c6(0x13e)][_0x5c45c6(0x215)]){case Const[_0x5c45c6(0x1db)][_0x5c45c6(0x168)]:_0x50bc05[_0x5c45c6(0x134)]()[_0x5c45c6(0x1cc)](_0x50bc05[_0x5c45c6(0x218)]);break;case Const['OBJECT_TYPE'][_0x5c45c6(0x1e0)]:_0x50bc05['getResult']()[_0x5c45c6(0x1cc)](_0x50bc05[_0x5c45c6(0x218)]);break;case Const['OBJECT_TYPE'][_0x5c45c6(0x136)]:_0x50bc05[_0x5c45c6(0x218)][_0x5c45c6(0x1d7)](_0x50bc05['getResult']());break;case Const[_0x5c45c6(0x1db)][_0x5c45c6(0x20c)]:_0x50bc05[_0x5c45c6(0x218)][_0x5c45c6(0x1d7)](Util[_0x5c45c6(0x1b1)](_0x50bc05[_0x5c45c6(0x134)]()));break;case Const[_0x5c45c6(0x1db)][_0x5c45c6(0x18c)]:Util[_0x5c45c6(0x1ae)](_0x50bc05['getResult']())?_0x3cec3a[_0x5c45c6(0x1bb)](_0x3cec3a[_0x5c45c6(0x149)],_0x3cec3a[_0x5c45c6(0x1a2)])?_0x5e87b4[_0x5c45c6(0x1bd)](_0x2f6a01,this):_0x50bc05[_0x5c45c6(0x218)][_0x5c45c6(0x1fb)](0x12e,_0x50bc05[_0x5c45c6(0x134)]()):_0x3cec3a[_0x5c45c6(0x20e)](_0x3cec3a[_0x5c45c6(0x1a8)],_0x3cec3a['yHNuP'])?_0x50bc05['response'][_0x5c45c6(0x1d7)](_0x50bc05[_0x5c45c6(0x134)]()):_0x414192[_0x5c45c6(0x140)]&&_0x4d1a89[_0x5c45c6(0x173)]&&(_0x35f371=_0x3cec3a[_0x5c45c6(0x1ea)](new _0x4f6351(_0x4bbc02['finished']['at'])[_0x5c45c6(0x1f3)](),new _0x2b2984(_0x2a03c2[_0x5c45c6(0x173)]['at'])[_0x5c45c6(0x1f3)]()));break;default:_0x50bc05[_0x5c45c6(0x218)]['end'](Util[_0x5c45c6(0x1b1)](_0x50bc05[_0x5c45c6(0x134)]()));}}[_0xabdb8e(0x190)](_0x31af41){const _0x391913=_0xabdb8e,_0x130ca1={'SBTBM':function(_0x21b344,_0x8d6ce3){return _0x21b344||_0x8d6ce3;},'dniGt':'sDACQ','tjvqN':'PIVpB'};if(_0x31af41['error']){let _0xfc202e=Util[_0x391913(0x1cf)](_0x31af41[_0x391913(0x216)][_0x391913(0x1f8)]['result'])?_0x31af41[_0x391913(0x216)][_0x391913(0x1f8)][_0x391913(0x141)]:_0x31af41['service']['result'],_0x320ead=_0x31af41[_0x391913(0x216)][_0x391913(0x1f8)][_0x391913(0x16b)][_0x391913(0x21b)]||!![];_0x320ead?_0x130ca1['dniGt']!==_0x130ca1[_0x391913(0x1e2)]?_0x31af41[_0x391913(0x188)](_[_0x391913(0x14f)](_0x130ca1[_0x391913(0x1ed)](_0xfc202e,{}),{'description':_0x31af41['service']['description'],'serviceName':_0x31af41[_0x391913(0x216)]['name'],'requestId':_0x31af41[_0x391913(0x145)]})):_0x43d9ad['setResult'](_0x176e95['extend'](_0x130ca1[_0x391913(0x1ed)](_0x31e4e2,{}),{'description':_0x58be92[_0x391913(0x216)]['description'],'serviceName':_0x2f74af[_0x391913(0x216)][_0x391913(0x215)],'requestId':_0x3cd071['uuid']})):_0x31af41[_0x391913(0x188)](_0xfc202e);}this[_0x391913(0x1f5)](_0x31af41);}[_0xabdb8e(0x1c3)](_0x19c777){const _0x4aeab4=_0xabdb8e;this[_0x4aeab4(0x182)](_0x19c777),this[_0x4aeab4(0x1ef)](_0x19c777),this[_0x4aeab4(0x1c8)](_0x19c777);}[_0xabdb8e(0x182)](_0x3227b5){const _0x1f2b3d=_0xabdb8e,_0x42fd34={'ezCAn':function(_0x56ef8e,_0x5cb6d0){return _0x56ef8e===_0x5cb6d0;},'lTJVH':_0x1f2b3d(0x1ff),'aoSSr':function(_0x1f4252,_0x356ce4){return _0x1f4252/_0x356ce4;}};_0x3227b5[_0x1f2b3d(0x1d7)](),this['generateHeadersDefault'](_0x3227b5),this[_0x1f2b3d(0x190)](_0x3227b5);const _0x2d5a35=_0x3227b5[_0x1f2b3d(0x135)]['duration'],_0x5299e2=_0x42fd34[_0x1f2b3d(0x192)](typeof _0x2d5a35,_0x42fd34[_0x1f2b3d(0x1e6)])?_0x42fd34[_0x1f2b3d(0x191)](_0x2d5a35,0x3e8):null;metricsService['observeHttpRequest']({'service':_0x3227b5[_0x1f2b3d(0x216)][_0x1f2b3d(0x215)],'method':_0x3227b5[_0x1f2b3d(0x216)][_0x1f2b3d(0x158)],'status':_0x3227b5['statusCode'],'durationSeconds':_0x5299e2}),metricsService['decInFlight'](_0x3227b5['service'][_0x1f2b3d(0x215)]),Util[_0x1f2b3d(0x214)]('stage=end\x20method=HandleRoute.handleResult\x20response',{'method':_0x3227b5[_0x1f2b3d(0x216)][_0x1f2b3d(0x158)]['toUpperCase'](),'service':_0x3227b5['service'][_0x1f2b3d(0x215)],'route':_0x3227b5[_0x1f2b3d(0x18f)][_0x1f2b3d(0x1ce)],'uuid':_0x3227b5['uuid'],'body':Util[_0x1f2b3d(0x207)](_0x3227b5[_0x1f2b3d(0x134)]()),'headers':_0x3227b5[_0x1f2b3d(0x216)][_0x1f2b3d(0x186)],'duration':_0x2d5a35});}['handleAudit'](_0x3f48b8){const _0x44a73a=_0xabdb8e,_0x4d915b={'xEVaf':function(_0x5de37b,_0x3f11b4){return _0x5de37b+_0x3f11b4;},'dvIlS':function(_0x1fbbc0,_0x519d54){return _0x1fbbc0===_0x519d54;},'TIins':_0x44a73a(0x1fc)};try{if(_0x4d915b[_0x44a73a(0x1e4)]('qXEDi',_0x4d915b[_0x44a73a(0x1a6)])){if(this[_0x44a73a(0x1ba)]){let _0x53181f=FunctionFactory['createFunctionByName'](this['auditFunction']);_0x53181f[_0x44a73a(0x1b7)](_0x3f48b8);}}else{let _0x1c8113=_0x28f2f2[_0x44a73a(0x216)][_0x44a73a(0x1da)][_0xb823f3['HEADERS'][_0x44a73a(0x1cd)][_0x44a73a(0x20b)]()]||_0x21e902[_0x44a73a(0x216)][_0x44a73a(0x1da)][_0x26fccb['HEADERS'][_0x44a73a(0x1cd)]]||_0x4d915b[_0x44a73a(0x1d4)](_0x44a73a(0x204),new _0x5ce83b()[_0x44a73a(0x19c)]());_0x385e95={..._0x2f32d8,[_0x5e6632[_0x44a73a(0x1fa)]['CONTENT_DISPOSITION']['toLocaleLowerCase']()]:_0x1c8113};}}catch(_0x467635){Util[_0x44a73a(0x220)](_0x44a73a(0x156),_0x467635);}}}module[_0xabdb8e(0x1e8)]=HandleRoute;
package/dist/lib/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';function _0x189d(_0x4d4edd,_0x2e1df7){_0x4d4edd=_0x4d4edd-0x14b;const _0x2154c0=_0x2154();let _0x189d34=_0x2154c0[_0x4d4edd];if(_0x189d['FzqYvp']===undefined){var _0x2f68cd=function(_0x2e8646){const _0x355fcd='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x51a5e7='',_0x3c1eff='';for(let _0x3f5f62=0x0,_0x8edb37,_0x271efd,_0x205bb0=0x0;_0x271efd=_0x2e8646['charAt'](_0x205bb0++);~_0x271efd&&(_0x8edb37=_0x3f5f62%0x4?_0x8edb37*0x40+_0x271efd:_0x271efd,_0x3f5f62++%0x4)?_0x51a5e7+=String['fromCharCode'](0xff&_0x8edb37>>(-0x2*_0x3f5f62&0x6)):0x0){_0x271efd=_0x355fcd['indexOf'](_0x271efd);}for(let _0x5d8a0f=0x0,_0x28ea89=_0x51a5e7['length'];_0x5d8a0f<_0x28ea89;_0x5d8a0f++){_0x3c1eff+='%'+('00'+_0x51a5e7['charCodeAt'](_0x5d8a0f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3c1eff);};_0x189d['uJCHuu']=_0x2f68cd,_0x189d['wZbrEy']={},_0x189d['FzqYvp']=!![];}const _0x6ab5cb=_0x2154c0[0x0],_0x5d3f28=_0x4d4edd+_0x6ab5cb,_0x5cf711=_0x189d['wZbrEy'][_0x5d3f28];return!_0x5cf711?(_0x189d34=_0x189d['uJCHuu'](_0x189d34),_0x189d['wZbrEy'][_0x5d3f28]=_0x189d34):_0x189d34=_0x5cf711,_0x189d34;}const _0x1b4617=_0x189d;(function(_0x16b49d,_0x171d42){const _0x4c13cb=_0x189d,_0x72d709=_0x16b49d();while(!![]){try{const _0x38c721=-parseInt(_0x4c13cb(0x16f))/0x1*(-parseInt(_0x4c13cb(0x14e))/0x2)+parseInt(_0x4c13cb(0x152))/0x3*(-parseInt(_0x4c13cb(0x154))/0x4)+-parseInt(_0x4c13cb(0x150))/0x5+parseInt(_0x4c13cb(0x17e))/0x6+-parseInt(_0x4c13cb(0x173))/0x7*(-parseInt(_0x4c13cb(0x177))/0x8)+parseInt(_0x4c13cb(0x161))/0x9*(-parseInt(_0x4c13cb(0x17c))/0xa)+-parseInt(_0x4c13cb(0x164))/0xb;if(_0x38c721===_0x171d42)break;else _0x72d709['push'](_0x72d709['shift']());}catch(_0x1dfe04){_0x72d709['push'](_0x72d709['shift']());}}}(_0x2154,0x9181f));function _0x2154(){const _0x424008=['lI91DgLSCY9JB21TB25ZlwnVBNn0','zxHWB3j0CW','ow1lqxfUrq','BwfJAgLUzuHVC3royw1L','lI9VyNnLCNzHyMLSAxr5l3n1yNnJCMLIzxjZl29Wzw5ZzwfYy2GTzxzLBNqTC3vIC2nYAwjLCG','nZi0mtyZAuvpq09A','lI9Zzxj2AwnLCY9JB25ZDw1LCI1Zzxj2AwnL','lI9Zzwn1CML0Es9YyxrLlwXPBwL0zxi','CYbYC3m9','CM91BMq','CgLK','s0D5tvi','yxbWBgLJyxrPB24','u0Lhvevstq','zxHPDa','lI9LBNzPCM9UBwvUDa','mtbXEef5uxq','BMv4DfrPy2S','Bxvtr1O','zg90zw52','nJmWrMX4we9N','Dw5JyxvNAhrfEgnLChrPB24','lI9Zzxj2AwnLCY9XDw90ys1Zzxj2AwnL','lI9Zzwn1CML0Es9QD3qTDxrPBa','ntiZnJH1vfzYsMu','lI9VyNnLCNzHyMLSAxr5l21VBML0B3iTzxzLBNqTyNvZ','AgvHCfrVDgfS','C3rHz2u9zxjYB3iGBwv0Ag9KpxvUy2f1z2H0rxHJzxb0Aw9UigvYCM9Ypq','y29UzMLN','otuWmJKWBKXbt2jw','C3rHz2u9zxjYB3iGBwv0Ag9Kpvnjr1rfuK0GCgLKpq','ntyYndu2mNffqxbRyq','CNnZ','zw52','BwvTB3j5vxnHz2u','ndG4ntb1A2jcrgK','lI91DgLSCY9JB21TB25Zlxv0AwW','mZa0oty0meDsCuDXCq','lI9ZDg9YywDLl2TLEs12ywX1zs1ZDg9YywDL','ndy0nhz4vuTIDa','tuiGAgvHCfvZzwq9','mta0nfndu2rnCa','tK9erv9ftLy','lI91DgLSCY9JB21TB25ZlwnHy2HL','zxjYB3i','lI9VyNnLCNzHyMLSAxr5l3n1yNnJCMLIzxjZl3nWBhvUAY1LDMvUDc1ZDwjZy3jPyMvY','ihvWDgLTzt0','lI91DgLSCY9JB21TB25ZlwvYCM9YCW','lI9VyNnLCNzHyMLSAxr5l3n1yNnJCMLIzxjZl21VBML0B3iTzxzLBNqTC3vIC2nYAwjLCG','lI9Zzxj2AwnLCY9YyxrLlwXPBwL0lxnLCNzPy2u','ChjVzhvJDgLVBG','lI9Zzxj2AwnLCY9HCgKTA2v5lxnLCNzPy2u'];_0x2154=function(){return _0x424008;};return _0x2154();}require(_0x1b4617(0x172))[_0x1b4617(0x17b)]();const APIGateway=require('./factory/api-gateway'),Environment=require(_0x1b4617(0x16e)),Util=require(_0x1b4617(0x14f)),JWTUtil=require(_0x1b4617(0x176)),{apiKeyValidator}=require('./security/api-key-validator'),{rateLimiter}=require(_0x1b4617(0x166)),{quotaEnforcer}=require('./security/quota-enforcer'),Errors=require(_0x1b4617(0x15a)),ClientFactory=require('./factory/client-factory'),CommonsCache=require(_0x1b4617(0x156)),KeyValueStorage=require(_0x1b4617(0x151)),{ConsumerService}=require(_0x1b4617(0x165)),{ApiKeyService}=require(_0x1b4617(0x15e)),{RateLimitService}=require(_0x1b4617(0x15c)),{QuotaService}=require(_0x1b4617(0x175)),Const=require(_0x1b4617(0x15f)),DocumentUtils=require('./utils/document-utils'),MonitorEvent=require('./observability/monitor-event'),MonitorEventBus=require(_0x1b4617(0x178)),MonitorEventSubscriber=require(_0x1b4617(0x15b)),OpenSearchEventSubscriber=require(_0x1b4617(0x163)),SplunkEventSubscriber=require(_0x1b4617(0x158)),RedisEventSubscriber=require('./observability/subscribers/redis-event-subscriber');process[_0x1b4617(0x14c)][_0x1b4617(0x155)]===_0x1b4617(0x15d)&&process['on'](_0x1b4617(0x174),function(_0x5a2d21){const _0x21e458=_0x1b4617;Util[_0x21e458(0x157)](_0x21e458(0x17a)+Util['stringifyInfo'](_0x5a2d21)),console['error'](_0x5a2d21);});process['on'](_0x1b4617(0x16c),function(){const _0x2426d2=_0x1b4617,_0x59e89a={'muSGZ':function(_0x5c1116,_0x41abd0){return _0x5c1116/_0x41abd0;},'KGyMR':function(_0x5320ad,_0x346d44){return _0x5320ad/_0x346d44;}},_0x3e24ba=process[_0x2426d2(0x14d)]();Util[_0x2426d2(0x157)](_0x2426d2(0x17d)+process[_0x2426d2(0x169)]+_0x2426d2(0x159)+Math[_0x2426d2(0x168)](process['uptime']())+_0x2426d2(0x167)+Math['round'](_0x59e89a[_0x2426d2(0x171)](_0x59e89a[_0x2426d2(0x171)](_0x3e24ba[_0x2426d2(0x14b)],0x400),0x400))+_0x2426d2(0x153)+Math[_0x2426d2(0x168)](_0x59e89a[_0x2426d2(0x16a)](_0x3e24ba['heapUsed']/0x400,0x400))+'MB\x20heapTotal='+Math[_0x2426d2(0x168)](_0x59e89a[_0x2426d2(0x16a)](_0x59e89a[_0x2426d2(0x171)](_0x3e24ba[_0x2426d2(0x179)],0x400),0x400))+'MB\x20host='+Util[_0x2426d2(0x17b)][_0x2426d2(0x162)]),process[_0x2426d2(0x16d)](0x0);}),process[_0x1b4617(0x170)](function memory(){const _0x617161=_0x1b4617,_0x19cfed={'pfDCs':function(_0x54cd26,_0x387fcc){return _0x54cd26/_0x387fcc;}};Util['warning']('stage=info\x20method=memory\x20rss='+Math['round'](_0x19cfed['pfDCs'](process[_0x617161(0x14d)]()['rss']/0x400,0x400))+'MB'),setTimeout(memory,Environment[_0x617161(0x16b)]['memoryCheckInterval']);}),module[_0x1b4617(0x160)]={'APIGateway':APIGateway,'Environment':Environment,'Const':Const,'Util':Util,'JWTUtil':JWTUtil,'ApiKeyValidator':apiKeyValidator,'RateLimiter':rateLimiter,'QuotaEnforcer':quotaEnforcer,'Errors':Errors,'ClientFactory':ClientFactory,'CommonsCache':CommonsCache,'KeyValueStorage':KeyValueStorage,'ConsumerService':ConsumerService,'ApiKeyService':ApiKeyService,'RateLimitService':RateLimitService,'QuotaService':QuotaService,'DocumentUtils':DocumentUtils,'Models':{'MonitorEvent':MonitorEvent},'Observability':{'MonitorEvent':MonitorEvent,'MonitorEventBus':MonitorEventBus,'Subscribers':{'MonitorEventSubscriber':MonitorEventSubscriber,'OpenSearchEventSubscriber':OpenSearchEventSubscriber,'SplunkEventSubscriber':SplunkEventSubscriber,'RedisEventSubscriber':RedisEventSubscriber}}};
2
+ 'use strict';function _0x3422(){const _0x1f419e=['lI9VyNnLCNzHyMLSAxr5l21VBML0B3iTzxzLBNqTyNvZ','mJz1rKzNAgW','tuiGAgvHCfrVDgfSpq','ndaXmtDjCgjQuKi','yxbWBgLJyxrPB24','CLHZvKS','otfrBuDqv1i','mtyZntG5mxvkyw1IwG','ihvWDgLTzt0','lI9VyNnLCNzHyMLSAxr5l3n1yNnJCMLIzxjZl3jLzgLZlwv2zw50lxn1yNnJCMLIzxi','tuiGAg9ZDd0','Dw5JyxvNAhrfEgnLChrPB24','zw52','AgvHCfvZzwq','lI9Zzxj2AwnLCY9HCgKTA2v5lxnLCNzPy2u','CYbYC3m9','CNnZ','lI91DgLSCY9JB21TB25ZlwnVBNn0','DePUt2y','lI9VyNnLCNzHyMLSAxr5l3n1yNnJCMLIzxjZl3nWBhvUAY1LDMvUDc1ZDwjZy3jPyMvY','lI9ZDg9YywDLl2TLEs12ywX1zs1ZDg9YywDL','CgLK','C3rHz2u9zxjYB3iGBwv0Ag9Kpvnjr1rfuK0GCgLKpq','lI91DgLSCY9JB21TB25ZlwvYCM9YCW','zxHPDa','lI9Zzxj2AwnLCY9YyxrLlwXPBwL0lxnLCNzPy2u','mJy4nta0DeDAELrg','tKTZCuS','C3rHz2u9Aw5MBYbTzxrOB2q9BwvTB3j5ihjZCZ0','u0Lhvevstq','lI91DgLSCY9KB2n1BwvUDc11DgLSCW','ChjVzhvJDgLVBG','BMv4DfrPy2S','C3rHz2u9zxjYB3iGBwv0Ag9KpxvUy2f1z2H0rxHJzxb0Aw9UigvYCM9Ypq','mteZmZG3me52wLjZBa','lI91DgLSCY9JB21TB25ZlwnHy2HL','tK9erv9ftLy','lI9LBNzPCM9UBwvUDa','CM91BMq','tuiGAgvHCfvZzwq9','y29UzMLN','lI91DgLSCY9JB21TB25Zlxv0AwW','lI9VyNnLCNzHyMLSAxr5l3n1yNnJCMLIzxjZl21VBML0B3iTzxzLBNqTC3vIC2nYAwjLCG','zg90zw52','lI9Mywn0B3j5l2fWAs1NyxrLD2f5','BwvTB3j5q2HLy2TjBNrLCNzHBa','ody0nty5n3HWuK9SsG','mJKYnJG0odbyv0nwrui','lI9Zzwn1CML0Es9XDw90ys1LBMzVCMnLCG','zxHWB3j0CW','lI9VyNnLCNzHyMLSAxr5l21VBML0B3iTzxzLBNq','zxjYB3i','lI9Zzxj2AwnLCY9XDw90ys1Zzxj2AwnL','BwfJAgLUzuHVC3royw1L','mtjhChvMt24','D2fYBMLUzW','oduXmZeXofvfDMjzua'];_0x3422=function(){return _0x1f419e;};return _0x3422();}function _0x2047(_0x1b310d,_0x212488){_0x1b310d=_0x1b310d-0x1bc;const _0x342285=_0x3422();let _0x20473c=_0x342285[_0x1b310d];if(_0x2047['ZLlMGr']===undefined){var _0x2772b6=function(_0x233bc0){const _0x4b10e9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3d8498='',_0x4c11d0='';for(let _0x133981=0x0,_0xb71b7b,_0x1cc44f,_0x5606a1=0x0;_0x1cc44f=_0x233bc0['charAt'](_0x5606a1++);~_0x1cc44f&&(_0xb71b7b=_0x133981%0x4?_0xb71b7b*0x40+_0x1cc44f:_0x1cc44f,_0x133981++%0x4)?_0x3d8498+=String['fromCharCode'](0xff&_0xb71b7b>>(-0x2*_0x133981&0x6)):0x0){_0x1cc44f=_0x4b10e9['indexOf'](_0x1cc44f);}for(let _0x279b88=0x0,_0x55c37f=_0x3d8498['length'];_0x279b88<_0x55c37f;_0x279b88++){_0x4c11d0+='%'+('00'+_0x3d8498['charCodeAt'](_0x279b88)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4c11d0);};_0x2047['IThYWs']=_0x2772b6,_0x2047['qqGtoW']={},_0x2047['ZLlMGr']=!![];}const _0x2e8c4b=_0x342285[0x0],_0x500069=_0x1b310d+_0x2e8c4b,_0x3c2407=_0x2047['qqGtoW'][_0x500069];return!_0x3c2407?(_0x20473c=_0x2047['IThYWs'](_0x20473c),_0x2047['qqGtoW'][_0x500069]=_0x20473c):_0x20473c=_0x3c2407,_0x20473c;}const _0x14b32a=_0x2047;(function(_0x108700,_0x169175){const _0x1f4d61=_0x2047,_0x565d98=_0x108700();while(!![]){try{const _0x5c7b89=-parseInt(_0x1f4d61(0x1cd))/0x1*(-parseInt(_0x1f4d61(0x1cb))/0x2)+-parseInt(_0x1f4d61(0x1d1))/0x3+-parseInt(_0x1f4d61(0x1c7))/0x4*(-parseInt(_0x1f4d61(0x1ec))/0x5)+-parseInt(_0x1f4d61(0x1c9))/0x6+-parseInt(_0x1f4d61(0x1d0))/0x7*(parseInt(_0x1f4d61(0x1e4))/0x8)+-parseInt(_0x1f4d61(0x1bf))/0x9+parseInt(_0x1f4d61(0x1c0))/0xa;if(_0x5c7b89===_0x169175)break;else _0x565d98['push'](_0x565d98['shift']());}catch(_0x9dc2a4){_0x565d98['push'](_0x565d98['shift']());}}}(_0x3422,0xbb665));require(_0x14b32a(0x1bc))[_0x14b32a(0x1f2)]();const APIGateway=require(_0x14b32a(0x1bd)),Environment=require(_0x14b32a(0x1ef)),Util=require(_0x14b32a(0x1f3)),JWTUtil=require('./security/jwt-util'),{apiKeyValidator}=require('./security/api-key-validator'),{rateLimiter}=require('./security/rate-limiter'),{quotaEnforcer}=require(_0x14b32a(0x1c1)),Errors=require(_0x14b32a(0x1e1)),ClientFactory=require('./factory/client-factory'),CommonsCache=require(_0x14b32a(0x1ed)),KeyValueStorage=require(_0x14b32a(0x1de)),{ConsumerService}=require('./services/consumer-service'),{ApiKeyService}=require(_0x14b32a(0x1d8)),{RateLimitService}=require(_0x14b32a(0x1e3)),{QuotaService}=require(_0x14b32a(0x1c5)),Const=require(_0x14b32a(0x1db)),DocumentUtils=require(_0x14b32a(0x1e8)),MonitorEvent=require(_0x14b32a(0x1c3)),MonitorEventBus=require(_0x14b32a(0x1ca)),MonitorEventSubscriber=require(_0x14b32a(0x1f4)),OpenSearchEventSubscriber=require('./observability/subscribers/opensearch-event-subscriber'),SplunkEventSubscriber=require(_0x14b32a(0x1dd)),RedisEventSubscriber=require(_0x14b32a(0x1d3));process[_0x14b32a(0x1d6)][_0x14b32a(0x1ee)]===_0x14b32a(0x1e9)&&process['on'](_0x14b32a(0x1d5),function(_0xf8cdcf){const _0x131505=_0x14b32a;Util[_0x131505(0x1c4)](_0x131505(0x1eb)+Util['stringifyInfo'](_0xf8cdcf)),console[_0x131505(0x1c4)](_0xf8cdcf);});process['on'](_0x14b32a(0x1e7),function(){const _0x25118e=_0x14b32a,_0x345766={'lTalh':function(_0x3a4cf1,_0x42cf16){return _0x3a4cf1/_0x42cf16;},'NKsqK':function(_0x1133d2,_0x565245){return _0x1133d2/_0x565245;}},_0x250288=process['memoryUsage']();Util[_0x25118e(0x1c4)](_0x25118e(0x1e0)+process[_0x25118e(0x1df)]+_0x25118e(0x1d2)+Math['round'](process['uptime']())+_0x25118e(0x1d9)+Math['round'](_0x345766['lTalh'](_0x345766[_0x25118e(0x1e5)](_0x250288[_0x25118e(0x1da)],0x400),0x400))+_0x25118e(0x1f1)+Math['round'](_0x250288[_0x25118e(0x1d7)]/0x400/0x400)+_0x25118e(0x1cc)+Math[_0x25118e(0x1f0)](_0x250288['heapTotal']/0x400/0x400)+_0x25118e(0x1d4)+Util[_0x25118e(0x1f2)][_0x25118e(0x1c6)]),process[_0x25118e(0x1e2)](0x0);}),process[_0x14b32a(0x1ea)](function memory(){const _0x67a815=_0x14b32a,_0x12e79b={'tJnOf':function(_0x2a9030,_0x2a4f4b){return _0x2a9030/_0x2a4f4b;},'rXsVK':function(_0xf6ba30,_0x22f0bf,_0x3c8778){return _0xf6ba30(_0x22f0bf,_0x3c8778);}};Util[_0x67a815(0x1c8)](_0x67a815(0x1e6)+Math[_0x67a815(0x1f0)](_0x12e79b[_0x67a815(0x1dc)](_0x12e79b[_0x67a815(0x1dc)](process['memoryUsage']()[_0x67a815(0x1da)],0x400),0x400))+'MB'),_0x12e79b[_0x67a815(0x1cf)](setTimeout,memory,Environment[_0x67a815(0x1ce)][_0x67a815(0x1be)]);}),module[_0x14b32a(0x1c2)]={'APIGateway':APIGateway,'Environment':Environment,'Const':Const,'Util':Util,'JWTUtil':JWTUtil,'ApiKeyValidator':apiKeyValidator,'RateLimiter':rateLimiter,'QuotaEnforcer':quotaEnforcer,'Errors':Errors,'ClientFactory':ClientFactory,'CommonsCache':CommonsCache,'KeyValueStorage':KeyValueStorage,'ConsumerService':ConsumerService,'ApiKeyService':ApiKeyService,'RateLimitService':RateLimitService,'QuotaService':QuotaService,'DocumentUtils':DocumentUtils,'Models':{'MonitorEvent':MonitorEvent},'Observability':{'MonitorEvent':MonitorEvent,'MonitorEventBus':MonitorEventBus,'Subscribers':{'MonitorEventSubscriber':MonitorEventSubscriber,'OpenSearchEventSubscriber':OpenSearchEventSubscriber,'SplunkEventSubscriber':SplunkEventSubscriber,'RedisEventSubscriber':RedisEventSubscriber}}};
@@ -1 +1 @@
1
- 'use strict';function _0x3984(_0x58a0bb,_0x4c3053){_0x58a0bb=_0x58a0bb-0x10b;const _0x78855c=_0x7885();let _0x398431=_0x78855c[_0x58a0bb];if(_0x3984['VrIESr']===undefined){var _0x52e6dc=function(_0x232f5e){const _0xfd329f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x9544b0='',_0x228fd6='';for(let _0xa45774=0x0,_0x50191a,_0x5ed9ae,_0x33a259=0x0;_0x5ed9ae=_0x232f5e['charAt'](_0x33a259++);~_0x5ed9ae&&(_0x50191a=_0xa45774%0x4?_0x50191a*0x40+_0x5ed9ae:_0x5ed9ae,_0xa45774++%0x4)?_0x9544b0+=String['fromCharCode'](0xff&_0x50191a>>(-0x2*_0xa45774&0x6)):0x0){_0x5ed9ae=_0xfd329f['indexOf'](_0x5ed9ae);}for(let _0x5523d3=0x0,_0x513543=_0x9544b0['length'];_0x5523d3<_0x513543;_0x5523d3++){_0x228fd6+='%'+('00'+_0x9544b0['charCodeAt'](_0x5523d3)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x228fd6);};_0x3984['XYEBqQ']=_0x52e6dc,_0x3984['zcSkqt']={},_0x3984['VrIESr']=!![];}const _0x855dd2=_0x78855c[0x0],_0x35422c=_0x58a0bb+_0x855dd2,_0x1573c3=_0x3984['zcSkqt'][_0x35422c];return!_0x1573c3?(_0x398431=_0x3984['XYEBqQ'](_0x398431),_0x3984['zcSkqt'][_0x35422c]=_0x398431):_0x398431=_0x1573c3,_0x398431;}const _0x7b8269=_0x3984;(function(_0x2d3591,_0x45a2a4){const _0x546f94=_0x3984,_0x5203b5=_0x2d3591();while(!![]){try{const _0x3d40eb=-parseInt(_0x546f94(0x10d))/0x1*(-parseInt(_0x546f94(0x114))/0x2)+-parseInt(_0x546f94(0x113))/0x3*(parseInt(_0x546f94(0x12f))/0x4)+parseInt(_0x546f94(0x11b))/0x5+parseInt(_0x546f94(0x12d))/0x6+parseInt(_0x546f94(0x12c))/0x7*(parseInt(_0x546f94(0x11c))/0x8)+parseInt(_0x546f94(0x128))/0x9*(-parseInt(_0x546f94(0x11a))/0xa)+parseInt(_0x546f94(0x123))/0xb;if(_0x3d40eb===_0x45a2a4)break;else _0x5203b5['push'](_0x5203b5['shift']());}catch(_0x2068b3){_0x5203b5['push'](_0x5203b5['shift']());}}}(_0x7885,0x6a3eb));const Util=require(_0x7b8269(0x117)),{Client}=require(_0x7b8269(0x124)),HOST_DEFAULT='localhost:9200';function _0x7885(){const _0x254f38=['mtK0nde4y1fvBenh','mtiWodGYvenQzLLO','wNbus3O','mtzzrxDqwNe','AxnfBMfIBgvK','AhnHsKy','mtDYsLPnqM4','u0fesNy','y2fSBa','zwXHC3rPy1nLyxjJAa','AgfZt3DUuhjVCgvYDhK','vfroEwS','mZK1mJaYuLLAq0jp','nta5odbLtNPlANe','Aw5MBW','z2v0sw5ZDgfUy2u','lI4VDxrPBhmVy29TBw9UCY11DgLS','zw5HyMXLza','C3rHz2u9Aw5PDcbTzxrOB2q9rwXHC3rPy1nLyxjJAc5JB25ZDhj1y3rVCIbTzxnZywDLpunYzwf0Aw5NievSyxn0AwntzwfYy2GGsw5ZDgfUy2uGAg9ZDd0','mtbhshbMtLm','otCYndaWweTIs0z4','ntztzwrbEMK','zw5HyMXLrwXHC3rPy1nLyxjJAa','Aw5ZDgfUy2u','vwr3DKW','uuDkrfy','EeHqse0','yxv0Aa','mJK4ndaYnurhsNrrsW','zwXHC3rPy3nLyxjJAa','uNP5ELO','Ag9ZDa','DxnLCG','mtm2mZGXnuHstKjTvW','CgfZC3DVCMq','y3jLyxrLq2XPzw50','ChjVDg90ExbL'];_0x7885=function(){return _0x254f38;};return _0x7885();}class ElasticSearch{constructor(_0x2df400){const _0x54b91c=_0x7b8269,_0x465759={'qXhJa':_0x54b91c(0x10c),'udhCv':'elasticSearch','SADJv':'tHecB','UdwvL':_0x54b91c(0x121),'RzyzZ':function(_0x43159f,_0x14bb10){return _0x43159f===_0x14bb10;},'TTNyk':_0x54b91c(0x12e)};this['instance']=null,this[_0x54b91c(0x118)]=Object[_0x54b91c(0x12b)][_0x54b91c(0x111)][_0x54b91c(0x10f)](_0x2df400,'enableElasticSearch')?_0x2df400[_0x54b91c(0x11d)]:![];if(this[_0x54b91c(0x118)]){if(_0x465759['qXhJa']===_0x54b91c(0x120)){_0x19042d[_0x54b91c(0x115)]('stage=init\x20method=ElasticSearch.constructor\x20message=Creating\x20ElasticSearch\x20Instance\x20host='+(_0x59738a['elasticSearch'][_0x54b91c(0x126)]||_0x5c6c11));let _0x4f917d=_0x38bd61[_0x54b91c(0x110)];const _0x15f494={'host':_0x4f917d[_0x54b91c(0x126)]||_0x3b1077};_0x4f917d[_0x54b91c(0x127)]&&_0x4f917d[_0x54b91c(0x129)]&&(_0x15f494[_0x54b91c(0x122)]={'username':_0x4f917d['user'],'password':_0x4f917d['password']}),this[_0x54b91c(0x11e)]=new _0x2142d8(_0x15f494);}else{let _0x1aa57e=Object[_0x54b91c(0x12b)][_0x54b91c(0x111)][_0x54b91c(0x10f)](_0x2df400,_0x465759['udhCv']);if(_0x1aa57e){if(_0x465759['SADJv']===_0x465759[_0x54b91c(0x10e)]){Util[_0x54b91c(0x115)](_0x54b91c(0x119)+(_0x2df400[_0x54b91c(0x110)]['host']||HOST_DEFAULT));let _0x165d01=_0x2df400[_0x54b91c(0x110)];const _0x29e609={'host':_0x165d01[_0x54b91c(0x126)]||HOST_DEFAULT};if(_0x165d01[_0x54b91c(0x127)]&&_0x165d01[_0x54b91c(0x129)]){if(_0x465759[_0x54b91c(0x11f)]!==_0x465759[_0x54b91c(0x11f)])return new _0x33deb9(_0x1e338b);else _0x29e609[_0x54b91c(0x122)]={'username':_0x165d01[_0x54b91c(0x127)],'password':_0x165d01[_0x54b91c(0x129)]};}this[_0x54b91c(0x11e)]=new Client(_0x29e609);}else return this[_0x54b91c(0x118)];}}}else _0x465759[_0x54b91c(0x125)](_0x465759[_0x54b91c(0x112)],'ZpTKz')?this[_0x54b91c(0x118)]=![]:this['enabled']=![];}[_0x7b8269(0x116)](){return this['instance'];}[_0x7b8269(0x10b)](){const _0x13e759=_0x7b8269;return this[_0x13e759(0x118)];}}exports[_0x7b8269(0x12a)]=function(_0x458b22){return new ElasticSearch(_0x458b22);};
1
+ 'use strict';const _0x2e4816=_0x4e1e;(function(_0x1b27b1,_0x200523){const _0x58f58d=_0x4e1e,_0x3dd053=_0x1b27b1();while(!![]){try{const _0x4191f4=parseInt(_0x58f58d(0x162))/0x1+-parseInt(_0x58f58d(0x15b))/0x2*(-parseInt(_0x58f58d(0x145))/0x3)+-parseInt(_0x58f58d(0x15d))/0x4+-parseInt(_0x58f58d(0x169))/0x5*(parseInt(_0x58f58d(0x147))/0x6)+parseInt(_0x58f58d(0x15a))/0x7*(parseInt(_0x58f58d(0x150))/0x8)+-parseInt(_0x58f58d(0x14d))/0x9*(parseInt(_0x58f58d(0x151))/0xa)+parseInt(_0x58f58d(0x160))/0xb*(parseInt(_0x58f58d(0x155))/0xc);if(_0x4191f4===_0x200523)break;else _0x3dd053['push'](_0x3dd053['shift']());}catch(_0x41a544){_0x3dd053['push'](_0x3dd053['shift']());}}}(_0x34ab,0x32aa0));function _0x4e1e(_0x49dfb6,_0x30ad96){_0x49dfb6=_0x49dfb6-0x142;const _0x34abb3=_0x34ab();let _0x4e1ec8=_0x34abb3[_0x49dfb6];if(_0x4e1e['sWwtHQ']===undefined){var _0x3df7de=function(_0xff29d1){const _0x10ca1b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4b551c='',_0x80430a='';for(let _0x1ce153=0x0,_0x30c37f,_0x2b25d0,_0x2249bb=0x0;_0x2b25d0=_0xff29d1['charAt'](_0x2249bb++);~_0x2b25d0&&(_0x30c37f=_0x1ce153%0x4?_0x30c37f*0x40+_0x2b25d0:_0x2b25d0,_0x1ce153++%0x4)?_0x4b551c+=String['fromCharCode'](0xff&_0x30c37f>>(-0x2*_0x1ce153&0x6)):0x0){_0x2b25d0=_0x10ca1b['indexOf'](_0x2b25d0);}for(let _0x19e6af=0x0,_0x35c054=_0x4b551c['length'];_0x19e6af<_0x35c054;_0x19e6af++){_0x80430a+='%'+('00'+_0x4b551c['charCodeAt'](_0x19e6af)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x80430a);};_0x4e1e['BeNEpu']=_0x3df7de,_0x4e1e['VpyanF']={},_0x4e1e['sWwtHQ']=!![];}const _0x15380e=_0x34abb3[0x0],_0x35c1da=_0x49dfb6+_0x15380e,_0x5d3b3f=_0x4e1e['VpyanF'][_0x35c1da];return!_0x5d3b3f?(_0x4e1ec8=_0x4e1e['BeNEpu'](_0x4e1ec8),_0x4e1e['VpyanF'][_0x35c1da]=_0x4e1ec8):_0x4e1ec8=_0x5d3b3f,_0x4e1ec8;}const Util=require(_0x2e4816(0x164)),{Client}=require(_0x2e4816(0x168)),HOST_DEFAULT=_0x2e4816(0x142);class ElasticSearch{constructor(_0x55ad90){const _0x450d32=_0x2e4816,_0x126914={'MlEOm':_0x450d32(0x14b),'qmjHK':_0x450d32(0x157),'SoNcH':'elasticSearch','FhqqE':function(_0x339479,_0x5cda34){return _0x339479===_0x5cda34;},'nhjHX':_0x450d32(0x15f),'RUylj':function(_0x5e7792,_0x1bb48e){return _0x5e7792!==_0x1bb48e;},'AhHec':_0x450d32(0x167),'VVhQw':'deCAP'};this['instance']=null,this[_0x450d32(0x152)]=Object[_0x450d32(0x156)][_0x450d32(0x149)][_0x450d32(0x165)](_0x55ad90,_0x126914[_0x450d32(0x154)])?_0x55ad90['enableElasticSearch']:![];if(this[_0x450d32(0x152)]){if(_0x450d32(0x166)!==_0x126914[_0x450d32(0x146)]){let _0x74f203=Object[_0x450d32(0x156)][_0x450d32(0x149)][_0x450d32(0x165)](_0x55ad90,_0x126914[_0x450d32(0x148)]);if(_0x74f203){Util['info'](_0x450d32(0x161)+(_0x55ad90[_0x450d32(0x14f)][_0x450d32(0x15e)]||HOST_DEFAULT));let _0x4d6220=_0x55ad90['elasticSearch'];const _0x223804={'host':_0x4d6220[_0x450d32(0x15e)]||HOST_DEFAULT};if(_0x4d6220[_0x450d32(0x143)]&&_0x4d6220[_0x450d32(0x153)]){if(_0x126914['FhqqE'](_0x450d32(0x14e),_0x126914[_0x450d32(0x14a)]))return this['enabled'];else _0x223804[_0x450d32(0x163)]={'username':_0x4d6220[_0x450d32(0x143)],'password':_0x4d6220[_0x450d32(0x153)]};}this['instance']=new Client(_0x223804);}}else{_0x301fdf[_0x450d32(0x15c)]('stage=init\x20method=ElasticSearch.constructor\x20message=Creating\x20ElasticSearch\x20Instance\x20host='+(_0x40b04a[_0x450d32(0x14f)][_0x450d32(0x15e)]||_0x423b49));let _0x59d875=_0x2751f8[_0x450d32(0x14f)];const _0x552221={'host':_0x59d875[_0x450d32(0x15e)]||_0x15834e};_0x59d875[_0x450d32(0x143)]&&_0x59d875[_0x450d32(0x153)]&&(_0x552221[_0x450d32(0x163)]={'username':_0x59d875[_0x450d32(0x143)],'password':_0x59d875['password']}),this[_0x450d32(0x158)]=new _0x17e090(_0x552221);}}else{if(_0x126914['RUylj'](_0x126914['AhHec'],_0x126914[_0x450d32(0x159)]))this[_0x450d32(0x152)]=![];else return this['instance'];}}[_0x2e4816(0x144)](){const _0x1dea51=_0x2e4816;return this[_0x1dea51(0x158)];}[_0x2e4816(0x14c)](){return this['enabled'];}}function _0x34ab(){const _0xa48350=['otLWsLPOt2y','Bvn5D2G','zwXHC3rPy1nLyxjJAa','mZy0nZeYv3jbz3ng','mtCWmteWzu9msvL1','zw5HyMXLza','CgfZC3DVCMq','twXft20','mtaXmtC1nLzeBufNEG','ChjVDg90ExbL','tLjSA0G','Aw5ZDgfUy2u','vLzOuxC','mtrnB1LbA0m','mMnuugnZtq','Aw5MBW','mte5mZK5nKTODvDesa','Ag9ZDa','DxP0zwq','ndrMy1HouMe','C3rHz2u9Aw5PDcbTzxrOB2q9rwXHC3rPy1nLyxjJAc5JB25ZDhj1y3rVCIbTzxnZywDLpunYzwf0Aw5NievSyxn0AwntzwfYy2GGsw5ZDgfUy2uGAg9ZDd0','mZeXodaZwNnNs0fq','yxv0Aa','lI4VDxrPBhmVy29TBw9UCY11DgLS','y2fSBa','swjdyvC','Dejztxm','zwXHC3rPy3nLyxjJAa','mtq0odvJAfrpz3K','Bg9JywXOB3n0oJKYmda','DxnLCG','z2v0sw5ZDgfUy2u','odG0mJu5rLb4vMTc','Cw1QseS','nZa4vMnuCvrn','u29oy0G','AgfZt3DUuhjVCgvYDhK','BMHQsfG','zw5HyMXLrwXHC3rPy1nLyxjJAa','AxnfBMfIBgvK'];_0x34ab=function(){return _0xa48350;};return _0x34ab();}exports['createClient']=function(_0x58aac0){return new ElasticSearch(_0x58aac0);};