mirror of
https://github.com/xiaoyiweb/YiAi.git
synced 2025-09-17 08:46:38 +08:00
1 line
3.6 KiB
JavaScript
1 line
3.6 KiB
JavaScript
'use strict';const _0x30a9d4=_0x5916;function _0x5755(){const _0x497941=['config','createSwagger','templates/pages','.env','useGlobalFilters','useGlobalInterceptors','PORT','listen','enableCors','log','./common/swagger','1059492PoLyHJ','dotenv','compression','/nineai/swagger/docs','TransformInterceptor','24NrTgTr','set','./modules/database/initDatabase','getInstance','2mQtHup','express-xml-bodyparser','414156MMFDJO','NestFactory','setGlobalPrefix','Main','path','TypeOrmQueryFailedFilter','6SgptFA','720338dfuuJh','timeout','649251NRBDVi','579212QQfkTX','@nestjs/common','useGlobalPipes','./common/interceptors/transform.interceptor','128465OAFobD','33mTGjvS','AppModule','create','@nestjs/core','7305390yPzmkY','getHttpAdapter','views','./app.module','3usFffh','./public','hbs','defineProperty','use','服务启动成功:\x20http://localhost:'];_0x5755=function(){return _0x497941;};return _0x5755();}(function(_0x59ae16,_0x350d3a){const _0x13f38a=_0x5916,_0x181c2f=_0x59ae16();while(!![]){try{const _0x4ad1df=-parseInt(_0x13f38a(0xfc))/0x1*(parseInt(_0x13f38a(0xf3))/0x2)+-parseInt(_0x13f38a(0xd9))/0x3*(-parseInt(_0x13f38a(0xff))/0x4)+-parseInt(_0x13f38a(0x103))/0x5*(-parseInt(_0x13f38a(0xfb))/0x6)+parseInt(_0x13f38a(0xea))/0x7+-parseInt(_0x13f38a(0xef))/0x8*(-parseInt(_0x13f38a(0xfe))/0x9)+parseInt(_0x13f38a(0x108))/0xa+parseInt(_0x13f38a(0x104))/0xb*(-parseInt(_0x13f38a(0xf5))/0xc);if(_0x4ad1df===_0x350d3a)break;else _0x181c2f['push'](_0x181c2f['shift']());}catch(_0xa9d984){_0x181c2f['push'](_0x181c2f['shift']());}}}(_0x5755,0x6ca03));Object[_0x30a9d4(0xdc)](exports,'__esModule',{'value':!![]});const Dotenv=require(_0x30a9d4(0xeb));Dotenv[_0x30a9d4(0xdf)]({'path':_0x30a9d4(0xe2)});const core_1=require(_0x30a9d4(0x107)),app_module_1=require(_0x30a9d4(0xd8)),swagger_1=require(_0x30a9d4(0xe9)),allExceptions_filter_1=require('./common/filters/allExceptions.filter'),typeOrmQueryFailed_filter_1=require('./common/filters/typeOrmQueryFailed.filter'),common_1=require(_0x30a9d4(0x100)),transform_interceptor_1=require(_0x30a9d4(0x102)),main_1=require('./config/main'),initDatabase_1=require(_0x30a9d4(0xf1)),compression=require(_0x30a9d4(0xec)),xmlBodyParser=require(_0x30a9d4(0xf4)),path_1=require(_0x30a9d4(0xf9));async function bootstrap(){const _0x1edf09=_0x30a9d4;await(0x0,initDatabase_1['initDatabase'])();const _0x1f2d27=await core_1[_0x1edf09(0xf6)][_0x1edf09(0x106)](app_module_1[_0x1edf09(0x105)]);_0x1f2d27[_0x1edf09(0xdd)](compression());const _0x506f7b=(0x0,path_1['resolve'])(__dirname,_0x1edf09(0xda));_0x1f2d27[_0x1edf09(0xdd)](xmlBodyParser()),_0x1f2d27[_0x1edf09(0xe7)](),_0x1f2d27[_0x1edf09(0xf7)](main_1['APIPREFIX']),_0x1f2d27[_0x1edf09(0xe4)](new transform_interceptor_1[(_0x1edf09(0xee))]()),_0x1f2d27[_0x1edf09(0xe3)](new typeOrmQueryFailed_filter_1[(_0x1edf09(0xfa))]()),_0x1f2d27[_0x1edf09(0xe3)](new allExceptions_filter_1['AllExceptionsFilter']()),_0x1f2d27[_0x1edf09(0x101)](new common_1['ValidationPipe']()),_0x1f2d27[_0x1edf09(0x109)]()[_0x1edf09(0xf2)]()[_0x1edf09(0xf0)](_0x1edf09(0xd7),_0x1edf09(0xe1)),_0x1f2d27['getHttpAdapter']()[_0x1edf09(0xf2)]()[_0x1edf09(0xf0)]('view\x20engine',_0x1edf09(0xdb)),(0x0,swagger_1[_0x1edf09(0xe0)])(_0x1f2d27);const _0x30d06f=await _0x1f2d27[_0x1edf09(0xe6)](main_1[_0x1edf09(0xe5)],()=>{const _0x41c716=_0x1edf09;common_1['Logger'][_0x41c716(0xe8)](_0x41c716(0xde)+main_1[_0x41c716(0xe5)]+_0x41c716(0xed),_0x41c716(0xf8));});_0x30d06f[_0x1edf09(0xfd)]=0x5*0x3c*0x3e8;}function _0x5916(_0x2d61aa,_0x1d6cb5){const _0x57553f=_0x5755();return _0x5916=function(_0x5916b6,_0x597896){_0x5916b6=_0x5916b6-0xd7;let _0x363925=_0x57553f[_0x5916b6];return _0x363925;},_0x5916(_0x2d61aa,_0x1d6cb5);}bootstrap(); |