@sava-info-systems/api-maker-with-extensions 1.19.1 → 1.19.3
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/.env +1 -1
- package/README.md +108 -4
- package/assets-deployment/.env +1 -1
- package/dist/8447.8caa67c3eb5d2b55.js +1 -0
- package/dist/index.html +1 -1
- package/dist/{main.7d84949326f61c3e.js → main.1da32156380b46d5.js} +1 -1
- package/dist/{runtime.f7e0fa10d087fa0b.js → runtime.212fca73d6a42b3a.js} +1 -1
- package/main.js +1 -1
- package/package.json +5 -5
- package/sandbox/sandbox.js +1 -1
- package/src/tools/local-client.js +1 -1
- package/dist/8447.87b3cf73f79cd889.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x502d06,_0x4f8e54){const _0x47df0f=a0_0x3040,_0x37df1f=_0x502d06();while(!![]){try{const _0x4b166e=-parseInt(_0x47df0f(0x271))/0x1*(-parseInt(_0x47df0f(0x2de))/0x2)+parseInt(_0x47df0f(0x1c4))/0x3*(-parseInt(_0x47df0f(0x223))/0x4)+-parseInt(_0x47df0f(0x2ad))/0x5*(parseInt(_0x47df0f(0x230))/0x6)+-parseInt(_0x47df0f(0x1e3))/0x7*(parseInt(_0x47df0f(0x29d))/0x8)+parseInt(_0x47df0f(0x25c))/0x9+parseInt(_0x47df0f(0x2c8))/0xa*(parseInt(_0x47df0f(0x286))/0xb)+parseInt(_0x47df0f(0x2ba))/0xc*(-parseInt(_0x47df0f(0x257))/0xd);if(_0x4b166e===_0x4f8e54)break;else _0x37df1f['push'](_0x37df1f['shift']());}catch(_0x21e277){_0x37df1f['push'](_0x37df1f['shift']());}}}(a0_0xb81c,0x34161),((()=>{'use strict';var _0x4ed9e3={0x11f:(_0x1b5bd2,_0x29481b,_0xdc1f2e)=>{const _0x4b7bdb=a0_0x3040;_0x29481b['_6']=_0x29481b['EN']=_0x29481b['Yl']=_0x29481b['QX']=void 0x0;const _0xe6c262=_0xdc1f2e(0x3a),_0x49c803=_0xdc1f2e(0x2a0),_0x158ca1=_0xdc1f2e(0x170);var _0x49d459,_0x4df010,_0x4d7b67,_0x5baad4,_0xeb1fac,_0x4f25a8;new class{constructor(){const _0xdeba7c=a0_0x3040;this['EL']=!0x1,this['appRoot']=_0x49c803[_0xdeba7c(0x242)](''),this[_0xdeba7c(0x232)]='',this['C']={'localClientPath':'./local-client.config','src':_0xdeba7c(0x1c6),'repo':_0xdeba7c(0x291),'types':_0xdeba7c(0x237),'amTypes':_0xdeba7c(0x29e),'versions':'versions','apis':_0xdeba7c(0x2f9),'listeners':'listeners','postHooks':_0xdeba7c(0x1e6),'preHooks':'pre-hooks','dbInterfacesFile':_0xdeba7c(0x28e),'UtilityClassesReadF':'Utility\x20classes','CustomApiReadF':'Custom\x20APIs','SchedulersReadF':_0xdeba7c(0x2d2),'WebSocketEventsReadF':_0xdeba7c(0x2a4),'SchemaReadF':_0xdeba7c(0x1ef),'DBMigrationsReadF':'Database\x20migrations','ProcessInitializersReadF':'Process\x20initializers','ProcessI18NReadF':_0xdeba7c(0x1b0),'DBMastersReadF':_0xdeba7c(0x1ec),'DBMasterStylesReadF':_0xdeba7c(0x1ca),'DBMasterUtilsReadF':_0xdeba7c(0x22f),'TestCasesReadF':_0xdeba7c(0x1ea),'ThirdPartyApiReadF':'Third\x20party\x20APIs','EventsReadF':_0xdeba7c(0x308),'InstanceApiHooksReadF':_0xdeba7c(0x1c2),'SystemApiHooksReadF':_0xdeba7c(0x248),'CollectionHooksReadF':_0xdeba7c(0x2bb),'DatabaseHooksReadF':_0xdeba7c(0x24f),'InstanceHooksReadF':_0xdeba7c(0x1f9),'CustomApisWriteF':_0xdeba7c(0x2fb),'SchedulersWriteF':_0xdeba7c(0x299),'WebSocketEventsWriteF':_0xdeba7c(0x1ba),'SchemaWriteF':_0xdeba7c(0x249),'DBMigrationsWriteF':_0xdeba7c(0x1e2),'ProcessInitializersWriteF':_0xdeba7c(0x275),'ProcessI18NWriteF':_0xdeba7c(0x1b0),'DBMastersWriteF':_0xdeba7c(0x24c),'DBMasterStylesWriteF':_0xdeba7c(0x22c),'DBMasterUtilsWriteF':_0xdeba7c(0x297),'TestCasesWriteF':'tests','ThirdPartyApiWriteF':_0xdeba7c(0x29b),'EventsWriteF':_0xdeba7c(0x309),'InstanceApiHooksWriteF':_0xdeba7c(0x238),'SystemApiHooksWriteF':'system-api-hooks','CollectionHooksWriteF':_0xdeba7c(0x23b),'DatabaseHooksWriteF':_0xdeba7c(0x23e),'InstanceHooksWriteF':_0xdeba7c(0x2e7)},this[_0xdeba7c(0x296)]=!0x1,this[_0xdeba7c(0x216)]={},this[_0xdeba7c(0x225)]=!0x1,this['orangeStart']=_0xdeba7c(0x305),this[_0xdeba7c(0x284)]=_0xdeba7c(0x278),this[_0xdeba7c(0x2d8)]=_0xdeba7c(0x1d1),this[_0xdeba7c(0x24d)]=!0x1,this['sendDeletedEventToServerDebounce']=this[_0xdeba7c(0x2aa)](this[_0xdeba7c(0x2a6)],0x1f4);}async[_0x4b7bdb(0x27b)](){const _0x57205f=_0x4b7bdb;this[_0x57205f(0x20f)](),this[_0x57205f(0x207)](),this[_0x57205f(0x2b6)](this['C'][_0x57205f(0x26a)]+_0x57205f(0x2f5))||(this[_0x57205f(0x1bb)](),this[_0x57205f(0x2e9)](0x1)['then']()),this[_0x57205f(0x1aa)]=require(this['C'][_0x57205f(0x26a)])(),await this[_0x57205f(0x245)](),this['removeEmptyDirsSync'](_0x49c803[_0x57205f(0x2ec)](this[_0x57205f(0x2dd)],this['C'][_0x57205f(0x1c6)])),await this[_0x57205f(0x312)](),await this[_0x57205f(0x234)](),await this[_0x57205f(0x2c3)]();}[_0x4b7bdb(0x207)](){const _0x2b1569=_0x4b7bdb,_0x1b141b=process['version'];parseInt(_0x1b141b[_0x2b1569(0x30a)]('.')[0x0][_0x2b1569(0x1d9)]('v',''),0xa)<0x16&&(console['error'](this[_0x2b1569(0x1ed)]+_0x2b1569(0x1eb)+_0x1b141b+this['colorEnd']),this[_0x2b1569(0x2e9)](0x1)['then']());}async[_0x4b7bdb(0x245)](){const _0x5cd1fe=_0x4b7bdb;console['log'](this[_0x5cd1fe(0x1ed)]),console[_0x5cd1fe(0x201)](_0x5cd1fe(0x24e)),console['log']('\x20Local\x20client\x20will\x20pull\x20your\x20server\x20changes\x20to\x20local\x20&\x20perform\x20sync\x20between\x20them.'),console[_0x5cd1fe(0x201)](_0x5cd1fe(0x259)+this[_0x5cd1fe(0x2dd)]),console[_0x5cd1fe(0x201)](_0x5cd1fe(0x311)),console[_0x5cd1fe(0x201)](this['colorEnd']),console[_0x5cd1fe(0x201)]('');}[_0x4b7bdb(0x1bb)](){const _0x336395=_0x4b7bdb;console[_0x336395(0x201)]('\x1b[38;2;255;165;0m'),console[_0x336395(0x201)](_0x336395(0x301)+this['C'][_0x336395(0x26a)]+_0x336395(0x2f5)),console[_0x336395(0x201)]('\x1b[0m'),console[_0x336395(0x201)]('');}async[_0x4b7bdb(0x312)](){const _0x1f5553=_0x4b7bdb,_0x4282fd=_0x49c803[_0x1f5553(0x2bc)](this[_0x1f5553(0x2dd)]),_0x106244=_0x49c803[_0x1f5553(0x2ec)](this[_0x1f5553(0x2dd)],'..',_0x4282fd+_0x1f5553(0x26e));this[_0x1f5553(0x232)]=_0x106244,_0xe6c262[_0x1f5553(0x228)](_0x106244,{'recursive':!0x0,'force':!0x0}),await this[_0x1f5553(0x24b)](_0x106244,{'recursive':!0x0});}async[_0x4b7bdb(0x1fa)](_0x7547f7){const _0x43375b=_0x4b7bdb;await this['createLCProjectDirectory'](),this['fsMkDirSync'](_0x49c803[_0x43375b(0x2ec)](this[_0x43375b(0x232)],this['C']['src']),{'recursive':!0x0}),_0xe6c262[_0x43375b(0x229)](_0x49c803[_0x43375b(0x2ec)](this[_0x43375b(0x2dd)],_0x43375b(0x2f6)),_0x49c803[_0x43375b(0x2ec)](this[_0x43375b(0x232)],_0x43375b(0x2f6))),_0xe6c262[_0x43375b(0x229)](_0x49c803[_0x43375b(0x2ec)](this[_0x43375b(0x2dd)],'.gitignore'),_0x49c803[_0x43375b(0x2ec)](this['projectDirectory'],_0x43375b(0x2b4)));const _0x391b78=_0x49c803[_0x43375b(0x2ec)](this['appRoot'],_0x43375b(0x2db)),_0x4fd3ff=JSON[_0x43375b(0x2d5)](await this['fsReadFile'](_0x391b78,{'encoding':_0x43375b(0x270)}));_0x4fd3ff[_0x43375b(0x246)]['baseUrl']=_0x43375b(0x2e6),_0x4fd3ff[_0x43375b(0x246)][_0x43375b(0x29a)]['*'][_0x43375b(0x2fc)]('*'),await this[_0x43375b(0x2b9)](_0x49c803['join'](this[_0x43375b(0x232)],_0x43375b(0x2db)),JSON[_0x43375b(0x215)](_0x4fd3ff,null,0x4),{'encoding':_0x43375b(0x270)}),await _0xe6c262[_0x43375b(0x279)]['cp'](_0x49c803[_0x43375b(0x2ec)](this[_0x43375b(0x2dd)],this['C']['amTypes']),_0x49c803[_0x43375b(0x2ec)](this[_0x43375b(0x232)],this['C'][_0x43375b(0x1c6)],this['C'][_0x43375b(0x26d)]),{'recursive':!0x0}),await _0xe6c262[_0x43375b(0x279)]['cp'](_0x49c803[_0x43375b(0x2ec)](this[_0x43375b(0x2dd)],this['C']['src'],this[_0x43375b(0x1aa)][_0x43375b(0x1fb)],this['C']['types'],this['C'][_0x43375b(0x1cd)]),_0x49c803[_0x43375b(0x2ec)](this[_0x43375b(0x232)],this['C'][_0x43375b(0x1c6)],this['C'][_0x43375b(0x26d)],this['C']['dbInterfacesFile']),{'recursive':!0x0}),await this[_0x43375b(0x29f)](),await this['copyCustomApisToAnotherDir'](),await this['copySchedulersToAnotherDir'](),await this[_0x43375b(0x2f0)](),await this[_0x43375b(0x295)](),await this[_0x43375b(0x1b2)](),await this[_0x43375b(0x303)](),await this[_0x43375b(0x1f1)](),await this[_0x43375b(0x304)](),await this[_0x43375b(0x21a)](),await this['copyInstanceApiHooksToAnotherDir'](),await this[_0x43375b(0x204)](),await this['copyWebSocketEventsToAnotherDir'](),await this[_0x43375b(0x1c9)](),await this['copyDatabaseHooksToAnotherDir'](),await this[_0x43375b(0x1ce)](),await this['copyDBMastersToAnotherDir'](),await this[_0x43375b(0x236)](),await this[_0x43375b(0x290)](),_0x7547f7&&(console[_0x43375b(0x201)](_0x43375b(0x213)),await this[_0x43375b(0x250)](_0x43375b(0x1ab),['install',_0x43375b(0x2cf)]),console['log'](_0x43375b(0x2e5)));try{_0xe6c262[_0x43375b(0x2e2)](_0x49c803[_0x43375b(0x2ec)](this[_0x43375b(0x2dd)],_0x43375b(0x220)),_0x49c803[_0x43375b(0x2ec)](this[_0x43375b(0x232)],_0x43375b(0x220)),_0x43375b(0x1d7));}catch(_0x48a1aa){console['log'](_0x43375b(0x292)),console[_0x43375b(0x201)](_0x48a1aa),await this['shutdownAndExit'](0x1);}}async['installRequiredPackages'](){const _0x11e686=_0x4b7bdb;console['log'](_0x11e686(0x25a));try{_0xe6c262[_0x11e686(0x27c)](_0x49c803[_0x11e686(0x2ec)](this[_0x11e686(0x2dd)],_0x11e686(0x1dd)));}catch(_0x51672d){}await this[_0x11e686(0x250)](_0x11e686(0x1ab),[_0x11e686(0x2d4),_0x11e686(0x1ee),'chokidar@4.0.3',_0x11e686(0x2ae)]),console['log'](_0x11e686(0x243));}async[_0x4b7bdb(0x29f)](){const _0x83e2ff=_0x4b7bdb,_0x2bbb56=this['C'][_0x83e2ff(0x310)],_0x550935=_0x49c803[_0x83e2ff(0x2ec)](this[_0x83e2ff(0x2dd)],this['C'][_0x83e2ff(0x1c6)],this['config'][_0x83e2ff(0x1fb)],_0x2bbb56),_0x37a49c=await this[_0x83e2ff(0x2e1)](_0x550935,null);for(const _0x599b3c of _0x37a49c){const _0x59987c=_0x49c803[_0x83e2ff(0x2ec)](_0x550935,_0x599b3c,_0x599b3c+'.yaml');if(!this['fsExistsSync'](_0x59987c))continue;const _0x447b80=await this['fsReadFile'](_0x59987c,{'encoding':'utf8'}),_0x384e96=await this[_0x83e2ff(0x281)](_0x447b80);for(const _0xf47a54 of _0x384e96[_0x83e2ff(0x2bf)]||[])if(!0x0===_0xf47a54[_0x83e2ff(0x221)]){const _0xafea7c=_0x49c803[_0x83e2ff(0x2ec)](_0x550935,_0x599b3c,this['C'][_0x83e2ff(0x2bf)],_0xf47a54[_0x83e2ff(0x25f)],_0xf47a54[_0x83e2ff(0x2c0)]+_0x83e2ff(0x1dc)),_0x756e79=_0x49c803[_0x83e2ff(0x2ec)](this['projectDirectory'],this['C'][_0x83e2ff(0x1c6)],_0x384e96[_0x83e2ff(0x1ac)],_0x384e96['name']+_0x83e2ff(0x1dc));await this['fsMkDir'](_0x49c803['dirname'](_0x756e79),{'recursive':!0x0}),await this[_0x83e2ff(0x1df)](_0xafea7c,_0x756e79);}}}async[_0x4b7bdb(0x1b7)](){const _0x5dfe53=_0x4b7bdb,_0x290e0d=this['C']['CustomApiReadF'],_0x1044d5=this['C'][_0x5dfe53(0x258)],_0x249be4=_0x49c803[_0x5dfe53(0x2ec)](this['appRoot'],this['C'][_0x5dfe53(0x1c6)],this[_0x5dfe53(0x1aa)]['adminUserPath'],_0x290e0d),_0x26c55d=await this[_0x5dfe53(0x2e1)](_0x249be4,null);for(const _0x292c8a of _0x26c55d){const _0x189bee=_0x49c803[_0x5dfe53(0x2ec)](_0x249be4,_0x292c8a,_0x292c8a+_0x5dfe53(0x1f7));if(!this[_0x5dfe53(0x2b6)](_0x189bee))continue;const _0x387f5d=await this[_0x5dfe53(0x255)](_0x189bee,{'encoding':_0x5dfe53(0x270)}),_0x5897fa=await this['parseYaml'](_0x387f5d);for(const _0x4a2f4d of _0x5897fa[_0x5dfe53(0x2bf)]||[])if(!0x0===_0x4a2f4d[_0x5dfe53(0x221)]){const _0x178a09=_0x49c803[_0x5dfe53(0x2ec)](_0x249be4,_0x292c8a,this['C']['versions'],_0x4a2f4d[_0x5dfe53(0x25f)]),_0x3d29aa=_0x49c803[_0x5dfe53(0x2ec)](_0x178a09,_0x4a2f4d['name']+_0x5dfe53(0x1dc)),_0x39a867=_0x49c803[_0x5dfe53(0x2ec)](this[_0x5dfe53(0x232)],this['C'][_0x5dfe53(0x1c6)],_0x1044d5,_0x5897fa[_0x5dfe53(0x1b4)],_0x5897fa[_0x5dfe53(0x2c0)]+'.ts');await this[_0x5dfe53(0x24b)](_0x49c803[_0x5dfe53(0x307)](_0x39a867),{'recursive':!0x0}),await this[_0x5dfe53(0x1df)](_0x3d29aa,_0x39a867);const _0x33727b=_0x49c803[_0x5dfe53(0x2ec)](_0x249be4,_0x292c8a,_0x292c8a+_0x5dfe53(0x20e)),_0x41b226=_0x49c803[_0x5dfe53(0x2ec)](this['projectDirectory'],this['C'][_0x5dfe53(0x1c6)],_0x1044d5,_0x5897fa['path'],_0x5897fa[_0x5dfe53(0x2c0)]+_0x5dfe53(0x20e));await this[_0x5dfe53(0x1df)](_0x33727b,_0x41b226);for(const _0x36f469 of _0x4a2f4d['preHooks']){const _0x3eaaa7=_0x49c803['join'](_0x178a09,this['C'][_0x5dfe53(0x2b1)],_0x36f469[_0x5dfe53(0x2c0)]+_0x5dfe53(0x1dc)),_0x32e045=_0x49c803[_0x5dfe53(0x2ec)](this[_0x5dfe53(0x232)],this['C'][_0x5dfe53(0x1c6)],_0x1044d5,_0x5897fa[_0x5dfe53(0x1b4)],this['C']['preHooks'],_0x36f469[_0x5dfe53(0x2c0)]+_0x5dfe53(0x1dc));await this[_0x5dfe53(0x24b)](_0x49c803[_0x5dfe53(0x307)](_0x32e045),{'recursive':!0x0}),await this[_0x5dfe53(0x1df)](_0x3eaaa7,_0x32e045);}for(const _0x439f74 of _0x4a2f4d[_0x5dfe53(0x2fe)]){const _0x42e807=_0x49c803[_0x5dfe53(0x2ec)](_0x178a09,this['C']['postHooks'],_0x439f74[_0x5dfe53(0x2c0)]+_0x5dfe53(0x1dc)),_0x2311ce=_0x49c803[_0x5dfe53(0x2ec)](this[_0x5dfe53(0x232)],this['C'][_0x5dfe53(0x1c6)],_0x1044d5,_0x5897fa[_0x5dfe53(0x1b4)],this['C'][_0x5dfe53(0x2fe)],_0x439f74[_0x5dfe53(0x2c0)]+'.ts');await this[_0x5dfe53(0x24b)](_0x49c803[_0x5dfe53(0x307)](_0x2311ce),{'recursive':!0x0}),await this[_0x5dfe53(0x1df)](_0x42e807,_0x2311ce);}}}}async['copySchedulersToAnotherDir'](){const _0x598e82=_0x4b7bdb,_0x560485=this['C'][_0x598e82(0x30b)],_0x276eea=this['C'][_0x598e82(0x288)],_0x3c80e0=_0x49c803['join'](this[_0x598e82(0x2dd)],this['C'][_0x598e82(0x1c6)],this[_0x598e82(0x1aa)][_0x598e82(0x1fb)],_0x560485),_0x320c9e=await this[_0x598e82(0x2e1)](_0x3c80e0,null);for(const _0x1d196e of _0x320c9e){const _0x3ead87=_0x49c803[_0x598e82(0x2ec)](_0x3c80e0,_0x1d196e,_0x1d196e+_0x598e82(0x1f7));if(!this[_0x598e82(0x2b6)](_0x3ead87))continue;const _0x5f59c9=await this[_0x598e82(0x255)](_0x3ead87,{'encoding':_0x598e82(0x270)}),_0x2a67df=await this['parseYaml'](_0x5f59c9);for(const _0x374b3e of _0x2a67df[_0x598e82(0x2bf)]||[])if(!0x0===_0x374b3e['isActive']){const _0x44f354=_0x49c803[_0x598e82(0x2ec)](_0x3c80e0,_0x1d196e,this['C'][_0x598e82(0x2bf)],_0x374b3e[_0x598e82(0x25f)],_0x374b3e[_0x598e82(0x2c0)]+_0x598e82(0x1dc)),_0x15f790=_0x49c803[_0x598e82(0x2ec)](this['projectDirectory'],this['C']['src'],_0x276eea,_0x2a67df[_0x598e82(0x2c0)]+_0x598e82(0x1dc));await this[_0x598e82(0x24b)](_0x49c803[_0x598e82(0x307)](_0x15f790),{'recursive':!0x0}),await this[_0x598e82(0x1df)](_0x44f354,_0x15f790);}}}async[_0x4b7bdb(0x2f0)](){const _0x56aca9=_0x4b7bdb,_0x46defc=this['C'][_0x56aca9(0x208)],_0x38ed49=this['C']['SchemaWriteF'],_0x2f164d=_0x49c803[_0x56aca9(0x2ec)](this[_0x56aca9(0x2dd)],this['C'][_0x56aca9(0x1c6)],this[_0x56aca9(0x1aa)][_0x56aca9(0x1fb)],_0x46defc),_0x12a482=await this[_0x56aca9(0x2e1)](_0x2f164d,null);for(const _0x4612be of _0x12a482){const _0x203f87=_0x49c803[_0x56aca9(0x2ec)](_0x2f164d,_0x4612be,_0x4612be+_0x56aca9(0x1f7));if(!this[_0x56aca9(0x2b6)](_0x203f87))continue;const _0xb01ebb=await this['fsReadFile'](_0x203f87,{'encoding':'utf8'}),_0x58f155=await this[_0x56aca9(0x281)](_0xb01ebb),_0x2b0a32=_0x49c803[_0x56aca9(0x2ec)](this['projectDirectory'],this['C'][_0x56aca9(0x1c6)],_0x38ed49,_0x58f155[_0x56aca9(0x27e)],_0x58f155[_0x56aca9(0x298)]);await this[_0x56aca9(0x24b)](_0x2b0a32,{'recursive':!0x0});const _0x3d7483=_0x49c803[_0x56aca9(0x2ec)](_0x2f164d,_0x4612be,_0x58f155[_0x56aca9(0x214)]+_0x56aca9(0x20e)),_0x5c3926=_0x49c803[_0x56aca9(0x2ec)](_0x2b0a32,_0x58f155['collectionName']+_0x56aca9(0x20e));await this['fsLink'](_0x3d7483,_0x5c3926);}}async['copyDBMigrationsToAnotherDir'](){const _0x2213cd=_0x4b7bdb,_0x1dd545=this['C'][_0x2213cd(0x253)],_0x124574=this['C'][_0x2213cd(0x1ad)],_0x45a06b=_0x49c803[_0x2213cd(0x2ec)](this[_0x2213cd(0x2dd)],this['C'][_0x2213cd(0x1c6)],this['config'][_0x2213cd(0x1fb)],_0x1dd545),_0x5ec2b0=await this[_0x2213cd(0x2e1)](_0x45a06b,null);for(const _0x58f519 of _0x5ec2b0){const _0x39760e=_0x49c803['join'](_0x45a06b,_0x58f519,_0x58f519+_0x2213cd(0x1f7));if(!this[_0x2213cd(0x2b6)](_0x39760e))continue;const _0x32ad01=await this['fsReadFile'](_0x39760e,{'encoding':_0x2213cd(0x270)}),_0x280485=await this[_0x2213cd(0x281)](_0x32ad01),_0x40cda4=_0x49c803['join'](this[_0x2213cd(0x232)],this['C'][_0x2213cd(0x1c6)],_0x124574);await this[_0x2213cd(0x24b)](_0x40cda4,{'recursive':!0x0});const _0x17db26=_0x49c803['join'](_0x45a06b,_0x58f519,_0x280485[_0x2213cd(0x2c0)]+'.ts'),_0x17cd2c=_0x49c803[_0x2213cd(0x2ec)](_0x40cda4,_0x280485['name']+'.ts');await this[_0x2213cd(0x1df)](_0x17db26,_0x17cd2c);}}async[_0x4b7bdb(0x1b2)](){const _0x18d4aa=_0x4b7bdb,_0x1ceb8d=this['C'][_0x18d4aa(0x27f)],_0x618a87=this['C'][_0x18d4aa(0x2a0)],_0x40d142=_0x49c803[_0x18d4aa(0x2ec)](this[_0x18d4aa(0x2dd)],this['C']['src'],this[_0x18d4aa(0x1aa)][_0x18d4aa(0x1fb)],_0x1ceb8d),_0x110695=await this[_0x18d4aa(0x2e1)](_0x40d142,null);for(const _0x5152fb of _0x110695){const _0x5cb6ca=_0x49c803[_0x18d4aa(0x2ec)](_0x40d142,_0x5152fb,_0x5152fb+_0x18d4aa(0x1f7));if(!this[_0x18d4aa(0x2b6)](_0x5cb6ca))continue;const _0x564afb=await this['fsReadFile'](_0x5cb6ca,{'encoding':_0x18d4aa(0x270)}),_0x18592d=await this[_0x18d4aa(0x281)](_0x564afb),_0x1d050f=_0x49c803[_0x18d4aa(0x2ec)](this[_0x18d4aa(0x232)],this['C'][_0x18d4aa(0x1c6)],_0x618a87);await this[_0x18d4aa(0x24b)](_0x1d050f,{'recursive':!0x0});const _0x49c319=_0x49c803[_0x18d4aa(0x2ec)](_0x40d142,_0x5152fb,_0x18592d[_0x18d4aa(0x2c0)]+_0x18d4aa(0x1dc)),_0x5c5656=_0x49c803[_0x18d4aa(0x2ec)](_0x1d050f,_0x18592d['name']+_0x18d4aa(0x1dc));await this[_0x18d4aa(0x1df)](_0x49c319,_0x5c5656);}}async[_0x4b7bdb(0x303)](){const _0x56b53b=_0x4b7bdb,_0x33e10d=this['C'][_0x56b53b(0x2cd)],_0x51e897=this['C'][_0x56b53b(0x276)],_0xb426bd=_0x49c803['join'](this[_0x56b53b(0x2dd)],this['C']['src'],this['config'][_0x56b53b(0x1fb)],_0x33e10d),_0x25630b=await this[_0x56b53b(0x2e1)](_0xb426bd,null);for(const _0x8c833d of _0x25630b){const _0x5e54cd=_0x49c803[_0x56b53b(0x2ec)](_0xb426bd,_0x8c833d,_0x8c833d+'.yaml');if(!this[_0x56b53b(0x2b6)](_0x5e54cd))continue;const _0x3e482c=await this['fsReadFile'](_0x5e54cd,{'encoding':_0x56b53b(0x270)}),_0x2d80dd=await this[_0x56b53b(0x281)](_0x3e482c),_0x1341f0=_0x49c803['join'](this[_0x56b53b(0x232)],this['C'][_0x56b53b(0x1c6)],_0x51e897);await this[_0x56b53b(0x24b)](_0x1341f0,{'recursive':!0x0});const _0x2a3137=_0x49c803['join'](_0xb426bd,_0x8c833d,_0x2d80dd[_0x56b53b(0x2c0)]+_0x56b53b(0x1dc)),_0x1f61dc=_0x49c803[_0x56b53b(0x2ec)](_0x1341f0,_0x2d80dd[_0x56b53b(0x2c0)]+_0x56b53b(0x1dc));await this['fsLink'](_0x2a3137,_0x1f61dc);}}async['copyDBMastersToAnotherDir'](){const _0x25ce92=_0x4b7bdb,_0x4f82ae=this['C']['DBMastersReadF'],_0x22c062=this['C'][_0x25ce92(0x252)],_0x31ea71=_0x49c803[_0x25ce92(0x2ec)](this[_0x25ce92(0x2dd)],this['C'][_0x25ce92(0x1c6)],this['config'][_0x25ce92(0x1fb)],_0x4f82ae),_0x528849=await this[_0x25ce92(0x2e1)](_0x31ea71,null);for(const _0x24e75b of _0x528849){const _0x2c2fe2=_0x49c803[_0x25ce92(0x2ec)](_0x31ea71,_0x24e75b,_0x24e75b+_0x25ce92(0x1f7));if(!this[_0x25ce92(0x2b6)](_0x2c2fe2))continue;const _0x3c8fc0=await this[_0x25ce92(0x255)](_0x2c2fe2,{'encoding':'utf8'}),_0x2558d3=await this[_0x25ce92(0x281)](_0x3c8fc0),_0x18226e=_0x49c803[_0x25ce92(0x2ec)](this[_0x25ce92(0x232)],this['C'][_0x25ce92(0x1c6)],_0x22c062,_0x2558d3['name']);await this[_0x25ce92(0x24b)](_0x18226e,{'recursive':!0x0});const _0x20cf82=_0x49c803['join'](_0x31ea71,_0x24e75b,_0x2558d3[_0x25ce92(0x2c0)]+_0x25ce92(0x1dc)),_0x70b183=_0x49c803['join'](_0x18226e,_0x2558d3['name']+_0x25ce92(0x1dc));await this[_0x25ce92(0x1df)](_0x20cf82,_0x70b183);const _0xad11cd=_0x49c803[_0x25ce92(0x2ec)](_0x31ea71,_0x24e75b,_0x2558d3[_0x25ce92(0x2c0)]+_0x25ce92(0x20e)),_0x2656a4=_0x49c803[_0x25ce92(0x2ec)](_0x18226e,_0x2558d3[_0x25ce92(0x2c0)]+_0x25ce92(0x20e));await this[_0x25ce92(0x1df)](_0xad11cd,_0x2656a4);}}async['copyDBMasterStylesToAnotherDir'](){const _0x61ec79=_0x4b7bdb,_0xa64ca9=this['C']['DBMasterStylesReadF'],_0x57b830=this['C'][_0x61ec79(0x29c)],_0x28bf56=_0x49c803[_0x61ec79(0x2ec)](this[_0x61ec79(0x2dd)],this['C']['src'],this[_0x61ec79(0x1aa)]['adminUserPath'],_0xa64ca9),_0x355b4c=await this[_0x61ec79(0x2e1)](_0x28bf56,null);for(const _0x5b9108 of _0x355b4c){const _0x262f94=_0x49c803[_0x61ec79(0x2ec)](_0x28bf56,_0x5b9108,_0x5b9108+'.yaml');if(!this[_0x61ec79(0x2b6)](_0x262f94))continue;const _0x264f8a=await this['fsReadFile'](_0x262f94,{'encoding':_0x61ec79(0x270)}),_0x101eea=await this[_0x61ec79(0x281)](_0x264f8a),_0x4561ae=_0x49c803['join'](this[_0x61ec79(0x232)],this['C']['src'],_0x57b830);await this[_0x61ec79(0x24b)](_0x4561ae,{'recursive':!0x0});const _0x33f1ce=_0x49c803[_0x61ec79(0x2ec)](_0x28bf56,_0x5b9108,_0x101eea[_0x61ec79(0x2c0)]+_0x61ec79(0x254)),_0x3c8efd=_0x49c803[_0x61ec79(0x2ec)](_0x4561ae,_0x101eea['name']+_0x61ec79(0x254));await this[_0x61ec79(0x1df)](_0x33f1ce,_0x3c8efd);}}async[_0x4b7bdb(0x290)](){const _0x276f02=_0x4b7bdb,_0x32818d=this['C']['DBMasterUtilsReadF'],_0x202dc9=this['C'][_0x276f02(0x2bd)],_0x3fc40c=_0x49c803[_0x276f02(0x2ec)](this[_0x276f02(0x2dd)],this['C'][_0x276f02(0x1c6)],this[_0x276f02(0x1aa)][_0x276f02(0x1fb)],_0x32818d),_0x1ae0bd=await this[_0x276f02(0x2e1)](_0x3fc40c,null);for(const _0x406bf0 of _0x1ae0bd){const _0xa480a5=_0x49c803[_0x276f02(0x2ec)](_0x3fc40c,_0x406bf0,_0x406bf0+_0x276f02(0x1f7));if(!this[_0x276f02(0x2b6)](_0xa480a5))continue;const _0x191364=await this[_0x276f02(0x255)](_0xa480a5,{'encoding':_0x276f02(0x270)}),_0x497fca=await this[_0x276f02(0x281)](_0x191364),_0x2ddd25=_0x49c803[_0x276f02(0x2ec)](this[_0x276f02(0x232)],this['C']['src'],_0x202dc9);await this[_0x276f02(0x24b)](_0x2ddd25,{'recursive':!0x0});const _0x250f96=_0x49c803[_0x276f02(0x2ec)](_0x3fc40c,_0x406bf0,_0x497fca['name']+_0x276f02(0x1dc)),_0x4a1737=_0x49c803[_0x276f02(0x2ec)](_0x2ddd25,_0x497fca['name']+_0x276f02(0x1dc));await this[_0x276f02(0x1df)](_0x250f96,_0x4a1737);}}async[_0x4b7bdb(0x1f1)](){const _0x10ab89=_0x4b7bdb,_0x418f95=this['C'][_0x10ab89(0x2d6)],_0x46dd74=this['C'][_0x10ab89(0x30d)],_0x2b8980=_0x49c803['join'](this[_0x10ab89(0x2dd)],this['C'][_0x10ab89(0x1c6)],this['config'][_0x10ab89(0x1fb)],_0x418f95),_0xd517f8=await this[_0x10ab89(0x2e1)](_0x2b8980,null);for(const _0x1f7be2 of _0xd517f8){const _0x1fcd30=_0x49c803[_0x10ab89(0x2ec)](_0x2b8980,_0x1f7be2,_0x1f7be2+_0x10ab89(0x1f7));if(!this[_0x10ab89(0x2b6)](_0x1fcd30))continue;const _0x3c5827=await this[_0x10ab89(0x255)](_0x1fcd30,{'encoding':_0x10ab89(0x270)}),_0x3107d0=await this['parseYaml'](_0x3c5827),_0x3ef6ec=_0x49c803[_0x10ab89(0x2ec)](this[_0x10ab89(0x232)],this['C'][_0x10ab89(0x1c6)],_0x46dd74);await this[_0x10ab89(0x24b)](_0x3ef6ec,{'recursive':!0x0});const _0x373111=_0x49c803['join'](_0x2b8980,_0x1f7be2,_0x3107d0['name']+_0x10ab89(0x1dc)),_0x4ba59a=_0x49c803[_0x10ab89(0x2ec)](_0x3ef6ec,_0x3107d0[_0x10ab89(0x2c0)]+_0x10ab89(0x1dc));await this[_0x10ab89(0x1df)](_0x373111,_0x4ba59a);}}async[_0x4b7bdb(0x304)](){const _0x4842e5=_0x4b7bdb,_0x2ec090=this['C']['ThirdPartyApiReadF'],_0x3e4bca=this['C'][_0x4842e5(0x300)],_0x33c09a=_0x49c803[_0x4842e5(0x2ec)](this[_0x4842e5(0x2dd)],this['C'][_0x4842e5(0x1c6)],this[_0x4842e5(0x1aa)][_0x4842e5(0x1fb)],_0x2ec090);if(!this['fsExistsSync'](_0x33c09a))return;const _0x293cab=await this[_0x4842e5(0x2e1)](_0x33c09a,null);for(const _0x442edf of _0x293cab){const _0x14f8b8=_0x49c803['join'](_0x33c09a,_0x442edf,this['C'][_0x4842e5(0x2f9)]),_0x292b81=await this[_0x4842e5(0x2e1)](_0x14f8b8,null);for(const _0x3cbc17 of _0x292b81){const _0x37765c=_0x49c803[_0x4842e5(0x2ec)](_0x14f8b8,_0x3cbc17,_0x3cbc17+_0x4842e5(0x1f7));if(!this[_0x4842e5(0x2b6)](_0x37765c))continue;const _0x21ee71=await this[_0x4842e5(0x255)](_0x37765c,{'encoding':'utf8'}),_0x36eaee=await this['parseYaml'](_0x21ee71);for(const _0x3e659b of _0x36eaee[_0x4842e5(0x2bf)]||[])if(!0x0===_0x3e659b[_0x4842e5(0x221)]){const _0x2d1130=_0x49c803[_0x4842e5(0x2ec)](_0x14f8b8,_0x3cbc17,this['C'][_0x4842e5(0x2bf)],_0x3e659b[_0x4842e5(0x25f)]),_0x3e2944=_0x49c803[_0x4842e5(0x2ec)](_0x2d1130,_0x3e659b[_0x4842e5(0x2c0)]+_0x4842e5(0x1dc)),_0x13f068=_0x49c803[_0x4842e5(0x2ec)](this[_0x4842e5(0x232)],this['C'][_0x4842e5(0x1c6)],_0x3e4bca,_0x442edf,_0x36eaee['path'],_0x36eaee[_0x4842e5(0x2c0)]+_0x4842e5(0x1dc));await this[_0x4842e5(0x24b)](_0x49c803[_0x4842e5(0x307)](_0x13f068),{'recursive':!0x0}),await this[_0x4842e5(0x1df)](_0x3e2944,_0x13f068);const _0x595bf2=_0x49c803['join'](_0x14f8b8,_0x3cbc17,_0x3cbc17+_0x4842e5(0x20e)),_0x4980de=_0x49c803['join'](this[_0x4842e5(0x232)],this['C'][_0x4842e5(0x1c6)],_0x3e4bca,_0x442edf,_0x36eaee[_0x4842e5(0x1b4)],_0x36eaee['name']+_0x4842e5(0x20e));await this[_0x4842e5(0x1df)](_0x595bf2,_0x4980de);for(const _0x5d92a0 of _0x3e659b[_0x4842e5(0x2b1)]){const _0x27456b=_0x49c803['join'](_0x2d1130,this['C']['preHooks'],_0x5d92a0[_0x4842e5(0x2c0)]+_0x4842e5(0x1dc)),_0x1ab0d6=_0x49c803[_0x4842e5(0x2ec)](this['projectDirectory'],this['C'][_0x4842e5(0x1c6)],_0x3e4bca,_0x442edf,_0x36eaee[_0x4842e5(0x1b4)],this['C'][_0x4842e5(0x2b1)],_0x5d92a0[_0x4842e5(0x2c0)]+_0x4842e5(0x1dc));await this[_0x4842e5(0x24b)](_0x49c803[_0x4842e5(0x307)](_0x1ab0d6),{'recursive':!0x0}),await this[_0x4842e5(0x1df)](_0x27456b,_0x1ab0d6);}for(const _0x66d031 of _0x3e659b[_0x4842e5(0x2fe)]){const _0x3bb6ab=_0x49c803['join'](_0x2d1130,this['C']['postHooks'],_0x66d031['name']+_0x4842e5(0x1dc)),_0x372522=_0x49c803[_0x4842e5(0x2ec)](this[_0x4842e5(0x232)],this['C'][_0x4842e5(0x1c6)],_0x3e4bca,_0x442edf,_0x36eaee[_0x4842e5(0x1b4)],this['C'][_0x4842e5(0x2fe)],_0x66d031[_0x4842e5(0x2c0)]+_0x4842e5(0x1dc));await this[_0x4842e5(0x24b)](_0x49c803[_0x4842e5(0x307)](_0x372522),{'recursive':!0x0}),await this[_0x4842e5(0x1df)](_0x3bb6ab,_0x372522);}}}}}async[_0x4b7bdb(0x21a)](){const _0x455131=_0x4b7bdb,_0x681062=this['C'][_0x455131(0x2a5)],_0x4dbffa=this['C'][_0x455131(0x222)],_0x3e7a7c=_0x49c803['join'](this[_0x455131(0x2dd)],this['C'][_0x455131(0x1c6)],this[_0x455131(0x1aa)]['adminUserPath'],_0x681062),_0x481c93=await this['readDirCustom'](_0x3e7a7c,null);for(const _0x58b1ea of _0x481c93){const _0x546c0f=_0x49c803[_0x455131(0x2ec)](_0x3e7a7c,_0x58b1ea,_0x58b1ea+_0x455131(0x1f7));if(!this[_0x455131(0x2b6)](_0x546c0f))continue;const _0x49ea25=await this[_0x455131(0x255)](_0x546c0f,{'encoding':_0x455131(0x270)}),_0x3684df=await this[_0x455131(0x281)](_0x49ea25),_0x16f262=_0x49c803[_0x455131(0x2ec)](_0x3e7a7c,_0x58b1ea,this['C']['listeners']);for(const _0xbbb17e of _0x3684df[_0x455131(0x1e8)])for(const _0x15a7b4 of _0xbbb17e[_0x455131(0x2bf)]||[])if(!0x0===_0x15a7b4[_0x455131(0x221)]){const _0x129a93=_0x49c803['join'](_0x16f262,_0xbbb17e[_0x455131(0x2c0)],this['C'][_0x455131(0x2bf)],_0x15a7b4[_0x455131(0x25f)],_0x15a7b4[_0x455131(0x2c0)]+_0x455131(0x1dc)),_0x5f28bd=_0x49c803[_0x455131(0x2ec)](this['projectDirectory'],this['C'][_0x455131(0x1c6)],_0x4dbffa,_0x3684df[_0x455131(0x2c0)],_0xbbb17e[_0x455131(0x2c0)]+_0x455131(0x1dc));await this[_0x455131(0x24b)](_0x49c803[_0x455131(0x307)](_0x5f28bd),{'recursive':!0x0}),await this['fsLink'](_0x129a93,_0x5f28bd);}}}async[_0x4b7bdb(0x23c)](){const _0x4986dd=_0x4b7bdb,_0x2137ba=this['C']['InstanceApiHooksReadF'],_0x59909e=this['C']['InstanceApiHooksWriteF'],_0x2c2ed9=_0x49c803[_0x4986dd(0x2ec)](this[_0x4986dd(0x2dd)],this['C'][_0x4986dd(0x1c6)],this[_0x4986dd(0x1aa)][_0x4986dd(0x1fb)],_0x2137ba),_0x20eee3=await this[_0x4986dd(0x2e1)](_0x2c2ed9,null);for(const _0x256d9c of _0x20eee3){const _0x4e5826=_0x49c803['join'](_0x2c2ed9,_0x256d9c,_0x256d9c+'.yaml');if(!this[_0x4986dd(0x2b6)](_0x4e5826))continue;const _0x14634b=await this['fsReadFile'](_0x4e5826,{'encoding':_0x4986dd(0x270)}),_0x2032f3=await this[_0x4986dd(0x281)](_0x14634b),_0x13309b=_0x49c803[_0x4986dd(0x2ec)](_0x2c2ed9,_0x256d9c),_0x412111=_0x2032f3[_0x4986dd(0x27e)]+'/'+_0x2032f3[_0x4986dd(0x298)]+'/'+_0x2032f3[_0x4986dd(0x214)]+'/'+_0x2032f3[_0x4986dd(0x30f)][_0x4986dd(0x1d4)]();for(const _0x2b4baf of _0x2032f3[_0x4986dd(0x2b1)]){const _0x184557=_0x49c803['join'](_0x13309b,this['C'][_0x4986dd(0x2b1)],_0x2b4baf['name']+_0x4986dd(0x1dc)),_0xb73667=_0x49c803[_0x4986dd(0x2ec)](this[_0x4986dd(0x232)],this['C'][_0x4986dd(0x1c6)],_0x59909e,_0x412111,this['C'][_0x4986dd(0x2b1)],_0x2b4baf['name']+_0x4986dd(0x1dc));await this[_0x4986dd(0x24b)](_0x49c803['dirname'](_0xb73667),{'recursive':!0x0}),await this[_0x4986dd(0x1df)](_0x184557,_0xb73667);}for(const _0x6573b5 of _0x2032f3['postHooks']){const _0x3739a8=_0x49c803['join'](_0x13309b,this['C'][_0x4986dd(0x2fe)],_0x6573b5[_0x4986dd(0x2c0)]+_0x4986dd(0x1dc)),_0x4363ca=_0x49c803[_0x4986dd(0x2ec)](this['projectDirectory'],this['C']['src'],_0x59909e,_0x412111,this['C'][_0x4986dd(0x2fe)],_0x6573b5[_0x4986dd(0x2c0)]+'.ts');await this['fsMkDir'](_0x49c803[_0x4986dd(0x307)](_0x4363ca),{'recursive':!0x0}),await this['fsLink'](_0x3739a8,_0x4363ca);}}}async[_0x4b7bdb(0x204)](){const _0x378d28=_0x4b7bdb,_0x277f91=this['C']['SystemApiHooksReadF'],_0xe97ea5=this['C'][_0x378d28(0x1d5)],_0x5de2a8=_0x49c803[_0x378d28(0x2ec)](this['appRoot'],this['C']['src'],this[_0x378d28(0x1aa)][_0x378d28(0x1fb)],_0x277f91),_0xb5b93d=await this[_0x378d28(0x2e1)](_0x5de2a8,null);for(const _0x58a892 of _0xb5b93d){const _0xa77b93=_0x49c803['join'](_0x5de2a8,_0x58a892,_0x58a892+_0x378d28(0x1f7));if(!this[_0x378d28(0x2b6)](_0xa77b93))continue;const _0x1e0f0d=await this[_0x378d28(0x255)](_0xa77b93,{'encoding':_0x378d28(0x270)}),_0xe195f3=await this['parseYaml'](_0x1e0f0d),_0x491069=_0x49c803[_0x378d28(0x2ec)](_0x5de2a8,_0x58a892),_0x235925=_0xe195f3['apiId'][_0x378d28(0x1d4)]();for(const _0x5e9a60 of _0xe195f3['preHooks']){const _0x559c1a=_0x49c803[_0x378d28(0x2ec)](_0x491069,this['C'][_0x378d28(0x2b1)],_0x5e9a60['name']+_0x378d28(0x1dc)),_0x40676b=_0x49c803[_0x378d28(0x2ec)](this[_0x378d28(0x232)],this['C'][_0x378d28(0x1c6)],_0xe97ea5,_0x235925,this['C'][_0x378d28(0x2b1)],_0x5e9a60[_0x378d28(0x2c0)]+_0x378d28(0x1dc));await this['fsMkDir'](_0x49c803['dirname'](_0x40676b),{'recursive':!0x0}),await this[_0x378d28(0x1df)](_0x559c1a,_0x40676b);}for(const _0x4fba99 of _0xe195f3[_0x378d28(0x2fe)]){const _0x1cde05=_0x49c803[_0x378d28(0x2ec)](_0x491069,this['C'][_0x378d28(0x2fe)],_0x4fba99[_0x378d28(0x2c0)]+_0x378d28(0x1dc)),_0x16f96c=_0x49c803[_0x378d28(0x2ec)](this[_0x378d28(0x232)],this['C']['src'],_0xe97ea5,_0x235925,this['C'][_0x378d28(0x2fe)],_0x4fba99[_0x378d28(0x2c0)]+_0x378d28(0x1dc));await this[_0x378d28(0x24b)](_0x49c803[_0x378d28(0x307)](_0x16f96c),{'recursive':!0x0}),await this[_0x378d28(0x1df)](_0x1cde05,_0x16f96c);}}}async[_0x4b7bdb(0x2dc)](){const _0x3a7f95=_0x4b7bdb,_0x3fdaa1=this['C']['WebSocketEventsReadF'],_0x3d1ba2=this['C']['WebSocketEventsWriteF'],_0x5ce2a2=_0x49c803[_0x3a7f95(0x2ec)](this[_0x3a7f95(0x2dd)],this['C'][_0x3a7f95(0x1c6)],this[_0x3a7f95(0x1aa)][_0x3a7f95(0x1fb)],_0x3fdaa1),_0x59f18f=await this[_0x3a7f95(0x2e1)](_0x5ce2a2,null);for(const _0x3382de of _0x59f18f){const _0x2b5212=_0x49c803[_0x3a7f95(0x2ec)](_0x5ce2a2,_0x3382de,_0x3382de+_0x3a7f95(0x1f7));if(!this[_0x3a7f95(0x2b6)](_0x2b5212))continue;const _0x45563c=await this[_0x3a7f95(0x255)](_0x2b5212,{'encoding':_0x3a7f95(0x270)}),_0x54138d=await this[_0x3a7f95(0x281)](_0x45563c);for(const _0x4b8fd4 of _0x54138d[_0x3a7f95(0x2bf)]||[])if(!0x0===_0x4b8fd4[_0x3a7f95(0x221)]){const _0x3fb4c1=_0x49c803['join'](_0x5ce2a2,_0x3382de,this['C'][_0x3a7f95(0x2bf)],_0x4b8fd4['version'],_0x4b8fd4[_0x3a7f95(0x2c0)]+_0x3a7f95(0x1dc));let _0x681442='',_0x577b8b='';_0x54138d['apiCategory']===_0x49d459[_0x3a7f95(0x24a)]?(_0x577b8b=_0x3a7f95(0x1f8),_0x681442=_0x54138d['instanceName']+'/'+_0x54138d['databaseName']+'/'+_0x54138d['collectionName']+'/'+_0x54138d[_0x3a7f95(0x239)][_0x3a7f95(0x1d4)]()):_0x54138d['apiCategory']===_0x49d459[_0x3a7f95(0x1f2)]?(_0x577b8b=_0x3a7f95(0x29b),_0x681442=_0x54138d[_0x3a7f95(0x2c9)]+'/'+_0x54138d[_0x3a7f95(0x21b)]):_0x54138d[_0x3a7f95(0x1c7)]===_0x49d459['CUSTOM_APIS']?(_0x577b8b='custom-apis',_0x681442=_0x54138d[_0x3a7f95(0x1b1)]):_0x54138d[_0x3a7f95(0x1c7)]===_0x49d459[_0x3a7f95(0x2ab)]?(_0x577b8b=_0x3a7f95(0x2d9),_0x681442=_0x54138d['systemApiName'][_0x3a7f95(0x1d4)]()):_0x54138d[_0x3a7f95(0x1c7)]===_0x49d459['WEB_SOCKET_EVENT']&&(_0x577b8b=_0x3a7f95(0x306),_0x681442=_0x54138d[_0x3a7f95(0x2c0)]);const _0x11744e=_0x49c803[_0x3a7f95(0x2ec)](this[_0x3a7f95(0x232)],this['C'][_0x3a7f95(0x1c6)],_0x3d1ba2,_0x577b8b,_0x681442+_0x3a7f95(0x1dc));await this[_0x3a7f95(0x24b)](_0x49c803[_0x3a7f95(0x307)](_0x11744e),{'recursive':!0x0}),await this[_0x3a7f95(0x1df)](_0x3fb4c1,_0x11744e);}}}async['copyCollectionHooksToAnotherDir'](){const _0x374338=_0x4b7bdb,_0x4cf320=this['C'][_0x374338(0x2c7)],_0x333e4a=this['C'][_0x374338(0x205)],_0x18de7c=_0x49c803[_0x374338(0x2ec)](this[_0x374338(0x2dd)],this['C'][_0x374338(0x1c6)],this[_0x374338(0x1aa)]['adminUserPath'],_0x4cf320),_0xae1071=await this['readDirCustom'](_0x18de7c,null);for(const _0x30cf68 of _0xae1071){const _0x2e44cf=_0x49c803[_0x374338(0x2ec)](_0x18de7c,_0x30cf68,_0x30cf68+'.yaml');if(!this[_0x374338(0x2b6)](_0x2e44cf))continue;const _0x13f9e6=await this[_0x374338(0x255)](_0x2e44cf,{'encoding':'utf8'}),_0x5dfcaf=await this[_0x374338(0x281)](_0x13f9e6),_0x3fdff1=_0x49c803[_0x374338(0x2ec)](_0x18de7c,_0x30cf68),_0xcab41b=_0x5dfcaf[_0x374338(0x27e)]+'/'+_0x5dfcaf[_0x374338(0x298)]+'/'+_0x5dfcaf[_0x374338(0x214)];for(const _0x13823b of _0x5dfcaf[_0x374338(0x2b1)]){const _0x4bd325=_0x49c803[_0x374338(0x2ec)](_0x3fdff1,this['C'][_0x374338(0x2b1)],_0x13823b[_0x374338(0x2c0)]+_0x374338(0x1dc)),_0x946c14=_0x49c803['join'](this[_0x374338(0x232)],this['C'][_0x374338(0x1c6)],_0x333e4a,_0xcab41b,this['C'][_0x374338(0x2b1)],_0x13823b[_0x374338(0x2c0)]+_0x374338(0x1dc));await this[_0x374338(0x24b)](_0x49c803[_0x374338(0x307)](_0x946c14),{'recursive':!0x0}),await this['fsLink'](_0x4bd325,_0x946c14);}for(const _0x49cf02 of _0x5dfcaf['postHooks']){const _0x30d290=_0x49c803[_0x374338(0x2ec)](_0x3fdff1,this['C']['postHooks'],_0x49cf02[_0x374338(0x2c0)]+_0x374338(0x1dc)),_0x4b6d5e=_0x49c803['join'](this[_0x374338(0x232)],this['C']['src'],_0x333e4a,_0xcab41b,this['C'][_0x374338(0x2fe)],_0x49cf02[_0x374338(0x2c0)]+'.ts');await this[_0x374338(0x24b)](_0x49c803['dirname'](_0x4b6d5e),{'recursive':!0x0}),await this['fsLink'](_0x30d290,_0x4b6d5e);}}}async[_0x4b7bdb(0x1fe)](){const _0x1c6020=_0x4b7bdb,_0x8425a=this['C'][_0x1c6020(0x1ff)],_0x2127fa=this['C'][_0x1c6020(0x2a7)],_0x320140=_0x49c803[_0x1c6020(0x2ec)](this[_0x1c6020(0x2dd)],this['C'][_0x1c6020(0x1c6)],this[_0x1c6020(0x1aa)][_0x1c6020(0x1fb)],_0x8425a),_0x442cba=await this[_0x1c6020(0x2e1)](_0x320140,null);for(const _0x530a47 of _0x442cba){const _0x5b748e=_0x49c803[_0x1c6020(0x2ec)](_0x320140,_0x530a47,_0x530a47+_0x1c6020(0x1f7));if(!this[_0x1c6020(0x2b6)](_0x5b748e))continue;const _0x33188a=await this[_0x1c6020(0x255)](_0x5b748e,{'encoding':_0x1c6020(0x270)}),_0x56157b=await this[_0x1c6020(0x281)](_0x33188a),_0x23b719=_0x49c803['join'](_0x320140,_0x530a47),_0x3e2258=_0x56157b[_0x1c6020(0x27e)]+'/'+_0x56157b['databaseName'];for(const _0x5d6666 of _0x56157b[_0x1c6020(0x2b1)]){const _0x53c606=_0x49c803[_0x1c6020(0x2ec)](_0x23b719,this['C']['preHooks'],_0x5d6666[_0x1c6020(0x2c0)]+'.ts'),_0x1cc64b=_0x49c803[_0x1c6020(0x2ec)](this['projectDirectory'],this['C'][_0x1c6020(0x1c6)],_0x2127fa,_0x3e2258,this['C']['preHooks'],_0x5d6666[_0x1c6020(0x2c0)]+_0x1c6020(0x1dc));await this[_0x1c6020(0x24b)](_0x49c803['dirname'](_0x1cc64b),{'recursive':!0x0}),await this[_0x1c6020(0x1df)](_0x53c606,_0x1cc64b);}for(const _0x5cac85 of _0x56157b[_0x1c6020(0x2fe)]){const _0x49e915=_0x49c803['join'](_0x23b719,this['C'][_0x1c6020(0x2fe)],_0x5cac85[_0x1c6020(0x2c0)]+_0x1c6020(0x1dc)),_0x13f458=_0x49c803[_0x1c6020(0x2ec)](this[_0x1c6020(0x232)],this['C'][_0x1c6020(0x1c6)],_0x2127fa,_0x3e2258,this['C'][_0x1c6020(0x2fe)],_0x5cac85[_0x1c6020(0x2c0)]+'.ts');await this[_0x1c6020(0x24b)](_0x49c803[_0x1c6020(0x307)](_0x13f458),{'recursive':!0x0}),await this[_0x1c6020(0x1df)](_0x49e915,_0x13f458);}}}async[_0x4b7bdb(0x1ce)](){const _0x15f52c=_0x4b7bdb,_0x58e0be=this['C'][_0x15f52c(0x231)],_0x719e1=this['C'][_0x15f52c(0x263)],_0x34f15a=_0x49c803[_0x15f52c(0x2ec)](this['appRoot'],this['C'][_0x15f52c(0x1c6)],this[_0x15f52c(0x1aa)]['adminUserPath'],_0x58e0be),_0x5d5b1e=await this[_0x15f52c(0x2e1)](_0x34f15a,null);for(const _0x5584b6 of _0x5d5b1e){const _0x1f199f=_0x49c803[_0x15f52c(0x2ec)](_0x34f15a,_0x5584b6,_0x5584b6+'.yaml');if(!this[_0x15f52c(0x2b6)](_0x1f199f))continue;const _0x251d4a=await this['fsReadFile'](_0x1f199f,{'encoding':'utf8'}),_0x488ec6=await this[_0x15f52c(0x281)](_0x251d4a),_0x2bf074=_0x49c803['join'](_0x34f15a,_0x5584b6),_0x10ab51=''+_0x488ec6[_0x15f52c(0x27e)];for(const _0x3a858a of _0x488ec6[_0x15f52c(0x2b1)]){const _0x5814cf=_0x49c803[_0x15f52c(0x2ec)](_0x2bf074,this['C'][_0x15f52c(0x2b1)],_0x3a858a[_0x15f52c(0x2c0)]+'.ts'),_0x2909c8=_0x49c803[_0x15f52c(0x2ec)](this['projectDirectory'],this['C'][_0x15f52c(0x1c6)],_0x719e1,_0x10ab51,this['C'][_0x15f52c(0x2b1)],_0x3a858a[_0x15f52c(0x2c0)]+_0x15f52c(0x1dc));await this['fsMkDir'](_0x49c803[_0x15f52c(0x307)](_0x2909c8),{'recursive':!0x0}),await this[_0x15f52c(0x1df)](_0x5814cf,_0x2909c8);}for(const _0x487910 of _0x488ec6[_0x15f52c(0x2fe)]){const _0x58d2c5=_0x49c803['join'](_0x2bf074,this['C']['postHooks'],_0x487910[_0x15f52c(0x2c0)]+_0x15f52c(0x1dc)),_0x522824=_0x49c803['join'](this[_0x15f52c(0x232)],this['C'][_0x15f52c(0x1c6)],_0x719e1,_0x10ab51,this['C'][_0x15f52c(0x2fe)],_0x487910['name']+_0x15f52c(0x1dc));await this[_0x15f52c(0x24b)](_0x49c803[_0x15f52c(0x307)](_0x522824),{'recursive':!0x0}),await this[_0x15f52c(0x1df)](_0x58d2c5,_0x522824);}}}async['executeNpmRun'](_0x45efec,_0xab4204){return new Promise((_0x7ae667,_0x42a183)=>{const _0x59a1eb=a0_0x3040,_0x4bc9fa=(0x0,_0x158ca1[_0x59a1eb(0x1e7)])(_0x45efec,_0xab4204,{'shell':!0x0,'cwd':this[_0x59a1eb(0x2dd)]});_0x4bc9fa['on'](_0x59a1eb(0x302),_0x35f4af=>{const _0x16d7f3=_0x59a1eb;if(0x0===_0x35f4af)setTimeout(_0x7ae667,0x1f4);else{const _0x2e5533='\x27'+_0x45efec+'\x20'+_0xab4204[_0x16d7f3(0x2ec)]('\x20')+_0x16d7f3(0x20d)+_0x35f4af+'.';_0x42a183(new Error(_0x2e5533));}}),_0x4bc9fa['on'](_0x59a1eb(0x210),_0x3d3fcf=>{const _0x166ecd=_0x59a1eb;console['error']('Failed\x20to\x20start\x20the\x20npm\x20process:\x20'+_0x3d3fcf[_0x166ecd(0x28b)]),_0x42a183(_0x3d3fcf);});});}async[_0x4b7bdb(0x281)](_0x5df0dc){const _0x570e63=_0x4b7bdb;return _0xdc1f2e(0x2f8)[_0x570e63(0x219)](_0x5df0dc);}[_0x4b7bdb(0x23d)](){const _0x45f660=_0x4b7bdb,_0x3e4675=_0xdc1f2e(0x274),_0x56be15=_0x49c803[_0x45f660(0x2ec)](this[_0x45f660(0x2dd)]),_0xfb101e=_0x49c803[_0x45f660(0x2ec)](this[_0x45f660(0x2dd)],this['C'][_0x45f660(0x1c6)]),_0xe175dc=_0xebfd41=>{const _0x57a953=_0x45f660,_0x271b59=_0x49c803[_0x57a953(0x2ee)](_0x56be15,_0xebfd41);return!(_0x271b59&&!_0x271b59['startsWith']('.')&&!_0x271b59['endsWith']('~')&&_0x271b59[_0x57a953(0x2ef)](this['C'][_0x57a953(0x1c6)]));},_0x16887d=_0x3e4675['watch'](_0xfb101e,{'persistent':!0x0,'ignoreInitial':!0x0,'depth':0x1/0x0,'awaitWriteFinish':{'stabilityThreshold':0xc8,'pollInterval':0x64}}),_0xb33379=async(_0x5e4ec8,_0x2ccab0)=>{const _0x6db71f=_0x45f660;try{if(this[_0x6db71f(0x296)])return;const _0x10470b=_0x49c803[_0x6db71f(0x2ee)](_0x56be15,_0x2ccab0);if(!_0x2ccab0||_0xe175dc(_0x2ccab0))return;console[_0x6db71f(0x201)](_0x6db71f(0x2ff)+this['getCurrentTime']()+_0x6db71f(0x1cf)+_0x5e4ec8+']\x20:\x20'+_0x10470b);const _0x176a54=this['getCategoryOfPath'](_0x10470b),_0x22089a=this['getChangedFolder'](_0x176a54,_0x10470b);if(!_0x22089a)return;let _0x704b59,_0x32ac76=!0x1;if(this['fsExistsSync'](_0x22089a)){if(this[_0x6db71f(0x2b6)](_0x49c803['join'](_0x56be15,_0x10470b))){const _0x207cf3=_0x49c803[_0x6db71f(0x2ec)](_0x49c803['sep']+this['C'][_0x6db71f(0x291)],_0x22089a);_0x704b59=await this['serializeFolderWithBinary'](_0x22089a,_0x207cf3),this['sendToServer']({'objType':_0x4df010[_0x6db71f(0x2e4)],'localClientWSReqRes':{'eventType':_0x4d7b67[_0x6db71f(0x28d)],'folderChangedOnLocalSystem':_0x704b59,'category':_0x176a54,'shouldReplaceAllItemsOfCategory':_0x32ac76}});}else this[_0x6db71f(0x21c)]();}else{const _0x2555bb=this[_0x6db71f(0x261)](_0x176a54,_0x10470b),_0x2f9ec1=_0x49c803[_0x6db71f(0x2ec)](_0x49c803['sep']+this['C'][_0x6db71f(0x291)],_0x2555bb);_0x704b59=await this[_0x6db71f(0x285)](_0x2555bb,_0x2f9ec1),_0x32ac76=!0x0,this[_0x6db71f(0x2b0)](_0x704b59,_0x176a54,_0x32ac76);}}catch(_0x1a8592){console[_0x6db71f(0x210)](_0x6db71f(0x2eb),_0x1a8592);}};_0x16887d['on'](_0x45f660(0x211),_0x2c4e9f=>_0xb33379(_0x45f660(0x211),_0x2c4e9f))['on'](_0x45f660(0x1d6),_0x461001=>_0xb33379(_0x45f660(0x1d6),_0x461001))['on'](_0x45f660(0x1af),_0x5dd6f0=>_0xb33379(_0x45f660(0x1af),_0x5dd6f0))['on'](_0x45f660(0x247),_0x26bb0d=>_0xb33379(_0x45f660(0x247),_0x26bb0d))['on'](_0x45f660(0x272),_0xe95bc5=>_0xb33379(_0x45f660(0x272),_0xe95bc5))['on']('error',_0x5a8aa5=>console['error'](_0x45f660(0x27d),_0x5a8aa5)),this[_0x45f660(0x2f7)]=_0x16887d,console[_0x45f660(0x201)](_0x45f660(0x240));}[_0x4b7bdb(0x20c)](){const _0xd4ebad=_0x4b7bdb,_0x2abbde=new Date();return String(_0x2abbde['getHours']())[_0xd4ebad(0x23f)](0x2,'0')+':'+String(_0x2abbde['getMinutes']())[_0xd4ebad(0x23f)](0x2,'0')+':'+String(_0x2abbde['getSeconds']())[_0xd4ebad(0x23f)](0x2,'0');}[_0x4b7bdb(0x2a6)](_0x2873a0,_0x58be58,_0x26fc8a){const _0x5e4afe=_0x4b7bdb;this['sendToServer']({'objType':_0x4df010[_0x5e4afe(0x2e4)],'localClientWSReqRes':{'eventType':_0x4d7b67['LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM'],'folderChangedOnLocalSystem':_0x2873a0,'category':_0x58be58,'shouldReplaceAllItemsOfCategory':_0x26fc8a}});}[_0x4b7bdb(0x2aa)](_0x13ddfa,_0x35ccd5){let _0x247e56=null;return function(..._0x4671d1){clearTimeout(_0x247e56),_0x247e56=setTimeout(()=>{_0x13ddfa['apply'](this,_0x4671d1);},_0x35ccd5);};}[_0x4b7bdb(0x1b9)](_0x33a3fe){const _0x272043=_0x4b7bdb,_0x40b17c=_0x49c803[_0x272043(0x2ec)](this['C'][_0x272043(0x1c6)],this['config'][_0x272043(0x1fb)]);if(!_0x33a3fe[_0x272043(0x2ef)](_0x40b17c))return;const _0x373d7a=_0x33a3fe[_0x272043(0x30a)](_0x49c803['sep'])[_0x272043(0x1db)](_0x1109c4=>!!_0x1109c4)[0x2];for(const _0x56ea7a in _0x5baad4)if(_0x5baad4[_0x56ea7a]===_0x373d7a)return _0x373d7a;}[_0x4b7bdb(0x2b7)](_0x2b5880,_0x4436a2){const _0x14da2b=_0x4b7bdb,_0xf7d697=_0x4436a2['split'](_0x49c803[_0x14da2b(0x26b)]);let _0x93c323='';return _0x93c323=_0x2b5880===_0x5baad4['THIRD_PARTY_APIS']?_0xf7d697['slice'](0x0,0x6)[_0x14da2b(0x2ec)](_0x49c803['sep']):_0xf7d697[_0x14da2b(0x2cc)](0x0,0x4)[_0x14da2b(0x2ec)](_0x49c803[_0x14da2b(0x26b)]),_0x93c323;}[_0x4b7bdb(0x261)](_0x165cef,_0x4bde79){const _0x5471ba=_0x4b7bdb;return _0x4bde79[_0x5471ba(0x30a)](_0x49c803[_0x5471ba(0x26b)])[_0x5471ba(0x2cc)](0x0,0x3)[_0x5471ba(0x2ec)](_0x49c803['sep']);}async[_0x4b7bdb(0x285)](_0x29bfaa,_0x56d3a9){const _0x15b04b={},_0x5b21c3=this;return await async function _0x29adb6(_0x3d6f77){const _0x269948=a0_0x3040,_0x54d8b0=await _0x5b21c3[_0x269948(0x2e1)](_0x3d6f77,{'withFileTypes':!0x0});for(const _0xae56d9 of _0x54d8b0){const _0x5a6cce=_0x49c803[_0x269948(0x2ec)](_0x3d6f77,_0xae56d9[_0x269948(0x2c0)]),_0x5e9b6c=_0x49c803[_0x269948(0x1fd)](_0x5a6cce);if(_0xae56d9[_0x269948(0x235)]())await _0x29adb6(_0x5e9b6c);else{const _0xd5918f=_0xe6c262[_0x269948(0x2ed)](_0x5e9b6c),_0x576a49=_0x49c803[_0x269948(0x2ee)](_0x29bfaa,_0x5e9b6c),_0x1570f3=_0x49c803[_0x269948(0x2ec)](_0x56d3a9,_0x576a49)[_0x269948(0x30a)](_0x49c803[_0x269948(0x26b)])[_0x269948(0x2ec)](_0x49c803['posix'][_0x269948(0x26b)]);_0x15b04b[_0x1570f3]={'encoding':_0x269948(0x206),'content':_0xd5918f[_0x269948(0x30e)](_0x269948(0x206))};}}}(_0x29bfaa),_0x15b04b;}[_0x4b7bdb(0x1e4)](_0x2c20bc){const _0x2aed39=_0x4b7bdb;try{this['ws'][_0x2aed39(0x217)](JSON[_0x2aed39(0x215)](_0x2c20bc));}catch(_0x41d045){console[_0x2aed39(0x201)](_0x41d045);}}async['connectToServerViaWS'](){const _0x48ea31=_0x4b7bdb;console[_0x48ea31(0x201)]('⏳\x20Connecting\x20to\x20server...');const _0x4f95a3=this[_0x48ea31(0x1aa)][_0x48ea31(0x1ae)],_0x353dd1=this[_0x48ea31(0x1aa)][_0x48ea31(0x1fb)],_0x1ae85d=this['config']['webSocketURL'];this['ws']=new WebSocket(_0x1ae85d+_0x48ea31(0x1f0)+_0x4f95a3+'&user-path='+_0x353dd1);const _0x28429d=[],_0x3a342e=()=>{const _0x41321b=_0x48ea31;this['sendToServer']({'objType':_0x4df010['REGISTER'],'onEvents':[{'eventType':_0x41321b(0x224)}]});};function _0x1073af(_0x3619a7){const _0xd11ff0=_0x48ea31;_0x3619a7[_0xd11ff0(0x26f)]=null,_0x3619a7[_0xd11ff0(0x28c)]=null,_0x3619a7['onerror']=null,_0x3619a7[_0xd11ff0(0x27a)]=null,_0x3619a7[_0xd11ff0(0x302)]();}this['ws'][_0x48ea31(0x28c)]=async _0x287ebc=>{const _0x4ef3a0=_0x48ea31,_0x19f82d=JSON['parse'](_0x287ebc[_0x4ef3a0(0x264)]);if(_0x19f82d[_0x4ef3a0(0x1c0)]===_0x4df010['CONNECTED']&&_0x19f82d[_0x4ef3a0(0x2e0)][_0x4ef3a0(0x212)])_0x3a342e();else{if(_0x19f82d['type']===_0x4df010[_0x4ef3a0(0x2c2)]){if(_0x19f82d?.['response']?.['validOnEvents']?.[_0x4ef3a0(0x1b8)]){for(const _0x3dfc61 of _0x19f82d['response'][_0x4ef3a0(0x2d1)])_0x28429d[_0x4ef3a0(0x2fc)](_0x3dfc61);console[_0x4ef3a0(0x201)](_0x4ef3a0(0x2b2)),!0x1===this[_0x4ef3a0(0x24d)]&&(this['isWSConnectedFirstTime']=!0x0,console[_0x4ef3a0(0x201)](this[_0x4ef3a0(0x284)]+_0x4ef3a0(0x1f4)+this[_0x4ef3a0(0x232)]+this['colorEnd'])),this[_0x4ef3a0(0x21c)]();}else{const _0x5e954e=_0x19f82d['response']?.[_0x4ef3a0(0x1be)]?.[0x0]?.['errors']?.[0x0]?.['message']||_0x4ef3a0(0x1c3);console[_0x4ef3a0(0x201)]('❌\x20'+_0x5e954e),await this[_0x4ef3a0(0x2e9)](0x1);}}else await this[_0x4ef3a0(0x2df)](_0x19f82d);}},this['ws'][_0x48ea31(0x27a)]=_0x2cd91b=>{const _0x52cae5=_0x48ea31;console['log']('Connection\x20closed.'),_0x1073af(this['ws']),setTimeout(this['connectToServerViaWS'][_0x52cae5(0x2f8)](this),0xbb8);},this['ws']['onerror']=()=>{const _0x354b59=_0x48ea31;_0x1073af(this['ws']),setTimeout(this[_0x354b59(0x2c3)][_0x354b59(0x2f8)](this),0xbb8);};}[_0x4b7bdb(0x21c)](){const _0x4235ea=_0x4b7bdb;this[_0x4235ea(0x1e4)]({'objType':_0x4df010[_0x4235ea(0x2e4)],'localClientWSReqRes':{'eventType':_0x4d7b67[_0x4235ea(0x266)]}});}async[_0x4b7bdb(0x2df)](_0x303d9e){const _0x5d86ac=_0x4b7bdb;if(this['EL']&&_0x303d9e[_0x5d86ac(0x2e0)]['eventType']!==_0x4d7b67[_0x5d86ac(0x266)]&&console[_0x5d86ac(0x201)](_0x303d9e),_0x303d9e[_0x5d86ac(0x1c0)]===_0x4df010[_0x5d86ac(0x2e4)]){if(_0x303d9e[_0x5d86ac(0x2a2)]?.[_0x5d86ac(0x1b8)])return void console['error'](_0x303d9e['errors']);if(_0x303d9e[_0x5d86ac(0x2e0)][_0x5d86ac(0x2c1)]===_0x4d7b67[_0x5d86ac(0x266)]){_0xe6c262[_0x5d86ac(0x228)](_0x49c803[_0x5d86ac(0x2ec)](this[_0x5d86ac(0x2dd)],this['C']['src']),{'recursive':!0x0,'force':!0x0}),this[_0x5d86ac(0x22d)](_0x49c803[_0x5d86ac(0x2ec)](this[_0x5d86ac(0x2dd)],this['C'][_0x5d86ac(0x1c6)]),{'recursive':!0x0});const _0x4fd717=_0x303d9e['response'][_0x5d86ac(0x2a9)];await this[_0x5d86ac(0x1c5)](_0x4fd717,this[_0x5d86ac(0x2dd)]),this['watcher']||setTimeout(this['startWatch'][_0x5d86ac(0x2f8)](this),0x1388);}else{if(_0x303d9e['response'][_0x5d86ac(0x2c1)]===_0x4d7b67[_0x5d86ac(0x21e)]){const _0x398bac=_0x303d9e[_0x5d86ac(0x2e0)][_0x5d86ac(0x2a9)];await this['writeMemfsJsonToDisk'](_0x398bac[_0x5d86ac(0x264)],this[_0x5d86ac(0x2dd)]);}}!0x0===this['nodeModulesCopied']?await this['copyFilesToProjectDir'](!0x1):(await this['copyFilesToProjectDir'](!0x0),this[_0x5d86ac(0x225)]=!0x0);}}async[_0x4b7bdb(0x1c5)](_0x158d2e,_0x526aa7){const _0x417364=_0x4b7bdb;this[_0x417364(0x296)]=!0x0;let _0x2f1a5b=[];const _0x319ba6=async()=>{const _0x2ba729=_0x417364;_0x2f1a5b[_0x2ba729(0x1b8)]>0x0&&(await Promise[_0x2ba729(0x202)](_0x2f1a5b),_0x2f1a5b=[]);};for(const [_0x3a07d5,_0x572972]of Object[_0x417364(0x265)](_0x158d2e)){if(!_0x3a07d5[_0x417364(0x2ef)]('/'+this['C']['repo']+'/'+this['C']['src']))continue;const _0x42dece=_0x572972,_0x1e23ed=_0x3a07d5[_0x417364(0x1d9)]('/'+this['C']['repo'],'');if(this[_0x417364(0x216)][_0x1e23ed])continue;const _0x30d388=_0x49c803['join'](_0x526aa7,_0x1e23ed[_0x417364(0x1d9)](/^\//,'')),_0x58d042=_0x49c803[_0x417364(0x307)](_0x30d388),_0x4316e2=async()=>{const _0x1a4633=_0x417364;await this[_0x1a4633(0x24b)](_0x58d042,{'recursive':!0x0}),await this[_0x1a4633(0x2b9)](_0x30d388,_0x42dece[_0x1a4633(0x21d)],{'encoding':'base64'}),this['EL']&&console[_0x1a4633(0x201)](_0x1a4633(0x1b6)+this[_0x1a4633(0x20c)]()+_0x1a4633(0x21f)+_0x30d388[_0x1a4633(0x1d9)](_0x526aa7,''));};_0x2f1a5b[_0x417364(0x2fc)](_0x4316e2()),_0x2f1a5b[_0x417364(0x1b8)]>=0x3e8&&await _0x319ba6();}await _0x319ba6(),setTimeout(()=>{const _0x28da8c=_0x417364;this[_0x28da8c(0x296)]=!0x1;},0x3e8);}['removeEmptyDirsSync'](_0x9a2547){const _0x481d87=_0x4b7bdb,_0x360ac9=this['normalizePath'](_0x9a2547);if(!this['fsExistsSync'](_0x360ac9))return!0x1;const _0x348779=_0xe6c262[_0x481d87(0x2ca)](_0x360ac9);let _0x481803=!0x0;for(const _0x57e951 of _0x348779){const _0x9266ad=_0x49c803[_0x481d87(0x2ec)](_0x360ac9,_0x57e951);_0xe6c262[_0x481d87(0x28a)](_0x9266ad)['isDirectory']()&&this[_0x481d87(0x209)](_0x9266ad)||(_0x481803=!0x1);}return!!_0x481803&&(_0xe6c262[_0x481d87(0x274)](_0x360ac9),!0x0);}async[_0x4b7bdb(0x2e1)](_0x435481,_0x58b61d){const _0x4b4f20=_0x4b7bdb;return this[_0x4b4f20(0x2b6)](_0x435481)?await this[_0x4b4f20(0x22e)](_0x435481,_0x58b61d):[];}[_0x4b7bdb(0x1cc)](_0x354d9a){const _0x562fa5=_0x4b7bdb;return _0x49c803[_0x562fa5(0x1fd)](_0x354d9a);}[_0x4b7bdb(0x2b6)](_0x485b83){const _0x3a6877=_0x4b7bdb,_0x1ec690=_0x49c803['normalize'](_0x485b83);return _0xe6c262[_0x3a6877(0x1fc)](_0x1ec690);}async[_0x4b7bdb(0x22e)](_0xfa4a32,_0x3ea16){const _0x1da8a5=_0x4b7bdb,_0x35abcc=_0x49c803[_0x1da8a5(0x1fd)](_0xfa4a32);return await _0xe6c262[_0x1da8a5(0x279)][_0x1da8a5(0x1e0)](_0x35abcc,_0x3ea16);}async[_0x4b7bdb(0x24b)](_0x2296b1,_0x2e0ad6){const _0x42c4c9=_0x4b7bdb,_0x44bea9=_0x49c803[_0x42c4c9(0x1fd)](_0x2296b1);return await _0xe6c262['promises'][_0x42c4c9(0x1bd)](_0x44bea9,_0x2e0ad6);}['fsMkDirSync'](_0x53824b,_0x2b525d){const _0x448991=_0x4b7bdb,_0x3a121c=_0x49c803[_0x448991(0x1fd)](_0x53824b);return _0xe6c262['mkdirSync'](_0x3a121c,_0x2b525d);}async[_0x4b7bdb(0x255)](_0x3fda04,_0x6f354b){const _0x2e8ad8=_0x4b7bdb,_0x53bf28=_0x49c803[_0x2e8ad8(0x1fd)](_0x3fda04);return await _0xe6c262[_0x2e8ad8(0x279)]['readFile'](_0x53bf28,_0x6f354b);}async[_0x4b7bdb(0x2b9)](_0x5aadf4,_0x4687df,_0x12932b){const _0x5a4f6f=_0x4b7bdb,_0x3cc4c5=_0x49c803['normalize'](_0x5aadf4);return await _0xe6c262[_0x5a4f6f(0x279)][_0x5a4f6f(0x203)](_0x3cc4c5,_0x4687df,_0x12932b);}async[_0x4b7bdb(0x1df)](_0x34d063,_0x1ed793){const _0x51f48d=_0x4b7bdb,_0x2385b1=_0x49c803[_0x51f48d(0x1fd)](_0x34d063),_0x55f7ba=_0x49c803[_0x51f48d(0x1fd)](_0x1ed793);return await _0xe6c262[_0x51f48d(0x279)][_0x51f48d(0x22a)](_0x2385b1,_0x55f7ba);}async['shutdownAndExit'](_0x2eac32=0x0){const _0x72c2ed=_0x4b7bdb;if(!this['shuttingDown']){this[_0x72c2ed(0x2ce)]=!0x0;try{this[_0x72c2ed(0x2f7)]&&await this[_0x72c2ed(0x2f7)][_0x72c2ed(0x302)]();}catch(_0xcc8f7a){console[_0x72c2ed(0x210)](_0x72c2ed(0x1d8),_0xcc8f7a);}finally{setTimeout(()=>process[_0x72c2ed(0x1d0)](_0x2eac32),0xc8);}}}[_0x4b7bdb(0x20f)](){const _0xafe7db=_0x4b7bdb;process['on'](_0xafe7db(0x267),()=>{const _0x31378b=_0xafe7db;console[_0x31378b(0x201)]('SIGINT\x20received\x20—\x20shutting\x20down'),this[_0x31378b(0x2e9)](0x0);}),process['on'](_0xafe7db(0x2ac),()=>{const _0x180a04=_0xafe7db;console['log'](_0x180a04(0x1b5)),this['shutdownAndExit'](0x0);}),process['on'](_0xafe7db(0x2c5),_0x23ff9a=>{const _0xa98e48=_0xafe7db;console['log'](_0xa98e48(0x2c5),_0x23ff9a);}),process['on'](_0xafe7db(0x1d0),_0x5b2c16=>{console['log']('exit',_0x5b2c16);}),process['on'](_0xafe7db(0x2af),_0x42abc9=>{const _0x50d9a3=_0xafe7db;console[_0x50d9a3(0x210)](_0x50d9a3(0x2af),_0x42abc9),this[_0x50d9a3(0x2e9)](0x1);}),process['on'](_0xafe7db(0x1d2),_0x33b850=>{const _0x2e30e9=_0xafe7db;console[_0x2e30e9(0x210)](_0x2e30e9(0x1d2),_0x33b850),this['shutdownAndExit'](0x1);});}}()['start']()[_0x4b7bdb(0x2da)](),function(_0x40802e){const _0x51d14d=_0x4b7bdb;_0x40802e[_0x51d14d(0x24a)]='INSTANCES',_0x40802e['THIRD_PARTY_APIS']=_0x51d14d(0x1f2),_0x40802e[_0x51d14d(0x1e5)]='CUSTOM_APIS',_0x40802e['SYSTEM_APIS']=_0x51d14d(0x2ab),_0x40802e['WEB_SOCKET_EVENT']=_0x51d14d(0x268);}(_0x49d459=_0x29481b['QX']||(_0x29481b['QX']={})),function(_0x2a70bd){const _0x415a0f=_0x4b7bdb;_0x2a70bd[_0x415a0f(0x2c2)]=_0x415a0f(0x2c2),_0x2a70bd[_0x415a0f(0x1f3)]=_0x415a0f(0x1f3),_0x2a70bd[_0x415a0f(0x28f)]=_0x415a0f(0x28f),_0x2a70bd[_0x415a0f(0x23a)]='UNKNOWN',_0x2a70bd[_0x415a0f(0x269)]=_0x415a0f(0x269),_0x2a70bd[_0x415a0f(0x289)]='NOTIFICATION',_0x2a70bd[_0x415a0f(0x2e4)]=_0x415a0f(0x2e4);}(_0x4df010||(_0x4df010={})),function(_0x616616){const _0x430848=_0x4b7bdb;_0x616616[_0x430848(0x266)]='LC_SEND_ALL_DATA',_0x616616['LC_DATA_MODIFIED_IN_DATABASE']=_0x430848(0x21e),_0x616616['LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM']=_0x430848(0x28d);}(_0x4d7b67||(_0x4d7b67={})),(_0x4f25a8=_0x29481b['Yl']||(_0x29481b['Yl']={}))[_0x4b7bdb(0x2e8)]=_0x4b7bdb(0x2e8),_0x4f25a8[_0x4b7bdb(0x233)]='PUT',_0x4f25a8[_0x4b7bdb(0x293)]=_0x4b7bdb(0x293),_0x4f25a8['DELETE']='DELETE',_0x4f25a8[_0x4b7bdb(0x1f6)]=_0x4b7bdb(0x1f6),(_0xeb1fac=_0x29481b['EN']||(_0x29481b['EN']={}))[_0x4b7bdb(0x2d3)]=_0x4b7bdb(0x25d),_0xeb1fac[_0x4b7bdb(0x2f2)]=_0x4b7bdb(0x244),_0xeb1fac[_0x4b7bdb(0x241)]=_0x4b7bdb(0x1b3),_0xeb1fac[_0x4b7bdb(0x2d7)]=_0x4b7bdb(0x2b3),_0xeb1fac[_0x4b7bdb(0x1e9)]=_0x4b7bdb(0x227),_0xeb1fac[_0x4b7bdb(0x1a9)]=_0x4b7bdb(0x22b),_0xeb1fac[_0x4b7bdb(0x256)]=_0x4b7bdb(0x2cb),_0xeb1fac[_0x4b7bdb(0x218)]=_0x4b7bdb(0x25e),_0xeb1fac['CollectionHooks']=_0x4b7bdb(0x1da),_0xeb1fac[_0x4b7bdb(0x2d2)]=_0x4b7bdb(0x25b),_0xeb1fac['Schemas']=_0x4b7bdb(0x200),_0xeb1fac[_0x4b7bdb(0x280)]=_0x4b7bdb(0x283),_0xeb1fac['SystemApiSettings']=_0x4b7bdb(0x2f1),_0xeb1fac[_0x4b7bdb(0x226)]=_0x4b7bdb(0x273),_0xeb1fac[_0x4b7bdb(0x1e1)]=_0x4b7bdb(0x1e1),_0xeb1fac[_0x4b7bdb(0x1f5)]='am_tp_installed_apis',_0xeb1fac[_0x4b7bdb(0x2a3)]='am_tp_api_versions',_0xeb1fac[_0x4b7bdb(0x2a1)]=_0x4b7bdb(0x2ea),_0xeb1fac['DatabasesMigrations']='am_database_migrations',_0xeb1fac[_0x4b7bdb(0x277)]=_0x4b7bdb(0x2a8),_0xeb1fac[_0x4b7bdb(0x1bc)]=_0x4b7bdb(0x2f3),_0xeb1fac[_0x4b7bdb(0x1d3)]=_0x4b7bdb(0x2fd),_0xeb1fac[_0x4b7bdb(0x2d0)]=_0x4b7bdb(0x2e3),function(_0x573941){const _0x2831b2=_0x4b7bdb;_0x573941['CUSTOM_APIS']='Custom\x20APIs',_0x573941[_0x2831b2(0x2c4)]=_0x2831b2(0x1de),_0x573941[_0x2831b2(0x251)]=_0x2831b2(0x2b5),_0x573941[_0x2831b2(0x26c)]=_0x2831b2(0x308),_0x573941[_0x2831b2(0x294)]='i18ns',_0x573941[_0x2831b2(0x262)]=_0x2831b2(0x1c2),_0x573941[_0x2831b2(0x1bf)]=_0x2831b2(0x1f9),_0x573941[_0x2831b2(0x313)]=_0x2831b2(0x24f),_0x573941['COLLECTION_HOOKS']=_0x2831b2(0x2bb),_0x573941['INSTANCE_API_SETTINGS']=_0x2831b2(0x20b),_0x573941[_0x2831b2(0x260)]=_0x2831b2(0x2d2),_0x573941[_0x2831b2(0x2f4)]='Schemas',_0x573941[_0x2831b2(0x30c)]=_0x2831b2(0x248),_0x573941['SYSTEM_API_SETTINGS']=_0x2831b2(0x1c8),_0x573941[_0x2831b2(0x1cb)]='Test\x20cases',_0x573941[_0x2831b2(0x1f2)]=_0x2831b2(0x2c6),_0x573941['THIRD_PARTY_API_SETTINGS']=_0x2831b2(0x282),_0x573941[_0x2831b2(0x2be)]=_0x2831b2(0x2b8),_0x573941['EVENTS_WS']=_0x2831b2(0x2a4),_0x573941[_0x2831b2(0x287)]=_0x2831b2(0x1ec),_0x573941[_0x2831b2(0x20a)]='DB\x20master\x20utils',_0x573941['UI_MAKER_STYLES']='UI\x20maker\x20styles';}(_0x5baad4=_0x29481b['_6']||(_0x29481b['_6']={}));},0x274:_0x3a0e4b=>{_0x3a0e4b['exports']=require('chokidar');},0x2f8:_0x3bd13a=>{const _0x51ab65=a0_0x3040;_0x3bd13a[_0x51ab65(0x1c1)]=require('js-yaml');},0x2a0:_0x3a43c7=>{const _0x397891=a0_0x3040;_0x3a43c7[_0x397891(0x1c1)]=require(_0x397891(0x1b4));},0x170:_0x1074c8=>{const _0x37a402=a0_0x3040;_0x1074c8[_0x37a402(0x1c1)]=require(_0x37a402(0x2fa));},0x3a:_0x329330=>{_0x329330['exports']=require('fs');}},_0x285d4b={};!function _0x35db19(_0x4a20a8){const _0x307f53=a0_0x3040;var _0x49ca05=_0x285d4b[_0x4a20a8];if(void 0x0!==_0x49ca05)return _0x49ca05[_0x307f53(0x1c1)];var _0x3e29ad=_0x285d4b[_0x4a20a8]={'exports':{}};return _0x4ed9e3[_0x4a20a8](_0x3e29ad,_0x3e29ad[_0x307f53(0x1c1)],_0x35db19),_0x3e29ad[_0x307f53(0x1c1)];}(0x11f);})()));function a0_0x3040(_0x213a4c,_0x2ea016){const _0xb81ccb=a0_0xb81c();return a0_0x3040=function(_0x304019,_0xb13521){_0x304019=_0x304019-0x1a9;let _0x2a5a8e=_0xb81ccb[_0x304019];return _0x2a5a8e;},a0_0x3040(_0x213a4c,_0x2ea016);}function a0_0xb81c(){const _0x579eb2=['CollectionHooksReadF','11800noLyXN','tpInstalledApiBundleName','readdirSync','am_instance_hooks','slice','ProcessI18NReadF','shuttingDown','--force','AmTestCases','validOnEvents','Schedulers','AmEvents','install','parse','TestCasesReadF','CustomApis','colorEnd','system-apis','then','tsconfig.json','copyWebSocketEventsToAnotherDir','appRoot','2dhSywQ','processReceivedEvent','response','readDirCustom','symlinkSync','am_test_cases','LC_DATA_REQ_RES','✅\x20node_modules\x20installed','./src','instance-hooks','POST','shutdownAndExit','am_utility_classes','watch\x20handler\x20error','join','readFileSync','relative','startsWith','copySchemasToAnotherDir','am_system_api_settings','WebSocketEvents','am_ui_maker_utils','SCHEMAS','.js','package.json','watcher','bind','apis','child_process','custom-apis','push','am_ui_maker_styles','postHooks','✓\x20Send\x20:\x20[','ThirdPartyApiWriteF','\x20Please\x20provide\x20settings\x20in\x20:\x20','close','copyI18NToAnotherDir','copyThirdPartyApisToAnotherDir','\x1b[38;2;255;165;0m','ws-events','dirname','Events','events','split','SchedulersReadF','SYSTEM_API_HOOKS','TestCasesWriteF','toString','apiId','UtilityClassesReadF','——————————————————————————————————————————————————————————————————————————————————','createLCProjectDirectory','DATABASE_HOOKS','InstanceApiHooks','config','npm','folderPath','DBMigrationsWriteF','syncToken','unlink','i18ns','customApiName','copyProcessInitializersToAnotherDir','am_db_masters','path','SIGTERM\x20received\x20—\x20shutting\x20down','✓\x20Receive\x20:\x20[','copyCustomApisToAnotherDir','length','getCategoryOfPath','web-socket-events','printNotesToProvideLocalClient','UIMakerUtils','mkdir','invalidOnEvents','INSTANCE_HOOKS','type','exports','Instance\x20API\x20hooks','Error\x20while\x20connecting\x20to\x20WS\x20server.','3IyRUuK','writeMemfsJsonToDisk','src','apiCategory','System\x20API\x20settings','copyCollectionHooksToAnotherDir','UI\x20maker\x20styles','TEST_CASES','normalizePath','dbInterfacesFile','copyInstanceHooksToAnotherDir',']\x20:\x20[','exit','\x1b[0m','unhandledRejection','UIMakerStyles','toLowerCase','SystemApiHooksWriteF','change','dir','Error\x20during\x20shutdown','replace','am_collection_hooks','filter','.ts','package-lock.json','Database\x20migrations','fsLink','readdir','am_tp_api_settings','db-migrations','56oMONAU','sendToServer','CUSTOM_APIS','post-hooks','spawn','eventListeners','InstanceApiSettings','Test\x20cases','Node.js\x2022+\x20is\x20required.\x20Current\x20version:\x20','DB\x20masters','orangeStart','--no-save','Schemas','?authTokenInfo=ws-local-client-sync&authorization=','copyTestCasesToAnotherDir','THIRD_PARTY_APIS','UNREGISTER','✳️\x20Open\x20folder\x20in\x20IDE\x20:\x20','am_tp_installed_apis','DELETE_ALL','.yaml','instances','Instance\x20hooks','copyFilesToProjectDir','adminUserPath','existsSync','normalize','copyDatabaseHooksToAnotherDir','DatabaseHooksReadF','am_schemas','log','all','writeFile','copySystemApiHooksToAnotherDir','CollectionHooksWriteF','base64','checkForNodeVersion','SchemaReadF','removeEmptyDirsSync','UI_MAKER_UTILITY_CLASS','Instance\x20API\x20settings','getCurrentTime','\x27\x20exited\x20with\x20code\x20','.config.ts','addProcessHooks','error','add','connected','⏳\x20node_modules\x20installation\x20process\x20started','collectionName','stringify','skipFileWritingForLocal','send','DatabaseHooks','load','copyEventsToAnotherDir','tpInstalledApiName','syncAllDataWithServer','content','LC_DATA_MODIFIED_IN_DATABASE',']\x20:\x20','node_modules','isActive','EventsWriteF','555460QFKzNH','LOCAL_CLIENT_SYNC_EVENTS','nodeModulesCopied','SystemApiHooks','am_instance_api_settings','rmSync','cpSync','link','am_instance_api_hooks','ui-maker-styles','fsMkDirSync','fsReadDir','DB\x20master\x20utils','25104WiOmbR','InstanceHooksReadF','projectDirectory','PUT','installRequiredPackages','isDirectory','copyDBMasterStylesToAnotherDir','types','instance-api-hooks','instanceApiName','UNKNOWN','collection-hooks','copyInstanceApiHooksToAnotherDir','startWatch','database-hooks','padStart','✅\x20Local\x20client\x20started...','DBMasters','resolve','✅\x20dependencies\x20installed','am_web_socket_events','printNotes','compilerOptions','addDir','System\x20API\x20hooks','schemas','INSTANCES','fsMkDir','ui-maker-pages','isWSConnectedFirstTime','——————————————————————————————————————\x20Note\x20——————————————————————————————————————','Database\x20hooks','executeNpmRun','PROCESS_INITIALIZERS','DBMastersWriteF','DBMigrationsReadF','.css','fsReadFile','InstanceHooks','6734SjFwfT','CustomApisWriteF','\x20Current\x20Dir\x20:\x20','⏳\x20dependencies\x20installation\x20process\x20started','am_schedulers','3166146OTsaBU','am_events','am_database_hooks','version','SCHEDULERS','getChangedFolderForDeleted','INSTANCE_API_HOOKS','InstanceHooksWriteF','data','entries','LC_SEND_ALL_DATA','SIGINT','WEB_SOCKET_EVENT','TOKEN_VALIDATION','localClientPath','sep','EVENTS','amTypes','-lc','onopen','utf8','376902OKjhQU','unlinkDir','am_system_api_hooks','rmdirSync','process-initializers','ProcessI18NWriteF','ProcessInitializers','\x1b[36m','promises','onclose','start','unlinkSync','Watcher\x20error:','instanceName','ProcessInitializersReadF','I18Ns','parseYaml','Third\x20party\x20API\x20settings','am_i18ns','cyanStart','serializeFolderWithBinary','33ffljox','DB_MASTERS','SchedulersWriteF','NOTIFICATION','statSync','message','onmessage','LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM','db-interfaces.d.ts','CONNECTED','copyDBMasterUtilsToAnotherDir','repo','Please\x20run\x20using\x20administrator\x20privileges.','PUT_REPLACE','I18NS','copyDBMigrationsToAnotherDir','skipWatchInputs','ui-maker-utils','databaseName','schedulers','paths','third-party-apis','DBMasterStylesWriteF','216696NiuPKH','am-types','copyUtilityClassesToAnotherDir','ProcessInitializersWriteF','UtilityClasses','errors','am_tp_api_versions','WebSocket\x20events','EventsReadF','sendDeletedEventToServerInternal','DatabaseHooksWriteF','am_process_initializers','eventData','debounce','SYSTEM_APIS','SIGTERM','20CqYuno','js-yaml@4.1.0','uncaughtException','sendDeletedEventToServerDebounce','preHooks','✅\x20Connected\x20to\x20server\x20via\x20WS','am_custom_apis','.gitignore','Process\x20initializers','fsExistsSync','getChangedFolder','Utility\x20classes','fsWriteFile','3396xrokEh','Collection\x20hooks','basename','DBMasterUtilsWriteF','UTILITY_CLASSES','versions','name','eventType','REGISTER','connectToServerViaWS','DB_MIGRATIONS','beforeExit','Third\x20party\x20APIs'];a0_0xb81c=function(){return _0x579eb2;};return a0_0xb81c();}
|
|
1
|
+
(function(_0x40c58e,_0x28b215){const _0x369282=a0_0x5593,_0x4c67d2=_0x40c58e();while(!![]){try{const _0x117c13=parseInt(_0x369282(0xf3))/0x1*(parseInt(_0x369282(0x1f3))/0x2)+-parseInt(_0x369282(0x1b8))/0x3+-parseInt(_0x369282(0x16a))/0x4+parseInt(_0x369282(0x117))/0x5*(-parseInt(_0x369282(0xd0))/0x6)+parseInt(_0x369282(0x1e7))/0x7*(-parseInt(_0x369282(0xb2))/0x8)+-parseInt(_0x369282(0xc3))/0x9*(parseInt(_0x369282(0x1fa))/0xa)+parseInt(_0x369282(0x1a0))/0xb;if(_0x117c13===_0x28b215)break;else _0x4c67d2['push'](_0x4c67d2['shift']());}catch(_0x1dcc53){_0x4c67d2['push'](_0x4c67d2['shift']());}}}(a0_0x1b8e,0xcc190),((()=>{'use strict';var _0x5df294={0x11f:(_0x18698e,_0xdf3ad9,_0xd4f299)=>{const _0x2bd869=a0_0x5593;_0xdf3ad9['_6']=_0xdf3ad9['EN']=_0xdf3ad9['Yl']=_0xdf3ad9['QX']=void 0x0;const _0x1f66ac=_0xd4f299(0x3a),_0x57819e=_0xd4f299(0x2a0),_0xee7bf4=_0xd4f299(0x170);var _0x223d72,_0x544217,_0x5563e8,_0x4270a0,_0x14afba,_0x3166aa;new class{constructor(){const _0x5dcf8f=a0_0x5593;this['EL']=!0x1,this[_0x5dcf8f(0xca)]=_0x57819e[_0x5dcf8f(0xf5)](''),this[_0x5dcf8f(0x17d)]='',this['C']={'localClientPath':'./local-client.config','src':_0x5dcf8f(0x16f),'repo':_0x5dcf8f(0x150),'types':'types','amTypes':_0x5dcf8f(0x108),'versions':_0x5dcf8f(0x154),'apis':'apis','listeners':'listeners','postHooks':_0x5dcf8f(0x1f5),'preHooks':_0x5dcf8f(0x14b),'dbInterfacesFile':_0x5dcf8f(0x1af),'UtilityClassesReadF':'Utility\x20classes','CustomApiReadF':_0x5dcf8f(0x10b),'SchedulersReadF':_0x5dcf8f(0xb1),'WebSocketEventsReadF':_0x5dcf8f(0x1bd),'SchemaReadF':'Schemas','DBMigrationsReadF':_0x5dcf8f(0x112),'ProcessInitializersReadF':_0x5dcf8f(0xfb),'ProcessI18NReadF':'i18ns','DBMastersReadF':_0x5dcf8f(0x188),'DBMasterStylesReadF':_0x5dcf8f(0x187),'DBMasterUtilsReadF':_0x5dcf8f(0x1b6),'TestCasesReadF':'Test\x20cases','ThirdPartyApiReadF':_0x5dcf8f(0x15a),'EventsReadF':_0x5dcf8f(0x1a5),'InstanceApiHooksReadF':_0x5dcf8f(0xf8),'SystemApiHooksReadF':'System\x20API\x20hooks','CollectionHooksReadF':_0x5dcf8f(0x116),'DatabaseHooksReadF':_0x5dcf8f(0x202),'InstanceHooksReadF':_0x5dcf8f(0xe8),'CustomApisWriteF':_0x5dcf8f(0x1fb),'SchedulersWriteF':_0x5dcf8f(0xc2),'WebSocketEventsWriteF':'web-socket-events','SchemaWriteF':'schemas','DBMigrationsWriteF':_0x5dcf8f(0xf4),'ProcessInitializersWriteF':'process-initializers','ProcessI18NWriteF':'i18ns','DBMastersWriteF':_0x5dcf8f(0x208),'DBMasterStylesWriteF':_0x5dcf8f(0x13b),'DBMasterUtilsWriteF':'ui-maker-utils','TestCasesWriteF':_0x5dcf8f(0x13a),'ThirdPartyApiWriteF':_0x5dcf8f(0xce),'EventsWriteF':'events','InstanceApiHooksWriteF':'instance-api-hooks','SystemApiHooksWriteF':'system-api-hooks','CollectionHooksWriteF':_0x5dcf8f(0x118),'DatabaseHooksWriteF':_0x5dcf8f(0x200),'InstanceHooksWriteF':'instance-hooks'},this[_0x5dcf8f(0x1c0)]=!0x1,this[_0x5dcf8f(0x142)]={},this[_0x5dcf8f(0x1e9)]=!0x1,this[_0x5dcf8f(0x1f4)]=_0x5dcf8f(0x1ee),this['cyanStart']=_0x5dcf8f(0x13f),this[_0x5dcf8f(0x183)]=_0x5dcf8f(0x168),this[_0x5dcf8f(0x124)]=!0x1,this['sendDeletedEventToServerDebounce']=this[_0x5dcf8f(0x197)](this['sendDeletedEventToServerInternal'],0x1f4);}async[_0x2bd869(0x171)](){const _0x2e2cc9=_0x2bd869;this['addProcessHooks'](),this['checkForNodeVersion'](),this[_0x2e2cc9(0x1d5)](this['C']['localClientPath']+_0x2e2cc9(0x1ad))||(this[_0x2e2cc9(0xb9)](),this['shutdownAndExit'](0x1)[_0x2e2cc9(0x190)]()),this[_0x2e2cc9(0x1e8)]=require(this['C'][_0x2e2cc9(0x104)])(),await this[_0x2e2cc9(0x192)](),this[_0x2e2cc9(0x102)](_0x57819e['join'](this[_0x2e2cc9(0xca)],this['C'][_0x2e2cc9(0x16f)])),await this[_0x2e2cc9(0x139)](),await this['installRequiredPackages'](),await this['connectToServerViaWS']();}[_0x2bd869(0x12b)](){const _0x25eeaa=_0x2bd869,_0x2af7dd=process[_0x25eeaa(0x1dc)];parseInt(_0x2af7dd[_0x25eeaa(0x1de)]('.')[0x0][_0x25eeaa(0xf9)]('v',''),0xa)<0x16&&(console[_0x25eeaa(0x173)](this[_0x25eeaa(0x1f4)]+_0x25eeaa(0x1d7)+_0x2af7dd+this[_0x25eeaa(0x183)]),this[_0x25eeaa(0x1c2)](0x1)[_0x25eeaa(0x190)]());}async[_0x2bd869(0x192)](){const _0x56f85e=_0x2bd869;console[_0x56f85e(0x1fc)](this[_0x56f85e(0x1f4)]),console[_0x56f85e(0x1fc)](_0x56f85e(0x12c)),console[_0x56f85e(0x1fc)]('\x20Local\x20client\x20will\x20pull\x20your\x20server\x20changes\x20to\x20local\x20&\x20perform\x20sync\x20between\x20them.'),console[_0x56f85e(0x1fc)](_0x56f85e(0x1f8)+this['appRoot']),console[_0x56f85e(0x1fc)](_0x56f85e(0x131)),console[_0x56f85e(0x1fc)](this[_0x56f85e(0x183)]),console['log']('');}[_0x2bd869(0xb9)](){const _0x40b01e=_0x2bd869;console[_0x40b01e(0x1fc)](_0x40b01e(0x1ee)),console[_0x40b01e(0x1fc)](_0x40b01e(0x1bc)+this['C'][_0x40b01e(0x104)]+'.js'),console[_0x40b01e(0x1fc)](_0x40b01e(0x168)),console[_0x40b01e(0x1fc)]('');}async[_0x2bd869(0x139)](){const _0x383f98=_0x2bd869,_0x18d28e=_0x57819e[_0x383f98(0x101)](this[_0x383f98(0xca)]),_0x3c116b=_0x57819e[_0x383f98(0x18a)](this[_0x383f98(0xca)],'..',_0x18d28e+_0x383f98(0x13d));this[_0x383f98(0x17d)]=_0x3c116b,_0x1f66ac[_0x383f98(0xfa)](_0x3c116b,{'recursive':!0x0,'force':!0x0}),await this[_0x383f98(0x10f)](_0x3c116b,{'recursive':!0x0});}async[_0x2bd869(0x12d)](_0x1328de){const _0x4a858e=_0x2bd869;await this['createLCProjectDirectory'](),this[_0x4a858e(0x106)](_0x57819e[_0x4a858e(0x18a)](this[_0x4a858e(0x17d)],this['C'][_0x4a858e(0x16f)]),{'recursive':!0x0}),_0x1f66ac['cpSync'](_0x57819e[_0x4a858e(0x18a)](this['appRoot'],'package.json'),_0x57819e[_0x4a858e(0x18a)](this[_0x4a858e(0x17d)],'package.json')),_0x1f66ac[_0x4a858e(0x1e3)](_0x57819e[_0x4a858e(0x18a)](this['appRoot'],_0x4a858e(0xb7)),_0x57819e['join'](this['projectDirectory'],_0x4a858e(0xb7)));const _0x5b32ed=_0x57819e['join'](this[_0x4a858e(0xca)],_0x4a858e(0x1c6)),_0x4ee188=JSON[_0x4a858e(0x111)](await this[_0x4a858e(0x18d)](_0x5b32ed,{'encoding':_0x4a858e(0x1aa)}));_0x4ee188[_0x4a858e(0x1db)][_0x4a858e(0xb3)]=_0x4a858e(0xe1),_0x4ee188[_0x4a858e(0x1db)][_0x4a858e(0xd5)]['*']['push']('*'),await this['fsWriteFile'](_0x57819e['join'](this[_0x4a858e(0x17d)],_0x4a858e(0x1c6)),JSON['stringify'](_0x4ee188,null,0x4),{'encoding':_0x4a858e(0x1aa)}),await _0x1f66ac[_0x4a858e(0x1d4)]['cp'](_0x57819e[_0x4a858e(0x18a)](this[_0x4a858e(0xca)],this['C']['amTypes']),_0x57819e[_0x4a858e(0x18a)](this['projectDirectory'],this['C']['src'],this['C']['amTypes']),{'recursive':!0x0}),await _0x1f66ac[_0x4a858e(0x1d4)]['cp'](_0x57819e[_0x4a858e(0x18a)](this[_0x4a858e(0xca)],this['C']['src'],this[_0x4a858e(0x1e8)][_0x4a858e(0x15c)],this['C'][_0x4a858e(0x16e)],this['C']['dbInterfacesFile']),_0x57819e[_0x4a858e(0x18a)](this[_0x4a858e(0x17d)],this['C'][_0x4a858e(0x16f)],this['C'][_0x4a858e(0x1bb)],this['C'][_0x4a858e(0x133)]),{'recursive':!0x0}),await this[_0x4a858e(0x12e)](),await this[_0x4a858e(0x1d0)](),await this[_0x4a858e(0xbf)](),await this[_0x4a858e(0x134)](),await this['copyDBMigrationsToAnotherDir'](),await this['copyProcessInitializersToAnotherDir'](),await this[_0x4a858e(0xd3)](),await this[_0x4a858e(0x1fd)](),await this[_0x4a858e(0x155)](),await this[_0x4a858e(0x203)](),await this[_0x4a858e(0xb8)](),await this['copySystemApiHooksToAnotherDir'](),await this[_0x4a858e(0x1cf)](),await this[_0x4a858e(0x153)](),await this[_0x4a858e(0x15d)](),await this['copyInstanceHooksToAnotherDir'](),await this[_0x4a858e(0x136)](),await this['copyDBMasterStylesToAnotherDir'](),await this['copyDBMasterUtilsToAnotherDir'](),_0x1328de&&(console[_0x4a858e(0x1fc)](_0x4a858e(0xbe)),await this[_0x4a858e(0x199)]('npm',[_0x4a858e(0x1c5),_0x4a858e(0x195)]),console[_0x4a858e(0x1fc)](_0x4a858e(0x17b)));try{_0x1f66ac[_0x4a858e(0x151)](_0x57819e[_0x4a858e(0x18a)](this['appRoot'],_0x4a858e(0x172)),_0x57819e['join'](this[_0x4a858e(0x17d)],_0x4a858e(0x172)),_0x4a858e(0x132));}catch(_0x519332){console[_0x4a858e(0x1fc)]('Please\x20run\x20using\x20administrator\x20privileges.'),console['log'](_0x519332),await this[_0x4a858e(0x1c2)](0x1);}}async['installRequiredPackages'](){const _0x4fb23d=_0x2bd869;console[_0x4fb23d(0x1fc)](_0x4fb23d(0x144));try{_0x1f66ac['unlinkSync'](_0x57819e[_0x4fb23d(0x18a)](this[_0x4fb23d(0xca)],_0x4fb23d(0x14a)));}catch(_0x971c79){}await this[_0x4fb23d(0x199)](_0x4fb23d(0xeb),['install',_0x4fb23d(0x1c1),_0x4fb23d(0x147),_0x4fb23d(0x143)]),console[_0x4fb23d(0x1fc)](_0x4fb23d(0x135));}async[_0x2bd869(0x12e)](){const _0x45b8b7=_0x2bd869,_0x1c614b=this['C']['UtilityClassesReadF'],_0x3d55e6=_0x57819e['join'](this['appRoot'],this['C']['src'],this[_0x45b8b7(0x1e8)][_0x45b8b7(0x15c)],_0x1c614b),_0x5b5723=await this[_0x45b8b7(0x105)](_0x3d55e6,null);for(const _0x5c06b5 of _0x5b5723){const _0x15ccf8=_0x57819e[_0x45b8b7(0x18a)](_0x3d55e6,_0x5c06b5,_0x5c06b5+_0x45b8b7(0x161));if(!this['fsExistsSync'](_0x15ccf8))continue;const _0x35e7d1=await this['fsReadFile'](_0x15ccf8,{'encoding':_0x45b8b7(0x1aa)}),_0x3040ad=await this['parseYaml'](_0x35e7d1);for(const _0x1de9bb of _0x3040ad[_0x45b8b7(0x154)]||[])if(!0x0===_0x1de9bb[_0x45b8b7(0x1c9)]){const _0x51f996=_0x57819e['join'](_0x3d55e6,_0x5c06b5,this['C'][_0x45b8b7(0x154)],_0x1de9bb[_0x45b8b7(0x1dc)],_0x1de9bb[_0x45b8b7(0x198)]+_0x45b8b7(0x109)),_0x4d6034=_0x57819e['join'](this[_0x45b8b7(0x17d)],this['C']['src'],_0x3040ad[_0x45b8b7(0x1f0)],_0x3040ad[_0x45b8b7(0x198)]+_0x45b8b7(0x109));await this[_0x45b8b7(0x10f)](_0x57819e[_0x45b8b7(0x1ba)](_0x4d6034),{'recursive':!0x0}),await this['fsLink'](_0x51f996,_0x4d6034);}}}async[_0x2bd869(0x1d0)](){const _0x510fd4=_0x2bd869,_0x4ae4b4=this['C'][_0x510fd4(0x119)],_0x41a02c=this['C']['CustomApisWriteF'],_0x5263bd=_0x57819e['join'](this['appRoot'],this['C']['src'],this[_0x510fd4(0x1e8)][_0x510fd4(0x15c)],_0x4ae4b4),_0x47367a=await this['readDirCustom'](_0x5263bd,null);for(const _0x497bb3 of _0x47367a){const _0x3aa070=_0x57819e[_0x510fd4(0x18a)](_0x5263bd,_0x497bb3,_0x497bb3+_0x510fd4(0x161));if(!this[_0x510fd4(0x1d5)](_0x3aa070))continue;const _0x57849d=await this[_0x510fd4(0x18d)](_0x3aa070,{'encoding':_0x510fd4(0x1aa)}),_0x362c85=await this['parseYaml'](_0x57849d);for(const _0x1e9987 of _0x362c85[_0x510fd4(0x154)]||[])if(!0x0===_0x1e9987[_0x510fd4(0x1c9)]){const _0x18d59c=_0x57819e[_0x510fd4(0x18a)](_0x5263bd,_0x497bb3,this['C'][_0x510fd4(0x154)],_0x1e9987[_0x510fd4(0x1dc)]),_0x4513f9=_0x57819e[_0x510fd4(0x18a)](_0x18d59c,_0x1e9987['name']+_0x510fd4(0x109)),_0x115436=_0x57819e[_0x510fd4(0x18a)](this[_0x510fd4(0x17d)],this['C']['src'],_0x41a02c,_0x362c85[_0x510fd4(0xd4)],_0x362c85['name']+_0x510fd4(0x109));await this[_0x510fd4(0x10f)](_0x57819e['dirname'](_0x115436),{'recursive':!0x0}),await this[_0x510fd4(0xed)](_0x4513f9,_0x115436);const _0x5d856d=_0x57819e[_0x510fd4(0x18a)](_0x5263bd,_0x497bb3,_0x497bb3+_0x510fd4(0x141)),_0x237dff=_0x57819e[_0x510fd4(0x18a)](this[_0x510fd4(0x17d)],this['C']['src'],_0x41a02c,_0x362c85['path'],_0x362c85[_0x510fd4(0x198)]+_0x510fd4(0x141));await this[_0x510fd4(0xed)](_0x5d856d,_0x237dff);for(const _0x38c0ff of _0x1e9987['preHooks']){const _0xb7a790=_0x57819e[_0x510fd4(0x18a)](_0x18d59c,this['C'][_0x510fd4(0xdc)],_0x38c0ff[_0x510fd4(0x198)]+_0x510fd4(0x109)),_0x1a6a09=_0x57819e['join'](this[_0x510fd4(0x17d)],this['C'][_0x510fd4(0x16f)],_0x41a02c,_0x362c85[_0x510fd4(0xd4)],this['C'][_0x510fd4(0xdc)],_0x38c0ff[_0x510fd4(0x198)]+'.ts');await this['fsMkDir'](_0x57819e['dirname'](_0x1a6a09),{'recursive':!0x0}),await this[_0x510fd4(0xed)](_0xb7a790,_0x1a6a09);}for(const _0x3ac2b6 of _0x1e9987['postHooks']){const _0x7ab482=_0x57819e[_0x510fd4(0x18a)](_0x18d59c,this['C']['postHooks'],_0x3ac2b6[_0x510fd4(0x198)]+_0x510fd4(0x109)),_0x5d80ff=_0x57819e['join'](this[_0x510fd4(0x17d)],this['C'][_0x510fd4(0x16f)],_0x41a02c,_0x362c85['path'],this['C'][_0x510fd4(0x1df)],_0x3ac2b6[_0x510fd4(0x198)]+'.ts');await this[_0x510fd4(0x10f)](_0x57819e['dirname'](_0x5d80ff),{'recursive':!0x0}),await this['fsLink'](_0x7ab482,_0x5d80ff);}}}}async[_0x2bd869(0xbf)](){const _0x621b39=_0x2bd869,_0x51ed1b=this['C']['SchedulersReadF'],_0xe6bcb2=this['C'][_0x621b39(0x11e)],_0x4539d4=_0x57819e[_0x621b39(0x18a)](this[_0x621b39(0xca)],this['C'][_0x621b39(0x16f)],this[_0x621b39(0x1e8)]['adminUserPath'],_0x51ed1b),_0x30c01d=await this[_0x621b39(0x105)](_0x4539d4,null);for(const _0x48234a of _0x30c01d){const _0x48febe=_0x57819e[_0x621b39(0x18a)](_0x4539d4,_0x48234a,_0x48234a+'.yaml');if(!this[_0x621b39(0x1d5)](_0x48febe))continue;const _0x32dec9=await this['fsReadFile'](_0x48febe,{'encoding':_0x621b39(0x1aa)}),_0x4255b5=await this['parseYaml'](_0x32dec9);for(const _0x58904c of _0x4255b5[_0x621b39(0x154)]||[])if(!0x0===_0x58904c[_0x621b39(0x1c9)]){const _0x3bf51a=_0x57819e['join'](_0x4539d4,_0x48234a,this['C']['versions'],_0x58904c[_0x621b39(0x1dc)],_0x58904c['name']+_0x621b39(0x109)),_0x3b2383=_0x57819e['join'](this[_0x621b39(0x17d)],this['C']['src'],_0xe6bcb2,_0x4255b5[_0x621b39(0x198)]+'.ts');await this[_0x621b39(0x10f)](_0x57819e[_0x621b39(0x1ba)](_0x3b2383),{'recursive':!0x0}),await this[_0x621b39(0xed)](_0x3bf51a,_0x3b2383);}}}async[_0x2bd869(0x134)](){const _0x51e875=_0x2bd869,_0xcd864b=this['C']['SchemaReadF'],_0x4a53fe=this['C'][_0x51e875(0x110)],_0x5c2a4b=_0x57819e[_0x51e875(0x18a)](this[_0x51e875(0xca)],this['C'][_0x51e875(0x16f)],this['config'][_0x51e875(0x15c)],_0xcd864b),_0x38eabb=await this[_0x51e875(0x105)](_0x5c2a4b,null);for(const _0x1c4d9b of _0x38eabb){const _0x16a1c6=_0x57819e[_0x51e875(0x18a)](_0x5c2a4b,_0x1c4d9b,_0x1c4d9b+_0x51e875(0x161));if(!this[_0x51e875(0x1d5)](_0x16a1c6))continue;const _0x445d64=await this[_0x51e875(0x18d)](_0x16a1c6,{'encoding':_0x51e875(0x1aa)}),_0x5bd4dd=await this['parseYaml'](_0x445d64),_0x1b62fe=_0x57819e[_0x51e875(0x18a)](this[_0x51e875(0x17d)],this['C']['src'],_0x4a53fe,_0x5bd4dd[_0x51e875(0x113)],_0x5bd4dd['databaseName']);await this['fsMkDir'](_0x1b62fe,{'recursive':!0x0});const _0x1a30bc=_0x57819e[_0x51e875(0x18a)](_0x5c2a4b,_0x1c4d9b,_0x5bd4dd['collectionName']+_0x51e875(0x141)),_0x19f4c2=_0x57819e['join'](_0x1b62fe,_0x5bd4dd[_0x51e875(0xd9)]+_0x51e875(0x141));await this[_0x51e875(0xed)](_0x1a30bc,_0x19f4c2);}}async['copyDBMigrationsToAnotherDir'](){const _0x26a64e=_0x2bd869,_0x2ef129=this['C']['DBMigrationsReadF'],_0x1cdd02=this['C']['DBMigrationsWriteF'],_0x1b8763=_0x57819e[_0x26a64e(0x18a)](this[_0x26a64e(0xca)],this['C'][_0x26a64e(0x16f)],this['config']['adminUserPath'],_0x2ef129),_0x4b4bdd=await this[_0x26a64e(0x105)](_0x1b8763,null);for(const _0x22c39f of _0x4b4bdd){const _0x112f27=_0x57819e[_0x26a64e(0x18a)](_0x1b8763,_0x22c39f,_0x22c39f+_0x26a64e(0x161));if(!this[_0x26a64e(0x1d5)](_0x112f27))continue;const _0x24963b=await this[_0x26a64e(0x18d)](_0x112f27,{'encoding':_0x26a64e(0x1aa)}),_0x1f91db=await this[_0x26a64e(0x1ef)](_0x24963b),_0x53961b=_0x57819e[_0x26a64e(0x18a)](this[_0x26a64e(0x17d)],this['C'][_0x26a64e(0x16f)],_0x1cdd02);await this[_0x26a64e(0x10f)](_0x53961b,{'recursive':!0x0});const _0xadded3=_0x57819e[_0x26a64e(0x18a)](_0x1b8763,_0x22c39f,_0x1f91db[_0x26a64e(0x198)]+_0x26a64e(0x109)),_0x4ecb72=_0x57819e[_0x26a64e(0x18a)](_0x53961b,_0x1f91db['name']+_0x26a64e(0x109));await this[_0x26a64e(0xed)](_0xadded3,_0x4ecb72);}}async[_0x2bd869(0xfd)](){const _0x47d585=_0x2bd869,_0x2465ff=this['C'][_0x47d585(0x1cc)],_0x2a9b84=this['C'][_0x47d585(0x1c3)],_0x411794=_0x57819e['join'](this['appRoot'],this['C'][_0x47d585(0x16f)],this[_0x47d585(0x1e8)][_0x47d585(0x15c)],_0x2465ff),_0x2bf0ca=await this[_0x47d585(0x105)](_0x411794,null);for(const _0x3e74a5 of _0x2bf0ca){const _0x172a86=_0x57819e[_0x47d585(0x18a)](_0x411794,_0x3e74a5,_0x3e74a5+'.yaml');if(!this[_0x47d585(0x1d5)](_0x172a86))continue;const _0x5972ce=await this[_0x47d585(0x18d)](_0x172a86,{'encoding':'utf8'}),_0x3b5365=await this[_0x47d585(0x1ef)](_0x5972ce),_0x3b78d8=_0x57819e[_0x47d585(0x18a)](this[_0x47d585(0x17d)],this['C'][_0x47d585(0x16f)],_0x2a9b84);await this[_0x47d585(0x10f)](_0x3b78d8,{'recursive':!0x0});const _0x113663=_0x57819e[_0x47d585(0x18a)](_0x411794,_0x3e74a5,_0x3b5365[_0x47d585(0x198)]+'.ts'),_0x40247e=_0x57819e['join'](_0x3b78d8,_0x3b5365[_0x47d585(0x198)]+_0x47d585(0x109));await this[_0x47d585(0xed)](_0x113663,_0x40247e);}}async['copyI18NToAnotherDir'](){const _0x95f2c4=_0x2bd869,_0x41e881=this['C'][_0x95f2c4(0xf0)],_0x1c8429=this['C']['ProcessI18NWriteF'],_0x1757c6=_0x57819e['join'](this['appRoot'],this['C'][_0x95f2c4(0x16f)],this[_0x95f2c4(0x1e8)][_0x95f2c4(0x15c)],_0x41e881),_0xe24d2=await this[_0x95f2c4(0x105)](_0x1757c6,null);for(const _0x4b766 of _0xe24d2){const _0x1ff87d=_0x57819e[_0x95f2c4(0x18a)](_0x1757c6,_0x4b766,_0x4b766+_0x95f2c4(0x161));if(!this[_0x95f2c4(0x1d5)](_0x1ff87d))continue;const _0x1064b2=await this['fsReadFile'](_0x1ff87d,{'encoding':_0x95f2c4(0x1aa)}),_0x322e7c=await this['parseYaml'](_0x1064b2),_0x4c1b86=_0x57819e['join'](this[_0x95f2c4(0x17d)],this['C'][_0x95f2c4(0x16f)],_0x1c8429);await this[_0x95f2c4(0x10f)](_0x4c1b86,{'recursive':!0x0});const _0x58b129=_0x57819e[_0x95f2c4(0x18a)](_0x1757c6,_0x4b766,_0x322e7c[_0x95f2c4(0x198)]+_0x95f2c4(0x109)),_0x586746=_0x57819e[_0x95f2c4(0x18a)](_0x4c1b86,_0x322e7c[_0x95f2c4(0x198)]+_0x95f2c4(0x109));await this[_0x95f2c4(0xed)](_0x58b129,_0x586746);}}async['copyDBMastersToAnotherDir'](){const _0x472303=_0x2bd869,_0x72452a=this['C'][_0x472303(0x164)],_0xfe2ab6=this['C']['DBMastersWriteF'],_0x2b7bd4=_0x57819e[_0x472303(0x18a)](this[_0x472303(0xca)],this['C']['src'],this['config']['adminUserPath'],_0x72452a),_0x36eafa=await this[_0x472303(0x105)](_0x2b7bd4,null);for(const _0x459b86 of _0x36eafa){const _0x28ebaf=_0x57819e['join'](_0x2b7bd4,_0x459b86,_0x459b86+'.yaml');if(!this[_0x472303(0x1d5)](_0x28ebaf))continue;const _0x45c089=await this[_0x472303(0x18d)](_0x28ebaf,{'encoding':_0x472303(0x1aa)}),_0x5e5bfc=await this[_0x472303(0x1ef)](_0x45c089),_0x540be5=_0x57819e[_0x472303(0x18a)](this[_0x472303(0x17d)],this['C']['src'],_0xfe2ab6,_0x5e5bfc['name']);await this[_0x472303(0x10f)](_0x540be5,{'recursive':!0x0});const _0x26ebd8=_0x57819e[_0x472303(0x18a)](_0x2b7bd4,_0x459b86,_0x5e5bfc[_0x472303(0x198)]+_0x472303(0x109)),_0x519bf9=_0x57819e['join'](_0x540be5,_0x5e5bfc[_0x472303(0x198)]+_0x472303(0x109));await this[_0x472303(0xed)](_0x26ebd8,_0x519bf9);const _0x457965=_0x57819e[_0x472303(0x18a)](_0x2b7bd4,_0x459b86,_0x5e5bfc[_0x472303(0x198)]+_0x472303(0x141)),_0x28ab98=_0x57819e[_0x472303(0x18a)](_0x540be5,_0x5e5bfc[_0x472303(0x198)]+_0x472303(0x141));await this[_0x472303(0xed)](_0x457965,_0x28ab98);}}async[_0x2bd869(0x1e4)](){const _0x13df59=_0x2bd869,_0x17f7fd=this['C'][_0x13df59(0x15e)],_0x1fa007=this['C'][_0x13df59(0xc8)],_0x3f8aeb=_0x57819e[_0x13df59(0x18a)](this[_0x13df59(0xca)],this['C'][_0x13df59(0x16f)],this[_0x13df59(0x1e8)][_0x13df59(0x15c)],_0x17f7fd),_0x291187=await this['readDirCustom'](_0x3f8aeb,null);for(const _0x5e4553 of _0x291187){const _0xcf5fc=_0x57819e['join'](_0x3f8aeb,_0x5e4553,_0x5e4553+_0x13df59(0x161));if(!this[_0x13df59(0x1d5)](_0xcf5fc))continue;const _0x468500=await this[_0x13df59(0x18d)](_0xcf5fc,{'encoding':'utf8'}),_0x35e252=await this[_0x13df59(0x1ef)](_0x468500),_0x4216aa=_0x57819e[_0x13df59(0x18a)](this[_0x13df59(0x17d)],this['C'][_0x13df59(0x16f)],_0x1fa007);await this[_0x13df59(0x10f)](_0x4216aa,{'recursive':!0x0});const _0x5dd4e8=_0x57819e[_0x13df59(0x18a)](_0x3f8aeb,_0x5e4553,_0x35e252[_0x13df59(0x198)]+_0x13df59(0x114)),_0x1a4519=_0x57819e[_0x13df59(0x18a)](_0x4216aa,_0x35e252['name']+_0x13df59(0x114));await this[_0x13df59(0xed)](_0x5dd4e8,_0x1a4519);}}async[_0x2bd869(0xd7)](){const _0x1466bb=_0x2bd869,_0x421d05=this['C'][_0x1466bb(0x1a4)],_0x52b123=this['C'][_0x1466bb(0x1d2)],_0x26475e=_0x57819e[_0x1466bb(0x18a)](this[_0x1466bb(0xca)],this['C'][_0x1466bb(0x16f)],this['config']['adminUserPath'],_0x421d05),_0x443e71=await this['readDirCustom'](_0x26475e,null);for(const _0x2565e9 of _0x443e71){const _0x421659=_0x57819e[_0x1466bb(0x18a)](_0x26475e,_0x2565e9,_0x2565e9+_0x1466bb(0x161));if(!this[_0x1466bb(0x1d5)](_0x421659))continue;const _0x4a9f71=await this[_0x1466bb(0x18d)](_0x421659,{'encoding':'utf8'}),_0x2b0c3f=await this['parseYaml'](_0x4a9f71),_0x38bfb2=_0x57819e[_0x1466bb(0x18a)](this[_0x1466bb(0x17d)],this['C']['src'],_0x52b123);await this[_0x1466bb(0x10f)](_0x38bfb2,{'recursive':!0x0});const _0x5d7ab2=_0x57819e[_0x1466bb(0x18a)](_0x26475e,_0x2565e9,_0x2b0c3f[_0x1466bb(0x198)]+_0x1466bb(0x109)),_0x23d7ea=_0x57819e[_0x1466bb(0x18a)](_0x38bfb2,_0x2b0c3f[_0x1466bb(0x198)]+_0x1466bb(0x109));await this[_0x1466bb(0xed)](_0x5d7ab2,_0x23d7ea);}}async[_0x2bd869(0x1fd)](){const _0x42b2f7=_0x2bd869,_0x2c353d=this['C'][_0x42b2f7(0x1bf)],_0x446643=this['C'][_0x42b2f7(0x14c)],_0x1bb97f=_0x57819e[_0x42b2f7(0x18a)](this[_0x42b2f7(0xca)],this['C'][_0x42b2f7(0x16f)],this['config'][_0x42b2f7(0x15c)],_0x2c353d),_0x7d89a2=await this[_0x42b2f7(0x105)](_0x1bb97f,null);for(const _0x1c80b5 of _0x7d89a2){const _0x52690e=_0x57819e[_0x42b2f7(0x18a)](_0x1bb97f,_0x1c80b5,_0x1c80b5+_0x42b2f7(0x161));if(!this[_0x42b2f7(0x1d5)](_0x52690e))continue;const _0x43ea45=await this[_0x42b2f7(0x18d)](_0x52690e,{'encoding':'utf8'}),_0x3ce64a=await this[_0x42b2f7(0x1ef)](_0x43ea45),_0x53b1a1=_0x57819e[_0x42b2f7(0x18a)](this[_0x42b2f7(0x17d)],this['C'][_0x42b2f7(0x16f)],_0x446643);await this['fsMkDir'](_0x53b1a1,{'recursive':!0x0});const _0x3c1b32=_0x57819e[_0x42b2f7(0x18a)](_0x1bb97f,_0x1c80b5,_0x3ce64a[_0x42b2f7(0x198)]+_0x42b2f7(0x109)),_0x5ed957=_0x57819e[_0x42b2f7(0x18a)](_0x53b1a1,_0x3ce64a[_0x42b2f7(0x198)]+_0x42b2f7(0x109));await this[_0x42b2f7(0xed)](_0x3c1b32,_0x5ed957);}}async[_0x2bd869(0x155)](){const _0x1907bc=_0x2bd869,_0x56f364=this['C']['ThirdPartyApiReadF'],_0x4b1167=this['C'][_0x1907bc(0x206)],_0x5d6f69=_0x57819e['join'](this['appRoot'],this['C']['src'],this[_0x1907bc(0x1e8)][_0x1907bc(0x15c)],_0x56f364);if(!this[_0x1907bc(0x1d5)](_0x5d6f69))return;const _0x52db30=await this['readDirCustom'](_0x5d6f69,null);for(const _0x3a3435 of _0x52db30){const _0x134eb4=_0x57819e['join'](_0x5d6f69,_0x3a3435,this['C'][_0x1907bc(0x120)]),_0x5c2106=await this['readDirCustom'](_0x134eb4,null);for(const _0x46bd38 of _0x5c2106){const _0x2597f9=_0x57819e[_0x1907bc(0x18a)](_0x134eb4,_0x46bd38,_0x46bd38+_0x1907bc(0x161));if(!this[_0x1907bc(0x1d5)](_0x2597f9))continue;const _0x124d72=await this[_0x1907bc(0x18d)](_0x2597f9,{'encoding':_0x1907bc(0x1aa)}),_0x41155f=await this[_0x1907bc(0x1ef)](_0x124d72);for(const _0x1e02f6 of _0x41155f['versions']||[])if(!0x0===_0x1e02f6[_0x1907bc(0x1c9)]){const _0x4b6a96=_0x57819e[_0x1907bc(0x18a)](_0x134eb4,_0x46bd38,this['C']['versions'],_0x1e02f6[_0x1907bc(0x1dc)]),_0x4b1a94=_0x57819e[_0x1907bc(0x18a)](_0x4b6a96,_0x1e02f6[_0x1907bc(0x198)]+_0x1907bc(0x109)),_0x2272de=_0x57819e[_0x1907bc(0x18a)](this['projectDirectory'],this['C'][_0x1907bc(0x16f)],_0x4b1167,_0x3a3435,_0x41155f[_0x1907bc(0xd4)],_0x41155f['name']+_0x1907bc(0x109));await this[_0x1907bc(0x10f)](_0x57819e[_0x1907bc(0x1ba)](_0x2272de),{'recursive':!0x0}),await this[_0x1907bc(0xed)](_0x4b1a94,_0x2272de);const _0x18dd6a=_0x57819e[_0x1907bc(0x18a)](_0x134eb4,_0x46bd38,_0x46bd38+_0x1907bc(0x141)),_0x5422a9=_0x57819e[_0x1907bc(0x18a)](this[_0x1907bc(0x17d)],this['C'][_0x1907bc(0x16f)],_0x4b1167,_0x3a3435,_0x41155f[_0x1907bc(0xd4)],_0x41155f[_0x1907bc(0x198)]+_0x1907bc(0x141));await this[_0x1907bc(0xed)](_0x18dd6a,_0x5422a9);for(const _0x3515ca of _0x1e02f6[_0x1907bc(0xdc)]){const _0x2580f9=_0x57819e['join'](_0x4b6a96,this['C'][_0x1907bc(0xdc)],_0x3515ca[_0x1907bc(0x198)]+_0x1907bc(0x109)),_0x2e9562=_0x57819e[_0x1907bc(0x18a)](this[_0x1907bc(0x17d)],this['C'][_0x1907bc(0x16f)],_0x4b1167,_0x3a3435,_0x41155f['path'],this['C'][_0x1907bc(0xdc)],_0x3515ca['name']+_0x1907bc(0x109));await this[_0x1907bc(0x10f)](_0x57819e['dirname'](_0x2e9562),{'recursive':!0x0}),await this[_0x1907bc(0xed)](_0x2580f9,_0x2e9562);}for(const _0x4f0c70 of _0x1e02f6['postHooks']){const _0x1f3a75=_0x57819e[_0x1907bc(0x18a)](_0x4b6a96,this['C'][_0x1907bc(0x1df)],_0x4f0c70[_0x1907bc(0x198)]+_0x1907bc(0x109)),_0x31e003=_0x57819e[_0x1907bc(0x18a)](this[_0x1907bc(0x17d)],this['C'][_0x1907bc(0x16f)],_0x4b1167,_0x3a3435,_0x41155f[_0x1907bc(0xd4)],this['C']['postHooks'],_0x4f0c70['name']+_0x1907bc(0x109));await this[_0x1907bc(0x10f)](_0x57819e[_0x1907bc(0x1ba)](_0x31e003),{'recursive':!0x0}),await this[_0x1907bc(0xed)](_0x1f3a75,_0x31e003);}}}}}async[_0x2bd869(0x203)](){const _0x587166=_0x2bd869,_0x251f49=this['C'][_0x587166(0x1ca)],_0x78fe9e=this['C'][_0x587166(0x126)],_0x2b8a39=_0x57819e[_0x587166(0x18a)](this[_0x587166(0xca)],this['C'][_0x587166(0x16f)],this[_0x587166(0x1e8)]['adminUserPath'],_0x251f49),_0x4aa2d6=await this[_0x587166(0x105)](_0x2b8a39,null);for(const _0xcbf660 of _0x4aa2d6){const _0x8ffff7=_0x57819e['join'](_0x2b8a39,_0xcbf660,_0xcbf660+_0x587166(0x161));if(!this[_0x587166(0x1d5)](_0x8ffff7))continue;const _0xb12439=await this[_0x587166(0x18d)](_0x8ffff7,{'encoding':_0x587166(0x1aa)}),_0x1bf6b4=await this[_0x587166(0x1ef)](_0xb12439),_0x48b5ee=_0x57819e[_0x587166(0x18a)](_0x2b8a39,_0xcbf660,this['C']['listeners']);for(const _0x208f61 of _0x1bf6b4[_0x587166(0x10c)])for(const _0x26a7c4 of _0x208f61[_0x587166(0x154)]||[])if(!0x0===_0x26a7c4[_0x587166(0x1c9)]){const _0x566c75=_0x57819e[_0x587166(0x18a)](_0x48b5ee,_0x208f61[_0x587166(0x198)],this['C'][_0x587166(0x154)],_0x26a7c4[_0x587166(0x1dc)],_0x26a7c4[_0x587166(0x198)]+'.ts'),_0x5a6806=_0x57819e[_0x587166(0x18a)](this['projectDirectory'],this['C'][_0x587166(0x16f)],_0x78fe9e,_0x1bf6b4['name'],_0x208f61[_0x587166(0x198)]+'.ts');await this[_0x587166(0x10f)](_0x57819e['dirname'](_0x5a6806),{'recursive':!0x0}),await this[_0x587166(0xed)](_0x566c75,_0x5a6806);}}}async['copyInstanceApiHooksToAnotherDir'](){const _0xb7a5d8=_0x2bd869,_0x419ff4=this['C'][_0xb7a5d8(0xf7)],_0x2bab88=this['C']['InstanceApiHooksWriteF'],_0x101bf1=_0x57819e[_0xb7a5d8(0x18a)](this[_0xb7a5d8(0xca)],this['C']['src'],this['config'][_0xb7a5d8(0x15c)],_0x419ff4),_0x3cae62=await this[_0xb7a5d8(0x105)](_0x101bf1,null);for(const _0x27dd20 of _0x3cae62){const _0x34da91=_0x57819e[_0xb7a5d8(0x18a)](_0x101bf1,_0x27dd20,_0x27dd20+_0xb7a5d8(0x161));if(!this['fsExistsSync'](_0x34da91))continue;const _0x140de7=await this[_0xb7a5d8(0x18d)](_0x34da91,{'encoding':'utf8'}),_0x3e18c8=await this[_0xb7a5d8(0x1ef)](_0x140de7),_0xda53f6=_0x57819e['join'](_0x101bf1,_0x27dd20),_0x4ee36f=_0x3e18c8['instanceName']+'/'+_0x3e18c8[_0xb7a5d8(0x1f9)]+'/'+_0x3e18c8['collectionName']+'/'+_0x3e18c8[_0xb7a5d8(0xe0)][_0xb7a5d8(0x1dd)]();for(const _0x3207c6 of _0x3e18c8[_0xb7a5d8(0xdc)]){const _0x3fd99a=_0x57819e['join'](_0xda53f6,this['C'][_0xb7a5d8(0xdc)],_0x3207c6[_0xb7a5d8(0x198)]+_0xb7a5d8(0x109)),_0x45018f=_0x57819e[_0xb7a5d8(0x18a)](this['projectDirectory'],this['C'][_0xb7a5d8(0x16f)],_0x2bab88,_0x4ee36f,this['C']['preHooks'],_0x3207c6[_0xb7a5d8(0x198)]+'.ts');await this['fsMkDir'](_0x57819e['dirname'](_0x45018f),{'recursive':!0x0}),await this[_0xb7a5d8(0xed)](_0x3fd99a,_0x45018f);}for(const _0x24fa26 of _0x3e18c8['postHooks']){const _0x7a9376=_0x57819e[_0xb7a5d8(0x18a)](_0xda53f6,this['C'][_0xb7a5d8(0x1df)],_0x24fa26[_0xb7a5d8(0x198)]+'.ts'),_0x30c421=_0x57819e[_0xb7a5d8(0x18a)](this['projectDirectory'],this['C'][_0xb7a5d8(0x16f)],_0x2bab88,_0x4ee36f,this['C'][_0xb7a5d8(0x1df)],_0x24fa26[_0xb7a5d8(0x198)]+_0xb7a5d8(0x109));await this[_0xb7a5d8(0x10f)](_0x57819e[_0xb7a5d8(0x1ba)](_0x30c421),{'recursive':!0x0}),await this[_0xb7a5d8(0xed)](_0x7a9376,_0x30c421);}}}async[_0x2bd869(0x140)](){const _0x2a8fae=_0x2bd869,_0x558c2a=this['C'][_0x2a8fae(0xb6)],_0x40825a=this['C'][_0x2a8fae(0x1b4)],_0x538978=_0x57819e[_0x2a8fae(0x18a)](this[_0x2a8fae(0xca)],this['C']['src'],this[_0x2a8fae(0x1e8)][_0x2a8fae(0x15c)],_0x558c2a),_0x3cb8ed=await this[_0x2a8fae(0x105)](_0x538978,null);for(const _0x12748d of _0x3cb8ed){const _0x5f4834=_0x57819e[_0x2a8fae(0x18a)](_0x538978,_0x12748d,_0x12748d+'.yaml');if(!this[_0x2a8fae(0x1d5)](_0x5f4834))continue;const _0x588961=await this[_0x2a8fae(0x18d)](_0x5f4834,{'encoding':_0x2a8fae(0x1aa)}),_0xb8d9d1=await this['parseYaml'](_0x588961),_0x1f0284=_0x57819e['join'](_0x538978,_0x12748d),_0x43616a=_0xb8d9d1[_0x2a8fae(0xe0)][_0x2a8fae(0x1dd)]();for(const _0xb5ce11 of _0xb8d9d1['preHooks']){const _0x1eff44=_0x57819e[_0x2a8fae(0x18a)](_0x1f0284,this['C'][_0x2a8fae(0xdc)],_0xb5ce11[_0x2a8fae(0x198)]+_0x2a8fae(0x109)),_0x48d6da=_0x57819e['join'](this['projectDirectory'],this['C'][_0x2a8fae(0x16f)],_0x40825a,_0x43616a,this['C'][_0x2a8fae(0xdc)],_0xb5ce11[_0x2a8fae(0x198)]+_0x2a8fae(0x109));await this[_0x2a8fae(0x10f)](_0x57819e[_0x2a8fae(0x1ba)](_0x48d6da),{'recursive':!0x0}),await this['fsLink'](_0x1eff44,_0x48d6da);}for(const _0x90c17e of _0xb8d9d1[_0x2a8fae(0x1df)]){const _0x2dd721=_0x57819e[_0x2a8fae(0x18a)](_0x1f0284,this['C'][_0x2a8fae(0x1df)],_0x90c17e[_0x2a8fae(0x198)]+_0x2a8fae(0x109)),_0xc7c0cd=_0x57819e['join'](this[_0x2a8fae(0x17d)],this['C'][_0x2a8fae(0x16f)],_0x40825a,_0x43616a,this['C']['postHooks'],_0x90c17e[_0x2a8fae(0x198)]+_0x2a8fae(0x109));await this[_0x2a8fae(0x10f)](_0x57819e[_0x2a8fae(0x1ba)](_0xc7c0cd),{'recursive':!0x0}),await this[_0x2a8fae(0xed)](_0x2dd721,_0xc7c0cd);}}}async['copyWebSocketEventsToAnotherDir'](){const _0x17c8ff=_0x2bd869,_0x4fd92e=this['C'][_0x17c8ff(0x10d)],_0x41a425=this['C'][_0x17c8ff(0x11a)],_0x5399fe=_0x57819e[_0x17c8ff(0x18a)](this[_0x17c8ff(0xca)],this['C'][_0x17c8ff(0x16f)],this['config']['adminUserPath'],_0x4fd92e),_0x2ff12=await this[_0x17c8ff(0x105)](_0x5399fe,null);for(const _0x5a9a62 of _0x2ff12){const _0x57fde2=_0x57819e['join'](_0x5399fe,_0x5a9a62,_0x5a9a62+_0x17c8ff(0x161));if(!this['fsExistsSync'](_0x57fde2))continue;const _0x3854c5=await this[_0x17c8ff(0x18d)](_0x57fde2,{'encoding':_0x17c8ff(0x1aa)}),_0x165f65=await this[_0x17c8ff(0x1ef)](_0x3854c5);for(const _0x20e6a1 of _0x165f65[_0x17c8ff(0x154)]||[])if(!0x0===_0x20e6a1[_0x17c8ff(0x1c9)]){const _0x21d447=_0x57819e[_0x17c8ff(0x18a)](_0x5399fe,_0x5a9a62,this['C']['versions'],_0x20e6a1[_0x17c8ff(0x1dc)],_0x20e6a1[_0x17c8ff(0x198)]+'.ts');let _0x5afe90='',_0x3982c5='';_0x165f65[_0x17c8ff(0x19b)]===_0x223d72[_0x17c8ff(0x1f2)]?(_0x3982c5=_0x17c8ff(0x1c8),_0x5afe90=_0x165f65[_0x17c8ff(0x113)]+'/'+_0x165f65['databaseName']+'/'+_0x165f65[_0x17c8ff(0xd9)]+'/'+_0x165f65[_0x17c8ff(0x1d9)][_0x17c8ff(0x1dd)]()):_0x165f65[_0x17c8ff(0x19b)]===_0x223d72['THIRD_PARTY_APIS']?(_0x3982c5=_0x17c8ff(0xce),_0x5afe90=_0x165f65['tpInstalledApiBundleName']+'/'+_0x165f65[_0x17c8ff(0x193)]):_0x165f65[_0x17c8ff(0x19b)]===_0x223d72[_0x17c8ff(0xe2)]?(_0x3982c5=_0x17c8ff(0x1fb),_0x5afe90=_0x165f65['customApiName']):_0x165f65['apiCategory']===_0x223d72[_0x17c8ff(0xcf)]?(_0x3982c5=_0x17c8ff(0x137),_0x5afe90=_0x165f65[_0x17c8ff(0x15f)][_0x17c8ff(0x1dd)]()):_0x165f65[_0x17c8ff(0x19b)]===_0x223d72[_0x17c8ff(0x148)]&&(_0x3982c5=_0x17c8ff(0x1f6),_0x5afe90=_0x165f65[_0x17c8ff(0x198)]);const _0x2365d2=_0x57819e['join'](this[_0x17c8ff(0x17d)],this['C'][_0x17c8ff(0x16f)],_0x41a425,_0x3982c5,_0x5afe90+_0x17c8ff(0x109));await this[_0x17c8ff(0x10f)](_0x57819e[_0x17c8ff(0x1ba)](_0x2365d2),{'recursive':!0x0}),await this['fsLink'](_0x21d447,_0x2365d2);}}}async[_0x2bd869(0x153)](){const _0x3b4438=_0x2bd869,_0x12aa04=this['C']['CollectionHooksReadF'],_0x5ebb75=this['C'][_0x3b4438(0x1ea)],_0x533043=_0x57819e[_0x3b4438(0x18a)](this['appRoot'],this['C'][_0x3b4438(0x16f)],this['config'][_0x3b4438(0x15c)],_0x12aa04),_0x43156c=await this[_0x3b4438(0x105)](_0x533043,null);for(const _0x1696cf of _0x43156c){const _0x1966b3=_0x57819e[_0x3b4438(0x18a)](_0x533043,_0x1696cf,_0x1696cf+'.yaml');if(!this['fsExistsSync'](_0x1966b3))continue;const _0xa47d2f=await this[_0x3b4438(0x18d)](_0x1966b3,{'encoding':_0x3b4438(0x1aa)}),_0x454250=await this['parseYaml'](_0xa47d2f),_0x1db230=_0x57819e['join'](_0x533043,_0x1696cf),_0xef5bbd=_0x454250['instanceName']+'/'+_0x454250[_0x3b4438(0x1f9)]+'/'+_0x454250[_0x3b4438(0xd9)];for(const _0x544a53 of _0x454250[_0x3b4438(0xdc)]){const _0x5860f1=_0x57819e['join'](_0x1db230,this['C'][_0x3b4438(0xdc)],_0x544a53[_0x3b4438(0x198)]+_0x3b4438(0x109)),_0x25754f=_0x57819e[_0x3b4438(0x18a)](this[_0x3b4438(0x17d)],this['C']['src'],_0x5ebb75,_0xef5bbd,this['C'][_0x3b4438(0xdc)],_0x544a53['name']+_0x3b4438(0x109));await this[_0x3b4438(0x10f)](_0x57819e[_0x3b4438(0x1ba)](_0x25754f),{'recursive':!0x0}),await this[_0x3b4438(0xed)](_0x5860f1,_0x25754f);}for(const _0x4c8ab4 of _0x454250[_0x3b4438(0x1df)]){const _0x40ca2e=_0x57819e['join'](_0x1db230,this['C'][_0x3b4438(0x1df)],_0x4c8ab4[_0x3b4438(0x198)]+_0x3b4438(0x109)),_0x926765=_0x57819e[_0x3b4438(0x18a)](this[_0x3b4438(0x17d)],this['C']['src'],_0x5ebb75,_0xef5bbd,this['C'][_0x3b4438(0x1df)],_0x4c8ab4[_0x3b4438(0x198)]+_0x3b4438(0x109));await this[_0x3b4438(0x10f)](_0x57819e[_0x3b4438(0x1ba)](_0x926765),{'recursive':!0x0}),await this[_0x3b4438(0xed)](_0x40ca2e,_0x926765);}}}async[_0x2bd869(0x15d)](){const _0x21528e=_0x2bd869,_0x3be096=this['C'][_0x21528e(0x17f)],_0x80a79a=this['C'][_0x21528e(0x1ff)],_0x51c8c8=_0x57819e[_0x21528e(0x18a)](this[_0x21528e(0xca)],this['C']['src'],this[_0x21528e(0x1e8)][_0x21528e(0x15c)],_0x3be096),_0x1ee166=await this[_0x21528e(0x105)](_0x51c8c8,null);for(const _0x52c218 of _0x1ee166){const _0x31b9b1=_0x57819e[_0x21528e(0x18a)](_0x51c8c8,_0x52c218,_0x52c218+_0x21528e(0x161));if(!this['fsExistsSync'](_0x31b9b1))continue;const _0x359fd4=await this['fsReadFile'](_0x31b9b1,{'encoding':'utf8'}),_0x7843e9=await this[_0x21528e(0x1ef)](_0x359fd4),_0x387a70=_0x57819e[_0x21528e(0x18a)](_0x51c8c8,_0x52c218),_0x39cfe7=_0x7843e9[_0x21528e(0x113)]+'/'+_0x7843e9[_0x21528e(0x1f9)];for(const _0x2ce66a of _0x7843e9[_0x21528e(0xdc)]){const _0xa83abf=_0x57819e[_0x21528e(0x18a)](_0x387a70,this['C']['preHooks'],_0x2ce66a[_0x21528e(0x198)]+_0x21528e(0x109)),_0x40c878=_0x57819e['join'](this[_0x21528e(0x17d)],this['C'][_0x21528e(0x16f)],_0x80a79a,_0x39cfe7,this['C'][_0x21528e(0xdc)],_0x2ce66a[_0x21528e(0x198)]+_0x21528e(0x109));await this[_0x21528e(0x10f)](_0x57819e[_0x21528e(0x1ba)](_0x40c878),{'recursive':!0x0}),await this[_0x21528e(0xed)](_0xa83abf,_0x40c878);}for(const _0x24c843 of _0x7843e9[_0x21528e(0x1df)]){const _0x5e4bc5=_0x57819e['join'](_0x387a70,this['C']['postHooks'],_0x24c843['name']+_0x21528e(0x109)),_0x3cffe0=_0x57819e[_0x21528e(0x18a)](this[_0x21528e(0x17d)],this['C'][_0x21528e(0x16f)],_0x80a79a,_0x39cfe7,this['C'][_0x21528e(0x1df)],_0x24c843[_0x21528e(0x198)]+_0x21528e(0x109));await this['fsMkDir'](_0x57819e[_0x21528e(0x1ba)](_0x3cffe0),{'recursive':!0x0}),await this['fsLink'](_0x5e4bc5,_0x3cffe0);}}}async[_0x2bd869(0x1b9)](){const _0x44ee42=_0x2bd869,_0x121151=this['C']['InstanceHooksReadF'],_0x50d08b=this['C']['InstanceHooksWriteF'],_0x7553d0=_0x57819e[_0x44ee42(0x18a)](this['appRoot'],this['C']['src'],this[_0x44ee42(0x1e8)][_0x44ee42(0x15c)],_0x121151),_0x20eb8c=await this[_0x44ee42(0x105)](_0x7553d0,null);for(const _0x1a9c30 of _0x20eb8c){const _0x511e52=_0x57819e[_0x44ee42(0x18a)](_0x7553d0,_0x1a9c30,_0x1a9c30+_0x44ee42(0x161));if(!this['fsExistsSync'](_0x511e52))continue;const _0x30c35c=await this['fsReadFile'](_0x511e52,{'encoding':_0x44ee42(0x1aa)}),_0x2fd41f=await this[_0x44ee42(0x1ef)](_0x30c35c),_0x5014db=_0x57819e[_0x44ee42(0x18a)](_0x7553d0,_0x1a9c30),_0xc675fa=''+_0x2fd41f['instanceName'];for(const _0x46901b of _0x2fd41f['preHooks']){const _0x4ea504=_0x57819e[_0x44ee42(0x18a)](_0x5014db,this['C'][_0x44ee42(0xdc)],_0x46901b['name']+_0x44ee42(0x109)),_0xecfe7=_0x57819e[_0x44ee42(0x18a)](this[_0x44ee42(0x17d)],this['C'][_0x44ee42(0x16f)],_0x50d08b,_0xc675fa,this['C'][_0x44ee42(0xdc)],_0x46901b[_0x44ee42(0x198)]+'.ts');await this['fsMkDir'](_0x57819e['dirname'](_0xecfe7),{'recursive':!0x0}),await this[_0x44ee42(0xed)](_0x4ea504,_0xecfe7);}for(const _0x274837 of _0x2fd41f['postHooks']){const _0x230657=_0x57819e[_0x44ee42(0x18a)](_0x5014db,this['C'][_0x44ee42(0x1df)],_0x274837[_0x44ee42(0x198)]+'.ts'),_0x5100ea=_0x57819e['join'](this[_0x44ee42(0x17d)],this['C'][_0x44ee42(0x16f)],_0x50d08b,_0xc675fa,this['C'][_0x44ee42(0x1df)],_0x274837[_0x44ee42(0x198)]+_0x44ee42(0x109));await this[_0x44ee42(0x10f)](_0x57819e[_0x44ee42(0x1ba)](_0x5100ea),{'recursive':!0x0}),await this[_0x44ee42(0xed)](_0x230657,_0x5100ea);}}}async[_0x2bd869(0x199)](_0x105b34,_0x257379){return new Promise((_0x1bf68d,_0x1829e7)=>{const _0x509e1c=a0_0x5593,_0x2cd6b0=(0x0,_0xee7bf4[_0x509e1c(0x1fe)])(_0x105b34,_0x257379,{'shell':!0x0,'cwd':this[_0x509e1c(0xca)]});_0x2cd6b0['on']('close',_0x3b0903=>{const _0xa6fb6e=_0x509e1c;if(0x0===_0x3b0903)setTimeout(_0x1bf68d,0x1f4);else{const _0x5547da='\x27'+_0x105b34+'\x20'+_0x257379[_0xa6fb6e(0x18a)]('\x20')+'\x27\x20exited\x20with\x20code\x20'+_0x3b0903+'.';_0x1829e7(new Error(_0x5547da));}}),_0x2cd6b0['on'](_0x509e1c(0x173),_0x2d54d3=>{const _0x50da41=_0x509e1c;console[_0x50da41(0x173)](_0x50da41(0x196)+_0x2d54d3[_0x50da41(0xc6)]),_0x1829e7(_0x2d54d3);});});}async[_0x2bd869(0x1ef)](_0x153a27){const _0x275243=_0x2bd869;return _0xd4f299(0x2f8)[_0x275243(0x123)](_0x153a27);}['startWatch'](){const _0x3334da=_0x2bd869,_0x26564b=_0xd4f299(0x274),_0x3964bd=_0x57819e[_0x3334da(0x18a)](this[_0x3334da(0xca)]),_0x55b122=_0x57819e[_0x3334da(0x18a)](this[_0x3334da(0xca)],this['C']['src']),_0x19fa5a=_0x4a3b6a=>{const _0x113837=_0x3334da,_0x224f32=_0x57819e[_0x113837(0xda)](_0x3964bd,_0x4a3b6a);return!(_0x224f32&&!_0x224f32[_0x113837(0x152)]('.')&&!_0x224f32[_0x113837(0x205)]('~')&&_0x224f32['startsWith'](this['C']['src']));},_0x3a17d9=_0x26564b['watch'](_0x55b122,{'persistent':!0x0,'ignoreInitial':!0x0,'depth':0x1/0x0,'awaitWriteFinish':{'stabilityThreshold':0xc8,'pollInterval':0x64}}),_0x113193=async(_0x37be1b,_0x13b77f)=>{const _0x11b4a8=_0x3334da;try{if(this[_0x11b4a8(0x1c0)])return;const _0x1faf0f=_0x57819e[_0x11b4a8(0xda)](_0x3964bd,_0x13b77f);if(!_0x13b77f||_0x19fa5a(_0x13b77f))return;console[_0x11b4a8(0x1fc)](_0x11b4a8(0x201)+this[_0x11b4a8(0x129)]()+_0x11b4a8(0x1a7)+_0x37be1b+_0x11b4a8(0xf6)+_0x1faf0f);const _0x5cd40b=this[_0x11b4a8(0x165)](_0x1faf0f),_0x3ea5d0=this[_0x11b4a8(0x11d)](_0x5cd40b,_0x1faf0f);if(!_0x3ea5d0)return;let _0xb29c61,_0x39a0b7=!0x1;if(this[_0x11b4a8(0x1d5)](_0x3ea5d0)){if(this[_0x11b4a8(0x1d5)](_0x57819e[_0x11b4a8(0x18a)](_0x3964bd,_0x1faf0f))){const _0x40785d=_0x57819e[_0x11b4a8(0x18a)](_0x57819e[_0x11b4a8(0x1a1)]+this['C'][_0x11b4a8(0x150)],_0x3ea5d0);_0xb29c61=await this[_0x11b4a8(0x10a)](_0x3ea5d0,_0x40785d),this[_0x11b4a8(0x122)]({'objType':_0x544217[_0x11b4a8(0xcb)],'localClientWSReqRes':{'eventType':_0x5563e8['LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM'],'folderChangedOnLocalSystem':_0xb29c61,'category':_0x5cd40b,'shouldReplaceAllItemsOfCategory':_0x39a0b7}});}else this[_0x11b4a8(0xf1)]();}else{const _0x556ee5=this['getChangedFolderForDeleted'](_0x5cd40b,_0x1faf0f),_0x3785eb=_0x57819e['join'](_0x57819e[_0x11b4a8(0x1a1)]+this['C']['repo'],_0x556ee5);_0xb29c61=await this[_0x11b4a8(0x10a)](_0x556ee5,_0x3785eb),_0x39a0b7=!0x0,this[_0x11b4a8(0x157)](_0xb29c61,_0x5cd40b,_0x39a0b7);}}catch(_0x14bb92){console['error'](_0x11b4a8(0x16b),_0x14bb92);}};_0x3a17d9['on'](_0x3334da(0x209),_0x340796=>_0x113193('add',_0x340796))['on']('change',_0xc92d2c=>_0x113193(_0x3334da(0x15b),_0xc92d2c))['on']('unlink',_0x55490c=>_0x113193(_0x3334da(0x1f7),_0x55490c))['on'](_0x3334da(0x11b),_0x3e78a1=>_0x113193(_0x3334da(0x11b),_0x3e78a1))['on'](_0x3334da(0xe9),_0x3e721f=>_0x113193('unlinkDir',_0x3e721f))['on']('error',_0x4947b1=>console[_0x3334da(0x173)](_0x3334da(0xc5),_0x4947b1)),this['watcher']=_0x3a17d9,console[_0x3334da(0x1fc)](_0x3334da(0x138));}['getCurrentTime'](){const _0x130355=_0x2bd869,_0x49a7ba=new Date();return String(_0x49a7ba[_0x130355(0x1ce)]())[_0x130355(0x177)](0x2,'0')+':'+String(_0x49a7ba[_0x130355(0x100)]())['padStart'](0x2,'0')+':'+String(_0x49a7ba[_0x130355(0xd1)]())[_0x130355(0x177)](0x2,'0');}[_0x2bd869(0x19d)](_0x59d58f,_0xc660ca,_0x33f59e){const _0x4a3a6d=_0x2bd869;this[_0x4a3a6d(0x122)]({'objType':_0x544217[_0x4a3a6d(0xcb)],'localClientWSReqRes':{'eventType':_0x5563e8['LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM'],'folderChangedOnLocalSystem':_0x59d58f,'category':_0xc660ca,'shouldReplaceAllItemsOfCategory':_0x33f59e}});}[_0x2bd869(0x197)](_0x18ecab,_0xfda64d){let _0x2a4c16=null;return function(..._0x590705){clearTimeout(_0x2a4c16),_0x2a4c16=setTimeout(()=>{_0x18ecab['apply'](this,_0x590705);},_0xfda64d);};}[_0x2bd869(0x165)](_0x1431f4){const _0x2ecbe7=_0x2bd869,_0x1ddd21=_0x57819e[_0x2ecbe7(0x18a)](this['C'][_0x2ecbe7(0x16f)],this['config'][_0x2ecbe7(0x15c)]);if(!_0x1431f4['startsWith'](_0x1ddd21))return;const _0x2e6c3c=_0x1431f4[_0x2ecbe7(0x1de)](_0x57819e['sep'])[_0x2ecbe7(0x13e)](_0x5de36c=>!!_0x5de36c)[0x2];for(const _0x2bed1e in _0x4270a0)if(_0x4270a0[_0x2bed1e]===_0x2e6c3c)return _0x2e6c3c;}['getChangedFolder'](_0xd87976,_0x91dfe6){const _0x371086=_0x2bd869,_0x19aca7=_0x91dfe6[_0x371086(0x1de)](_0x57819e[_0x371086(0x1a1)]);let _0x31d0a='';return _0x31d0a=_0xd87976===_0x4270a0[_0x371086(0xe4)]?_0x19aca7[_0x371086(0x13c)](0x0,0x6)[_0x371086(0x18a)](_0x57819e[_0x371086(0x1a1)]):_0x19aca7[_0x371086(0x13c)](0x0,0x4)['join'](_0x57819e[_0x371086(0x1a1)]),_0x31d0a;}[_0x2bd869(0xbc)](_0x3236b0,_0xf0e65e){const _0x39736b=_0x2bd869;return _0xf0e65e[_0x39736b(0x1de)](_0x57819e['sep'])[_0x39736b(0x13c)](0x0,0x3)['join'](_0x57819e[_0x39736b(0x1a1)]);}async['serializeFolderWithBinary'](_0x1be060,_0x55be04){const _0x1b57a7={},_0x2246f2=this;return await async function _0x2fd7f8(_0x3e1229){const _0x20beda=a0_0x5593,_0x569546=await _0x2246f2[_0x20beda(0x105)](_0x3e1229,{'withFileTypes':!0x0});for(const _0x538d0e of _0x569546){const _0x479cb4=_0x57819e[_0x20beda(0x18a)](_0x3e1229,_0x538d0e[_0x20beda(0x198)]),_0x3a7b9b=_0x57819e[_0x20beda(0xdb)](_0x479cb4);if(_0x538d0e[_0x20beda(0xc4)]())await _0x2fd7f8(_0x3a7b9b);else{const _0x1c7572=_0x1f66ac[_0x20beda(0xfe)](_0x3a7b9b),_0x1c3954=_0x57819e['relative'](_0x1be060,_0x3a7b9b),_0x5294f1=_0x57819e[_0x20beda(0x18a)](_0x55be04,_0x1c3954)[_0x20beda(0x1de)](_0x57819e[_0x20beda(0x1a1)])[_0x20beda(0x18a)](_0x57819e[_0x20beda(0x1e5)][_0x20beda(0x1a1)]);_0x1b57a7[_0x5294f1]={'encoding':'base64','content':_0x1c7572[_0x20beda(0x1c7)](_0x20beda(0x184))};}}}(_0x1be060),_0x1b57a7;}[_0x2bd869(0x122)](_0x4994cb){try{this['ws']['send'](JSON['stringify'](_0x4994cb));}catch(_0x203f36){console['log'](_0x203f36);}}async[_0x2bd869(0xea)](){const _0x36be20=_0x2bd869;console['log']('⏳\x20Connecting\x20to\x20server...');const _0x2243dd=this['config'][_0x36be20(0x12a)],_0x3eab0a=this['config'][_0x36be20(0x15c)],_0x27d388=this['config'][_0x36be20(0x170)];this['ws']=new WebSocket(_0x27d388+_0x36be20(0x1ae)+_0x2243dd+_0x36be20(0x130)+_0x3eab0a);const _0x47d2b3=[],_0x381834=()=>{const _0x1fb9d3=_0x36be20;this['sendToServer']({'objType':_0x544217[_0x1fb9d3(0xef)],'onEvents':[{'eventType':_0x1fb9d3(0xba)}]});};function _0x38d925(_0x330021){const _0x58cdb7=_0x36be20;_0x330021['onopen']=null,_0x330021[_0x58cdb7(0x169)]=null,_0x330021[_0x58cdb7(0x19c)]=null,_0x330021[_0x58cdb7(0x107)]=null,_0x330021[_0x58cdb7(0x146)]();}this['ws'][_0x36be20(0x169)]=async _0x1b240b=>{const _0x53b807=_0x36be20,_0x4cae5b=JSON[_0x53b807(0x111)](_0x1b240b[_0x53b807(0x149)]);if(_0x4cae5b[_0x53b807(0xdd)]===_0x544217[_0x53b807(0x1e6)]&&_0x4cae5b['response'][_0x53b807(0xcd)])_0x381834();else{if(_0x4cae5b[_0x53b807(0xdd)]===_0x544217['REGISTER']){if(_0x4cae5b?.[_0x53b807(0x181)]?.['validOnEvents']?.[_0x53b807(0x18c)]){for(const _0x2e1f8f of _0x4cae5b[_0x53b807(0x181)]['validOnEvents'])_0x47d2b3[_0x53b807(0x17c)](_0x2e1f8f);console[_0x53b807(0x1fc)](_0x53b807(0x189)),!0x1===this['isWSConnectedFirstTime']&&(this[_0x53b807(0x124)]=!0x0,console[_0x53b807(0x1fc)](this[_0x53b807(0xc0)]+_0x53b807(0xd6)+this[_0x53b807(0x17d)]+this[_0x53b807(0x183)])),this[_0x53b807(0xf1)]();}else{const _0x60f01e=_0x4cae5b['response']?.[_0x53b807(0xc9)]?.[0x0]?.[_0x53b807(0xbb)]?.[0x0]?.['message']||_0x53b807(0x204);console[_0x53b807(0x1fc)]('❌\x20'+_0x60f01e),await this[_0x53b807(0x1c2)](0x1);}}else await this['processReceivedEvent'](_0x4cae5b);}},this['ws']['onclose']=_0x4f9c63=>{const _0xab93b8=_0x36be20;console[_0xab93b8(0x1fc)](_0xab93b8(0x174)),_0x38d925(this['ws']),setTimeout(this[_0xab93b8(0xea)][_0xab93b8(0x16c)](this),0xbb8);},this['ws'][_0x36be20(0x19c)]=()=>{const _0x22763b=_0x36be20;_0x38d925(this['ws']),setTimeout(this['connectToServerViaWS'][_0x22763b(0x16c)](this),0xbb8);};}[_0x2bd869(0xf1)](){const _0x184350=_0x2bd869;this['sendToServer']({'objType':_0x544217[_0x184350(0xcb)],'localClientWSReqRes':{'eventType':_0x5563e8['LC_SEND_ALL_DATA']}});}async[_0x2bd869(0x127)](_0xcd5ba7){const _0x11ab5e=_0x2bd869;if(this['EL']&&_0xcd5ba7[_0x11ab5e(0x181)][_0x11ab5e(0x1e2)]!==_0x5563e8[_0x11ab5e(0xe5)]&&console[_0x11ab5e(0x1fc)](_0xcd5ba7),_0xcd5ba7['type']===_0x544217[_0x11ab5e(0xcb)]){if(_0xcd5ba7[_0x11ab5e(0xbb)]?.[_0x11ab5e(0x18c)])return void console[_0x11ab5e(0x173)](_0xcd5ba7['errors']);if(_0xcd5ba7['response'][_0x11ab5e(0x1e2)]===_0x5563e8[_0x11ab5e(0xe5)]){_0x1f66ac['rmSync'](_0x57819e[_0x11ab5e(0x18a)](this[_0x11ab5e(0xca)],this['C'][_0x11ab5e(0x16f)]),{'recursive':!0x0,'force':!0x0}),this[_0x11ab5e(0x106)](_0x57819e[_0x11ab5e(0x18a)](this[_0x11ab5e(0xca)],this['C'][_0x11ab5e(0x16f)]),{'recursive':!0x0});const _0x433325=_0xcd5ba7[_0x11ab5e(0x181)][_0x11ab5e(0xf2)];await this[_0x11ab5e(0x1cb)](_0x433325,this[_0x11ab5e(0xca)]),this[_0x11ab5e(0x175)]||setTimeout(this[_0x11ab5e(0x162)][_0x11ab5e(0x16c)](this),0x1388);}else{if(_0xcd5ba7['response'][_0x11ab5e(0x1e2)]===_0x5563e8[_0x11ab5e(0x179)]){const _0x4e3caf=_0xcd5ba7[_0x11ab5e(0x181)][_0x11ab5e(0xf2)];await this[_0x11ab5e(0x1cb)](_0x4e3caf[_0x11ab5e(0x149)],this[_0x11ab5e(0xca)]);}}!0x0===this['nodeModulesCopied']?await this[_0x11ab5e(0x12d)](!0x1):(await this[_0x11ab5e(0x12d)](!0x0),this['nodeModulesCopied']=!0x0);}}async[_0x2bd869(0x1cb)](_0x5429eb,_0x1f0ade){const _0x17f16a=_0x2bd869;this[_0x17f16a(0x1c0)]=!0x0;let _0x12adce=[];const _0x2116f7=async()=>{const _0x19a96b=_0x17f16a;_0x12adce[_0x19a96b(0x18c)]>0x0&&(await Promise['all'](_0x12adce),_0x12adce=[]);};for(const [_0x53bb4c,_0x34a811]of Object['entries'](_0x5429eb)){if(!_0x53bb4c['startsWith']('/'+this['C'][_0x17f16a(0x150)]+'/'+this['C'][_0x17f16a(0x16f)]))continue;const _0x48d2c0=_0x34a811,_0x3a7738=_0x53bb4c[_0x17f16a(0xf9)]('/'+this['C'][_0x17f16a(0x150)],'');if(this[_0x17f16a(0x142)][_0x3a7738])continue;const _0x9890e4=_0x57819e['join'](_0x1f0ade,_0x3a7738[_0x17f16a(0xf9)](/^\//,'')),_0x2ae9fe=_0x57819e['dirname'](_0x9890e4),_0x1e3287=async()=>{const _0x3f5240=_0x17f16a;await this[_0x3f5240(0x10f)](_0x2ae9fe,{'recursive':!0x0}),await this[_0x3f5240(0x103)](_0x9890e4,_0x48d2c0[_0x3f5240(0xe7)],{'encoding':_0x3f5240(0x184)}),this['EL']&&console[_0x3f5240(0x1fc)]('✓\x20Receive\x20:\x20['+this[_0x3f5240(0x129)]()+_0x3f5240(0xf6)+_0x9890e4[_0x3f5240(0xf9)](_0x1f0ade,''));};_0x12adce['push'](_0x1e3287()),_0x12adce[_0x17f16a(0x18c)]>=0x3e8&&await _0x2116f7();}await _0x2116f7(),setTimeout(()=>{const _0x342920=_0x17f16a;this[_0x342920(0x1c0)]=!0x1;},0x3e8);}['removeEmptyDirsSync'](_0x188cc4){const _0x2e9eec=_0x2bd869,_0x1562a1=this[_0x2e9eec(0x14e)](_0x188cc4);if(!this['fsExistsSync'](_0x1562a1))return!0x1;const _0x1b8ae2=_0x1f66ac['readdirSync'](_0x1562a1);let _0x34cf51=!0x0;for(const _0xf9f06a of _0x1b8ae2){const _0x4c1f6b=_0x57819e[_0x2e9eec(0x18a)](_0x1562a1,_0xf9f06a);_0x1f66ac[_0x2e9eec(0x20a)](_0x4c1f6b)['isDirectory']()&&this['removeEmptyDirsSync'](_0x4c1f6b)||(_0x34cf51=!0x1);}return!!_0x34cf51&&(_0x1f66ac[_0x2e9eec(0x12f)](_0x1562a1),!0x0);}async[_0x2bd869(0x105)](_0x170d8f,_0x2f4b3c){const _0x1a37d7=_0x2bd869;return this[_0x1a37d7(0x1d5)](_0x170d8f)?await this[_0x1a37d7(0xee)](_0x170d8f,_0x2f4b3c):[];}[_0x2bd869(0x14e)](_0x46344a){const _0x557d7c=_0x2bd869;return _0x57819e[_0x557d7c(0xdb)](_0x46344a);}[_0x2bd869(0x1d5)](_0x74e9c2){const _0xd3d697=_0x2bd869,_0x311ab5=_0x57819e[_0xd3d697(0xdb)](_0x74e9c2);return _0x1f66ac[_0xd3d697(0x121)](_0x311ab5);}async[_0x2bd869(0xee)](_0x1fa58b,_0xbbe2ce){const _0xbd2344=_0x2bd869,_0x3a11db=_0x57819e[_0xbd2344(0xdb)](_0x1fa58b);return await _0x1f66ac[_0xbd2344(0x1d4)][_0xbd2344(0x176)](_0x3a11db,_0xbbe2ce);}async[_0x2bd869(0x10f)](_0x3bc17e,_0x3be4b0){const _0x2c9144=_0x2bd869,_0x4fa170=_0x57819e['normalize'](_0x3bc17e);return await _0x1f66ac[_0x2c9144(0x1d4)]['mkdir'](_0x4fa170,_0x3be4b0);}['fsMkDirSync'](_0x4966ad,_0x119f3a){const _0x31a69e=_0x2bd869,_0xb5bfa4=_0x57819e['normalize'](_0x4966ad);return _0x1f66ac[_0x31a69e(0xb4)](_0xb5bfa4,_0x119f3a);}async['fsReadFile'](_0x2a4139,_0x2b6a45){const _0x1750db=_0x2bd869,_0x2dfc4c=_0x57819e[_0x1750db(0xdb)](_0x2a4139);return await _0x1f66ac[_0x1750db(0x1d4)][_0x1750db(0x145)](_0x2dfc4c,_0x2b6a45);}async['fsWriteFile'](_0x631e81,_0x714f0e,_0x3b2d84){const _0x42057c=_0x2bd869,_0x412cc6=_0x57819e[_0x42057c(0xdb)](_0x631e81);return await _0x1f66ac[_0x42057c(0x1d4)]['writeFile'](_0x412cc6,_0x714f0e,_0x3b2d84);}async[_0x2bd869(0xed)](_0x211a6b,_0x4a9b17){const _0x5ae269=_0x2bd869,_0x5e74ac=_0x57819e[_0x5ae269(0xdb)](_0x211a6b),_0x5e7995=_0x57819e[_0x5ae269(0xdb)](_0x4a9b17);return await _0x1f66ac[_0x5ae269(0x1d4)][_0x5ae269(0xdf)](_0x5e74ac,_0x5e7995);}async[_0x2bd869(0x1c2)](_0x212fcd=0x0){const _0x1ca859=_0x2bd869;if(!this[_0x1ca859(0x18e)]){this[_0x1ca859(0x18e)]=!0x0;try{this['watcher']&&await this[_0x1ca859(0x175)][_0x1ca859(0x146)]();}catch(_0x2eec6e){console[_0x1ca859(0x173)](_0x1ca859(0xc7),_0x2eec6e);}finally{setTimeout(()=>process['exit'](_0x212fcd),0xc8);}}}['addProcessHooks'](){const _0x4beb3c=_0x2bd869;process['on']('SIGINT',()=>{const _0x2e7b07=a0_0x5593;console['log']('SIGINT\x20received\x20—\x20shutting\x20down'),this[_0x2e7b07(0x1c2)](0x0);}),process['on'](_0x4beb3c(0x185),()=>{const _0xa68b0d=_0x4beb3c;console[_0xa68b0d(0x1fc)](_0xa68b0d(0x1a2)),this['shutdownAndExit'](0x0);}),process['on'](_0x4beb3c(0xbd),_0x450ab5=>{const _0x34ffac=_0x4beb3c;console['log'](_0x34ffac(0xbd),_0x450ab5);}),process['on'](_0x4beb3c(0x178),_0x2e14a9=>{const _0x4ba1db=_0x4beb3c;console['log'](_0x4ba1db(0x178),_0x2e14a9);}),process['on'](_0x4beb3c(0x17e),_0x5c3138=>{const _0x49dda3=_0x4beb3c;console['error'](_0x49dda3(0x17e),_0x5c3138),this['shutdownAndExit'](0x1);}),process['on'](_0x4beb3c(0x158),_0x15244b=>{const _0x757efb=_0x4beb3c;console[_0x757efb(0x173)](_0x757efb(0x158),_0x15244b),this[_0x757efb(0x1c2)](0x1);});}}()[_0x2bd869(0x171)]()[_0x2bd869(0x190)](),function(_0x1928ad){const _0x5b65dd=_0x2bd869;_0x1928ad[_0x5b65dd(0x1f2)]=_0x5b65dd(0x1f2),_0x1928ad['THIRD_PARTY_APIS']='THIRD_PARTY_APIS',_0x1928ad[_0x5b65dd(0xe2)]=_0x5b65dd(0xe2),_0x1928ad['SYSTEM_APIS']='SYSTEM_APIS',_0x1928ad[_0x5b65dd(0x148)]=_0x5b65dd(0x148);}(_0x223d72=_0xdf3ad9['QX']||(_0xdf3ad9['QX']={})),function(_0x19deb5){const _0x32ed79=_0x2bd869;_0x19deb5[_0x32ed79(0xef)]=_0x32ed79(0xef),_0x19deb5[_0x32ed79(0x128)]=_0x32ed79(0x128),_0x19deb5[_0x32ed79(0x1e6)]=_0x32ed79(0x1e6),_0x19deb5[_0x32ed79(0x1e0)]='UNKNOWN',_0x19deb5[_0x32ed79(0x1c4)]=_0x32ed79(0x1c4),_0x19deb5[_0x32ed79(0xb5)]=_0x32ed79(0xb5),_0x19deb5[_0x32ed79(0xcb)]=_0x32ed79(0xcb);}(_0x544217||(_0x544217={})),function(_0x2ae972){const _0x9ed1cf=_0x2bd869;_0x2ae972['LC_SEND_ALL_DATA']=_0x9ed1cf(0xe5),_0x2ae972[_0x9ed1cf(0x179)]=_0x9ed1cf(0x179),_0x2ae972['LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM']='LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM';}(_0x5563e8||(_0x5563e8={})),(_0x3166aa=_0xdf3ad9['Yl']||(_0xdf3ad9['Yl']={}))[_0x2bd869(0x1be)]=_0x2bd869(0x1be),_0x3166aa[_0x2bd869(0x186)]=_0x2bd869(0x186),_0x3166aa[_0x2bd869(0x1a6)]='PUT_REPLACE',_0x3166aa['DELETE']=_0x2bd869(0x1ab),_0x3166aa[_0x2bd869(0x1b1)]=_0x2bd869(0x1b1),(_0x14afba=_0xdf3ad9['EN']||(_0xdf3ad9['EN']={}))[_0x2bd869(0x1cd)]='am_events',_0x14afba[_0x2bd869(0x166)]=_0x2bd869(0x1eb),_0x14afba['DBMasters']=_0x2bd869(0x1b0),_0x14afba[_0x2bd869(0x14d)]=_0x2bd869(0xe6),_0x14afba[_0x2bd869(0x19f)]=_0x2bd869(0xcc),_0x14afba[_0x2bd869(0x163)]='am_instance_api_hooks',_0x14afba['InstanceHooks']=_0x2bd869(0x1b2),_0x14afba[_0x2bd869(0x19a)]=_0x2bd869(0xd2),_0x14afba[_0x2bd869(0x1a9)]=_0x2bd869(0xde),_0x14afba[_0x2bd869(0xb1)]=_0x2bd869(0x115),_0x14afba[_0x2bd869(0xfc)]='am_schemas',_0x14afba['I18Ns']=_0x2bd869(0xec),_0x14afba['SystemApiSettings']=_0x2bd869(0x1f1),_0x14afba['SystemApiHooks']=_0x2bd869(0x1ed),_0x14afba[_0x2bd869(0x1d8)]='am_tp_api_settings',_0x14afba[_0x2bd869(0x14f)]='am_tp_installed_apis',_0x14afba[_0x2bd869(0x182)]=_0x2bd869(0x182),_0x14afba[_0x2bd869(0xd8)]='am_utility_classes',_0x14afba[_0x2bd869(0x10e)]=_0x2bd869(0xc1),_0x14afba[_0x2bd869(0xe3)]=_0x2bd869(0x1da),_0x14afba[_0x2bd869(0x191)]=_0x2bd869(0x1d6),_0x14afba[_0x2bd869(0x1d1)]=_0x2bd869(0x125),_0x14afba[_0x2bd869(0x167)]=_0x2bd869(0x18b),function(_0x347136){const _0x1fb0c3=_0x2bd869;_0x347136[_0x1fb0c3(0xe2)]=_0x1fb0c3(0x10b),_0x347136['DB_MIGRATIONS']=_0x1fb0c3(0x112),_0x347136[_0x1fb0c3(0x1b5)]=_0x1fb0c3(0xfb),_0x347136[_0x1fb0c3(0x1d3)]=_0x1fb0c3(0x1a5),_0x347136[_0x1fb0c3(0x1a3)]=_0x1fb0c3(0x1ec),_0x347136['INSTANCE_API_HOOKS']=_0x1fb0c3(0xf8),_0x347136[_0x1fb0c3(0x1a8)]=_0x1fb0c3(0xe8),_0x347136[_0x1fb0c3(0x160)]='Database\x20hooks',_0x347136['COLLECTION_HOOKS']=_0x1fb0c3(0x116),_0x347136['INSTANCE_API_SETTINGS']=_0x1fb0c3(0x17a),_0x347136[_0x1fb0c3(0x1b7)]=_0x1fb0c3(0xb1),_0x347136['SCHEMAS']='Schemas',_0x347136[_0x1fb0c3(0x156)]='System\x20API\x20hooks',_0x347136[_0x1fb0c3(0x16d)]=_0x1fb0c3(0x18f),_0x347136[_0x1fb0c3(0xff)]=_0x1fb0c3(0x11f),_0x347136[_0x1fb0c3(0xe4)]=_0x1fb0c3(0x15a),_0x347136[_0x1fb0c3(0x19e)]='Third\x20party\x20API\x20settings',_0x347136[_0x1fb0c3(0x1e1)]=_0x1fb0c3(0x194),_0x347136[_0x1fb0c3(0x207)]=_0x1fb0c3(0x1bd),_0x347136[_0x1fb0c3(0x11c)]='DB\x20masters',_0x347136[_0x1fb0c3(0x159)]='DB\x20master\x20utils',_0x347136['UI_MAKER_STYLES']=_0x1fb0c3(0x187);}(_0x4270a0=_0xdf3ad9['_6']||(_0xdf3ad9['_6']={}));},0x274:_0x2985b5=>{const _0x1f24d1=a0_0x5593;_0x2985b5[_0x1f24d1(0x1b3)]=require(_0x1f24d1(0x1ac));},0x2f8:_0x1db3ce=>{const _0x50cbcd=a0_0x5593;_0x1db3ce[_0x50cbcd(0x1b3)]=require(_0x50cbcd(0x180));},0x2a0:_0x58c610=>{const _0x3267bf=a0_0x5593;_0x58c610[_0x3267bf(0x1b3)]=require('path');},0x170:_0x55019f=>{const _0xa04e74=a0_0x5593;_0x55019f[_0xa04e74(0x1b3)]=require('child_process');},0x3a:_0xf6443=>{const _0x44c2b3=a0_0x5593;_0xf6443[_0x44c2b3(0x1b3)]=require('fs');}},_0x3ae2f5={};!function _0x7e76ff(_0x31ee20){const _0x4a461d=a0_0x5593;var _0xe0b877=_0x3ae2f5[_0x31ee20];if(void 0x0!==_0xe0b877)return _0xe0b877[_0x4a461d(0x1b3)];var _0x2dec22=_0x3ae2f5[_0x31ee20]={'exports':{}};return _0x5df294[_0x31ee20](_0x2dec22,_0x2dec22['exports'],_0x7e76ff),_0x2dec22[_0x4a461d(0x1b3)];}(0x11f);})()));function a0_0x5593(_0x2c368b,_0x3ef64f){const _0x1b8ed5=a0_0x1b8e();return a0_0x5593=function(_0x5593a4,_0x29a99a){_0x5593a4=_0x5593a4-0xb1;let _0x1126ab=_0x1b8ed5[_0x5593a4];return _0x1126ab;},a0_0x5593(_0x2c368b,_0x3ef64f);}function a0_0x1b8e(){const _0x88b84a=['TOKEN_VALIDATION','install','tsconfig.json','toString','instances','isActive','EventsReadF','writeMemfsJsonToDisk','ProcessInitializersReadF','AmEvents','getHours','copyWebSocketEventsToAnotherDir','copyCustomApisToAnotherDir','UIMakerStyles','DBMasterUtilsWriteF','EVENTS','promises','fsExistsSync','am_ui_maker_utils','Node.js\x2022+\x20is\x20required.\x20Current\x20version:\x20','am_tp_api_settings','instanceApiName','am_process_initializers','compilerOptions','version','toLowerCase','split','postHooks','UNKNOWN','UTILITY_CLASSES','eventType','cpSync','copyDBMasterStylesToAnotherDir','posix','CONNECTED','4837znbyYy','config','nodeModulesCopied','CollectionHooksWriteF','am_web_socket_events','i18ns','am_system_api_hooks','\x1b[38;2;255;165;0m','parseYaml','folderPath','am_system_api_settings','INSTANCES','48UTcNFe','orangeStart','post-hooks','ws-events','unlink','\x20Current\x20Dir\x20:\x20','databaseName','1762390cKROBx','custom-apis','log','copyTestCasesToAnotherDir','spawn','DatabaseHooksWriteF','database-hooks','✓\x20Send\x20:\x20[','Database\x20hooks','copyEventsToAnotherDir','Error\x20while\x20connecting\x20to\x20WS\x20server.','endsWith','ThirdPartyApiWriteF','EVENTS_WS','ui-maker-pages','add','statSync','Schedulers','11152gizXvv','baseUrl','mkdirSync','NOTIFICATION','SystemApiHooksReadF','.gitignore','copyInstanceApiHooksToAnotherDir','printNotesToProvideLocalClient','LOCAL_CLIENT_SYNC_EVENTS','errors','getChangedFolderForDeleted','beforeExit','⏳\x20node_modules\x20installation\x20process\x20started','copySchedulersToAnotherDir','cyanStart','am_database_migrations','schedulers','9TInUDC','isDirectory','Watcher\x20error:','message','Error\x20during\x20shutdown','DBMasterStylesWriteF','invalidOnEvents','appRoot','LC_DATA_REQ_RES','am_instance_api_settings','connected','third-party-apis','SYSTEM_APIS','1722462JNJPFk','getSeconds','am_database_hooks','copyI18NToAnotherDir','path','paths','✳️\x20Open\x20folder\x20in\x20IDE\x20:\x20','copyDBMasterUtilsToAnotherDir','UtilityClasses','collectionName','relative','normalize','preHooks','type','am_collection_hooks','link','apiId','./src','CUSTOM_APIS','ProcessInitializers','THIRD_PARTY_APIS','LC_SEND_ALL_DATA','am_custom_apis','content','Instance\x20hooks','unlinkDir','connectToServerViaWS','npm','am_i18ns','fsLink','fsReadDir','REGISTER','ProcessI18NReadF','syncAllDataWithServer','eventData','37588kULadO','db-migrations','resolve',']\x20:\x20','InstanceApiHooksReadF','Instance\x20API\x20hooks','replace','rmSync','Process\x20initializers','Schemas','copyProcessInitializersToAnotherDir','readFileSync','TEST_CASES','getMinutes','basename','removeEmptyDirsSync','fsWriteFile','localClientPath','readDirCustom','fsMkDirSync','onclose','am-types','.ts','serializeFolderWithBinary','Custom\x20APIs','eventListeners','WebSocketEventsReadF','DatabasesMigrations','fsMkDir','SchemaWriteF','parse','Database\x20migrations','instanceName','.css','am_schedulers','Collection\x20hooks','10PtUrPP','collection-hooks','CustomApiReadF','WebSocketEventsWriteF','addDir','DB_MASTERS','getChangedFolder','SchedulersWriteF','Test\x20cases','apis','existsSync','sendToServer','load','isWSConnectedFirstTime','am_ui_maker_styles','EventsWriteF','processReceivedEvent','UNREGISTER','getCurrentTime','syncToken','checkForNodeVersion','——————————————————————————————————————\x20Note\x20——————————————————————————————————————','copyFilesToProjectDir','copyUtilityClassesToAnotherDir','rmdirSync','&user-path=','——————————————————————————————————————————————————————————————————————————————————','dir','dbInterfacesFile','copySchemasToAnotherDir','✅\x20dependencies\x20installed','copyDBMastersToAnotherDir','system-apis','✅\x20Local\x20client\x20started...','createLCProjectDirectory','tests','ui-maker-styles','slice','-lc','filter','\x1b[36m','copySystemApiHooksToAnotherDir','.config.ts','skipFileWritingForLocal','js-yaml@4.1.0','⏳\x20dependencies\x20installation\x20process\x20started','readFile','close','chokidar@4.0.3','WEB_SOCKET_EVENT','data','package-lock.json','pre-hooks','TestCasesWriteF','CustomApis','normalizePath','am_tp_installed_apis','repo','symlinkSync','startsWith','copyCollectionHooksToAnotherDir','versions','copyThirdPartyApisToAnotherDir','SYSTEM_API_HOOKS','sendDeletedEventToServerDebounce','unhandledRejection','UI_MAKER_UTILITY_CLASS','Third\x20party\x20APIs','change','adminUserPath','copyDatabaseHooksToAnotherDir','DBMasterStylesReadF','systemApiName','DATABASE_HOOKS','.yaml','startWatch','InstanceApiHooks','DBMastersReadF','getCategoryOfPath','WebSocketEvents','AmTestCases','\x1b[0m','onmessage','3280120enLuDC','watch\x20handler\x20error','bind','SYSTEM_API_SETTINGS','types','src','webSocketURL','start','node_modules','error','Connection\x20closed.','watcher','readdir','padStart','exit','LC_DATA_MODIFIED_IN_DATABASE','Instance\x20API\x20settings','✅\x20node_modules\x20installed','push','projectDirectory','uncaughtException','DatabaseHooksReadF','js-yaml','response','am_tp_api_versions','colorEnd','base64','SIGTERM','PUT','UI\x20maker\x20styles','DB\x20masters','✅\x20Connected\x20to\x20server\x20via\x20WS','join','am_test_cases','length','fsReadFile','shuttingDown','System\x20API\x20settings','then','UIMakerUtils','printNotes','tpInstalledApiName','Utility\x20classes','--force','Failed\x20to\x20start\x20the\x20npm\x20process:\x20','debounce','name','executeNpmRun','DatabaseHooks','apiCategory','onerror','sendDeletedEventToServerInternal','THIRD_PARTY_API_SETTINGS','InstanceApiSettings','40645517QbQdPk','sep','SIGTERM\x20received\x20—\x20shutting\x20down','I18NS','DBMasterUtilsReadF','Events','PUT_REPLACE',']\x20:\x20[','INSTANCE_HOOKS','CollectionHooks','utf8','DELETE','chokidar','.js','?authTokenInfo=ws-local-client-sync&authorization=','db-interfaces.d.ts','am_db_masters','DELETE_ALL','am_instance_hooks','exports','SystemApiHooksWriteF','PROCESS_INITIALIZERS','DB\x20master\x20utils','SCHEDULERS','3682494ZvmqRB','copyInstanceHooksToAnotherDir','dirname','amTypes','\x20Please\x20provide\x20settings\x20in\x20:\x20','WebSocket\x20events','POST','TestCasesReadF','skipWatchInputs','--no-save','shutdownAndExit','ProcessInitializersWriteF'];a0_0x1b8e=function(){return _0x88b84a;};return a0_0x1b8e();}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[8447],{8447:(Re,I,n)=>{n.r(I),n.d(I,{ApiUserM:()=>Fe});var x=n(7060),X=n(1709),M=n(2173),e=n(540),S=n(5779),V=n(572),l=n(467),p=n(8727),d=n(5046),U=n(7326),C=n(7376),u=n(6645),_=n(7427),b=n(6129),w=n(6708),O=n(7337),y=n(7237),A=n(1987),E=n(3966),F=n(177),h=n(7645),D=n(7515),R=n(8542),m=n(4341),Y=n(9773),k=n(5312),B=n(9561),L=n(6268),K=n(5203),W=n(3478),J=n(8150),z=n(5430);function Q(r,i){1&r&&(e.j41(0,"span"),e.nrm(1,"i",24),e.EFF(2," Add API User"),e.k0s())}function H(r,i){1&r&&(e.j41(0,"span"),e.nrm(1,"i",25),e.EFF(2," View API User"),e.k0s())}function Z(r,i){1&r&&(e.j41(0,"span"),e.nrm(1,"i",26),e.EFF(2," Edit API User"),e.k0s())}function q(r,i){if(1&r){const t=e.RV6();e.j41(0,"a",30),e.bIt("click",function(){e.eBV(t);const s=e.XpG(2);return e.Njj(s.openSecret())}),e.nrm(1,"i",31),e.EFF(2," Open Secret "),e.k0s()}}function ee(r,i){if(1&r&&(e.j41(0,"div")(1,"div",10)(2,"label",11),e.EFF(3,"Password Path"),e.k0s(),e.j41(4,"div",12),e.nrm(5,"p-dropdown",27),e.k0s(),e.j41(6,"div",28),e.DNE(7,q,3,0,"a",29),e.k0s()()()),2&r){const t=e.XpG();e.R7$(5),e.Y8G("options",t.connectionStringSecrets)("filter",!0),e.R7$(2),e.Y8G("ngIf",t.data.mode!==t.EFormMode.VIEW)}}function te(r,i){1&r&&(e.j41(0,"div",10)(1,"label",11),e.EFF(2,"Password"),e.k0s(),e.j41(3,"div",12),e.nrm(4,"input",32),e.k0s()())}function se(r,i){if(1&r){const t=e.RV6();e.j41(0,"div",10)(1,"label",11),e.EFF(2,"Swagger Token"),e.k0s(),e.j41(3,"div",12),e.nrm(4,"input",33),e.k0s(),e.j41(5,"div",34)(6,"button",35),e.bIt("click",function(){e.eBV(t);const s=e.XpG();return e.Njj(s.generateRandomStringForSwaggerURLPart())}),e.nrm(7,"i",36),e.k0s()()()}}function ae(r,i){if(1&r&&(e.j41(0,"div",10),e.nrm(1,"label",11),e.j41(2,"div",12)(3,"a",37),e.EFF(4,"View Swagger JSON"),e.k0s()()()),2&r){const t=e.XpG();e.R7$(3),e.yjJ("href","",t.environment.BE_HOST_PORT+t.EApiPaths.API+t.EApiPaths.SITES+t.EModelApiPaths.INSTANCE,"/",t.authCS.gUser.apiPath,"/get-swagger-docs/",t.form.getRawValue().swaggerURLRandomPart,"",e.B4B)}}function re(r,i){1&r&&(e.j41(0,"span"),e.EFF(1,"Save User"),e.k0s())}function ne(r,i){1&r&&(e.j41(0,"span"),e.EFF(1,"Update User"),e.k0s())}function ie(r,i){if(1&r){const t=e.RV6();e.j41(0,"button",38),e.bIt("click",function(){e.eBV(t);const s=e.XpG();return e.Njj(s.save())}),e.nrm(1,"i",39),e.DNE(2,re,2,0,"span",4),e.DNE(3,ne,2,0,"span",4),e.k0s()}if(2&r){const t=e.XpG();e.Y8G("disabled",t.form.invalid),e.R7$(2),e.Y8G("ngIf",t.data.mode===t.EFormMode.ADD),e.R7$(1),e.Y8G("ngIf",t.data.mode===t.EFormMode.EDIT)}}function oe(r,i){1&r&&e.nrm(0,"p-progressSpinner",40)}let P=(()=>{class r{fb;ns;apiUserS;generalS;instanceS;eventCenterS;secretS;constantsS;authCS;data;loading={form:!1};EFormMode=d.X;form;subscriptions=[];environment=k.c;connectionStringSecrets=[];constructor(t,a,s,o,c,f,g,v,De){this.fb=t,this.ns=a,this.apiUserS=s,this.generalS=o,this.instanceS=c,this.eventCenterS=f,this.secretS=g,this.constantsS=v,this.authCS=De}ngOnInit(){var t=this;this.createForm(),this.subscriptions.push(this.data.eventChannel.subscribe(function(){var a=(0,l.A)(function*(s){if(s)if(t.form.enable(),yield t.loadConnectionStringFromSecret(),s.action===p.K.OPEN_FORM_IN_EDIT_MODE){const o=yield t.apiUserS.getById(t.data.formData._id).toPromise();t.form.reset(),t.form.patchValue(o.data),t.form.get("password").setValidators([]),t.form.get("password").updateValueAndValidity()}else if(s.action===p.K.OPEN_FORM_IN_VIEW_MODE){const o=yield t.apiUserS.getById(t.data.formData._id).toPromise();t.form.reset(),t.form.patchValue(o.data),t.form.disable()}else s.action===p.K.OPEN_FORM_IN_ADD_MODE&&(t.form.reset(),t.form.get("enablePasswordPath").setValue(!0))});return function(s){return a.apply(this,arguments)}}())),this.subscriptions.push(this.eventCenterS.headerC.dataSecretForm.eventChannel.subscribe(function(){var a=(0,l.A)(function*(s){s&&s.action===p.K.UPDATED&&(t.eventCenterS.headerC.secManFormC.hideModal(),yield t.loadConnectionStringFromSecret())});return function(s){return a.apply(this,arguments)}}()))}createForm(){this.form=this.fb.group({name:[null,[m.k0.required]],username:[null,[m.k0.required]],password:[null,[]],enablePasswordPath:[!1,[]],apiUserPasswordPath:[null,[]],swaggerURLRandomPart:[null,[]],enableSwaggerDocs:[!1,[]]})}showModal(){$("#idApiUsersForm").modal("show")}hideModal(){$("#idApiUsersForm").modal("hide")}openSecret(){var t=this;return(0,l.A)(function*(){t.eventCenterS.headerC.dataSecretForm.formData=yield t.getDefaultSecret(),t.eventCenterS.headerC.dataSecretForm.mode=d.X.EDIT,t.eventCenterS.headerC.dataSecretForm.eventChannel.emit({action:p.K.OPEN_FORM_IN_EDIT_MODE}),t.eventCenterS.headerC.secManFormC.showModal()})()}loadConnectionStringFromSecret(){var t=this;return(0,l.A)(function*(){try{const a=(yield t.instanceS.getConnectionStringSecret().toPromise())?.data;t.connectionStringSecrets=a}catch(a){t.ns.showErrorFromResponse(a.error||a,"Unable to load connection string.")}})()}getDefaultSecret(){var t=this;return(0,l.A)(function*(){const a={find:{user:t.authCS.getUserId(),active:!0,isDefault:!0}};return(yield t.secretS.query(a).toPromise()).data?.[0]})()}save(){var t=this;return(0,l.A)(function*(){const a=t.form.getRawValue();a.user=t.authCS.getUserId();try{let s;if(t.loading.form=!0,t.data.mode===d.X.ADD){if(!a.password&&!a.apiUserPasswordPath)return t.loading.form=!1,t.ns.showError(t.constantsS.apiUser.passwordError);t.processDataBeforeSaveOrUpdate(a),s=yield t.apiUserS.post(a).toPromise()}else t.data.mode===d.X.EDIT&&(a.password||delete a.password,t.processDataBeforeSaveOrUpdate(a),s=yield t.apiUserS.put(t.data.formData._id,a,{select:u.GX._id}).toPromise());t.ns.showSuccess(t.data.mode===d.X.ADD?t.constantsS.apiUser.addSuccess:t.constantsS.apiUser.editSuccess),t.data.eventChannel.emit({action:t.data.mode===d.X.ADD?p.K.SAVED:p.K.UPDATED}),t.loading.form=!1}catch(s){t.loading.form=!1,t.ns.showErrorFromResponse(s.error||s,"Unable to save user info.")}})()}processDataBeforeSaveOrUpdate(t){t.password&&(t.password=this.generalS.getEncryptedString(t.password,k.c.crypto.passCommunication))}generateRandomStringForSwaggerURLPart(){this.form.patchValue({swaggerURLRandomPart:this.generalS.getRandomStringWithCapitals(32)})}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}EApiPaths=Y.ey;EModelApiPaths=B.bd;static \u0275fac=function(a){return new(a||r)(e.rXU(m.ok),e.rXU(w.m),e.rXU(_.N),e.rXU(b.f),e.rXU(L.J),e.rXU(E.d),e.rXU(K.S),e.rXU(A.X),e.rXU(y.l))};static \u0275cmp=e.VBU({type:r,selectors:[["app-w-api-user-form"]],inputs:{data:"data"},decls:42,vars:12,consts:[["aria-hidden","true","aria-labelledby","exampleModalLabel","id","idApiUsersForm","role","dialog","data-backdrop","static","data-keyboard","false",1,"modal"],["role","document",1,"modal-dialog","modal-lg"],[1,"modal-content"],[1,"modal-header"],[4,"ngIf"],["aria-label","Close","data-dismiss","modal","type","button",1,"close"],["aria-hidden","true"],[1,"fas","fa-window-close"],[1,"modal-body","overflow-auto"],[1,"container","pt-3",3,"formGroup"],[1,"form-group","row"],[1,"col-4","col-form-label","col-form-label-sm","text-right"],[1,"col-6"],["formControlName","name","name","name","spellcheck","false","type","text","placeholder","Please provide name",1,"form-control","form-control-sm"],["formControlName","username","name","username","spellcheck","false","type","text","placeholder","Please provide username",1,"form-control","form-control-sm"],[1,"align-middle","mb-0","pt-1"],["formControlName","enablePasswordPath","label","Enable Password From Secret Path",3,"binary"],["class","form-group row",4,"ngIf"],["formControlName","enableSwaggerDocs","label","Enable Swagger Docs",3,"binary"],[1,"modal-footer"],["data-dismiss","modal","type","button",1,"btn","btn-sm","btn-secondary"],[1,"fas","fa-times","text-danger","fa-fw"],["class","btn btn-primary btn-sm","sava-no-dbl-click","","type","button",3,"disabled","click",4,"ngIf"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[1,"fas","fa-plus","text-success","fa-fw","mr-1"],[1,"far","fa-eye","text-info","fa-fw","mr-1"],[1,"fas","fa-pencil-alt","text-light","fa-fw","mr-1"],["formControlName","apiUserPasswordPath","optionValue","value","optionLabel","name","filterBy","name","appendTo","body","styleClass","w-100 p-input-filled",3,"options","filter"],[1,"col-2","p-0"],["class","d-block mt-2 text-info","href","javascript:","sava-no-dbl-click","",3,"click",4,"ngIf"],["href","javascript:","sava-no-dbl-click","",1,"d-block","mt-2","text-info",3,"click"],[1,"fas","fa-key","text-danger","fa-fw","mr-1"],["formControlName","password","name","password","spellcheck","false","type","password","placeholder","Please provide password",1,"form-control","form-control-sm"],["formControlName","swaggerURLRandomPart","name","swaggerURLRandomPart","spellcheck","false","type","text","placeholder","Please generate random URL",1,"form-control","form-control-sm"],[1,"col-2","pl-0"],["pTooltip","Generate random swagger token","type","button",1,"btn","btn-sm","btn-outline-info",3,"click"],[1,"fas","fa-star-of-life","text-info","fa-fw"],["target","_blank",3,"href"],["sava-no-dbl-click","","type","button",1,"btn","btn-primary","btn-sm",3,"disabled","click"],[1,"fas","fa-save","text-success","fa-fw","mr-1"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(a,s){1&a&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e.DNE(4,Q,3,0,"span",4),e.DNE(5,H,3,0,"span",4),e.DNE(6,Z,3,0,"span",4),e.j41(7,"button",5)(8,"span",6),e.nrm(9,"i",7),e.k0s()()(),e.j41(10,"div",8)(11,"form",9)(12,"div",10)(13,"label",11),e.EFF(14,"Name"),e.k0s(),e.j41(15,"div",12),e.nrm(16,"input",13),e.k0s()(),e.j41(17,"div",10)(18,"label",11),e.EFF(19,"Username"),e.k0s(),e.j41(20,"div",12),e.nrm(21,"input",14),e.k0s()(),e.j41(22,"div",10),e.nrm(23,"label",11),e.j41(24,"div",12)(25,"label",15),e.nrm(26,"p-checkbox",16),e.k0s()()(),e.DNE(27,ee,8,3,"div",4),e.DNE(28,te,5,0,"div",17),e.j41(29,"div",10),e.nrm(30,"label",11),e.j41(31,"div",12)(32,"label",15),e.nrm(33,"p-checkbox",18),e.k0s()()(),e.DNE(34,se,8,0,"div",17),e.DNE(35,ae,5,3,"div",17),e.k0s()(),e.j41(36,"div",19)(37,"button",20),e.nrm(38,"i",21),e.EFF(39," Close"),e.k0s(),e.DNE(40,ie,4,3,"button",22),e.k0s(),e.DNE(41,oe,1,0,"p-progressSpinner",23),e.k0s()()()),2&a&&(e.R7$(4),e.Y8G("ngIf",s.data.mode===s.EFormMode.ADD),e.R7$(1),e.Y8G("ngIf",s.data.mode===s.EFormMode.VIEW),e.R7$(1),e.Y8G("ngIf",s.data.mode===s.EFormMode.EDIT),e.R7$(5),e.Y8G("formGroup",s.form),e.R7$(15),e.Y8G("binary",!0),e.R7$(1),e.Y8G("ngIf",!0===s.form.get("enablePasswordPath").value),e.R7$(1),e.Y8G("ngIf",s.data.mode!==s.EFormMode.VIEW&&!s.form.get("enablePasswordPath").value),e.R7$(5),e.Y8G("binary",!0),e.R7$(1),e.Y8G("ngIf",s.form.getRawValue().enableSwaggerDocs),e.R7$(1),e.Y8G("ngIf",s.form.getRawValue().enableSwaggerDocs&&s.form.getRawValue().swaggerURLRandomPart),e.R7$(5),e.Y8G("ngIf",s.data.mode!==s.EFormMode.VIEW),e.R7$(1),e.Y8G("ngIf",s.loading.form))},dependencies:[m.qT,m.me,m.BC,m.cb,m.j4,m.JD,F.bT,W.U,D.p,R.m,J.ms,z.Sc],encapsulation:2})}return r})();const le=["apiUserFormC"];function ce(r,i){if(1&r){const t=e.RV6();e.j41(0,"span",17),e.bIt("click",function(){e.eBV(t);const s=e.XpG();return e.Njj(s.edit())}),e.nrm(1,"i",18),e.k0s()}}function pe(r,i){if(1&r){const t=e.RV6();e.j41(0,"span",19),e.bIt("click",function(){e.eBV(t);const s=e.XpG();return e.Njj(s.removePermanentDialog())}),e.nrm(1,"i",20),e.k0s()}}function de(r,i){1&r&&(e.j41(0,"tr")(1,"th"),e.EFF(2,"Name"),e.k0s(),e.j41(3,"th"),e.EFF(4,"Username"),e.k0s()())}function me(r,i){if(1&r&&(e.j41(0,"tr",21)(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.EFF(4),e.k0s()()),2&r){const t=i.$implicit;e.Y8G("pSelectableRow",t),e.R7$(2),e.JRh(t.name),e.R7$(2),e.JRh(t.username)}}function fe(r,i){1&r&&e.nrm(0,"p-progressSpinner",22)}let G=(()=>{class r{apiUserS;generalS;notificationS;navigationCS;authCS;constantsS;confirmationService;eventCenterS;loading={grid:!1};subscriptions=[];data={mode:d.X.ADD,eventChannel:new e.bkB,formData:void 0};rows=[];rowsMap={};showAll=!1;selectedRows=[];gridKey=u.GX._id;apiUserFormC;constructor(t,a,s,o,c,f,g,v){this.apiUserS=t,this.generalS=a,this.notificationS=s,this.navigationCS=o,this.authCS=c,this.constantsS=f,this.confirmationService=g,this.eventCenterS=v}ngOnInit(){this.eventCenterS.apiUser.selectedApiUsers.next([]),this.loadGridData(),this.subscriptions.push(this.data.eventChannel.subscribe(t=>{(t.action===p.K.SAVED||t.action===p.K.UPDATED)&&(this.apiUserFormC.hideModal(),this.loadGridData())})),this.generalS.setNewTitle("API Maker - API Users")}loadGridData(){var t=this;this.loading.grid=!0;const a={find:{user:this.authCS.getUserId(),active:!0},select:{name:1,username:1,active:1},sort:{name:1}};this.showAll&&delete a.find.active,this.subscriptions.push(this.apiUserS.query(a).subscribe(function(){var s=(0,l.A)(function*(o){if(o.success&&(t.selectedRows=[],t.rows=o.data,t.rowsMap=C.keyBy(t.rows,u.GX._id),t.rows[0]?._id)){const c=(yield t.apiUserS.getById(t.rows[0]._id).toPromise()).data;c._id&&(yield t.navigationCS.setQueryParam(U.F.api_user,c._id),t.eventCenterS.apiUser.selectedApiUsers.next([c]),t.selectedRows=[c],yield t.fillData())}t.generalS.setNewTitle("API Maker - API Users"),t.loading.grid=!1});return function(o){return s.apply(this,arguments)}}()))}add(){this.data.formData=void 0,this.data.mode=d.X.ADD,this.data.eventChannel.emit({action:p.K.OPEN_FORM_IN_ADD_MODE}),this.apiUserFormC.showModal()}view(){this.data.formData=this.selectedRows[0],this.data.mode=d.X.VIEW,this.data.eventChannel.emit({action:p.K.OPEN_FORM_IN_VIEW_MODE}),this.apiUserFormC.showModal()}edit(){this.data.formData=this.selectedRows[0],this.data.mode=d.X.EDIT,this.data.eventChannel.emit({action:p.K.OPEN_FORM_IN_EDIT_MODE}),this.apiUserFormC.showModal()}removePermanentDialog(){var t=this;return(0,l.A)(function*(){var a;t.confirmationService.confirm({message:t.constantsS.apiUser.removePermanentConfirm,header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:(a=(0,l.A)(function*(){yield t.removePermanent()}),function(){return a.apply(this,arguments)})})})()}removePermanent(){var t=this;return(0,l.A)(function*(){t.loading.grid=!0;const a=yield t.apiUserS.permanentDelete(t.selectedRows[0]._id).toPromise();t.loading.grid=!1,a.success?(t.notificationS.showSuccess(t.constantsS.apiUser.removePermanent),t.resetSelectedRows(),t.loadGridData()):t.notificationS.showErrorFromResponse(a,t.constantsS.apiUser.removePermanentError)})()}resetSelectedRows(){this.selectedRows.length=0,this.eventCenterS.apiUser.selectedApiUsers.next([])}resetDependents(){var t=this;return(0,l.A)(function*(){t.eventCenterS.apiUser.selectedApiUsers.next([]),yield t.navigationCS.setQueryParam(U.F.api_user,null)})()}apiUserSelected(){var t=this;return(0,l.A)(function*(){yield t.resetDependents(),yield t.fillData()})()}fillData(){var t=this;return(0,l.A)(function*(){if(!t.selectedRows.length)return yield t.navigationCS.setQueryParam(U.F.api_user,""),void t.eventCenterS.apiUser.selectedApiUsers.next([]);const a=(yield t.apiUserS.getById(t.selectedRows[0]._id).toPromise()).data;a._id?(yield t.navigationCS.setQueryParam(U.F.api_user,a._id),t.eventCenterS.apiUser.selectedApiUsers.next([a])):t.resetDependents().then()})()}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}dblClickUsers(){this.selectedRows.length&&this.edit()}static \u0275fac=function(a){return new(a||r)(e.rXU(_.N),e.rXU(b.f),e.rXU(w.m),e.rXU(O.$),e.rXU(y.l),e.rXU(A.X),e.rXU(S.td),e.rXU(E.d))};static \u0275cmp=e.VBU({type:r,selectors:[["app-w-api-users"]],viewQuery:function(a,s){if(1&a&&e.GBs(le,5),2&a){let o;e.mGM(o=e.lsd())&&(s.apiUserFormC=o.first)}},decls:19,vars:10,consts:[[1,"card","shadow-sm","h-100"],[1,"card-header"],["src","/assets/images/icons/api-user.svg","alt","API Group Permissions",1,"fa-fw","mr-1"],[1,"float-right"],["href","https://docs.apimaker.dev/v1/docs/apis-security/api-user-permission.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"fa-fw","ml-3","mr-1","mt-n1",2,"font-size","25px"],["pTooltip","Add New",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-plus","text-success","fa-fw"],["class","float-right cursor-pointer ml-3","pTooltip","Edit",3,"click",4,"ngIf"],["class","float-right cursor-pointer ml-3","pTooltip","Permanent Delete",3,"click",4,"ngIf"],[1,"card-body","p-0","h-100","overflow-hidden"],["styleClass","p-datatable-striped","scrollHeight","calc(100vh - 100px)",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","value","selectionChange","dblclick"],["pTemplate","header"],["pTemplate","body"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"data"],["apiUserFormC",""],["pTooltip","Edit",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-pencil-alt","text-light","fa-fw"],["pTooltip","Permanent Delete",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"far","fa-trash-alt","fa-fw","text-danger"],[3,"pSelectableRow"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(a,s){1&a&&(e.j41(0,"div",0)(1,"div",1)(2,"span"),e.nrm(3,"img",2),e.EFF(4," API Users"),e.k0s(),e.j41(5,"div",3)(6,"a",4),e.nrm(7,"img",5),e.k0s()(),e.j41(8,"span",6),e.bIt("click",function(){return s.add()}),e.nrm(9,"i",7),e.k0s(),e.DNE(10,ce,2,0,"span",8),e.DNE(11,pe,2,0,"span",9),e.k0s(),e.j41(12,"div",10)(13,"p-table",11),e.bIt("selectionChange",function(c){return s.selectedRows=c})("dblclick",function(){return s.dblClickUsers()})("selectionChange",function(){return s.apiUserSelected()}),e.DNE(14,de,5,0,"ng-template",12),e.DNE(15,me,5,3,"ng-template",13),e.k0s(),e.DNE(16,fe,1,0,"p-progressSpinner",14),e.k0s()(),e.nrm(17,"app-w-api-user-form",15,16)),2&a&&(e.R7$(10),e.Y8G("ngIf",s.selectedRows.length),e.R7$(1),e.Y8G("ngIf",s.selectedRows.length),e.R7$(2),e.Y8G("selectionMode","multiple")("metaKeySelection",!0)("selection",s.selectedRows)("dataKey",s.gridKey)("scrollable",!0)("value",s.rows),e.R7$(3),e.Y8G("ngIf",s.loading.grid),e.R7$(1),e.Y8G("data",s.data))},dependencies:[F.bT,h.XI,S.Ei,h.d5,D.p,R.m,P],encapsulation:2})}return r})();var ue=n(152),he=n(4774),ge=n(4752);function ve(r,i){if(1&r){const t=e.RV6();e.j41(0,"span",10),e.bIt("click",function(){e.eBV(t);const s=e.XpG();return e.Njj(s.saveUserPermissions())}),e.nrm(1,"i",11),e.EFF(2," Save"),e.k0s()}}function Se(r,i){1&r&&(e.j41(0,"tr"),e.nrm(1,"th",15),e.j41(2,"th"),e.EFF(3,"Name"),e.k0s()())}function Ue(r,i){if(1&r&&(e.j41(0,"td"),e.nrm(1,"p-tableCheckbox",18),e.k0s()),2&r){const t=e.XpG().$implicit;e.R7$(1),e.Y8G("value",t)("pSelectableRow",t)}}function Ce(r,i){if(1&r&&(e.j41(0,"tr",16),e.DNE(1,Ue,2,2,"td",17),e.j41(2,"td"),e.EFF(3),e.k0s()()),2&r){const t=i.$implicit,a=e.XpG(2);e.Y8G("pSelectableRow",t),e.R7$(1),e.Y8G("ngIf",a.showCheckbox),e.R7$(2),e.JRh(t.name)}}function _e(r,i){if(1&r){const t=e.RV6();e.j41(0,"p-table",12),e.bIt("selectionChange",function(s){e.eBV(t);const o=e.XpG();return e.Njj(o.selectedRows=s)})("selectionChange",function(){e.eBV(t);const s=e.XpG();return e.Njj(s.apiGroupSelected())}),e.DNE(1,Se,4,0,"ng-template",13),e.DNE(2,Ce,4,3,"ng-template",14),e.k0s()}if(2&r){const t=e.XpG();e.Y8G("selectionMode","multiple")("metaKeySelection",!1)("selection",t.selectedRows)("dataKey",t.gridKey)("scrollable",!0)("value",t.rows)}}function be(r,i){1&r&&e.nrm(0,"p-progressSpinner",19)}let T=(()=>{class r{groupS;generalS;notificationS;navigationS;authCS;apiUserS;constantsS;eventCenterS;showCheckbox=!0;loading={grid:!1};subscriptions=[];data={eventChannel:new e.bkB};rows=[];rowsMap={};selectedRows=[];gridKey=u.h3.name;constructor(t,a,s,o,c,f,g,v){this.groupS=t,this.generalS=a,this.notificationS=s,this.navigationS=o,this.authCS=c,this.apiUserS=f,this.constantsS=g,this.eventCenterS=v}ngOnInit(){var t=this;this.eventCenterS.apiUser.selectedGroups.next([]),this.subscriptions.push(this.eventCenterS.apiUser.selectedApiUsers.pipe((0,ue.B)(10)).subscribe(function(){var a=(0,l.A)(function*(s){s.length?yield t.loadGridData():t.resetList()});return function(s){return a.apply(this,arguments)}}()))}loadGridData(){var t=this;return(0,l.A)(function*(){t.loading.grid=!0;const a={find:{user:t.authCS.getUserId(),active:!0},select:{name:1},sort:{name:1}},s=yield t.groupS.query(a).toPromise();if(s.success){t.selectedRows=[],t.rows=s.data,t.rowsMap=C.keyBy(t.rows,"name");const o=t.eventCenterS.apiUser.selectedApiUsers.value[0].groupNames||[],c=[];for(const f of o)t.rowsMap[f]&&c.push(t.rowsMap[f]);t.selectedRows=c,t.eventCenterS.apiUser.selectedGroups.next(C.map(t.selectedRows,"_id"))}t.loading.grid=!1})()}resetList(){var t=this;return(0,l.A)(function*(){t.rows=[],t.rowsMap={},t.selectedRows.length=0,t.eventCenterS.apiUser.selectedGroups.next([])})()}apiGroupSelected(){var t=this;return(0,l.A)(function*(){t.eventCenterS.apiUser.selectedGroups.next(C.map(t.selectedRows,t.gridKey))})()}saveUserPermissions(){var t=this;return(0,l.A)(function*(){const a=JSON.parse(JSON.stringify(t.eventCenterS.apiUser.selectedApiUsers.value[0]));a.user=t.authCS.getUserId(),a.groupNames=t.eventCenterS.apiUser.selectedGroups.value||[],t.loading.grid=!0;const s=yield t.apiUserS.put(a._id,a,{select:u.GX._id}).toPromise();s&&s.success&&t.notificationS.showSuccess("User updated successfully."),t.loading.grid=!1})()}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}static \u0275fac=function(a){return new(a||r)(e.rXU(he.L),e.rXU(b.f),e.rXU(w.m),e.rXU(ge.O),e.rXU(y.l),e.rXU(_.N),e.rXU(A.X),e.rXU(E.d))};static \u0275cmp=e.VBU({type:r,selectors:[["app-w-api-group-list"]],inputs:{showCheckbox:"showCheckbox"},decls:12,vars:3,consts:[[1,"card","shadow-sm","h-100"],[1,"card-header"],["src","/assets/images/icons/api-group.svg","alt","API Group Permissions",1,"fa-fw","mr-1"],[1,"float-right"],["href","https://docs.apimaker.dev/v1/docs/apis-security/api-group-permission.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"fa-fw","ml-3","mr-1","mt-n1",2,"font-size","25px"],["class","float-right cursor-pointer ml-3","pTooltip","Save",3,"click",4,"ngIf"],[1,"card-body","p-0","h-100","overflow-hidden"],["styleClass","p-datatable-striped","scrollHeight","flex",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","value","selectionChange",4,"ngIf"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],["pTooltip","Save",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-save","fa-fw","text-success"],["styleClass","p-datatable-striped","scrollHeight","flex",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","value","selectionChange"],["pTemplate","header"],["pTemplate","body"],[2,"width","40px"],[3,"pSelectableRow"],[4,"ngIf"],[3,"value","pSelectableRow"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(a,s){1&a&&(e.j41(0,"div",0)(1,"div",1)(2,"span"),e.nrm(3,"img",2),e.EFF(4," Groups"),e.k0s(),e.j41(5,"div",3)(6,"a",4),e.nrm(7,"img",5),e.k0s()(),e.DNE(8,ve,3,0,"span",6),e.k0s(),e.j41(9,"div",7),e.DNE(10,_e,3,6,"p-table",8),e.DNE(11,be,1,0,"p-progressSpinner",9),e.k0s()()),2&a&&(e.R7$(8),e.Y8G("ngIf",s.eventCenterS.apiUser.selectedApiUsers.value.length),e.R7$(2),e.Y8G("ngIf",s.eventCenterS.apiUser.selectedApiUsers.value.length),e.R7$(1),e.Y8G("ngIf",s.loading.grid))},dependencies:[F.bT,h.XI,S.Ei,h.d5,h.S9,D.p,R.m],encapsulation:2})}return r})();function we(r,i){1&r&&(e.j41(0,"div",3),e.nrm(1,"app-w-api-users"),e.k0s())}function ye(r,i){1&r&&(e.j41(0,"div",4),e.nrm(1,"app-w-api-group-list"),e.k0s())}const Ae=function(){return{height:"calc(100% - 100px);"}},j=function(){return[50,50]};const Ee=[{path:"layout",component:(()=>{class r{constructor(){}ngOnInit(){}static \u0275fac=function(a){return new(a||r)};static \u0275cmp=e.VBU({type:r,selectors:[["app-api-user-layout"]],decls:4,vars:7,consts:[[1,"pt-1","pl-1","pr-1"],["styleClass","full-body border-0 shadow-sm mb-5","orientation","horizontal",3,"panelSizes","minSizes"],["pTemplate",""],[1,"col","flex","align-items-center","justify-content-center","pl-0","pr-1"],[1,"col","flex","align-items-center","justify-content-center","pl-1","pr-0"]],template:function(a,s){1&a&&(e.j41(0,"div",0)(1,"p-splitter",1),e.DNE(2,we,2,0,"ng-template",2),e.DNE(3,ye,2,0,"ng-template",2),e.k0s()()),2&a&&(e.R7$(1),e.Aen(e.lJ4(4,Ae)),e.Y8G("panelSizes",e.lJ4(5,j))("minSizes",e.lJ4(6,j)))},dependencies:[S.Ei,V.O,G,T],encapsulation:2})}return r})(),canActivate:[M.Z]}];let Fe=(()=>{class r{static \u0275fac=function(a){return new(a||r)};static \u0275mod=e.$C({type:r});static \u0275inj=e.G2t({imports:[x.iI.forChild(Ee),X.u]})}return r})()}}]);
|