prisma-zod-generator
Version:
Prisma 2+ generator to emit Zod schemas from your Prisma schema
1 lines • 68.1 kB
JavaScript
'use strict';(function(_0x526054,_0x5525bd){function _0x62e700(_0x357cf7,_0x2a6c75,_0x5cb0a4,_0x45bcf6){return pzg_0x4d3c(_0x357cf7- -0x28e,_0x5cb0a4);}function _0x4b6592(_0x1fb673,_0x3f3c70,_0x26ed4e,_0x2cf789){return pzg_0x4d3c(_0x26ed4e-0x237,_0x1fb673);}const _0x4d929d=_0x526054();while(!![]){try{const _0x5597be=-parseInt(_0x4b6592(0x568,0x3f3,0x406,0x44b))/(0x25ff*-0x1+-0xc22+0x3222)*(parseInt(_0x4b6592(0x357,0x1ff,0x2ab,0x31f))/(0x5*-0x20d+-0x2*0x97+0xb71))+-parseInt(_0x4b6592(0x3cf,0x210,0x308,0x29a))/(0x10a8+-0x6d*0x23+-0xdf*0x2)+-parseInt(_0x4b6592(0x47f,0x241,0x360,0x493))/(-0x11f9+-0x7*0x28b+0x2*0x11e5)+parseInt(_0x62e700(-0xe,0x9b,0x126,-0x23))/(-0x8dd+-0x8d7+0x11b9)*(parseInt(_0x4b6592(0x685,0x606,0x511,0x4bb))/(0x9c6+-0x40d*0x3+0xcd*0x3))+-parseInt(_0x4b6592(0x482,0x48f,0x4fe,0x5ad))/(-0x1a0b+-0x2*-0x2fc+-0x141a*-0x1)*(-parseInt(_0x4b6592(0x4d2,0x6d3,0x546,0x61a))/(-0x10da+-0x3*-0xaed+-0xfe5*0x1))+-parseInt(_0x4b6592(0x17d,0x29d,0x2cc,0x3d0))/(-0xc19+-0x737*-0x4+-0x1*0x10ba)*(-parseInt(_0x4b6592(0x5c0,0x3ba,0x4f1,0x5c8))/(-0xd*-0x191+-0x1a01+0x5ae*0x1))+-parseInt(_0x62e700(-0x211,-0x109,-0x146,-0x125))/(0xe82+-0x29*-0x39+0x14*-0x12e)*(-parseInt(_0x4b6592(0x328,0x444,0x32e,0x1ba))/(-0x1*-0xcb3+0xfd6+-0x231*0xd));if(_0x5597be===_0x5525bd)break;else _0x4d929d['push'](_0x4d929d['shift']());}catch(_0x38a7d2){_0x4d929d['push'](_0x4d929d['shift']());}}}(pzg_0x2bdc,-0xdb5*-0x35+-0xfe*-0x19b+0xecfa));function pzg_0x4d3c(_0x162801,_0x316936){const _0x32b588=pzg_0x2bdc();return pzg_0x4d3c=function(_0x5919bd,_0xd32852){_0x5919bd=_0x5919bd-(0x803+0x19*-0xd7+0xd64);let _0x3c671b=_0x32b588[_0x5919bd];if(pzg_0x4d3c['HqEwVM']===undefined){var _0x5019da=function(_0x575ef2){const _0x211ea1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5c4574='',_0x198e3d='';for(let _0x4ff989=0x489+0x484+-0x1*0x90d,_0x2e85cf,_0x264c73,_0x1640b5=0x2c4*0x1+-0x1339+0x1075;_0x264c73=_0x575ef2['charAt'](_0x1640b5++);~_0x264c73&&(_0x2e85cf=_0x4ff989%(-0x8*0x4aa+0x65*-0x53+0x4613)?_0x2e85cf*(-0x791+0x223c+-0x1a6b)+_0x264c73:_0x264c73,_0x4ff989++%(-0x2b*-0x6+0xb81+-0xc7f))?_0x5c4574+=String['fromCharCode'](-0x25c3+-0x2c*-0x61+0xb*0x202&_0x2e85cf>>(-(0x19*-0x19+-0x13e9+0xb2e*0x2)*_0x4ff989&-0x23c5+0x1361+0x106a)):-0x149*0x10+0x149f+-0x1*0xf){_0x264c73=_0x211ea1['indexOf'](_0x264c73);}for(let _0xb3e1c1=0x1*-0x12f1+-0xbf*0x1b+0x2716,_0x53cd0e=_0x5c4574['length'];_0xb3e1c1<_0x53cd0e;_0xb3e1c1++){_0x198e3d+='%'+('00'+_0x5c4574['charCodeAt'](_0xb3e1c1)['toString'](-0x48c+0x13fb+-0xf5f))['slice'](-(0x34*0x49+0x25f3+-0x34c5));}return decodeURIComponent(_0x198e3d);};pzg_0x4d3c['qAPaty']=_0x5019da,_0x162801=arguments,pzg_0x4d3c['HqEwVM']=!![];}const _0x5aa2a0=_0x32b588[-0x1*0x185d+0x1dfc+-0x59f],_0x146511=_0x5919bd+_0x5aa2a0,_0x2c881f=_0x162801[_0x146511];return!_0x2c881f?(_0x3c671b=pzg_0x4d3c['qAPaty'](_0x3c671b),_0x162801[_0x146511]=_0x3c671b):_0x3c671b=_0x2c881f,_0x3c671b;},pzg_0x4d3c(_0x162801,_0x316936);}function pzg_0x53b243(_0x5bb7e2,_0x233adb,_0x180d91,_0x14fa72){return pzg_0x4d3c(_0x5bb7e2- -0x33f,_0x14fa72);}const pzg_0x43f036={};pzg_0x43f036[pzg_0x497039(0x6f9,0x576,0x624,0x61f)]=!![],Object[pzg_0x497039(0x192,0x2c3,0x256,0x224)+pzg_0x53b243(-0x266,-0x1a7,-0x3d6,-0x2c9)](exports,'__esModule',pzg_0x43f036),exports[pzg_0x497039(0x416,0x2db,0x3c4,0x3ad)+pzg_0x497039(0x3d0,0x2e9,0x3cd,0x26c)]=void(0x220a+0x17fe+-0x3a08);const ProFeatureBase_1=require('../../core/ProFeatureBase'),path_1=require('path'),prismaImport_1=require('../../../utils/prismaImport');class PostgresRLSGenerator extends ProFeatureBase_1[pzg_0x53b243(0x26,-0xa0,0x131,0x8a)+pzg_0x53b243(-0x220,-0xf1,-0x158,-0x381)]{constructor(_0x16f225,_0x345ac6={}){const _0x2a2350={};_0x2a2350['NsXTh']='./postgres'+_0x39637c(0x38d,0x31b,0x341,0x353);function _0x39637c(_0x1d8153,_0xf129ab,_0x5595b9,_0x1ea51c){return pzg_0x53b243(_0x5595b9-0x4d4,_0xf129ab-0x63,_0x5595b9-0x72,_0x1d8153);}const _0x41226a=_0x2a2350;function _0x1564c5(_0x38cc72,_0x5475e4,_0x497c1b,_0x3554c9){return pzg_0x497039(_0x38cc72-0x93,_0x5475e4- -0x2a2,_0x497c1b,_0x3554c9-0xd3);}super(_0x16f225);const _0x645903={'outputPath':_0x41226a[_0x39637c(0x196,0x1cd,0x2c2,0x154)],'generateMigrations':!![],'migrationFormat':_0x1564c5(0x1bf,0x9c,0x10e,0xe8),..._0x345ac6};this[_0x39637c(0x497,0x4a8,0x384,0x26e)]=_0x645903;}['getFeature'+pzg_0x497039(0x1e5,0x2fd,0x1c1,0x3a8)](){function _0x195cdb(_0x4d04db,_0xabbbfd,_0x575079,_0x30bfa8){return pzg_0x53b243(_0xabbbfd-0xad,_0xabbbfd-0x5e,_0x575079-0x1b3,_0x575079);}function _0x38150d(_0x48f355,_0x4733ca,_0x22a58a,_0x1f13e3){return pzg_0x53b243(_0x48f355-0x32f,_0x4733ca-0x67,_0x22a58a-0x51,_0x4733ca);}const _0x46824d={};_0x46824d[_0x38150d(0x2bf,0x1b1,0x3c2,0x3ef)]=_0x38150d(0x1f6,0x33b,0x107,0x238)+'ls';const _0xcb8a08=_0x46824d;return _0xcb8a08[_0x38150d(0x2bf,0x44d,0x3d6,0x3ea)];}async[pzg_0x497039(0x4d4,0x3e7,0x4a3,0x50a)+'ature'](){const _0x110e84={};_0x110e84[_0xe1db2a(-0xba,0x1e,-0x1ba,-0x169)]=_0xe1db2a(0x71,-0x13b,-0x114,-0x4)+'\x20PostgreSQ'+_0xe1db2a(-0x1b5,-0x1c4,-0x1b5,-0x167)+_0x16a180(0x232,0x2f8,0x2ca,0x29e)+'DMMF...';function _0xe1db2a(_0x976d29,_0x4ecb61,_0x358665,_0x541eb8){return pzg_0x497039(_0x976d29-0x149,_0x541eb8- -0x5cb,_0x4ecb61,_0x541eb8-0xea);}_0x110e84[_0x16a180(0x20f,0x252,0xe6,0x193)]=_0x16a180(0x69,-0x116,-0x75,-0x70)+'found\x20for\x20'+_0x16a180(0x2c,0xb4,-0x154,0x174)+_0xe1db2a(-0x153,-0xf3,-0x2d5,-0x1f7),_0x110e84[_0xe1db2a(0x3b,0xae,-0x18b,-0x96)]=_0xe1db2a(-0x37f,-0x190,-0x370,-0x1e2)+_0xe1db2a(-0x300,-0x38a,-0x36d,-0x228);const _0x53dd88=_0x110e84;this[_0xe1db2a(-0x90,-0x21b,-0x18d,-0x18d)](_0x53dd88[_0x16a180(0xcc,0x1de,0xda,0x11a)]);const _0x3e850b=this['getEnabled'+_0x16a180(0xd3,0x248,0x1e5,0x4)]();if(_0x3e850b[_0xe1db2a(-0x403,-0x475,-0x317,-0x2d5)]===-0x7c*-0x22+-0x7a0+0x2*-0x46c){this[_0xe1db2a(-0x2ae,-0x1be,-0x349,-0x1fb)](_0x53dd88[_0x16a180(0x20f,0x1e1,0x3b0,0x32c)]);return;}const _0xbc2aa4=this[_0x16a180(-0x27,0x155,0x32,0x173)+_0xe1db2a(-0x127,-0x9d,-0x10f,-0x1e6)](_0x3e850b);let _0x64fdc0=[];for(const _0x20a715 of _0xbc2aa4){const _0x2d33f3=this[_0x16a180(0x134,0x246,0x19e,0x2c9)+'SPolicies'](_0x20a715);_0x64fdc0=_0x64fdc0['concat'](_0x2d33f3);}const _0x1e7142=this['generateRL'+'SSQL'](_0x64fdc0),_0x2cb741=(-0x9*0x205+-0x20db*0x1+0x1984*0x2,path_1[_0xe1db2a(-0xc5,-0x234,-0x146,-0x224)])(this['config']['outputPath'],_0x16a180(0x1d7,0x2ab,0x359,0x24c)+'ql');await this['writeFile'](_0x2cb741,_0x1e7142);if(this[_0x16a180(0x7a,-0x100,0x13f,0x19a)][_0xe1db2a(-0x7c,-0x1ea,-0x90,-0x158)+'grations']){const _0x1a167d=this['generatePr'+'ismaMigrat'+'ion'](_0x64fdc0),_0x42cd31=(-0x17*0x13c+-0x1366+-0x6*-0x7f7,path_1[_0xe1db2a(-0x16f,-0xfd,-0x22a,-0x224)])(this[_0x16a180(0x7a,0x5a,-0xa3,-0x14)][_0xe1db2a(-0x1d3,-0x12c,-0x2b3,-0x28f)],_0xe1db2a(-0x1fc,-0x3cb,-0x28e,-0x2c8)+_0xe1db2a(-0x3b4,-0x28a,-0x167,-0x28d));await this[_0x16a180(0x119,0x147,0x1b6,-0x17)](_0x42cd31,_0x1a167d);}const _0x581da1=(-0x1*0x138f+-0x2*0x99e+-0x26cb*-0x1,path_1['join'])(this[_0xe1db2a(-0x58,-0x2b0,-0x4d,-0x1bb)][_0xe1db2a(-0x3fd,-0x2e1,-0x1df,-0x28f)],_0x53dd88[_0xe1db2a(-0x1a4,-0x22d,-0xae,-0x96)]),_0x59d50f=this[_0x16a180(0x134,0x1ec,0x22c,0xda)+_0xe1db2a(0xb4,0x120,0x64,-0x53)]((-0x3ed+0x1fb6+-0x1*0x1bc9,path_1['dirname'])(_0x581da1));function _0x16a180(_0x33c65b,_0x23c664,_0x5d3201,_0x220486){return pzg_0x53b243(_0x33c65b-0x1ca,_0x23c664-0x26,_0x5d3201-0xdf,_0x220486);}await this[_0x16a180(0x119,0x63,0x289,-0x62)](_0x581da1,_0x59d50f);const _0x4d44c8=(0x99a*-0x3+-0x1*-0x733+-0x1*-0x159b,path_1[_0x16a180(0x11,-0x156,-0x189,0x1)])(this[_0x16a180(0x7a,0xf8,-0xcb,0x190)][_0xe1db2a(-0x14f,-0x427,-0x2fd,-0x28f)],_0x16a180(0x1de,0x300,0x14c,0x87)),_0x5e63be=this[_0x16a180(0x134,0x1a2,-0x31,0x1ac)+'SDocumenta'+_0xe1db2a(-0x1d5,-0x23f,-0x313,-0x1f7)]((-0x1eb*0x3+0x132*-0x9+0x1083,path_1[_0x16a180(0x12b,0x8,0x22d,0x155)])(_0x4d44c8));await this[_0x16a180(0x119,0x88,-0x5,0xa)](_0x4d44c8,_0x5e63be),this[_0xe1db2a(-0xbc,-0x219,-0x2c,-0x18d)](_0x16a180(0x193,0x146,0x88,0x1f5)+_0x16a180(0x1b6,0x18b,0x341,0x82)+'es\x20for\x20'+_0x3e850b[_0xe1db2a(-0x2d4,-0x1a6,-0x229,-0x2d5)]+_0xe1db2a(-0x2ed,-0x1c0,-0x2c6,-0x1df));}['extractMod'+pzg_0x497039(0x340,0x3e5,0x409,0x4ee)](_0x149c48){const _0x147022={};_0x147022['sZSeU']=_0x1198e3(0x4a3,0x5c3,0x355,0x4d4);function _0x1198e3(_0x20bbc2,_0x3834f0,_0x4df63d,_0x3c5892){return pzg_0x53b243(_0x3c5892-0x53d,_0x3834f0-0x105,_0x4df63d-0x122,_0x3834f0);}function _0x65c557(_0xb9dab4,_0x123c98,_0x3321eb,_0x2a549e){return pzg_0x53b243(_0x2a549e-0x558,_0x123c98-0x1bc,_0x3321eb-0x1e9,_0x3321eb);}const _0x1e5d13=_0x147022,_0x68899f=[];for(const _0x57d74 of _0x149c48){const _0x24e351=[],_0x1d6b0f=_0x57d74['documentat'+_0x65c557(0x659,0x635,0x468,0x58d)];if(_0x1d6b0f){const _0xaeb561=this[_0x65c557(0x242,0x229,0x40e,0x3c6)+_0x65c557(0x2cd,0x1cb,0x1f8,0x330)+'s'](_0x57d74,'',_0x1e5d13['sZSeU']);for(const _0x3ebf38 of _0xaeb561){const _0x22e5f4=this['parsePolic'+'yAnnotatio'+'n'](_0x3ebf38,_0x57d74[_0x65c557(0x53e,0x65e,0x556,0x4ee)]);_0x22e5f4&&_0x24e351[_0x65c557(0x2dc,0x29a,0x575,0x3ea)](_0x22e5f4);}}for(const _0x21431a of _0x57d74[_0x65c557(0x369,0x379,0x3dd,0x473)]){const _0x197bfd=this['getFieldDo'+_0x65c557(0x526,0x562,0x333,0x4b5)+'n'](_0x57d74,_0x21431a[_0x1198e3(0x401,0x63e,0x589,0x4d3)]);if(_0x197bfd){const _0x171276=this[_0x65c557(0x2f9,0x40f,0x368,0x3c6)+_0x65c557(0x25b,0x2e3,0x447,0x330)+'s'](_0x57d74,_0x21431a[_0x1198e3(0x609,0x3b3,0x35a,0x4d3)],_0x1e5d13[_0x65c557(0x466,0x2b0,0x338,0x2cd)]);for(const _0xf11e0d of _0x171276){const _0x41784c=this[_0x1198e3(0x5d3,0x64c,0x3fa,0x4b4)+_0x65c557(0x460,0x513,0x2c9,0x37f)+'n'](_0xf11e0d,_0x57d74[_0x1198e3(0x60d,0x5e5,0x5aa,0x4d3)],_0x21431a[_0x65c557(0x3c2,0x5f7,0x557,0x4ee)]);_0x41784c&&_0x24e351[_0x1198e3(0x3a1,0x37f,0x415,0x3cf)](_0x41784c);}}}if(_0x24e351[_0x65c557(0x3ac,0x17c,0x1c0,0x2ee)]>0xd*-0x2af+0x4*0x12b+0x1e37){const _0x123acf={};_0x123acf[_0x65c557(0x1fd,0x444,0x302,0x2f0)]=_0x57d74['name'],_0x123acf[_0x65c557(0x33e,0x143,0x361,0x283)]=_0x24e351,_0x68899f['push'](_0x123acf);}}return _0x68899f;}[pzg_0x497039(0x4e7,0x4d7,0x4f0,0x574)+pzg_0x497039(0x488,0x387,0x1f6,0x242)+'n'](_0xb57248,_0x3cea9a,_0x508fc9){const _0x4c4ff4={};_0x4c4ff4[_0x4fcf9a(-0x18,-0xab,-0x121,-0x188)]=_0x595370(0x91,0x1e7,0x1d9,0x108),_0x4c4ff4[_0x595370(0x151,0x99,0x286,0x147)]=_0x4fcf9a(-0xcf,0x34,-0x7a,-0x111),_0x4c4ff4[_0x595370(-0x49,-0x171,-0x13b,-0x6)]=_0x595370(0x28d,0x23e,0x227,0x1b7),_0x4c4ff4['JFWtv']=_0x4fcf9a(0x15a,0x16d,0x43,0x225),_0x4c4ff4[_0x4fcf9a(0x99,0x1c1,0x1de,0xf1)]=function(_0x3f11a5,_0x2e1182){return _0x3f11a5&&_0x2e1182;};function _0x4fcf9a(_0x2f5089,_0xdc7f39,_0x3c8004,_0xa250eb){return pzg_0x497039(_0x2f5089-0x8b,_0x2f5089- -0x3fc,_0xdc7f39,_0xa250eb-0x1b2);}const _0x342616=_0x4c4ff4,_0x100f80=_0xb57248[_0x595370(-0x80,-0x7,-0x35,0xf7)](/^(\w+)(?:\((.*)\))?$/);if(!_0x100f80)return null;const [,_0x469267,_0x55fb49]=_0x100f80,_0x393a33=[_0x4fcf9a(-0x14a,-0x5f,-0x1fe,0x2c),'write',_0x595370(0x1b,-0x151,-0xc1,-0xec),_0x342616[_0x595370(-0x65,-0x47,0x82,0x56)],_0x595370(0x1de,-0x7,0x1f9,0x12c)];function _0x595370(_0x57cf85,_0x4e92f4,_0x5b6a0f,_0x72216){return pzg_0x53b243(_0x72216-0x1d2,_0x4e92f4-0x181,_0x5b6a0f-0x64,_0x4e92f4);}if(!_0x393a33[_0x4fcf9a(0x8d,-0x75,-0x4b,0x1a6)](_0x469267))return null;let _0x1ea185='',_0x45ea93,_0x31ed86,_0x2b8f89;if(_0x55fb49){const _0x5b5759=_0x55fb49[_0x595370(0x26e,0x24c,-0x3a,0xf7)](/(\w+):\s*"([^"]+)"/);if(_0x5b5759){const [,_0x26d3d3,_0x938ebf]=_0x5b5759;if(_0x26d3d3===_0x342616[_0x4fcf9a(0xd9,-0x27,-0xa2,0xdd)]){_0x45ea93=_0x342616[_0x4fcf9a(0xd9,0x125,-0x56,0x10b)],_0x1ea185=_0x938ebf;const _0x651c06=_0x938ebf[_0x595370(0x235,0x145,0x248,0xf7)](/(\w+)\s*=\s*ctx\.(\w+)/);_0x651c06&&(_0x31ed86=_0x651c06[0x1be9*-0x1+0x331*0x1+-0x1*-0x18b9],_0x2b8f89=_0x651c06[0x14e*-0x1+-0x198*-0xe+0x80*-0x2a]);}else{if(_0x26d3d3===_0x342616[_0x4fcf9a(-0x74,-0xd7,-0xb0,0x68)])_0x1ea185=_0x4fcf9a(0x3f,-0x48,0x1d6,0x151)+_0x938ebf+']';else _0x26d3d3===_0x342616['JFWtv']&&(_0x1ea185=_0x938ebf);}}}_0x342616[_0x4fcf9a(0x99,0x215,0x65,0x201)](_0x508fc9,!_0x31ed86)&&(_0x31ed86=_0x508fc9);const _0x53dd17={};return _0x53dd17[_0x4fcf9a(0x5d,0x34,-0xe1,0xf6)]=_0x469267,_0x53dd17[_0x595370(0x9,0x102,-0x98,0xb1)]=_0x45ea93,_0x53dd17[_0x4fcf9a(0x11b,-0xb,0x216,0x1ad)]=_0x1ea185||_0x595370(0x3,0x2d,-0x6e,0x61)+_0x469267+_0x4fcf9a(0x9d,0x16e,0xcf,0x166),_0x53dd17['field']=_0x31ed86,_0x53dd17[_0x595370(0x16d,0x68,0xa9,0xbd)+_0x595370(-0xe1,-0x60,-0x125,-0x9e)]=_0x2b8f89,_0x53dd17;}[pzg_0x497039(0x611,0x4ca,0x405,0x56c)+pzg_0x53b243(-0x1ab,-0x329,-0x17f,-0x14b)](_0xefb8ff){const _0x18aca9={};_0x18aca9['tvdDR']=_0x28e76c(0xc3,0x1c1,-0x4e,0x2a),_0x18aca9[_0x1eb8d5(0x3e3,0x465,0x44c,0x310)]=_0x1eb8d5(0x3f3,0x51f,0x4d3,0x621)+_0x1eb8d5(0x4b1,0x396,0x407,0x4ce),_0x18aca9[_0x1eb8d5(0x2e7,0x381,0x3d1,0x4c6)]=_0x28e76c(-0x15e,-0x2e4,-0x1ca,-0x189)+_0x1eb8d5(0x3b6,0x2ab,0x445,0x368)+_0x1eb8d5(0x388,0x2f7,0x25d,0x295)+_0x28e76c(-0xef,0x2e,-0x5c,-0x147)+'eir\x20own\x20da'+'ta';function _0x1eb8d5(_0x2c9ea5,_0x19f8c2,_0x590ad3,_0x2d0a6d){return pzg_0x53b243(_0x19f8c2-0x4c7,_0x19f8c2-0x5b,_0x590ad3-0x44,_0x590ad3);}const _0x439faf=_0x18aca9,_0x12b643=[],_0x1c83a0=_0xefb8ff[_0x1eb8d5(0x185,0x25f,0x20f,0x388)][_0x28e76c(0xb7,0x137,-0x13,0x21f)+'e']();for(const _0x4d821b of _0xefb8ff[_0x1eb8d5(0x10d,0x1f2,0x18a,0x286)]){const _0x31095f=this[_0x28e76c(-0x22a,-0x2fc,-0x16e,-0x18d)+_0x1eb8d5(0x358,0x20e,0x1e9,0x153)](_0x4d821b,_0x1c83a0);_0x31095f&&_0x12b643[_0x1eb8d5(0x2ce,0x359,0x3a0,0x41a)](_0x31095f);}function _0x28e76c(_0x56e0a5,_0x35cd95,_0x23d1f0,_0x71bf82){return pzg_0x497039(_0x56e0a5-0xde,_0x56e0a5- -0x4c0,_0x71bf82,_0x71bf82-0xcd);}if(this[_0x28e76c(-0xb0,0x1b,0x10,-0x59)]['tenantFiel'+'d']){const _0x3221d1={};_0x3221d1[_0x1eb8d5(0x4e9,0x45d,0x38e,0x441)]=_0x1c83a0+(_0x28e76c(0xd4,-0x63,-0x85,0x1f2)+_0x28e76c(-0xc8,-0x228,0x9a,-0x246)),_0x3221d1[_0x28e76c(-0x94,0x10c,-0x204,0x3b)]=_0x1c83a0,_0x3221d1[_0x28e76c(0x6f,0xd4,0x137,-0xcc)]=_0x439faf[_0x28e76c(-0x14c,0x3c,-0x7,-0x1de)],_0x3221d1[_0x1eb8d5(0x5fd,0x4ac,0x484,0x635)]=_0x439faf[_0x1eb8d5(0x377,0x465,0x4d5,0x3b3)],_0x3221d1['expression']=this['config'][_0x1eb8d5(0x357,0x2e0,0x43b,0x204)+'d']+(_0x1eb8d5(0x5c3,0x479,0x5e5,0x523)+_0x1eb8d5(0x5a4,0x4c6,0x3a8,0x630)+_0x28e76c(-0x120,-0x12e,-0x103,-0x21)+_0x28e76c(-0x12b,-0x1f5,-0x2bc,-0xc)+'d\x27)::uuid'),_0x3221d1[_0x1eb8d5(0x4cb,0x4c4,0x465,0x543)+'n']=_0x28e76c(0xfb,-0x7d,0x162,0x124)+'lation\x20-\x20u'+_0x28e76c(0x7,-0x55,0x6c,0x4b)+_0x1eb8d5(0x49b,0x4e3,0x406,0x5cb)+_0x1eb8d5(0x408,0x2fb,0x33f,0x16c)+_0x1eb8d5(0x1b9,0x283,0x1b1,0x15d)+_0x28e76c(-0x19a,-0x2b2,-0x293,-0xe0),_0x12b643['push'](_0x3221d1);}if(this[_0x1eb8d5(0x23c,0x377,0x272,0x485)][_0x28e76c(0x12,-0x115,0x1b2,0x112)+_0x28e76c(-0x42,0x110,-0x1,0x66)]&&this[_0x28e76c(-0xb0,0xee,-0x107,-0x209)][_0x28e76c(0xd3,0x18c,0x1c0,-0x54)+_0x28e76c(-0x1f7,-0x7a,-0x29e,-0x13c)]){const _0x513b4e={};_0x513b4e[_0x28e76c(0x36,-0x34,0x153,0x10)]=_0x1c83a0+(_0x28e76c(0x16,0x3f,-0x53,0x151)+_0x1eb8d5(0x26f,0x3e8,0x4c7,0x4b5)),_0x513b4e['table']=_0x1c83a0,_0x513b4e['operation']=_0x439faf['tvdDR'],_0x513b4e[_0x28e76c(0x85,-0x9f,-0xb,-0xc7)]=_0x439faf[_0x28e76c(0x3e,0x152,0x81,0x1d1)],_0x513b4e['expression']=this['config'][_0x28e76c(0xd3,-0x2b,-0x28,0x25d)+_0x28e76c(-0x1f7,-0xed,-0x35b,-0x2aa)]+('\x20=\x20current'+_0x28e76c(0x9f,-0xb3,0x132,-0x13)+'app.curren'+_0x28e76c(-0x155,-0x2b,-0x156,-0x2e0)+_0x28e76c(-0x1a1,-0x176,-0x2e9,-0x2d8)),_0x513b4e[_0x28e76c(0x9d,-0xd9,0xe4,0xa5)+'n']=_0x439faf[_0x1eb8d5(0x287,0x381,0x2b5,0x24c)],_0x12b643[_0x28e76c(-0xce,-0x185,0xd1,-0x17d)](_0x513b4e);}return _0x12b643;}[pzg_0x497039(0x39c,0x296,0x268,0x2ae)+pzg_0x53b243(-0x2b9,-0x140,-0x31f,-0x459)](_0x8ac279,_0x204aab){const _0x3751ff={};function _0x23e623(_0x42be31,_0x3a8eb7,_0x596555,_0x103b3b){return pzg_0x497039(_0x42be31-0x172,_0x596555-0x8d,_0x42be31,_0x103b3b-0x6b);}_0x3751ff[_0x23e623(0x23c,0x375,0x31f,0x1d3)]=_0x23e623(0x259,0x3b3,0x33f,0x46c),_0x3751ff[_0x420653(-0x104,-0x1,0x6,-0x127)]=_0x23e623(0x394,0x3c3,0x3ad,0x4eb);function _0x420653(_0x11eb43,_0x5cd6ac,_0x3fa68e,_0x41b5c7){return pzg_0x53b243(_0x3fa68e-0x66,_0x5cd6ac-0xa1,_0x3fa68e-0xdb,_0x5cd6ac);}const _0x1c7268=_0x3751ff,_0x23bdb0=_0x204aab+'_'+_0x8ac279['type']+'_policy';switch(_0x8ac279['type']){case _0x1c7268[_0x420653(-0x1a5,-0x10f,-0x268,-0x27a)]:return{'name':_0x23bdb0,'table':_0x204aab,'operation':_0x23e623(0x653,0x68a,0x61b,0x58e),'expression':this[_0x420653(0xc1,-0x23b,-0x9e,-0xa8)+_0x23e623(0x6b6,0x4ce,0x532,0x407)+'L'](_0x8ac279),'description':'Read\x20acces'+_0x420653(-0x3c,-0x120,-0xb4,-0x253)+_0x8ac279[_0x23e623(0x6f1,0x552,0x5a4,0x5e6)]};case _0x420653(-0x2f,-0x12d,-0xe4,-0x170):case'update':return{'name':_0x23bdb0,'table':_0x204aab,'operation':_0x1c7268[_0x420653(0x7d,-0x143,0x6,-0x14d)],'expression':this[_0x420653(-0x28,-0x15a,-0x9e,-0x12b)+'ditionToSQ'+'L'](_0x8ac279),'check':this['convertCon'+_0x420653(-0x17e,-0x9f,-0x55,-0x7a)+'L'](_0x8ac279),'description':'Update\x20acc'+_0x23e623(0x456,0x686,0x5d3,0x540)+':\x20'+_0x8ac279[_0x23e623(0x609,0x478,0x5a4,0x46a)]};case _0x420653(-0xf0,-0x240,-0x258,-0x1b5):return{'name':_0x23bdb0,'table':_0x204aab,'operation':_0x23e623(0x686,0x43e,0x5ce,0x5c6),'check':this[_0x420653(0xc5,0xa5,-0x9e,-0x19c)+_0x23e623(0x4fb,0x5b8,0x532,0x460)+'L'](_0x8ac279),'description':_0x23e623(0x3d0,0x3f6,0x4b0,0x4f5)+_0x420653(0x2b,0x6e,0x4c,0x13b)+':\x20'+_0x8ac279['condition']};case _0x420653(0x110,-0x24,-0x40,-0x7e):return{'name':_0x23bdb0,'table':_0x204aab,'operation':_0x420653(-0x2a4,-0xe7,-0x1b1,-0xc1),'expression':this[_0x420653(-0x136,0xb2,-0x9e,-0x165)+'ditionToSQ'+'L'](_0x8ac279),'description':'Delete\x20acc'+_0x420653(0x195,0x79,0x4c,0xe8)+':\x20'+_0x8ac279[_0x23e623(0x6aa,0x574,0x5a4,0x516)]};default:return null;}}['convertCon'+pzg_0x53b243(-0xbb,-0x30,-0x159,-0x210)+'L'](_0x458c71){const _0x48a656={};function _0x467038(_0x4f5f2e,_0x509343,_0x1bad07,_0x53b358){return pzg_0x53b243(_0x509343-0x1e6,_0x509343-0x1da,_0x1bad07-0x1a8,_0x4f5f2e);}_0x48a656['GYbdq']=function(_0x47eaf6,_0x91d54e){return _0x47eaf6===_0x91d54e;},_0x48a656[_0x1b75e1(0x110,-0x72,0x2f,0x104)]=_0x1b75e1(-0x369,-0x2d8,-0x31e,-0x444),_0x48a656[_0x1b75e1(0x3,-0x33,0xa7,0x153)]=_0x1b75e1(-0x173,-0x15d,-0xc0,-0x1e1),_0x48a656[_0x467038(0x134,0x237,0x1b6,0x2f9)]=_0x467038(-0x4a,0xbf,0x125,-0xdd);function _0x1b75e1(_0x25da33,_0x1374a7,_0x49ca93,_0x7a6e2d){return pzg_0x497039(_0x25da33-0x3f,_0x1374a7- -0x5da,_0x49ca93,_0x7a6e2d-0x72);}_0x48a656[_0x467038(0xa1,0x20e,0x1c4,0x239)]=_0x1b75e1(-0x1dc,-0x2bc,-0x219,-0x453);const _0x2cc3f9=_0x48a656;if(_0x2cc3f9[_0x467038(0x95,0x22f,0x37a,0x1da)](_0x458c71['subtype'],_0x1b75e1(-0x36a,-0x2ad,-0x2d1,-0x3b5))&&_0x458c71[_0x467038(0x77,-0xf0,-0xc0,0x74)]&&_0x458c71[_0x1b75e1(-0x2ad,-0x18f,-0x309,-0x32e)+_0x1b75e1(-0x437,-0x2ea,-0x47b,-0x46f)]){if(_0x458c71[_0x467038(-0x83,0xd1,0x206,0x99)+_0x467038(-0x206,-0x8a,0x4a,-0x1e9)]===_0x2cc3f9[_0x1b75e1(-0x88,-0x72,-0x106,0x11c)])return _0x458c71[_0x1b75e1(-0x21b,-0x350,-0x459,-0x33e)]+(_0x467038(0x332,0x198,0x2c6,0x116)+'_setting(\x27'+_0x1b75e1(-0x262,-0x23a,-0x23b,-0x179)+_0x1b75e1(-0x219,-0x245,-0x1c6,-0x103)+_0x1b75e1(-0x170,-0x212,-0x24a,-0x9e));if(_0x2cc3f9[_0x1b75e1(0x1b,-0x31,-0xb0,0x131)](_0x458c71[_0x1b75e1(-0x228,-0x18f,-0x60,-0x27d)+'iable'],_0x2cc3f9[_0x467038(0x389,0x22d,0x1fd,0x185)]))return _0x458c71[_0x467038(-0x3,-0xf0,0x9d,-0x1c7)]+(_0x467038(0x25b,0x198,0x248,0x139)+_0x467038(0x359,0x1e5,0x62,0x7c)+_0x467038(0xba,0x26,-0x9d,-0x14d)+'t_user_id\x27'+_0x1b75e1(-0x1b5,-0x2bb,-0x3a4,-0x2b3));if(_0x458c71[_0x467038(0x1a4,0xd1,0x10d,0x1b0)+_0x467038(-0xcf,-0x8a,-0xfc,-0x206)]===_0x2cc3f9[_0x1b75e1(-0x71,-0x29,-0x64,-0x1b5)])return _0x1b75e1(-0x39a,-0x2fa,-0x2c6,-0x1c3)+'tting(\x27app'+_0x467038(0xcd,-0x4a,0x94,0xd2)+_0x467038(0xf8,0x18b,0x45,0x2bc)+_0x1b75e1(-0x10e,-0x27d,-0x240,-0x22b)+_0x1b75e1(-0x39b,-0x2c0,-0x14b,-0x444)+_0x458c71[_0x1b75e1(0x4c,-0xc3,0x35,0xc3)]+'\x27]';return _0x458c71['field']+(_0x467038(0x2f2,0x198,0x18,0x29d)+_0x1b75e1(0x3d,-0x7b,-0xdd,0x5b)+'app.')+_0x458c71[_0x467038(0x201,0xd1,0x86,0x211)+_0x467038(0xd1,-0x8a,0x8e,-0x16a)]+'\x27)';}if(_0x458c71[_0x467038(0x11d,0x19d,0x153,0x1a8)][_0x1b75e1(-0x1ee,-0x151,-0x25e,-0x23)](_0x2cc3f9[_0x467038(0x1ec,0x20e,0x9d,0x1a9)])){const _0x37fa46=_0x458c71[_0x1b75e1(0x64,-0xc3,-0x1ee,-0x39)][_0x467038(-0x58,0x10b,0x42,0xa6)](/role\s+in\s+\[([^\]]+)\]/);if(_0x37fa46){const _0x3e84e2=_0x37fa46[0x1507+-0x26c5+0x1*0x11bf][_0x1b75e1(-0xbd,-0xf5,-0x1b0,0x4b)](',')[_0x467038(0xce,-0xb9,0xd1,0x76)](_0x179e2e=>_0x179e2e['trim']()[_0x467038(0x155,0x17a,0x2a6,0x1aa)](/['"]/g,''));return _0x467038(-0x1af,-0x9a,-0x1d9,-0x1f3)+_0x467038(-0x13,0x33,0xa4,0x4e)+'.current_u'+_0x1b75e1(-0x14,-0xd5,0xca,-0xb7)+_0x467038(0xbd,-0x1d,-0x5b,-0x160)+_0x467038(0x180,0x1d8,0x2c0,0x5e)+_0x3e84e2[_0x467038(-0x38,-0xb9,-0x1c7,-0x21d)](_0xd48b80=>'\x27'+_0xd48b80+'\x27')[_0x467038(-0x83,0x2d,0xe,0x4f)](',\x20')+']';}}if(_0x458c71[_0x467038(0x27b,0x19d,0x235,0xb)][_0x467038(0x39,0x10f,0xd,-0x3)](_0x467038(-0x8b,0xaa,0x38,0x1e0)+_0x1b75e1(-0x136,-0x1a3,-0x6c,-0x2c9))){const _0x247248=_0x458c71[_0x467038(0x1f6,0x19d,0x2bb,0x1b9)][_0x1b75e1(-0x12d,-0x155,-0x242,-0x1dd)](/permission\s+in\s+\[([^\]]+)\]/);if(_0x247248){const _0x67041c=_0x247248[-0xfb3*-0x1+0x1abd+-0x2a6f][_0x1b75e1(0x39,-0xf5,-0x23e,-0x1cb)](',')[_0x467038(-0x181,-0xb9,-0x1dd,-0x1ab)](_0x525181=>_0x525181[_0x1b75e1(-0x1f5,-0x70,-0x19e,0x93)]()[_0x1b75e1(-0x37,-0xe6,-0x7d,-0x105)](/['"]/g,''));return _0x1b75e1(-0x207,-0x2fa,-0x190,-0x40a)+_0x467038(-0x2,0x33,-0x100,-0x62)+'.current_u'+_0x1b75e1(-0x24a,-0x189,-0x2b8,-0x282)+_0x1b75e1(0xc8,-0x17,0x2f,0xa1)+'ext[]\x20&&\x20A'+_0x1b75e1(-0x166,-0x15b,-0x53,0x25)+_0x67041c[_0x467038(0x3b,-0xb9,0xe7,-0x58)](_0x4dd74a=>'\x27'+_0x4dd74a+'\x27')[_0x1b75e1(-0x24f,-0x233,-0x388,-0x356)](',\x20')+']';}}return _0x458c71[_0x1b75e1(-0x1d,-0xc3,0x9,-0x1d1)][_0x467038(0xa8,0x17a,0x22d,0x148)](/ctx\.(\w+)/g,_0x467038(0xd8,-0x9a,0x4c,0x81)+_0x1b75e1(-0x280,-0x22d,-0x18d,-0x108)+'.$1\x27)');}[pzg_0x53b243(-0x96,-0x13b,0x2b,-0x1ca)+pzg_0x497039(0x6e3,0x566,0x51b,0x703)](_0x44ce10){const _0x379f7a={};_0x379f7a['JsVdX']=_0x260e58(0x54b,0x3cf,0x548,0x51f)+_0x1dac71(-0xd7,-0x258,-0x11e,0xc1)+_0x1dac71(-0xe5,-0x114,0x4b,-0x247)+'ZG\x20Pro\x0a';const _0x260ea3=_0x379f7a;function _0x1dac71(_0xdd3651,_0x4227f9,_0x357f06,_0x13981f){return pzg_0x53b243(_0xdd3651-0x168,_0x4227f9-0x16e,_0x357f06-0x175,_0x13981f);}function _0x260e58(_0x4450cc,_0x16d430,_0x54d16c,_0x1ed620){return pzg_0x53b243(_0x16d430-0x490,_0x16d430-0x11d,_0x54d16c-0x198,_0x54d16c);}const _0x276560=[_0x260ea3[_0x1dac71(0x10,0x70,-0xfd,-0x12c)]],_0x45f2d8=_0x44ce10[_0x260e58(0x2d6,0x323,0x187,0x33b)]((_0x3c4bf3,_0x254f0e)=>{!_0x3c4bf3[_0x254f0e[_0xc35414(0x3ec,0x3a6,0x282,0x1f5)]]&&(_0x3c4bf3[_0x254f0e[_0xc35414(0x3be,0x211,0x282,0x3c3)]]=[]);_0x3c4bf3[_0x254f0e[_0xc35414(0x1c7,0x379,0x282,0x356)]][_0x588963(-0x31c,-0x6a,0x16,-0x187)](_0x254f0e);function _0xc35414(_0x24f128,_0x39e97e,_0x4ab826,_0x964da6){return _0x260e58(_0x24f128-0x140,_0x4ab826- -0xda,_0x39e97e,_0x964da6-0x140);}function _0x588963(_0x1659ee,_0x419649,_0x5ddb0b,_0x55ec53){return _0x260e58(_0x1659ee-0x1,_0x55ec53- -0x4a9,_0x5ddb0b,_0x55ec53-0x1b6);}return _0x3c4bf3;},{});for(const [_0xb8fc78,_0x2b315d]of Object['entries'](_0x45f2d8)){_0x276560[_0x260e58(0x23d,0x322,0x1ba,0x2f1)](_0x260e58(0x386,0x258,0x30e,0x347)+_0x1dac71(0x57,0x159,-0x114,0x146)+_0xb8fc78+_0x260e58(0x303,0x331,0x264,0x4bd)),_0x276560['push'](_0x1dac71(-0x3d,-0x28,-0xb7,-0x61)+_0x1dac71(0x9c,-0x2b,0x1bf,0x1e3)+_0xb8fc78+('\x22\x20ENABLE\x20R'+_0x260e58(0x130,0x25a,0x101,0x1c5)+_0x260e58(0x5a6,0x434,0x353,0x542)));for(const _0x166bb8 of _0x2b315d){_0x276560[_0x1dac71(-0x6,-0x88,0xc1,-0x164)]('--\x20'+(_0x166bb8['descriptio'+'n']||_0x260e58(0x4da,0x45c,0x35e,0x46a)+_0x166bb8['name']));let _0x5bb051=_0x1dac71(-0xa1,0xac,-0xeb,-0x1e3)+_0x260e58(0x2e8,0x41e,0x499,0x3cc)+_0x166bb8[_0x1dac71(0xfe,0xa4,0x162,0x1ec)]+'\x22';_0x5bb051+='\x0a\x20\x20ON\x20\x22'+_0x166bb8[_0x1dac71(0x34,-0x1a,0xb3,0x88)]+'\x22',_0x166bb8[_0x260e58(0x375,0x475,0x4fd,0x607)]?(_0x5bb051+=_0x1dac71(0x148,0x174,0x2d7,0xf9)+_0x166bb8['operation'],_0x5bb051+=_0x260e58(0x302,0x2ea,0x3e1,0x3bf)+_0x166bb8[_0x1dac71(0x14d,0x121,0x22b,0x41)]):_0x5bb051+=_0x260e58(0x559,0x470,0x5ec,0x331)+_0x166bb8[_0x260e58(0x39f,0x45f,0x484,0x50b)],_0x166bb8[_0x1dac71(0x142,0x1f2,0x1db,0x247)]&&(_0x5bb051+=_0x260e58(0x1cc,0x358,0x3be,0x3fe)+_0x166bb8[_0x1dac71(0x142,0x18c,-0x11,0xc)]+')'),_0x166bb8[_0x260e58(0x486,0x486,0x609,0x4d8)]&&(_0x5bb051+=_0x1dac71(-0x85,-0x2c,-0x120,0x72)+_0x260e58(0x2cc,0x1c3,0x21d,0x132)+_0x166bb8['check']+')'),_0x5bb051+=';\x0a',_0x276560[_0x1dac71(-0x6,-0x3,-0xa7,-0x66)](_0x5bb051);}_0x276560[_0x1dac71(-0x6,-0x2d,-0x18b,0x29)]('');}return _0x276560[_0x1dac71(-0x6,0x28,0xa2,-0xb3)](this[_0x1dac71(0x1bc,0x354,0xa9,0x1c5)+_0x260e58(0x3a0,0x3e1,0x258,0x4df)+_0x260e58(0xbb,0x21f,0x359,0x3b0)]()),_0x276560[_0x260e58(0x275,0x2d7,0x33f,0x13e)]('\x0a');}['generateHe'+pzg_0x53b243(-0xaf,-0x132,-0xeb,0x41)+pzg_0x497039(0x369,0x2ef,0x421,0x40a)](){function _0x399143(_0x4c21da,_0x685022,_0x59fac6,_0x5f43a9){return pzg_0x497039(_0x4c21da-0x164,_0x685022- -0x5d0,_0x59fac6,_0x5f43a9-0x1d5);}function _0x30b2f9(_0x10daa5,_0x10b2ee,_0x1a1fb0,_0x25fe73){return pzg_0x497039(_0x10daa5-0x14f,_0x1a1fb0- -0xb,_0x10b2ee,_0x25fe73-0x19);}return _0x399143(-0x28f,-0x15c,-0xbc,-0x12a)+_0x30b2f9(0x4c9,0x417,0x5ab,0x67d)+'for\x20RLS\x20co'+_0x30b2f9(0x265,0x303,0x2c9,0x250)+_0x399143(-0xd6,-0x251,-0x132,-0x344)+_0x30b2f9(0x510,0x51c,0x46a,0x47e)+'ent\x20user\x20c'+_0x399143(0x60,-0x3a,0x4,-0x14e)+'ATE\x20OR\x20REP'+_0x399143(-0x63,-0x7b,-0xba,-0x204)+_0x30b2f9(0x3f9,0x48b,0x30c,0x364)+_0x399143(0xff,-0x4f,-0x181,-0x189)+'_context(\x0a'+_0x30b2f9(0x529,0x4ab,0x490,0x533)+'uuid,\x0a\x20\x20te'+_0x30b2f9(0x65c,0x502,0x5b5,0x73f)+_0x30b2f9(0x529,0x468,0x567,0x4c3)+_0x399143(-0x227,-0xd8,-0x24a,-0x1c2)+_0x30b2f9(0x536,0x69e,0x4ff,0x423)+_0x30b2f9(0x485,0x6c0,0x528,0x696)+_0x399143(-0x5f,-0xba,-0x229,0xd)+_0x399143(-0x1f0,-0x79,0x104,0x35)+_0x30b2f9(0x4a0,0x4d8,0x3cd,0x452)+_0x399143(-0x37f,-0x1f6,-0x78,-0x332)+_0x30b2f9(0x471,0x573,0x488,0x3a8)+'void\x20AS\x20$$'+_0x399143(-0x15f,-0x250,-0x3e6,-0x124)+'ERFORM\x20set'+_0x30b2f9(0x471,0x1e9,0x332,0x1cb)+_0x399143(-0x10a,-0x225,-0x204,-0xa0)+_0x399143(-0x2b0,-0x2c2,-0x158,-0x249)+_0x30b2f9(0x35a,0x5b8,0x495,0x4d1)+_0x399143(-0x205,-0x23a,-0x267,-0x248)+_0x30b2f9(0x366,0x380,0x43c,0x551)+_0x30b2f9(0x2f2,0x1be,0x329,0x472)+_0x399143(-0x33a,-0x1d3,-0x1c8,-0x13f)+_0x30b2f9(0x5e5,0x521,0x4a8,0x3f3)+_0x30b2f9(0x280,0x366,0x3a7,0x309)+_0x399143(-0x439,-0x317,-0x2d7,-0x1b1)+_0x30b2f9(0x391,0x4a5,0x395,0x435)+'t_tenant_i'+_0x30b2f9(0x3bd,0x4c4,0x3c1,0x3f8)+'_id::text,'+_0x30b2f9(0x2b2,0x240,0x2ee,0x352)+'END\x20IF;\x0a\x0a\x20'+_0x30b2f9(0x467,0x415,0x5af,0x5be)+_0x30b2f9(0x4c4,0x471,0x348,0x421)+_0x399143(-0x88,-0x19b,-0x170,-0x209)+_0x399143(-0x2c2,-0x246,-0x14b,-0x1e4)+_0x399143(-0x360,-0x236,-0x2f3,-0x162)+_0x399143(-0x36,-0x3e,0x95,-0x1cb)+'nt_user_ro'+_0x399143(-0x1c,-0x107,-0x20d,-0x1f4)+_0x399143(-0x33b,-0x25f,-0x2bd,-0x14b)+'g(roles,\x20\x27'+',\x27),\x20true)'+';\x0a\x20\x20END\x20IF'+_0x30b2f9(0x385,0x38f,0x3fa,0x538)+_0x30b2f9(0x4b1,0x51b,0x54c,0x4cb)+'IS\x20NOT\x20NUL'+_0x399143(-0x208,-0x19b,-0x1ed,-0x109)+_0x30b2f9(0x358,0x23e,0x37f,0x520)+_0x399143(-0x11b,-0x236,-0xa1,-0x276)+_0x30b2f9(0x43b,0x573,0x587,0x497)+_0x30b2f9(0x66b,0x60f,0x532,0x3f1)+_0x30b2f9(0x62d,0x56a,0x577,0x67b)+_0x399143(-0x3ae,-0x30b,-0x1a2,-0x266)+'_string(pe'+_0x30b2f9(0x556,0x37a,0x3ba,0x370)+_0x399143(-0x2c5,-0x272,-0x39b,-0xe5)+_0x30b2f9(0x3df,0x4f4,0x539,0x6d6)+'IF;\x0aEND;\x0a$'+_0x399143(-0x299,-0x343,-0x47a,-0x3f9)+'\x20plpgsql\x20S'+'ECURITY\x20DE'+_0x399143(-0x3c4,-0x2db,-0x2d5,-0x287)+_0x30b2f9(0x1d8,0x1ed,0x359,0x21e)+_0x399143(-0x3c,-0x1cd,-0x34e,-0x81)+_0x30b2f9(0x691,0x68d,0x511,0x57b)+_0x30b2f9(0x228,0x1e8,0x295,0x2a3)+_0x399143(-0x18c,-0x1aa,-0x93,-0x22a)+_0x30b2f9(0x223,0x2a7,0x349,0x218)+_0x30b2f9(0x212,0x4a0,0x34e,0x201)+_0x399143(-0x131,-0x25a,-0x15a,-0x2ff)+_0x30b2f9(0x59c,0x48d,0x5ba,0x6b7)+_0x30b2f9(0xec,0x110,0x281,0x3ed)+_0x399143(-0x2c,-0xa9,0xc9,-0x22e)+_0x30b2f9(0x1c8,0x38e,0x33d,0x300)+_0x30b2f9(0x55c,0x56e,0x411,0x589)+_0x399143(-0x1a5,-0x2a0,-0x3ec,-0x386)+_0x399143(-0x1ed,-0x92,0x67,-0x1db)+'\x27,\x20true);\x0a'+_0x399143(-0x4a4,-0x33c,-0x4d0,-0x1e9)+_0x399143(-0x93,-0x18e,-0x125,-0x139)+_0x399143(-0x3aa,-0x214,-0x3ad,-0x274)+'ent_tenant'+_0x30b2f9(0x3d1,0x3d2,0x34f,0x262)+_0x30b2f9(0x41d,0x4b9,0x52d,0x5f2)+_0x30b2f9(0x607,0x5ac,0x531,0x662)+_0x399143(-0x202,-0x293,-0x299,-0x1bf)+('pp.current'+_0x399143(-0x3f9,-0x2c1,-0x1ba,-0x3af)+_0x399143(-0x34a,-0x20a,-0x12f,-0xe2)+'ue);\x0a\x20\x20PER'+_0x30b2f9(0x2f2,0x2e7,0x33d,0x33a)+_0x399143(-0x226,-0x1b4,-0x207,-0x181)+_0x30b2f9(0x389,0x256,0x325,0x1d3)+_0x30b2f9(0x5a7,0x52d,0x446,0x3b5)+'sions\x27,\x20\x27\x27'+_0x399143(-0xc8,-0xcf,-0x226,-0x115)+_0x399143(-0xf3,-0xf,0xbe,0x47)+_0x30b2f9(0x5e4,0x45a,0x5b7,0x72f)+_0x30b2f9(0x483,0x4e7,0x478,0x52a)+_0x399143(-0x2e3,-0x1bf,-0x16d,-0x135)+_0x30b2f9(0x582,0x466,0x4dc,0x545)+_0x399143(-0x77,-0x10a,-0x271,-0x128)+_0x30b2f9(0x226,0x32f,0x39b,0x2b8)+_0x399143(0x8f,-0x6f,-0x1f1,0x103)+_0x399143(-0x28,-0x13,-0x97,0x122)+_0x399143(-0x2c3,-0x220,-0x231,-0xcc)+_0x30b2f9(0x243,0x549,0x3b9,0x484)+_0x399143(0x6,-0x8e,0xc2,0x89)+_0x30b2f9(0x53e,0x30d,0x3b4,0x54e)+_0x30b2f9(0x4a7,0x2ad,0x396,0x3e3)+_0x399143(-0xba,-0x24a,-0x1a5,-0x355)+_0x30b2f9(0x59a,0x64e,0x584,0x525)+_0x30b2f9(0x69c,0x625,0x5a7,0x47e)+_0x30b2f9(0x3fa,0x47a,0x36c,0x316)+'d_object(\x0a'+_0x399143(-0x90,-0xb5,-0x6e,-0x1a7)+_0x30b2f9(0x550,0x301,0x3c4,0x27b)+_0x399143(-0x109,-0x247,-0x2dd,-0xad)+_0x30b2f9(0x4ef,0x51a,0x3b1,0x27e)+_0x399143(-0x190,-0xb8,-0x20,-0x12b)+_0x30b2f9(0x565,0x5a3,0x50f,0x4a0)+_0x30b2f9(0x207,0x1da,0x2ec,0x477)+_0x399143(-0xb4,-0x1b2,-0x1f6,-0x33d)+'rrent_sett'+'ing(\x27app.c'+_0x30b2f9(0x355,0x23c,0x28e,0x344)+_0x30b2f9(0x2f1,0x1e8,0x294,0x3d0)+'rue),\x0a\x20\x20\x20\x20'+_0x399143(-0x108,-0x49,0x4e,0x20)+'tring_to_a'+'rray(curre'+'nt_setting'+_0x399143(-0x389,-0x214,-0x179,-0x320)+_0x399143(-0x21c,-0x188,-0x204,-0x308)+_0x30b2f9(0x331,0x338,0x3ea,0x276)+_0x30b2f9(0x3f2,0x430,0x321,0x324)+_0x30b2f9(0x241,0x29e,0x32f,0x1a3)+_0x30b2f9(0x410,0x665,0x555,0x55b)+_0x30b2f9(0x408,0x3ee,0x2e8,0x3e3)+_0x399143(-0x380,-0x333,-0x404,-0x302)+'nt_setting'+'(\x27app.curr'+_0x30b2f9(0x616,0x4a7,0x57e,0x4bc)+_0x30b2f9(0x43e,0x54b,0x3ee,0x4f0)+_0x30b2f9(0x3ef,0x3f8,0x51f,0x623)+'\x27,\x27)\x0a\x20\x20);\x0a'+_0x30b2f9(0x35b,0x536,0x3a4,0x218)+_0x399143(0x21,-0x17d,-0x2da,-0x1da)+_0x30b2f9(0x6a2,0x6bd,0x5ac,0x638)+_0x30b2f9(0x315,0x1c2,0x330,0x1c0)+'R;\x0a');}[pzg_0x497039(0x3ab,0x315,0x18c,0x216)+pzg_0x497039(0x50c,0x5b0,0x5d5,0x4d8)+'ion'](_0x2acf52){const _0x22df93=this[_0x195ab9(0x30f,0x194,0x35c,0x28f)+_0x195ab9(0x1ab,0x1b0,0x413,0x32b)](_0x2acf52);function _0x195ab9(_0x13b3f0,_0x582362,_0x496e2b,_0x504228){return pzg_0x497039(_0x13b3f0-0xda,_0x504228- -0x23b,_0x496e2b,_0x504228-0x159);}function _0x8f39bc(_0x4fd537,_0x34718d,_0x13a04a,_0x2c5d20){return pzg_0x53b243(_0x13a04a-0xab,_0x34718d-0xab,_0x13a04a-0x1,_0x4fd537);}return _0x8f39bc(0x52,0x4a,-0x9e,-0x19c)+_0x195ab9(0x1c5,0x2c2,0x1b0,0x2ba)+_0x8f39bc(0x13,0x1b,-0x176,-0x204)+'enerated\x20b'+_0x8f39bc(-0x195,-0x4d,-0xdf,-0x107)+'\x0aBEGIN;\x0a\x0a'+_0x22df93+_0x195ab9(0x9f,0x1a8,0x1e0,0x1b3);}[pzg_0x497039(0x5d8,0x4ca,0x3de,0x369)+'SHelper'](_0x212937){function _0xedbbe3(_0x4e887a,_0x541d15,_0x38db0b,_0xb71b8b){return pzg_0x497039(_0x4e887a-0x114,_0x541d15- -0x1a9,_0x4e887a,_0xb71b8b-0x0);}function _0x4b5d2a(_0x2c5557,_0x29549a,_0x4befbd,_0x1490fc){return pzg_0x497039(_0x2c5557-0xca,_0x1490fc- -0x23e,_0x29549a,_0x1490fc-0x196);}const _0x57316c=(0x95*0xf+0x190+0xa4b*-0x1,prismaImport_1[_0x4b5d2a(0x12f,0x37,0xd3,0x6c)+_0x4b5d2a(0x1ae,0x3ba,0x240,0x2c8)+_0x4b5d2a(0x332,0x1ec,0x23a,0x20e)])(_0x212937);return'/**\x0a\x20*\x20Pos'+_0xedbbe3(0x8b,0x18a,0x95,0x1f6)+_0x4b5d2a(0x107,0x2af,0x22f,0x23b)+_0x4b5d2a(0xaa,0x2a6,0xf4,0x12a)+_0xedbbe3(0x22e,0x380,0x3ac,0x233)+_0xedbbe3(0x4e4,0x3f2,0x413,0x4b7)+_0x4b5d2a(0x1e1,0x32b,0x93,0x1c4)+_0xedbbe3(0x523,0x410,0x2ea,0x4ca)+_0x4b5d2a(0x1b3,-0xc7,-0xa,0xc1)+'from\x20\x27'+_0x57316c+(_0xedbbe3(0x2a0,0x3ab,0x22a,0x3a3)+_0xedbbe3(0x324,0x39e,0x2ce,0x355)+_0xedbbe3(0x18a,0x131,0x178,0x27)+_0x4b5d2a(0x175,0x315,0x343,0x239)+_0xedbbe3(0x520,0x3f1,0x347,0x35a)+_0xedbbe3(0x9e,0x105,0xe3,-0x1)+'tion\x20callb'+_0xedbbe3(0x249,0x2cd,0x34d,0x30e)+_0x4b5d2a(0x379,0x260,0xd4,0x225)+_0xedbbe3(0x16b,0x18e,0x200,0x1c5)+_0x4b5d2a(0xd8,0x2e6,0x64,0x1eb)+_0xedbbe3(0x24,0x100,-0x6,0x1e6)+'not\x20be\x20use'+_0x4b5d2a(0x93,0x3a8,0x24b,0x207)+_0xedbbe3(0x1c0,0x24d,0x39f,0x115)+'on.\x0a\x20*/\x0aex'+_0xedbbe3(0x230,0x130,0x23d,0x16c)+_0x4b5d2a(0x6e,0x90,0x119,0x183)+_0x4b5d2a(0x227,0x194,0x1a3,0xa5)+'Omit<\x0a\x20\x20Pr'+'ismaClient'+_0xedbbe3(0x2cf,0x3fa,0x387,0x4b7)+_0x4b5d2a(0x3e9,0x1b9,0x19a,0x27b)+'isconnect\x27'+_0xedbbe3(0x369,0x389,0x4b5,0x4c8)+'\x20\x27$transac'+_0xedbbe3(0x2dc,0x388,0x23c,0x3ab)+'use\x27\x20|\x20\x27$e'+_0x4b5d2a(0x14c,0x17c,0x26b,0xca)+_0x4b5d2a(0xd2,0x231,0x106,0x127)+_0xedbbe3(0x4df,0x3f4,0x52e,0x461)+_0x4b5d2a(0x19a,0x218,-0x2,0x132)+_0x4b5d2a(0x194,0x436,0x3ff,0x2ab)+_0x4b5d2a(0x2cf,0x3b2,0x198,0x216)+'\x0a\x20\x20tenantI'+_0x4b5d2a(0x46,0x21b,0x2b,0xc0)+_0x4b5d2a(0x60,0xe,0xa9,0x76)+_0xedbbe3(0x196,0x25b,0x209,0x3e4)+_0xedbbe3(0x1b4,0x185,0xbf,0x1b5)+_0xedbbe3(0x3ab,0x322,0x25c,0x1ac)+_0x4b5d2a(0x144,-0x8a,-0x3e,0x73)+_0x4b5d2a(0x14b,0x222,0x1dc,0x2a6)+_0xedbbe3(0x30f,0x2c8,0x365,0x2e9)+_0x4b5d2a(0x1c4,0x2fc,0x2dd,0x359)+_0xedbbe3(0x426,0x392,0x4ac,0x286)+_0xedbbe3(0x20d,0x164,0x7a,0x72)+_0xedbbe3(0x261,0x215,0x2af,0x330)+_0xedbbe3(0x32f,0x199,0x244,0x8c)+_0x4b5d2a(0x1d0,0x81,-0x20,0xbe)+_0xedbbe3(0x1de,0x353,0x366,0x1f3)+_0xedbbe3(0x2d4,0x3f5,0x4ac,0x290)+'\x20context\x20f'+_0x4b5d2a(0x388,0x3ce,0x2cd,0x2f6)+'rent\x20sessi'+_0xedbbe3(0x26f,0x235,0x1a4,0x169)+_0xedbbe3(0x381,0x2c1,0x1a2,0x13a)+'Context(co'+'ntext:\x20RLS'+_0xedbbe3(0xba,0x12d,-0x4d,0xe6)+'Promise<vo'+_0x4b5d2a(0x21d,0x29b,0x1fb,0x1f0)+_0x4b5d2a(0x35b,0x3dd,0x3c8,0x34f)+_0xedbbe3(0x382,0x36c,0x2fe,0x295)+_0x4b5d2a(0x25f,0x2f4,0x21f,0x388)+_0xedbbe3(0x48f,0x33a,0x3da,0x376)+_0x4b5d2a(0x42b,0x288,0x26b,0x319)+'=\x20[]\x20}\x20=\x20c'+_0x4b5d2a(0x226,0x3a4,0x47b,0x30d)+_0x4b5d2a(0x314,0x128,0x338,0x26d)+_0xedbbe3(0x51f,0x3d6,0x24b,0x330)+_0xedbbe3(0x43f,0x327,0x2f3,0x3f3)+_0xedbbe3(0x17a,0x289,0x185,0x40b)+_0x4b5d2a(0x4f1,0x297,0x1bd,0x353)+_0xedbbe3(0x13d,0xfa,0x10a,0x180)+_0x4b5d2a(-0x10,0x9f,0x150,0xb0)+_0x4b5d2a(0x2d3,0x229,0x1d5,0x274)+_0xedbbe3(0xee,0x125,0x209,0xf9)+_0x4b5d2a(0x32e,0xcc,0x3d1,0x230)+_0xedbbe3(0x2b8,0x37f,0x4b1,0x1eb)+'xecuteRaw`'+'\x0a\x20\x20\x20\x20\x20\x20SEL'+_0x4b5d2a(0x1a1,0x402,0x23d,0x2e3)+_0x4b5d2a(0x1de,0x2ce,0x386,0x343)+_0xedbbe3(0x2a1,0x3ef,0x3ec,0x54d)+_0xedbbe3(0x232,0x14b,0x14a,0x2df)+_0xedbbe3(0x187,0x313,0x481,0x321)+'uid,\x0a\x20\x20\x20\x20\x20'+_0xedbbe3(0x30e,0x23a,0x32c,0x3ab)+_0x4b5d2a(0x102,-0x50,-0x10e,0x8d)+_0x4b5d2a(0x11f,0x1bf,0x274,0x17a)+_0xedbbe3(0x3d,0x14b,-0x3c,0x41)+_0xedbbe3(0x1e1,0x1db,0x18c,0x1d8)+_0x4b5d2a(0x263,0x436,0x2ae,0x2bc)+_0xedbbe3(0x218,0x11f,0x1fb,0xf8)+_0xedbbe3(0x28f,0x1ee,0x60,0xe2)+_0x4b5d2a(0x142,0x193,0x1f4,0x143)+_0x4b5d2a(0x22f,0x26a,0x1e5,0x377)+_0x4b5d2a(0x1fb,0x215,0x257,0x33d)+_0x4b5d2a(0x217,0x252,0x27c,0x312)+_0x4b5d2a(0x243,0x3ef,0x38f,0x2fb)+(_0xedbbe3(0x32a,0x221,0x2c2,0x339)+_0x4b5d2a(0x4ad,0x43b,0x1db,0x332)+'clearConte'+'xt():\x20Prom'+'ise<void>\x20'+_0xedbbe3(0x398,0x28b,0x1e7,0x3b0)+'t\x20this.pri'+_0x4b5d2a(0x2bf,0x27e,0x16f,0x134)+_0xedbbe3(0x493,0x3e3,0x299,0x247)+_0x4b5d2a(0x20b,0x182,0x3bb,0x251)+_0x4b5d2a(0x330,0x273,0xe9,0x286)+_0xedbbe3(0x30c,0x1c3,0x31c,0x162)+_0xedbbe3(0x21a,0x281,0x212,0x3eb)+_0x4b5d2a(0x1f9,-0x5a,0x13b,0x111)+_0x4b5d2a(0x213,0xbe,-0x105,0x92)+'ntext\x0a\x20\x20\x20*'+_0x4b5d2a(0x22e,0x4ba,0x44e,0x332)+'getContext'+_0x4b5d2a(0x21b,0x200,0x18d,0x15b)+'e<RLSConte'+_0x4b5d2a(0x366,0x1a0,0x1e3,0x242)+_0x4b5d2a(-0xe1,-0x11,0x8c,0xaf)+_0x4b5d2a(0x27c,0x280,0x18a,0x15f)+_0xedbbe3(0x21e,0x36b,0x3b7,0x42a)+_0xedbbe3(0x1e3,0x135,0x2c7,0xbe)+_0x4b5d2a(0x14c,-0x4f,0x223,0x125)+'current_us'+_0xedbbe3(0x1e7,0x1cc,0xb7,0x124)+_0xedbbe3(0x38c,0x23f,0x190,0xea)+_0x4b5d2a(0x1b3,0x108,0x320,0x29e)+_0x4b5d2a(0x273,0x1c7,0x275,0x2ae)+_0xedbbe3(0x3ef,0x3d8,0x38a,0x30a)+'_context()'+_0x4b5d2a(0xff,0xc9,0xf4,0x248)+_0x4b5d2a(0x28c,0x353,0x1f8,0x2bf)+_0x4b5d2a(0x344,0x1d5,0x158,0x26a)+_0x4b5d2a(0x46,0x12d,0xe2,0xdb)+'get_curren'+_0x4b5d2a(0xa5,0x220,0x132,0x181)+_0x4b5d2a(0x294,0x21a,0x315,0x25e)+_0xedbbe3(0x8,0x111,0x1a3,0x1ec)+'\x20\x20\x20\x20\x20userI'+'d:\x20context'+'?.user_id\x20'+_0xedbbe3(0x366,0x3c8,0x244,0x28b)+'ed,\x0a\x20\x20\x20\x20\x20\x20'+_0xedbbe3(0x14b,0x163,0x11,0x11a)+_0xedbbe3(0x517,0x404,0x587,0x485)+_0xedbbe3(0x47c,0x331,0x452,0x240)+_0xedbbe3(0x273,0x188,-0x17,0x237)+'d,\x0a\x20\x20\x20\x20\x20\x20r'+_0x4b5d2a(0x25a,0x25d,0x1b1,0x2b5)+_0xedbbe3(0x4c9,0x3c3,0x37e,0x48d)+_0xedbbe3(-0x27,0xfd,0x3d,0xdc)+_0xedbbe3(-0x9b,0x104,0x1dd,0x140)+_0x4b5d2a(0x21d,0xd,-0xee,0x99)+_0x4b5d2a(0xa2,0x14a,0x110,0x10f)+_0x4b5d2a(0x3d,0x2a8,0x6c,0x16e)+_0xedbbe3(0x2db,0x3c0,0x36e,0x369)+_0xedbbe3(0x486,0x32a,0x38c,0x1a1)+'er(Boolean'+')\x20||\x20[]\x0a\x20\x20'+_0x4b5d2a(0x2db,0x27f,0x3cb,0x2d3)+'\x20\x20/**\x0a\x20\x20\x20*'+_0xedbbe3(0x6a,0x17a,0x80,0x2c2)+_0xedbbe3(0x2a4,0x413,0x3b8,0x41e)+_0xedbbe3(0x463,0x3c6,0x226,0x471)+_0xedbbe3(0xd4,0x123,0x126,0x1a5)+_0xedbbe3(0x30f,0x1d9,0x140,0x9c)+'\x20\x20*\x20Run\x20`f'+'n`\x20with\x20th'+_0x4b5d2a(0x429,0x257,0x2da,0x327)+'ext\x20establ'+_0xedbbe3(0x4ba,0x35e,0x1c5,0x40b)+_0xedbbe3(0x1df,0x116,-0x6e,0x5d)+'\x20context\x20G'+_0x4b5d2a(0x3b0,0x158,0x3be,0x26f)+'t\x20with\x20`se'+_0x4b5d2a(0x3ab,0x3ad,0x3e2,0x276)+_0xedbbe3(0x2d2,0x3c2,0x542,0x28f)+_0xedbbe3(0x352,0x3e7,0x2b6,0x2be)+_0xedbbe3(0x1e5,0x201,0x39b,0x123)+_0xedbbe3(0x37b,0x2ae,0x2fc,0x122)+'ds\x20when\x20th'+_0xedbbe3(0x32c,0x1f9,0x294,0x1b6)+_0xedbbe3(-0x8f,0x102,0x1fa,0xaf)+_0x4b5d2a(-0xdc,-0x91,-0x58,0x50)+_0x4b5d2a(0x3f1,0x3cf,0xf0,0x277)+_0xedbbe3(0x129,0x13e,-0x15,0x50)+'de\x20a\x0a\x20\x20\x20*\x20'+_0xedbbe3(0x322,0x2bc,0x1c6,0x2f9)+_0xedbbe3(0x24b,0xee,0xfc,0x44)+'e\x20had\x20no\x20e'+_0x4b5d2a(0x2c5,0x3d1,0x3bb,0x363)+_0x4b5d2a(0x211,0xf8,0x44,0x1ac)+'e\x20callback'+_0xedbbe3(0x52a,0x3b3,0x317,0x476)+_0xedbbe3(0x112,0xe8,0x18f,0x142)+'apped\x20the\x20'+_0xedbbe3(0x212,0x174,0x270,0x2cf))+(_0xedbbe3(0xe1,0x251,0x2d6,0x152)+'\x20implicit\x20'+_0x4b5d2a(0x36e,0x213,0x14a,0x227)+_0xedbbe3(0x36e,0x366,0x394,0x2c2)+_0xedbbe3(0x2a8,0x230,0x236,0x28f)+_0x4b5d2a(0x1e2,0x333,0x2d4,0x1be)+_0x4b5d2a(0x2f7,0x3da,0x2f8,0x2ca)+_0x4b5d2a(0x202,-0xdc,0x120,0x63)+'ery\x20ran.\x0a\x20'+_0xedbbe3(0x28a,0x143,0x28b,0x2e1)+_0xedbbe3(0x2d,0x152,0x18,0x198)+_0x4b5d2a(0x2d0,0xa7,0x93,0x14e)+'e\x20work\x20sha'+_0x4b5d2a(0x1d7,0xcc,0xf1,0x5c)+_0x4b5d2a(-0x2a,0x108,-0x2a,0x66)+'ransaction'+_0xedbbe3(0x26a,0x2fe,0x385,0x254)+_0xedbbe3(0x3c1,0x349,0x356,0x424)+_0xedbbe3(0x3c1,0x3af,0x46b,0x437)+'es\x20that\x20tr'+_0xedbbe3(0x2e,0x190,0x24b,0x2ef)+'client.\x20**'+_0xedbbe3(0x4b4,0x339,0x287,0x431)+_0x4b5d2a(0x5e,0x344,0x31a,0x1e1)+_0xedbbe3(0x3f0,0x363,0x2ce,0x318)+_0x4b5d2a(0x257,0x1e3,0x23a,0x194)+_0x4b5d2a(0x8a,0x1ac,0x135,0x222)+_0x4b5d2a(0x201,0x3b4,0x42f,0x2f9)+_0xedbbe3(0x16f,0x25d,0x329,0x2fa)+_0x4b5d2a(0x32e,0x21e,0x20f,0x217)+_0x4b5d2a(0x158,0x336,0x1e0,0x281)+_0x4b5d2a(0x136,-0xaa,0x42,0xaa)+_0xedbbe3(0x248,0x2bf,0x175,0x1b3)+'\x20\x20\x20*\x20trans'+_0x4b5d2a(0x215,0xd0,0x174,0x15d)+'\x20will\x20not\x20'+_0xedbbe3(0xca,0x1a7,0x14b,0x1a2)+_0x4b5d2a(0x3a8,0x3b6,0x187,0x228)+_0x4b5d2a(0x128,0x12,0x83,0x121)+_0xedbbe3(0x22d,0x3b5,0x54a,0x45d)+_0xedbbe3(0x391,0x255,0xb6,0x14c)+_0x4b5d2a(0x343,0xdb,0x146,0x1d0)+_0x4b5d2a(0x2cf,0x2c3,0x2db,0x23c)+_0x4b5d2a(0x2a7,0x2ba,0xf1,0x18d)+'es\x20with\x20th'+'e\x20transact'+_0xedbbe3(0x13c,0x17b,0x79,0x19e)+'\x0a\x20\x20async\x20w'+_0x4b5d2a(0x2d7,0x30e,0x2ed,0x1d4)+_0xedbbe3(0x306,0x1d3,0x303,0x139)+_0x4b5d2a(0x298,0x410,0x426,0x2d2)+'SContext,\x0a'+_0xedbbe3(0x320,0x23d,0x178,0x2e2)+_0xedbbe3(0x352,0x3be,0x323,0x323)+_0x4b5d2a(-0x44,0x132,0x85,0x84)+_0x4b5d2a(0x47e,0x3ce,0x21f,0x381)+'se<T>,\x0a\x20\x20)'+_0x4b5d2a(0x336,0x214,0x460,0x2d0)+_0xedbbe3(0x2d9,0x402,0x3a7,0x59c)+_0xedbbe3(0x1ad,0x233,0xc6,0x139)+_0x4b5d2a(0x43f,0x3fa,0x3ad,0x2c1)+_0xedbbe3(-0x45,0x157,0xf,0x13e)+_0x4b5d2a(0x236,0x167,0x9a,0xf8)+_0xedbbe3(0x118,0x1fc,0x30f,0x26f)+_0xedbbe3(0x43d,0x382,0x1ed,0x1ec)+_0xedbbe3(0x299,0x348,0x450,0x1c6)+'sRLSHelper'+_0xedbbe3(0x3f4,0x338,0x36e,0x2d5)+_0x4b5d2a(0x9,0x7f,0x1bf,0x13d)+_0x4b5d2a(0x266,0x19f,0x272,0x2e8)+_0xedbbe3(0x25b,0x1f6,0x1f7,0x256)+_0xedbbe3(0x41b,0x2ad,0x390,0x1e5)+_0xedbbe3(0x25b,0x2a1,0x257,0x248)+_0x4b5d2a(0x2cb,0xe3,0x326,0x1e3)+_0x4b5d2a(0x115,0x17e,0x27e,0x22e)+_0xedbbe3(0xdf,0x27c,0x270,0x377)+_0xedbbe3(0x4a5,0x30e,0x1ed,0x28e)+');\x0a\x20\x20}\x0a\x0a\x20\x20'+_0xedbbe3(0x2be,0x169,0x2b0,0x262)+_0xedbbe3(0xcb,0x126,0x4,0x25f)+_0x4b5d2a(0x1a1,0x25d,0x3b3,0x31b)+_0xedbbe3(0xef,0x168,0x1f2,0x49)+_0xedbbe3(0x403,0x401,0x49f,0x2dd)+'\x20setting\x0a\x20'+'\x20\x20*/\x0a\x20\x20cre'+_0xedbbe3(0x170,0x20b,0x2a1,0x338)+_0xedbbe3(0xa3,0x1cf,0x349,0xce)+_0x4b5d2a(0x114,0x64,-0x57,0x12c)+_0x4b5d2a(0x14b,0x1d1,0x112,0x1da)+'ms:\x20any,\x20n'+_0xedbbe3(0x117,0x113,0xf1,0x23a)+'=>\x20{\x0a\x20\x20\x20\x20\x20'+'\x20//\x20Extrac'+_0x4b5d2a(0x266,0x2c7,0x11f,0x26c)+_0x4b5d2a(0x3a4,0x29d,0x229,0x371)+_0xedbbe3(0x1d7,0x121,0x20d,0x205)+_0x4b5d2a(0x16c,0x41e,0x410,0x291)+_0x4b5d2a(0x3fa,0x27b,0x398,0x296)+_0x4b5d2a(0x38d,0x38e,0x2b1,0x268)+'extractCon')+(_0x4b5d2a(-0x7,0x16b,0xc2,0x67)+_0x4b5d2a(0x3f6,0x3e0,0x232,0x30f)+_0x4b5d2a(0xb2,0x3a0,0x21d,0x21f)+_0xedbbe3(0x3aa,0x291,0x186,0x131)+_0x4b5d2a(0x296,0x18f,0xdd,0x160)+')\x20{\x0a\x20\x20\x20\x20\x20\x20'+_0x4b5d2a(0x231,0x132,0x30d,0x178)+_0x4b5d2a(0x197,0x88,0x383,0x206)+_0x4b5d2a(0x2a1,0x65,0xe6,0x117)+_0x4b5d2a(0x3c7,0x2a5,0x198,0x285)+_0x4b5d2a(-0x78,0x64,-0x67,0xd2)+_0xedbbe3(-0x11,0x16b,0x9e,0xfd)+_0xedbbe3(0x4db,0x370,0x1ea,0x2be)+'await\x20next'+_0xedbbe3(0x1f0,0x106,-0x77,-0x1)+'\x20\x20\x20\x20\x20\x20}\x20fi'+'nally\x20{\x0a\x20\x20'+_0xedbbe3(0x18b,0x2db,0x1ec,0x340)+_0x4b5d2a(0x1ae,-0x52,0x89,0x89)+_0x4b5d2a(0x2fb,0x480,0x299,0x341)+_0xedbbe3(0x364,0x28a,0x2a6,0x348)+'ait\x20this.c'+_0xedbbe3(0x19c,0x2e5,0x158,0x14e)+'t();\x0a\x20\x20\x20\x20\x20'+_0xedbbe3(0x2b9,0x37a,0x27a,0x4f0)+_0x4b5d2a(0xc7,0x20d,0x30b,0x1c2)+_0x4b5d2a(0x223,0x12,0x21f,0xeb)+_0x4b5d2a(0x432,0x2c4,0x41f,0x310)+_0x4b5d2a(0x274,0x34b,0x368,0x1f3)+_0x4b5d2a(0x153,0x264,0x2a3,0x1a4)+_0x4b5d2a(0x19b,0x20e,0x149,0x23a)+'arameters\x0a'+_0xedbbe3(0x279,0x117,0x257,-0x68)+_0x4b5d2a(-0xd2,0x11,-0x34,0x5e)+_0xedbbe3(0x2e,0x10a,0x7c,0x97)+_0x4b5d2a(0x177,0x1e2,0x19b,0xa4)+_0x4b5d2a(0x1b4,0xac,0x21c,0x1df)+_0x4b5d2a(0x20b,0x1ae,0x2be,0x284)+'\x20*/\x0a\x20\x20prot'+_0xedbbe3(0x496,0x3db,0x39f,0x262)+_0x4b5d2a(0x307,0x24e,0x150,0x203)+'FromReques'+_0x4b5d2a(0x30f,0x40f,0x2d3,0x313)+_0x4b5d2a(0x83,0x20b,-0x120,0x6e)+_0xedbbe3(0x3c4,0x39f,0x320,0x50b)+_0x4b5d2a(0x375,0x2dd,0x2a4,0x31c)+_0xedbbe3(0xc2,0x198,0x2a0,0x36)+_0x4b5d2a(0x1db,0x143,0x25b,0x1b6)+_0xedbbe3(0x214,0x350,0x31b,0x41c)+_0x4b5d2a(0xa5,0x66,0x13e,0x147)+_0x4b5d2a(0x2d3,0x41c,0x312,0x2ad)+_0x4b5d2a(0x150,0x386,0x38f,0x2e2)+_0x4b5d2a(0x254,0x410,0x14e,0x2ac)+_0xedbbe3(0x29c,0x214,0x15c,0x141)+_0xedbbe3(0x241,0x138,0x7c,0x76)+_0xedbbe3(0x57c,0x403,0x323,0x2bd)+'text?.user'+_0xedbbe3(0x39a,0x3c5,0x2c8,0x33f)+_0xedbbe3(0x47,0x163,0x5f,0x235)+'params.arg'+'s?.context'+'?.tenantId'+_0xedbbe3(0xfd,0x128,-0x37,0x230)+_0x4b5d2a(-0x45,0x202,0x20b,0x105)+_0xedbbe3(0x254,0x2ee,0x2f0,0x423)+_0x4b5d2a(0x20e,0x7a,0x105,0x140)+_0xedbbe3(0x462,0x334,0x2c4,0x282)+_0x4b5d2a(0x307,0x190,0xa1,0x1e6)+_0xedbbe3(0x151,0xff,-0x7b,0x100)+'args?.cont'+_0xedbbe3(0x1b4,0x162,-0x39,0x235)+_0xedbbe3(0x1db,0x1c5,0x2b7,0x2cb)+_0xedbbe3(0x23d,0x189,0x14f,0x2df)+_0xedbbe3(0x272,0x21e,0xd8,0x2f9)+_0x4b5d2a(0xac,-0x5a,0xdb,0xf7)+'function\x20t'+_0x4b5d2a(0x21a,0x129,0x263,0x24e)+'LS\x20helper\x0a'+_0x4b5d2a(0xc2,0x23e,0x199,0x16b)+_0x4b5d2a(0x4e9,0x1e5,0x3ab,0x37e)+_0xedbbe3(0x393,0x279,0x272,0x386)+'elper(pris'+_0x4b5d2a(0x133,-0x37,0x23a,0x104)+'Client):\x20P'+_0xedbbe3(0x190,0x1e5,0x9c,0x206)+_0xedbbe3(0x27e,0x1e8,0x300,0x352)+_0x4b5d2a(0x1bc,0x206,0x422,0x2a8)+_0xedbbe3(0x18d,0x2a0,0x269,0x206)+_0x4b5d2a(0x493,0x324,0x3b5,0x366)+'prisma);\x0a}'+_0xedbbe3(0x3d5,0x277,0x26b,0x221)+_0x4b5d2a(0x13d,0x1df,0x4a,0x77)+_0xedbbe3(0x3ea,0x3e2,0x56a,0x3cc)+'\x20builder\x0a\x20'+_0xedbbe3(0x1ba,0x2f1,0x26c,0x365)+_0xedbbe3(0x355,0x1d1,0x186,0x1f7)+_0xedbbe3(0x457,0x38d,0x389,0x3ef)+_0xedbbe3(0x394,0x359,0x34a,0x2a5)+_0x4b5d2a(0x265,0x1e0,0x26d,0x179)+_0xedbbe3(0x325,0x24e,0x1c9,0x348))+(_0x4b5d2a(0x3de,0x30f,0xdf,0x24c)+';\x0a\x0a\x20\x20userI'+_0x4b5d2a(0x3d4,0x441,0x51f,0x386)+_0xedbbe3(0x370,0x2c7,0x398,0x2f9)+_0x4b5d2a(0x20c,0x274,0xef,0x123)+'this.conte'+_0x4b5d2a(0xfe,0xd9,0xfc,0x24d)+_0x4b5d2a(0x1b4,0x1b6,0x29,0x16a)+_0x4b5d2a(-0x7c,0xb9,0x249,0xed)+_0x4b5d2a(-0x45,0x1fa,0x1b6,0xa7)+_0xedbbe3(0x238,0x31c,0x467,0x1c4)+'Id(tenantI'+_0x4b5d2a(0x22a,-0x2e,-0x61,0x109)+_0xedbbe3(0x2c7,0x205,0x2b4,0x361)+_0x4b5d2a(0x26,0x20c,0xeb,0xad)+'ntext.tena'+_0x4b5d2a(-0x105,0xf7,0xa5,0x7a)+_0xedbbe3(0x1c0,0x252,0x1f8,0xd3)+_0xedbbe3(0x371,0x300,0x355,0x31a)+_0xedbbe3(0x1aa,0x242,0x21c,0x1c5)+_0x4b5d2a(0x13e,0x2e5,0x2b5,0x1c9)+'roles:\x20str'+'ing[]):\x20th'+'is\x20{\x0a\x20\x20\x20\x20t'+_0x4b5d2a(0x20b,0x2d1,0x79,0x182)+'t.roles\x20=\x20'+'roles;\x0a\x20\x20\x20'+_0x4b5d2a(0x330,0x3b6,0x2f9,0x26b)+'is;\x0a\x20\x20}\x0a\x0a\x20'+'\x20permissio'+_0x4b5d2a(0x201,0xb,0xd1,0x114)+_0xedbbe3(0x56,0x1be,0x129,0x122)+_0xedbbe3(0xf5,0x1ea,0x383,0x23c)+'this\x20{\x0a\x20\x20\x20'+_0x4b5d2a(0xf4,0x299,0x183,0x27a)+_0x4b5d2a(0x1f6,0x293,0x2c0,0x278)+'sions\x20=\x20pe'+_0xedbbe3(0x2f7,0x3f6,0x4c1,0x538)+_0x4b5d2a(0x18e,0xf8,0x184,0x4b)+'n\x20this;\x0a\x20\x20'+_0x4b5d2a(0x8a,0x201,0x119,0x173)+_0x4b5d2a(0x205,0x50,0x276,0x19f)+_0x4b5d2a(0x2d0,0x49d,0x496,0x33c)+_0x4b5d2a(0x291,0x47a,0x4aa,0x368)+_0x4b5d2a(0x236,0x1bb,0xc3,0x1d7)+_0x4b5d2a(0x1db,0x29a,0x121,0x185)+'\x20}\x0a}\x0a\x0a/**\x0a'+_0x4b5d2a(0x1bc,0x29d,0x23b,0x197)+_0x4b5d2a(0x11c,0x1b6,0x12a,0x212)+_0xedbbe3(-0x6b,0x112,0x129,-0x79)+_0xedbbe3(0x359,0x264,0x279,0x3d5)+_0x4b5d2a(0x19d,0x170,0x240,0xe4)+_0x4b5d2a(0x361,0x1e7,0x141,0x1ef)+_0xedbbe3(0x37f,0x270,0x11c,0x316)+_0xedbbe3(0x309,0x405,0x3fc,0x42b)+_0x4b5d2a(0x1ca,0x124,0x1ba,0x27d)+'\x20\x20return\x20n'+'ew\x20RLSCont'+_0x4b5d2a(0x24b,0x3bf,0x2c3,0x2cf)+_0x4b5d2a(0x102,0x186,0x196,0x221)));}[pzg_0x53b243(-0x96,-0x12,-0xe0,-0x22e)+pzg_0x497039(0x6fb,0x55b,0x3c0,0x50e)+pzg_0x497039(0x471,0x3d4,0x443,0x560)](_0x3c55f3){function _0x376adc(_0x2f9694,_0x415cce,_0x1199f8,_0x1df77b){return pzg_0x53b243(_0x1199f8-0x172,_0x415cce-0xc0,_0x1199f8-0x64,_0x2f9694);}function _0x4a0720(_0x4890d4,_0x1b9c7a,_0x47ffb8,_0xd2d402){return pzg_0x497039(_0x4890d4-0x59,_0x47ffb8-0x38,_0x4890d4,_0xd2d402-0x1a8);}const _0x16e496=(-0x40*-0x85+-0x1ffd+-0x13*0x11,prismaImport_1[_0x4a0720(0x228,0x3e5,0x2e2,0x409)+_0x4a0720(0x60b,0x653,0x53e,0x522)+_0x376adc(0x5d,0x4,0x5e,0x155)])(_0x3c55f3);return'#\x20PostgreS'+_0x4a0720(0x278,0x352,0x2c7,0x158)+_0x4a0720(0x1fb,0x36e,0x342,0x322)+_0x4a0720(0x384,0x389,0x3c3,0x49e)+_0x376adc(0x5a,-0x96,0xaf,-0xef)+'\x0a\x0aThis\x20dir'+'ectory\x20con'+_0x376adc(-0x1b3,-0xf2,-0x121,-0x23)+'policies\x20a'+'nd\x20helpers'+'\x20generated'+_0x4a0720(0x69c,0x40a,0x505,0x535)+'o.\x0a\x0a##\x20Ove'+'rview\x0a\x0aRow'+_0x376adc(0x165,-0x50,0x64,-0x48)+_0x4a0720(0x2c2,0x530,0x441,0x3ff)+_0x376adc(-0xa0,-0x21,0x6a,-0x42)+_0x376adc(0x67,0x43,0x60,0x8a)+_0x376adc(0x2f2,0x4c,0x174,0x117)+_0x4a0720(0x48b,0x2f5,0x40f,0x404)+_0x376adc(0xf1,0x109,0xb0,0x127)+_0x4a0720(0x3a7,0x3a8,0x4a5,0x3ef)+_0x376adc(0x4,-0x11f,0x55,-0xdc)+_0x4a0720(0x435,0x4b2,0x55a,0x45b)+_0x376adc(0x7b,0xcf,0x15b,0xb9)+_0x376adc(-0x197,0x166,-0xd,-0xd1)+_0x376adc(0xa0,-0x133,-0x1,0x12d)+_0x4a0720(0x58a,0x6b9,0x541,0x3f7)+_0x376adc(0x93,0x100,-0x52,-0x12d)+_0x4a0720(0x258,0x461,0x317,0x21d)+_0x376adc(-0x9a,-0x1e,-0x5f,-0x1a8)+'ipt\x20contai'+'ning\x20all\x20R'+'LS\x20policie'+'s\x20and\x20help'+_0x376adc(0x9b,-0x1ff,-0xe9,-0xf0)+_0x376adc(0x111,-0x35,0x1d,0x137)+_0x4a0720(0x208,0x44e,0x33b,0x376)+_0x376adc(0x91,0x1a2,0x3,0x6b)+_0x376adc(0x2e,0xdc,0x94,-0x3f)+_0x4a0720(0x30f,0x363,0x341,0x3b8)+_0x376adc(-0xb,-0x3e,0xea,0x237)+'r\x20RLS\x20setu'+_0x376adc(-0xba,0xd,-0x104,-0x24)+'ls-helper.'+_0x4a0720(0x35a,0x277,0x3a1,0x46c)+'ript\x20helpe'+_0x4a0720(0x5c0,0x4a6,0x57b,0x55e)+'ging\x20RLS\x20c'+_0x376adc(-0xc6,0x7d,0x48,-0xd3)+_0x4a0720(0x608,0x4bb,0x5bd,0x57d)+_0x4a0720(0x3e8,0x55e,0x499,0x55c)+'y\x20RLS\x20Poli'+_0x4a0720(0x3cc,0x470,0x444,0x2ef)+_0x376adc(-0x4f,-0x3f,0x25,-0x90)+_0x376adc(0x89,-0xd2,0x7d,-0x79)+'\x20-d\x20your_d'+'atabase\x20-f'+_0x376adc(0x29,0x1d7,0xf1,0x152)+_0x4a0720(0x253,0x2f7,0x2f6,0x359)+'using\x20Pris'+_0x4a0720(0x432,0x4f5,0x527,0x42b)+_0x376adc(0xfd,-0x95,0x70,-0x62)+_0x4a0720(0x264,0x45c,0x3c5,0x3c4)+_0x376adc(0x1e7,0x46,0x125,0x1e5)+_0x376adc(0x65,-0x3,-0xc9,-0x16a)+_0x376adc(-0x56,-0xdb,-0x10a,-0x6d)+_0x376adc(0x12e,-0x11f,-0x25,-0x15e)+_0x376adc(-0x187,0x5e,-0x98,-0x17a)+'\x20Prisma\x20Cl'+_0x376adc(0x74,0x254,0xde,0x278)+_0x4a0720(0x384,0x53b,0x475,0x456)+'\x20stored\x20in'+'\x20transacti'+_0x376adc(0x120,0x231,0x131,0x105)+_0x4a0720(0x47c,0x627,0x55d,0x549)+_0x4a0720(0x19a,0x448,0x2fc,0x398)+_0x376adc(-0x75,-0x1b1,-0x4a,-0x156)+'nd\x20used\x0ain'+_0x4a0720(0x269,0x2b9,0x339,0x28c)+'\x20transacti'+_0x4a0720(0x2f9,0x24f,0x37d,0x2a1)+_0x4a0720(0x29c,0x4a1,0x35f,0x272)+_0x376adc(0x109,0x248,0x161,0x21a)+_0x4a0720(0x59c,0x31f,0x42e,0x541)+_0x4a0720(0x45c,0x4bc,0x4b4,0x567)+'\x20and\x20hands'+'\x0ayou\x20the\x20c'+_0x4a0720(0x38c,0x44b,0x4f8,0x5b2)+'se\x20—\x20queri'+_0x376adc(0x1d9,-0x79,0xaa,0xf7)+'on\x20the\x20out'+_0x4a0720(0x476,0x3d8,0x4f7,0x55d)+_0x376adc(0x174,0xf3,0xd0,0x3d)+_0x4a0720(0x3bf,0x374,0x393,0x346)+'ransaction'+_0x4a0720(0x1ee,0x436,0x2d0,0x40a)+'not\x20see\x20th'+_0x4a0720(0x49c,0x