@opengis/fcore 0.0.1-beta.2 → 0.0.1-beta.4

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.
Files changed (93) hide show
  1. package/dist/config.js +1 -1
  2. package/dist/context.js +1 -1
  3. package/dist/errors.js +1 -1
  4. package/dist/fastify.d.ts +4 -5
  5. package/dist/fastify.d.ts.map +1 -1
  6. package/dist/fastify.js +1 -1
  7. package/dist/fcore.js +1 -1
  8. package/dist/index.js +1 -1
  9. package/dist/migrations/cli.js +1 -1
  10. package/dist/migrations/runner.js +1 -1
  11. package/dist/modules/auth/index.js +1 -1
  12. package/dist/modules/auth/route.js +1 -1
  13. package/dist/modules/auth/schema.js +1 -1
  14. package/dist/modules/auth/services/get-current-user.js +1 -1
  15. package/dist/modules/auth/services/login.js +1 -1
  16. package/dist/modules/auth/services/logout.js +1 -1
  17. package/dist/modules/auth/services/verify-two-factor.js +1 -1
  18. package/dist/modules/auth/services/verifyPassword.js +1 -1
  19. package/dist/modules/file/index.js +1 -1
  20. package/dist/modules/file/route.js +1 -1
  21. package/dist/modules/file/schema.js +1 -1
  22. package/dist/modules/file/services/get-file.js +1 -1
  23. package/dist/modules/file/services/resize-file.js +1 -1
  24. package/dist/modules/file/services/upload-file.js +1 -1
  25. package/dist/modules/resource/index.js +1 -1
  26. package/dist/modules/resource/route.js +1 -1
  27. package/dist/modules/resource/schema.js +1 -1
  28. package/dist/modules/resource/services/add-note.js +1 -1
  29. package/dist/modules/resource/services/add-resource-file.js +1 -1
  30. package/dist/modules/resource/services/create-resource-relation.js +1 -1
  31. package/dist/modules/resource/services/create-resource.js +1 -1
  32. package/dist/modules/resource/services/delete-resource-relation.js +1 -1
  33. package/dist/modules/resource/services/delete-resource.js +1 -1
  34. package/dist/modules/resource/services/export-resource.js +1 -1
  35. package/dist/modules/resource/services/get-resource.js +1 -1
  36. package/dist/modules/resource/services/list-children.js +1 -1
  37. package/dist/modules/resource/services/list-resource-relation.js +1 -1
  38. package/dist/modules/resource/services/list-resources.js +1 -1
  39. package/dist/modules/resource/services/search-resource.js +1 -1
  40. package/dist/modules/resource/services/suggest-resource.d.ts +7 -4
  41. package/dist/modules/resource/services/suggest-resource.d.ts.map +1 -1
  42. package/dist/modules/resource/services/suggest-resource.js +1 -1
  43. package/dist/modules/resource/services/update-resource.js +1 -1
  44. package/dist/modules/resource/services/upload-resource-file.js +1 -1
  45. package/dist/modules/system/index.js +1 -1
  46. package/dist/modules/system/route.js +1 -1
  47. package/dist/modules/system/schema.js +1 -1
  48. package/dist/modules/system/services/check-system.js +1 -1
  49. package/dist/modules/system/services/get-api-list.js +1 -1
  50. package/dist/modules/system/services/get-audit-log.js +1 -1
  51. package/dist/modules/system/services/get-dictionary.js +1 -1
  52. package/dist/modules/system/services/get-system-log.js +1 -1
  53. package/dist/modules/system/services/get-system-settings.js +1 -1
  54. package/dist/modules/system/services/list-dictionaries.js +1 -1
  55. package/dist/modules/system/services/update-system-settings.js +1 -1
  56. package/dist/modules/utils/get-user-permissions.js +1 -1
  57. package/dist/modules/utils/require-admin.js +1 -1
  58. package/dist/modules/utils/safe-user.js +1 -1
  59. package/dist/modules/utils/unsupported.js +1 -1
  60. package/dist/plugins/audit/audit.js +1 -1
  61. package/dist/plugins/audit/index.js +1 -1
  62. package/dist/plugins/audit/services/write-audit.js +1 -1
  63. package/dist/plugins/auth/index.js +1 -1
  64. package/dist/plugins/dictionary.js +1 -1
  65. package/dist/plugins/file.js +1 -1
  66. package/dist/plugins/index.js +1 -1
  67. package/dist/plugins/logger/index.js +1 -1
  68. package/dist/plugins/logger/transport.js +1 -1
  69. package/dist/plugins/pg.js +1 -1
  70. package/dist/plugins/redis.js +1 -1
  71. package/dist/plugins/resource/index.js +1 -1
  72. package/dist/plugins/resource/resource.js +1 -1
  73. package/dist/plugins/resource/resource.registry.js +1 -1
  74. package/dist/plugins/resource/resource.types.d.ts +8 -0
  75. package/dist/plugins/resource/resource.types.d.ts.map +1 -1
  76. package/dist/plugins/resource/services/create.d.ts.map +1 -1
  77. package/dist/plugins/resource/services/create.js +1 -1
  78. package/dist/plugins/resource/services/delete.js +1 -1
  79. package/dist/plugins/resource/services/find-one.js +1 -1
  80. package/dist/plugins/resource/services/find.d.ts.map +1 -1
  81. package/dist/plugins/resource/services/find.js +1 -1
  82. package/dist/plugins/resource/services/update.d.ts.map +1 -1
  83. package/dist/plugins/resource/services/update.js +1 -1
  84. package/dist/plugins/resource/utils/fields.d.ts +8 -1
  85. package/dist/plugins/resource/utils/fields.d.ts.map +1 -1
  86. package/dist/plugins/resource/utils/fields.js +1 -1
  87. package/dist/plugins/resource/utils/filters.js +1 -1
  88. package/dist/plugins/resource/utils/permissions.d.ts.map +1 -1
  89. package/dist/plugins/resource/utils/permissions.js +1 -1
  90. package/dist/plugins/resource/utils/sort.js +1 -1
  91. package/dist/plugins/resource/utils/sql.js +1 -1
  92. package/dist/shared/getIP.js +1 -1
  93. package/package.json +1 -2
