"use strict";exports.id=964,exports.ids=[964],exports.modules={36750:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createEntry=void 0;var n=i(33923);t.createEntry=e=>{const{table:t,entityName:i}=e;return(0,n.createEntity)({name:i,table:t,attributes:{PK:{type:"string",partitionKey:!0},SK:{type:"string",sortKey:!0},index:{type:"string"},data:{type:"map"},TYPE:{type:"string"}}})}},73906:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var n={getDocumentClient:!0};Object.defineProperty(t,"getDocumentClient",{enumerable:!0,get:function(){return r.getDocumentClient}});var r=i(39201),s=i(51446);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}))},51446:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createTable=void 0;var n=i(11524);t.createTable=({documentClient:e})=>{const t={name:process.env.DB_TABLE_ELASTICSEARCH,partitionKey:"PK",sortKey:"SK",DocumentClient:e,autoExecute:!0,autoParse:!0};return new n.Table(t)}},67673:(e,t,i)=>{t.Manager=void 0;var n=i(39201),r=i(56726),s=i(73906),a=i(36750),o=i(33923);t.Manager=class{entities={};constructor(e){this.context=e.context,this.documentClient=e?.documentClient||(0,n.getDocumentClient)(),this.elasticsearch=e?.elasticsearchClient||e.context.elasticsearch||(0,r.createElasticsearchClient)({endpoint:`https://${process.env.ELASTIC_SEARCH_ENDPOINT}`}),this.table=(0,s.createTable)({documentClient:this.documentClient}),this.isCloseToTimeout=()=>e.isCloseToTimeout(),this.isAborted=()=>e.isAborted(),this.response=e.response,this.store=e.store,this.timer=e.timer}getEntity(e){return this.entities[e]?this.entities[e]:this.entities[e]=(0,a.createEntry)({table:this.table,entityName:e})}async read(e){return await(0,o.batchReadAll)({table:this.table,items:e})}}}};
//# sourceMappingURL=Manager.b8616be5.chunk.js.map