'use strict';var _0x24c949=_0x26a4;(function(_0x2f08cf,_0xc8cbb9){var _0x4aa548=_0x26a4,_0x3e5d27=_0x2f08cf();while(!![]){try{var _0x381599=-parseInt(_0x4aa548(0x174))/0x1+-parseInt(_0x4aa548(0x17c))/0x2*(-parseInt(_0x4aa548(0x17f))/0x3)+-parseInt(_0x4aa548(0x172))/0x4*(-parseInt(_0x4aa548(0x18a))/0x5)+-parseInt(_0x4aa548(0x171))/0x6+parseInt(_0x4aa548(0x17b))/0x7*(-parseInt(_0x4aa548(0x192))/0x8)+-parseInt(_0x4aa548(0x179))/0x9*(parseInt(_0x4aa548(0x182))/0xa)+parseInt(_0x4aa548(0x18d))/0xb*(parseInt(_0x4aa548(0x16f))/0xc);if(_0x381599===_0xc8cbb9)break;else _0x3e5d27['push'](_0x3e5d27['shift']());}catch(_0x533a81){_0x3e5d27['push'](_0x3e5d27['shift']());}}}(_0x1a16,0x32419));function _0x1a16(){var _0x3e984f=['transcribeAudio','12wDEmgK','post','1925172roMHMG','188YlzpyC','ConversionPayloadSchema','284931DSpULw','sqlResultSchema','/search-menu-target-embeddings','generateVectorForTable','/transcribe-audio','11214UqreEG','/generate-vector-for-table','2494618vKXaDW','12eZbhrJ','../../schema/common.validate','__esModule','154209NCJzmk','function','../../middlewares/validate','2030bSYtjm','default','/get-response-from-sql','generateQuery','object','/generate-vector','get','validateRequest','31445TdpbKZ','enumerable','exports','8986483zoNygO','../../middlewares/jwt.middleware','authenticateToken','express','Router','8znVqsN','/generate-schema-chunks','/generate-query-json','prototype','getResponseFromSql','../../controller/admin/openai.controller','getOwnPropertyDescriptor','getOwnPropertyNames','/generate-query','generateSchemaChunks','generateQueryJson','generateMenuEmbeddings','defineProperty','menuEmbeddingSchema','call','generateVector','/generate-menu-embeddings'];_0x1a16=function(){return _0x3e984f;};return _0x1a16();}function _0x26a4(_0x6c518f,_0x59079c){_0x6c518f=_0x6c518f-0x16d;var _0x1a16f1=_0x1a16();var _0x26a458=_0x1a16f1[_0x6c518f];return _0x26a458;}var __create=Object['create'],__defProp=Object[_0x24c949(0x19e)],__getOwnPropDesc=Object[_0x24c949(0x198)],__getOwnPropNames=Object[_0x24c949(0x199)],__getProtoOf=Object['getPrototypeOf'],__hasOwnProp=Object[_0x24c949(0x195)]['hasOwnProperty'],__export=(_0x3a3b26,_0x4063d4)=>{for(var _0x447003 in _0x4063d4)__defProp(_0x3a3b26,_0x447003,{'get':_0x4063d4[_0x447003],'enumerable':!![]});},__copyProps=(_0x6f9424,_0x1df724,_0x50d700,_0x578189)=>{var _0x3827d4=_0x24c949;if(_0x1df724&&typeof _0x1df724===_0x3827d4(0x186)||typeof _0x1df724===_0x3827d4(0x180)){for(let _0x10dae3 of __getOwnPropNames(_0x1df724))if(!__hasOwnProp[_0x3827d4(0x1a0)](_0x6f9424,_0x10dae3)&&_0x10dae3!==_0x50d700)__defProp(_0x6f9424,_0x10dae3,{'get':()=>_0x1df724[_0x10dae3],'enumerable':!(_0x578189=__getOwnPropDesc(_0x1df724,_0x10dae3))||_0x578189[_0x3827d4(0x18b)]});}return _0x6f9424;},__toESM=(_0x37eafd,_0x490c20,_0x2fb8fd)=>(_0x2fb8fd=_0x37eafd!=null?__create(__getProtoOf(_0x37eafd)):{},__copyProps(_0x490c20||!_0x37eafd||!_0x37eafd[_0x24c949(0x17e)]?__defProp(_0x2fb8fd,'default',{'value':_0x37eafd,'enumerable':!![]}):_0x2fb8fd,_0x37eafd)),__toCommonJS=_0x759ed3=>__copyProps(__defProp({},'__esModule',{'value':!![]}),_0x759ed3),openai_routes_exports={};__export(openai_routes_exports,{'default':()=>openai_routes_default}),module[_0x24c949(0x18c)]=__toCommonJS(openai_routes_exports);var import_express=require(_0x24c949(0x190)),import_openai=__toESM(require(_0x24c949(0x197))),import_jwt=require(_0x24c949(0x18e)),import_common=require(_0x24c949(0x17d)),import_validate=require(_0x24c949(0x181));const router=(0x0,import_express[_0x24c949(0x191)])();router[_0x24c949(0x188)](_0x24c949(0x193),import_jwt[_0x24c949(0x18f)],import_openai['default'][_0x24c949(0x19b)]),router['get'](_0x24c949(0x187),import_jwt[_0x24c949(0x18f)],import_openai[_0x24c949(0x183)][_0x24c949(0x1a1)]),router[_0x24c949(0x170)](_0x24c949(0x17a),import_jwt[_0x24c949(0x18f)],import_openai[_0x24c949(0x183)][_0x24c949(0x177)]),router[_0x24c949(0x170)](_0x24c949(0x19a),import_jwt[_0x24c949(0x18f)],import_openai[_0x24c949(0x183)][_0x24c949(0x185)]),router[_0x24c949(0x170)](_0x24c949(0x184),import_jwt[_0x24c949(0x18f)],(0x0,import_validate[_0x24c949(0x189)])({'body':import_common[_0x24c949(0x175)]}),import_openai[_0x24c949(0x183)][_0x24c949(0x196)]),router[_0x24c949(0x170)](_0x24c949(0x194),import_jwt[_0x24c949(0x18f)],(0x0,import_validate[_0x24c949(0x189)])({'body':import_common[_0x24c949(0x173)]}),import_openai[_0x24c949(0x183)][_0x24c949(0x19c)]),router[_0x24c949(0x170)](_0x24c949(0x176),import_jwt[_0x24c949(0x18f)],import_openai[_0x24c949(0x183)]['searchMenuTargetEmbeddings']),router[_0x24c949(0x170)](_0x24c949(0x16d),(0x0,import_validate[_0x24c949(0x189)])({'body':import_common[_0x24c949(0x19f)]}),import_openai['default'][_0x24c949(0x19d)]),router[_0x24c949(0x170)](_0x24c949(0x178),import_jwt['authenticateToken'],import_openai[_0x24c949(0x183)][_0x24c949(0x16e)]);var openai_routes_default=router;