heimdall-api-platform 3.8.0 → 3.9.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.
- package/dist/lib/clients/http-client.js +1 -1
- package/dist/lib/environment.js +1 -1
- package/dist/lib/factory/api-gateway.js +1 -1
- package/dist/lib/factory/client-factory.js +1 -1
- package/dist/lib/factory/function-factory.js +1 -1
- package/dist/lib/factory/operation-flow-factory.js +1 -1
- package/dist/lib/factory/server-factory.js +1 -1
- package/dist/lib/factory/transformation-function-factory.js +1 -1
- package/dist/lib/handle-route.js +1 -1
- package/dist/lib/index.js +1 -1
- package/dist/lib/integrations/commons-elasticsearch.js +1 -1
- package/dist/lib/integrations/commons-opensearch.js +1 -1
- package/dist/lib/integrations/commons-splunk.js +1 -1
- package/dist/lib/license/license-service.js +1 -1
- package/dist/lib/models/base-context.js +1 -1
- package/dist/lib/models/flow-context.js +1 -1
- package/dist/lib/models/monitor-request-view.js +1 -1
- package/dist/lib/models/route-context.js +1 -1
- package/dist/lib/models/security-route.js +1 -1
- package/dist/lib/models/service-context.js +1 -1
- package/dist/lib/models/service-group.js +1 -1
- package/dist/lib/models/service-route.js +1 -1
- package/dist/lib/models/splunk-data.js +1 -1
- package/dist/lib/observability/gateway-log-capture.js +1 -1
- package/dist/lib/observability/live-streams.js +1 -1
- package/dist/lib/observability/models/monitor-flow-step.js +1 -1
- package/dist/lib/observability/models/monitor-function-operation.js +1 -1
- package/dist/lib/observability/models/monitor-function-transformation.js +1 -1
- package/dist/lib/observability/models/monitor-http-operation.js +1 -1
- package/dist/lib/observability/models/monitor-mock-operation.js +1 -1
- package/dist/lib/observability/monitor-event-bus.js +1 -1
- package/dist/lib/observability/monitor-event.js +1 -1
- package/dist/lib/observability/subscribers/monitor-event-subscriber.js +1 -1
- package/dist/lib/observability/subscribers/opensearch-event-subscriber.js +1 -1
- package/dist/lib/observability/subscribers/redis-event-subscriber.js +1 -1
- package/dist/lib/observability/subscribers/spans-event-subscriber.js +1 -1
- package/dist/lib/observability/subscribers/splunk-event-subscriber.js +1 -1
- package/dist/lib/operations/abstract-operation.js +1 -1
- package/dist/lib/operations/function.js +1 -1
- package/dist/lib/operations/http.js +1 -1
- package/dist/lib/operations/mock.js +1 -1
- package/dist/lib/operations/monitor-check.js +1 -1
- package/dist/lib/orchestration-flow.js +1 -1
- package/dist/lib/router.js +1 -1
- package/dist/lib/routes/default-routes-admin.js +1 -1
- package/dist/lib/routes/default-routes-docs.js +1 -1
- package/dist/lib/routes/default-routes-ingest.js +1 -1
- package/dist/lib/routes/default-routes-mcp.js +1 -1
- package/dist/lib/routes/default-routes-monitor-metrics.js +1 -1
- package/dist/lib/routes/default-routes-opensearch.js +1 -1
- package/dist/lib/routes/default-routes-pos.js +1 -1
- package/dist/lib/routes/default-routes-pre.js +1 -1
- package/dist/lib/routes/default-routes-redis.js +1 -1
- package/dist/lib/routes/native-routes-catalog.js +1 -1
- package/dist/lib/routes/route-catalog-builder.js +1 -1
- package/dist/lib/security/api-key-validator.js +1 -1
- package/dist/lib/security/basic-auth-validator.js +1 -1
- package/dist/lib/security/ingest-token-validator.js +1 -1
- package/dist/lib/security/jwt-util.js +1 -1
- package/dist/lib/security/quota-enforcer.js +1 -1
- package/dist/lib/security/rate-limiter.js +1 -1
- package/dist/lib/security/resolve-auth-secret.js +1 -1
- package/dist/lib/security/security-validation.js +1 -1
- package/dist/lib/services/api-key-service.js +1 -1
- package/dist/lib/services/consumer-service.js +1 -1
- package/dist/lib/services/fixed-window-rate-limit-service.js +1 -1
- package/dist/lib/services/health-service.js +1 -1
- package/dist/lib/services/ingest-error-service.js +1 -1
- package/dist/lib/services/log-ingest-service.js +1 -1
- package/dist/lib/services/logfmt-kv.js +1 -1
- package/dist/lib/services/metrics-service.js +1 -1
- package/dist/lib/services/monitor-metrics-service.js +1 -1
- package/dist/lib/services/otlp-ingest-service.js +1 -1
- package/dist/lib/services/otlp-protobuf.js +1 -1
- package/dist/lib/services/quota-service.js +1 -1
- package/dist/lib/services/rate-limit-service.js +1 -1
- package/dist/lib/services/server.js +1 -1
- package/dist/lib/services/trace-link-repair.js +1 -1
- package/dist/lib/storage/key-value-storage.js +1 -1
- package/dist/lib/utils/commons-cache.js +1 -1
- package/dist/lib/utils/commons-const.js +1 -1
- package/dist/lib/utils/commons-context.js +1 -1
- package/dist/lib/utils/commons-cookie.js +1 -1
- package/dist/lib/utils/commons-date.js +1 -1
- package/dist/lib/utils/commons-encoding.js +1 -1
- package/dist/lib/utils/commons-errors.js +1 -1
- package/dist/lib/utils/commons-headers.js +1 -1
- package/dist/lib/utils/commons-logger.js +1 -1
- package/dist/lib/utils/commons-trace.js +1 -1
- package/dist/lib/utils/commons-util.js +1 -1
- package/dist/lib/utils/document-utils.js +1 -1
- package/dist/lib/utils/monitor-filter-builder.js +1 -1
- package/dist/lib/utils/monitor-query-language.js +1 -1
- package/package.json +1 -1
package/dist/lib/handle-route.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x3ae668=_0x246d;(function(_0x400eb8,_0x5c49de){const _0x5796ed=_0x246d,_0x9a2cbf=_0x400eb8();while(!![]){try{const _0x41fc21=parseInt(_0x5796ed(0x1a7))/0x1+-parseInt(_0x5796ed(0x1c6))/0x2+-parseInt(_0x5796ed(0x1b8))/0x3+parseInt(_0x5796ed(0x1a4))/0x4+-parseInt(_0x5796ed(0x1ca))/0x5+parseInt(_0x5796ed(0x255))/0x6+-parseInt(_0x5796ed(0x231))/0x7*(-parseInt(_0x5796ed(0x214))/0x8);if(_0x41fc21===_0x5c49de)break;else _0x9a2cbf['push'](_0x9a2cbf['shift']());}catch(_0x591eb0){_0x9a2cbf['push'](_0x9a2cbf['shift']());}}}(_0x113c,0x27b68));const Util=require(_0x3ae668(0x26e)),Const=require('./utils/commons-const'),Env=require(_0x3ae668(0x259))[_0x3ae668(0x1bc)],{ApiGatewayError,RequestTooManyRequests,CreateCustomError}=require('./utils/commons-errors'),_=require(_0x3ae668(0x189)),Step=require(_0x3ae668(0x1c8)),RouteContext=require(_0x3ae668(0x1e1)),liveStreams=require(_0x3ae668(0x1e5)),ValidateSecurity=require(_0x3ae668(0x207)),Environment=require(_0x3ae668(0x259)),FunctionFactory=require(_0x3ae668(0x242)),metricsService=require(_0x3ae668(0x218)),{FixedWindowRateLimitService}=require('./services/fixed-window-rate-limit-service'),MonitorEvent=require(_0x3ae668(0x201)),MonitorEventBus=require(_0x3ae668(0x22e)),OpenSearchEventSubscriber=require('./observability/subscribers/opensearch-event-subscriber'),SplunkEventSubscriber=require('./observability/subscribers/splunk-event-subscriber'),MAX_HEADER_VALUE_LENGTH=0x100;function _0x113c(){const _0x10f4e8=['Bw9UAxrVCKv2zw50qNvZ','A3rNq08','B3DUAwq','yMTlvgy','lI9Zzwn1CML0Es9Zzwn1CML0Es12ywXPzgf0Aw9U','s0HxtuK','CMvKAxjLy3q','yxbWBgLJyxrPB24VCgrM','tNrlu2O','C0rNu1C','t0jkrunux1rzueu','C3rHDhvZq29Kzq','Axnku09ovMfSAwq','Dw5KzwzPBMvK','CgHHC2vnyxjR','C2vYDMLJzq','yxvKAxrgDw5JDgLVBG','mZm3mZzrwg5SDLe','q09ovevovf9esvnqt1njveLptG','DhjHy2vjza','Dg9vChbLCKnHC2u','lI9Zzxj2AwnLCY9TzxrYAwnZlxnLCNzPy2u','z2v0q29TCgLSzunVBNrLEhq','wffxENC','DMfSAwrHDgvtzwn1CML0Eq','rvjsx0LovKfmsurFq0HbuG','Dg9ju09tDhjPBMC','u1rssu5h','BKvhBvC','B2LpEw4','zMLUAxnOzwq','seDxv2C','s0TOt0e','y29TCgLSzvjHDgvmAw1PDeTLEq','B3jJAgvZDhjHDg9Y','BM9UtNvSBa','BwfW','BNzHsve','BwPuy2G','C3rHz2u9zxjYB3iGBwv0Ag9KpuHHBMrSzvjVDxrLlNzHBgLKyxrLuMf0zuXPBwL0lMXPBwL0ig1LC3nHz2u9uMf0zsbmAw1PDcbjBMzVie92zxi','tfndwLK','BxvSDgLWyxj0l2zVCM0Tzgf0yq','x3nLCNzPy2vpChrPB25Z','lI9VyNnLCNzHyMLSAxr5l21VBML0B3iTzxzLBNqTyNvZ','vfDrCei','C3bSAxq','mJG3DMLWEKj0','zeDhsgy','yMHrre0','C3rHz2u9Aw5MBYbTzxrOB2q9sgfUzgXLuM91DguUDMfSAwrHDgvsyxrLtgLTAxqUBgLTAxq','CMvSzwfZzvjLC3bVBNnL','C3rHz2u9zw5Kig1LDgHVzd1iyw5KBgvsB3v0zs5JB21WAwXLuMf0zuXPBwL0s2v5igXPBwL0s2v5pq','BMjyyLC','AxnbCNjHEq','C2v0uMvZDwX0','y3jLyxrLrNvUy3rPB25cEu5HBwu','ExftC3u','AxnvCMW','C3rYAw5N','zhvYyxrPB24','AgfUzgXLuMvZDwX0','ruX5tvK','rNbzrvK','lI9Mywn0B3j5l2z1BMn0Aw9UlwzHy3rVCNK','D3jPDgvizwfK','u0vux0npt0Tjrq','zxH0zw5K','y29TCgLSzuTLEq','DfzzDKG','qMvHCMvY','BxDSALa','BMfTzq','wuTsy3G','y3vYCMvUDezSB3C','y29YCMvSyxrPB25jza','AgfUzgXLuMvXDwvZDa','zxHWB3j0CW','r29lCKy','Aw5MBW','A1LRBLy','B3zLCG','tKDqDwq','mtu4ntmZoe5zAvPMAG','Cw5nCKG','B2jMDxnJyxrPB25ku09o','uM5XBhq','lI9LBNzPCM9UBwvUDa','qLvgrKvs','AuHbEwC','Dg9eyxrLu3rYAw5N','zgvJB2rLqMfZzty0','wLnot0u','Aw5KzxHszxf1zxn0','wgzjzwC','yxbWBgLJyxrPB24VDM5KlM9Wzw54BwXMB3jTyxrZlw9MzMLJzwrVy3vTzw50lNnWCMvHzhnOzwv0BwWUC2HLzxq','C3rHz2u9zxjYB3iGBwv0Ag9KpuHHBMrSzvjVDxrLlNzHBgLKyxrLuMf0zuXPBwL0ig1LC3nHz2u9uMf0zsbmAw1PDcblzxKGq29TCgLSyxrPB24GrxjYB3iGC2vYDMLJzt0','BwDMuvm','u1rsrufnx0nptLrftLrFvfLqrv9wquXvrq','DxjS','Bezvsve','DMzOueK','C3rHz2u9Aw5MBYbTzxrOB2q9sgfUzgXLuM91DguUzxHLy3v0zuzSB3CGBwvZC2fNzt1fEgvJDxrPBMCGzMXVDYHZkq','DgHLBG','AgvHzgvYCW','DgLWB1rVA2vU','mtb8m3W3Fdb8oxW2Fdr8mNW4Fdf8nq','sLnptL9dt05uru5ux1rzuevFvKfmvuu','lI91DgLSCY9JB21TB25Zlxv0AwW','z2v0uMvZDwX0','AgfUzgXL','CMvWBgfJzq','yvPltuy','y29Kzq','ALHfA0e','wMXiqwW','vgXSC0u','C3rHz2u9zxjYB3iGBwv0Ag9KpuHHBMrSzvjVDxrLlMHHBMrSzuf1zgL0ig1LC3nHz2u9sgfUzgXLief1zgL0ievYCM9Y','s0DOrwi','zvPjAhK','twzStM8','C3rHz2u9zxjYB3iGBwv0Ag9KpuHHBMrSzvjVDxrLlMDLDenVBxbPBgvdB250zxH0ig1LC3nHz2u9rxjYB3iGr2v0ienVBxbPBguGq29UDgv4DcbLCNjVCG','B2jZzxj2zuH0Dhbszxf1zxn0','CMvZCg9UC2vizwfKzxjZ','CKLjv0W','sevbrevsuW','z2vUzxjHDgvizwfKzxjZrgvMyxvSDa','zw5JyxbZDwXLrxjYB3i','C3rHCNrLza','zw5HyMXLuMf0zuXPBwL0','zgX1A0O','DhjPBq','DxvPza','sw1bwK0','yuDpDg0','y29UC3rYDwn0B3i','wf9iruLnrefmtf9trvjwsunfx05btuu','tfvmteu','ve9px01btLLFuKvrvuvtvfm','Dw5KzxjZy29Yzq','DgvSzwzVBMu','BvvNuKO','vLP3B3m','zML4zwrxAw5KB3DsyxrLtgLTAxrtzxj2AwnL','EMXvCfO','EgffB1q','wf9iruLnrefmtf9srvfvrvnux0rvuKfusu9ox05btuu','zxjYB3i','Dg9mB2nHBgvmB3DLCKnHC2u','wMHNvNC','DMfSAwrHDgvsyxrLtgLTAxq','shjkv0y','uKnpEuO','t0jkrunu','EKXxugi','CMvXDwvZDa','sM9MzhG','C3netK4','zw5K','BNHZEvm','yuTHwxu','zxHLy3v0zuzSB3C','s2nTCfK','qvPRrMy','CMf0zuXPBwL0','CMvZB2X2zuvUzfjLC3bVBNnL','nJGYoduYsxnWu3nJ','AgfUzgXLqxvKAxq','CgLWzq','oty2ntLIAeXpDhm','DuXKvNe','CMvZDwX0','CxHzsxq','r2DOvgu','Aw5PDa','y3jVC3mTB3jPz2LU','CMvXDwvZDfbLCLnLy29Uza','zMXVDW','zgvZy3jPChrPB24','rfL6D2q','CMvKAxndBgLLBNq','CMvJB3jKugHHC2u','z2v0vgLTzq','rMjIyvi','yxbWBgLJyxrPB24Vz3PPCa','q09ovevovf9uwvbf','ntG4odCWBhvoqwLh','C2XPy2u','B3bLCMf0Aw9U','ywrKuMvZDwX0','yxbWBgLJyxrPB24','CMvXDwvZDhm','C3rHz2u9zxjYB3iGBwv0Ag9KpuHHBMrSzvjVDxrLlNzHBgLKyxrLuMf0zuXPBwL0ig1LC3nHz2u9uMf0zsbmAw1PDcbwywXPzgf0Aw9UievYCM9Y','ENzcwMK','igTLEunVBxbPBgvKpq','ueftu1riuK9vr0G','yxbWBgLJyxrPB24VDM5KlM1Zlwv4y2vS','uKvbrfnuuKvbtq','DgHYB3DfCNjVCKLMsxrfEgLZDhm','B3bLBLnLyxjJAa','mtuZmtu0D0vxDwzS','zxHLy3v0zq','C3rLCa','D0X1rNa','mtm0ndGWnxrbzwvzDG','s2nTALq','zw1WDhLszxn1BhrbC1n1y2nLC3m','uez0CvK','revgqvvmvf9dt05uru5ux1rzuevFvKfmvuu','C3vI','CxLLsxK','B2fLB0S','v2XHswq','ug1iCw4','DKL5AeO','ChjVDg90ExbL','z2vUzxjHDgvlzxK','BgvUz3rO','vg9Vie1HBNKGuMvXDwvZDhm','BM9YBwfSAxPL','BM9Tzq','CMvZB2X2zunVBNrLEhruExbLuMvZCg9UC2u','EKzou0S','uunZvMe','AgfZt3DUuhjVCgvYDhK','DNrQy1K','C3bSDw5RuhjVDMLKzxi','lI9TB2rLBhmVCM91DguTy29UDgv4Da','sfnQzwy','zgvJsw5gBgLNAhq','A2v5','lI9VyNnLCNzHyMLSAxr5l2XPDMuTC3rYzwfTCW','AxncDwzMzxi','C3rYAw5NAwz5','CxvLCNK','BhnXvxq','zLzYz1K','CMvZCg9UC2vdB2rL','qKXushe','ndaVCW','CNzJAu4','tKzlra','tLfAvMq','CMvZCg9UC2u','wf9bvvrit1jjwKfusu9o','Bwv0Ag9K','CMf0zq','wwDwtNm','Dhj5ugfYC2vku09o','ChjVy2vZC1jLC3vSDa','z0nTDhe','uvPyB04','vwfIsee','y2f0y2G','y2fSBa','v1HfA1y','C3vTBwfYAxPLrM9Ytg9N','Bfvxy2O','DgLTzxjZ','lI9VyNnLCNzHyMLSAxr5l21VBML0B3iTzxzLBNq','B2jQzwn0'];_0x113c=function(){return _0x10f4e8;};return _0x113c();}function sanitizeHeaderValue(_0x140286){const _0x50e6eb=_0x3ae668,_0x4fb1fa={'Rnqlt':function(_0x456a32,_0x1c4a0a){return _0x456a32===_0x1c4a0a;},'WEeTd':function(_0x18e9a1,_0x23ced3){return _0x18e9a1(_0x23ced3);}};if(_0x4fb1fa[_0x50e6eb(0x258)](_0x140286,null)||_0x4fb1fa[_0x50e6eb(0x258)](_0x140286,undefined))return'';return _0x4fb1fa['WEeTd'](String,_0x140286)[_0x50e6eb(0x1d9)](_0x50e6eb(0x1ef))[_0x50e6eb(0x16d)](/[̀-ͯ]/g,'')[_0x50e6eb(0x16d)](/[^\x20-\x7E]/g,'')[_0x50e6eb(0x1b9)](0x0,MAX_HEADER_VALUE_LENGTH);}function _0x246d(_0xeb47b6,_0x1ddf30){_0xeb47b6=_0xeb47b6-0x16c;const _0x113ceb=_0x113c();let _0x246db4=_0x113ceb[_0xeb47b6];if(_0x246d['Zwwclg']===undefined){var _0x545166=function(_0x1968cf){const _0x3c6eb5='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4942d6='',_0x35edf8='';for(let _0x5c9bfe=0x0,_0x29d802,_0x56b4a2,_0x23abd2=0x0;_0x56b4a2=_0x1968cf['charAt'](_0x23abd2++);~_0x56b4a2&&(_0x29d802=_0x5c9bfe%0x4?_0x29d802*0x40+_0x56b4a2:_0x56b4a2,_0x5c9bfe++%0x4)?_0x4942d6+=String['fromCharCode'](0xff&_0x29d802>>(-0x2*_0x5c9bfe&0x6)):0x0){_0x56b4a2=_0x3c6eb5['indexOf'](_0x56b4a2);}for(let _0x48fed6=0x0,_0x497804=_0x4942d6['length'];_0x48fed6<_0x497804;_0x48fed6++){_0x35edf8+='%'+('00'+_0x4942d6['charCodeAt'](_0x48fed6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x35edf8);};_0x246d['fpVuHg']=_0x545166,_0x246d['rJYsgR']={},_0x246d['Zwwclg']=!![];}const _0x583e74=_0x113ceb[0x0],_0x38e9c4=_0xeb47b6+_0x583e74,_0x35ec9c=_0x246d['rJYsgR'][_0x38e9c4];return!_0x35ec9c?(_0x246db4=_0x246d['fpVuHg'](_0x246db4),_0x246d['rJYsgR'][_0x38e9c4]=_0x246db4):_0x246db4=_0x35ec9c,_0x246db4;}const validContentTypes=[_0x3ae668(0x22c),'text/csv',_0x3ae668(0x20a),'application/msword','application/vnd.openxmlformats-officedocument.wordprocessingml.document',_0x3ae668(0x1c2),_0x3ae668(0x261),'application/zip',_0x3ae668(0x1b6),'application/octet-stream'];function buildRequestTailEvent(_0x144ab1){const _0x49a105=_0x3ae668,_0x5e6cf6={'DYzwd':function(_0x21e83a,_0x290008){return _0x21e83a===_0x290008;},'qxYIt':'HMGfi'},_0x54f8a4=_0x144ab1&&_0x144ab1[_0x49a105(0x199)]||{},_0x5094f5=_0x144ab1&&_0x144ab1[_0x49a105(0x1f1)]||{},_0x586f78=_0x144ab1&&_0x144ab1[_0x49a105(0x200)]||{};let _0xb030c3;try{_0x5e6cf6[_0x49a105(0x1b1)](_0x5e6cf6[_0x49a105(0x1aa)],_0x5e6cf6['qxYIt'])?_0x586f78['finished']&&_0x586f78[_0x49a105(0x17e)]&&(_0xb030c3=new Date(_0x586f78[_0x49a105(0x221)]['at'])[_0x49a105(0x1b4)]()-new Date(_0x586f78[_0x49a105(0x17e)]['at'])['getTime']()):_0x3e353e[_0x49a105(0x191)](_0x49a105(0x177),_0xdda1e0);}catch{}return{'ts':new Date()[_0x49a105(0x21d)](),'method':_0x54f8a4[_0x49a105(0x1f3)],'url':_0x54f8a4[_0x49a105(0x265)],'status':_0x5094f5[_0x49a105(0x20e)],'service':_0x144ab1&&_0x144ab1[_0x49a105(0x212)]&&_0x144ab1['service'][_0x49a105(0x24a)],'correlationId':_0x144ab1&&(_0x144ab1[_0x49a105(0x24d)]||_0x144ab1['uuid'])||undefined,'traceId':_0x144ab1&&_0x144ab1[_0x49a105(0x216)],'durationMs':_0xb030c3};}class HandleRoute{constructor(_0x2365ae,_0x1c64c5,_0x10e0ad,_0x18ae42,_0x5a438c={}){const _0x2ce223=_0x3ae668,_0x2ea7ec={'UabHA':_0x2ce223(0x26c),'HSjef':'You\x20must\x20provide\x20the\x20flow\x20to\x20be\x20executed.'},_0x28c3e3=_0x2ea7ec[_0x2ce223(0x1fa)][_0x2ce223(0x230)]('|');let _0x1d8bfc=0x0;while(!![]){switch(_0x28c3e3[_0x1d8bfc++]){case'0':this[_0x2ce223(0x1e0)]=_0x10e0ad;continue;case'1':this[_0x2ce223(0x18d)]=_0x5a438c[_0x2ce223(0x18d)]||new FixedWindowRateLimitService({'redisClient':this['redisClient']});continue;case'2':this[_0x2ce223(0x1a2)]=_0x1c64c5[_0x2ce223(0x1a2)];continue;case'3':this[_0x2ce223(0x225)]=_0x2365ae;continue;case'4':this[_0x2ce223(0x17f)]=!!_0x1c64c5[_0x2ce223(0x1a2)];continue;case'5':this[_0x2ce223(0x203)]=_0x5a438c[_0x2ce223(0x203)]||new MonitorEventBus({'subscribers':[new SplunkEventSubscriber({'splunkProvider':_0x10e0ad}),new OpenSearchEventSubscriber({'openSearch':_0x18ae42})]});continue;case'6':this[_0x2ce223(0x1b2)]=_0x2365ae['redisClient'];continue;case'7':this[_0x2ce223(0x22d)]=_0x1c64c5;continue;case'8':this[_0x2ce223(0x213)]=_0x1c64c5[_0x2ce223(0x213)];continue;case'9':this[_0x2ce223(0x1c5)]=_0x18ae42;continue;case'10':if(!_0x1c64c5[_0x2ce223(0x1af)])throw ApiGatewayError(_0x2ea7ec[_0x2ce223(0x1e2)]);continue;}break;}}[_0x3ae668(0x24e)](_0x132872,_0x45a03b,_0x4ee611){const _0x57b638=_0x3ae668,_0x593a51={'qyeIy':function(_0x579d7b,_0x481562){return _0x579d7b!==_0x481562;},'mwljP':_0x57b638(0x1ec),'oaeoK':_0x57b638(0x1ff),'KcmpY':'rate-limit','PLGBa':'Bearer','YKRcx':_0x57b638(0x1f8),'KGhEb':'stage=init\x20method=HandleRoute.handleRequest\x20configuration'};let _0x33a178=this,_0x166466=new RouteContext(_0x132872,_0x45a03b,_0x4ee611,this[_0x57b638(0x22d)],this['orchestrator']);metricsService['incInFlight'](_0x166466['service'][_0x57b638(0x24a)]),Util['info'](_0x593a51[_0x57b638(0x174)],{'method':_0x166466[_0x57b638(0x212)]['method'][_0x57b638(0x217)](),'service':_0x166466[_0x57b638(0x212)][_0x57b638(0x24a)],'url':_0x166466[_0x57b638(0x199)][_0x57b638(0x265)],'uuid':_0x166466[_0x57b638(0x182)],'body':Util[_0x57b638(0x257)](_0x166466['body']||{}),'query':_0x166466[_0x57b638(0x1e8)],'params':_0x166466['params'],'headers':Util[_0x57b638(0x257)](_0x166466[_0x57b638(0x26a)]||{})}),_0x166466[_0x57b638(0x1ac)](),_0x166466['service']['setCurrentFlow'](_0x166466[_0x57b638(0x212)][_0x57b638(0x1af)][0x0]);let _0x352c7e=_0x166466[_0x57b638(0x211)]();Step(function(){const _0x640cb4=_0x57b638;if(_0x593a51[_0x640cb4(0x1d0)](_0x593a51[_0x640cb4(0x249)],_0x640cb4(0x1ec)))try{if(this[_0x640cb4(0x213)]){let _0x4e7eb0=_0x3f617f[_0x640cb4(0x23a)](this[_0x640cb4(0x213)]);_0x4e7eb0['handle'](_0x262c32);}}catch(_0x25d5b8){_0x565f99[_0x640cb4(0x191)]('stage=error\x20method=HandleRoute.handleAudit\x20message=Handle\x20Audit\x20Error',_0x25d5b8);}else _0x33a178[_0x640cb4(0x194)](_0x166466,this);},function(_0x5360f5){const _0x1ee721=_0x57b638;_0x593a51[_0x1ee721(0x1d0)](_0x593a51[_0x1ee721(0x1d1)],_0x593a51[_0x1ee721(0x1d1)])?_0x361fd7[_0x1ee721(0x239)](_0x4d3127['extend'](_0x2c7d03||{},{'description':_0x626ff4['service'][_0x1ee721(0x1b0)],'serviceName':_0x14ab20['service'][_0x1ee721(0x24a)],'requestId':_0x276d21[_0x1ee721(0x182)]})):(Util[_0x1ee721(0x1c4)](_0x5360f5),_0x166466[_0x1ee721(0x1b3)](_0x593a51[_0x1ee721(0x1a0)],_0x352c7e),_0x33a178[_0x1ee721(0x21b)](_0x166466,this));},function(_0x1ca946){const _0x4acdd8=_0x57b638;Util[_0x4acdd8(0x1c4)](_0x1ca946),_0x33a178[_0x4acdd8(0x19f)](_0x166466,this);},function(){const _0x144d42=_0x57b638;if(_0x593a51[_0x144d42(0x1d0)](_0x593a51[_0x144d42(0x24b)],_0x144d42(0x241)))_0x33a178[_0x144d42(0x1f7)](_0x166466);else{let _0x1506f8=_0x372828[_0x144d42(0x26a)][_0x209504[_0x144d42(0x17b)][_0x144d42(0x1f2)]][_0x144d42(0x16d)](_0x593a51['PLGBa'],'')[_0x144d42(0x181)](),_0x5e0ea8=_0x1f4694['tryParseJSON'](_0x57564e[_0x144d42(0x25d)](_0x1506f8[_0x144d42(0x230)]('.')[0x1]));_0x107abc[_0x144d42(0x20f)](_0x5e0ea8)&&(_0xa150ac={'name':_0x5e0ea8['nome'],'ownId':_0x5e0ea8[_0x144d42(0x205)],'document':_0x5e0ea8[_0x144d42(0x1cf)],'type':_0x5e0ea8[_0x144d42(0x26b)],'phoneNumber':_0x5e0ea8[_0x144d42(0x18a)]});}});}[_0x3ae668(0x25f)](_0x343bd6){const _0x4c6a9b=_0x3ae668,_0x41acbd={'RCOyJ':function(_0x30351e,_0x16dcaa){return _0x30351e(_0x16dcaa);}};liveStreams['requests']['hasSubscribers']()&&liveStreams[_0x4c6a9b(0x1bd)]['publish'](_0x41acbd[_0x4c6a9b(0x196)](buildRequestTailEvent,_0x343bd6));if(!this[_0x4c6a9b(0x203)]['hasEnabledSubscribers']())return;const _0x22a51b=new MonitorEvent(_0x343bd6);this['monitorEventBus']['publish'](_0x22a51b,_0x343bd6);}['validateSecurity'](_0x41f1ee,_0x1c13c9){const _0x3123e4=_0x3ae668,_0x26ee00={'GghTe':function(_0x1ea6e2,_0x47e662){return _0x1ea6e2(_0x47e662);},'vIyhJ':function(_0x53daaf,_0x2567e8,_0x2aed5b){return _0x53daaf(_0x2567e8,_0x2aed5b);}};_0x26ee00[_0x3123e4(0x1d4)](Step,function(){ValidateSecurity['execute'](_0x41f1ee,this);},function(_0x6e9a4a){const _0x3f78c6=_0x3123e4;_0x6e9a4a&&(_0x41f1ee['statusCode']=_0x6e9a4a[_0x3f78c6(0x1eb)],_0x41f1ee[_0x3f78c6(0x191)]=!![],_0x41f1ee[_0x3f78c6(0x239)](_0x6e9a4a)),_0x26ee00[_0x3f78c6(0x1ab)](_0x1c13c9,_0x6e9a4a);});}[_0x3ae668(0x219)](_0x1527f1){const _0x1b8f20=_0x3ae668,_0x10ff70={'KHWMI':function(_0x59edb7,_0x4de2b5){return _0x59edb7||_0x4de2b5;},'XQWzw':function(_0x61e113,_0x4033af){return _0x61e113!==_0x4033af;},'bhQDM':'object','rIIWL':function(_0x31c063,_0x26f3bc){return _0x31c063===_0x26f3bc;},'WRwNf':_0x1b8f20(0x23d),'mjTch':_0x1b8f20(0x210),'MflNo':_0x1b8f20(0x223),'GoKrF':_0x1b8f20(0x248),'NtKSj':function(_0x249325,_0x6fee69){return _0x249325!==_0x6fee69;},'FbbaR':_0x1b8f20(0x195)};let _0x40a4ea={'name':_0x10ff70[_0x1b8f20(0x229)],'ownId':Util[_0x1b8f20(0x1d6)](_0x1527f1[_0x1b8f20(0x26a)]),'document':_0x10ff70[_0x1b8f20(0x229)],'type':_0x1b8f20(0x210),'phoneNumber':_0x10ff70[_0x1b8f20(0x229)]};if(_0x1527f1[_0x1b8f20(0x26a)][Const[_0x1b8f20(0x17b)][_0x1b8f20(0x1f2)]]){if(_0x10ff70['rIIWL'](_0x10ff70['MflNo'],_0x10ff70[_0x1b8f20(0x176)]))try{let _0x158e07=_0x1527f1[_0x1b8f20(0x26a)][Const[_0x1b8f20(0x17b)]['X_AUTHORIZATION']][_0x1b8f20(0x16d)](_0x10ff70[_0x1b8f20(0x250)],'')['trim'](),_0x1acff0=Util[_0x1b8f20(0x1f6)](Util[_0x1b8f20(0x25d)](_0x158e07[_0x1b8f20(0x230)]('.')[0x1]));Util[_0x1b8f20(0x20f)](_0x1acff0)&&(_0x40a4ea={'name':_0x1acff0[_0x1b8f20(0x1da)],'ownId':_0x1acff0['ownid'],'document':_0x1acff0[_0x1b8f20(0x1cf)],'type':_0x1acff0[_0x1b8f20(0x26b)],'phoneNumber':_0x1acff0[_0x1b8f20(0x18a)]});}catch(_0x494aa7){if(_0x10ff70[_0x1b8f20(0x20b)](_0x10ff70[_0x1b8f20(0x1b5)],_0x1b8f20(0x195))){let _0x29254d=_0x3ca783['nonNull'](_0x3e9faf[_0x1b8f20(0x212)][_0x1b8f20(0x24c)][_0x1b8f20(0x1a9)])?_0x53cf41['service']['currentFlow']['result']:_0x2a1682['service']['result'],_0x2e1d66=_0x2e361e[_0x1b8f20(0x212)][_0x1b8f20(0x24c)]['operation'][_0x1b8f20(0x17d)]||!![];_0x2e1d66?_0x54b3fa[_0x1b8f20(0x239)](_0x45438a[_0x1b8f20(0x245)](_0x10ff70[_0x1b8f20(0x208)](_0x29254d,{}),{'description':_0x44ca06[_0x1b8f20(0x212)][_0x1b8f20(0x1b0)],'serviceName':_0x1021ce['service'][_0x1b8f20(0x24a)],'requestId':_0x14744c[_0x1b8f20(0x182)]})):_0x4fc830[_0x1b8f20(0x239)](_0x29254d);}else Util[_0x1b8f20(0x191)](_0x1b8f20(0x177),_0x494aa7);}else{if(_0x2306be[_0x1b8f20(0x1e6)](_0x2292d9[_0x1b8f20(0x26f)]()))return _0x12d1cb[_0x1b8f20(0x264)];if(_0x10ff70[_0x1b8f20(0x21a)](_0x4ad5d1['getResult'](),null)&&typeof _0x52f88e[_0x1b8f20(0x26f)]()===_0x10ff70[_0x1b8f20(0x233)])return _0x5588ca[_0x1b8f20(0x26d)];if(_0x10ff70[_0x1b8f20(0x17a)](_0x56c1b1[_0x1b8f20(0x26f)](),_0x10ff70['WRwNf']))return _0x420118['DEFAULT_CONTENT_TYPE_VALUE'];return _0x4a1927[_0x1b8f20(0x1ce)];}}return _[_0x1b8f20(0x245)](_0x1527f1,{'env':Env,'util':Util,'customerToken':_0x40a4ea});}['compileRateLimitKey'](_0x41c47e){const _0x32dfde=_0x3ae668,_0x563855=this[_0x32dfde(0x18d)][_0x32dfde(0x246)]({'serviceName':_0x41c47e['service']['name'],'keyTemplate':this['rateLimit'][_0x32dfde(0x1e4)],'fallbackKey':_0x41c47e['headers']['x-forwarded-for'],'templateContext':this[_0x32dfde(0x219)](_0x41c47e)});return Util[_0x32dfde(0x251)](_0x32dfde(0x236)+this['rateLimit'][_0x32dfde(0x1e4)]+_0x32dfde(0x1c0)+_0x563855),_0x563855;}[_0x3ae668(0x194)](_0x22f314,_0x4c99bd){const _0x4182d7=_0x3ae668,_0x2db0f6={'xaEoT':'Bearer','vfhPI':function(_0x49b7b4,_0x3af821){return _0x49b7b4!==_0x3af821;},'yqSsu':_0x4182d7(0x175),'uUWij':_0x4182d7(0x171),'rvciN':'stage=info\x20method=HandleRoute.validateRateLimit.limit','ELyMY':_0x4182d7(0x22a),'nxsyS':'TOO_MANY_REQUESTS','QZXoN':function(_0x355227,_0x30ab0f){return _0x355227(_0x30ab0f);},'QCsVa':function(_0x114082){return _0x114082();},'nbXbW':_0x4182d7(0x1f4),'dGGHf':function(_0x5f0359,_0xdbc0dc){return _0x5f0359===_0xdbc0dc;},'iHAyg':_0x4182d7(0x1a8),'KcmjT':_0x4182d7(0x183),'kYknV':'JBRNe','yfoFE':function(_0x1ecc2f,_0x31c107){return _0x1ecc2f!==_0x31c107;},'TllsE':_0x4182d7(0x22f),'uGdiT':_0x4182d7(0x1ed)};if(!this['enableRateLimit'])return _0x4c99bd();const _0x4a949f=Object[_0x4182d7(0x1d5)][_0x4182d7(0x1de)]['call'](this['rateLimit'],_0x4182d7(0x1e4)),_0x402773=Object[_0x4182d7(0x1d5)][_0x4182d7(0x1de)][_0x4182d7(0x1fc)](this[_0x4182d7(0x1a2)],_0x2db0f6[_0x4182d7(0x237)]);if(!this[_0x4182d7(0x1b2)]['enableRedis']||!_0x4a949f||!_0x402773){if(_0x2db0f6[_0x4182d7(0x232)](_0x2db0f6[_0x4182d7(0x25b)],_0x2db0f6[_0x4182d7(0x25b)]))return _0x2db0f6[_0x4182d7(0x1dd)](_0x4c99bd);else throw _0x30e49c;}let _0x16fe35;try{_0x2db0f6[_0x4182d7(0x232)](_0x2db0f6[_0x4182d7(0x1cb)],_0x2db0f6[_0x4182d7(0x252)])?_0x8cc8af=this[_0x4182d7(0x224)](_0x2aa050):_0x16fe35=this[_0x4182d7(0x224)](_0x22f314);}catch(_0xb2f155){if(_0x2db0f6['yfoFE'](_0x2db0f6[_0x4182d7(0x172)],_0x4182d7(0x22f)))try{let _0x2681c9=_0x26a371['headers'][_0x2d488c['HEADERS']['X_AUTHORIZATION']][_0x4182d7(0x16d)](_0x2db0f6[_0x4182d7(0x18f)],'')[_0x4182d7(0x181)](),_0x1f3bb0=_0x39fcd0[_0x4182d7(0x1f6)](_0x5b1888['decodeBase64'](_0x2681c9[_0x4182d7(0x230)]('.')[0x1]));_0x205f75[_0x4182d7(0x20f)](_0x1f3bb0)&&(_0x43418b={'name':_0x1f3bb0[_0x4182d7(0x1da)],'ownId':_0x1f3bb0[_0x4182d7(0x205)],'document':_0x1f3bb0[_0x4182d7(0x1cf)],'type':_0x1f3bb0[_0x4182d7(0x26b)],'phoneNumber':_0x1f3bb0[_0x4182d7(0x18a)]});}catch(_0x3dbef4){_0xe9873e['error'](_0x4182d7(0x177),_0x3dbef4);}else return Util[_0x4182d7(0x191)](_0x4182d7(0x262)+(_0x22f314[_0x4182d7(0x212)]&&_0x22f314[_0x4182d7(0x212)][_0x4182d7(0x24a)]),_0xb2f155),_0x2db0f6['QCsVa'](_0x4c99bd);}this[_0x4182d7(0x18d)]['consume']({'key':_0x16fe35,'rate':this['rateLimit'][_0x4182d7(0x1f4)]||Environment[_0x4182d7(0x1bc)][_0x4182d7(0x1ae)]||_0x2db0f6['uGdiT']})[_0x4182d7(0x269)](_0x24eb07=>{const _0x116a92=_0x4182d7;if(_0x2db0f6[_0x116a92(0x267)](_0x2db0f6[_0x116a92(0x23b)],_0x2db0f6['uUWij'])){Util['info'](_0x2db0f6[_0x116a92(0x1ee)],_0x24eb07);if(!_0x24eb07[_0x116a92(0x253)])return _0x4c99bd();Util[_0x116a92(0x191)](_0x2db0f6[_0x116a92(0x240)],_0x24eb07),metricsService['incRateLimitHit'](_0x22f314[_0x116a92(0x212)][_0x116a92(0x24a)]);const _0x31ad35=new RequestTooManyRequests(_0x2db0f6[_0x116a92(0x19d)],new CreateCustomError(_0x2db0f6[_0x116a92(0x19d)],_0x116a92(0x1d8)));_0x22f314[_0x116a92(0x212)][_0x116a92(0x1bb)](_0x31ad35),_0x22f314[_0x116a92(0x239)](_0x31ad35),_0x22f314[_0x116a92(0x20e)]=0x1ad,_0x22f314[_0x116a92(0x191)]=!![],_0x2db0f6[_0x116a92(0x1f9)](_0x4c99bd,_0x31ad35);}else _0x44b767[_0x116a92(0x1f1)]['writeHead'](_0x21ae8f,_0x3aaf27[_0x116a92(0x212)][_0x116a92(0x179)]);})[_0x4182d7(0x1fb)](_0x4234c5=>{const _0x2c8c30=_0x4182d7;Util[_0x2c8c30(0x191)](_0x2c8c30(0x1be),_0x4234c5),_0x2db0f6[_0x2c8c30(0x1dd)](_0x4c99bd);});}[_0x3ae668(0x19f)](_0x1db808,_0x1f9628){const _0x24ed97=_0x3ae668;Util[_0x24ed97(0x251)](_0x24ed97(0x268),{'service':_0x1db808[_0x24ed97(0x212)][_0x24ed97(0x24a)],'totalFlow':_0x1db808[_0x24ed97(0x212)][_0x24ed97(0x1af)][_0x24ed97(0x1d7)],'contextUuid':_0x1db808['uuid']}),this['orchestrator'][_0x24ed97(0x1c7)](_0x1db808,_0x1f9628);}[_0x3ae668(0x17c)](_0x34931f){const _0x6bfce6=_0x3ae668,_0x1a2484={'zLWPb':function(_0xeef2c,_0x2ee73f){return _0xeef2c===_0x2ee73f;},'PFtqY':function(_0x232f10,_0x54814b){return _0x232f10(_0x54814b);},'mUgRJ':_0x6bfce6(0x22a),'oiOyn':_0x6bfce6(0x188),'LSCZY':function(_0xa1b664,_0x1552e3){return _0xa1b664(_0x1552e3);},'bkKTf':_0x6bfce6(0x23d),'mgfQS':function(_0x2b3d0e,_0x10c5ce){return _0x2b3d0e(_0x10c5ce);},'NQZVd':function(_0x2d1160,_0x51f9f1){return _0x2d1160+_0x51f9f1;},'Jofdx':'Download_','ZoyCZ':function(_0x127d49,_0x3109e8){return _0x127d49!==_0x3109e8;},'qnMrH':function(_0x1de612,_0x4b0713){return _0x1de612!==_0x4b0713;},'ZhgVw':_0x6bfce6(0x1a1),'nEGmW':_0x6bfce6(0x254),'XfIeg':_0x6bfce6(0x21c),'aZKMF':function(_0x2a8e46,_0x3546d6){return _0x2a8e46!==_0x3546d6;},'WlaId':_0x6bfce6(0x180),'tVYvH':function(_0x5ebea8,_0x1a0ebc){return _0x5ebea8===_0x1a0ebc;}};let _0x3797d8=_['extend']({[Const[_0x6bfce6(0x17b)]['X_HEIMDALL_CORRELATION_ID_NAME']]:_0x34931f['uuid'],[Const[_0x6bfce6(0x17b)][_0x6bfce6(0x186)]]:_0x1a2484[_0x6bfce6(0x263)](sanitizeHeaderValue,_0x34931f[_0x6bfce6(0x212)]['name']),'Cross-Origin-Resource-Policy':_0x6bfce6(0x1ad)},_0x34931f[_0x6bfce6(0x212)]['responseHeaders']),_0x691232=_0x3797d8[Const['HEADERS']['CONTENT_TYPE']]||this[_0x6bfce6(0x1db)](_0x34931f);_0x3797d8[Const['HEADERS']['CONTENT_TYPE']]=_0x691232,_0x3797d8[Const[_0x6bfce6(0x17b)][_0x6bfce6(0x190)]]=_0x34931f['timers'][_0x6bfce6(0x23e)];let _0x1eea87=_0x34931f['service'][_0x6bfce6(0x26a)][Const[_0x6bfce6(0x17b)][_0x6bfce6(0x244)][_0x6bfce6(0x192)]()]||{};const _0x7d7507=_0x34931f[_0x6bfce6(0x212)][_0x6bfce6(0x179)][Const[_0x6bfce6(0x17b)][_0x6bfce6(0x244)]]||_0x34931f['service'][_0x6bfce6(0x179)][Const[_0x6bfce6(0x17b)][_0x6bfce6(0x244)][_0x6bfce6(0x192)]()];_0x7d7507&&(Array[_0x6bfce6(0x238)](_0x1eea87)&&_0x1eea87[_0x6bfce6(0x1d7)]?_0x1eea87=_0x1eea87[_0x6bfce6(0x227)](_0x376ee2=>_0x376ee2+';\x20'+_0x7d7507):_0x1eea87=[_0x7d7507]);Util[_0x6bfce6(0x226)](_0x1eea87)&&(_0x3797d8=_[_0x6bfce6(0x245)](_0x3797d8,{[Const[_0x6bfce6(0x17b)]['SET_COOKIE'][_0x6bfce6(0x192)]()]:_0x1eea87}));if(validContentTypes['includes'](_0x3797d8[Const['HEADERS']['CONTENT_TYPE']])||validContentTypes['includes'](_0x3797d8[Const[_0x6bfce6(0x17b)][_0x6bfce6(0x1b7)][_0x6bfce6(0x192)]()])){let _0x779c0f=_0x34931f[_0x6bfce6(0x212)][_0x6bfce6(0x26a)][Const[_0x6bfce6(0x17b)]['CONTENT_DISPOSITION'][_0x6bfce6(0x192)]()]||_0x34931f[_0x6bfce6(0x212)]['headers'][Const[_0x6bfce6(0x17b)]['CONTENT_DISPOSITION']]||_0x1a2484[_0x6bfce6(0x1f0)](_0x1a2484[_0x6bfce6(0x19a)],new Date()[_0x6bfce6(0x25c)]());_0x3797d8={..._0x3797d8,[Const['HEADERS'][_0x6bfce6(0x215)][_0x6bfce6(0x192)]()]:_0x779c0f};}_0x34931f[_0x6bfce6(0x212)][_0x6bfce6(0x179)]=_0x3797d8;if(!Util[_0x6bfce6(0x23c)](_0x34931f['getResult']())){if(_0x1a2484['ZoyCZ'](_0x6bfce6(0x1c9),_0x6bfce6(0x18c))){const _0x6643bf=Util['isEmpty'](_0x34931f['getResult']())&&!_0x34931f[_0x6bfce6(0x212)][_0x6bfce6(0x1cc)]?Const['HTTP_STATUS']['NO_CONTENT']:_0x34931f[_0x6bfce6(0x20e)];try{if(_0x1a2484[_0x6bfce6(0x256)](_0x1a2484['ZhgVw'],_0x1a2484[_0x6bfce6(0x193)])){if(_0x1a2484[_0x6bfce6(0x198)](_0x48fed6,null)||_0x1a2484['zLWPb'](_0x497804,_0x4ca037))return'';return _0x1a2484[_0x6bfce6(0x1cd)](_0x39d8ed,_0x23de1a)[_0x6bfce6(0x1d9)](_0x6bfce6(0x1ef))[_0x6bfce6(0x16d)](/[̀-ͯ]/g,'')[_0x6bfce6(0x16d)](/[^\x20-\x7E]/g,'')[_0x6bfce6(0x1b9)](0x0,_0x471081);}else _0x34931f[_0x6bfce6(0x1f1)]['writeHead'](_0x6643bf,_0x34931f[_0x6bfce6(0x212)][_0x6bfce6(0x179)]);}catch(_0x51696a){if(_0x1a2484[_0x6bfce6(0x256)](_0x1a2484[_0x6bfce6(0x21f)],_0x1a2484['nEGmW'])){if(this[_0x6bfce6(0x213)]){let _0x102df2=_0x1c9263[_0x6bfce6(0x23a)](this['auditFunction']);_0x102df2[_0x6bfce6(0x16c)](_0x54950a);}}else{if(_0x51696a&&_0x1a2484[_0x6bfce6(0x198)](_0x51696a[_0x6bfce6(0x16f)],_0x1a2484[_0x6bfce6(0x260)])){if(_0x1a2484[_0x6bfce6(0x16e)](_0x1a2484[_0x6bfce6(0x1d2)],_0x6bfce6(0x180))){_0x91591[_0x6bfce6(0x251)](_0x6bfce6(0x234),_0x105f0f);if(!_0x545f6f[_0x6bfce6(0x253)])return _0x9d41e2();_0xb0becd[_0x6bfce6(0x191)](_0x1a2484[_0x6bfce6(0x18b)],_0x75ded7),_0xb03050['incRateLimitHit'](_0x451090[_0x6bfce6(0x212)][_0x6bfce6(0x24a)]);const _0x126754=new _0x50ab58(_0x1a2484[_0x6bfce6(0x220)],new _0xf74479(_0x1a2484[_0x6bfce6(0x220)],_0x6bfce6(0x1d8)));_0x28f355[_0x6bfce6(0x212)]['addResult'](_0x126754),_0x36e917[_0x6bfce6(0x239)](_0x126754),_0x30ce31['statusCode']=0x1ad,_0x3d741e[_0x6bfce6(0x191)]=!![],_0x1a2484[_0x6bfce6(0x22b)](_0x456a92,_0x126754);}else{Util['error']('stage=error\x20method=HandleRoute.generateHeadersDefault\x20message=Invalid\x20header\x20value\x20sanitized',_0x51696a);for(const _0x19c14a of Object['keys'](_0x34931f[_0x6bfce6(0x212)]['responseHeaders'])){const _0x22b1b3=_0x34931f[_0x6bfce6(0x212)][_0x6bfce6(0x179)][_0x19c14a];_0x1a2484[_0x6bfce6(0x247)](typeof _0x22b1b3,_0x1a2484['bkKTf'])&&(_0x34931f[_0x6bfce6(0x212)][_0x6bfce6(0x179)][_0x19c14a]=_0x1a2484[_0x6bfce6(0x1cd)](sanitizeHeaderValue,_0x22b1b3));}_0x34931f[_0x6bfce6(0x1f1)][_0x6bfce6(0x243)](_0x6643bf,_0x34931f[_0x6bfce6(0x212)][_0x6bfce6(0x179)]);}}else throw _0x51696a;}}}else{const _0x31e7ea=_0x54cfb0[_0x6bfce6(0x212)][_0x6bfce6(0x179)][_0x5eec1f];_0x1a2484[_0x6bfce6(0x198)](typeof _0x31e7ea,_0x1a2484[_0x6bfce6(0x206)])&&(_0x1025a5[_0x6bfce6(0x212)][_0x6bfce6(0x179)][_0x113c7e]=_0x1a2484['PFtqY'](_0x27711a,_0x31e7ea));}}}[_0x3ae668(0x1db)](_0x2611b1){const _0x2c339f=_0x3ae668,_0x199402={'HGWWg':function(_0x11c6ee,_0x484826){return _0x11c6ee!==_0x484826;},'bSkbd':function(_0x203301,_0x33f49e){return _0x203301===_0x33f49e;},'WXEkV':_0x2c339f(0x202)};if(Buffer[_0x2c339f(0x1e6)](_0x2611b1[_0x2c339f(0x26f)]()))return Const[_0x2c339f(0x264)];if(_0x199402[_0x2c339f(0x222)](_0x2611b1['getResult'](),null)&&_0x199402['bSkbd'](typeof _0x2611b1['getResult'](),_0x199402[_0x2c339f(0x1fd)]))return Const[_0x2c339f(0x26d)];if(_0x2611b1[_0x2c339f(0x26f)]()==='string')return Const['DEFAULT_CONTENT_TYPE_VALUE'];return Const['DEFAULT_CONTENT_TYPE_VALUE'];}[_0x3ae668(0x1a3)](_0x1a840f){const _0x815e71=_0x3ae668,_0x2adf5d={'jXEkA':function(_0x52e0f4,_0x30acf6){return _0x52e0f4!==_0x30acf6;},'zlUpZ':_0x815e71(0x187),'sDgSW':function(_0x4199c6,_0x47757f){return _0x4199c6!==_0x47757f;},'PmHqn':_0x815e71(0x1bf),'ZSNOE':'zSeEz'};switch(_0x1a840f['getResult']()[_0x815e71(0x185)][_0x815e71(0x24a)]){case Const['OBJECT_TYPE'][_0x815e71(0x1c3)]:_0x1a840f[_0x815e71(0x26f)]()[_0x815e71(0x1a6)](_0x1a840f[_0x815e71(0x1f1)]);break;case Const['OBJECT_TYPE'][_0x815e71(0x1c1)]:_0x1a840f['getResult']()[_0x815e71(0x1a6)](_0x1a840f[_0x815e71(0x1f1)]);break;case Const['OBJECT_TYPE'][_0x815e71(0x25a)]:_0x1a840f['response'][_0x815e71(0x19c)](_0x1a840f[_0x815e71(0x26f)]());break;case Const[_0x815e71(0x20d)][_0x815e71(0x197)]:_0x1a840f[_0x815e71(0x1f1)][_0x815e71(0x19c)](Util[_0x815e71(0x1e7)](_0x1a840f[_0x815e71(0x26f)]()));break;case Const['OBJECT_TYPE'][_0x815e71(0x21e)]:Util['isUrl'](_0x1a840f[_0x815e71(0x26f)]())?_0x2adf5d[_0x815e71(0x170)](_0x2adf5d[_0x815e71(0x18e)],_0x815e71(0x187))?_0xdb175c['processResult'](_0x2d47a6):_0x1a840f[_0x815e71(0x1f1)][_0x815e71(0x209)](0x12e,_0x1a840f[_0x815e71(0x26f)]()):_0x2adf5d[_0x815e71(0x20c)](_0x2adf5d[_0x815e71(0x1d3)],_0x2adf5d[_0x815e71(0x25e)])?_0x1a840f[_0x815e71(0x1f1)][_0x815e71(0x19c)](_0x1a840f[_0x815e71(0x26f)]()):_0x3dca4e={'name':_0x1b2351[_0x815e71(0x1da)],'ownId':_0x170845[_0x815e71(0x205)],'document':_0x262632[_0x815e71(0x1cf)],'type':_0x22c8bd[_0x815e71(0x26b)],'phoneNumber':_0x1dba02[_0x815e71(0x18a)]};break;default:_0x1a840f['response'][_0x815e71(0x19c)](Util['stringify'](_0x1a840f['getResult']()));}}['releaseResponse'](_0xc91b){const _0x41dea8=_0x3ae668,_0x33f1c3={'zFNSK':function(_0x5ef9ef,_0x99c8a3){return _0x5ef9ef===_0x99c8a3;},'aKaYu':function(_0x1f8f16,_0xf3f87){return _0x1f8f16!==_0xf3f87;},'ktgCO':_0x41dea8(0x266),'ssDNN':function(_0x5a6791,_0x3557b2){return _0x5a6791||_0x3557b2;}};if(_0xc91b['error']){if(_0x33f1c3[_0x41dea8(0x1dc)](_0x41dea8(0x1df),_0x41dea8(0x1e9))){let _0x1426a3=_0x1a48e5['createFunctionByName'](this[_0x41dea8(0x213)]);_0x1426a3[_0x41dea8(0x16c)](_0x3b193e);}else{let _0x312427=Util[_0x41dea8(0x226)](_0xc91b[_0x41dea8(0x212)][_0x41dea8(0x24c)][_0x41dea8(0x1a9)])?_0xc91b[_0x41dea8(0x212)][_0x41dea8(0x24c)][_0x41dea8(0x1a9)]:_0xc91b['service']['result'],_0x2bdea9=_0xc91b[_0x41dea8(0x212)][_0x41dea8(0x24c)][_0x41dea8(0x1ba)][_0x41dea8(0x17d)]||!![];_0x2bdea9?_0x33f1c3[_0x41dea8(0x19e)](_0x33f1c3[_0x41dea8(0x204)],_0x41dea8(0x1f5))?_0xc91b[_0x41dea8(0x239)](_[_0x41dea8(0x245)](_0x33f1c3[_0x41dea8(0x19b)](_0x312427,{}),{'description':_0xc91b[_0x41dea8(0x212)]['description'],'serviceName':_0xc91b[_0x41dea8(0x212)][_0x41dea8(0x24a)],'requestId':_0xc91b[_0x41dea8(0x182)]})):_0x364ed0[_0x41dea8(0x1f1)][_0x41dea8(0x209)](0x12e,_0xe47215[_0x41dea8(0x26f)]()):_0xc91b[_0x41dea8(0x239)](_0x312427);}}this[_0x41dea8(0x1a3)](_0xc91b);}[_0x3ae668(0x1f7)](_0x4e3aa5){const _0x495e31=_0x3ae668;this[_0x495e31(0x23f)](_0x4e3aa5),this[_0x495e31(0x25f)](_0x4e3aa5),this[_0x495e31(0x1a5)](_0x4e3aa5);}['handleResult'](_0xc183c6){const _0x21d5ba=_0x3ae668,_0x563a5f={'aGOtm':function(_0x3ce53d,_0x37b3b4){return _0x3ce53d===_0x37b3b4;},'fVrgY':function(_0x1dd874,_0x27ada3){return _0x1dd874/_0x27ada3;},'nvaIQ':'stage=end\x20method=HandleRoute.handleResult\x20response'};_0xc183c6['end'](),this['generateHeadersDefault'](_0xc183c6),this[_0x21d5ba(0x235)](_0xc183c6);const _0x27836b=_0xc183c6[_0x21d5ba(0x200)][_0x21d5ba(0x23e)],_0x46f913=_0x563a5f[_0x21d5ba(0x184)](typeof _0x27836b,'number')?_0x563a5f[_0x21d5ba(0x1ea)](_0x27836b,0x3e8):null;metricsService[_0x21d5ba(0x178)]({'service':_0xc183c6[_0x21d5ba(0x212)][_0x21d5ba(0x24a)],'method':_0xc183c6[_0x21d5ba(0x212)]['method'],'status':_0xc183c6[_0x21d5ba(0x20e)],'durationSeconds':_0x46f913}),metricsService[_0x21d5ba(0x1e3)](_0xc183c6['service']['name']),Util[_0x21d5ba(0x251)](_0x563a5f[_0x21d5ba(0x228)],{'method':_0xc183c6[_0x21d5ba(0x212)][_0x21d5ba(0x1f3)]['toUpperCase'](),'service':_0xc183c6[_0x21d5ba(0x212)][_0x21d5ba(0x24a)],'route':_0xc183c6[_0x21d5ba(0x199)][_0x21d5ba(0x265)],'uuid':_0xc183c6[_0x21d5ba(0x182)],'body':Util[_0x21d5ba(0x1fe)](_0xc183c6[_0x21d5ba(0x26f)]()),'headers':_0xc183c6[_0x21d5ba(0x212)][_0x21d5ba(0x179)],'duration':_0x27836b});}[_0x3ae668(0x1a5)](_0x7ac349){const _0x2127b9=_0x3ae668;try{if(this[_0x2127b9(0x213)]){let _0x1eced8=FunctionFactory[_0x2127b9(0x23a)](this[_0x2127b9(0x213)]);_0x1eced8[_0x2127b9(0x16c)](_0x7ac349);}}catch(_0x540515){Util[_0x2127b9(0x191)](_0x2127b9(0x173),_0x540515);}}}module[_0x3ae668(0x24f)]=HandleRoute;
|
|
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;
|
package/dist/lib/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';
|
|
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}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
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);};
|