// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x3a39=['composable-middleware','../../mysqldb','../../config/environment','data1','license','split','createDecipher','aes-256-ctr','format','%s:%s:%s','update','base64','utf8','final','parse','hasOwnProperty','use','License','findOne','then','count','status','json','Maximum\x20%s\x20limit\x20have\x20been\x20reached','catch','users','User','admin','user','isUserLimit','util'];(function(_0x4c211e,_0x24f093){var _0x2df9ce=function(_0x17fb7a){while(--_0x17fb7a){_0x4c211e['push'](_0x4c211e['shift']());}};_0x2df9ce(++_0x24f093);}(_0x3a39,0x9a));var _0x93a3=function(_0x2d7f0e,_0x3e6fbd){_0x2d7f0e=_0x2d7f0e-0x0;var _0x110b07=_0x3a39[_0x2d7f0e];return _0x110b07;};'use strict';var crypto=require('crypto');var util=require(_0x93a3('0x0'));var compose=require(_0x93a3('0x1'));var db=require(_0x93a3('0x2'))['db'];var config=require(_0x93a3('0x3'));function getValueFromLicense(_0x121248,_0x2e26cd){if(_0x121248&&_0x2e26cd){if(_0x2e26cd[_0x93a3('0x4')]&&_0x2e26cd[_0x93a3('0x5')]){var _0x1f15e9=_0x2e26cd[_0x93a3('0x4')];var _0x1b6711=_0x2e26cd[_0x93a3('0x5')];var _0x19df9a=_0x1f15e9[_0x93a3('0x6')]('-')[0x4];var _0x1a3249=_0x1f15e9['split']('-')[0x0];var _0x441c8b=crypto[_0x93a3('0x7')](_0x93a3('0x8'),util[_0x93a3('0x9')](_0x93a3('0xa'),_0x19df9a,_0x1f15e9,_0x1a3249));var _0x31d7c6=_0x441c8b[_0x93a3('0xb')](_0x1b6711,_0x93a3('0xc'),_0x93a3('0xd'));_0x31d7c6+=_0x441c8b[_0x93a3('0xe')]('utf8');var _0x1ecec8=JSON[_0x93a3('0xf')](_0x31d7c6);return _0x1ecec8[_0x93a3('0x10')](_0x121248)?_0x1ecec8[_0x121248]:null;}}return null;}function isLimit(_0x35a8fe,_0x247272,_0x47e169,_0x57c147){var _0x5a9043=_0x247272;return compose()[_0x93a3('0x11')](function(_0x4fe2f4,_0x5354a5,_0xc4df29){return db[_0x93a3('0x12')][_0x93a3('0x13')]({'where':{'id':0x1},'raw':!![]})['then'](function(_0x412200){var _0x11ef85=getValueFromLicense(_0x35a8fe,_0x412200);return _0x11ef85?_0x11ef85:_0x5a9043;})[_0x93a3('0x14')](function(_0x25be7d){_0x5a9043=_0x25be7d;return _0x47e169[_0x93a3('0x15')](_0x57c147);})[_0x93a3('0x14')](function(_0x1eed69){if(_0x1eed69>=_0x5a9043){return _0x5354a5[_0x93a3('0x16')](0x193)[_0x93a3('0x17')]({'message':util[_0x93a3('0x9')](_0x93a3('0x18'),_0x35a8fe)});}_0xc4df29();})[_0x93a3('0x19')](function(_0x549ba8){_0xc4df29(_0x549ba8);});});}function isUserLimit(){return isLimit(_0x93a3('0x1a'),0x1,db[_0x93a3('0x1b')],{'where':{'$or':[{'role':_0x93a3('0x1c')},{'role':_0x93a3('0x1d')}]}});}exports[_0x93a3('0x1e')]=isUserLimit;
\ No newline at end of file
+var _0x2d34=['../../config/environment','split','createDecipher','%s:%s:%s','update','utf8','final','parse','hasOwnProperty','then','count','json','format','Maximum\x20%s\x20limit\x20have\x20been\x20reached','catch','users','User','admin','user','isUserLimit','util','composable-middleware','../../mysqldb'];(function(_0x2d1623,_0x18c3e8){var _0x50d246=function(_0x139331){while(--_0x139331){_0x2d1623['push'](_0x2d1623['shift']());}};_0x50d246(++_0x18c3e8);}(_0x2d34,0x156));var _0x42d3=function(_0x3a14b7,_0x3cd9d5){_0x3a14b7=_0x3a14b7-0x0;var _0x37b5cd=_0x2d34[_0x3a14b7];return _0x37b5cd;};'use strict';var crypto=require('crypto');var util=require(_0x42d3('0x0'));var compose=require(_0x42d3('0x1'));var db=require(_0x42d3('0x2'))['db'];var config=require(_0x42d3('0x3'));function getValueFromLicense(_0x45ee46,_0x1f96dd){if(_0x45ee46&&_0x1f96dd){if(_0x1f96dd['data1']&&_0x1f96dd['license']){var _0x298a50=_0x1f96dd['data1'];var _0xe80ef9=_0x1f96dd['license'];var _0x12e12b=_0x298a50['split']('-')[0x4];var _0x544b44=_0x298a50[_0x42d3('0x4')]('-')[0x0];var _0x34f057=crypto[_0x42d3('0x5')]('aes-256-ctr',util['format'](_0x42d3('0x6'),_0x12e12b,_0x298a50,_0x544b44));var _0xead1c1=_0x34f057[_0x42d3('0x7')](_0xe80ef9,'base64',_0x42d3('0x8'));_0xead1c1+=_0x34f057[_0x42d3('0x9')](_0x42d3('0x8'));var _0x81523d=JSON[_0x42d3('0xa')](_0xead1c1);return _0x81523d[_0x42d3('0xb')](_0x45ee46)?_0x81523d[_0x45ee46]:null;}}return null;}function isLimit(_0x2600f4,_0x8fe88c,_0x2aab00,_0x389f58){var _0x13fd5b=_0x8fe88c;return compose()['use'](function(_0x1347d0,_0x3f56fd,_0x4fc61f){return db['License']['findOne']({'where':{'id':0x1},'raw':!![]})[_0x42d3('0xc')](function(_0x2fa398){var _0x4d41ae=getValueFromLicense(_0x2600f4,_0x2fa398);return _0x4d41ae?_0x4d41ae:_0x13fd5b;})[_0x42d3('0xc')](function(_0x460abe){_0x13fd5b=_0x460abe;return _0x2aab00[_0x42d3('0xd')](_0x389f58);})[_0x42d3('0xc')](function(_0x1cb8d7){if(_0x1cb8d7>=_0x13fd5b){return _0x3f56fd['status'](0x193)[_0x42d3('0xe')]({'message':util[_0x42d3('0xf')](_0x42d3('0x10'),_0x2600f4)});}_0x4fc61f();})[_0x42d3('0x11')](function(_0xc9a998){_0x4fc61f(_0xc9a998);});});}function isUserLimit(){return isLimit(_0x42d3('0x12'),0x1,db[_0x42d3('0x13')],{'where':{'$or':[{'role':_0x42d3('0x14')},{'role':_0x42d3('0x15')}]}});}exports[_0x42d3('0x16')]=isUserLimit;
\ No newline at end of file