Built motion from commit a486b36.|1.0.4
[motion.git] / server / config / license / license.service.js
index d060bf2..0a119ca 100644 (file)
@@ -1 +1 @@
-var _0xa16b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x63\x6F\x6D\x70\x6F\x73\x61\x62\x6C\x65\x2D\x6D\x69\x64\x64\x6C\x65\x77\x61\x72\x65","\x6D\x6F\x6D\x65\x6E\x74","\x63\x72\x79\x70\x74\x6F","\x75\x74\x69\x6C","\x6F\x73","\x65\x78\x65\x63\x53\x79\x6E\x63","\x63\x68\x69\x6C\x64\x5F\x70\x72\x6F\x63\x65\x73\x73","\x2E\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x54\x65\x6C\x65\x70\x68\x6F\x6E\x65","\x53\x65\x74\x74\x69\x6E\x67\x73","\x4C\x69\x63\x65\x6E\x73\x65","\x44\x45\x4D\x4F\x20\x4C\x49\x43\x45\x4E\x53\x45","\x0D\x0A","","\x72\x65\x70\x6C\x61\x63\x65","\x64\x6D\x69\x64\x65\x63\x6F\x64\x65\x20\x2D\x2D\x73\x74\x72\x69\x6E\x67\x20\x73\x79\x73\x74\x65\x6D\x2D\x75\x75\x69\x64","\x75\x74\x66\x38","\x77\x69\x6E\x33\x32","\x2E\x2F\x68\x61\x72\x64\x77\x61\x72\x65","\x70\x6C\x61\x74\x66\x6F\x72\x6D","\x63\x61\x74\x63\x68","\x6C\x69\x63\x65\x6E\x73\x65","\x70\x61\x72\x73\x65","\x64\x65\x63\x72\x79\x70\x74\x20\x65\x72\x72\x6F\x72","\x6C\x6F\x67","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x73\x70\x72\x65\x61\x64","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x75\x73\x65","\x63\x68\x61\x74","\x6D\x65\x73\x73\x61\x67\x69\x6E\x67","\x63\x6D","\x75\x70\x64\x61\x74\x65","\x6D\x61\x69\x6C","\x66\x61\x78","\x6A\x73\x63\x72\x69\x70\x74\x79","\x63\x75\x73\x74\x6F\x6D","\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C","\x65\x78\x70\x69\x72\x61\x74\x69\x6F\x6E","\x69\x73\x53\x61\x6D\x65\x4F\x72\x42\x65\x66\x6F\x72\x65","\x75\x73\x65\x72\x73","\x4D\x61\x78\x69\x6D\x75\x6D\x20\x75\x73\x65\x72\x73\x20\x6C\x69\x6D\x69\x74\x20\x68\x61\x76\x65\x20\x62\x65\x65\x6E\x20\x72\x65\x61\x63\x68\x65\x64","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x61\x64\x6D\x69\x6E","\x75\x73\x65\x72","\x63\x6F\x75\x6E\x74","\x74\x65\x6C\x65\x70\x68\x6F\x6E\x65\x73","\x4D\x61\x78\x69\x6D\x75\x6D\x20\x74\x65\x6C\x65\x70\x68\x6F\x6E\x65\x73\x20\x6C\x69\x6D\x69\x74\x20\x68\x61\x76\x65\x20\x62\x65\x65\x6E\x20\x72\x65\x61\x63\x68\x65\x64","\x74\x65\x6C\x65\x70\x68\x6F\x6E\x65","\x72\x6F\x6C\x65","\x61\x67\x65\x6E\x74","\x6F\x6E\x6C\x69\x6E\x65","\x61\x67\x65\x6E\x74\x73","\x2D","\x73\x70\x6C\x69\x74","\x61\x65\x73\x2D\x32\x35\x36\x2D\x63\x74\x72","\x25\x73\x3A\x25\x73\x3A\x25\x73","\x66\x6F\x72\x6D\x61\x74","\x63\x72\x65\x61\x74\x65\x44\x65\x63\x69\x70\x68\x65\x72","\x62\x61\x73\x65\x36\x34","\x66\x69\x6E\x61\x6C","\x67\x65\x74\x55\x75\x69\x64","\x69\x73\x56\x61\x6C\x69\x64\x44\x61\x74\x65","\x69\x73\x55\x73\x65\x72\x73\x4C\x69\x6D\x69\x74","\x69\x73\x54\x65\x6C\x65\x70\x68\x6F\x6E\x65\x73\x4C\x69\x6D\x69\x74","\x68\x61\x73\x43\x68\x61\x74","\x68\x61\x73\x4D\x61\x69\x6C","\x68\x61\x73\x46\x61\x78","\x68\x61\x73\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C","\x68\x61\x73\x53\x6D\x73","\x68\x61\x73\x4A\x73\x63\x72\x69\x70\x74\x79","\x68\x61\x73\x43\x6D","\x68\x61\x73\x55\x70\x64\x61\x74\x65","\x69\x73\x56\x61\x6C\x69\x64\x41\x67\x65\x6E\x74","\x64\x65\x6D\x6F\x4C\x69\x63\x65\x6E\x73\x65","\x64\x65\x63\x72\x79\x70\x74"];_0xa16b[0];var compose=require(_0xa16b[1]);var moment=require(_0xa16b[2]);var crypto=require(_0xa16b[3]);var util=require(_0xa16b[4]);var os=require(_0xa16b[5]);var exec=require(_0xa16b[7])[_0xa16b[6]];var config=require(_0xa16b[8]);var User=require(_0xa16b[10])[_0xa16b[9]];var Telephone=require(_0xa16b[10])[_0xa16b[11]];var Settings=require(_0xa16b[10])[_0xa16b[12]];var License=require(_0xa16b[10])[_0xa16b[13]];var demoLicense={users:1,agents:1,telephones:0,chat:false,mail:false,fax:false,jscripty:false,messaging:false,openchannel:false,custom:false,description:_0xa16b[14]};function getUuid(){switch(os[_0xa16b[22]]()){case _0xa16b[20]:return exec(_0xa16b[18],{encoding:_0xa16b[19]})[_0xa16b[17]](_0xa16b[15],_0xa16b[16]);default:return require(_0xa16b[21])(true)}}function checkLicense(_0x9b9axf){return compose()[_0xa16b[31]](function(_0x9b9ax10,_0x9b9ax11,_0x9b9ax12){return License[_0xa16b[30]]({where:{id:1}})[_0xa16b[29]](function(_0x9b9ax14){var _0x9b9ax15=null,_0x9b9ax16=false;try{if(_0x9b9ax14[_0xa16b[24]]){_0x9b9ax15= decrypt(_0x9b9ax14[_0xa16b[24]]);_0x9b9ax15= JSON[_0xa16b[25]](_0x9b9ax15)}else {_0x9b9ax15= demoLicense}}catch(err){console[_0xa16b[27]](_0xa16b[26],err);_0x9b9ax15= demoLicense};_0x9b9ax16= _0x9b9ax15[_0x9b9axf];if(!_0x9b9ax16){return _0x9b9ax11[_0xa16b[28]](403)};return _0x9b9ax12()})[_0xa16b[23]](function(_0x9b9ax13){return _0x9b9ax12(_0x9b9ax13)})})}function hasChat(){return checkLicense(_0xa16b[32])}function hasSms(){return checkLicense(_0xa16b[33])}function hasCm(){return checkLicense(_0xa16b[34])}function hasUpdate(){return checkLicense(_0xa16b[35])}function hasMail(){return checkLicense(_0xa16b[36])}function hasFax(){return checkLicense(_0xa16b[37])}function hasJscripty(){return checkLicense(_0xa16b[38])}function hasCustom(){return checkLicense(_0xa16b[39])}function hasOpenchannel(){return checkLicense(_0xa16b[40])}function isValidDate(){return compose()[_0xa16b[31]](function(_0x9b9ax10,_0x9b9ax11,_0x9b9ax12){return License[_0xa16b[30]]({where:{id:1}})[_0xa16b[29]](function(_0x9b9ax14){var _0x9b9ax15=null,_0x9b9ax21=false;try{if(_0x9b9ax14[_0xa16b[24]]){_0x9b9ax15= decrypt(_0x9b9ax14[_0xa16b[24]]);_0x9b9ax15= JSON[_0xa16b[25]](_0x9b9ax15);if(moment()[_0xa16b[42]](_0x9b9ax15[_0xa16b[41]])){_0x9b9ax21= true}}}catch(err){console[_0xa16b[27]](_0xa16b[26],err)};if(!_0x9b9ax21){return _0x9b9ax11[_0xa16b[28]](403)};return _0x9b9ax12()})[_0xa16b[23]](function(_0x9b9ax13){return _0x9b9ax12(_0x9b9ax13)})})}function isUsersLimit(){return compose()[_0xa16b[31]](function(_0x9b9ax10,_0x9b9ax11,_0x9b9ax12){var _0x9b9ax14;return License[_0xa16b[30]]({where:{id:1}})[_0xa16b[29]](function(_0x9b9ax25){_0x9b9ax14= _0x9b9ax25;return User[_0xa16b[50]]({where:{$or:[{role:_0xa16b[48]},{role:_0xa16b[49]}]}})})[_0xa16b[47]](function(_0x9b9ax23){var _0x9b9ax15=null,_0x9b9ax24=false;try{if(_0x9b9ax14[_0xa16b[24]]){_0x9b9ax15= decrypt(_0x9b9ax14[_0xa16b[24]]);_0x9b9ax15= JSON[_0xa16b[25]](_0x9b9ax15)}else {_0x9b9ax15= demoLicense}}catch(err){console[_0xa16b[27]](_0xa16b[26],err);_0x9b9ax15= demoLicense};if(_0x9b9ax15[_0xa16b[43]]> _0x9b9ax23){_0x9b9ax24= true};if(!_0x9b9ax24){return _0x9b9ax11[_0xa16b[46]](403)[_0xa16b[45]]({message:_0xa16b[44]})};return _0x9b9ax12()})[_0xa16b[23]](function(_0x9b9ax13){return _0x9b9ax12(_0x9b9ax13)})})}function isTelephonesLimit(){return compose()[_0xa16b[31]](function(_0x9b9ax10,_0x9b9ax11,_0x9b9ax12){var _0x9b9ax14;return License[_0xa16b[30]]({where:{id:1}})[_0xa16b[29]](function(_0x9b9ax25){_0x9b9ax14= _0x9b9ax25;return User[_0xa16b[50]]({where:{role:_0xa16b[53]}})})[_0xa16b[47]](function(_0x9b9ax27){var _0x9b9ax15=null,_0x9b9ax24=false;try{if(_0x9b9ax14[_0xa16b[24]]){_0x9b9ax15= decrypt(_0x9b9ax14[_0xa16b[24]]);_0x9b9ax15= JSON[_0xa16b[25]](_0x9b9ax15)}else {_0x9b9ax15= demoLicense}}catch(err){console[_0xa16b[27]](_0xa16b[26],err);_0x9b9ax15= demoLicense};if(_0x9b9ax15[_0xa16b[51]]> _0x9b9ax27){_0x9b9ax24= true};if(!_0x9b9ax24){return _0x9b9ax11[_0xa16b[46]](403)[_0xa16b[45]]({message:_0xa16b[52]})};return _0x9b9ax12()})[_0xa16b[23]](function(_0x9b9ax13){return _0x9b9ax12(_0x9b9ax13)})})}function isValidAgent(){return function(_0x9b9ax29){var _0x9b9ax14;var _0x9b9ax2a=false;if(_0x9b9ax29[_0xa16b[54]]=== _0xa16b[48]|| _0x9b9ax29[_0xa16b[54]]=== _0xa16b[49]|| (_0x9b9ax29[_0xa16b[54]]=== _0xa16b[55]&& _0x9b9ax29[_0xa16b[56]])){_0x9b9ax2a= true};return License[_0xa16b[30]]({where:{id:1}})[_0xa16b[29]](function(_0x9b9ax25){_0x9b9ax14= _0x9b9ax25;return User[_0xa16b[50]]({where:{role:_0xa16b[55],online:true}})})[_0xa16b[47]](function(_0x9b9ax2b){var _0x9b9ax15=null;try{if(_0x9b9ax14[_0xa16b[24]]){_0x9b9ax15= decrypt(_0x9b9ax14[_0xa16b[24]]);_0x9b9ax15= JSON[_0xa16b[25]](_0x9b9ax15)}else {_0x9b9ax15= demoLicense}}catch(err){console[_0xa16b[27]](_0xa16b[26],err);_0x9b9ax15= demoLicense};if(_0x9b9ax15[_0xa16b[57]]> _0x9b9ax2b){_0x9b9ax2a= true};return _0x9b9ax2a})}}function decrypt(_0x9b9ax2d){var _0x9b9ax2e=getUuid();var _0x9b9ax2f=_0x9b9ax2e[_0xa16b[59]](_0xa16b[58])[4];var _0x9b9ax30=_0x9b9ax2e[_0xa16b[59]](_0xa16b[58])[0];var _0x9b9ax31=crypto[_0xa16b[63]](_0xa16b[60],util[_0xa16b[62]](_0xa16b[61],_0x9b9ax2f,_0x9b9ax2e,_0x9b9ax30));var _0x9b9ax14=_0x9b9ax31[_0xa16b[35]](_0x9b9ax2d,_0xa16b[64],_0xa16b[19]);_0x9b9ax14+= _0x9b9ax31[_0xa16b[65]](_0xa16b[19]);return _0x9b9ax14}exports[_0xa16b[66]]= getUuid;exports[_0xa16b[67]]= isValidDate;exports[_0xa16b[68]]= isUsersLimit;exports[_0xa16b[69]]= isTelephonesLimit;exports[_0xa16b[70]]= hasChat;exports[_0xa16b[71]]= hasMail;exports[_0xa16b[72]]= hasFax;exports[_0xa16b[73]]= hasOpenchannel;exports[_0xa16b[74]]= hasSms;exports[_0xa16b[75]]= hasJscripty;exports[_0xa16b[76]]= hasCm;exports[_0xa16b[77]]= hasUpdate;exports[_0xa16b[78]]= isValidAgent;exports[_0xa16b[79]]= demoLicense;exports[_0xa16b[80]]= decrypt
\ No newline at end of file
+var _0xbfc9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x63\x6F\x6D\x70\x6F\x73\x61\x62\x6C\x65\x2D\x6D\x69\x64\x64\x6C\x65\x77\x61\x72\x65","\x6D\x6F\x6D\x65\x6E\x74","\x63\x72\x79\x70\x74\x6F","\x75\x74\x69\x6C","\x6F\x73","\x65\x78\x65\x63\x53\x79\x6E\x63","\x63\x68\x69\x6C\x64\x5F\x70\x72\x6F\x63\x65\x73\x73","\x2E\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x54\x65\x6C\x65\x70\x68\x6F\x6E\x65","\x53\x65\x74\x74\x69\x6E\x67","\x4C\x69\x63\x65\x6E\x73\x65","\x44\x45\x4D\x4F\x20\x4C\x49\x43\x45\x4E\x53\x45","\x0D\x0A","","\x72\x65\x70\x6C\x61\x63\x65","\x64\x6D\x69\x64\x65\x63\x6F\x64\x65\x20\x2D\x2D\x73\x74\x72\x69\x6E\x67\x20\x73\x79\x73\x74\x65\x6D\x2D\x75\x75\x69\x64","\x75\x74\x66\x38","\x77\x69\x6E\x33\x32","\x2E\x2F\x68\x61\x72\x64\x77\x61\x72\x65","\x70\x6C\x61\x74\x66\x6F\x72\x6D","\x63\x61\x74\x63\x68","\x6C\x69\x63\x65\x6E\x73\x65","\x64\x61\x74\x61\x31","\x70\x61\x72\x73\x65","\x64\x65\x6D\x6F","\x64\x65\x63\x72\x79\x70\x74\x20\x65\x72\x72\x6F\x72","\x6C\x6F\x67","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x73\x70\x72\x65\x61\x64","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x75\x73\x65","\x63\x68\x61\x74","\x6D\x65\x73\x73\x61\x67\x69\x6E\x67","\x63\x6D","\x75\x70\x64\x61\x74\x65","\x6D\x61\x69\x6C","\x66\x61\x78","\x6A\x73\x63\x72\x69\x70\x74\x79","\x63\x75\x73\x74\x6F\x6D","\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C","\x65\x78\x70\x69\x72\x61\x74\x69\x6F\x6E","\x69\x73\x53\x61\x6D\x65\x4F\x72\x42\x65\x66\x6F\x72\x65","\x75\x73\x65\x72\x73","\x4D\x61\x78\x69\x6D\x75\x6D\x20\x75\x73\x65\x72\x73\x20\x6C\x69\x6D\x69\x74\x20\x68\x61\x76\x65\x20\x62\x65\x65\x6E\x20\x72\x65\x61\x63\x68\x65\x64","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x61\x64\x6D\x69\x6E","\x75\x73\x65\x72","\x63\x6F\x75\x6E\x74","\x74\x65\x6C\x65\x70\x68\x6F\x6E\x65\x73","\x4D\x61\x78\x69\x6D\x75\x6D\x20\x74\x65\x6C\x65\x70\x68\x6F\x6E\x65\x73\x20\x6C\x69\x6D\x69\x74\x20\x68\x61\x76\x65\x20\x62\x65\x65\x6E\x20\x72\x65\x61\x63\x68\x65\x64","\x74\x65\x6C\x65\x70\x68\x6F\x6E\x65","\x72\x6F\x6C\x65","\x61\x67\x65\x6E\x74","\x6F\x6E\x6C\x69\x6E\x65","\x61\x67\x65\x6E\x74\x73","\x2D","\x73\x70\x6C\x69\x74","\x61\x65\x73\x2D\x32\x35\x36\x2D\x63\x74\x72","\x25\x73\x3A\x25\x73\x3A\x25\x73","\x66\x6F\x72\x6D\x61\x74","\x63\x72\x65\x61\x74\x65\x44\x65\x63\x69\x70\x68\x65\x72","\x62\x61\x73\x65\x36\x34","\x66\x69\x6E\x61\x6C","\x67\x65\x74\x55\x75\x69\x64","\x69\x73\x56\x61\x6C\x69\x64\x44\x61\x74\x65","\x69\x73\x55\x73\x65\x72\x73\x4C\x69\x6D\x69\x74","\x69\x73\x54\x65\x6C\x65\x70\x68\x6F\x6E\x65\x73\x4C\x69\x6D\x69\x74","\x68\x61\x73\x43\x68\x61\x74","\x68\x61\x73\x4D\x61\x69\x6C","\x68\x61\x73\x46\x61\x78","\x68\x61\x73\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C","\x68\x61\x73\x53\x6D\x73","\x68\x61\x73\x4A\x73\x63\x72\x69\x70\x74\x79","\x68\x61\x73\x43\x6D","\x68\x61\x73\x55\x70\x64\x61\x74\x65","\x69\x73\x56\x61\x6C\x69\x64\x41\x67\x65\x6E\x74","\x64\x65\x6D\x6F\x4C\x69\x63\x65\x6E\x73\x65","\x64\x65\x63\x72\x79\x70\x74"];_0xbfc9[0];var compose=require(_0xbfc9[1]);var moment=require(_0xbfc9[2]);var crypto=require(_0xbfc9[3]);var util=require(_0xbfc9[4]);var os=require(_0xbfc9[5]);var exec=require(_0xbfc9[7])[_0xbfc9[6]];var config=require(_0xbfc9[8]);var User=require(_0xbfc9[10])[_0xbfc9[9]];var Telephone=require(_0xbfc9[10])[_0xbfc9[11]];var Setting=require(_0xbfc9[10])[_0xbfc9[12]];var License=require(_0xbfc9[10])[_0xbfc9[13]];var demoLicense={demo:true,users:1,agents:1,telephones:0,chat:false,mail:false,fax:false,jscripty:false,messaging:false,openchannel:false,custom:false,cm:false,dialer:false,update:false,description:_0xbfc9[14]};function getUuid(){switch(os[_0xbfc9[22]]()){case _0xbfc9[20]:return exec(_0xbfc9[18],{encoding:_0xbfc9[19]})[_0xbfc9[17]](_0xbfc9[15],_0xbfc9[16]);default:return require(_0xbfc9[21])(true)}}function checkLicense(_0x30adxf){return compose()[_0xbfc9[33]](function(_0x30adx10,_0x30adx11,_0x30adx12){return License[_0xbfc9[32]]({where:{id:1}})[_0xbfc9[31]](function(_0x30adx14){var _0x30adx15=null;var _0x30adx16=false;try{if(_0x30adx14[_0xbfc9[24]]){_0x30adx15= decrypt(_0x30adx14[_0xbfc9[24]],_0x30adx14[_0xbfc9[25]]);_0x30adx15= JSON[_0xbfc9[26]](_0x30adx15);_0x30adx15[_0xbfc9[27]]= false}else {_0x30adx15= demoLicense;_0x30adx15[_0xbfc9[27]]= true}}catch(err){console[_0xbfc9[29]](_0xbfc9[28],err);_0x30adx15= demoLicense;_0x30adx15[_0xbfc9[27]]= true};_0x30adx16= _0x30adx15[_0x30adxf];if(!_0x30adx16){return _0x30adx11[_0xbfc9[30]](403)};return _0x30adx12()})[_0xbfc9[23]](function(_0x30adx13){return _0x30adx12(_0x30adx13)})})}function hasChat(){return checkLicense(_0xbfc9[34])}function hasSms(){return checkLicense(_0xbfc9[35])}function hasCm(){return checkLicense(_0xbfc9[36])}function hasUpdate(){return checkLicense(_0xbfc9[37])}function hasMail(){return checkLicense(_0xbfc9[38])}function hasFax(){return checkLicense(_0xbfc9[39])}function hasJscripty(){return checkLicense(_0xbfc9[40])}function hasCustom(){return checkLicense(_0xbfc9[41])}function hasOpenchannel(){return checkLicense(_0xbfc9[42])}function isValidDate(){return compose()[_0xbfc9[33]](function(_0x30adx10,_0x30adx11,_0x30adx12){return License[_0xbfc9[32]]({where:{id:1}})[_0xbfc9[31]](function(_0x30adx14){var _0x30adx15=null,_0x30adx21=false;try{if(_0x30adx14[_0xbfc9[24]]){_0x30adx15= decrypt(_0x30adx14[_0xbfc9[24]],_0x30adx14[_0xbfc9[25]]);_0x30adx15= JSON[_0xbfc9[26]](_0x30adx15);if(moment()[_0xbfc9[44]](_0x30adx15[_0xbfc9[43]])){_0x30adx21= true}}}catch(err){console[_0xbfc9[29]](_0xbfc9[28],err)};if(!_0x30adx21){return _0x30adx11[_0xbfc9[30]](403)};return _0x30adx12()})[_0xbfc9[23]](function(_0x30adx13){return _0x30adx12(_0x30adx13)})})}function isUsersLimit(){return compose()[_0xbfc9[33]](function(_0x30adx10,_0x30adx11,_0x30adx12){var _0x30adx14;return License[_0xbfc9[32]]({where:{id:1}})[_0xbfc9[31]](function(_0x30adx25){_0x30adx14= _0x30adx25;return User[_0xbfc9[52]]({where:{$or:[{role:_0xbfc9[50]},{role:_0xbfc9[51]}]}})})[_0xbfc9[49]](function(_0x30adx23){var _0x30adx15=null,_0x30adx24=false;try{if(_0x30adx14[_0xbfc9[24]]){_0x30adx15= decrypt(_0x30adx14[_0xbfc9[24]],_0x30adx14[_0xbfc9[25]]);_0x30adx15= JSON[_0xbfc9[26]](_0x30adx15)}else {_0x30adx15= demoLicense}}catch(err){console[_0xbfc9[29]](_0xbfc9[28],err);_0x30adx15= demoLicense};if(_0x30adx15[_0xbfc9[45]]> _0x30adx23){_0x30adx24= true};if(!_0x30adx24){return _0x30adx11[_0xbfc9[48]](403)[_0xbfc9[47]]({message:_0xbfc9[46]})};return _0x30adx12()})[_0xbfc9[23]](function(_0x30adx13){return _0x30adx12(_0x30adx13)})})}function isTelephonesLimit(){return compose()[_0xbfc9[33]](function(_0x30adx10,_0x30adx11,_0x30adx12){var _0x30adx14;return License[_0xbfc9[32]]({where:{id:1}})[_0xbfc9[31]](function(_0x30adx25){_0x30adx14= _0x30adx25;return User[_0xbfc9[52]]({where:{role:_0xbfc9[55]}})})[_0xbfc9[49]](function(_0x30adx27){var _0x30adx15=null,_0x30adx24=false;try{if(_0x30adx14[_0xbfc9[24]]){_0x30adx15= decrypt(_0x30adx14[_0xbfc9[24]],_0x30adx14[_0xbfc9[25]]);_0x30adx15= JSON[_0xbfc9[26]](_0x30adx15)}else {_0x30adx15= demoLicense}}catch(err){console[_0xbfc9[29]](_0xbfc9[28],err);_0x30adx15= demoLicense};if(_0x30adx15[_0xbfc9[53]]> _0x30adx27){_0x30adx24= true};if(!_0x30adx24){return _0x30adx11[_0xbfc9[48]](403)[_0xbfc9[47]]({message:_0xbfc9[54]})};return _0x30adx12()})[_0xbfc9[23]](function(_0x30adx13){return _0x30adx12(_0x30adx13)})})}function isValidAgent(){return function(_0x30adx29){var _0x30adx14;var _0x30adx2a=false;if(_0x30adx29[_0xbfc9[56]]=== _0xbfc9[50]|| _0x30adx29[_0xbfc9[56]]=== _0xbfc9[51]|| (_0x30adx29[_0xbfc9[56]]=== _0xbfc9[57]&& _0x30adx29[_0xbfc9[58]])){_0x30adx2a= true};return License[_0xbfc9[32]]({where:{id:1}})[_0xbfc9[31]](function(_0x30adx25){_0x30adx14= _0x30adx25;return User[_0xbfc9[52]]({where:{role:_0xbfc9[57],online:true}})})[_0xbfc9[49]](function(_0x30adx2b){var _0x30adx15=null;try{if(_0x30adx14[_0xbfc9[24]]){_0x30adx15= decrypt(_0x30adx14[_0xbfc9[24]],_0x30adx14[_0xbfc9[25]]);_0x30adx15= JSON[_0xbfc9[26]](_0x30adx15)}else {_0x30adx15= demoLicense}}catch(err){console[_0xbfc9[29]](_0xbfc9[28],err);_0x30adx15= demoLicense};if(_0x30adx15[_0xbfc9[59]]> _0x30adx2b){_0x30adx2a= true};return _0x30adx2a})}}function decrypt(_0x30adx2d,_0x30adx2e){var _0x30adx2f=_0x30adx2e[_0xbfc9[61]](_0xbfc9[60])[4];var _0x30adx30=_0x30adx2e[_0xbfc9[61]](_0xbfc9[60])[0];var _0x30adx31=crypto[_0xbfc9[65]](_0xbfc9[62],util[_0xbfc9[64]](_0xbfc9[63],_0x30adx2f,_0x30adx2e,_0x30adx30));var _0x30adx14=_0x30adx31[_0xbfc9[37]](_0x30adx2d,_0xbfc9[66],_0xbfc9[19]);_0x30adx14+= _0x30adx31[_0xbfc9[67]](_0xbfc9[19]);return _0x30adx14}exports[_0xbfc9[68]]= getUuid;exports[_0xbfc9[69]]= isValidDate;exports[_0xbfc9[70]]= isUsersLimit;exports[_0xbfc9[71]]= isTelephonesLimit;exports[_0xbfc9[72]]= hasChat;exports[_0xbfc9[73]]= hasMail;exports[_0xbfc9[74]]= hasFax;exports[_0xbfc9[75]]= hasOpenchannel;exports[_0xbfc9[76]]= hasSms;exports[_0xbfc9[77]]= hasJscripty;exports[_0xbfc9[78]]= hasCm;exports[_0xbfc9[79]]= hasUpdate;exports[_0xbfc9[80]]= isValidAgent;exports[_0xbfc9[81]]= demoLicense;exports[_0xbfc9[82]]= decrypt
\ No newline at end of file