@@ -1 +1 @@
1
- function _0x2cea(_0x4337fd,_0x3df37c){_0x4337fd=_0x4337fd-0xb9;var _0x5c4507=_0x5c45();var _0x2cea89=_0x5c4507[_0x4337fd];return _0x2cea89;}(function(_0x29464c,_0x323d22){var _0x1d316c=_0x2cea,_0x49bc6c=_0x29464c();while(!![]){try{var _0x5a42a0=-parseInt(_0x1d316c(0xe0))/0x1*(parseInt(_0x1d316c(0xcf))/0x2)+-parseInt(_0x1d316c(0xcc))/0x3+-parseInt(_0x1d316c(0xbe))/0x4+-parseInt(_0x1d316c(0xd2))/0x5+parseInt(_0x1d316c(0xcb))/0x6+parseInt(_0x1d316c(0xc3))/0x7+parseInt(_0x1d316c(0xdc))/0x8;if(_0x5a42a0===_0x323d22)break;else _0x49bc6c['push'](_0x49bc6c['shift']());}catch(_0x2fdb59){_0x49bc6c['push'](_0x49bc6c['shift']());}}}(_0x5c45,0x8aa62));import{uploadFile}from'./services/upload-file.js';import{resizeFile}from'./services/resize-file.js';import{fileSchemas}from'./schema.js';export function fileRoutes(_0x56c900){var _0x287039=_0x2cea,_0x4ae129={};_0x4ae129[_0x287039(0xba)]=_0x287039(0xc7),_0x4ae129[_0x287039(0xdf)]=_0x287039(0xe1),_0x4ae129[_0x287039(0xd8)]=_0x287039(0xbc),_0x4ae129[_0x287039(0xbb)]=_0x287039(0xc1),_0x4ae129[_0x287039(0xb9)]=_0x287039(0xc6),_0x4ae129[_0x287039(0xd4)]=_0x287039(0xde),_0x4ae129[_0x287039(0xe3)]=_0x287039(0xbf),_0x4ae129[_0x287039(0xe5)]=_0x287039(0xe4),_0x4ae129[_0x287039(0xce)]=_0x287039(0xdb),_0x4ae129[_0x287039(0xc5)]=_0x287039(0xda),_0x4ae129[_0x287039(0xdd)]=_0x287039(0xca);var _0x4beb4d=_0x4ae129;return async _0x1a584c=>{var _0x2cb27f=_0x287039;_0x1a584c[_0x2cb27f(0xd9)](_0x4beb4d[_0x2cb27f(0xba)],{'schema':{'tags':[_0x4beb4d[_0x2cb27f(0xdf)],_0x4beb4d[_0x2cb27f(0xd8)]],'summary':_0x4beb4d[_0x2cb27f(0xbb)],'description':_0x4beb4d[_0x2cb27f(0xb9)],'access':_0x4beb4d[_0x2cb27f(0xd4)],'permissions':[],'params':fileSchemas[_0x2cb27f(0xd5)]}},async(_0x42a759,_0x291373)=>_0x291373[_0x2cb27f(0xd0)](await _0x56c900[_0x2cb27f(0xbc)]?.[_0x2cb27f(0xd9)](_0x56c900[_0x2cb27f(0xbc)][_0x2cb27f(0xc4)](_0x42a759[_0x2cb27f(0xcd)][_0x2cb27f(0xc8)])['p']))),_0x1a584c[_0x2cb27f(0xe2)](_0x4beb4d[_0x2cb27f(0xe3)],{'schema':{'tags':[_0x4beb4d[_0x2cb27f(0xdf)],_0x4beb4d[_0x2cb27f(0xd8)]],'summary':_0x2cb27f(0xc2),'description':_0x2cb27f(0xd1),'access':_0x4beb4d[_0x2cb27f(0xe5)],'permissions':[_0x4beb4d[_0x2cb27f(0xce)]],'body':fileSchemas[_0x2cb27f(0xbd)]}},async _0x3ac86f=>uploadFile(_0x3ac86f[_0x2cb27f(0xd6)],_0x56c900)),_0x1a584c[_0x2cb27f(0xd9)](_0x4beb4d[_0x2cb27f(0xc5)],{'schema':{'tags':[_0x4beb4d[_0x2cb27f(0xdf)],_0x4beb4d[_0x2cb27f(0xd8)]],'summary':_0x2cb27f(0xd7),'description':_0x2cb27f(0xc0),'access':_0x4beb4d[_0x2cb27f(0xe5)],'permissions':[_0x4beb4d[_0x2cb27f(0xdd)]],'params':fileSchemas[_0x2cb27f(0xd5)],'querystring':fileSchemas[_0x2cb27f(0xc9)]}},async _0x275d09=>resizeFile({'pathOrToken':_0x56c900[_0x2cb27f(0xbc)]?.[_0x2cb27f(0xc4)](_0x275d09[_0x2cb27f(0xcd)][_0x2cb27f(0xc8)])['p'],..._0x275d09[_0x2cb27f(0xd3)]},_0x56c900));};}function _0x5c45(){var _0x4b8a96=['XglTY','rnmcK','MCiCv','file','upload','503184NRwyie','/api/file/upload','Returns\x20a\x20resized\x20image\x20file.','Get\x20file\x20by\x20token','Upload\x20file','4481981qMSfxb','verify','gVXUJ','Returns\x20a\x20file\x20after\x20verifying\x20its\x20signed\x20access\x20token.','/api/file/:token','token','resizeQuery','files:read','3014856SwIMez','1719720gVpYtQ','params','XzZNd','1772328gXpHsP','send','Uploads\x20a\x20file\x20and\x20stores\x20its\x20metadata.','2552300YBxPdi','query','xkrmm','fileToken','body','Resize\x20file','POyJR','get','/api/file/:token/resize','files:create','12166456OfKLcD','YtTFu','public','HiVpV','1yBZuLl','fcore','post','VmTla','user','yUycL'];_0x5c45=function(){return _0x4b8a96;};return _0x5c45();}
1
+ (function(_0x48f558,_0x4a1476){var _0x341088=_0x12ec,_0x402ef5=_0x48f558();while(!![]){try{var _0x49f050=parseInt(_0x341088(0x19d))/0x1+parseInt(_0x341088(0x182))/0x2*(-parseInt(_0x341088(0x195))/0x3)+parseInt(_0x341088(0x1aa))/0x4+parseInt(_0x341088(0x187))/0x5+-parseInt(_0x341088(0x1ac))/0x6*(parseInt(_0x341088(0x19a))/0x7)+-parseInt(_0x341088(0x1a4))/0x8+parseInt(_0x341088(0x19b))/0x9*(parseInt(_0x341088(0x186))/0xa);if(_0x49f050===_0x4a1476)break;else _0x402ef5['push'](_0x402ef5['shift']());}catch(_0xdaa286){_0x402ef5['push'](_0x402ef5['shift']());}}}(_0x2576,0x3cb95));import{uploadFile}from'./services/upload-file.js';function _0x12ec(_0xe6b3fc,_0x33b1bb){_0xe6b3fc=_0xe6b3fc-0x181;var _0x2576ba=_0x2576();var _0x12ecca=_0x2576ba[_0xe6b3fc];return _0x12ecca;}import{resizeFile}from'./services/resize-file.js';import{fileSchemas}from'./schema.js';function _0x2576(){var _0x318355=['Uploads\x20a\x20file\x20and\x20stores\x20its\x20metadata.','user','Returns\x20a\x20file\x20after\x20verifying\x20its\x20signed\x20access\x20token.','Returns\x20a\x20resized\x20image\x20file.','ARHPq','JfGXA','/api/file/:token/resize','BXtDs','query','uzCMN','params','3VXsLjO','iRfvN','KUXJC','fcore','Get\x20file\x20by\x20token','636139ZxEDUC','126KkruOe','jaZmW','397679jUJxUM','WqjHA','SsIio','bvsxe','Upload\x20file','/api/file/:token','FpsHE','3900712IpqCkC','qkCXi','fileToken','public','get','send','27048scCByA','post','24tfoSNf','LrbYC','/api/file/upload','upload','verify','token','resizeQuery','402260EOwbrC','files:read','files:create','Resize\x20file','545460tKARlP','664335Ajsneu','file','body'];_0x2576=function(){return _0x318355;};return _0x2576();}export function fileRoutes(_0x9a6583){var _0x5278b4=_0x12ec,_0x37d473={};_0x37d473[_0x5278b4(0x18e)]=_0x5278b4(0x1a2),_0x37d473[_0x5278b4(0x193)]=_0x5278b4(0x188),_0x37d473[_0x5278b4(0x1ad)]=_0x5278b4(0x199),_0x37d473[_0x5278b4(0x1a5)]=_0x5278b4(0x18c),_0x37d473[_0x5278b4(0x191)]=_0x5278b4(0x1a7),_0x37d473[_0x5278b4(0x1a3)]=_0x5278b4(0x1ae),_0x37d473[_0x5278b4(0x19c)]=_0x5278b4(0x198),_0x37d473[_0x5278b4(0x197)]=_0x5278b4(0x1a1),_0x37d473[_0x5278b4(0x1a0)]=_0x5278b4(0x18b),_0x37d473[_0x5278b4(0x19f)]=_0x5278b4(0x184),_0x37d473[_0x5278b4(0x196)]=_0x5278b4(0x190),_0x37d473[_0x5278b4(0x18f)]=_0x5278b4(0x18d),_0x37d473[_0x5278b4(0x19e)]=_0x5278b4(0x183);var _0x46d816=_0x37d473;return async _0x2b6fd2=>{var _0x184368=_0x5278b4;_0x2b6fd2[_0x184368(0x1a8)](_0x46d816[_0x184368(0x18e)],{'schema':{'tags':[_0x184368(0x198),_0x46d816[_0x184368(0x193)]],'summary':_0x46d816[_0x184368(0x1ad)],'description':_0x46d816[_0x184368(0x1a5)],'access':_0x46d816[_0x184368(0x191)],'permissions':[],'params':fileSchemas[_0x184368(0x1a6)]}},async(_0x3a1114,_0x4a10e7)=>_0x4a10e7[_0x184368(0x1a9)](await _0x9a6583[_0x184368(0x188)]?.[_0x184368(0x1a8)](_0x9a6583[_0x184368(0x188)][_0x184368(0x1b0)](_0x3a1114[_0x184368(0x194)][_0x184368(0x1b1)])['p']))),_0x2b6fd2[_0x184368(0x1ab)](_0x46d816[_0x184368(0x1a3)],{'schema':{'tags':[_0x46d816[_0x184368(0x19c)],_0x184368(0x188)],'summary':_0x46d816[_0x184368(0x197)],'description':_0x184368(0x18a),'access':_0x46d816[_0x184368(0x1a0)],'permissions':[_0x46d816[_0x184368(0x19f)]],'body':fileSchemas[_0x184368(0x1af)]}},async _0x4ea6c6=>uploadFile(_0x4ea6c6[_0x184368(0x189)],_0x9a6583)),_0x2b6fd2[_0x184368(0x1a8)](_0x46d816[_0x184368(0x196)],{'schema':{'tags':[_0x184368(0x198),_0x46d816[_0x184368(0x193)]],'summary':_0x184368(0x185),'description':_0x46d816[_0x184368(0x18f)],'access':_0x184368(0x18b),'permissions':[_0x46d816[_0x184368(0x19e)]],'params':fileSchemas[_0x184368(0x1a6)],'querystring':fileSchemas[_0x184368(0x181)]}},async _0x47e4bf=>resizeFile({'pathOrToken':_0x9a6583[_0x184368(0x188)]?.[_0x184368(0x1b0)](_0x47e4bf[_0x184368(0x194)][_0x184368(0x1b1)])['p'],..._0x47e4bf[_0x184368(0x192)]},_0x9a6583));};}
@@ -1 +1 @@
1
- const _0x371763=_0x5ba9;function _0x5ba9(_0xec42a9,_0x2dc705){_0xec42a9=_0xec42a9-0x1f3;const _0x385765=_0x3857();let _0x5ba980=_0x385765[_0xec42a9];return _0x5ba980;}(function(_0x302652,_0x479461){const _0x36c16d=_0x5ba9,_0x3ac869=_0x302652();while(!![]){try{const _0x34a3bd=parseInt(_0x36c16d(0x1fd))/0x1+-parseInt(_0x36c16d(0x1f9))/0x2+parseInt(_0x36c16d(0x209))/0x3+-parseInt(_0x36c16d(0x1fe))/0x4+parseInt(_0x36c16d(0x1f8))/0x5*(-parseInt(_0x36c16d(0x1f6))/0x6)+parseInt(_0x36c16d(0x1f7))/0x7+-parseInt(_0x36c16d(0x1ff))/0x8;if(_0x34a3bd===_0x479461)break;else _0x3ac869['push'](_0x3ac869['shift']());}catch(_0x52b905){_0x3ac869['push'](_0x3ac869['shift']());}}}(_0x3857,0x92eec));import{Type}from'@sinclair/typebox';const _0x3214c3={};_0x3214c3[_0x371763(0x1f5)]=0x1,_0x3214c3[_0x371763(0x207)]=0x80;const _0x31ac6c={};_0x31ac6c[_0x371763(0x1f5)]=0x1,_0x31ac6c[_0x371763(0x207)]=0x800;const _0x524348={};_0x524348[_0x371763(0x1f5)]=0x1,_0x524348[_0x371763(0x207)]=0x400;const _0x5b22e1={};_0x5b22e1[_0x371763(0x1f5)]=0x1;const _0x2a9abc={};_0x2a9abc[_0x371763(0x1f5)]=0x1;const _0x181c8f={};_0x181c8f[_0x371763(0x1f5)]=0x1;const _0x564ab5={};_0x564ab5[_0x371763(0x1f5)]=0x1;const _0x1e8909={};_0x1e8909[_0x371763(0x1f5)]=0x1;const _0x18f51e={};_0x18f51e[_0x371763(0x1f5)]=0x1;const _0x643298={};_0x643298[_0x371763(0x205)]=0x1;const _0x8517a8={};function _0x3857(){const _0xbacaf2=['3417159caIVls','Any','inside','minLength','1356618jRFyiE','6659905IpfPKR','10lBhHzZ','2275722XIOcZE','contain','outside','Object','652968wwMLtw','1802952jfXmPW','806360BqXZuD','String','Union','Integer','Optional','fill','minimum','cover','maxLength','Literal'];_0x3857=function(){return _0xbacaf2;};return _0x3857();}_0x8517a8[_0x371763(0x205)]=0x1;export const fileSchemas={'fileId':Type[_0x371763(0x1fc)]({'id':Type[_0x371763(0x200)](_0x3214c3)}),'fileToken':Type[_0x371763(0x1fc)]({'token':Type[_0x371763(0x200)](_0x31ac6c)}),'filePath':Type[_0x371763(0x1fc)]({'*':Type[_0x371763(0x200)](_0x524348)}),'upload':Type[_0x371763(0x1fc)]({'file':Type[_0x371763(0x1f3)](),'metadata':Type[_0x371763(0x1fc)]({'name':Type[_0x371763(0x203)](Type[_0x371763(0x200)](_0x5b22e1)),'path':Type[_0x371763(0x203)](Type[_0x371763(0x200)](_0x2a9abc)),'entityType':Type[_0x371763(0x203)](Type[_0x371763(0x200)](_0x181c8f)),'entityId':Type[_0x371763(0x203)](Type[_0x371763(0x200)](_0x564ab5))})}),'filePatch':Type[_0x371763(0x1fc)]({'entityType':Type[_0x371763(0x203)](Type[_0x371763(0x200)](_0x1e8909)),'entityId':Type[_0x371763(0x203)](Type[_0x371763(0x200)](_0x18f51e))}),'resizeQuery':Type[_0x371763(0x1fc)]({'width':Type[_0x371763(0x203)](Type[_0x371763(0x202)](_0x643298)),'height':Type[_0x371763(0x203)](Type[_0x371763(0x202)](_0x8517a8)),'fit':Type[_0x371763(0x203)](Type[_0x371763(0x201)]([Type[_0x371763(0x208)](_0x371763(0x206)),Type[_0x371763(0x208)](_0x371763(0x1fa)),Type[_0x371763(0x208)](_0x371763(0x204)),Type[_0x371763(0x208)](_0x371763(0x1f4)),Type[_0x371763(0x208)](_0x371763(0x1fb))]))})};
1
+ const _0x596f0b=_0x3758;(function(_0x21263b,_0x2e2e41){const _0xd97f61=_0x3758,_0x307265=_0x21263b();while(!![]){try{const _0x2c4ef5=parseInt(_0xd97f61(0x162))/0x1*(parseInt(_0xd97f61(0x161))/0x2)+parseInt(_0xd97f61(0x15f))/0x3+-parseInt(_0xd97f61(0x150))/0x4*(parseInt(_0xd97f61(0x151))/0x5)+-parseInt(_0xd97f61(0x159))/0x6*(parseInt(_0xd97f61(0x158))/0x7)+-parseInt(_0xd97f61(0x15d))/0x8+parseInt(_0xd97f61(0x167))/0x9*(-parseInt(_0xd97f61(0x15e))/0xa)+parseInt(_0xd97f61(0x154))/0xb;if(_0x2c4ef5===_0x2e2e41)break;else _0x307265['push'](_0x307265['shift']());}catch(_0x2b175c){_0x307265['push'](_0x307265['shift']());}}}(_0x46df,0xde4a2));function _0x46df(){const _0xff05d8=['contain','minLength','9909544TCjrcG','1111270fvuFNg','5404974tJEXZu','Any','3481934ucvVoy','1pUDdNH','fill','Optional','inside','String','99dUffXk','minimum','Literal','4yzyEXt','5403755jMruvv','Object','Union','14371511fWRGUg','outside','cover','maxLength','1043HJtYfm','15978kEAvLw','Integer'];_0x46df=function(){return _0xff05d8;};return _0x46df();}import{Type}from'@sinclair/typebox';const _0x3a2741={};_0x3a2741[_0x596f0b(0x15c)]=0x1,_0x3a2741[_0x596f0b(0x157)]=0x80;const _0x5d05b8={};_0x5d05b8[_0x596f0b(0x15c)]=0x1,_0x5d05b8[_0x596f0b(0x157)]=0x800;const _0x2b60e4={};_0x2b60e4[_0x596f0b(0x15c)]=0x1,_0x2b60e4[_0x596f0b(0x157)]=0x400;const _0x22cb3f={};_0x22cb3f[_0x596f0b(0x15c)]=0x1;const _0x503dda={};_0x503dda[_0x596f0b(0x15c)]=0x1;const _0x5bb711={};_0x5bb711[_0x596f0b(0x15c)]=0x1;const _0x4c5b56={};_0x4c5b56[_0x596f0b(0x15c)]=0x1;function _0x3758(_0x1babcd,_0xcc36ea){_0x1babcd=_0x1babcd-0x14e;const _0x46df53=_0x46df();let _0x37583f=_0x46df53[_0x1babcd];return _0x37583f;}const _0x439757={};_0x439757[_0x596f0b(0x15c)]=0x1;const _0x4b25e2={};_0x4b25e2[_0x596f0b(0x15c)]=0x1;const _0x4f27a7={};_0x4f27a7[_0x596f0b(0x14e)]=0x1;const _0x5cb738={};_0x5cb738[_0x596f0b(0x14e)]=0x1;export const fileSchemas={'fileId':Type[_0x596f0b(0x152)]({'id':Type[_0x596f0b(0x166)](_0x3a2741)}),'fileToken':Type[_0x596f0b(0x152)]({'token':Type[_0x596f0b(0x166)](_0x5d05b8)}),'filePath':Type[_0x596f0b(0x152)]({'*':Type[_0x596f0b(0x166)](_0x2b60e4)}),'upload':Type[_0x596f0b(0x152)]({'file':Type[_0x596f0b(0x160)](),'metadata':Type[_0x596f0b(0x152)]({'name':Type[_0x596f0b(0x164)](Type[_0x596f0b(0x166)](_0x22cb3f)),'path':Type[_0x596f0b(0x164)](Type[_0x596f0b(0x166)](_0x503dda)),'entityType':Type[_0x596f0b(0x164)](Type[_0x596f0b(0x166)](_0x5bb711)),'entityId':Type[_0x596f0b(0x164)](Type[_0x596f0b(0x166)](_0x4c5b56))})}),'filePatch':Type[_0x596f0b(0x152)]({'entityType':Type[_0x596f0b(0x164)](Type[_0x596f0b(0x166)](_0x439757)),'entityId':Type[_0x596f0b(0x164)](Type[_0x596f0b(0x166)](_0x4b25e2))}),'resizeQuery':Type[_0x596f0b(0x152)]({'width':Type[_0x596f0b(0x164)](Type[_0x596f0b(0x15a)](_0x4f27a7)),'height':Type[_0x596f0b(0x164)](Type[_0x596f0b(0x15a)](_0x5cb738)),'fit':Type[_0x596f0b(0x164)](Type[_0x596f0b(0x153)]([Type[_0x596f0b(0x14f)](_0x596f0b(0x156)),Type[_0x596f0b(0x14f)](_0x596f0b(0x15b)),Type[_0x596f0b(0x14f)](_0x596f0b(0x163)),Type[_0x596f0b(0x14f)](_0x596f0b(0x165)),Type[_0x596f0b(0x14f)](_0x596f0b(0x155))]))})};
@@ -1 +1 @@
1
- (function(_0x2a6861,_0x3ff262){var _0x3143c4=_0x20dd,_0x5e32e2=_0x2a6861();while(!![]){try{var _0x14890f=parseInt(_0x3143c4(0x74))/0x1+parseInt(_0x3143c4(0x7d))/0x2+parseInt(_0x3143c4(0x7f))/0x3*(-parseInt(_0x3143c4(0x7c))/0x4)+-parseInt(_0x3143c4(0x78))/0x5+-parseInt(_0x3143c4(0x70))/0x6*(-parseInt(_0x3143c4(0x79))/0x7)+-parseInt(_0x3143c4(0x7a))/0x8+parseInt(_0x3143c4(0x73))/0x9*(parseInt(_0x3143c4(0x77))/0xa);if(_0x14890f===_0x3ff262)break;else _0x5e32e2['push'](_0x5e32e2['shift']());}catch(_0x998707){_0x5e32e2['push'](_0x5e32e2['shift']());}}}(_0x4a12,0xdaec6));import{NotFoundError}from'../../../errors.js';export async function getFile(_0x124150,_0x291872){var _0xf04459=_0x20dd,_0x442bb5={};_0x442bb5[_0xf04459(0x75)]=_0xf04459(0x7b);var _0x1f369a=_0x442bb5;if(!_0x291872[_0xf04459(0x72)])throw new Error(_0xf04459(0x80));if(!await _0x291872[_0xf04459(0x72)][_0xf04459(0x71)](_0x124150[_0xf04459(0x7e)]))throw new NotFoundError(_0x1f369a[_0xf04459(0x75)]);return _0x291872[_0xf04459(0x72)][_0xf04459(0x76)](_0x124150[_0xf04459(0x7e)]);}function _0x20dd(_0x3783ae,_0x2ff3e2){_0x3783ae=_0x3783ae-0x70;var _0x4a12e0=_0x4a12();var _0x20dd38=_0x4a12e0[_0x3783ae];return _0x20dd38;}function _0x4a12(){var _0x5cc6cc=['9348neynGb','exists','file','2718lEidEV','978276rSGVPK','UVRaV','get','63900MupnOM','7818385vWmzqL','6699JzmFUj','13825920BnIOtq','File\x20not\x20found','2350104LPDqCv','1929234kLnIee','pathOrToken','6KKYSpk','empty\x20file'];_0x4a12=function(){return _0x5cc6cc;};return _0x4a12();}
1
+ function _0x2ca3(_0x5a7d32,_0x1593e2){_0x5a7d32=_0x5a7d32-0xb3;var _0x251dcb=_0x251d();var _0x2ca30c=_0x251dcb[_0x5a7d32];return _0x2ca30c;}function _0x251d(){var _0x130bd0=['exists','pathOrToken','file','301wQbqGx','349386LMKoOd','File\x20not\x20found','105170nkFRgs','216xEefzt','265976nzdqou','980507jExifj','84tzxQyI','get','wWDzq','144295MznPgs','4glPiBK','981SDnFtV','1672344igNRNO','752097lqMTrS','empty\x20file'];_0x251d=function(){return _0x130bd0;};return _0x251d();}(function(_0x3b48d4,_0x484164){var _0x5266bb=_0x2ca3,_0x33c974=_0x3b48d4();while(!![]){try{var _0x415a1a=parseInt(_0x5266bb(0xbd))/0x1*(-parseInt(_0x5266bb(0xb3))/0x2)+-parseInt(_0x5266bb(0xc0))/0x3+-parseInt(_0x5266bb(0xbf))/0x4+parseInt(_0x5266bb(0xbc))/0x5*(-parseInt(_0x5266bb(0xb6))/0x6)+parseInt(_0x5266bb(0xc5))/0x7*(parseInt(_0x5266bb(0xb7))/0x8)+-parseInt(_0x5266bb(0xbe))/0x9*(-parseInt(_0x5266bb(0xb5))/0xa)+-parseInt(_0x5266bb(0xb8))/0xb*(-parseInt(_0x5266bb(0xb9))/0xc);if(_0x415a1a===_0x484164)break;else _0x33c974['push'](_0x33c974['shift']());}catch(_0x2b69b1){_0x33c974['push'](_0x33c974['shift']());}}}(_0x251d,0xc1b6c));import{NotFoundError}from'../../../errors.js';export async function getFile(_0x414abc,_0x54a88c){var _0x218c2a=_0x2ca3,_0x35f41d={};_0x35f41d[_0x218c2a(0xbb)]=_0x218c2a(0xb4);var _0xf92945=_0x35f41d;if(!_0x54a88c[_0x218c2a(0xc4)])throw new Error(_0x218c2a(0xc1));if(!await _0x54a88c[_0x218c2a(0xc4)][_0x218c2a(0xc2)](_0x414abc[_0x218c2a(0xc3)]))throw new NotFoundError(_0xf92945[_0x218c2a(0xbb)]);return _0x54a88c[_0x218c2a(0xc4)][_0x218c2a(0xba)](_0x414abc[_0x218c2a(0xc3)]);}
@@ -1 +1 @@
1
- (function(_0x55a4f2,_0x2c0387){const _0x48dba5=_0x3962,_0x27bfd8=_0x55a4f2();while(!![]){try{const _0x58c1e0=-parseInt(_0x48dba5(0x1e8))/0x1*(parseInt(_0x48dba5(0x1cf))/0x2)+parseInt(_0x48dba5(0x1e2))/0x3+parseInt(_0x48dba5(0x1d8))/0x4+parseInt(_0x48dba5(0x1f3))/0x5*(parseInt(_0x48dba5(0x1cd))/0x6)+-parseInt(_0x48dba5(0x1e5))/0x7*(-parseInt(_0x48dba5(0x1e0))/0x8)+-parseInt(_0x48dba5(0x1eb))/0x9+-parseInt(_0x48dba5(0x1da))/0xa;if(_0x58c1e0===_0x2c0387)break;else _0x27bfd8['push'](_0x27bfd8['shift']());}catch(_0x134835){_0x27bfd8['push'](_0x27bfd8['shift']());}}}(_0x3d79,0xd528c));import{NotFoundError,ValidationError}from'../../../errors.js';import _0x349090 from'sharp';export async function resizeFile(_0x2c7d44,_0x1e7fe4){const _0x38abe7=_0x3962,_0x18cd6b={'qsWZe':_0x38abe7(0x1f4),'iSMaN':_0x38abe7(0x1ce),'PjrMy':function(_0x2922e4,_0x21477e,_0x36d3a9){return _0x2922e4(_0x21477e,_0x36d3a9);},'crhWQ':_0x38abe7(0x1d9),'GUWdc':function(_0x3010d1,_0x5a09b9,_0x2ade8a){return _0x3010d1(_0x5a09b9,_0x2ade8a);},'DSrUy':_0x38abe7(0x1d5),'nxvmX':function(_0x33e333,_0x1ffa89){return _0x33e333!==_0x1ffa89;},'WELJB':_0x38abe7(0x1dd),'jBnBY':_0x38abe7(0x1d6),'IRNSN':_0x38abe7(0x1ef),'Movgp':_0x38abe7(0x1e3)};if(!_0x1e7fe4[_0x38abe7(0x1ea)])throw new Error(_0x18cd6b[_0x38abe7(0x1e9)]);const _0x2ec94b=_0x2c7d44[_0x38abe7(0x1f8)]??_0x2c7d44[_0x38abe7(0x1f2)];if(!_0x2ec94b)throw new ValidationError(_0x18cd6b[_0x38abe7(0x1f5)]);const _0xa6eb89=_0x18cd6b[_0x38abe7(0x1d1)](parseDimension,_0x2c7d44[_0x38abe7(0x1d9)],_0x18cd6b[_0x38abe7(0x1ee)]),_0x3bb905=_0x18cd6b[_0x38abe7(0x1dc)](parseDimension,_0x2c7d44[_0x38abe7(0x1d5)],_0x18cd6b[_0x38abe7(0x1d7)]);if(!_0xa6eb89&&!_0x3bb905){if(_0x18cd6b[_0x38abe7(0x1cc)](_0x18cd6b[_0x38abe7(0x1d4)],_0x18cd6b[_0x38abe7(0x1ed)]))throw new ValidationError(_0x18cd6b[_0x38abe7(0x1f6)]);else throw new _0x32f15f(_0x38abe7(0x1ec));}if(!await _0x1e7fe4[_0x38abe7(0x1ea)][_0x38abe7(0x1f1)](_0x2ec94b))throw new NotFoundError(_0x38abe7(0x1ec));const _0x5cdb08={};return _0x5cdb08[_0x38abe7(0x1d9)]=_0xa6eb89,_0x5cdb08[_0x38abe7(0x1d5)]=_0x3bb905,_0x5cdb08[_0x38abe7(0x1db)]=_0x2c7d44[_0x38abe7(0x1db)]??_0x18cd6b[_0x38abe7(0x1de)],_0x349090(await _0x1e7fe4[_0x38abe7(0x1ea)][_0x38abe7(0x1f7)](_0x2ec94b))[_0x38abe7(0x1e1)](_0x5cdb08)[_0x38abe7(0x1d0)]();}function _0x3962(_0x1d0992,_0xc36085){_0x1d0992=_0x1d0992-0x1cc;const _0x3d7906=_0x3d79();let _0x3962a7=_0x3d7906[_0x1d0992];return _0x3962a7;}function parseDimension(_0x3ac8c9,_0x502f5f){const _0x318e6d=_0x3962,_0x141fd5={};_0x141fd5[_0x318e6d(0x1e6)]=function(_0x3857cb,_0x2623d3){return _0x3857cb===_0x2623d3;},_0x141fd5[_0x318e6d(0x1d3)]=function(_0x385877,_0x3f6128){return _0x385877<=_0x3f6128;},_0x141fd5[_0x318e6d(0x1e7)]=function(_0x12caba,_0x3e935f){return _0x12caba===_0x3e935f;},_0x141fd5[_0x318e6d(0x1df)]=_0x318e6d(0x1d2);const _0x12d289=_0x141fd5;if(_0x12d289[_0x318e6d(0x1e6)](_0x3ac8c9,undefined)||_0x3ac8c9==='')return undefined;const _0x13f74d=Number(_0x3ac8c9);if(!Number[_0x318e6d(0x1e4)](_0x13f74d)||_0x12d289[_0x318e6d(0x1d3)](_0x13f74d,0x0)){if(_0x12d289[_0x318e6d(0x1e7)](_0x318e6d(0x1d2),_0x12d289[_0x318e6d(0x1df)]))throw new ValidationError(_0x502f5f+_0x318e6d(0x1f0));else throw new _0x7937f8(_0x41d01d+_0x318e6d(0x1f0));}return _0x13f74d;}function _0x3d79(){const _0x153e1a=['XpzSH','WELJB','height','wnjUm','DSrUy','4126964PeKkAq','width','6721150QFLfGB','fit','GUWdc','QjPVd','Movgp','ZIitS','48328wiytXl','resize','1055724slGAMX','cover','isInteger','1974jWlVqd','Mnemh','rnnQb','1dWozWR','qsWZe','file','15495021vOpRRr','File\x20not\x20found','jBnBY','crhWQ','Width\x20or\x20height\x20is\x20required','\x20must\x20be\x20a\x20positive\x20integer','exists','path','175wXSjhf','empty\x20file','iSMaN','IRNSN','get','pathOrToken','nxvmX','99942IZTNjx','File\x20path\x20is\x20required','806644LpEaBg','toBuffer','PjrMy','erYca'];_0x3d79=function(){return _0x153e1a;};return _0x3d79();}
1
+ (function(_0x2fb549,_0x2840f8){const _0xf8935e=_0x16c5,_0x460192=_0x2fb549();while(!![]){try{const _0x1a52f9=parseInt(_0xf8935e(0xe4))/0x1+parseInt(_0xf8935e(0xf1))/0x2+parseInt(_0xf8935e(0xf4))/0x3*(-parseInt(_0xf8935e(0xf0))/0x4)+-parseInt(_0xf8935e(0xd7))/0x5*(parseInt(_0xf8935e(0xdf))/0x6)+-parseInt(_0xf8935e(0xd8))/0x7*(-parseInt(_0xf8935e(0xe3))/0x8)+-parseInt(_0xf8935e(0xd5))/0x9*(-parseInt(_0xf8935e(0xd2))/0xa)+-parseInt(_0xf8935e(0xd6))/0xb;if(_0x1a52f9===_0x2840f8)break;else _0x460192['push'](_0x460192['shift']());}catch(_0x33ab07){_0x460192['push'](_0x460192['shift']());}}}(_0x30f4,0xe21f8));import{NotFoundError,ValidationError}from'../../../errors.js';function _0x16c5(_0x725dba,_0x1de205){_0x725dba=_0x725dba-0xcc;const _0x30f4e6=_0x30f4();let _0x16c5bc=_0x30f4e6[_0x725dba];return _0x16c5bc;}import _0x2cb571 from'sharp';export async function resizeFile(_0x2f231c,_0x52d49a){const _0x2130ab=_0x16c5,_0x229d71={'jOHbZ':_0x2130ab(0xef),'WkUjZ':_0x2130ab(0xe2),'erowe':function(_0x2733ef,_0x271602,_0x2a3724){return _0x2733ef(_0x271602,_0x2a3724);},'WpZFA':_0x2130ab(0xe1),'pLggf':_0x2130ab(0xe5),'SBTcl':function(_0x5e7ae2,_0x719ef4){return _0x5e7ae2&&_0x719ef4;},'pTjas':_0x2130ab(0xda),'ThLms':_0x2130ab(0xea),'NvIyt':_0x2130ab(0xd4)};if(!_0x52d49a[_0x2130ab(0xd1)])throw new Error(_0x229d71[_0x2130ab(0xde)]);const _0x563135=_0x2f231c[_0x2130ab(0xd9)]??_0x2f231c[_0x2130ab(0xe7)];if(!_0x563135)throw new ValidationError(_0x229d71[_0x2130ab(0xec)]);const _0x3f8c9d=_0x229d71[_0x2130ab(0xeb)](parseDimension,_0x2f231c[_0x2130ab(0xe1)],_0x229d71[_0x2130ab(0xce)]),_0x54bcd4=_0x229d71[_0x2130ab(0xeb)](parseDimension,_0x2f231c[_0x2130ab(0xe5)],_0x229d71[_0x2130ab(0xf3)]);if(_0x229d71[_0x2130ab(0xdc)](!_0x3f8c9d,!_0x54bcd4))throw new ValidationError(_0x229d71[_0x2130ab(0xd3)]);if(!await _0x52d49a[_0x2130ab(0xd1)][_0x2130ab(0xcf)](_0x563135))throw new NotFoundError(_0x229d71[_0x2130ab(0xe6)]);const _0x553e6e={};return _0x553e6e[_0x2130ab(0xe1)]=_0x3f8c9d,_0x553e6e[_0x2130ab(0xe5)]=_0x54bcd4,_0x553e6e[_0x2130ab(0xf2)]=_0x2f231c[_0x2130ab(0xf2)]??_0x229d71[_0x2130ab(0xe9)],_0x2cb571(await _0x52d49a[_0x2130ab(0xd1)][_0x2130ab(0xe8)](_0x563135))[_0x2130ab(0xcd)](_0x553e6e)[_0x2130ab(0xed)]();}function parseDimension(_0x567823,_0x5837f7){const _0x145979=_0x16c5,_0x33781c={'pCghM':function(_0x23b5db,_0x24e0b0){return _0x23b5db===_0x24e0b0;},'alics':_0x145979(0xd0),'JyPTA':function(_0x27c9bc,_0x45ed17){return _0x27c9bc(_0x45ed17);}};if(_0x33781c[_0x145979(0xdd)](_0x567823,undefined)||_0x567823===''){if(_0x33781c[_0x145979(0xee)]!==_0x145979(0xd0))throw new _0x13b320(_0x1320e0+_0x145979(0xe0));else return undefined;}const _0x27e897=_0x33781c[_0x145979(0xdb)](Number,_0x567823);if(!Number[_0x145979(0xcc)](_0x27e897)||_0x27e897<=0x0)throw new ValidationError(_0x5837f7+_0x145979(0xe0));return _0x27e897;}function _0x30f4(){const _0x29edef=['8DlOshi','1698742NZBoyz','height','ThLms','path','get','NvIyt','File\x20not\x20found','erowe','WkUjZ','toBuffer','alics','empty\x20file','4UeyqPd','3293718xDXjYd','fit','pLggf','413847vRVKfY','isInteger','resize','WpZFA','exists','sHPCx','file','110bhTnrB','pTjas','cover','879696xyLmXD','36839275pKMBaj','10kZkGyh','1873207DxrZEk','pathOrToken','Width\x20or\x20height\x20is\x20required','JyPTA','SBTcl','pCghM','jOHbZ','825636YKPaDc','\x20must\x20be\x20a\x20positive\x20integer','width','File\x20path\x20is\x20required'];_0x30f4=function(){return _0x29edef;};return _0x30f4();}
@@ -1 +1 @@
1
- (function(_0x4c152f,_0x48b29e){const _0x5d7518=_0x1f25,_0x526199=_0x4c152f();while(!![]){try{const _0x40b461=-parseInt(_0x5d7518(0x17e))/0x1+parseInt(_0x5d7518(0x189))/0x2*(parseInt(_0x5d7518(0x185))/0x3)+parseInt(_0x5d7518(0x17b))/0x4*(parseInt(_0x5d7518(0x187))/0x5)+parseInt(_0x5d7518(0x17f))/0x6*(-parseInt(_0x5d7518(0x17d))/0x7)+parseInt(_0x5d7518(0x181))/0x8*(parseInt(_0x5d7518(0x17a))/0x9)+parseInt(_0x5d7518(0x175))/0xa+-parseInt(_0x5d7518(0x184))/0xb*(parseInt(_0x5d7518(0x174))/0xc);if(_0x40b461===_0x48b29e)break;else _0x526199['push'](_0x526199['shift']());}catch(_0xd4e7fc){_0x526199['push'](_0x526199['shift']());}}}(_0x566b,0x3d9bc));function _0x1f25(_0x3061ea,_0x2114c1){_0x3061ea=_0x3061ea-0x16f;const _0x566b16=_0x566b();let _0x1f25e2=_0x566b16[_0x3061ea];return _0x1f25e2;}function _0x566b(){const _0x3b295b=['name','mWcRz','metadata','uploads/','path','3834180ImHiTk','2908970HIOeji','rows','entityId','query','put','2083734HrTyHO','69036mbCACy','entityType','297983JtKofC','399841Imnwla','6ebYHGW','file','16BVPVuJ','replace','\x0a\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.files\x20(resource,\x20resource_id,\x20file_path,\x20size)\x0a\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4)\x0a\x20\x20\x20\x20\x20\x20\x20\x20RETURNING\x20*\x0a\x20\x20\x20\x20\x20\x20','11xCQmez','6PWlYON','length','70OgdJBe','JBWSF','18698SXRjUt'];_0x566b=function(){return _0x3b295b;};return _0x566b();}import{randomUUID}from'node:crypto';export async function uploadFile(_0x31d264,_0x40e5fc){const _0x278d6f=_0x1f25,_0x525457={'mWcRz':_0x278d6f(0x180),'JBWSF':function(_0x50e062){return _0x50e062();}},_0x485974=(_0x31d264[_0x278d6f(0x171)][_0x278d6f(0x16f)]??_0x525457[_0x278d6f(0x170)])[_0x278d6f(0x182)](/[^a-zA-Z0-9._-]/g,'_'),_0x5dd3c0=_0x31d264[_0x278d6f(0x171)][_0x278d6f(0x173)]??_0x278d6f(0x172)+_0x525457[_0x278d6f(0x188)](randomUUID)+'-'+_0x485974;await _0x40e5fc[_0x278d6f(0x180)][_0x278d6f(0x179)](_0x5dd3c0,_0x31d264[_0x278d6f(0x180)]);const _0xc609cc=await _0x40e5fc['pg'][_0x278d6f(0x178)](_0x278d6f(0x183),[_0x31d264[_0x278d6f(0x171)][_0x278d6f(0x17c)]??null,_0x31d264[_0x278d6f(0x171)][_0x278d6f(0x177)]??null,_0x5dd3c0,_0x31d264[_0x278d6f(0x180)][_0x278d6f(0x186)]]);return _0xc609cc[_0x278d6f(0x176)][0x0];}
1
+ (function(_0x52ab23,_0x17a192){const _0x5b7618=_0x369e,_0x359712=_0x52ab23();while(!![]){try{const _0x3f7240=-parseInt(_0x5b7618(0xb9))/0x1*(-parseInt(_0x5b7618(0xac))/0x2)+-parseInt(_0x5b7618(0xa9))/0x3+-parseInt(_0x5b7618(0xae))/0x4*(-parseInt(_0x5b7618(0xb3))/0x5)+-parseInt(_0x5b7618(0xa5))/0x6*(parseInt(_0x5b7618(0xab))/0x7)+-parseInt(_0x5b7618(0xa3))/0x8*(-parseInt(_0x5b7618(0xb8))/0x9)+-parseInt(_0x5b7618(0xb1))/0xa+parseInt(_0x5b7618(0xb6))/0xb;if(_0x3f7240===_0x17a192)break;else _0x359712['push'](_0x359712['shift']());}catch(_0x1b66ef){_0x359712['push'](_0x359712['shift']());}}}(_0x864f,0xad495));function _0x369e(_0x4bbe34,_0x31750a){_0x4bbe34=_0x4bbe34-0xa2;const _0x864f7e=_0x864f();let _0x369e2a=_0x864f7e[_0x4bbe34];return _0x369e2a;}import{randomUUID}from'node:crypto';function _0x864f(){const _0xdeaa89=['metadata','10356170DwbyyT','HXlce','3061665SACQht','322ABSHoT','length','path','24YezcAd','rows','216ETEKQY','entityType','query','\x0a\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.files\x20(resource,\x20resource_id,\x20file_path,\x20size)\x0a\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4)\x0a\x20\x20\x20\x20\x20\x20\x20\x20RETURNING\x20*\x0a\x20\x20\x20\x20\x20\x20','2802363qtwejJ','entityId','140742JzPEXV','3986CtFMNO','name','4BLyhGN','put','replace','3437330mZbmdB','uploads/','538400SWLilc','file'];_0x864f=function(){return _0xdeaa89;};return _0x864f();}export async function uploadFile(_0x35e88b,_0x4c9b60){const _0x47a033=_0x369e,_0x55d7f7={'HXlce':function(_0x3942ac){return _0x3942ac();}},_0x3e5995=(_0x35e88b[_0x47a033(0xb5)][_0x47a033(0xad)]??_0x47a033(0xb4))[_0x47a033(0xb0)](/[^a-zA-Z0-9._-]/g,'_'),_0x25e24e=_0x35e88b[_0x47a033(0xb5)][_0x47a033(0xa2)]??_0x47a033(0xb2)+_0x55d7f7[_0x47a033(0xb7)](randomUUID)+'-'+_0x3e5995;await _0x4c9b60[_0x47a033(0xb4)][_0x47a033(0xaf)](_0x25e24e,_0x35e88b[_0x47a033(0xb4)]);const _0x2b1874=await _0x4c9b60['pg'][_0x47a033(0xa7)](_0x47a033(0xa8),[_0x35e88b[_0x47a033(0xb5)][_0x47a033(0xa6)]??null,_0x35e88b[_0x47a033(0xb5)][_0x47a033(0xaa)]??null,_0x25e24e,_0x35e88b[_0x47a033(0xb4)][_0x47a033(0xba)]]);return _0x2b1874[_0x47a033(0xa4)][0x0];}
@@ -1 +1 @@
1
- function _0x497e(){var _0x289d41=['1962184PZmfOx','2143lKPtkS','1816yENIWz','322876SoZpJR','55zjaNAR','4065066jeTJqw','1049543hcBTjl','6326946IyYjFm','190HzUoAX','17694dpEejt','550Cfqsrs'];_0x497e=function(){return _0x289d41;};return _0x497e();}(function(_0x4f1309,_0x4f3a79){var _0x3fa140=_0x4ba1,_0x2390f8=_0x4f1309();while(!![]){try{var _0xedde71=-parseInt(_0x3fa140(0x16a))/0x1*(-parseInt(_0x3fa140(0x168))/0x2)+-parseInt(_0x3fa140(0x16e))/0x3+-parseInt(_0x3fa140(0x16c))/0x4*(-parseInt(_0x3fa140(0x16d))/0x5)+-parseInt(_0x3fa140(0x170))/0x6+parseInt(_0x3fa140(0x169))/0x7+parseInt(_0x3fa140(0x16b))/0x8*(-parseInt(_0x3fa140(0x167))/0x9)+-parseInt(_0x3fa140(0x171))/0xa*(-parseInt(_0x3fa140(0x16f))/0xb);if(_0xedde71===_0x4f3a79)break;else _0x2390f8['push'](_0x2390f8['shift']());}catch(_0x1202a0){_0x2390f8['push'](_0x2390f8['shift']());}}}(_0x497e,0xae766));export*from'./route.js';function _0x4ba1(_0x5787e6,_0x38fe7c){_0x5787e6=_0x5787e6-0x167;var _0x497ee2=_0x497e();var _0x4ba154=_0x497ee2[_0x5787e6];return _0x4ba154;}export*from'./services/list-resources.js';export*from'./services/get-resource.js';export*from'./services/create-resource.js';export*from'./services/update-resource.js';export*from'./services/delete-resource.js';export*from'./services/list-resource-relation.js';export*from'./services/create-resource-relation.js';export*from'./services/delete-resource-relation.js';export*from'./services/list-children.js';export*from'./services/search-resource.js';export*from'./services/export-resource.js';export*from'./services/suggest-resource.js';export*from'./services/add-note.js';export*from'./services/add-resource-file.js';export*from'./services/upload-resource-file.js';
1
+ (function(_0x474bdf,_0x3e5e4f){var _0x307076=_0x1281,_0x5ad970=_0x474bdf();while(!![]){try{var _0x2adcae=-parseInt(_0x307076(0xd2))/0x1+-parseInt(_0x307076(0xd6))/0x2+-parseInt(_0x307076(0xd0))/0x3+parseInt(_0x307076(0xcf))/0x4*(parseInt(_0x307076(0xce))/0x5)+-parseInt(_0x307076(0xd5))/0x6*(parseInt(_0x307076(0xd3))/0x7)+parseInt(_0x307076(0xd1))/0x8*(parseInt(_0x307076(0xcd))/0x9)+parseInt(_0x307076(0xd4))/0xa;if(_0x2adcae===_0x3e5e4f)break;else _0x5ad970['push'](_0x5ad970['shift']());}catch(_0x2b1eaf){_0x5ad970['push'](_0x5ad970['shift']());}}}(_0x2749,0xd5f77));export*from'./route.js';export*from'./services/list-resources.js';export*from'./services/get-resource.js';export*from'./services/create-resource.js';export*from'./services/update-resource.js';export*from'./services/delete-resource.js';export*from'./services/list-resource-relation.js';export*from'./services/create-resource-relation.js';function _0x2749(){var _0x526a9c=['2828pKobQs','1605771CHqjQE','64WtrYch','684597JiqJPU','47719KuPXRB','29790640ikZNzg','138tJhjCW','2387212xoyJcd','5868LYiDKT','3270bAJCJo'];_0x2749=function(){return _0x526a9c;};return _0x2749();}export*from'./services/delete-resource-relation.js';export*from'./services/list-children.js';export*from'./services/search-resource.js';export*from'./services/export-resource.js';function _0x1281(_0x52f17e,_0x4d481b){_0x52f17e=_0x52f17e-0xcd;var _0x274914=_0x2749();var _0x12811e=_0x274914[_0x52f17e];return _0x12811e;}export*from'./services/suggest-resource.js';export*from'./services/add-note.js';export*from'./services/add-resource-file.js';export*from'./services/upload-resource-file.js';
@@ -1 +1 @@
1
- const _0x51485a=_0x22e5;(function(_0x410c08,_0x9ff2e9){const _0x5d5590=_0x22e5,_0x3641c4=_0x410c08();while(!![]){try{const _0x9e95a0=parseInt(_0x5d5590(0xcb))/0x1*(-parseInt(_0x5d5590(0xd5))/0x2)+-parseInt(_0x5d5590(0x111))/0x3+-parseInt(_0x5d5590(0x113))/0x4+parseInt(_0x5d5590(0x114))/0x5+parseInt(_0x5d5590(0xf9))/0x6*(-parseInt(_0x5d5590(0x10c))/0x7)+-parseInt(_0x5d5590(0x104))/0x8+parseInt(_0x5d5590(0x11b))/0x9;if(_0x9e95a0===_0x9ff2e9)break;else _0x3641c4['push'](_0x3641c4['shift']());}catch(_0xc1e4e6){_0x3641c4['push'](_0x3641c4['shift']());}}}(_0x1a6c,0x21fff));import{listResources}from'./services/list-resources.js';import{getResource}from'./services/get-resource.js';import{createResource}from'./services/create-resource.js';import{updateResource}from'./services/update-resource.js';import{deleteResource}from'./services/delete-resource.js';import{listResourceRelation}from'./services/list-resource-relation.js';import{createResourceRelation}from'./services/create-resource-relation.js';import{deleteResourceRelation}from'./services/delete-resource-relation.js';import{searchResource}from'./services/search-resource.js';import{exportResource}from'./services/export-resource.js';function _0x1a6c(){const _0x397d2b=['Returns\x20related\x20records\x20for\x20a\x20resource\x20record.','EHJDC','KUYKG','526hMONiI','LGbKJ','split','body','rMlAW','query','resource:update','Adds\x20a\x20file\x20to\x20a\x20resource\x20record.','/api/resource/:resource/search','mACSK','422QHxjnI','resourceIdRelationId','VBMZb','ZvgLU','post','delete','resource','Add\x20resource\x20file','Returns\x20notes\x20related\x20to\x20a\x20resource\x20record.','Returns\x20files\x20related\x20to\x20a\x20resource\x20record.','dAtpZ','Updates\x20a\x20record\x20in\x20a\x20registered\x20resource.','FLSGw','fcore','/api/resource/:resource/:id/:relation','tFdCf','Search\x20resource','Deletes\x20a\x20record\x20from\x20a\x20registered\x20resource.','iJRYD','DrQQm','Upload\x20resource\x20file','tags','List\x20resource\x20records','Export\x20resource\x20records','Removes\x20a\x20file\x20relation\x20from\x20a\x20resource\x20record.','Searches\x20records\x20in\x20a\x20registered\x20resource.','params','qEAdr','List\x20resource\x20relations','get','xmcqZ','uploadResourceFile','querystring','resourceIdRelation','Create\x20resource\x20relation','/api/resource/:resource/:id/files','1038QCdHcW','Returns\x20one\x20record\x20from\x20a\x20registered\x20resource.','wHJCb','gjxiz','7|5|8|3|13|12|14|15|9|4|1|11|2|16|0|6|10','HYBUt','/api/resource/:resource/:id/notes','schema','Add\x20resource\x20note','Returns\x20records\x20from\x20a\x20registered\x20resource.','Delete\x20resource\x20record','624672rLxlZa','/api/resource/:resource/suggest/:field','*:read','/api/resource/:resource/:id','Delete\x20resource\x20file','Create\x20resource\x20record','/api/resource/:resource/:id/files/:relationId','NCdtg','2338kaLoJA','Deletes\x20a\x20relation\x20from\x20a\x20resource\x20record.','user','kpxJN','NkWAS','641772DLAGSR','suggestQuery','504968iGoziJ','701960SPfAey','xnGRH','Get\x20resource\x20record','resourceField','resourceId','KPmOf','JUGgE','5273001cOGnNW','Delete\x20resource\x20relation','Update\x20resource\x20record','/api/resource/:resource/:id/:relation/:relationId','access','exportResource','eJKzp','description','GnwjR','uploadResourceFileBody','Creates\x20a\x20relation\x20for\x20a\x20resource\x20record.','/api/resource/:resource','notes','Creates\x20a\x20record\x20in\x20a\x20registered\x20resource.','Suggest\x20resource\x20values','iiDUG','CjgCs','exportResourceQuery','cUUlR','YtKeL','NCRes','tNeBr','EwIiB','DFVTq','Returns\x20suggested\x20values\x20for\x20a\x20resource\x20field.','/api/resource/:resource/export','files','qHgKq','List\x20resource\x20files','Exports\x20readable\x20records\x20from\x20a\x20registered\x20resource.','wKRjq','Adds\x20a\x20note\x20to\x20a\x20resource\x20record.','nyUGJ','/api/resource/:resource/:id/upload','List\x20resource\x20notes','Uploads\x20a\x20file\x20to\x20a\x20Resource\x20record\x20and\x20stores\x20its\x20metadata.','permissions','summary','patch'];_0x1a6c=function(){return _0x397d2b;};return _0x1a6c();}import{suggestResource}from'./services/suggest-resource.js';function _0x22e5(_0x47571c,_0x1e0dbc){_0x47571c=_0x47571c-0xa3;const _0x1a6cbe=_0x1a6c();let _0x22e57f=_0x1a6cbe[_0x47571c];return _0x22e57f;}import{addNote}from'./services/add-note.js';import{addResourceFile}from'./services/add-resource-file.js';import{uploadResourceFile}from'./services/upload-resource-file.js';import{resourceSchemas}from'./schema.js';const user=_0x1025ab=>_0x1025ab[_0x51485a(0x10e)];export function resourceRoutes(_0x46320e){const _0xa1801=_0x51485a,_0xe713f8={};_0xe713f8[_0xa1801(0xb5)]=_0xa1801(0xe2),_0xe713f8[_0xa1801(0x110)]=_0xa1801(0xdb),_0xe713f8[_0xa1801(0xa9)]=_0xa1801(0xf1),_0xe713f8[_0xa1801(0xb6)]=_0xa1801(0xc8),_0xe713f8[_0xa1801(0xb4)]=_0xa1801(0xf8),_0xe713f8[_0xa1801(0xdf)]=_0xa1801(0xc2),_0xe713f8[_0xa1801(0xfb)]=_0xa1801(0xc4),_0xe713f8[_0xa1801(0x10f)]=_0xa1801(0x10e),_0xe713f8[_0xa1801(0xca)]=_0xa1801(0xd1),_0xe713f8[_0xa1801(0xb3)]=_0xa1801(0xac),_0xe713f8[_0xa1801(0xd4)]=_0xa1801(0xeb),_0xe713f8[_0xa1801(0xe8)]=_0xa1801(0x102),_0xe713f8[_0xa1801(0xf3)]=_0xa1801(0xff),_0xe713f8[_0xa1801(0xcc)]=_0xa1801(0x101),_0xe713f8[_0xa1801(0xd8)]=_0xa1801(0xc0),_0xe713f8[_0xa1801(0x10b)]=_0xa1801(0xaf),_0xe713f8[_0xa1801(0x11a)]=_0xa1801(0xe3),_0xe713f8[_0xa1801(0xe4)]=_0xa1801(0xab),_0xe713f8[_0xa1801(0xc9)]=_0xa1801(0xd3),_0xe713f8[_0xa1801(0xb1)]=_0xa1801(0xe5),_0xe713f8[_0xa1801(0x119)]=_0xa1801(0xee),_0xe713f8[_0xa1801(0xcf)]=_0xa1801(0xba),_0xe713f8[_0xa1801(0xe1)]=_0xa1801(0xec),_0xe713f8[_0xa1801(0xb8)]=_0xa1801(0xdd),_0xe713f8[_0xa1801(0xfe)]=_0xa1801(0xa4),_0xe713f8[_0xa1801(0xbf)]=_0xa1801(0x11c),_0xe713f8[_0xa1801(0xe7)]=_0xa1801(0x10d),_0xe713f8[_0xa1801(0xc1)]=_0xa1801(0xd2),_0xe713f8[_0xa1801(0xbc)]=_0xa1801(0xfa),_0xe713f8[_0xa1801(0xf0)]=_0xa1801(0x109),_0xe713f8[_0xa1801(0xb7)]=_0xa1801(0xae),_0xe713f8[_0xa1801(0xb0)]=_0xa1801(0x107),_0xe713f8[_0xa1801(0xd7)]=_0xa1801(0xa3),_0xe713f8[_0xa1801(0xa7)]=_0xa1801(0xe0),_0xe713f8[_0xa1801(0x115)]=_0xa1801(0x103),_0xe713f8[_0xa1801(0xfc)]=_0xa1801(0x108);const _0x1c1b43=_0xe713f8;return async _0x1a3b15=>{const _0x1f9d3d=_0xa1801,_0x4ae304=_0x1f9d3d(0xfd)[_0x1f9d3d(0xcd)]('|');let _0x12d522=0x0;while(!![]){switch(_0x4ae304[_0x12d522++]){case'0':const _0x220712={};_0x220712[_0x1f9d3d(0xea)]=[_0x1c1b43[_0x1f9d3d(0xb5)],_0x1c1b43[_0x1f9d3d(0x110)]],_0x220712[_0x1f9d3d(0xc6)]=_0x1c1b43[_0x1f9d3d(0xa9)],_0x220712[_0x1f9d3d(0xa8)]=_0x1c1b43[_0x1f9d3d(0xb6)],_0x220712[_0x1f9d3d(0xa5)]=_0x1f9d3d(0x10e),_0x220712[_0x1f9d3d(0xc5)]=[],_0x220712[_0x1f9d3d(0xef)]=resourceSchemas[_0x1f9d3d(0xf6)];const _0x1c2417={};_0x1c2417[_0x1f9d3d(0x100)]=_0x220712,_0x1a3b15[_0x1f9d3d(0xf2)](_0x1f9d3d(0xe3),_0x1c2417,async _0x30de00=>listResourceRelation({..._0x30de00[_0x1f9d3d(0xd0)],..._0x30de00[_0x1f9d3d(0xef)],'user':user(_0x30de00)},_0x46320e));continue;case'1':_0x1a3b15[_0x1f9d3d(0xf2)](_0x1c1b43[_0x1f9d3d(0xb4)],{'schema':{'tags':[_0x1c1b43[_0x1f9d3d(0xb5)],_0x1c1b43[_0x1f9d3d(0x110)]],'summary':_0x1f9d3d(0xbd),'description':_0x1f9d3d(0xde),'access':_0x1f9d3d(0x10e),'permissions':[],'params':resourceSchemas[_0x1f9d3d(0x118)]}},async _0x51d004=>listResourceRelation({..._0x51d004[_0x1f9d3d(0xef)],'relation':_0x1f9d3d(0xbb),'user':user(_0x51d004)},_0x46320e));continue;case'2':_0x1a3b15[_0x1f9d3d(0xd9)](_0x1c1b43[_0x1f9d3d(0xdf)],{'schema':{'tags':[_0x1f9d3d(0xe2),_0x1c1b43[_0x1f9d3d(0x110)]],'summary':_0x1f9d3d(0xe9),'description':_0x1c1b43[_0x1f9d3d(0xfb)],'access':_0x1c1b43[_0x1f9d3d(0x10f)],'permissions':[_0x1c1b43[_0x1f9d3d(0xca)]],'params':resourceSchemas[_0x1f9d3d(0xf4)],'body':resourceSchemas[_0x1f9d3d(0xaa)]}},async _0x4ef707=>uploadResourceFile({..._0x4ef707[_0x1f9d3d(0xef)],..._0x4ef707[_0x1f9d3d(0xce)],'user':user(_0x4ef707)},_0x46320e));continue;case'3':_0x1a3b15[_0x1f9d3d(0xf2)](_0x1c1b43[_0x1f9d3d(0xb3)],{'schema':{'tags':[_0x1c1b43[_0x1f9d3d(0xb5)],_0x1c1b43[_0x1f9d3d(0x110)]],'summary':_0x1c1b43[_0x1f9d3d(0xd4)],'description':_0x1c1b43[_0x1f9d3d(0xe8)],'access':_0x1c1b43[_0x1f9d3d(0x10f)],'permissions':[],'params':resourceSchemas[_0x1f9d3d(0xdb)]}},async _0x1757cd=>listResources({..._0x1757cd[_0x1f9d3d(0xd0)],..._0x1757cd[_0x1f9d3d(0xef)],'user':user(_0x1757cd)},_0x46320e));continue;case'4':_0x1a3b15[_0x1f9d3d(0xd9)](_0x1c1b43[_0x1f9d3d(0xf3)],{'schema':{'tags':[_0x1c1b43[_0x1f9d3d(0xb5)],_0x1f9d3d(0xdb)],'summary':_0x1c1b43[_0x1f9d3d(0xcc)],'description':_0x1c1b43[_0x1f9d3d(0xd8)],'access':_0x1f9d3d(0x10e),'permissions':[],'params':resourceSchemas[_0x1f9d3d(0x118)]}},async _0x306d17=>addNote({..._0x306d17[_0x1f9d3d(0xef)],..._0x306d17[_0x1f9d3d(0xce)],'user':user(_0x306d17)},_0x46320e));continue;case'5':const _0x4c6d97={};_0x4c6d97[_0x1f9d3d(0xea)]=[_0x1c1b43[_0x1f9d3d(0xb5)],_0x1c1b43[_0x1f9d3d(0x110)]],_0x4c6d97[_0x1f9d3d(0xc6)]=_0x1c1b43[_0x1f9d3d(0x10b)],_0x4c6d97[_0x1f9d3d(0xa8)]=_0x1f9d3d(0xb9),_0x4c6d97[_0x1f9d3d(0xa5)]=_0x1c1b43[_0x1f9d3d(0x10f)],_0x4c6d97[_0x1f9d3d(0xc5)]=[],_0x4c6d97[_0x1f9d3d(0xef)]=resourceSchemas[_0x1f9d3d(0x117)],_0x4c6d97[_0x1f9d3d(0xf5)]=resourceSchemas[_0x1f9d3d(0x112)];const _0x50281d={};_0x50281d[_0x1f9d3d(0x100)]=_0x4c6d97,_0x1a3b15[_0x1f9d3d(0xf2)](_0x1f9d3d(0x105),_0x50281d,async _0x1d4a88=>suggestResource({..._0x1d4a88[_0x1f9d3d(0xd0)],..._0x1d4a88[_0x1f9d3d(0xef)],'user':user(_0x1d4a88)},_0x46320e));continue;case'6':_0x1a3b15[_0x1f9d3d(0xd9)](_0x1c1b43[_0x1f9d3d(0x11a)],{'schema':{'tags':[_0x1c1b43[_0x1f9d3d(0xb5)],_0x1c1b43[_0x1f9d3d(0x110)]],'summary':_0x1f9d3d(0xf7),'description':_0x1c1b43[_0x1f9d3d(0xe4)],'access':_0x1f9d3d(0x10e),'permissions':[],'params':resourceSchemas[_0x1f9d3d(0xf6)]}},async _0x5d64d0=>createResourceRelation({..._0x5d64d0[_0x1f9d3d(0xef)],'data':_0x5d64d0[_0x1f9d3d(0xce)],'user':user(_0x5d64d0)},_0x46320e));continue;case'7':_0x1a3b15[_0x1f9d3d(0xf2)](_0x1c1b43[_0x1f9d3d(0xc9)],{'schema':{'tags':[_0x1f9d3d(0xe2),_0x1c1b43[_0x1f9d3d(0x110)]],'summary':_0x1c1b43[_0x1f9d3d(0xb1)],'description':_0x1c1b43[_0x1f9d3d(0x119)],'access':_0x1f9d3d(0x10e),'permissions':[],'params':resourceSchemas[_0x1f9d3d(0xdb)]}},async _0x333341=>searchResource({..._0x333341[_0x1f9d3d(0xd0)],..._0x333341[_0x1f9d3d(0xef)],'user':user(_0x333341)},_0x46320e));continue;case'8':_0x1a3b15[_0x1f9d3d(0xf2)](_0x1c1b43[_0x1f9d3d(0xcf)],{'schema':{'tags':[_0x1c1b43[_0x1f9d3d(0xb5)],_0x1f9d3d(0xdb)],'summary':_0x1c1b43[_0x1f9d3d(0xe1)],'description':_0x1f9d3d(0xbe),'access':_0x1c1b43[_0x1f9d3d(0x10f)],'permissions':[_0x1f9d3d(0x106)],'params':resourceSchemas[_0x1f9d3d(0xa6)],'querystring':resourceSchemas[_0x1f9d3d(0xb2)]}},async _0x504419=>exportResource({..._0x504419[_0x1f9d3d(0xd0)],..._0x504419[_0x1f9d3d(0xef)],'user':user(_0x504419)},_0x46320e));continue;case'9':const _0x58eccf={};_0x58eccf[_0x1f9d3d(0xea)]=[_0x1f9d3d(0xe2),_0x1c1b43[_0x1f9d3d(0x110)]],_0x58eccf[_0x1f9d3d(0xc6)]=_0x1f9d3d(0xc3),_0x58eccf[_0x1f9d3d(0xa8)]=_0x1c1b43[_0x1f9d3d(0xb8)],_0x58eccf[_0x1f9d3d(0xa5)]=_0x1c1b43[_0x1f9d3d(0x10f)],_0x58eccf[_0x1f9d3d(0xc5)]=[],_0x58eccf[_0x1f9d3d(0xef)]=resourceSchemas[_0x1f9d3d(0x118)];const _0xab9f25={};_0xab9f25[_0x1f9d3d(0x100)]=_0x58eccf,_0x1a3b15[_0x1f9d3d(0xf2)](_0x1f9d3d(0xff),_0xab9f25,async _0x4b4d0f=>listResourceRelation({..._0x4b4d0f[_0x1f9d3d(0xef)],'relation':_0x1f9d3d(0xad),'user':user(_0x4b4d0f)},_0x46320e));continue;case'10':_0x1a3b15[_0x1f9d3d(0xda)](_0x1c1b43[_0x1f9d3d(0xfe)],{'schema':{'tags':[_0x1f9d3d(0xe2),_0x1c1b43[_0x1f9d3d(0x110)]],'summary':_0x1c1b43[_0x1f9d3d(0xbf)],'description':_0x1c1b43[_0x1f9d3d(0xe7)],'access':_0x1c1b43[_0x1f9d3d(0x10f)],'permissions':[],'params':resourceSchemas[_0x1f9d3d(0xd6)]}},async _0x214961=>deleteResourceRelation({..._0x214961[_0x1f9d3d(0xef)],'user':user(_0x214961)},_0x46320e));continue;case'11':_0x1a3b15[_0x1f9d3d(0xd9)](_0x1c1b43[_0x1f9d3d(0xb4)],{'schema':{'tags':[_0x1f9d3d(0xe2),_0x1c1b43[_0x1f9d3d(0x110)]],'summary':_0x1f9d3d(0xdc),'description':_0x1c1b43[_0x1f9d3d(0xc1)],'access':_0x1c1b43[_0x1f9d3d(0x10f)],'permissions':[],'params':resourceSchemas[_0x1f9d3d(0x118)]}},async _0x35b150=>addResourceFile({..._0x35b150[_0x1f9d3d(0xef)],..._0x35b150[_0x1f9d3d(0xce)],'user':user(_0x35b150)},_0x46320e));continue;case'12':const _0x1c3936={};_0x1c3936[_0x1f9d3d(0xea)]=[_0x1f9d3d(0xe2),_0x1c1b43[_0x1f9d3d(0x110)]],_0x1c3936[_0x1f9d3d(0xc6)]=_0x1f9d3d(0x116),_0x1c3936[_0x1f9d3d(0xa8)]=_0x1c1b43[_0x1f9d3d(0xbc)],_0x1c3936[_0x1f9d3d(0xa5)]=_0x1c1b43[_0x1f9d3d(0x10f)],_0x1c3936[_0x1f9d3d(0xc5)]=[],_0x1c3936[_0x1f9d3d(0xef)]=resourceSchemas[_0x1f9d3d(0x118)];const _0x1d47be={};_0x1d47be[_0x1f9d3d(0x100)]=_0x1c3936,_0x1a3b15[_0x1f9d3d(0xf2)](_0x1f9d3d(0x107),_0x1d47be,async _0x2636ca=>getResource({..._0x2636ca[_0x1f9d3d(0xef)],'user':user(_0x2636ca)},_0x46320e));continue;case'13':_0x1a3b15[_0x1f9d3d(0xd9)](_0x1c1b43[_0x1f9d3d(0xb3)],{'schema':{'tags':[_0x1f9d3d(0xe2),_0x1c1b43[_0x1f9d3d(0x110)]],'summary':_0x1c1b43[_0x1f9d3d(0xf0)],'description':_0x1c1b43[_0x1f9d3d(0xb7)],'access':_0x1c1b43[_0x1f9d3d(0x10f)],'permissions':[],'params':resourceSchemas[_0x1f9d3d(0xdb)]}},async _0x3aabb2=>createResource({..._0x3aabb2[_0x1f9d3d(0xef)],'data':_0x3aabb2[_0x1f9d3d(0xce)],'user':user(_0x3aabb2)},_0x46320e));continue;case'14':_0x1a3b15[_0x1f9d3d(0xc7)](_0x1c1b43[_0x1f9d3d(0xb0)],{'schema':{'tags':[_0x1f9d3d(0xe2),_0x1c1b43[_0x1f9d3d(0x110)]],'summary':_0x1c1b43[_0x1f9d3d(0xd7)],'description':_0x1c1b43[_0x1f9d3d(0xa7)],'access':_0x1c1b43[_0x1f9d3d(0x10f)],'permissions':[],'params':resourceSchemas[_0x1f9d3d(0x118)]}},async _0x3e4bde=>updateResource({..._0x3e4bde[_0x1f9d3d(0xef)],'patch':_0x3e4bde[_0x1f9d3d(0xce)],'user':user(_0x3e4bde)},_0x46320e));continue;case'15':const _0x2fbf60={};_0x2fbf60[_0x1f9d3d(0xea)]=[_0x1c1b43[_0x1f9d3d(0xb5)],_0x1f9d3d(0xdb)],_0x2fbf60[_0x1f9d3d(0xc6)]=_0x1c1b43[_0x1f9d3d(0x115)],_0x2fbf60[_0x1f9d3d(0xa8)]=_0x1f9d3d(0xe6),_0x2fbf60[_0x1f9d3d(0xa5)]=_0x1f9d3d(0x10e),_0x2fbf60[_0x1f9d3d(0xc5)]=[],_0x2fbf60[_0x1f9d3d(0xef)]=resourceSchemas[_0x1f9d3d(0x118)];const _0x100238={};_0x100238[_0x1f9d3d(0x100)]=_0x2fbf60,_0x1a3b15[_0x1f9d3d(0xda)](_0x1f9d3d(0x107),_0x100238,async _0x17458d=>deleteResource({..._0x17458d[_0x1f9d3d(0xef)],'user':user(_0x17458d)},_0x46320e));continue;case'16':const _0x3a950a={};_0x3a950a[_0x1f9d3d(0xea)]=[_0x1c1b43[_0x1f9d3d(0xb5)],_0x1c1b43[_0x1f9d3d(0x110)]],_0x3a950a[_0x1f9d3d(0xc6)]=_0x1c1b43[_0x1f9d3d(0xfc)],_0x3a950a[_0x1f9d3d(0xa8)]=_0x1f9d3d(0xed),_0x3a950a[_0x1f9d3d(0xa5)]=_0x1c1b43[_0x1f9d3d(0x10f)],_0x3a950a[_0x1f9d3d(0xc5)]=[],_0x3a950a[_0x1f9d3d(0xef)]=resourceSchemas[_0x1f9d3d(0xd6)];const _0x51ad2c={};_0x51ad2c[_0x1f9d3d(0x100)]=_0x3a950a,_0x1a3b15[_0x1f9d3d(0xda)](_0x1f9d3d(0x10a),_0x51ad2c,async _0x2c38e7=>deleteResourceRelation({..._0x2c38e7[_0x1f9d3d(0xef)],'relation':_0x1f9d3d(0xbb),'user':user(_0x2c38e7)},_0x46320e));continue;}break;}};}
1
+ const _0x58e7dd=_0x21f3;(function(_0x35ba4c,_0x4ddd89){const _0x27d7d3=_0x21f3,_0x40e9a2=_0x35ba4c();while(!![]){try{const _0x10bac5=parseInt(_0x27d7d3(0x1cb))/0x1*(parseInt(_0x27d7d3(0x20d))/0x2)+-parseInt(_0x27d7d3(0x204))/0x3+-parseInt(_0x27d7d3(0x1bb))/0x4*(-parseInt(_0x27d7d3(0x1c1))/0x5)+-parseInt(_0x27d7d3(0x1ff))/0x6+parseInt(_0x27d7d3(0x20b))/0x7+-parseInt(_0x27d7d3(0x21d))/0x8+parseInt(_0x27d7d3(0x20a))/0x9;if(_0x10bac5===_0x4ddd89)break;else _0x40e9a2['push'](_0x40e9a2['shift']());}catch(_0x12e6ef){_0x40e9a2['push'](_0x40e9a2['shift']());}}}(_0x2446,0xe0794));import{listResources}from'./services/list-resources.js';import{getResource}from'./services/get-resource.js';import{createResource}from'./services/create-resource.js';import{updateResource}from'./services/update-resource.js';import{deleteResource}from'./services/delete-resource.js';import{listResourceRelation}from'./services/list-resource-relation.js';import{createResourceRelation}from'./services/create-resource-relation.js';import{deleteResourceRelation}from'./services/delete-resource-relation.js';import{searchResource}from'./services/search-resource.js';import{exportResource}from'./services/export-resource.js';import{suggestResource}from'./services/suggest-resource.js';import{addNote}from'./services/add-note.js';import{addResourceFile}from'./services/add-resource-file.js';import{uploadResourceFile}from'./services/upload-resource-file.js';import{resourceSchemas}from'./schema.js';const user=_0x357654=>_0x357654[_0x58e7dd(0x1ed)];function _0x21f3(_0x6a5ba2,_0x400f35){_0x6a5ba2=_0x6a5ba2-0x1b0;const _0x2446c9=_0x2446();let _0x21f392=_0x2446c9[_0x6a5ba2];return _0x21f392;}export function resourceRoutes(_0x51872c){const _0xd4866c=_0x58e7dd,_0x324896={};_0x324896[_0xd4866c(0x1c0)]=_0xd4866c(0x1d5),_0x324896[_0xd4866c(0x1ca)]=_0xd4866c(0x1b9),_0x324896[_0xd4866c(0x211)]=_0xd4866c(0x224),_0x324896[_0xd4866c(0x1b8)]=_0xd4866c(0x214),_0x324896[_0xd4866c(0x1f8)]=_0xd4866c(0x1ec),_0x324896[_0xd4866c(0x1b0)]=_0xd4866c(0x220),_0x324896[_0xd4866c(0x221)]=_0xd4866c(0x1d7),_0x324896[_0xd4866c(0x1c4)]=_0xd4866c(0x1ed),_0x324896[_0xd4866c(0x1b4)]=_0xd4866c(0x1ce),_0x324896[_0xd4866c(0x1db)]=_0xd4866c(0x1cf),_0x324896[_0xd4866c(0x1e5)]=_0xd4866c(0x1f9),_0x324896[_0xd4866c(0x1d2)]=_0xd4866c(0x1d8),_0x324896[_0xd4866c(0x1d9)]=_0xd4866c(0x223),_0x324896[_0xd4866c(0x207)]=_0xd4866c(0x1e4),_0x324896[_0xd4866c(0x225)]=_0xd4866c(0x21a),_0x324896[_0xd4866c(0x1fe)]=_0xd4866c(0x213),_0x324896[_0xd4866c(0x219)]=_0xd4866c(0x1b2),_0x324896[_0xd4866c(0x1d6)]=_0xd4866c(0x1e8),_0x324896[_0xd4866c(0x1ea)]=_0xd4866c(0x1bf),_0x324896[_0xd4866c(0x1d4)]=_0xd4866c(0x203),_0x324896[_0xd4866c(0x1da)]=_0xd4866c(0x1fc),_0x324896[_0xd4866c(0x1d0)]=_0xd4866c(0x1c5),_0x324896[_0xd4866c(0x1fa)]=_0xd4866c(0x208),_0x324896[_0xd4866c(0x21c)]=_0xd4866c(0x1b6),_0x324896[_0xd4866c(0x20f)]=_0xd4866c(0x218),_0x324896[_0xd4866c(0x1cc)]=_0xd4866c(0x1e6),_0x324896[_0xd4866c(0x202)]=_0xd4866c(0x1c3),_0x324896[_0xd4866c(0x1c8)]=_0xd4866c(0x1bd),_0x324896[_0xd4866c(0x1f7)]=_0xd4866c(0x1be),_0x324896[_0xd4866c(0x21e)]=_0xd4866c(0x21f),_0x324896[_0xd4866c(0x1fb)]=_0xd4866c(0x216),_0x324896[_0xd4866c(0x222)]=_0xd4866c(0x1e0),_0x324896[_0xd4866c(0x1e2)]=_0xd4866c(0x205),_0x324896[_0xd4866c(0x1d1)]=_0xd4866c(0x1f0);const _0x59903e=_0x324896;return async _0x10d75f=>{const _0x35cff7=_0xd4866c,_0x2c7301=_0x59903e[_0x35cff7(0x1c0)][_0x35cff7(0x1e7)]('|');let _0x2c69ab=0x0;while(!![]){switch(_0x2c7301[_0x2c69ab++]){case'0':_0x10d75f[_0x35cff7(0x206)](_0x59903e[_0x35cff7(0x1ca)],{'schema':{'tags':[_0x59903e[_0x35cff7(0x211)],_0x35cff7(0x220)],'summary':_0x59903e[_0x35cff7(0x1b8)],'description':_0x59903e[_0x35cff7(0x1f8)],'access':_0x35cff7(0x1ed),'permissions':[],'params':resourceSchemas[_0x35cff7(0x1c6)]}},async _0x2a18ce=>updateResource({..._0x2a18ce[_0x35cff7(0x1e1)],'patch':_0x2a18ce[_0x35cff7(0x1b1)],'user':user(_0x2a18ce)},_0x51872c));continue;case'1':const _0x4e6f9e={};_0x4e6f9e[_0x35cff7(0x1dd)]=[_0x59903e[_0x35cff7(0x211)],_0x59903e[_0x35cff7(0x1b0)]],_0x4e6f9e[_0x35cff7(0x215)]=_0x59903e[_0x35cff7(0x221)],_0x4e6f9e[_0x35cff7(0x1fd)]=_0x35cff7(0x1eb),_0x4e6f9e[_0x35cff7(0x1f5)]=_0x59903e[_0x35cff7(0x1c4)],_0x4e6f9e[_0x35cff7(0x1e3)]=[],_0x4e6f9e[_0x35cff7(0x1e1)]=resourceSchemas[_0x35cff7(0x226)];const _0x583fe2={};_0x583fe2[_0x35cff7(0x1ba)]=_0x4e6f9e,_0x10d75f[_0x35cff7(0x1df)](_0x35cff7(0x1f3),_0x583fe2,async _0x18659c=>deleteResourceRelation({..._0x18659c[_0x35cff7(0x1e1)],'relation':_0x35cff7(0x1de),'user':user(_0x18659c)},_0x51872c));continue;case'2':_0x10d75f[_0x35cff7(0x200)](_0x59903e[_0x35cff7(0x1ca)],{'schema':{'tags':[_0x59903e[_0x35cff7(0x211)],_0x59903e[_0x35cff7(0x1b0)]],'summary':_0x35cff7(0x209),'description':_0x59903e[_0x35cff7(0x1b4)],'access':_0x59903e[_0x35cff7(0x1c4)],'permissions':[],'params':resourceSchemas[_0x35cff7(0x1c6)]}},async _0x24c210=>getResource({..._0x24c210[_0x35cff7(0x1e1)],'user':user(_0x24c210)},_0x51872c));continue;case'3':_0x10d75f[_0x35cff7(0x1df)](_0x59903e[_0x35cff7(0x1db)],{'schema':{'tags':[_0x59903e[_0x35cff7(0x211)],_0x35cff7(0x220)],'summary':_0x59903e[_0x35cff7(0x1e5)],'description':_0x59903e[_0x35cff7(0x1d2)],'access':_0x35cff7(0x1ed),'permissions':[],'params':resourceSchemas[_0x35cff7(0x226)]}},async _0x1ff739=>deleteResourceRelation({..._0x1ff739[_0x35cff7(0x1e1)],'user':user(_0x1ff739)},_0x51872c));continue;case'4':_0x10d75f[_0x35cff7(0x1bc)](_0x59903e[_0x35cff7(0x1d9)],{'schema':{'tags':[_0x59903e[_0x35cff7(0x211)],_0x59903e[_0x35cff7(0x1b0)]],'summary':_0x35cff7(0x210),'description':_0x59903e[_0x35cff7(0x207)],'access':_0x59903e[_0x35cff7(0x1c4)],'permissions':[],'params':resourceSchemas[_0x35cff7(0x220)]}},async _0x11177c=>createResource({..._0x11177c[_0x35cff7(0x1e1)],'data':_0x11177c[_0x35cff7(0x1b1)],'user':user(_0x11177c)},_0x51872c));continue;case'5':_0x10d75f[_0x35cff7(0x1bc)](_0x59903e[_0x35cff7(0x225)],{'schema':{'tags':[_0x59903e[_0x35cff7(0x211)],_0x59903e[_0x35cff7(0x1b0)]],'summary':_0x35cff7(0x1f4),'description':_0x59903e[_0x35cff7(0x1fe)],'access':_0x59903e[_0x35cff7(0x1c4)],'permissions':[],'params':resourceSchemas[_0x35cff7(0x1f2)]}},async _0x19fd8e=>createResourceRelation({..._0x19fd8e[_0x35cff7(0x1e1)],'data':_0x19fd8e[_0x35cff7(0x1b1)],'user':user(_0x19fd8e)},_0x51872c));continue;case'6':const _0x4e9a54={};_0x4e9a54[_0x35cff7(0x1dd)]=[_0x59903e[_0x35cff7(0x211)],_0x59903e[_0x35cff7(0x1b0)]],_0x4e9a54[_0x35cff7(0x215)]=_0x59903e[_0x35cff7(0x219)],_0x4e9a54[_0x35cff7(0x1fd)]=_0x35cff7(0x1c2),_0x4e9a54[_0x35cff7(0x1f5)]=_0x35cff7(0x1ed),_0x4e9a54[_0x35cff7(0x1e3)]=[],_0x4e9a54[_0x35cff7(0x1e1)]=resourceSchemas[_0x35cff7(0x1f2)];const _0x56f5d6={};_0x56f5d6[_0x35cff7(0x1ba)]=_0x4e9a54,_0x10d75f[_0x35cff7(0x200)](_0x35cff7(0x21a),_0x56f5d6,async _0x131561=>listResourceRelation({..._0x131561[_0x35cff7(0x1f1)],..._0x131561[_0x35cff7(0x1e1)],'user':user(_0x131561)},_0x51872c));continue;case'7':_0x10d75f[_0x35cff7(0x1bc)](_0x59903e[_0x35cff7(0x1d6)],{'schema':{'tags':[_0x59903e[_0x35cff7(0x211)],_0x59903e[_0x35cff7(0x1b0)]],'summary':_0x35cff7(0x1dc),'description':_0x35cff7(0x212),'access':_0x35cff7(0x1ed),'permissions':[_0x35cff7(0x1ee)],'params':resourceSchemas[_0x35cff7(0x21b)],'body':resourceSchemas[_0x35cff7(0x20e)]}},async _0x4c331a=>uploadResourceFile({..._0x4c331a[_0x35cff7(0x1e1)],..._0x4c331a[_0x35cff7(0x1b1)],'user':user(_0x4c331a)},_0x51872c));continue;case'8':_0x10d75f[_0x35cff7(0x200)](_0x59903e[_0x35cff7(0x1ea)],{'schema':{'tags':[_0x59903e[_0x35cff7(0x211)],_0x59903e[_0x35cff7(0x1b0)]],'summary':_0x35cff7(0x1cd),'description':_0x35cff7(0x1c7),'access':_0x35cff7(0x1ed),'permissions':[],'params':resourceSchemas[_0x35cff7(0x1f6)],'querystring':resourceSchemas[_0x35cff7(0x1c9)]}},async _0x1af09e=>suggestResource({..._0x1af09e[_0x35cff7(0x1f1)],..._0x1af09e[_0x35cff7(0x1e1)],'user':user(_0x1af09e)},_0x51872c));continue;case'9':_0x10d75f[_0x35cff7(0x1bc)](_0x59903e[_0x35cff7(0x1d4)],{'schema':{'tags':[_0x59903e[_0x35cff7(0x211)],_0x35cff7(0x220)],'summary':_0x59903e[_0x35cff7(0x1da)],'description':_0x59903e[_0x35cff7(0x1d0)],'access':_0x59903e[_0x35cff7(0x1c4)],'permissions':[],'params':resourceSchemas[_0x35cff7(0x1c6)]}},async _0x1ff407=>addResourceFile({..._0x1ff407[_0x35cff7(0x1e1)],..._0x1ff407[_0x35cff7(0x1b1)],'user':user(_0x1ff407)},_0x51872c));continue;case'10':const _0xab9361={};_0xab9361[_0x35cff7(0x1dd)]=[_0x59903e[_0x35cff7(0x211)],_0x59903e[_0x35cff7(0x1b0)]],_0xab9361[_0x35cff7(0x215)]=_0x59903e[_0x35cff7(0x1fa)],_0xab9361[_0x35cff7(0x1fd)]=_0x59903e[_0x35cff7(0x21c)],_0xab9361[_0x35cff7(0x1f5)]=_0x59903e[_0x35cff7(0x1c4)],_0xab9361[_0x35cff7(0x1e3)]=[],_0xab9361[_0x35cff7(0x1e1)]=resourceSchemas[_0x35cff7(0x220)];const _0x2921c4={};_0x2921c4[_0x35cff7(0x1ba)]=_0xab9361,_0x10d75f[_0x35cff7(0x200)](_0x35cff7(0x217),_0x2921c4,async _0x218905=>searchResource({..._0x218905[_0x35cff7(0x1f1)],..._0x218905[_0x35cff7(0x1e1)],'user':user(_0x218905)},_0x51872c));continue;case'11':_0x10d75f[_0x35cff7(0x200)](_0x59903e[_0x35cff7(0x1d4)],{'schema':{'tags':[_0x59903e[_0x35cff7(0x211)],_0x59903e[_0x35cff7(0x1b0)]],'summary':_0x59903e[_0x35cff7(0x20f)],'description':_0x35cff7(0x20c),'access':_0x35cff7(0x1ed),'permissions':[],'params':resourceSchemas[_0x35cff7(0x1c6)]}},async _0x58c5bc=>listResourceRelation({..._0x58c5bc[_0x35cff7(0x1e1)],'relation':_0x35cff7(0x1de),'user':user(_0x58c5bc)},_0x51872c));continue;case'12':_0x10d75f[_0x35cff7(0x200)](_0x59903e[_0x35cff7(0x1d9)],{'schema':{'tags':[_0x59903e[_0x35cff7(0x211)],_0x59903e[_0x35cff7(0x1b0)]],'summary':_0x59903e[_0x35cff7(0x1cc)],'description':_0x59903e[_0x35cff7(0x202)],'access':_0x35cff7(0x1ed),'permissions':[],'params':resourceSchemas[_0x35cff7(0x220)]}},async _0x3146af=>listResources({..._0x3146af[_0x35cff7(0x1f1)],..._0x3146af[_0x35cff7(0x1e1)],'user':user(_0x3146af)},_0x51872c));continue;case'13':_0x10d75f[_0x35cff7(0x1df)](_0x59903e[_0x35cff7(0x1ca)],{'schema':{'tags':[_0x59903e[_0x35cff7(0x211)],_0x59903e[_0x35cff7(0x1b0)]],'summary':_0x35cff7(0x1ef),'description':_0x59903e[_0x35cff7(0x1c8)],'access':_0x59903e[_0x35cff7(0x1c4)],'permissions':[],'params':resourceSchemas[_0x35cff7(0x1c6)]}},async _0x4ef3ce=>deleteResource({..._0x4ef3ce[_0x35cff7(0x1e1)],'user':user(_0x4ef3ce)},_0x51872c));continue;case'14':_0x10d75f[_0x35cff7(0x200)](_0x59903e[_0x35cff7(0x1f7)],{'schema':{'tags':[_0x59903e[_0x35cff7(0x211)],_0x35cff7(0x220)],'summary':_0x59903e[_0x35cff7(0x21e)],'description':_0x35cff7(0x1b7),'access':_0x59903e[_0x35cff7(0x1c4)],'permissions':[],'params':resourceSchemas[_0x35cff7(0x1c6)]}},async _0x18cdb7=>listResourceRelation({..._0x18cdb7[_0x35cff7(0x1e1)],'relation':_0x35cff7(0x1b5),'user':user(_0x18cdb7)},_0x51872c));continue;case'15':const _0x3c2a3={};_0x3c2a3[_0x35cff7(0x1dd)]=[_0x35cff7(0x224),_0x59903e[_0x35cff7(0x1b0)]],_0x3c2a3[_0x35cff7(0x215)]=_0x59903e[_0x35cff7(0x1fb)],_0x3c2a3[_0x35cff7(0x1fd)]=_0x59903e[_0x35cff7(0x222)],_0x3c2a3[_0x35cff7(0x1f5)]=_0x59903e[_0x35cff7(0x1c4)],_0x3c2a3[_0x35cff7(0x1e3)]=[],_0x3c2a3[_0x35cff7(0x1e1)]=resourceSchemas[_0x35cff7(0x1c6)];const _0x1022c2={};_0x1022c2[_0x35cff7(0x1ba)]=_0x3c2a3,_0x10d75f[_0x35cff7(0x1bc)](_0x35cff7(0x1be),_0x1022c2,async _0x10f574=>addNote({..._0x10f574[_0x35cff7(0x1e1)],..._0x10f574[_0x35cff7(0x1b1)],'user':user(_0x10f574)},_0x51872c));continue;case'16':_0x10d75f[_0x35cff7(0x200)](_0x59903e[_0x35cff7(0x1e2)],{'schema':{'tags':[_0x59903e[_0x35cff7(0x211)],_0x59903e[_0x35cff7(0x1b0)]],'summary':_0x35cff7(0x201),'description':_0x35cff7(0x1b3),'access':_0x59903e[_0x35cff7(0x1c4)],'permissions':[_0x59903e[_0x35cff7(0x1d1)]],'params':resourceSchemas[_0x35cff7(0x1e9)],'querystring':resourceSchemas[_0x35cff7(0x1d3)]}},async _0x29b91a=>exportResource({..._0x29b91a[_0x35cff7(0x1f1)],..._0x29b91a[_0x35cff7(0x1e1)],'user':user(_0x29b91a)},_0x51872c));continue;}break;}};}function _0x2446(){const _0x207e55=['Returns\x20related\x20records\x20for\x20a\x20resource\x20record.','Returns\x20records\x20from\x20a\x20registered\x20resource.','rBgYE','Adds\x20a\x20file\x20to\x20a\x20resource\x20record.','resourceId','Returns\x20suggested\x20values\x20for\x20a\x20resource\x20field.','cyFjz','suggestQuery','edSzd','1184627qpUkfb','HmNeJ','Suggest\x20resource\x20values','Returns\x20one\x20record\x20from\x20a\x20registered\x20resource.','/api/resource/:resource/:id/:relation/:relationId','shCgO','sanQX','PhJcQ','exportResourceQuery','wWiim','10|8|16|12|4|2|0|13|14|15|11|9|7|1|6|5|3','UZDOU','Delete\x20resource\x20file','Deletes\x20a\x20relation\x20from\x20a\x20resource\x20record.','AGFWo','uVRUQ','jNklC','Upload\x20resource\x20file','tags','files','delete','Adds\x20a\x20note\x20to\x20a\x20resource\x20record.','params','ufPRo','permissions','Creates\x20a\x20record\x20in\x20a\x20registered\x20resource.','lMvLy','List\x20resource\x20records','split','/api/resource/:resource/:id/upload','exportResource','wozpT','Removes\x20a\x20file\x20relation\x20from\x20a\x20resource\x20record.','Updates\x20a\x20record\x20in\x20a\x20registered\x20resource.','user','resource:update','Delete\x20resource\x20record','*:read','query','resourceIdRelation','/api/resource/:resource/:id/files/:relationId','Create\x20resource\x20relation','access','resourceField','Kaqje','hoFyY','Delete\x20resource\x20relation','oxmHy','edyEa','Add\x20resource\x20file','description','TRSnA','8118162DqMhJu','get','Export\x20resource\x20records','CvxJk','/api/resource/:resource/:id/files','3559605uncZVt','/api/resource/:resource/export','put','XdXnC','Search\x20resource','Get\x20resource\x20record','23626485rqslNm','5104680CRdmhX','Returns\x20files\x20related\x20to\x20a\x20resource\x20record.','2GSyvOu','uploadResourceFileBody','yuMYt','Create\x20resource\x20record','PiJIs','Uploads\x20a\x20file\x20to\x20a\x20Resource\x20record\x20and\x20stores\x20its\x20metadata.','Creates\x20a\x20relation\x20for\x20a\x20resource\x20record.','Update\x20resource\x20record','summary','Add\x20resource\x20note','/api/resource/:resource/search','List\x20resource\x20files','nrpWj','/api/resource/:resource/:id/:relation','uploadResourceFile','snXaG','9643912AaDLRA','fyCAS','List\x20resource\x20notes','resource','EOFFY','IUUGn','/api/resource/:resource','fcore','muJVd','resourceIdRelationId','KxCMc','body','List\x20resource\x20relations','Exports\x20readable\x20records\x20from\x20a\x20registered\x20resource.','PGsZg','notes','Searches\x20records\x20in\x20a\x20registered\x20resource.','Returns\x20notes\x20related\x20to\x20a\x20resource\x20record.','hDxCG','/api/resource/:resource/:id','schema','38604jPnaSG','post','Deletes\x20a\x20record\x20from\x20a\x20registered\x20resource.','/api/resource/:resource/:id/notes','/api/suggest/:resource/:field','kiiRX','65QNDRiV'];_0x2446=function(){return _0x207e55;};return _0x2446();}
@@ -1 +1 @@
1
- const _0x5e8872=_0x4ec5;(function(_0x47e439,_0x2da2cf){const _0x3c3fde=_0x4ec5,_0x48c5b2=_0x47e439();while(!![]){try{const _0x198a8d=parseInt(_0x3c3fde(0x141))/0x1+parseInt(_0x3c3fde(0x158))/0x2+-parseInt(_0x3c3fde(0x144))/0x3+-parseInt(_0x3c3fde(0x152))/0x4*(parseInt(_0x3c3fde(0x148))/0x5)+parseInt(_0x3c3fde(0x13d))/0x6*(-parseInt(_0x3c3fde(0x14b))/0x7)+parseInt(_0x3c3fde(0x14f))/0x8*(-parseInt(_0x3c3fde(0x153))/0x9)+parseInt(_0x3c3fde(0x146))/0xa;if(_0x198a8d===_0x2da2cf)break;else _0x48c5b2['push'](_0x48c5b2['shift']());}catch(_0x12636a){_0x48c5b2['push'](_0x48c5b2['shift']());}}}(_0x56dd,0x338c1));import{Type}from'@sinclair/typebox';const _0x16a694={};_0x16a694[_0x5e8872(0x149)]=0x1,_0x16a694[_0x5e8872(0x140)]=0x80,_0x16a694[_0x5e8872(0x14e)]=_0x5e8872(0x14d);export const identifier=Type[_0x5e8872(0x150)](_0x16a694);const _0x34426a={};_0x34426a[_0x5e8872(0x142)]=identifier;const _0x15c939={};_0x15c939[_0x5e8872(0x13c)]=identifier;const _0x16b86a={};_0x16b86a[_0x5e8872(0x13c)]=identifier;const _0x1318e7={};_0x1318e7[_0x5e8872(0x13c)]=identifier,_0x1318e7[_0x5e8872(0x147)]=identifier;const _0x21f791={};_0x21f791[_0x5e8872(0x151)]=0x1,_0x21f791[_0x5e8872(0x154)]=0xc8;const _0x21df02={};_0x21df02[_0x5e8872(0x13c)]=identifier,_0x21df02['id']=identifier;const _0x1b22c3={};_0x1b22c3[_0x5e8872(0x13c)]=identifier,_0x1b22c3['id']=identifier,_0x1b22c3[_0x5e8872(0x13f)]=identifier;const _0x514bd2={};_0x514bd2[_0x5e8872(0x13c)]=identifier,_0x514bd2['id']=identifier,_0x514bd2[_0x5e8872(0x13f)]=identifier,_0x514bd2[_0x5e8872(0x145)]=identifier;const _0x2593ba={};_0x2593ba[_0x5e8872(0x13c)]=identifier,_0x2593ba['id']=identifier;const _0xd89ece={};_0xd89ece[_0x5e8872(0x149)]=0x1,_0xd89ece[_0x5e8872(0x140)]=0xff;const _0x568e4f={};function _0x56dd(){const _0x629f55=['Any','Integer','Unknown','566368cJomOg','resource','9168moZWsV','Object','relation','maxLength','44805AofoLx','name','Optional','358731gUZVij','relationId','7100400pLVlBs','field','5570STCocx','minLength','Record','1253wTJmTh','Array','^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$','pattern','24008tpRfTF','String','minimum','340ayQWZn','1017FVRTiQ','maximum'];_0x56dd=function(){return _0x629f55;};return _0x56dd();}function _0x4ec5(_0x41ff5d,_0x18d08b){_0x41ff5d=_0x41ff5d-0x13c;const _0x56dd28=_0x56dd();let _0x4ec5ff=_0x56dd28[_0x41ff5d];return _0x4ec5ff;}_0x568e4f[_0x5e8872(0x149)]=0x1;const _0x5f1c48={};_0x5f1c48[_0x5e8872(0x151)]=0x1,_0x5f1c48[_0x5e8872(0x154)]=0xc8;const _0x38399d={};_0x38399d[_0x5e8872(0x151)]=0x0;export const resourceSchemas={'dictionaryName':Type[_0x5e8872(0x13e)](_0x34426a),'resource':Type[_0x5e8872(0x13e)](_0x15c939),'exportResource':Type[_0x5e8872(0x13e)](_0x16b86a),'resourceField':Type[_0x5e8872(0x13e)](_0x1318e7),'suggestQuery':Type[_0x5e8872(0x13e)]({'q':Type[_0x5e8872(0x143)](Type[_0x5e8872(0x150)]()),'search':Type[_0x5e8872(0x143)](Type[_0x5e8872(0x150)]()),'limit':Type[_0x5e8872(0x143)](Type[_0x5e8872(0x156)](_0x21f791))}),'resourceId':Type[_0x5e8872(0x13e)](_0x21df02),'resourceIdRelation':Type[_0x5e8872(0x13e)](_0x1b22c3),'resourceIdRelationId':Type[_0x5e8872(0x13e)](_0x514bd2),'uploadResourceFile':Type[_0x5e8872(0x13e)](_0x2593ba),'uploadResourceFileBody':Type[_0x5e8872(0x13e)]({'file':Type[_0x5e8872(0x155)](),'fileName':Type[_0x5e8872(0x150)](_0xd89ece)}),'exportResourceQuery':Type[_0x5e8872(0x13e)]({'filter':Type[_0x5e8872(0x143)](Type[_0x5e8872(0x14a)](Type[_0x5e8872(0x150)](),Type[_0x5e8872(0x157)]())),'sort':Type[_0x5e8872(0x143)](Type[_0x5e8872(0x14c)](Type[_0x5e8872(0x150)](_0x568e4f))),'search':Type[_0x5e8872(0x143)](Type[_0x5e8872(0x150)]()),'limit':Type[_0x5e8872(0x143)](Type[_0x5e8872(0x156)](_0x5f1c48)),'offset':Type[_0x5e8872(0x143)](Type[_0x5e8872(0x156)](_0x38399d)),'fields':Type[_0x5e8872(0x143)](Type[_0x5e8872(0x14c)](identifier))})};
1
+ const _0x283bd0=_0xc351;(function(_0x169bd7,_0x37ba61){const _0x314f29=_0xc351,_0x1327f5=_0x169bd7();while(!![]){try{const _0x584dfc=parseInt(_0x314f29(0x170))/0x1*(parseInt(_0x314f29(0x168))/0x2)+-parseInt(_0x314f29(0x16f))/0x3+parseInt(_0x314f29(0x17a))/0x4+parseInt(_0x314f29(0x15d))/0x5+parseInt(_0x314f29(0x161))/0x6*(parseInt(_0x314f29(0x15e))/0x7)+parseInt(_0x314f29(0x175))/0x8*(parseInt(_0x314f29(0x179))/0x9)+-parseInt(_0x314f29(0x16a))/0xa*(parseInt(_0x314f29(0x177))/0xb);if(_0x584dfc===_0x37ba61)break;else _0x1327f5['push'](_0x1327f5['shift']());}catch(_0x2e5cbe){_0x1327f5['push'](_0x1327f5['shift']());}}}(_0x4367,0xc2379));import{Type}from'@sinclair/typebox';const _0xc937e4={};_0xc937e4[_0x283bd0(0x165)]=0x1,_0xc937e4[_0x283bd0(0x166)]=0x80,_0xc937e4[_0x283bd0(0x15f)]=_0x283bd0(0x176);export const identifier=Type[_0x283bd0(0x172)](_0xc937e4);const _0xcad2d0={};_0xcad2d0[_0x283bd0(0x169)]=identifier;const _0x35541f={};_0x35541f[_0x283bd0(0x163)]=identifier;const _0x45effc={};_0x45effc[_0x283bd0(0x163)]=identifier;const _0x58a5d3={};_0x58a5d3[_0x283bd0(0x163)]=identifier,_0x58a5d3[_0x283bd0(0x171)]=identifier;const _0x1577a5={};_0x1577a5[_0x283bd0(0x16d)]=0x1,_0x1577a5[_0x283bd0(0x160)]=0xc8;const _0xdc4d43={};_0xdc4d43[_0x283bd0(0x163)]=identifier,_0xdc4d43['id']=identifier;const _0x14504f={};_0x14504f[_0x283bd0(0x163)]=identifier,_0x14504f['id']=identifier,_0x14504f[_0x283bd0(0x174)]=identifier;const _0x32f538={};_0x32f538[_0x283bd0(0x163)]=identifier,_0x32f538['id']=identifier,_0x32f538[_0x283bd0(0x174)]=identifier,_0x32f538[_0x283bd0(0x162)]=identifier;const _0x2f161d={};_0x2f161d[_0x283bd0(0x163)]=identifier,_0x2f161d['id']=identifier;const _0x51563e={};_0x51563e[_0x283bd0(0x165)]=0x1,_0x51563e[_0x283bd0(0x166)]=0xff;function _0x4367(){const _0x391038=['Unknown','minLength','maxLength','Optional','393202xHzMqT','name','10LjPCTw','Record','Any','minimum','Array','1154448SpVHfu','2crOLcS','field','String','Object','relation','784fqavBT','^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$','26850461bAMRqn','Integer','61416fPUwlD','4925360TKtVzu','2301170LNXrvG','6074264fEXaLt','pattern','maximum','6dOKvvR','relationId','resource'];_0x4367=function(){return _0x391038;};return _0x4367();}const _0x336b2a={};function _0xc351(_0x5b14be,_0x22f87){_0x5b14be=_0x5b14be-0x15d;const _0x436750=_0x4367();let _0xc35160=_0x436750[_0x5b14be];return _0xc35160;}_0x336b2a[_0x283bd0(0x165)]=0x1;const _0x42861b={};_0x42861b[_0x283bd0(0x16d)]=0x1,_0x42861b[_0x283bd0(0x160)]=0xc8;const _0xc2cfb6={};_0xc2cfb6[_0x283bd0(0x16d)]=0x0;export const resourceSchemas={'dictionaryName':Type[_0x283bd0(0x173)](_0xcad2d0),'resource':Type[_0x283bd0(0x173)](_0x35541f),'exportResource':Type[_0x283bd0(0x173)](_0x45effc),'resourceField':Type[_0x283bd0(0x173)](_0x58a5d3),'suggestQuery':Type[_0x283bd0(0x173)]({'q':Type[_0x283bd0(0x167)](Type[_0x283bd0(0x172)]()),'search':Type[_0x283bd0(0x167)](Type[_0x283bd0(0x172)]()),'limit':Type[_0x283bd0(0x167)](Type[_0x283bd0(0x178)](_0x1577a5))}),'resourceId':Type[_0x283bd0(0x173)](_0xdc4d43),'resourceIdRelation':Type[_0x283bd0(0x173)](_0x14504f),'resourceIdRelationId':Type[_0x283bd0(0x173)](_0x32f538),'uploadResourceFile':Type[_0x283bd0(0x173)](_0x2f161d),'uploadResourceFileBody':Type[_0x283bd0(0x173)]({'file':Type[_0x283bd0(0x16c)](),'fileName':Type[_0x283bd0(0x172)](_0x51563e)}),'exportResourceQuery':Type[_0x283bd0(0x173)]({'filter':Type[_0x283bd0(0x167)](Type[_0x283bd0(0x16b)](Type[_0x283bd0(0x172)](),Type[_0x283bd0(0x164)]())),'sort':Type[_0x283bd0(0x167)](Type[_0x283bd0(0x16e)](Type[_0x283bd0(0x172)](_0x336b2a))),'search':Type[_0x283bd0(0x167)](Type[_0x283bd0(0x172)]()),'limit':Type[_0x283bd0(0x167)](Type[_0x283bd0(0x178)](_0x42861b)),'offset':Type[_0x283bd0(0x167)](Type[_0x283bd0(0x178)](_0xc2cfb6)),'fields':Type[_0x283bd0(0x167)](Type[_0x283bd0(0x16e)](identifier))})};
@@ -1 +1 @@
1
- function _0x46b2(_0x19f9ec,_0x3cda9f){_0x19f9ec=_0x19f9ec-0x66;const _0x291b71=_0x291b();let _0x46b247=_0x291b71[_0x19f9ec];return _0x46b247;}(function(_0x403cc8,_0x11cd3d){const _0x46a4c2=_0x46b2,_0x60157c=_0x403cc8();while(!![]){try{const _0xade396=parseInt(_0x46a4c2(0x68))/0x1+parseInt(_0x46a4c2(0x6d))/0x2*(-parseInt(_0x46a4c2(0x66))/0x3)+-parseInt(_0x46a4c2(0x74))/0x4*(parseInt(_0x46a4c2(0x73))/0x5)+parseInt(_0x46a4c2(0x71))/0x6*(-parseInt(_0x46a4c2(0x6f))/0x7)+-parseInt(_0x46a4c2(0x70))/0x8+parseInt(_0x46a4c2(0x78))/0x9*(parseInt(_0x46a4c2(0x6a))/0xa)+parseInt(_0x46a4c2(0x72))/0xb*(parseInt(_0x46a4c2(0x6c))/0xc);if(_0xade396===_0x11cd3d)break;else _0x60157c['push'](_0x60157c['shift']());}catch(_0x3c04c4){_0x60157c['push'](_0x60157c['shift']());}}}(_0x291b,0x271c3));export async function addNote(_0x35a47a,_0x5bb1b3){const _0x195c6d=_0x46b2,_0x3b0b17={'lsJvm':_0x195c6d(0x75),'wKWAV':function(_0x4dcd55,_0x1261b0){return _0x4dcd55(_0x1261b0);}},_0x3947d8=await _0x5bb1b3['pg'][_0x195c6d(0x6b)](_0x3b0b17[_0x195c6d(0x77)],[_0x35a47a[_0x195c6d(0x6e)],_0x3b0b17[_0x195c6d(0x67)](String,_0x35a47a['id']),_0x35a47a[_0x195c6d(0x76)]]);return _0x3947d8[_0x195c6d(0x69)][0x0];}function _0x291b(){const _0x530084=['9lycCzQ','5769MReusq','wKWAV','218051EJCrEl','rows','2139130VrwNMc','query','24zwnZUK','144mJfWOe','resource','301uOYlTP','2243376ouBxMY','3900rVGerG','1352912rVpGsc','14185YZZLhj','100lkAwRZ','INSERT\x20INTO\x20admin.notes(resource,resource_id,body)\x20VALUES\x20($1,$2,$3)\x20RETURNING\x20*','body','lsJvm'];_0x291b=function(){return _0x530084;};return _0x291b();}
1
+ (function(_0x66d8cc,_0x2d344a){const _0x21a3f6=_0x2014,_0x4c4a5b=_0x66d8cc();while(!![]){try{const _0x26b35b=-parseInt(_0x21a3f6(0x151))/0x1+-parseInt(_0x21a3f6(0x15c))/0x2+parseInt(_0x21a3f6(0x15a))/0x3+-parseInt(_0x21a3f6(0x154))/0x4*(parseInt(_0x21a3f6(0x157))/0x5)+parseInt(_0x21a3f6(0x153))/0x6*(parseInt(_0x21a3f6(0x15b))/0x7)+-parseInt(_0x21a3f6(0x15f))/0x8*(-parseInt(_0x21a3f6(0x152))/0x9)+parseInt(_0x21a3f6(0x15d))/0xa*(-parseInt(_0x21a3f6(0x150))/0xb);if(_0x26b35b===_0x2d344a)break;else _0x4c4a5b['push'](_0x4c4a5b['shift']());}catch(_0x43f58e){_0x4c4a5b['push'](_0x4c4a5b['shift']());}}}(_0x3e62,0x80727));function _0x2014(_0x2d6084,_0x399046){_0x2d6084=_0x2d6084-0x14f;const _0x3e6223=_0x3e62();let _0x2014a4=_0x3e6223[_0x2d6084];return _0x2014a4;}export async function addNote(_0xdf4e04,_0x17ca19){const _0xc4c1a=_0x2014,_0x49919d={'aWmEv':_0xc4c1a(0x155),'rCTql':function(_0x20f54d,_0x42be5c){return _0x20f54d(_0x42be5c);}},_0x1243f6=await _0x17ca19['pg'][_0xc4c1a(0x156)](_0x49919d[_0xc4c1a(0x159)],[_0xdf4e04[_0xc4c1a(0x160)],_0x49919d[_0xc4c1a(0x14f)](String,_0xdf4e04['id']),_0xdf4e04[_0xc4c1a(0x158)]]);return _0x1243f6[_0xc4c1a(0x15e)][0x0];}function _0x3e62(){const _0x254c82=['2368MmRPmq','resource','rCTql','1578247xzWVri','72126FJOQfR','27549DBOlQm','60IRSDgT','546188AOZRtx','INSERT\x20INTO\x20admin.notes(resource,resource_id,body)\x20VALUES\x20($1,$2,$3)\x20RETURNING\x20*','query','5ucueBm','body','aWmEv','1769874ozJrQE','629573TmmJxc','451684yGxrQz','100rTxqzX','rows'];_0x3e62=function(){return _0x254c82;};return _0x3e62();}
@@ -1 +1 @@
1
- function _0x215b(){const _0x227d33=['2340865xayvmH','5372088jJyStT','1UAPkdc','1504gydVyZ','query','9dIjFgJ','resource','\x0a\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.files\x20(resource,\x20resource_id,\x20file_path,\x20size)\x0a\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4)\x0a\x20\x20\x20\x20\x20\x20\x20\x20RETURNING\x20*\x0a\x20\x20\x20\x20\x20\x20','19467FzMDUO','rows','GTRQX','8732310levTev','size','18SaoTro','filePath','15797463bDLDaT','2217813hNkHmt','2308132DlgtkZ'];_0x215b=function(){return _0x227d33;};return _0x215b();}function _0x4531(_0x5b9655,_0x8e7e5c){_0x5b9655=_0x5b9655-0xcd;const _0x215b21=_0x215b();let _0x453187=_0x215b21[_0x5b9655];return _0x453187;}(function(_0x207bc6,_0x39c802){const _0x159128=_0x4531,_0x3dada6=_0x207bc6();while(!![]){try{const _0x359e41=-parseInt(_0x159128(0xd4))/0x1*(parseInt(_0x159128(0xd1))/0x2)+parseInt(_0x159128(0xd0))/0x3+-parseInt(_0x159128(0xd3))/0x4+parseInt(_0x159128(0xd2))/0x5*(parseInt(_0x159128(0xcd))/0x6)+-parseInt(_0x159128(0xda))/0x7*(-parseInt(_0x159128(0xd5))/0x8)+-parseInt(_0x159128(0xd7))/0x9*(parseInt(_0x159128(0xdd))/0xa)+parseInt(_0x159128(0xcf))/0xb;if(_0x359e41===_0x39c802)break;else _0x3dada6['push'](_0x3dada6['shift']());}catch(_0x55cedf){_0x3dada6['push'](_0x3dada6['shift']());}}}(_0x215b,0xb2d10));export async function addResourceFile(_0x2dda59,_0x3b13e6){const _0x29b44a=_0x4531,_0x923472={'GTRQX':function(_0x2828ed,_0x4c67c6){return _0x2828ed(_0x4c67c6);}},_0x22e453=await _0x3b13e6['pg'][_0x29b44a(0xd6)](_0x29b44a(0xd9),[_0x2dda59[_0x29b44a(0xd8)],_0x923472[_0x29b44a(0xdc)](String,_0x2dda59['id']),_0x2dda59[_0x29b44a(0xce)],_0x2dda59[_0x29b44a(0xde)]??null]);return _0x22e453[_0x29b44a(0xdb)][0x0];}
1
+ function _0xc2ee(){const _0x4787ef=['21803590yLLSdJ','889582tgrWoT','3sUddag','query','1305004RjsmYw','size','7EQXnfA','rows','pcNlI','resource','4432720vimfyg','5uePpCV','\x0a\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.files\x20(resource,\x20resource_id,\x20file_path,\x20size)\x0a\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4)\x0a\x20\x20\x20\x20\x20\x20\x20\x20RETURNING\x20*\x0a\x20\x20\x20\x20\x20\x20','4502898ihuKBV','11jkDdnN','3487602RHhslF','73654cdGpAG','filePath'];_0xc2ee=function(){return _0x4787ef;};return _0xc2ee();}function _0x2aef(_0x5f492c,_0x311bd4){_0x5f492c=_0x5f492c-0xcb;const _0xc2eead=_0xc2ee();let _0x2aef20=_0xc2eead[_0x5f492c];return _0x2aef20;}(function(_0x351056,_0x54a257){const _0x4878be=_0x2aef,_0x483904=_0x351056();while(!![]){try{const _0xe0d796=-parseInt(_0x4878be(0xcc))/0x1+parseInt(_0x4878be(0xcf))/0x2*(-parseInt(_0x4878be(0xd0))/0x3)+-parseInt(_0x4878be(0xd2))/0x4*(-parseInt(_0x4878be(0xd9))/0x5)+parseInt(_0x4878be(0xcb))/0x6*(-parseInt(_0x4878be(0xd4))/0x7)+-parseInt(_0x4878be(0xd8))/0x8+-parseInt(_0x4878be(0xdb))/0x9+-parseInt(_0x4878be(0xce))/0xa*(-parseInt(_0x4878be(0xdc))/0xb);if(_0xe0d796===_0x54a257)break;else _0x483904['push'](_0x483904['shift']());}catch(_0x5e2d10){_0x483904['push'](_0x483904['shift']());}}}(_0xc2ee,0x560e6));export async function addResourceFile(_0x3d03d9,_0x367a60){const _0x3c2ccf=_0x2aef,_0x18a543={'pcNlI':function(_0x508481,_0x4ca257){return _0x508481(_0x4ca257);}},_0x3ba734=await _0x367a60['pg'][_0x3c2ccf(0xd1)](_0x3c2ccf(0xda),[_0x3d03d9[_0x3c2ccf(0xd7)],_0x18a543[_0x3c2ccf(0xd6)](String,_0x3d03d9['id']),_0x3d03d9[_0x3c2ccf(0xcd)],_0x3d03d9[_0x3c2ccf(0xd3)]??null]);return _0x3ba734[_0x3c2ccf(0xd5)][0x0];}
@@ -1 +1 @@
1
- (function(_0x2c0309,_0x552059){var _0x42f676=_0x54a9,_0x491113=_0x2c0309();while(!![]){try{var _0x2a0702=parseInt(_0x42f676(0x1de))/0x1*(parseInt(_0x42f676(0x1da))/0x2)+parseInt(_0x42f676(0x1df))/0x3+parseInt(_0x42f676(0x1e2))/0x4*(-parseInt(_0x42f676(0x1e7))/0x5)+parseInt(_0x42f676(0x1dd))/0x6+-parseInt(_0x42f676(0x1dc))/0x7*(parseInt(_0x42f676(0x1e4))/0x8)+parseInt(_0x42f676(0x1e0))/0x9*(-parseInt(_0x42f676(0x1e6))/0xa)+-parseInt(_0x42f676(0x1e3))/0xb;if(_0x2a0702===_0x552059)break;else _0x491113['push'](_0x491113['shift']());}catch(_0x5acdb6){_0x491113['push'](_0x491113['shift']());}}}(_0x206f,0xbdfe6));function _0x54a9(_0x293fba,_0x381b40){_0x293fba=_0x293fba-0x1da;var _0x206f38=_0x206f();var _0x54a948=_0x206f38[_0x293fba];return _0x54a948;}import{unsupported}from'../../utils/unsupported.js';function _0x206f(){var _0x367263=['3052cWHJaA','2697090jVUXma','424mteWvF','Generic\x20Resource\x20relations','48690iLUAoC','4795aevbAB','2GeXIlF','LhYqD','25137AwApnj','1768476LpBmav','1254737jMtMVy','3495789tGxzrs','1422xHyKAc','ToMLB'];_0x206f=function(){return _0x367263;};return _0x206f();}export async function createResourceRelation(_0x17e7a0,_0x394c95){var _0x19c183=_0x54a9,_0x22f57c={'ToMLB':function(_0x5c8e1d,_0x5adcf){return _0x5c8e1d(_0x5adcf);},'LhYqD':_0x19c183(0x1e5)};return _0x22f57c[_0x19c183(0x1e1)](unsupported,_0x22f57c[_0x19c183(0x1db)]);}
1
+ function _0x22c0(){var _0x483242=['3759789UDjywC','1598391ZltxSa','2992230CgGmXr','fSWoh','6570064wrIUEJ','10yOlwBz','39seKmCD','7rmMQLy','24OAvUsr','37092dQJELn','801798TukEhO','8UFOBwo','DScIs','1672080IvumZx','Generic\x20Resource\x20relations'];_0x22c0=function(){return _0x483242;};return _0x22c0();}(function(_0x15a082,_0x288700){var _0x3e72ba=_0x4520,_0x56a923=_0x15a082();while(!![]){try{var _0x2857b2=-parseInt(_0x3e72ba(0x174))/0x1*(parseInt(_0x3e72ba(0x177))/0x2)+parseInt(_0x3e72ba(0x16f))/0x3+parseInt(_0x3e72ba(0x179))/0x4*(parseInt(_0x3e72ba(0x16c))/0x5)+parseInt(_0x3e72ba(0x178))/0x6+-parseInt(_0x3e72ba(0x175))/0x7*(-parseInt(_0x3e72ba(0x172))/0x8)+parseInt(_0x3e72ba(0x170))/0x9*(-parseInt(_0x3e72ba(0x173))/0xa)+-parseInt(_0x3e72ba(0x16e))/0xb*(parseInt(_0x3e72ba(0x176))/0xc);if(_0x2857b2===_0x288700)break;else _0x56a923['push'](_0x56a923['shift']());}catch(_0x501e21){_0x56a923['push'](_0x56a923['shift']());}}}(_0x22c0,0x65d86));function _0x4520(_0x3fe74a,_0x5c4e5a){_0x3fe74a=_0x3fe74a-0x16b;var _0x22c085=_0x22c0();var _0x4520da=_0x22c085[_0x3fe74a];return _0x4520da;}import{unsupported}from'../../utils/unsupported.js';export async function createResourceRelation(_0x5e104f,_0x58ba75){var _0x1542a2=_0x4520,_0x2a07ec={'fSWoh':function(_0x1f2b87,_0x5dce7a){return _0x1f2b87(_0x5dce7a);},'DScIs':_0x1542a2(0x16d)};return _0x2a07ec[_0x1542a2(0x171)](unsupported,_0x2a07ec[_0x1542a2(0x16b)]);}
@@ -1 +1 @@
1
- (function(_0x1179ec,_0x2403cc){var _0x4d6298=_0x33bb,_0x483264=_0x1179ec();while(!![]){try{var _0x5544ef=parseInt(_0x4d6298(0x103))/0x1*(-parseInt(_0x4d6298(0x102))/0x2)+parseInt(_0x4d6298(0xf9))/0x3*(-parseInt(_0x4d6298(0xf6))/0x4)+parseInt(_0x4d6298(0x101))/0x5*(parseInt(_0x4d6298(0xf7))/0x6)+-parseInt(_0x4d6298(0xff))/0x7+parseInt(_0x4d6298(0xfa))/0x8+parseInt(_0x4d6298(0xfe))/0x9*(-parseInt(_0x4d6298(0xf8))/0xa)+parseInt(_0x4d6298(0x104))/0xb;if(_0x5544ef===_0x2403cc)break;else _0x483264['push'](_0x483264['shift']());}catch(_0x255e29){_0x483264['push'](_0x483264['shift']());}}}(_0x43ed,0x8e0c1));export async function createResource(_0x4eec67,_0x5a765b){var _0x245130=_0x33bb,_0x3755be={};return _0x3755be[_0x245130(0x105)]=_0x4eec67[_0x245130(0xfd)],_0x3755be[_0x245130(0xfb)]=_0x4eec67[_0x245130(0xfb)],_0x3755be[_0x245130(0xfc)]=_0x4eec67[_0x245130(0xfc)],_0x5a765b[_0x245130(0xfd)][_0x245130(0x100)](_0x3755be);}function _0x33bb(_0x54beef,_0x5f34a0){_0x54beef=_0x54beef-0xf6;var _0x43ed8b=_0x43ed();var _0x33bb8d=_0x43ed8b[_0x54beef];return _0x33bb8d;}function _0x43ed(){var _0x96f16d=['519oLpjQX','7882664oLtoJK','data','user','resource','5945337PGxhIO','6718124xcRfqD','create','930BnRjYl','6KhvtuC','303022MWTIVe','19618742URsPSi','name','8164CZREDR','22434brUMHF','10GCzBUU'];_0x43ed=function(){return _0x96f16d;};return _0x43ed();}
1
+ (function(_0x26269d,_0x5ac9d4){var _0x104b9e=_0x5a6e,_0x1a9458=_0x26269d();while(!![]){try{var _0x46e293=parseInt(_0x104b9e(0x98))/0x1+parseInt(_0x104b9e(0x9c))/0x2+-parseInt(_0x104b9e(0x97))/0x3+parseInt(_0x104b9e(0x93))/0x4*(-parseInt(_0x104b9e(0x9d))/0x5)+-parseInt(_0x104b9e(0x92))/0x6*(parseInt(_0x104b9e(0x96))/0x7)+parseInt(_0x104b9e(0x90))/0x8+-parseInt(_0x104b9e(0x94))/0x9*(-parseInt(_0x104b9e(0x91))/0xa);if(_0x46e293===_0x5ac9d4)break;else _0x1a9458['push'](_0x1a9458['shift']());}catch(_0x10dbb0){_0x1a9458['push'](_0x1a9458['shift']());}}}(_0x4a00,0xecb46));function _0x5a6e(_0x220b63,_0x1d263f){_0x220b63=_0x220b63-0x90;var _0x4a00fa=_0x4a00();var _0x5a6e3e=_0x4a00fa[_0x220b63];return _0x5a6e3e;}export async function createResource(_0x59f2db,_0x4fa800){var _0x7a5159=_0x5a6e,_0x16ab82={};return _0x16ab82[_0x7a5159(0x95)]=_0x59f2db[_0x7a5159(0x99)],_0x16ab82[_0x7a5159(0x9a)]=_0x59f2db[_0x7a5159(0x9a)],_0x16ab82[_0x7a5159(0x9e)]=_0x59f2db[_0x7a5159(0x9e)],_0x4fa800[_0x7a5159(0x99)][_0x7a5159(0x9b)](_0x16ab82);}function _0x4a00(){var _0x1b1a20=['695264JDutqW','resource','data','create','3280866rAzcfA','257305pyDYLI','user','15242216FaaOkq','510060KJlkTe','60kLqEqT','72zJnWAc','27WedWOG','name','1013901gLoVmX','3149166KrdQWS'];_0x4a00=function(){return _0x1b1a20;};return _0x4a00();}
@@ -1 +1 @@
1
- function _0x4299(_0x2e2839,_0x213f7b){_0x2e2839=_0x2e2839-0x163;var _0x2dc67c=_0x2dc6();var _0x42997a=_0x2dc67c[_0x2e2839];return _0x42997a;}function _0x2dc6(){var _0x43e1a3=['Generic\x20Resource\x20relations','3280LaVhJu','lsPvi','116464FubDYm','6RuwvtX','681483HVRPnr','250hntskn','174690TWNIrM','418004iDMOcD','203RbppaQ','42026cBbQuO','61983nLlCsN'];_0x2dc6=function(){return _0x43e1a3;};return _0x2dc6();}(function(_0x492811,_0x40cc18){var _0x528e2a=_0x4299,_0x277893=_0x492811();while(!![]){try{var _0x5967ad=parseInt(_0x528e2a(0x163))/0x1+-parseInt(_0x528e2a(0x16d))/0x2+parseInt(_0x528e2a(0x16a))/0x3+-parseInt(_0x528e2a(0x168))/0x4+-parseInt(_0x528e2a(0x16c))/0x5*(parseInt(_0x528e2a(0x169))/0x6)+-parseInt(_0x528e2a(0x16e))/0x7*(parseInt(_0x528e2a(0x166))/0x8)+parseInt(_0x528e2a(0x164))/0x9*(parseInt(_0x528e2a(0x16b))/0xa);if(_0x5967ad===_0x40cc18)break;else _0x277893['push'](_0x277893['shift']());}catch(_0x37b5a1){_0x277893['push'](_0x277893['shift']());}}}(_0x2dc6,0x26300));import{unsupported}from'../../utils/unsupported.js';export async function deleteResourceRelation(_0x443329,_0xc76d03){var _0x1f9322=_0x4299,_0x45c01f={'lsPvi':function(_0xb8458e,_0x632e1c){return _0xb8458e(_0x632e1c);}};return _0x45c01f[_0x1f9322(0x167)](unsupported,_0x1f9322(0x165));}
1
+ function _0x3c93(){var _0x3ec2da=['34408IhQwjT','XVlJH','54080IIaoDW','Generic\x20Resource\x20relations','9UJYXfw','180gCQgbk','24OZvltm','896336yPKzlQ','12ypSFJD','488866PlFsru','537568wAUQzm','hYBxg','140508jmaCMO','518845zBDFBN'];_0x3c93=function(){return _0x3ec2da;};return _0x3c93();}function _0x54dd(_0x18c57a,_0x3a77f8){_0x18c57a=_0x18c57a-0x122;var _0x3c934f=_0x3c93();var _0x54dd32=_0x3c934f[_0x18c57a];return _0x54dd32;}(function(_0x3e927c,_0x5cfa03){var _0x29b6cc=_0x54dd,_0x3f7396=_0x3e927c();while(!![]){try{var _0x1718a9=-parseInt(_0x29b6cc(0x129))/0x1+parseInt(_0x29b6cc(0x12d))/0x2*(parseInt(_0x29b6cc(0x123))/0x3)+parseInt(_0x29b6cc(0x124))/0x4+parseInt(_0x29b6cc(0x12a))/0x5*(-parseInt(_0x29b6cc(0x125))/0x6)+parseInt(_0x29b6cc(0x126))/0x7+parseInt(_0x29b6cc(0x127))/0x8*(-parseInt(_0x29b6cc(0x12f))/0x9)+-parseInt(_0x29b6cc(0x122))/0xa*(-parseInt(_0x29b6cc(0x12b))/0xb);if(_0x1718a9===_0x5cfa03)break;else _0x3f7396['push'](_0x3f7396['shift']());}catch(_0x594b21){_0x3f7396['push'](_0x3f7396['shift']());}}}(_0x3c93,0x24f08));import{unsupported}from'../../utils/unsupported.js';export async function deleteResourceRelation(_0x182b0e,_0x378786){var _0xfcd627=_0x54dd,_0x228177={'hYBxg':function(_0x10d6f0,_0x1379e4){return _0x10d6f0(_0x1379e4);},'XVlJH':_0xfcd627(0x12e)};return _0x228177[_0xfcd627(0x128)](unsupported,_0x228177[_0xfcd627(0x12c)]);}
@@ -1 +1 @@
1
- function _0x55ea(_0x34f2bb,_0x25698e){_0x34f2bb=_0x34f2bb-0x96;var _0xe1a195=_0xe1a1();var _0x55ea4e=_0xe1a195[_0x34f2bb];return _0x55ea4e;}function _0xe1a1(){var _0x4008c4=['resource','28460dDxFxP','264XWibea','934628LONocY','2yeSsKN','name','36620ybmaBA','901936TDyVBQ','259890lDifEU','5984811qzpiRx','4661391foTtCI','6182sTMUks','delete','user','9rgetdW'];_0xe1a1=function(){return _0x4008c4;};return _0xe1a1();}(function(_0x4357c2,_0x113b21){var _0x4b841b=_0x55ea,_0x26750f=_0x4357c2();while(!![]){try{var _0xfae214=-parseInt(_0x4b841b(0xa1))/0x1*(parseInt(_0x4b841b(0x9d))/0x2)+parseInt(_0x4b841b(0x98))/0x3*(parseInt(_0x4b841b(0x9c))/0x4)+parseInt(_0x4b841b(0x9f))/0x5*(parseInt(_0x4b841b(0x9b))/0x6)+parseInt(_0x4b841b(0xa3))/0x7+-parseInt(_0x4b841b(0xa0))/0x8+parseInt(_0x4b841b(0xa2))/0x9+parseInt(_0x4b841b(0x9a))/0xa*(-parseInt(_0x4b841b(0xa4))/0xb);if(_0xfae214===_0x113b21)break;else _0x26750f['push'](_0x26750f['shift']());}catch(_0x32eb46){_0x26750f['push'](_0x26750f['shift']());}}}(_0xe1a1,0x5d453));export async function deleteResource(_0xbe5eff,_0x3ec6aa){var _0x2a5513=_0x55ea,_0x4711ba={};return _0x4711ba[_0x2a5513(0x9e)]=_0xbe5eff[_0x2a5513(0x99)],_0x4711ba['id']=_0xbe5eff['id'],_0x4711ba[_0x2a5513(0x97)]=_0xbe5eff[_0x2a5513(0x97)],_0x3ec6aa[_0x2a5513(0x99)][_0x2a5513(0x96)](_0x4711ba);}
1
+ (function(_0x31c475,_0x13b37f){var _0x28ec91=_0x223c,_0x114d17=_0x31c475();while(!![]){try{var _0x3ee1b1=parseInt(_0x28ec91(0x1a7))/0x1+-parseInt(_0x28ec91(0x19c))/0x2*(parseInt(_0x28ec91(0x19f))/0x3)+parseInt(_0x28ec91(0x1a2))/0x4+parseInt(_0x28ec91(0x19d))/0x5*(-parseInt(_0x28ec91(0x1a6))/0x6)+-parseInt(_0x28ec91(0x1aa))/0x7+parseInt(_0x28ec91(0x1a0))/0x8*(parseInt(_0x28ec91(0x1a1))/0x9)+parseInt(_0x28ec91(0x1a3))/0xa*(parseInt(_0x28ec91(0x1a5))/0xb);if(_0x3ee1b1===_0x13b37f)break;else _0x114d17['push'](_0x114d17['shift']());}catch(_0x4c9908){_0x114d17['push'](_0x114d17['shift']());}}}(_0x11cd,0x35c7b));export async function deleteResource(_0x39bc2b,_0x1c7e5a){var _0x5d447a=_0x223c,_0x7c33a4={};return _0x7c33a4[_0x5d447a(0x1a8)]=_0x39bc2b[_0x5d447a(0x19e)],_0x7c33a4['id']=_0x39bc2b['id'],_0x7c33a4[_0x5d447a(0x1a9)]=_0x39bc2b[_0x5d447a(0x1a9)],_0x1c7e5a[_0x5d447a(0x19e)][_0x5d447a(0x1a4)](_0x7c33a4);}function _0x223c(_0x2860b4,_0x345d0f){_0x2860b4=_0x2860b4-0x19c;var _0x11cdd7=_0x11cd();var _0x223c2c=_0x11cdd7[_0x2860b4];return _0x223c2c;}function _0x11cd(){var _0x51b443=['2472774SrpfjG','182717hRooCP','name','user','2773344hwSAFf','4168kEUvBm','5VNLWCU','resource','153SkNivN','16jEdwkP','1249065sqIGqa','919716PwQdhe','120KbMXwC','delete','407616cUVvIQ'];_0x11cd=function(){return _0x51b443;};return _0x11cd();}
@@ -1 +1 @@
1
- (function(_0xaa0aa8,_0x25c2ee){const _0x26e607=_0x367b,_0x1fac7c=_0xaa0aa8();while(!![]){try{const _0x33b51e=parseInt(_0x26e607(0xbe))/0x1*(-parseInt(_0x26e607(0xc6))/0x2)+-parseInt(_0x26e607(0xc7))/0x3+-parseInt(_0x26e607(0xb6))/0x4+-parseInt(_0x26e607(0xb5))/0x5*(parseInt(_0x26e607(0xb9))/0x6)+-parseInt(_0x26e607(0xc5))/0x7+parseInt(_0x26e607(0xc1))/0x8*(parseInt(_0x26e607(0xba))/0x9)+parseInt(_0x26e607(0xc9))/0xa;if(_0x33b51e===_0x25c2ee)break;else _0x1fac7c['push'](_0x1fac7c['shift']());}catch(_0x56e92f){_0x1fac7c['push'](_0x1fac7c['shift']());}}}(_0x5d19,0x5af80));function _0x367b(_0x4ec992,_0x5b2c68){_0x4ec992=_0x4ec992-0xb4;const _0x5d1941=_0x5d19();let _0x367bde=_0x5d1941[_0x4ec992];return _0x367bde;}function _0x5d19(){const _0x3eb16d=['offset','limit','user','54729EVcAen','filter','sort','56NuJEFi','resource','query','fields','1535401VogMyT','14EhJIVl','1392621oOmjGi','name','21672380pIrydu','search','883825CAgtkM','2111236KDiWUJ','rows','find','18DlRmUi','424449MYrOPu'];_0x5d19=function(){return _0x3eb16d;};return _0x5d19();}export async function exportResource(_0x587693,_0x17da43){const _0x54ba31=_0x367b,_0x2725a6={};_0x2725a6[_0x54ba31(0xc8)]=_0x587693[_0x54ba31(0xc2)],_0x2725a6[_0x54ba31(0xc3)]={},_0x2725a6[_0x54ba31(0xbd)]=_0x587693[_0x54ba31(0xbd)],_0x2725a6[_0x54ba31(0xc3)][_0x54ba31(0xbf)]=_0x587693[_0x54ba31(0xbf)],_0x2725a6[_0x54ba31(0xc3)][_0x54ba31(0xc0)]=_0x587693[_0x54ba31(0xc0)],_0x2725a6[_0x54ba31(0xc3)][_0x54ba31(0xb4)]=_0x587693[_0x54ba31(0xb4)],_0x2725a6[_0x54ba31(0xc3)][_0x54ba31(0xbc)]=_0x587693[_0x54ba31(0xbc)],_0x2725a6[_0x54ba31(0xc3)][_0x54ba31(0xbb)]=_0x587693[_0x54ba31(0xbb)],_0x2725a6[_0x54ba31(0xc3)][_0x54ba31(0xc4)]=_0x587693[_0x54ba31(0xc4)];const _0x18d1a1=await _0x17da43[_0x54ba31(0xc2)][_0x54ba31(0xb8)](_0x2725a6);return _0x18d1a1[_0x54ba31(0xb7)];}
1
+ function _0xafa2(){const _0x22fb90=['filter','resource','find','offset','2385UEwEkg','3779968ZVcJTc','826120LpWQyI','6ThOuAw','174AYWRuJ','query','fields','name','sort','8610puqUvC','search','4423515KwvypW','limit','893574fPiTJR','263991YeUZKD','user','311810Mxlfow','rows'];_0xafa2=function(){return _0x22fb90;};return _0xafa2();}function _0x5cc0(_0x10737b,_0x2a74c0){_0x10737b=_0x10737b-0x198;const _0xafa265=_0xafa2();let _0x5cc052=_0xafa265[_0x10737b];return _0x5cc052;}(function(_0x5484ee,_0x571989){const _0x38cde8=_0x5cc0,_0x388ca8=_0x5484ee();while(!![]){try{const _0xd41b4f=-parseInt(_0x38cde8(0x198))/0x1+parseInt(_0x38cde8(0x19b))/0x2+parseInt(_0x38cde8(0x1a4))/0x3*(parseInt(_0x38cde8(0x1a3))/0x4)+-parseInt(_0x38cde8(0x1ac))/0x5+-parseInt(_0x38cde8(0x1a5))/0x6*(-parseInt(_0x38cde8(0x199))/0x7)+parseInt(_0x38cde8(0x1a2))/0x8+-parseInt(_0x38cde8(0x1a1))/0x9*(-parseInt(_0x38cde8(0x1aa))/0xa);if(_0xd41b4f===_0x571989)break;else _0x388ca8['push'](_0x388ca8['shift']());}catch(_0x1a5289){_0x388ca8['push'](_0x388ca8['shift']());}}}(_0xafa2,0x8ed42));export async function exportResource(_0x4883f3,_0x1ea8dc){const _0x4c2342=_0x5cc0,_0x6f022={};_0x6f022[_0x4c2342(0x1a8)]=_0x4883f3[_0x4c2342(0x19e)],_0x6f022[_0x4c2342(0x1a6)]={},_0x6f022[_0x4c2342(0x19a)]=_0x4883f3[_0x4c2342(0x19a)],_0x6f022[_0x4c2342(0x1a6)][_0x4c2342(0x19d)]=_0x4883f3[_0x4c2342(0x19d)],_0x6f022[_0x4c2342(0x1a6)][_0x4c2342(0x1a9)]=_0x4883f3[_0x4c2342(0x1a9)],_0x6f022[_0x4c2342(0x1a6)][_0x4c2342(0x1ab)]=_0x4883f3[_0x4c2342(0x1ab)],_0x6f022[_0x4c2342(0x1a6)][_0x4c2342(0x1ad)]=_0x4883f3[_0x4c2342(0x1ad)],_0x6f022[_0x4c2342(0x1a6)][_0x4c2342(0x1a0)]=_0x4883f3[_0x4c2342(0x1a0)],_0x6f022[_0x4c2342(0x1a6)][_0x4c2342(0x1a7)]=_0x4883f3[_0x4c2342(0x1a7)];const _0x571d3f=await _0x1ea8dc[_0x4c2342(0x19e)][_0x4c2342(0x19f)](_0x6f022);return _0x571d3f[_0x4c2342(0x19c)];}
@@ -1 +1 @@
1
- (function(_0x53d0d6,_0x2bfc61){var _0x1ecd63=_0x2145,_0x2f14a8=_0x53d0d6();while(!![]){try{var _0x493451=parseInt(_0x1ecd63(0x10f))/0x1*(parseInt(_0x1ecd63(0x114))/0x2)+parseInt(_0x1ecd63(0x11c))/0x3*(-parseInt(_0x1ecd63(0x117))/0x4)+-parseInt(_0x1ecd63(0x116))/0x5*(-parseInt(_0x1ecd63(0x119))/0x6)+parseInt(_0x1ecd63(0x10c))/0x7*(parseInt(_0x1ecd63(0x11d))/0x8)+-parseInt(_0x1ecd63(0x111))/0x9*(parseInt(_0x1ecd63(0x113))/0xa)+-parseInt(_0x1ecd63(0x11b))/0xb*(parseInt(_0x1ecd63(0x10d))/0xc)+parseInt(_0x1ecd63(0x11a))/0xd*(parseInt(_0x1ecd63(0x10e))/0xe);if(_0x493451===_0x2bfc61)break;else _0x2f14a8['push'](_0x2f14a8['shift']());}catch(_0xa68a18){_0x2f14a8['push'](_0x2f14a8['shift']());}}}(_0x436e,0x5de9e));function _0x2145(_0x1d26cc,_0x1166db){_0x1d26cc=_0x1d26cc-0x10c;var _0x436e7a=_0x436e();var _0x214548=_0x436e7a[_0x1d26cc];return _0x214548;}export async function getResource(_0x58e4e5,_0x40b6c7){var _0xeb711e=_0x2145,_0x16b7be={};return _0x16b7be[_0xeb711e(0x118)]=_0x58e4e5[_0xeb711e(0x110)],_0x16b7be['id']=_0x58e4e5['id'],_0x16b7be[_0xeb711e(0x115)]=_0x58e4e5[_0xeb711e(0x115)],_0x40b6c7[_0xeb711e(0x110)][_0xeb711e(0x112)](_0x16b7be);}function _0x436e(){var _0x89f675=['44wVwtdg','14298dEUynk','136ewkfpV','177863TiHJtu','1245168eufMcR','28jAxxrE','5ololGU','resource','6060726PWTFZF','findOne','10lvxryA','249604lXDEug','user','1584265FkkHrM','208cyNLOV','name','6hhsdEQ','2263014lQphDV'];_0x436e=function(){return _0x89f675;};return _0x436e();}
1
+ (function(_0x157039,_0x143176){var _0x33a7fd=_0x12fb,_0x225d80=_0x157039();while(!![]){try{var _0x32c94f=-parseInt(_0x33a7fd(0x88))/0x1*(parseInt(_0x33a7fd(0x7e))/0x2)+parseInt(_0x33a7fd(0x83))/0x3*(-parseInt(_0x33a7fd(0x87))/0x4)+parseInt(_0x33a7fd(0x86))/0x5+parseInt(_0x33a7fd(0x85))/0x6*(-parseInt(_0x33a7fd(0x81))/0x7)+-parseInt(_0x33a7fd(0x82))/0x8*(parseInt(_0x33a7fd(0x79))/0x9)+-parseInt(_0x33a7fd(0x84))/0xa*(parseInt(_0x33a7fd(0x7d))/0xb)+parseInt(_0x33a7fd(0x7c))/0xc;if(_0x32c94f===_0x143176)break;else _0x225d80['push'](_0x225d80['shift']());}catch(_0xfb575c){_0x225d80['push'](_0x225d80['shift']());}}}(_0x1c17,0x606a8));function _0x1c17(){var _0xebd8ad=['32561364NsCOvN','55pHBhKm','6436PKZGsU','resource','user','7SQpkWA','59336YZQeHW','3wTbUNl','1385010jTFUpK','4085502vxcrob','1389385VyFCTJ','2429780JrJwXB','106bMvUij','333bAurdX','findOne','name'];_0x1c17=function(){return _0xebd8ad;};return _0x1c17();}function _0x12fb(_0x26fff4,_0x19ebe7){_0x26fff4=_0x26fff4-0x79;var _0x1c1784=_0x1c17();var _0x12fbba=_0x1c1784[_0x26fff4];return _0x12fbba;}export async function getResource(_0x5f22c6,_0x16011d){var _0x4875ef=_0x12fb,_0xb7d5ab={};return _0xb7d5ab[_0x4875ef(0x7b)]=_0x5f22c6[_0x4875ef(0x7f)],_0xb7d5ab['id']=_0x5f22c6['id'],_0xb7d5ab[_0x4875ef(0x80)]=_0x5f22c6[_0x4875ef(0x80)],_0x16011d[_0x4875ef(0x7f)][_0x4875ef(0x7a)](_0xb7d5ab);}
@@ -1 +1 @@
1
- function _0x57f0(){var _0x3a760f=['RxMrT','4935432XJCSal','910092nGOixQ','76304TayYen','466604rEzwxc','5579720eQtmNN','17933976kZWafY','84mKCVqo','9ckUwkZ','554225tYYHix','zDiSS','Generic\x20Resource\x20children'];_0x57f0=function(){return _0x3a760f;};return _0x57f0();}(function(_0x234923,_0x1a6ec9){var _0xe8caae=_0x3b80,_0x2530e6=_0x234923();while(!![]){try{var _0x394447=-parseInt(_0xe8caae(0x169))/0x1+parseInt(_0xe8caae(0x16b))/0x2+parseInt(_0xe8caae(0x163))/0x3*(parseInt(_0xe8caae(0x16a))/0x4)+-parseInt(_0xe8caae(0x16c))/0x5+-parseInt(_0xe8caae(0x162))/0x6*(-parseInt(_0xe8caae(0x164))/0x7)+-parseInt(_0xe8caae(0x168))/0x8+parseInt(_0xe8caae(0x161))/0x9;if(_0x394447===_0x1a6ec9)break;else _0x2530e6['push'](_0x2530e6['shift']());}catch(_0x3ac13a){_0x2530e6['push'](_0x2530e6['shift']());}}}(_0x57f0,0xb6c87));function _0x3b80(_0x1572d7,_0x4ee5d3){_0x1572d7=_0x1572d7-0x161;var _0x57f0b6=_0x57f0();var _0x3b8052=_0x57f0b6[_0x1572d7];return _0x3b8052;}import{unsupported}from'../../utils/unsupported.js';export async function listChildren(_0x21d658,_0x56b80f){var _0x36a6ac=_0x3b80,_0xbe9dc8={'RxMrT':function(_0x301749,_0x23fdaf){return _0x301749(_0x23fdaf);},'zDiSS':_0x36a6ac(0x166)};return _0xbe9dc8[_0x36a6ac(0x167)](unsupported,_0xbe9dc8[_0x36a6ac(0x165)]);}
1
+ (function(_0x1ed0dc,_0x54c3c7){var _0x177516=_0xcf31,_0x409438=_0x1ed0dc();while(!![]){try{var _0x55990d=-parseInt(_0x177516(0x198))/0x1+-parseInt(_0x177516(0x19b))/0x2*(parseInt(_0x177516(0x1a1))/0x3)+parseInt(_0x177516(0x1a2))/0x4+-parseInt(_0x177516(0x19e))/0x5+parseInt(_0x177516(0x1a0))/0x6*(parseInt(_0x177516(0x199))/0x7)+parseInt(_0x177516(0x19f))/0x8*(-parseInt(_0x177516(0x1a3))/0x9)+parseInt(_0x177516(0x19c))/0xa;if(_0x55990d===_0x54c3c7)break;else _0x409438['push'](_0x409438['shift']());}catch(_0x57c66f){_0x409438['push'](_0x409438['shift']());}}}(_0x494b,0x41db9));function _0xcf31(_0xfe0206,_0x3dc1ff){_0xfe0206=_0xfe0206-0x198;var _0x494b77=_0x494b();var _0xcf31fc=_0x494b77[_0xfe0206];return _0xcf31fc;}function _0x494b(){var _0x10c755=['6fXEfUF','54FzhBzi','162180KhLevw','2191437ydjSWo','ZLZuI','111187yXHrpW','1634906ZQaPof','Generic\x20Resource\x20children','15154vsoyFh','9945570nUFxIR','dhZFd','2539205ZNdCyi','8GJJVoI'];_0x494b=function(){return _0x10c755;};return _0x494b();}import{unsupported}from'../../utils/unsupported.js';export async function listChildren(_0x3d34e7,_0x191262){var _0x372843=_0xcf31,_0x477e2e={'dhZFd':function(_0x554e56,_0x5b8f00){return _0x554e56(_0x5b8f00);},'ZLZuI':_0x372843(0x19a)};return _0x477e2e[_0x372843(0x19d)](unsupported,_0x477e2e[_0x372843(0x1a4)]);}
@@ -1 +1 @@
1
- function _0x39f6(_0x4289e0,_0xb34f5){_0x4289e0=_0x4289e0-0x8d;var _0x5b762b=_0x5b76();var _0x39f674=_0x5b762b[_0x4289e0];return _0x39f674;}function _0x5b76(){var _0x275ae8=['6MlXMrH','10TKOzfp','Generic\x20Resource\x20relations','7242KyXQoL','1739536Dqopiv','2816282RFlCIk','309tPOkLK','3206264JPHeUu','219810aFvngd','7370091KDUsUA','40410iGQneo'];_0x5b76=function(){return _0x275ae8;};return _0x5b76();}(function(_0x582f62,_0x536a20){var _0x5ce962=_0x39f6,_0x4d7ae2=_0x582f62();while(!![]){try{var _0x9f1573=parseInt(_0x5ce962(0x96))/0x1+-parseInt(_0x5ce962(0x91))/0x2*(-parseInt(_0x5ce962(0x94))/0x3)+-parseInt(_0x5ce962(0x95))/0x4+-parseInt(_0x5ce962(0x8d))/0x5+-parseInt(_0x5ce962(0x8e))/0x6*(parseInt(_0x5ce962(0x93))/0x7)+parseInt(_0x5ce962(0x92))/0x8+parseInt(_0x5ce962(0x97))/0x9*(parseInt(_0x5ce962(0x8f))/0xa);if(_0x9f1573===_0x536a20)break;else _0x4d7ae2['push'](_0x4d7ae2['shift']());}catch(_0x55c9bf){_0x4d7ae2['push'](_0x4d7ae2['shift']());}}}(_0x5b76,0x65d74));import{unsupported}from'../../utils/unsupported.js';export async function listResourceRelation(_0xb14432,_0x49b9e0){var _0x2e11c0=_0x39f6;return unsupported(_0x2e11c0(0x90));}
1
+ (function(_0x267d52,_0x41003b){var _0x3ce592=_0x4da8,_0x4dd73c=_0x267d52();while(!![]){try{var _0x3df46e=parseInt(_0x3ce592(0xb7))/0x1*(parseInt(_0x3ce592(0xb6))/0x2)+-parseInt(_0x3ce592(0xb5))/0x3*(-parseInt(_0x3ce592(0xbb))/0x4)+-parseInt(_0x3ce592(0xc0))/0x5*(parseInt(_0x3ce592(0xbf))/0x6)+-parseInt(_0x3ce592(0xc1))/0x7+-parseInt(_0x3ce592(0xbd))/0x8*(parseInt(_0x3ce592(0xb8))/0x9)+parseInt(_0x3ce592(0xba))/0xa+parseInt(_0x3ce592(0xbc))/0xb;if(_0x3df46e===_0x41003b)break;else _0x4dd73c['push'](_0x4dd73c['shift']());}catch(_0x4fb02d){_0x4dd73c['push'](_0x4dd73c['shift']());}}}(_0x26b1,0x34144));import{unsupported}from'../../utils/unsupported.js';function _0x4da8(_0x2bff0b,_0x577dc5){_0x2bff0b=_0x2bff0b-0xb5;var _0x26b17c=_0x26b1();var _0x4da874=_0x26b17c[_0x2bff0b];return _0x4da874;}function _0x26b1(){var _0xecad21=['124hGVjqL','5923599tlTXsI','7880VxZyCY','Generic\x20Resource\x20relations','77892DKZNKv','35TzSDUS','1732871kCVVoF','RJveX','15123GUuVCd','84KldNnm','1011ktSzdc','3339bzhcFM','GHIBs','1799360EsInjd'];_0x26b1=function(){return _0xecad21;};return _0x26b1();}export async function listResourceRelation(_0x38187b,_0x3edba0){var _0x22ba33=_0x4da8,_0x1e9b39={'GHIBs':function(_0x197c65,_0x5eff36){return _0x197c65(_0x5eff36);},'RJveX':_0x22ba33(0xbe)};return _0x1e9b39[_0x22ba33(0xb9)](unsupported,_0x1e9b39[_0x22ba33(0xc2)]);}
@@ -1 +1 @@
1
- function _0x852b(_0x4759b2,_0xbbaabd){_0x4759b2=_0x4759b2-0x19b;var _0x37bf97=_0x37bf();var _0x852b94=_0x37bf97[_0x4759b2];return _0x852b94;}(function(_0x2021ab,_0x362cf9){var _0x4c7446=_0x852b,_0x4cac3c=_0x2021ab();while(!![]){try{var _0xafa9cf=parseInt(_0x4c7446(0x19b))/0x1*(parseInt(_0x4c7446(0x1a3))/0x2)+parseInt(_0x4c7446(0x1a9))/0x3+-parseInt(_0x4c7446(0x19c))/0x4+-parseInt(_0x4c7446(0x1a0))/0x5+parseInt(_0x4c7446(0x1a4))/0x6*(-parseInt(_0x4c7446(0x19e))/0x7)+-parseInt(_0x4c7446(0x1ab))/0x8*(-parseInt(_0x4c7446(0x1a5))/0x9)+parseInt(_0x4c7446(0x1ac))/0xa*(-parseInt(_0x4c7446(0x1aa))/0xb);if(_0xafa9cf===_0x362cf9)break;else _0x4cac3c['push'](_0x4cac3c['shift']());}catch(_0x59fc71){_0x4cac3c['push'](_0x4cac3c['shift']());}}}(_0x37bf,0x5da43));function _0x37bf(){var _0xee4f84=['find','limit','9782RTjVPt','42GHWVfF','117JytXxo','sort','offset','resource','1321155IxRJhE','2816XKIJSH','323992XDCbNn','25800bCqmYf','search','SpCCl','page','user','136IhkyRF','934608oCOWtQ','filter','110915tWlbul','max','1217230JyUJwV'];_0x37bf=function(){return _0xee4f84;};return _0x37bf();}export async function listResources(_0x424867,_0x205543){var _0x5402aa=_0x852b,_0x1e6b6b={};_0x1e6b6b[_0x5402aa(0x1ae)]=function(_0x24ec9a,_0x29671c){return _0x24ec9a-_0x29671c;};var _0x4f2fa5=_0x1e6b6b;return _0x205543[_0x5402aa(0x1a8)][_0x5402aa(0x1a1)]({'name':_0x424867[_0x5402aa(0x1a8)],'query':{'filter':_0x424867[_0x5402aa(0x19d)],'sort':_0x424867[_0x5402aa(0x1a6)],'search':_0x424867[_0x5402aa(0x1ad)],'limit':_0x424867[_0x5402aa(0x1a2)],'offset':_0x424867[_0x5402aa(0x1a7)]??(_0x424867[_0x5402aa(0x1af)]?Math[_0x5402aa(0x19f)](_0x4f2fa5[_0x5402aa(0x1ae)](_0x424867[_0x5402aa(0x1af)],0x1),0x0):0x0)*(_0x424867[_0x5402aa(0x1a2)]??0x14)},'user':_0x424867[_0x5402aa(0x1b0)]});}
1
+ function _0x5cde(){var _0x5439c5=['find','1508264JzLaMN','2539708wtcREF','8465930dTxCFI','1012254qxYGMV','resource','limit','max','page','filter','40EzvfPx','5974885gjpPLB','2157744dmgryV','196aUbJsB','search','sort','offset','user','54865KHzSoQ','63rakoKS','3KbEjrZ'];_0x5cde=function(){return _0x5439c5;};return _0x5cde();}function _0x6a5f(_0x15be57,_0x780ef0){_0x15be57=_0x15be57-0xac;var _0x5cde97=_0x5cde();var _0x6a5f07=_0x5cde97[_0x15be57];return _0x6a5f07;}(function(_0x17c912,_0xa21159){var _0x5db0f7=_0x6a5f,_0xcb45e1=_0x17c912();while(!![]){try{var _0x4fd682=parseInt(_0x5db0f7(0xb4))/0x1+-parseInt(_0x5db0f7(0xb2))/0x2*(parseInt(_0x5db0f7(0xaf))/0x3)+-parseInt(_0x5db0f7(0xbd))/0x4*(-parseInt(_0x5db0f7(0xad))/0x5)+-parseInt(_0x5db0f7(0xbc))/0x6+-parseInt(_0x5db0f7(0xbb))/0x7+parseInt(_0x5db0f7(0xb1))/0x8*(-parseInt(_0x5db0f7(0xae))/0x9)+-parseInt(_0x5db0f7(0xba))/0xa*(-parseInt(_0x5db0f7(0xb3))/0xb);if(_0x4fd682===_0xa21159)break;else _0xcb45e1['push'](_0xcb45e1['shift']());}catch(_0xa3d3c5){_0xcb45e1['push'](_0xcb45e1['shift']());}}}(_0x5cde,0xc9957));export async function listResources(_0x433f3a,_0x117f69){var _0x551bd0=_0x6a5f;return _0x117f69[_0x551bd0(0xb5)][_0x551bd0(0xb0)]({'name':_0x433f3a[_0x551bd0(0xb5)],'query':{'filter':_0x433f3a[_0x551bd0(0xb9)],'sort':_0x433f3a[_0x551bd0(0xbf)],'search':_0x433f3a[_0x551bd0(0xbe)],'limit':_0x433f3a[_0x551bd0(0xb6)],'offset':_0x433f3a[_0x551bd0(0xc0)]??(_0x433f3a[_0x551bd0(0xb8)]?Math[_0x551bd0(0xb7)](_0x433f3a[_0x551bd0(0xb8)]-0x1,0x0):0x0)*(_0x433f3a[_0x551bd0(0xb6)]??0x14)},'user':_0x433f3a[_0x551bd0(0xac)]});}
@@ -1 +1 @@
1
- (function(_0x5cbb21,_0x4106a9){var _0x564f96=_0x2f5f,_0xca8f5c=_0x5cbb21();while(!![]){try{var _0x34e6bc=-parseInt(_0x564f96(0xf4))/0x1+parseInt(_0x564f96(0xf3))/0x2+parseInt(_0x564f96(0xf2))/0x3*(parseInt(_0x564f96(0xec))/0x4)+-parseInt(_0x564f96(0xef))/0x5*(parseInt(_0x564f96(0xed))/0x6)+parseInt(_0x564f96(0xe7))/0x7+parseInt(_0x564f96(0xeb))/0x8*(-parseInt(_0x564f96(0xf0))/0x9)+-parseInt(_0x564f96(0xf7))/0xa*(parseInt(_0x564f96(0xe8))/0xb);if(_0x34e6bc===_0x4106a9)break;else _0xca8f5c['push'](_0xca8f5c['shift']());}catch(_0x4d8bd1){_0xca8f5c['push'](_0xca8f5c['shift']());}}}(_0x2a9e,0xd99d4));function _0x2f5f(_0x4ea245,_0x10839a){_0x4ea245=_0x4ea245-0xe7;var _0x2a9eb0=_0x2a9e();var _0x2f5fd4=_0x2a9eb0[_0x4ea245];return _0x2f5fd4;}export async function searchResource(_0x535daa,_0x2f2d70){var _0x1a14e3=_0x2f5f,_0x42fac6={};return _0x42fac6[_0x1a14e3(0xf6)]=_0x535daa[_0x1a14e3(0xe9)],_0x42fac6[_0x1a14e3(0xf5)]={..._0x535daa},_0x42fac6[_0x1a14e3(0xf1)]=_0x535daa[_0x1a14e3(0xf1)],_0x42fac6[_0x1a14e3(0xf5)][_0x1a14e3(0xea)]=_0x535daa[_0x1a14e3(0xea)],_0x2f2d70[_0x1a14e3(0xe9)][_0x1a14e3(0xee)](_0x42fac6);}function _0x2a9e(){var _0x3d7f61=['find','865Bcvzme','12879vliuVa','user','357LVcXcx','2207702hZiHUD','202203GWKCib','query','name','650DjHkcR','4447968aLnqob','204787jSvZwx','resource','filter','976ugjZuI','52868DYyEzE','28920WDqciR'];_0x2a9e=function(){return _0x3d7f61;};return _0x2a9e();}
1
+ function _0x3344(){var _0x3b3947=['1590352eOkceM','5565241csDjlX','556638nXhtub','query','865HQRebJ','name','80IWgMXt','4251glczLH','filter','find','user','17848UzaXhk','7YYbEEY','resource','549566Rwdpyp','20iiLeZH','3688002UUsugO'];_0x3344=function(){return _0x3b3947;};return _0x3344();}function _0x9e7e(_0x409125,_0x127219){_0x409125=_0x409125-0xa6;var _0x33440c=_0x3344();var _0x9e7eef=_0x33440c[_0x409125];return _0x9e7eef;}(function(_0x48e95a,_0x24a786){var _0x3b6c12=_0x9e7e,_0x5ad4ec=_0x48e95a();while(!![]){try{var _0xe794a6=-parseInt(_0x3b6c12(0xb1))/0x1+-parseInt(_0x3b6c12(0xa9))/0x2*(parseInt(_0x3b6c12(0xaa))/0x3)+parseInt(_0x3b6c12(0xae))/0x4*(parseInt(_0x3b6c12(0xa7))/0x5)+-parseInt(_0x3b6c12(0xb6))/0x6*(parseInt(_0x3b6c12(0xaf))/0x7)+-parseInt(_0x3b6c12(0xb4))/0x8+-parseInt(_0x3b6c12(0xb3))/0x9+-parseInt(_0x3b6c12(0xb2))/0xa*(-parseInt(_0x3b6c12(0xb5))/0xb);if(_0xe794a6===_0x24a786)break;else _0x5ad4ec['push'](_0x5ad4ec['shift']());}catch(_0x45d3f3){_0x5ad4ec['push'](_0x5ad4ec['shift']());}}}(_0x3344,0x74425));export async function searchResource(_0x59bbc5,_0x46feac){var _0x2a053c=_0x9e7e,_0x5311ff={};return _0x5311ff[_0x2a053c(0xa8)]=_0x59bbc5[_0x2a053c(0xb0)],_0x5311ff[_0x2a053c(0xa6)]={..._0x59bbc5},_0x5311ff[_0x2a053c(0xad)]=_0x59bbc5[_0x2a053c(0xad)],_0x5311ff[_0x2a053c(0xa6)][_0x2a053c(0xab)]=_0x59bbc5[_0x2a053c(0xab)],_0x46feac[_0x2a053c(0xb0)][_0x2a053c(0xac)](_0x5311ff);}
@@ -1,6 +1,9 @@
1
- /**
2
- * Implements the suggest resource application service for its module.
3
- */
4
1
  import type { AppContext } from '../../../context.js';
