prisma-zod-generator
Version:
Prisma 2+ generator to emit Zod schemas from your Prisma schema
1 lines • 32.8 kB
JavaScript
;function pzg_0x2743(){const _0x29bf17=['ENvwrLa','y2fJAgLUzW','B2XPy2LLCW','zxrL','DgvUyw50vhLWzq','C2LUz2XLlxrHyG','u1D1ChG','yNrYzwu','zxf1ywXZ','AM9PBMvKlxrHyG','zM9YBwf0','DgG6ia','Cg9SAwnPzxm','DhjPBq','mtm4odKXng1Rt1LjAW','wg9svva','lY8V','AKzMEwu','Aw5KzxHtDhjHDa','nde5nJaZmJHMrKPcqve','y2fZy2fKzt10CG','y2HPBgrYzw4','C3rYAw5N','BwfW','zw51Bq','C3bSAxq','y2fZy2fKzurLBa','zMLLBgq','qwLSr1y','Bwf0y2G','n0DmuNLpAa','AwfIBgu','y29UDgfPBNm','swf1tgq','z2v0uMvHzfjLCW','BwfZAZPOyxnO','zxj0Eq','vhnzDLG','y3HzC0m','uwfvzwK','BNvTyMvY','oIb7ignVBNrHAq','z2LZDa','yKfhB08','zgvMAw5LuhjVCa','mtj6BMLjqxi','DhLWzq','CgfYDgL0Aw9Upq','z2v0vgvUyw50ua','CgfYzw50','z2v0vgvUyw50rG','uLb3Dem','C3rHCNrZv2L0Aa','zMLSDgvY','CgLPuNvSzxm','BwfZAZPMDwXS','Bgf1C2u','C3rYyxrLz3K','D3jPDgu','ExjnrNK','Bw9KzwXoyw1L','y3r4','CMvKywn0oMXVzW','DgvZDa','y29UDgv4DfzHCG','z2v0v3jPDgvszq','DMzSs0G','z2v0vMfSDwvqBW','qwfiA2e','BwfZAZPWyxj0Aq','CM9lzei','tfzNrLK','BgLZDa','Aw5OzxjPDgfUyW','y2XHC3m','lY8Via','BM90x2LU','DhjPy3rLzezPzq','ChvZAa','zMLLBgrZ','CMvXDwLYzwq','CgfYC2vty2HLBq','mJqWt2DetgXj','mtn6Euf0rgW','Aw5JBhvKzxm','CgvYzM9YBwfUyW','zgvUEq','nZeXntK4mgflrM5Ywq','odqXodC4DNfgtLPT','DxvPza','CMHnvgS','zwXKCW','z2LU','oIb7igvUzhnxAq','CMvWBgfJzq','CgfYDgLHBa','oIb7igLUoIa','qMnuAwu','qvbmC0W','C3vIDhLWzq','r1ngvKG','tK9uoIb7ia','DgvUyw50','zwD5','AwvSzhm','BgLJAwvZ','zvr5Cgu','D2HLCMu','C3rHCNrZx3DPDa','mtCWzvvXt29l','D0PIsxq','oIb7ig5VDeLUoG','ndi4mJi5uhrAyxrr','DgfIBguTCgvYlq','AgfZAa','mteZmtKZm1jXvezJCW','DgvUyw50uNvSzq','Dg9mB3DLCKnHCW','zw5KC193AxrO','DgvUyw50swq','ndyYmde5ofP1EgLZCW','DMfSAwrHDgLVBG','v0XAvLu','zgLYzwn0B3j5','z2v0ueLjrMLLBa','DxbKyxrL','Aw50','zNvSBa','BNm6ia','rhDIr1y','CMfUz2u','AgLLCMfYy2H5','zMLUza','zeLeAuK','uMTeBMe','BhLRzKG','B3bLCMf0B3i','D29nDu8','AgfZug9SAwn5','rKjUuMO','BgvUz3rO','rLzIrei','CgfYDgL0Aw9UAq','vw1yy1y','DMfSDwvZ','yunVBw1LBNrZ','C2HHCMrPBMC','Cgf0DgvYBG','EK9iENG','zgvWDgG','nwj3t2Pwwq'];pzg_0x2743=function(){return _0x29bf17;};return pzg_0x2743();}(function(_0x17d125,_0x3c60f2){function _0xaacb3e(_0x552649,_0x11f24a,_0x2ace7d,_0x10824f){return pzg_0x5cbe(_0x2ace7d-0x2d2,_0x11f24a);}const _0x2b9337=_0x17d125();function _0x1c4cc8(_0x1fedf8,_0x2c9855,_0x4aedb3,_0x28feb5){return pzg_0x5cbe(_0x1fedf8-0x18c,_0x28feb5);}while(!![]){try{const _0x270be8=-parseInt(_0xaacb3e(0x3de,0x3a6,0x3c5,0x389))/(-0x1861+0x2*-0xf6b+0x3738)+parseInt(_0x1c4cc8(0x207,0x1fe,0x229,0x23a))/(0x25bb*-0x1+-0x81f+0xb77*0x4)*(parseInt(_0x1c4cc8(0x232,0x1f9,0x267,0x246))/(0x1b5a+-0x117a+-0x9dd))+-parseInt(_0x1c4cc8(0x231,0x1fb,0x207,0x231))/(-0x1*-0xeab+-0xdf9+0x57*-0x2)*(-parseInt(_0x1c4cc8(0x270,0x25b,0x2a7,0x2aa))/(0x73a+0x535+-0xc6a))+-parseInt(_0xaacb3e(0x397,0x35a,0x398,0x392))/(-0x1*-0x809+0x26ed+0x2ef*-0x10)*(parseInt(_0x1c4cc8(0x28f,0x27a,0x299,0x2d9))/(0x2d2+-0x1dc4+0x565*0x5))+parseInt(_0xaacb3e(0x371,0x333,0x372,0x36c))/(0x18c1*0x1+-0x3*0x705+-0x3aa)*(parseInt(_0x1c4cc8(0x24a,0x208,0x22d,0x281))/(-0x1*-0x1e9e+0xa8a+-0x291f))+-parseInt(_0xaacb3e(0x3a4,0x3c6,0x38d,0x350))/(0x1e08+0xcdd+-0x2adb)*(-parseInt(_0x1c4cc8(0x24d,0x222,0x247,0x276))/(0x99f+0x1ca1+0x1*-0x2635))+parseInt(_0xaacb3e(0x3c1,0x388,0x3ca,0x3aa))/(-0x154f+0x2655+0x10fa*-0x1)*(-parseInt(_0x1c4cc8(0x22d,0x25d,0x23d,0x25f))/(-0x2277+-0x1584+0x3808*0x1));if(_0x270be8===_0x3c60f2)break;else _0x2b9337['push'](_0x2b9337['shift']());}catch(_0x4d85fa){_0x2b9337['push'](_0x2b9337['shift']());}}}(pzg_0x2743,0x39*0x44fb+-0x7552*0x41+0x1d7142));const pzg_0x322a36={};pzg_0x322a36['value']=!![];function pzg_0x4be0cf(_0x197e5e,_0x34c9fb,_0x190a4e,_0x1988d6){return pzg_0x5cbe(_0x1988d6- -0x3d6,_0x197e5e);}Object[pzg_0x3642bb(0x30c,0x32f,0x305,0x33e)+pzg_0x3642bb(0x39b,0x387,0x3e5,0x3b4)](exports,'__esModule',pzg_0x322a36),exports[pzg_0x4be0cf(-0x34f,-0x348,-0x2f0,-0x337)+pzg_0x3642bb(0x371,0x33e,0x32b,0x3ba)]=parseSchemaComments,exports[pzg_0x3642bb(0x312,0x307,0x347,0x2ee)+pzg_0x3642bb(0x348,0x350,0x374,0x385)]=getTenantFields,exports['detectTena'+'ntFieldsFr'+'omSchema']=detectTenantFieldsFromSchema,exports[pzg_0x4be0cf(-0x2e3,-0x2d6,-0x319,-0x2cf)+pzg_0x3642bb(0x32d,0x355,0x35f,0x353)+'lds']=getReadRestrictedFields,exports[pzg_0x3642bb(0x321,0x308,0x329,0x2fe)+'strictedFi'+pzg_0x4be0cf(-0x378,-0x31e,-0x331,-0x32d)]=getWriteRestrictedFields,exports[pzg_0x4be0cf(-0x315,-0x314,-0x333,-0x30c)+'ds']=getPIIFields,exports[pzg_0x3642bb(0x36a,0x3b6,0x323,0x352)]=hasPolicy,exports[pzg_0x3642bb(0x310,0x2cb,0x33a,0x346)+pzg_0x3642bb(0x379,0x3bd,0x35b,0x373)]=getTenantPolicies,exports['getFieldRe'+'strictions']=getFieldRestrictions;function pzg_0x3642bb(_0x29bd25,_0x150b4e,_0x386df0,_0x247f44){return pzg_0x5cbe(_0x29bd25-0x292,_0x150b4e);}exports[pzg_0x4be0cf(-0x367,-0x346,-0x324,-0x345)+pzg_0x4be0cf(-0x330,-0x33b,-0x361,-0x31f)]=getValuePolicies,exports['generateTe'+'nantWhereC'+pzg_0x4be0cf(-0x34f,-0x330,-0x339,-0x350)]=generateTenantWhereClause;function parsePolicyComment(_0xc4bb00){function _0x26edc2(_0x1cd032,_0x23a8a1,_0x40f27a,_0xdab245){return pzg_0x3642bb(_0x1cd032- -0x134,_0x40f27a,_0x40f27a-0x1c8,_0xdab245-0x1bf);}const _0x4806d0={};_0x4806d0['FVbDB']=_0x26edc2(0x217,0x1f6,0x1de,0x238),_0x4806d0[_0x57b30b(0x1ea,0x217,0x236,0x247)]=_0x26edc2(0x1fb,0x1b2,0x238,0x241);const _0x3c7848=_0x4806d0,_0x37c7b8=_0xc4bb00['match'](/@policy\s+(read|write|deny|update|delete|create):(where|fields|values)\s+(.+)/);function _0x57b30b(_0x4e7fa4,_0x54d52c,_0x15eaa9,_0x121751){return pzg_0x4be0cf(_0x15eaa9,_0x54d52c-0x40,_0x15eaa9-0xe4,_0x54d52c-0x514);}if(_0x37c7b8){const [,_0x5dfdc9,_0x498bd,_0x58b16e]=_0x37c7b8,_0x390bfb={'type':_0x5dfdc9,'subtype':_0x498bd,'condition':_0x58b16e[_0x57b30b(0x267,0x230,0x213,0x278)]()};if(_0x498bd===_0x3c7848[_0x57b30b(0x20f,0x219,0x206,0x227)]){const _0x590e06=_0x58b16e[_0x26edc2(0x260,0x2a7,0x214,0x23b)](/(\w+)\s*(==|!=|in|not_in|contains|starts_with|ends_with)\s*(.+)/);if(_0x590e06){const [,_0x222721,_0x4f1502,_0xaa14f2]=_0x590e06;_0x390bfb[_0x26edc2(0x25e,0x27c,0x230,0x23e)]=_0x222721,_0x390bfb[_0x57b30b(0x21f,0x214,0x1c9,0x1e0)]=_0x4f1502;const _0x1011cc=_0xaa14f2['match'](/ctx\.(\w+)/);_0x1011cc&&(_0x390bfb[_0x57b30b(0x192,0x1cc,0x1d6,0x205)+'iable']=_0x1011cc[-0x7e9*-0x3+-0xbab+0x7*-0x1b9]);}}if(_0x498bd===_0x3c7848[_0x26edc2(0x237,0x200,0x27a,0x266)]){const _0x3cb45f=_0x58b16e[_0x26edc2(0x260,0x237,0x2a4,0x240)](/\[([^\]]+)\]/);_0x3cb45f&&(_0x390bfb[_0x57b30b(0x1cd,0x1db,0x19a,0x1cb)]=_0x3cb45f[-0x94e+-0x6fc+0x104b][_0x57b30b(0x252,0x23c,0x26e,0x21c)](',')['map'](_0x44ace9=>_0x44ace9['trim']()[_0x57b30b(0x1b5,0x1ea,0x222,0x1da)](/["\']/g,'')));}return _0x390bfb;}const _0x147ac1=_0xc4bb00[_0x26edc2(0x260,0x272,0x256,0x21d)](/@policy\s+(read|write|deny):(.+)/);if(!_0x147ac1)return null;const [,_0x1164d9,_0x245fa0]=_0x147ac1;return{'type':_0x1164d9,'condition':_0x245fa0[_0x26edc2(0x250,0x298,0x279,0x288)]()};}function parsePIIComment(_0x47f796){const _0x3b5516={};_0x3b5516[_0x22a475(0x11b,0xdf,0xb5,0x11a)]='pii',_0x3b5516[_0x22a475(0x10e,0xee,0xa5,0xcc)]=_0x22a475(0x58,0x8d,0xa2,0x86)+'al',_0x3b5516[_0x5ca7c4(-0x263,-0x229,-0x240,-0x1f9)]=_0x22a475(0x52,0x7f,0x6d,0x3a),_0x3b5516[_0x22a475(0xe0,0xcd,0x92,0xbd)]=_0x22a475(0x128,0x102,0xfd,0x12c);function _0x22a475(_0x1faec4,_0x38654f,_0x43b2ef,_0x432b86){return pzg_0x4be0cf(_0x43b2ef,_0x38654f-0x17,_0x43b2ef-0x1ab,_0x38654f-0x3d0);}_0x3b5516[_0x5ca7c4(-0x231,-0x1e0,-0x22a,-0x26b)]=_0x5ca7c4(-0x1bc,-0x221,-0x1f3,-0x1e7);function _0x5ca7c4(_0x3a33f6,_0xd150e6,_0x346a94,_0x4d32e4){return pzg_0x4be0cf(_0x3a33f6,_0xd150e6-0xbd,_0x346a94-0xab,_0x346a94-0x123);}_0x3b5516['BcTie']=_0x5ca7c4(-0x251,-0x241,-0x206,-0x1cb);const _0x391f30=_0x3b5516,_0x3fa57b=_0x47f796['match'](/@pii\s+(\w+)(?:\s+(.+))?/);if(!_0x3fa57b)return null;const [,_0x1980cf,_0x114cd7='']=_0x3fa57b,_0x592fd7={'type':_0x391f30['zuVFP'],'dataType':_0x1980cf,'redactLogs':_0x114cd7[_0x5ca7c4(-0x230,-0x1fa,-0x211,-0x21f)](_0x22a475(0x5c,0x86,0x68,0x93)+'s'),'maskType':_0x114cd7[_0x22a475(0xe7,0x9c,0x7d,0xaf)](_0x391f30[_0x22a475(0xcb,0xee,0x126,0xe0)])?'partial':_0x114cd7[_0x5ca7c4(-0x244,-0x1eb,-0x211,-0x1ff)](_0x391f30['TsYvX'])?_0x22a475(0xdd,0xc7,0x9f,0xa4):_0x114cd7[_0x22a475(0xc1,0x9c,0xe2,0xc6)](_0x391f30[_0x5ca7c4(-0x1d8,-0x1b7,-0x1e0,-0x1b8)])?_0x391f30[_0x22a475(0xa9,0x83,0xb0,0x82)]:_0x391f30[_0x5ca7c4(-0x20b,-0x212,-0x204,-0x1c2)]};return _0x592fd7;}function parseTenantComment(_0x165832){const _0x2ec454={'rhMTk':_0x3314f1(-0x204,-0x227,-0x1e0,-0x252),'UmXcV':_0x3314f1(-0x273,-0x262,-0x248,-0x24d),'SWupx':_0x3314f1(-0x27c,-0x259,-0x28d,-0x28a),'zOHzx':function(_0x1b1864,_0xd20483){return _0x1b1864(_0xd20483);},'gcEmH':_0x3314f1(-0x266,-0x229,-0x1f4,-0x269)+'ue','tTMHh':'joined-tab'+'le','woMuO':_0x3314f1(-0x2a2,-0x263,-0x238,-0x22a)+_0x9156e1(0x294,0x23e,0x265,0x2a4),'AaHka':function(_0x3539ff,_0x1e525b){return _0x3539ff(_0x1e525b);},'RkDna':_0x3314f1(-0x26c,-0x278,-0x240,-0x28d),'cxYsC':'gist','vflKH':_0x9156e1(0x282,0x242,0x24a,0x28c)+'range','jFfye':_0x3314f1(-0x281,-0x2a5,-0x2da,-0x2df)+'hash','lykfH':'list','wJbIt':function(_0x2a053f,_0x6c6b04){return _0x2a053f(_0x6c6b04);}},_0x3ccd20=_0x165832[_0x3314f1(-0x23a,-0x220,-0x226,-0x265)](/@tenant(?:\s+(.+))?/);if(!_0x3ccd20)return null;const [,_0x1512a9='']=_0x3ccd20,_0x56e479={};_0x56e479[_0x9156e1(0x25c,0x250,0x249,0x210)]=_0x3314f1(-0x2a6,-0x26e,-0x235,-0x223);function _0x3314f1(_0x1ba3f3,_0x383ec8,_0x337df0,_0x1ab3e8){return pzg_0x4be0cf(_0x1ba3f3,_0x383ec8-0x9a,_0x337df0-0xa0,_0x383ec8-0xb4);}_0x56e479[_0x3314f1(-0x220,-0x222,-0x207,-0x1de)]=_0x9156e1(0x28f,0x295,0x292,0x26d),_0x56e479[_0x9156e1(0x2b2,0x297,0x2b6,0x2c2)]=_0x2ec454[_0x3314f1(-0x23f,-0x27a,-0x29d,-0x25d)],_0x56e479[_0x3314f1(-0x251,-0x284,-0x2b6,-0x296)]=!![];const _0x11adb8=_0x56e479;function _0x9156e1(_0x54de26,_0x5dad5c,_0x5f1390,_0x5158ea){return pzg_0x3642bb(_0x5f1390- -0xc5,_0x5dad5c,_0x5f1390-0x1c3,_0x5158ea-0xfe);}if(_0x1512a9&&!_0x1512a9['includes'](':')&&!_0x1512a9[_0x3314f1(-0x28d,-0x280,-0x277,-0x29b)](','))return _0x11adb8[_0x3314f1(-0x226,-0x222,-0x258,-0x1d6)]=_0x1512a9[_0x9156e1(0x2de,0x278,0x2bf,0x2d7)](),_0x11adb8;if(_0x1512a9&&_0x1512a9['includes'](',')&&!_0x1512a9[_0x3314f1(-0x2ca,-0x280,-0x23e,-0x256)](':')){const _0x44d44c=_0x1512a9[_0x9156e1(0x2b1,0x314,0x2cb,0x2f0)](',')['map'](_0x5df15e=>_0x5df15e['trim']());if(_0x44d44c['length']>-0x2*0x5c7+-0x11c8+-0x7*-0x431)return _0x11adb8[_0x3314f1(-0x28f,-0x285,-0x26f,-0x277)]=_0x44d44c,_0x11adb8['field']=_0x44d44c[-0xaab*0x1+0x2177+-0x16cc],_0x11adb8;}const _0x382808=_0x1512a9[_0x3314f1(-0x252,-0x220,-0x1f0,-0x20e)](/fields:([^:\s]+)/);if(_0x382808){const _0x41fcd6=_0x382808[0x1f*0x3+0x7*-0x55f+0x1*0x253d][_0x9156e1(0x30c,0x282,0x2cb,0x2fa)](',')['map'](_0x492155=>_0x492155[_0x9156e1(0x307,0x2cd,0x2bf,0x2ca)]());_0x11adb8[_0x3314f1(-0x257,-0x285,-0x2ca,-0x29c)]=_0x41fcd6,_0x11adb8[_0x3314f1(-0x1db,-0x222,-0x250,-0x26c)]=_0x41fcd6[-0x32f+-0x1*0xb26+0xe55];}else{const _0x341809=_0x1512a9['match'](/field:(\w+)/);_0x341809&&(_0x11adb8[_0x9156e1(0x2cd,0x2ef,0x2cd,0x2e8)]=_0x341809[-0x1177+-0x1d*-0x118+-0xe40]);}const _0xe90cb2=_0x1512a9[_0x9156e1(0x2c5,0x2ec,0x2cf,0x2e2)](/types:([^:\s]+)/);if(_0xe90cb2){const _0x2710ca=_0xe90cb2[0x5*0x2eb+-0x745+0x1*-0x751][_0x3314f1(-0x1ed,-0x224,-0x21b,-0x210)](',')[_0x9156e1(0x2c1,0x2b5,0x2c9,0x2e8)](_0x16b77a=>_0x16b77a[_0x9156e1(0x295,0x2c4,0x2bf,0x2b4)]());_0x11adb8['tenantType'+'s']=_0x2710ca,_0x11adb8[_0x3314f1(-0x23d,-0x239,-0x20e,-0x241)]=_0x2710ca[-0x191*0x15+0x29*0x35+0x238*0xb];}else{const _0x4ffc81=_0x1512a9['match'](/type:(string|number|uuid)/);_0x4ffc81&&(_0x11adb8[_0x3314f1(-0x237,-0x239,-0x200,-0x277)]=_0x4ffc81[-0x33f*0x7+0x1*0x17af+-0xf5]);}const _0x479f76=_0x1512a9[_0x3314f1(-0x229,-0x220,-0x21a,-0x22b)](/hierarchy:([^\\s]+)/);if(_0x479f76){const _0x1f3f8d=_0x479f76[-0xb*0x109+-0x1d*-0xba+-0x9ae];_0x11adb8[_0x9156e1(0x2bc,0x2be,0x29e,0x273)]={};const _0x3a118d=_0x1f3f8d[_0x9156e1(0x2cc,0x2de,0x2cf,0x2a6)](/parent=(\w+)/);if(_0x3a118d)_0x11adb8['hierarchy'][_0x9156e1(0x248,0x296,0x24c,0x229)]=_0x3a118d[-0x23d5+-0x97c+0x2d52];const _0xd7a560=_0x1f3f8d[_0x9156e1(0x287,0x296,0x2cf,0x2eb)](/children=(\w+)/);if(_0xd7a560)_0x11adb8['hierarchy'][_0x9156e1(0x303,0x2df,0x2c7,0x28c)]=[_0xd7a560[-0x20e9+-0x674*-0x1+0x1a76]];const _0x289fd7=_0x1f3f8d['match'](/depth=(\d+)/);if(_0x289fd7)_0x11adb8['hierarchy'][_0x3314f1(-0x215,-0x23f,-0x267,-0x206)]=parseInt(_0x289fd7[0x1b54+0x4*0x54+-0x1*0x1ca3]);}const _0x832d3b=_0x1512a9['match'](/shard:([^\\s]+)/);if(_0x832d3b){const _0x569f2f=_0x832d3b[-0x11f1+-0x23a2+-0xd65*-0x4],_0xa0bcf3={};_0xa0bcf3[_0x9156e1(0x24c,0x27e,0x254,0x26b)]=_0x2ec454['UmXcV'],_0x11adb8[_0x9156e1(0x26a,0x2c4,0x2ad,0x2b2)]=_0xa0bcf3;if(_0x569f2f[_0x9156e1(0x247,0x262,0x26f,0x29d)](_0x9156e1(0x26d,0x24e,0x28d,0x24b)))_0x11adb8['sharding']['strategy']=_0x3314f1(-0x2a0,-0x262,-0x267,-0x252);if(_0x569f2f[_0x9156e1(0x224,0x289,0x26f,0x2a2)](_0x3314f1(-0x287,-0x252,-0x297,-0x27b)))_0x11adb8[_0x9156e1(0x28e,0x2b4,0x2ad,0x2b1)][_0x3314f1(-0x25f,-0x29b,-0x2db,-0x295)]=_0x3314f1(-0x293,-0x252,-0x256,-0x26f);if(_0x569f2f['includes'](_0x2ec454[_0x3314f1(-0x254,-0x237,-0x258,-0x231)]))_0x11adb8[_0x3314f1(-0x254,-0x242,-0x246,-0x1ff)][_0x9156e1(0x24d,0x26f,0x254,0x27a)]=_0x2ec454[_0x9156e1(0x293,0x2c1,0x2b8,0x2e8)];const _0x1ecf49=_0x1512a9[_0x9156e1(0x29f,0x30e,0x2cf,0x298)](/count=(\d+)/);if(_0x1ecf49)_0x11adb8[_0x3314f1(-0x285,-0x242,-0x254,-0x25f)]['shardCount']=_0x2ec454[_0x9156e1(0x28a,0x2ea,0x2af,0x279)](parseInt,_0x1ecf49[-0xfae+-0x5*0x11+0x1004]);const _0x4802c2=_0x1512a9[_0x3314f1(-0x216,-0x220,-0x1e4,-0x1f7)](/field=(\w+)/);if(_0x4802c2)_0x11adb8[_0x9156e1(0x296,0x287,0x2ad,0x293)]['shardField']=_0x4802c2[-0xba8+-0xadb*0x1+0x1684];}const _0x3daf86=_0x1512a9['match'](/inherit:([^\\s]+)/);if(_0x3daf86){const _0x2f2772=_0x3daf86[-0x3f9+-0xdbb+0x11b5],_0x57e1d1={};_0x57e1d1['inheritanc'+_0x3314f1(-0x245,-0x26a,-0x288,-0x283)]=_0x3314f1(-0x246,-0x238,-0x247,-0x246)+'le',_0x11adb8[_0x3314f1(-0x28c,-0x28b,-0x2aa,-0x2b0)+'e']=_0x57e1d1;const _0x15da01=_0x2f2772['match'](/from=(\w+)/);if(_0x15da01)_0x11adb8[_0x3314f1(-0x2d5,-0x28b,-0x274,-0x23f)+'e']['inheritsFr'+'om']=_0x15da01[-0xfbf+-0x13e0+0x23a0];_0x11adb8[_0x9156e1(0x238,0x264,0x264,0x26f)+'e'][_0x9156e1(0x2aa,0x2b9,0x2cc,0x29e)+_0x9156e1(0x2c6,0x2d1,0x2b5,0x2dd)]=_0x2f2772['includes'](_0x2ec454['gcEmH']);if(_0x2f2772[_0x3314f1(-0x26b,-0x280,-0x26c,-0x2aa)](_0x3314f1(-0x239,-0x234,-0x27f,-0x27d)+'le'))_0x11adb8['inheritanc'+'e'][_0x3314f1(-0x260,-0x28b,-0x2ab,-0x262)+_0x3314f1(-0x24e,-0x26a,-0x273,-0x255)]=_0x2ec454['tTMHh'];if(_0x2f2772[_0x9156e1(0x275,0x26c,0x26f,0x239)](_0x3314f1(-0x221,-0x263,-0x278,-0x222)+'class'))_0x11adb8['inheritanc'+'e']['inheritanc'+_0x9156e1(0x266,0x261,0x285,0x23b)]=_0x2ec454[_0x3314f1(-0x272,-0x24b,-0x292,-0x264)];}const _0x4f26c6=_0x1512a9[_0x3314f1(-0x1eb,-0x220,-0x237,-0x1e8)](/validate:([^\\s]+)/);if(_0x4f26c6){const _0x1ea85d=_0x4f26c6[-0x16b9*-0x1+-0x1c0d*0x1+0x555];_0x11adb8[_0x3314f1(-0x22f,-0x25b,-0x267,-0x22e)]={};const _0x5d4dbf=_0x1ea85d[_0x3314f1(-0x229,-0x220,-0x1f8,-0x21d)](/format=(uuid|slug|domain|custom)/);if(_0x5d4dbf)_0x11adb8[_0x3314f1(-0x297,-0x25b,-0x29c,-0x291)][_0x3314f1(-0x267,-0x233,-0x1ff,-0x25a)]=_0x5d4dbf[-0xcb*-0x31+0x202c+0x2*-0x2383];const _0x8a357=_0x1512a9['match'](/pattern="([^"]+)"/);if(_0x8a357)_0x11adb8[_0x9156e1(0x264,0x284,0x294,0x2ca)][_0x3314f1(-0x20a,-0x241,-0x217,-0x20b)]=_0x8a357[-0x2*0x1309+-0x181d+0x3e30];const _0x34c4b5=_0x1ea85d[_0x9156e1(0x2d0,0x31b,0x2cf,0x2c8)](/length=min:(\d+),max:(\d+)/);_0x34c4b5&&(_0x11adb8['validation']['length']={'min':_0x2ec454[_0x3314f1(-0x2b1,-0x290,-0x291,-0x2bf)](parseInt,_0x34c4b5[0x8b*-0x13+0x2b*-0x93+0x2303*0x1]),'max':parseInt(_0x34c4b5[-0x206e*-0x1+-0x1e9f+-0x1cd])});const _0x11356c=_0x1512a9['match'](/enum=\[([^\]]+)\]/);_0x11356c&&(_0x11adb8[_0x3314f1(-0x278,-0x25b,-0x275,-0x277)][_0x3314f1(-0x257,-0x225,-0x21c,-0x257)]=_0x11356c[-0x1c4b+0x256f+-0x923][_0x9156e1(0x284,0x307,0x2cb,0x29a)](',')[_0x9156e1(0x2d8,0x2d3,0x2c9,0x2ab)](_0x5b056a=>_0x5b056a[_0x9156e1(0x27e,0x273,0x2bf,0x292)]()[_0x3314f1(-0x27c,-0x276,-0x29c,-0x2aa)](/['"]/g,'')));}const _0x50c80a=_0x1512a9[_0x3314f1(-0x1e0,-0x220,-0x231,-0x1d9)](/perf:([^\\s]+)/);if(_0x50c80a){const _0x5a0ebe=_0x50c80a[-0x217d+-0x197f+0x3afd],_0x37a886={};_0x37a886['indexStrat'+_0x9156e1(0x2cc,0x244,0x282,0x293)]=_0x3314f1(-0x23c,-0x236,-0x20b,-0x260),_0x11adb8[_0x9156e1(0x240,0x29f,0x270,0x242)+'e']=_0x37a886;if(_0x5a0ebe['includes'](_0x2ec454[_0x3314f1(-0x219,-0x245,-0x22d,-0x24a)]))_0x11adb8[_0x3314f1(-0x280,-0x27f,-0x269,-0x2c2)+'e'][_0x9156e1(0x2ee,0x2ff,0x2c4,0x2ed)+_0x3314f1(-0x294,-0x26d,-0x245,-0x27f)]=_0x2ec454['UmXcV'];if(_0x5a0ebe[_0x9156e1(0x2b8,0x29a,0x26f,0x24a)](_0x2ec454['RkDna']))_0x11adb8[_0x9156e1(0x234,0x2a0,0x270,0x257)+'e'][_0x9156e1(0x2e5,0x27d,0x2c4,0x29e)+_0x9156e1(0x240,0x2b2,0x282,0x27c)]=_0x2ec454[_0x9156e1(0x289,0x2ab,0x2a1,0x2e0)];if(_0x5a0ebe[_0x9156e1(0x297,0x270,0x26f,0x237)](_0x9156e1(0x214,0x22c,0x245,0x25f)))_0x11adb8[_0x9156e1(0x292,0x27c,0x270,0x28e)+'e'][_0x3314f1(-0x26e,-0x22b,-0x1fa,-0x275)+'egy']=_0x2ec454[_0x3314f1(-0x2a9,-0x2ae,-0x2e2,-0x2a1)];if(_0x5a0ebe[_0x9156e1(0x23b,0x248,0x26f,0x279)](_0x2ec454[_0x9156e1(0x294,0x297,0x25d,0x249)]))_0x11adb8[_0x3314f1(-0x26a,-0x27f,-0x263,-0x283)+'e'][_0x3314f1(-0x259,-0x246,-0x25d,-0x291)+'ng']=_0x3314f1(-0x241,-0x252,-0x28f,-0x21f);if(_0x5a0ebe[_0x9156e1(0x27c,0x229,0x26f,0x260)](_0x2ec454[_0x9156e1(0x28f,0x28c,0x2c3,0x2c7)]))_0x11adb8[_0x3314f1(-0x277,-0x27f,-0x291,-0x2c5)+'e'][_0x3314f1(-0x265,-0x246,-0x274,-0x21b)+'ng']=_0x2ec454[_0x3314f1(-0x208,-0x245,-0x255,-0x244)];if(_0x5a0ebe[_0x9156e1(0x232,0x24a,0x26f,0x252)](_0x3314f1(-0x2e5,-0x2a5,-0x2b1,-0x281)+_0x9156e1(0x253,0x296,0x263,0x25d)))_0x11adb8[_0x9156e1(0x281,0x24a,0x270,0x26b)+'e']['partitioni'+'ng']=_0x2ec454[_0x3314f1(-0x275,-0x24d,-0x229,-0x28e)];const _0x597fbd=_0x1512a9[_0x9156e1(0x289,0x2a1,0x2cf,0x2d8)](/cache=(redis|memory):(\d+)/);_0x597fbd&&(_0x11adb8['performanc'+'e'][_0x3314f1(-0x242,-0x23c,-0x243,-0x22b)]={'strategy':_0x597fbd[0x34b*-0x9+-0xa4c+0x27f0],'ttl':_0x2ec454[_0x9156e1(0x296,0x2bc,0x289,0x280)](parseInt,_0x597fbd[-0x1dcb+-0x79*-0x1c+0x1091*0x1])});}return _0x11adb8[_0x9156e1(0x250,0x2b6,0x26b,0x23e)]=!_0x1512a9[_0x3314f1(-0x246,-0x280,-0x289,-0x269)]('optional'),_0x11adb8;}function parseSchemaComments(_0x37df42){function _0x32d6c4(_0xdac9c0,_0x2329be,_0xedb6f7,_0x1b326a){return pzg_0x4be0cf(_0xdac9c0,_0x2329be-0xa2,_0xedb6f7-0xc1,_0x2329be-0x56a);}const _0x556360={'DwbGV':function(_0x2cc817,_0x43ed41){return _0x2cc817<_0x43ed41;},'wIwAz':function(_0x18ffa8,_0x535869){return _0x18ffa8(_0x535869);},'WLZVU':'///','oOrwM':function(_0x4fe45e,_0x15cdba){return _0x4fe45e!==_0x15cdba;}},_0x5b69c8=[];function _0x5d77c0(_0x27e00c,_0x314f6b,_0x1f27ca,_0x33e358){return pzg_0x3642bb(_0x1f27ca-0x8f,_0x314f6b,_0x1f27ca-0x14a,_0x33e358-0xf);}const _0x26f051=_0x37df42[_0x5d77c0(0x3f3,0x45e,0x41f,0x46b)]('\x0a');let _0xbaa7d=null,_0x1bba60=[];for(let _0x55dc0c=0x7*-0x3e7+-0x1261+-0x1*-0x2db2;_0x556360[_0x32d6c4(0x21f,0x263,0x243,0x259)](_0x55dc0c,_0x26f051[_0x5d77c0(0x3c6,0x40f,0x3fb,0x3c6)]);_0x55dc0c++){const _0x245789=_0x26f051[_0x55dc0c][_0x32d6c4(0x294,0x286,0x2a2,0x27c)](),_0x38fbaf=_0x245789['match'](/^model\s+(\w+)\s*\{/);if(_0x38fbaf){const _0x589b46={};_0x589b46['modelName']=_0x38fbaf[0x14c6*0x1+0x6*0x669+-0x3b3b],_0x589b46['policies']=[],_0x589b46[_0x32d6c4(0x22e,0x218,0x24e,0x252)]=[],_0x589b46[_0x5d77c0(0x425,0x42f,0x3e3,0x3cb)+'s']=[],_0xbaa7d=_0x589b46,_0x5b69c8[_0x5d77c0(0x383,0x3c3,0x3bd,0x402)](_0xbaa7d),_0x1bba60=[];continue;}if(_0x245789==='}'&&_0xbaa7d){_0xbaa7d=null;continue;}if(_0x245789[_0x5d77c0(0x370,0x358,0x3a3,0x37e)](_0x32d6c4(0x23f,0x289,0x2d3,0x26f))){_0x1bba60[_0x5d77c0(0x3db,0x3fc,0x3bd,0x3d0)](_0x245789);continue;}if(_0xbaa7d&&/^\s*\w+\s+\w+/[_0x5d77c0(0x37d,0x3cb,0x3ae,0x3a2)](_0x245789)){const _0x3e32e1=_0x245789[_0x5d77c0(0x430,0x451,0x423,0x44b)](/^\s*(\w+)\s+/),_0x4afb5a=_0x3e32e1?_0x3e32e1[-0x1f53+-0x2ea*0x5+0x2de6]:undefined,_0x30e978=_0x245789[_0x32d6c4(0x2d0,0x296,0x259,0x285)](/\/\/\/\s*(.+)$/);_0x30e978&&_0x1bba60[_0x32d6c4(0x213,0x230,0x202,0x1e7)](_0x5d77c0(0x401,0x3a7,0x3ba,0x370)+_0x30e978[-0xb*0x99+-0x1a35+0x20c9*0x1]);if(_0x1bba60['length']>0x125*-0x6+-0xb*0x335+0x2a25){for(const _0x257bee of _0x1bba60){const _0x28b675=_0x556360['wIwAz'](parsePolicyComment,_0x257bee);_0x28b675&&(_0x28b675[_0x5d77c0(0x3e7,0x3fd,0x421,0x40c)]=_0x4afb5a,_0x28b675[_0x5d77c0(0x3a7,0x3b9,0x3ab,0x3b8)]=_0xbaa7d[_0x32d6c4(0x1d5,0x21e,0x1ed,0x268)],_0xbaa7d[_0x5d77c0(0x3f8,0x3e0,0x412,0x428)][_0x5d77c0(0x3de,0x3d7,0x3bd,0x398)](_0x28b675));const _0x537898=parsePIIComment(_0x257bee);_0x537898&&(_0x537898[_0x32d6c4(0x24d,0x294,0x283,0x2d2)]=_0x4afb5a,_0x537898['modelName']=_0xbaa7d['modelName'],_0xbaa7d[_0x32d6c4(0x20d,0x218,0x1f4,0x1fc)]['push'](_0x537898));const _0x332601=_0x556360['wIwAz'](parseTenantComment,_0x257bee);_0x332601&&(_0x332601[_0x32d6c4(0x214,0x21e,0x233,0x237)]=_0xbaa7d[_0x32d6c4(0x1e3,0x21e,0x247,0x227)],_0xbaa7d[_0x5d77c0(0x411,0x3b0,0x3e3,0x41a)+'s']['push'](_0x332601));}_0x1bba60=[];}}!_0x245789[_0x32d6c4(0x24e,0x216,0x257,0x22c)](_0x556360[_0x5d77c0(0x3fd,0x3f5,0x3e9,0x3ae)])&&!/^\s*\w+\s+\w+/[_0x5d77c0(0x36b,0x3df,0x3ae,0x366)](_0x245789)&&_0x556360['oOrwM'](_0x245789['trim'](),'')&&(_0x1bba60=[]);}return _0x5b69c8[_0x32d6c4(0x252,0x217,0x221,0x219)](_0x3797d9=>_0x3797d9[_0x32d6c4(0x2c4,0x285,0x292,0x293)][_0x5d77c0(0x3d9,0x40c,0x3fb,0x3ba)]>0x979+0x1258+0x1bd1*-0x1||_0x3797d9[_0x32d6c4(0x1d8,0x218,0x243,0x246)][_0x32d6c4(0x261,0x26e,0x27d,0x281)]>-0x85*-0x31+0x1349+-0x2cbe||_0x3797d9[_0x5d77c0(0x3ab,0x3cd,0x3e3,0x3b0)+'s']['length']>-0xaed*0x1+-0xb09*-0x1+-0x1c);}function getTenantFields(_0x368e22){const _0x1c9f84={};function _0x9a5d05(_0x643568,_0x49b87b,_0x5b80eb,_0x446567){return pzg_0x4be0cf(_0x49b87b,_0x49b87b-0x190,_0x5b80eb-0x69,_0x643568-0x2cf);}for(const _0x360dee of _0x368e22){_0x360dee[_0x3da7de(-0x19c,-0x17e,-0x1c2,-0x1a1)+'s']['length']>0x1*0x1cdd+-0x2392+0x6b5&&(_0x1c9f84[_0x360dee[_0x3da7de(-0x1b1,-0x222,-0x1fa,-0x244)]]=_0x360dee[_0x3da7de(-0x1fe,-0x208,-0x1c2,-0x19c)+'s']);}function _0x3da7de(_0x4ae3f5,_0x42b904,_0xa37b73,_0x3f758c){return pzg_0x3642bb(_0xa37b73- -0x516,_0x4ae3f5,_0xa37b73-0x1b8,_0x3f758c-0x7b);}return _0x1c9f84;}function detectTenantFieldsFromSchema(_0x505f64){const _0x1e0407={};_0x1e0407[_0x301ef2(-0xc7,-0x8a,-0xa7,-0xe9)]=_0x301ef2(-0x9b,-0x42,-0x8b,-0x81),_0x1e0407[_0x164a02(0x422,0x438,0x44d,0x433)]=_0x301ef2(-0xc6,-0xe8,-0xe1,-0x10f);const _0x4f93bf=_0x1e0407,_0x59035f={};function _0x164a02(_0x299d97,_0x34555b,_0x4e5b15,_0x4e8b8a){return pzg_0x4be0cf(_0x4e8b8a,_0x34555b-0x14a,_0x4e5b15-0x17c,_0x34555b-0x70d);}const _0xb7ab3e=_0x505f64[_0x301ef2(-0x46,-0x21,-0x59,-0x4f)]('\x0a');let _0x512647=null;function _0x301ef2(_0x2a23b6,_0x46f027,_0x4454ef,_0x246aa8){return pzg_0x3642bb(_0x4454ef- -0x3e9,_0x46f027,_0x4454ef-0x96,_0x246aa8-0x1ea);}for(const _0x249e2a of _0xb7ab3e){const _0x34a169=_0x249e2a[_0x301ef2(-0x61,-0x51,-0x65,-0xaf)](),_0x45e502=_0x34a169['match'](/^model\s+(\w+)\s*\{/);if(_0x45e502){_0x512647=_0x45e502[-0x8b5+-0x4*-0x323+-0x2*0x1eb];continue;}if(_0x34a169==='}'){_0x512647=null;continue;}if(_0x512647){const _0x33d362=_0x34a169[_0x164a02(0x42c,0x439,0x47f,0x457)](/^\s*(\w*[Tt]enant\w*)\s+(\w+)/);if(_0x33d362){const [,_0x39bfa7,_0xf14cb6]=_0x33d362;!_0x59035f[_0x512647]&&(_0x59035f[_0x512647]=[]);const _0x471d8d=_0xf14cb6[_0x301ef2(-0x9f,-0xb8,-0x94,-0x59)+'e']()[_0x164a02(0x38f,0x3d9,0x417,0x414)](_0x4f93bf[_0x301ef2(-0xb4,-0xd6,-0xa7,-0x64)])?_0x4f93bf[_0x164a02(0x450,0x438,0x41c,0x471)]:_0xf14cb6['toLowerCas'+'e']()['includes'](_0x164a02(0x416,0x3de,0x3fb,0x399))?'uuid':'string';_0x59035f[_0x512647][_0x301ef2(-0xc5,-0xa0,-0xbb,-0xc9)]({'type':'tenant','field':_0x39bfa7,'tenantType':_0x471d8d,'required':!_0x34a169[_0x301ef2(-0x6e,-0xec,-0xb5,-0xdf)]('?'),'modelName':_0x512647});}}}return _0x59035f;}function getReadRestrictedFields(_0x350087){function _0x549684(_0x4802c0,_0x585560,_0x22582a,_0x56c20d){return pzg_0x3642bb(_0x56c20d- -0x32c,_0x4802c0,_0x22582a-0x186,_0x56c20d-0x165);}function _0x3d876a(_0x50ea45,_0x639f53,_0x37c7ba,_0x396619){return pzg_0x4be0cf(_0x639f53,_0x639f53-0x1c0,_0x37c7ba-0x163,_0x50ea45-0x455);}return _0x350087[_0x549684(0x3a,0x86,0x6a,0x57)][_0x549684(-0x2a,-0x53,-0x27,-0x17)](_0x33972e=>_0x33972e[_0x3d876a(0xfb,0xe1,0xf9,0x11a)]==='read'&&_0x33972e['field'])['map'](_0x295e13=>_0x295e13[_0x549684(0x21,0x84,0xaa,0x66)]);}function getWriteRestrictedFields(_0x45d4e7){function _0x4878b5(_0x32797c,_0x317255,_0x3ac774,_0x250e17){return pzg_0x4be0cf(_0x3ac774,_0x317255-0x17e,_0x3ac774-0x49,_0x250e17-0x473);}function _0x1a8e22(_0x1220ee,_0xf46c48,_0x465b76,_0x138b06){return pzg_0x4be0cf(_0x1220ee,_0xf46c48-0xf1,_0x465b76-0xf7,_0x138b06-0x34a);}return _0x45d4e7['policies'][_0x4878b5(0x150,0x10d,0xf7,0x120)](_0x13960b=>(_0x13960b['type']===_0x4878b5(0x151,0x161,0x10d,0x125)||_0x13960b[_0x1a8e22(-0x20,0x37,-0x47,-0x10)]==='deny')&&_0x13960b[_0x1a8e22(0x3a,0x7b,0x7f,0x74)])[_0x1a8e22(0x89,0x4a,0x4c,0x70)](_0x3f2f32=>_0x3f2f32[_0x1a8e22(0x2b,0x3a,0x2d,0x74)]);}function getPIIFields(_0x7df1dd){function _0x3c3297(_0x4c588f,_0xf276b2,_0x402e66,_0x2d5653){return pzg_0x3642bb(_0x2d5653- -0x496,_0x4c588f,_0x402e66-0x17c,_0x2d5653-0x64);}function _0x59113f(_0x1b0587,_0x2dc93a,_0x33858a,_0x3d9472){return pzg_0x4be0cf(_0x1b0587,_0x2dc93a-0x0,_0x33858a-0x11d,_0x33858a-0x383);}return _0x7df1dd[_0x3c3297(-0x14e,-0x167,-0x14b,-0x180)][_0x3c3297(-0x195,-0x19d,-0x184,-0x181)](_0x19b7ea=>_0x19b7ea['field']);}function hasPolicy(_0x2986ad,_0x7b9eba,_0x5a233a){function _0x4f58f7(_0x5d2ea1,_0x403276,_0x12e2f9,_0x360b8c){return pzg_0x3642bb(_0x403276- -0xb8,_0x5d2ea1,_0x12e2f9-0xdc,_0x360b8c-0x7d);}function _0x16cca4(_0x1c0cb5,_0x473089,_0x35413e,_0xbf2a34){return pzg_0x3642bb(_0xbf2a34-0x64,_0x473089,_0x35413e-0x167,_0xbf2a34-0x15b);}return _0x2986ad['policies'][_0x16cca4(0x3d5,0x395,0x3b3,0x3c8)](_0x4a54e5=>_0x4a54e5[_0x16cca4(0x43a,0x425,0x42c,0x3f6)]===_0x7b9eba&&_0x4a54e5[_0x4f58f7(0x28c,0x256,0x262,0x286)]===_0x5a233a);}function getTenantPolicies(_0x2552ee){function _0x37ab32(_0x255a88,_0x376939,_0x569181,_0x3af1cb){return pzg_0x3642bb(_0x569181- -0x400,_0x376939,_0x569181-0x16c,_0x3af1cb-0x73);}function _0x426808(_0x1064e9,_0x3837e1,_0xbe6ba6,_0x275c4c){return pzg_0x4be0cf(_0x1064e9,_0x3837e1-0x1ba,_0xbe6ba6-0x1ce,_0x3837e1-0x405);}return _0x2552ee['policies'][_0x426808(0xcd,0xb2,0xa4,0x97)](_0x4c04a4=>_0x4c04a4[_0x426808(0xe7,0xe0,0xbf,0xcc)]===_0x37ab32(-0xc2,-0xae,-0xb5,-0x84)&&_0x4c04a4[_0x37ab32(-0xb4,-0xda,-0xe0,-0xdd)+_0x37ab32(-0x94,-0x5d,-0x6a,-0xa3)]);}function getFieldRestrictions(_0x5dc33c,_0x4b0eb2){const _0x5b8bd8={};_0x5b8bd8[_0x5663bc(0x36a,0x347,0x308,0x315)]=_0x3502e9(0x3e0,0x3fa,0x3ef,0x3ad),_0x5b8bd8['RPwtC']=function(_0x44230a,_0x228d98){return _0x44230a===_0x228d98;};function _0x3502e9(_0x335681,_0x137e47,_0x529da4,_0x20c34b){return pzg_0x3642bb(_0x335681-0x83,_0x529da4,_0x529da4-0x18f,_0x20c34b-0x1c1);}_0x5b8bd8[_0x3502e9(0x3c7,0x3bb,0x3e5,0x3d8)]='fields';const _0x5f0468=_0x5b8bd8;function _0x5663bc(_0x335570,_0x561570,_0x3b177a,_0x521224){return pzg_0x4be0cf(_0x3b177a,_0x561570-0xbf,_0x3b177a-0x113,_0x561570-0x6a8);}return _0x5dc33c['policies'][_0x5663bc(0x32d,0x355,0x31b,0x38c)](_0xb1a8a5=>{function _0x5db693(_0x11b5b0,_0x2ff825,_0x4be267,_0x1db1b0){return _0x3502e9(_0x11b5b0- -0x343,_0x2ff825-0xad,_0x2ff825,_0x1db1b0-0x73);}const _0x475595=_0xb1a8a5[_0x185a22(-0x24f,-0x227,-0x237,-0x20c)]===_0x4b0eb2||_0xb1a8a5[_0x5db693(0x4e,0x3a,0x8e,0x20)]===_0x185a22(-0x227,-0x1c9,-0x20f,-0x217)||_0x4b0eb2===_0x5f0468[_0x5db693(0x47,0x53,0x6d,0x6c)]&&_0xb1a8a5[_0x5db693(0x4e,0x85,0xc,0x17)]===_0x5db693(0x5a,0x31,0x67,0x1e);function _0x185a22(_0x2da08d,_0x41ab4f,_0x326889,_0x1531fa){return _0x5663bc(_0x2da08d-0xc3,_0x326889- -0x585,_0x1531fa,_0x1531fa-0x15d);}return _0x475595&&(_0x5f0468[_0x185a22(-0x21d,-0x1ed,-0x232,-0x27c)](_0xb1a8a5[_0x185a22(-0x1d4,-0x243,-0x202,-0x248)],_0x5f0468[_0x185a22(-0x228,-0x245,-0x201,-0x24c)])||_0xb1a8a5[_0x5db693(0xd2,0xc2,0x89,0x10c)]);});}function getValuePolicies(_0x3d4249){function _0x1b8824(_0x5403ce,_0x2b909d,_0x350c2a,_0x1858d4){return pzg_0x3642bb(_0x350c2a- -0x12b,_0x5403ce,_0x350c2a-0x12b,_0x1858d4-0x1a8);}function _0x328586(_0x245e58,_0x1843f9,_0x866efe,_0x552531){return pzg_0x4be0cf(_0x866efe,_0x1843f9-0x130,_0x866efe-0x1dc,_0x552531-0x57);}return _0x3d4249[_0x328586(-0x253,-0x286,-0x288,-0x28e)][_0x1b8824(0x1ce,0x1b6,0x1ea,0x1a3)](_0x339c02=>_0x339c02[_0x1b8824(0x210,0x1f2,0x218,0x20b)]===_0x328586(-0x2d8,-0x27f,-0x280,-0x2a1));}function pzg_0x5cbe(_0x5a12af,_0x42669f){const _0x1c18d6=pzg_0x2743();return pzg_0x5cbe=function(_0x110fb2,_0x164e3a){_0x110fb2=_0x110fb2-(-0x234a+-0x1d*-0xbd+0xe54);let _0x6e39c3=_0x1c18d6[_0x110fb2];if(pzg_0x5cbe['fJMwQo']===undefined){var _0x3e7a00=function(_0x2f4be6){const _0x3e9c67='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2d53da='',_0x1f979a='';for(let _0x46e3ba=-0xe3a+0x1729+-0x8ef,_0x394b0c,_0x2c5a36,_0x276fdd=-0x11+-0x1377+0x1388;_0x2c5a36=_0x2f4be6['charAt'](_0x276fdd++);~_0x2c5a36&&(_0x394b0c=_0x46e3ba%(0xb4e*0x1+-0x2*0x118f+-0x1*-0x17d4)?_0x394b0c*(-0x3*-0x778+0x16c1+0x2ce9*-0x1)+_0x2c5a36:_0x2c5a36,_0x46e3ba++%(-0x4*0x94f+-0x11*-0x59+0x1f57))?_0x2d53da+=String['fromCharCode'](-0xc11+0x1f9b+0x1*-0x128b&_0x394b0c>>(-(-0x12c9+-0xccd*-0x2+-0x53*0x15)*_0x46e3ba&-0x132e+-0x170f+0x15d*0x1f)):0x67*0x7+0x7fd*-0x1+0x1*0x52c){_0x2c5a36=_0x3e9c67['indexOf'](_0x2c5a36);}for(let _0x46dd99=-0x1080+-0x63c+-0x1*-0x16bc,_0x318895=_0x2d53da['length'];_0x46dd99<_0x318895;_0x46dd99++){_0x1f979a+='%'+('00'+_0x2d53da['charCodeAt'](_0x46dd99)['toString'](0x871*-0x1+0x3*0xa9f+-0x175c))['slice'](-(-0x34*0xb0+0xfe*0x2+0x3*0xb42));}return decodeURIComponent(_0x1f979a);};pzg_0x5cbe['OSVaSl']=_0x3e7a00,_0x5a12af=arguments,pzg_0x5cbe['fJMwQo']=!![];}const _0x35c7cc=_0x1c18d6[-0x2441+-0xd*0x71+-0x5*-0x866],_0xeb22b0=_0x110fb2+_0x35c7cc,_0x3ec802=_0x5a12af[_0xeb22b0];return!_0x3ec802?(_0x6e39c3=pzg_0x5cbe['OSVaSl'](_0x6e39c3),_0x5a12af[_0xeb22b0]=_0x6e39c3):_0x6e39c3=_0x3ec802,_0x6e39c3;},pzg_0x5cbe(_0x5a12af,_0x42669f);}function generateTenantWhereClause(_0x43b829,_0x2b7a47=pzg_0x4be0cf(-0x33e,-0x347,-0x384,-0x34b)){const _0x30c071={};function _0x2f7a10(_0x2adaeb,_0x71c55e,_0x2f8e10,_0x2107f0){return pzg_0x4be0cf(_0x2f8e10,_0x71c55e-0x1a4,_0x2f8e10-0x127,_0x71c55e-0x135);}_0x30c071[_0x318f02(-0xc7,-0xe3,-0xca,-0x84)]=_0x318f02(-0x6e,-0xb2,-0x83,-0x7e),_0x30c071['LVgFY']='not_equals',_0x30c071['sAczQ']=_0x2f7a10(-0x20e,-0x1e7,-0x1d4,-0x208)+'h',_0x30c071[_0x318f02(-0x55,-0x92,-0x47,-0x4a)]=_0x318f02(-0x97,-0xe1,-0xa9,-0xd8),_0x30c071[_0x318f02(-0xe2,-0xc8,-0xa1,-0x127)]=function(_0x1ee8dd,_0xfe4765){return _0x1ee8dd===_0xfe4765;};function _0x318f02(_0x5eb75f,_0x54711a,_0x19d6ab,_0x16ee30){return pzg_0x3642bb(_0x5eb75f- -0x3ed,_0x19d6ab,_0x19d6ab-0x167,_0x16ee30-0x8a);}const _0xc5e42a=_0x30c071,_0xc262c3=_0x43b829[_0x318f02(-0xd8,-0xf2,-0xdb,-0xdd)](_0x21ff78=>_0x21ff78[_0x2f7a10(-0x1f1,-0x1f0,-0x20b,-0x220)]===_0x2f7a10(-0x209,-0x1e8,-0x221,-0x225)&&_0x21ff78['contextVar'+_0x318f02(-0x57,-0xd,-0x97,-0x5e)]);if(_0xc5e42a[_0x2f7a10(-0x261,-0x228,-0x21e,-0x265)](_0xc262c3['length'],0x20b0+0x1302+-0x33b2))return'';const _0x2ccd59=_0xc262c3[_0x2f7a10(-0x1c5,-0x1a5,-0x167,-0x1a7)](_0xcfcf5d=>{function _0x349cf3(_0x1c6d0b,_0x3988d9,_0x58c1ef,_0x52111a){return _0x318f02(_0x1c6d0b-0x406,_0x3988d9-0xed,_0x52111a,_0x52111a-0x10);}const {field:_0x455ced,operator:_0x452f24,contextVariable:_0x107270}=_0xcfcf5d,_0x1fe3c6=_0x2b7a47+'.'+_0x107270;function _0x6926b(_0x24d07e,_0x3a730f,_0x1ef8b3,_0x1dbb26){return _0x2f7a10(_0x24d07e-0x50,_0x24d07e-0x615,_0x1dbb26,_0x1dbb26-0x112);}switch(_0x452f24){case _0xc5e42a[_0x6926b(0x408,0x402,0x446,0x3c8)]:case'==':return _0x455ced+':\x20'+_0x1fe3c6;case _0xc5e42a[_0x349cf3(0x340,0x301,0x350,0x388)]:case'!=':return _0x6926b(0x427,0x40c,0x3df,0x42e)+_0x455ced+':\x20'+_0x1fe3c6+'\x20}';case'in':return _0x455ced+_0x349cf3(0x359,0x397,0x379,0x37e)+_0x1fe3c6+'\x20}';case _0x6926b(0x40e,0x3ef,0x41a,0x419):return _0x455ced+(_0x349cf3(0x368,0x324,0x332,0x339)+'\x20')+_0x1fe3c6+'\x20}';case _0x349cf3(0x3b0,0x396,0x374,0x3cb):return _0x455ced+(_0x349cf3(0x322,0x320,0x351,0x367)+_0x349cf3(0x379,0x381,0x36e,0x33a))+_0x1fe3c6+'\x20}';case _0xc5e42a['sAczQ']:return _0x455ced+(':\x20{\x20starts'+'With:\x20')+_0x1fe3c6+'\x20}';case _0xc5e42a[_0x6926b(0x47a,0x4a0,0x470,0x48d)]:return _0x455ced+(_0x6926b(0x41f,0x3d4,0x424,0x3f8)+_0x349cf3(0x39b,0x3dd,0x3d8,0x37d))+_0x1fe3c6+'\x20}';default:return _0x455ced+':\x20'+_0x1fe3c6;}});return _0xc5e42a[_0x2f7a10(-0x23e,-0x228,-0x269,-0x242)](_0x2ccd59[_0x2f7a10(-0x207,-0x1c7,-0x1ce,-0x1e4)],-0xd7*0x14+0x21b*-0x11+0x12*0x2ec)?_0x2ccd59[-0x2447+0xc6*-0x17+0x3611]:'AND:\x20['+_0x2ccd59['join'](',\x20')+']';}