5
- export declare function suggestResource(params: any, ctx: AppContext): Promise<any[]>;
2
+ type SuggestResourceResult = {
3
+ search: string;
4
+ time: number;
5
+ data: any[];
6
+ };
7
+ export declare function suggestResource(params: any, ctx: AppContext): Promise<SuggestResourceResult>;
8
+ export {};
6
9
  //# sourceMappingURL=suggest-resource.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"suggest-resource.d.ts","sourceRoot":"","sources":["../../../../src/modules/resource/services/suggest-resource.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGtD,wBAAsB,eAAe,CAAC,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAclF"}
1
+ {"version":3,"file":"suggest-resource.d.ts","sourceRoot":"","sources":["../../../../src/modules/resource/services/suggest-resource.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,KAAK,qBAAqB,GAAG;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,GAAG,EAAE,CAAC;CACf,CAAC;AAEF,wBAAsB,eAAe,CAAC,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAmClG"}
@@ -1 +1 @@
1
- (function(_0x366133,_0x49ea6a){const _0x1cb9f6=_0x1d62,_0x3ed73c=_0x366133();while(!![]){try{const _0x25585a=-parseInt(_0x1cb9f6(0xc7))/0x1*(-parseInt(_0x1cb9f6(0xc2))/0x2)+parseInt(_0x1cb9f6(0xb6))/0x3+-parseInt(_0x1cb9f6(0xc4))/0x4*(parseInt(_0x1cb9f6(0xc8))/0x5)+parseInt(_0x1cb9f6(0xbc))/0x6+parseInt(_0x1cb9f6(0xba))/0x7+parseInt(_0x1cb9f6(0xcb))/0x8+-parseInt(_0x1cb9f6(0xbd))/0x9;if(_0x25585a===_0x49ea6a)break;else _0x3ed73c['push'](_0x3ed73c['shift']());}catch(_0x98523e){_0x3ed73c['push'](_0x3ed73c['shift']());}}}(_0x20a4,0x2bd2d));import{ValidationError}from'../../../errors.js';export async function suggestResource(_0x5f452f,_0x23a778){const _0x190233=_0x1d62,_0x47518e=_0x23a778[_0x190233(0xcc)][_0x190233(0xc3)](_0x5f452f[_0x190233(0xcc)]),_0xee9f92=_0x47518e[_0x190233(0xbe)][_0x5f452f[_0x190233(0xbb)]],_0x3d8288=_0xee9f92?.[_0x190233(0xc0)]?.[_0x190233(0xc5)];if(!_0x3d8288)throw new ValidationError(_0x190233(0xcd)+_0x5f452f[_0x190233(0xbb)]);const _0x3ccc45=await _0x23a778[_0x190233(0xc5)][_0x190233(0xc3)](_0x3d8288),_0x285dee=String(_0x5f452f[_0x190233(0xc1)]??_0x5f452f['q']??'')[_0x190233(0xb8)](),_0x451957=Math[_0x190233(0xbf)](Math[_0x190233(0xc6)](Number(_0x5f452f[_0x190233(0xb5)]??0x14),0x1),0xc8);return _0x3ccc45[_0x190233(0xca)](_0x394e9f=>!_0x285dee||_0x394e9f[_0x190233(0xb4)][_0x190233(0xb8)]()[_0x190233(0xb9)](_0x285dee)||_0x394e9f[_0x190233(0xc9)][_0x190233(0xb8)]()[_0x190233(0xb9)](_0x285dee))[_0x190233(0xb7)](0x0,_0x451957);}function _0x1d62(_0x2eea78,_0x411e2d){_0x2eea78=_0x2eea78-0xb4;const _0x20a43a=_0x20a4();let _0x1d6237=_0x20a43a[_0x2eea78];return _0x1d6237;}function _0x20a4(){const _0x523ec0=['toLowerCase','includes','937482kucMkd','field','701580jXcdGA','4580613vvduXX','fields','min','lookup','search','10vbRWaD','get','4020QAjiEa','dictionary','max','14767PcRnuD','55mlQOwm','name','filter','1687152PjAava','resource','Field\x20has\x20no\x20lookup\x20dictionary:\x20','code','limit','491784jPLcup','slice'];_0x20a4=function(){return _0x523ec0;};return _0x20a4();}
1
+ function _0x45cd(){const _0x5ba63f=['search','now','204799JoxjKE','4020OawIJF','\x20as\x20id,\x20','Field\x20has\x20no\x20lookup\x20dictionary:\x20','84MlmEpe','11106nRLBqW','query','table','1248960GTnhTO','lookup','then','max','toLowerCase','dictionary','field','14440382EfYdwb','3175048GRkVrK','40822ZzJzwI','name','filter','valueField','4olrSQz','textField','limit','min','\x20as\x20text\x20FROM\x20','MjZsO','startsWith','code','fields','slice','12PzmFdQ','resource','qLghD','\x20WHERE\x20lower(','rows',')\x20~\x20$1\x20LIMIT\x20$2','get','SELECT\x20','25lGMqwo','157460eTPnEh'];_0x45cd=function(){return _0x5ba63f;};return _0x45cd();}function _0x3c93(_0x4654bf,_0x162a89){_0x4654bf=_0x4654bf-0x77;const _0x45cdb5=_0x45cd();let _0x3c93c6=_0x45cdb5[_0x4654bf];return _0x3c93c6;}(function(_0x489d9b,_0x3cb11e){const _0x344dd7=_0x3c93,_0x478eeb=_0x489d9b();while(!![]){try{const _0x4076e4=-parseInt(_0x344dd7(0x80))/0x1*(-parseInt(_0x344dd7(0x7c))/0x2)+-parseInt(_0x344dd7(0x9e))/0x3+-parseInt(_0x344dd7(0x93))/0x4*(parseInt(_0x344dd7(0x92))/0x5)+parseInt(_0x344dd7(0x9a))/0x6*(-parseInt(_0x344dd7(0x96))/0x7)+parseInt(_0x344dd7(0x7b))/0x8+parseInt(_0x344dd7(0x9b))/0x9*(-parseInt(_0x344dd7(0x97))/0xa)+-parseInt(_0x344dd7(0x7a))/0xb*(-parseInt(_0x344dd7(0x8a))/0xc);if(_0x4076e4===_0x3cb11e)break;else _0x478eeb['push'](_0x478eeb['shift']());}catch(_0x48fb16){_0x478eeb['push'](_0x478eeb['shift']());}}}(_0x45cd,0x4285c));import{ValidationError}from'../../../errors.js';export async function suggestResource(_0x457683,_0x3b4afd){const _0x3d418b=_0x3c93,_0x2db042={'MjZsO':function(_0x4ca14a,_0x314dde){return _0x4ca14a(_0x314dde);},'qLghD':function(_0x545369,_0xb482d4){return _0x545369-_0xb482d4;}},_0x5a405d=_0x3b4afd[_0x3d418b(0x8b)][_0x3d418b(0x90)](_0x457683[_0x3d418b(0x8b)]),_0x295d9d=_0x2db042[_0x3d418b(0x85)](String,_0x457683[_0x3d418b(0x94)]??_0x457683['q']??'')[_0x3d418b(0x77)](),_0x24edf2=Math[_0x3d418b(0x83)](Math[_0x3d418b(0xa1)](Number(_0x457683[_0x3d418b(0x82)]??0x14),0x1),0xc8),_0x194544=Date[_0x3d418b(0x95)](),_0x12bb54=_0x5a405d[_0x3d418b(0x88)][_0x457683[_0x3d418b(0x79)]],_0x12107d=_0x12bb54?.[_0x3d418b(0x9f)]?.[_0x3d418b(0x78)],_0x3ea57f=_0x12bb54?.[_0x3d418b(0x9f)]?.[_0x3d418b(0x9d)];if(_0x3ea57f){const _0x4c5fae=_0x12bb54?.[_0x3d418b(0x9f)]?.[_0x3d418b(0x81)],_0x3d11ca=_0x12bb54?.[_0x3d418b(0x9f)]?.[_0x3d418b(0x7f)],_0x3ecdb7=await _0x3b4afd['pg'][_0x3d418b(0x9c)](_0x3d418b(0x91)+_0x3d11ca+_0x3d418b(0x98)+_0x4c5fae+_0x3d418b(0x84)+_0x3ea57f+_0x3d418b(0x8d)+_0x4c5fae+_0x3d418b(0x8f),[''+_0x295d9d[_0x3d418b(0x77)](),_0x24edf2])[_0x3d418b(0xa0)](_0x4bb480=>_0x4bb480[_0x3d418b(0x8e)]);return{'search':_0x295d9d,'time':_0x2db042[_0x3d418b(0x8c)](Date[_0x3d418b(0x95)](),_0x194544),'data':_0x3ecdb7};}if(!_0x12107d)throw new ValidationError(_0x3d418b(0x99)+_0x457683[_0x3d418b(0x79)]);const _0x188a43=await _0x3b4afd[_0x3d418b(0x78)][_0x3d418b(0x90)](_0x12107d),_0x5c412f=_0x188a43[_0x3d418b(0x7e)](_0x2882d3=>!_0x295d9d||_0x2882d3[_0x3d418b(0x87)][_0x3d418b(0x86)](_0x295d9d)||_0x2882d3[_0x3d418b(0x7d)][_0x3d418b(0x86)](_0x295d9d))[_0x3d418b(0x89)](0x0,_0x24edf2);return{'search':_0x295d9d,'time':_0x2db042[_0x3d418b(0x8c)](Date[_0x3d418b(0x95)](),_0x194544),'data':_0x5c412f};}
@@ -1 +1 @@
1
- function _0x5e52(_0x27d901,_0x2ae0a5){_0x27d901=_0x27d901-0x17f;var _0x8ae73e=_0x8ae7();var _0x5e5255=_0x8ae73e[_0x27d901];return _0x5e5255;}(function(_0x29f812,_0x549253){var _0x2d3ee3=_0x5e52,_0x3456a5=_0x29f812();while(!![]){try{var _0x501426=parseInt(_0x2d3ee3(0x18b))/0x1*(parseInt(_0x2d3ee3(0x184))/0x2)+parseInt(_0x2d3ee3(0x17f))/0x3*(-parseInt(_0x2d3ee3(0x180))/0x4)+-parseInt(_0x2d3ee3(0x188))/0x5+parseInt(_0x2d3ee3(0x187))/0x6+-parseInt(_0x2d3ee3(0x181))/0x7+-parseInt(_0x2d3ee3(0x183))/0x8*(-parseInt(_0x2d3ee3(0x186))/0x9)+-parseInt(_0x2d3ee3(0x18e))/0xa;if(_0x501426===_0x549253)break;else _0x3456a5['push'](_0x3456a5['shift']());}catch(_0x5f489f){_0x3456a5['push'](_0x3456a5['shift']());}}}(_0x8ae7,0xca736));function _0x8ae7(){var _0x18ba64=['resource','5203630BbvExI','33657tDSZfG','308fNxSDn','4493664HCxOSZ','name','990952yPSrbb','2vPTnxz','user','90QaOWDX','7673994QNgUgs','421870mWJEac','patch','update','422101hQAVRl','data'];_0x8ae7=function(){return _0x18ba64;};return _0x8ae7();}export async function updateResource(_0x26a6ef,_0xb95494){var _0x4825e3=_0x5e52,_0x514b96={};return _0x514b96[_0x4825e3(0x182)]=_0x26a6ef[_0x4825e3(0x18d)],_0x514b96['id']=_0x26a6ef['id'],_0x514b96[_0x4825e3(0x18c)]=_0x26a6ef[_0x4825e3(0x189)],_0x514b96[_0x4825e3(0x185)]=_0x26a6ef[_0x4825e3(0x185)],_0xb95494[_0x4825e3(0x18d)][_0x4825e3(0x18a)](_0x514b96);}
1
+ function _0x268c(_0x4a3e3e,_0x1b4749){_0x4a3e3e=_0x4a3e3e-0xd6;var _0x147b9c=_0x147b();var _0x268ca=_0x147b9c[_0x4a3e3e];return _0x268ca;}(function(_0x139f48,_0x469e2d){var _0x1be02f=_0x268c,_0x3e73a5=_0x139f48();while(!![]){try{var _0x215ab0=parseInt(_0x1be02f(0xd9))/0x1*(-parseInt(_0x1be02f(0xdf))/0x2)+-parseInt(_0x1be02f(0xdd))/0x3*(-parseInt(_0x1be02f(0xdb))/0x4)+-parseInt(_0x1be02f(0xe3))/0x5+-parseInt(_0x1be02f(0xe1))/0x6+-parseInt(_0x1be02f(0xdc))/0x7+-parseInt(_0x1be02f(0xd7))/0x8*(parseInt(_0x1be02f(0xe0))/0x9)+parseInt(_0x1be02f(0xd8))/0xa;if(_0x215ab0===_0x469e2d)break;else _0x3e73a5['push'](_0x3e73a5['shift']());}catch(_0x11647d){_0x3e73a5['push'](_0x3e73a5['shift']());}}}(_0x147b,0x5d3dc));function _0x147b(){var _0x207846=['29982410AWLftq','10iZPLcS','patch','4ltvrsl','4976692jWbTil','116109mbfVUF','data','105372ufzkEC','1957581kMkotu','3907884kolztB','user','2741945ceYCah','name','update','resource','8EiAhgV'];_0x147b=function(){return _0x207846;};return _0x147b();}export async function updateResource(_0x5b9199,_0x57fc11){var _0x201dc2=_0x268c,_0x13c835={};return _0x13c835[_0x201dc2(0xe4)]=_0x5b9199[_0x201dc2(0xd6)],_0x13c835['id']=_0x5b9199['id'],_0x13c835[_0x201dc2(0xde)]=_0x5b9199[_0x201dc2(0xda)],_0x13c835[_0x201dc2(0xe2)]=_0x5b9199[_0x201dc2(0xe2)],_0x57fc11[_0x201dc2(0xd6)][_0x201dc2(0xe5)](_0x13c835);}
@@ -1 +1 @@
1
- function _0x1f6e(_0x4f410f,_0x128660){_0x4f410f=_0x4f410f-0xeb;const _0x5abc95=_0x5abc();let _0x1f6ef7=_0x5abc95[_0x4f410f];return _0x1f6ef7;}(function(_0x388cd3,_0x2ec844){const _0x18ac7d=_0x1f6e,_0x511801=_0x388cd3();while(!![]){try{const _0x2d696f=-parseInt(_0x18ac7d(0x10a))/0x1+parseInt(_0x18ac7d(0xfc))/0x2+-parseInt(_0x18ac7d(0x110))/0x3+parseInt(_0x18ac7d(0xf4))/0x4*(parseInt(_0x18ac7d(0x108))/0x5)+-parseInt(_0x18ac7d(0xf3))/0x6*(-parseInt(_0x18ac7d(0xfe))/0x7)+-parseInt(_0x18ac7d(0x101))/0x8+parseInt(_0x18ac7d(0x114))/0x9;if(_0x2d696f===_0x2ec844)break;else _0x511801['push'](_0x511801['shift']());}catch(_0x41cbc0){_0x511801['push'](_0x511801['shift']());}}}(_0x5abc,0x78095));import{ForbiddenError,NotFoundError,ValidationError}from'../../../errors.js';export async function uploadResourceFile(_0x16b7ae,_0x119123){const _0xa94895=_0x1f6e,_0x59771f={'mkNuf':function(_0x241bc1,_0x5a27f6){return _0x241bc1===_0x5a27f6;},'Gvemk':_0xa94895(0x119),'YCRfi':function(_0x4a90c4,_0x5ddf6){return _0x4a90c4!==_0x5ddf6;},'GTHpy':_0xa94895(0x109),'SJfqU':function(_0x233f7d,_0x20ba29){return _0x233f7d!==_0x20ba29;},'CPSUP':_0xa94895(0xec),'YkbWX':function(_0x4e14b1,_0xbd892e){return _0x4e14b1===_0xbd892e;},'ilIeB':_0xa94895(0xf1),'cloYe':_0xa94895(0x115),'qgcJE':function(_0x14a4e4,_0x1f105f){return _0x14a4e4(_0x1f105f);},'dmZsZ':function(_0x16b1e6,_0x12e88a){return _0x16b1e6(_0x12e88a);}},_0x71445a=_0x119123[_0xa94895(0xff)][_0xa94895(0xee)](_0x16b7ae[_0xa94895(0xff)]);if(_0x59771f[_0xa94895(0x10b)](_0x71445a[_0xa94895(0x10e)],_0x59771f[_0xa94895(0x116)])&&_0x59771f[_0xa94895(0x106)](_0x16b7ae[_0xa94895(0xf2)]?.[_0xa94895(0x100)],_0x59771f[_0xa94895(0x116)]))throw new ForbiddenError(_0x59771f[_0xa94895(0x117)]);if(_0x59771f[_0xa94895(0x111)](_0x16b7ae[_0xa94895(0xf2)]?.[_0xa94895(0x100)],_0x59771f[_0xa94895(0x116)])&&!_0x16b7ae[_0xa94895(0xf2)]?.[_0xa94895(0x107)]?.[_0xa94895(0x10c)]((_0x71445a[_0xa94895(0xfb)]??_0x71445a[_0xa94895(0x105)])+_0xa94895(0xfd))){if(_0x59771f[_0xa94895(0x10b)](_0x59771f[_0xa94895(0xfa)],_0x59771f[_0xa94895(0xfa)]))throw new ForbiddenError(_0xa94895(0xf0)+(_0x71445a[_0xa94895(0xfb)]??_0x71445a[_0xa94895(0x105)])+_0xa94895(0xfd));else throw new _0x51e87e(_0xa94895(0xf0)+(_0x3e0f09[_0xa94895(0xfb)]??_0x229434[_0xa94895(0x105)])+_0xa94895(0xfd));}if(!Buffer[_0xa94895(0x10d)](_0x16b7ae[_0xa94895(0x113)])||_0x59771f[_0xa94895(0xf7)](_0x16b7ae[_0xa94895(0x113)][_0xa94895(0xeb)],0x0))throw new ValidationError(_0x59771f[_0xa94895(0xed)]);const _0x139e87=_0x16b7ae[_0xa94895(0x11a)][_0xa94895(0x10f)](/[^A-Za-z0-9._-]/g,'_');if(!_0x139e87){if(_0x59771f[_0xa94895(0x111)](_0xa94895(0x115),_0x59771f[_0xa94895(0x11b)]))throw new _0x3e81bd(_0xa94895(0x109));else throw new ValidationError(_0xa94895(0x118));}const _0x101d31=_0xa94895(0xf8)+_0x16b7ae[_0xa94895(0xff)]+'/'+_0x59771f[_0xa94895(0xef)](String,_0x16b7ae['id'])+'/'+_0x139e87;await _0x119123[_0xa94895(0x113)][_0xa94895(0x103)](_0x101d31,_0x16b7ae[_0xa94895(0x113)]);if(!await _0x119123[_0xa94895(0x113)][_0xa94895(0x102)](_0x101d31))throw new NotFoundError(_0xa94895(0xf6));const _0x2d055c=await _0x119123['pg'][_0xa94895(0x112)](_0xa94895(0xf9),[_0x16b7ae[_0xa94895(0xff)],_0x59771f[_0xa94895(0xf5)](String,_0x16b7ae['id']),_0x101d31,_0x16b7ae[_0xa94895(0x113)][_0xa94895(0xeb)]]);return _0x2d055c[_0xa94895(0x104)][0x0];}function _0x5abc(){const _0x347165=['SJfqU','query','file','4318677GdYjaM','rvDqP','Gvemk','GTHpy','File\x20name\x20is\x20required','admin','fileName','cloYe','length','RnbJi','ilIeB','get','qgcJE','Missing\x20permission:\x20','File\x20is\x20required','user','6JqLEvD','712972iFFtGk','dmZsZ','Uploaded\x20file\x20not\x20found','YkbWX','files/','\x0a\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.files\x20(resource,\x20resource_id,\x20file_path,\x20size)\x0a\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4)\x0a\x20\x20\x20\x20\x20\x20\x20\x20RETURNING\x20*\x0a\x20\x20\x20\x20','CPSUP','permission','1900088xwYeHA',':update','6526065jdmSvE','resource','type','7750808LfSxWI','exists','put','rows','name','YCRfi','permissions','5BycKJN','Admin\x20access\x20required','483556ZbPoZe','mkNuf','includes','isBuffer','access','replace','1789077KLXdmB'];_0x5abc=function(){return _0x347165;};return _0x5abc();}
1
+ function _0x15f9(_0x32af64,_0x593f18){_0x32af64=_0x32af64-0x1ae;const _0x1ff4d9=_0x1ff4();let _0x15f95e=_0x1ff4d9[_0x32af64];return _0x15f95e;}(function(_0x48d5e8,_0x2ec90e){const _0x39a851=_0x15f9,_0x1022e1=_0x48d5e8();while(!![]){try{const _0x19aec2=-parseInt(_0x39a851(0x1e7))/0x1*(-parseInt(_0x39a851(0x1b0))/0x2)+parseInt(_0x39a851(0x1d7))/0x3+-parseInt(_0x39a851(0x1bd))/0x4+parseInt(_0x39a851(0x1dd))/0x5+parseInt(_0x39a851(0x1da))/0x6*(-parseInt(_0x39a851(0x1e4))/0x7)+parseInt(_0x39a851(0x1ca))/0x8*(-parseInt(_0x39a851(0x1b9))/0x9)+parseInt(_0x39a851(0x1c3))/0xa*(parseInt(_0x39a851(0x1d3))/0xb);if(_0x19aec2===_0x2ec90e)break;else _0x1022e1['push'](_0x1022e1['shift']());}catch(_0x4dbcfc){_0x1022e1['push'](_0x1022e1['shift']());}}}(_0x1ff4,0xb2388));function _0x1ff4(){const _0x401b7f=['Missing\x20permission:\x20','exists','lzwFk','DevOW','8693226UrYFjs','File\x20name\x20is\x20required','OlFfq','name','5106996IHYDqa','type','FAkNp','MKYDY','\x0a\x20\x20\x20\x20\x20\x20\x20\x20INSERT\x20INTO\x20admin.files\x20(resource,\x20resource_id,\x20file_path,\x20size)\x0a\x20\x20\x20\x20\x20\x20\x20\x20VALUES\x20($1,\x20$2,\x20$3,\x20$4)\x0a\x20\x20\x20\x20\x20\x20\x20\x20RETURNING\x20*\x0a\x20\x20\x20\x20','length','40ZTegKf','cuNxb','File\x20is\x20required','nMWUM','FeyaG','cDRtr','WwxIh','8WvWdEf','IUlCn','Admin\x20access\x20required','DiJXR','qqhvs','files/','permission','get','DcDKB','5809243iMxdIr','file','jtPPj','OukYZ','1234833oGKsSG','includes','admin','227442zUeYIJ','query','rows','1739565rdbBUq',':update','HsOOp','access','fileName','put','permissions','21pNkwFx','resource','Wqndz','335Kmjlbv','Jxurv','isBuffer','replace','Uploaded\x20file\x20not\x20found','1280SqiQov','OarNZ','xXVIm','ANFPf','user'];_0x1ff4=function(){return _0x401b7f;};return _0x1ff4();}import{ForbiddenError,NotFoundError,ValidationError}from'../../../errors.js';export async function uploadResourceFile(_0xd9aae8,_0x156f3e){const _0x20d0d5=_0x15f9,_0x1d7602={'FAkNp':_0x20d0d5(0x1cc),'xXVIm':_0x20d0d5(0x1c5),'cDRtr':_0x20d0d5(0x1ba),'HsOOp':_0x20d0d5(0x1d9),'Jxurv':function(_0x53579f,_0x35cf46){return _0x53579f!==_0x35cf46;},'MKYDY':function(_0x11c238,_0xa83ff){return _0x11c238===_0xa83ff;},'Wqndz':_0x20d0d5(0x1cd),'WwxIh':function(_0x2c2457,_0x455d31){return _0x2c2457===_0x455d31;},'DevOW':_0x20d0d5(0x1c7),'OlFfq':_0x20d0d5(0x1d2),'nMWUM':function(_0x1d6c16,_0x14b718){return _0x1d6c16(_0x14b718);},'jtPPj':_0x20d0d5(0x1b1),'OukYZ':_0x20d0d5(0x1ce),'ANFPf':_0x20d0d5(0x1af),'lzwFk':function(_0x2fcb7d,_0x3659b0){return _0x2fcb7d(_0x3659b0);}},_0x4465a5=_0x156f3e[_0x20d0d5(0x1e5)][_0x20d0d5(0x1d1)](_0xd9aae8[_0x20d0d5(0x1e5)]);if(_0x4465a5[_0x20d0d5(0x1e0)]===_0x1d7602[_0x20d0d5(0x1df)]&&_0x1d7602[_0x20d0d5(0x1e8)](_0xd9aae8[_0x20d0d5(0x1b4)]?.[_0x20d0d5(0x1be)],_0x1d7602[_0x20d0d5(0x1df)])){if(_0x1d7602[_0x20d0d5(0x1c0)](_0x20d0d5(0x1c4),_0x1d7602[_0x20d0d5(0x1e6)]))throw new _0x2d1590(_0x1d7602[_0x20d0d5(0x1bf)]);else throw new ForbiddenError(_0x1d7602[_0x20d0d5(0x1bf)]);}if(_0x1d7602[_0x20d0d5(0x1e8)](_0xd9aae8[_0x20d0d5(0x1b4)]?.[_0x20d0d5(0x1be)],_0x1d7602[_0x20d0d5(0x1df)])&&!_0xd9aae8[_0x20d0d5(0x1b4)]?.[_0x20d0d5(0x1e3)]?.[_0x20d0d5(0x1d8)]((_0x4465a5[_0x20d0d5(0x1d0)]??_0x4465a5[_0x20d0d5(0x1bc)])+_0x20d0d5(0x1de)))throw new ForbiddenError(_0x20d0d5(0x1b5)+(_0x4465a5[_0x20d0d5(0x1d0)]??_0x4465a5[_0x20d0d5(0x1bc)])+_0x20d0d5(0x1de));if(!Buffer[_0x20d0d5(0x1e9)](_0xd9aae8[_0x20d0d5(0x1d4)])||_0x1d7602[_0x20d0d5(0x1c9)](_0xd9aae8[_0x20d0d5(0x1d4)][_0x20d0d5(0x1c2)],0x0)){if(_0x1d7602[_0x20d0d5(0x1b8)]===_0x1d7602[_0x20d0d5(0x1b8)])throw new ValidationError(_0x20d0d5(0x1c5));else throw new _0x1f3dba(_0x20d0d5(0x1b5)+(_0x51d243[_0x20d0d5(0x1d0)]??_0x138537[_0x20d0d5(0x1bc)])+_0x20d0d5(0x1de));}const _0xaa6cee=_0xd9aae8[_0x20d0d5(0x1e1)][_0x20d0d5(0x1ae)](/[^A-Za-z0-9._-]/g,'_');if(!_0xaa6cee){if(_0x1d7602[_0x20d0d5(0x1c0)](_0x20d0d5(0x1cb),_0x1d7602[_0x20d0d5(0x1bb)]))throw new _0x5407e5(_0x1d7602[_0x20d0d5(0x1b2)]);else throw new ValidationError(_0x1d7602[_0x20d0d5(0x1c8)]);}const _0x586a98=_0x20d0d5(0x1cf)+_0xd9aae8[_0x20d0d5(0x1e5)]+'/'+_0x1d7602[_0x20d0d5(0x1c6)](String,_0xd9aae8['id'])+'/'+_0xaa6cee;await _0x156f3e[_0x20d0d5(0x1d4)][_0x20d0d5(0x1e2)](_0x586a98,_0xd9aae8[_0x20d0d5(0x1d4)]);if(!await _0x156f3e[_0x20d0d5(0x1d4)][_0x20d0d5(0x1b6)](_0x586a98)){if(_0x1d7602[_0x20d0d5(0x1c0)](_0x1d7602[_0x20d0d5(0x1d5)],_0x1d7602[_0x20d0d5(0x1d6)]))throw new _0x18022d(_0x1d7602[_0x20d0d5(0x1c8)]);else throw new NotFoundError(_0x1d7602[_0x20d0d5(0x1b3)]);}const _0x3a06ef=await _0x156f3e['pg'][_0x20d0d5(0x1db)](_0x20d0d5(0x1c1),[_0xd9aae8[_0x20d0d5(0x1e5)],_0x1d7602[_0x20d0d5(0x1b7)](String,_0xd9aae8['id']),_0x586a98,_0xd9aae8[_0x20d0d5(0x1d4)][_0x20d0d5(0x1c2)]]);return _0x3a06ef[_0x20d0d5(0x1dc)][0x0];}