1 var _0x7f63=["\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","\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","\x6D\x61\x63\x68\x69\x6E\x65\x2D\x69\x64","\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","\x63\x68\x61\x74","\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","\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"];_0x7f63[0];var compose=require(_0x7f63[1]);var moment=require(_0x7f63[2]);var crypto=require(_0x7f63[3]);var util=require(_0x7f63[4]);var os=require(_0x7f63[5]);var exec=require(_0x7f63[7])[_0x7f63[6]];var config=require(_0x7f63[8]);var User=require(_0x7f63[10])[_0x7f63[9]];var Telephone=require(_0x7f63[10])[_0x7f63[11]];var Settings=require(_0x7f63[10])[_0x7f63[12]];var demoLicense={users:1,agents:1,telephones:0,chat:false,mail:false,fax:false,jscripty:false,description:_0x7f63[13]};function getUuid(){switch(os[_0x7f63[21]]()){case _0x7f63[19]:return exec(_0x7f63[17],{encoding:_0x7f63[18]})[_0x7f63[16]](_0x7f63[14],_0x7f63[15]);default:return require(_0x7f63[20])(true)}}function hasChat(){return compose()[_0x7f63[31]](function(_0x472dxe,_0x472dxf,_0x472dx10){return Settings[_0x7f63[30]]({where:{id:1}})[_0x7f63[29]](function(_0x472dx12){var _0x472dx13=null,_0x472dx14=false;try{if(_0x472dx12[_0x7f63[23]]){_0x472dx13= decrypt(_0x472dx12[_0x7f63[23]]);_0x472dx13= JSON[_0x7f63[24]](_0x472dx13)}else {_0x472dx13= demoLicense}}catch(err){console[_0x7f63[26]](_0x7f63[25],err);_0x472dx13= demoLicense};_0x472dx14= _0x472dx13[_0x7f63[27]];if(!_0x472dx14){return _0x472dxf[_0x7f63[28]](403)};return _0x472dx10()})[_0x7f63[22]](function(_0x472dx11){return _0x472dx10(_0x472dx11)})})}function hasSms(){return compose()[_0x7f63[31]](function(_0x472dxe,_0x472dxf,_0x472dx10){return Settings[_0x7f63[30]]({where:{id:1}})[_0x7f63[29]](function(_0x472dx12){var _0x472dx13=null,_0x472dx16=false;try{if(_0x472dx12[_0x7f63[23]]){_0x472dx13= decrypt(_0x472dx12[_0x7f63[23]]);_0x472dx13= JSON[_0x7f63[24]](_0x472dx13)}else {_0x472dx13= demoLicense}}catch(err){console[_0x7f63[26]](_0x7f63[25],err);_0x472dx13= demoLicense};_0x472dx16= _0x472dx13[_0x7f63[32]];if(!_0x472dx16){return _0x472dxf[_0x7f63[28]](403)};return _0x472dx10()})[_0x7f63[22]](function(_0x472dx11){return _0x472dx10(_0x472dx11)})})}function hasCm(){return compose()[_0x7f63[31]](function(_0x472dxe,_0x472dxf,_0x472dx10){return Settings[_0x7f63[30]]({where:{id:1}})[_0x7f63[29]](function(_0x472dx12){var _0x472dx13=null,_0x472dx18=false;try{if(_0x472dx12[_0x7f63[23]]){_0x472dx13= decrypt(_0x472dx12[_0x7f63[23]]);_0x472dx13= JSON[_0x7f63[24]](_0x472dx13)}else {_0x472dx13= demoLicense}}catch(err){console[_0x7f63[26]](_0x7f63[25],err);_0x472dx13= demoLicense};_0x472dx18= _0x472dx13[_0x7f63[33]];if(!_0x472dx18){return _0x472dxf[_0x7f63[28]](403)};return _0x472dx10()})[_0x7f63[22]](function(_0x472dx11){return _0x472dx10(_0x472dx11)})})}function hasUpdate(){return compose()[_0x7f63[31]](function(_0x472dxe,_0x472dxf,_0x472dx10){return Settings[_0x7f63[30]]({where:{id:1}})[_0x7f63[29]](function(_0x472dx12){var _0x472dx13=null,_0x472dx1a=false;try{if(_0x472dx12[_0x7f63[23]]){_0x472dx13= decrypt(_0x472dx12[_0x7f63[23]]);_0x472dx13= JSON[_0x7f63[24]](_0x472dx13)}else {_0x472dx13= demoLicense}}catch(err){console[_0x7f63[26]](_0x7f63[25],err);_0x472dx13= demoLicense};_0x472dx1a= _0x472dx13[_0x7f63[34]];if(!_0x472dx1a){return _0x472dxf[_0x7f63[28]](403)};return _0x472dx10()})[_0x7f63[22]](function(_0x472dx11){return _0x472dx10(_0x472dx11)})})}function hasMail(){return compose()[_0x7f63[31]](function(_0x472dxe,_0x472dxf,_0x472dx10){return Settings[_0x7f63[30]]({where:{id:1}})[_0x7f63[29]](function(_0x472dx12){var _0x472dx13=null,_0x472dx1c=false;try{if(_0x472dx12[_0x7f63[23]]){_0x472dx13= decrypt(_0x472dx12[_0x7f63[23]]);_0x472dx13= JSON[_0x7f63[24]](_0x472dx13)}else {_0x472dx13= demoLicense}}catch(err){console[_0x7f63[26]](_0x7f63[25],err);_0x472dx13= demoLicense};_0x472dx1c= _0x472dx13[_0x7f63[35]];if(!_0x472dx1c){return _0x472dxf[_0x7f63[28]](403)};return _0x472dx10()})[_0x7f63[22]](function(_0x472dx11){return _0x472dx10(_0x472dx11)})})}function hasFax(){return compose()[_0x7f63[31]](function(_0x472dxe,_0x472dxf,_0x472dx10){return Settings[_0x7f63[30]]({where:{id:1}})[_0x7f63[29]](function(_0x472dx12){var _0x472dx13=null,_0x472dx1e=false;try{if(_0x472dx12[_0x7f63[23]]){_0x472dx13= decrypt(_0x472dx12[_0x7f63[23]]);_0x472dx13= JSON[_0x7f63[24]](_0x472dx13)}else {_0x472dx13= demoLicense}}catch(err){console[_0x7f63[26]](_0x7f63[25],err);_0x472dx13= demoLicense};_0x472dx1e= _0x472dx13[_0x7f63[36]];if(!_0x472dx1e){return _0x472dxf[_0x7f63[28]](403)};return _0x472dx10()})[_0x7f63[22]](function(_0x472dx11){return _0x472dx10(_0x472dx11)})})}function hasJscripty(){return compose()[_0x7f63[31]](function(_0x472dxe,_0x472dxf,_0x472dx10){return Settings[_0x7f63[30]]({where:{id:1}})[_0x7f63[29]](function(_0x472dx12){var _0x472dx13=null,_0x472dx20=false;try{if(_0x472dx12[_0x7f63[23]]){_0x472dx13= decrypt(_0x472dx12[_0x7f63[23]]);_0x472dx13= JSON[_0x7f63[24]](_0x472dx13)}else {_0x472dx13= demoLicense}}catch(err){console[_0x7f63[26]](_0x7f63[25],err);_0x472dx13= demoLicense};_0x472dx20= _0x472dx13[_0x7f63[37]];if(!_0x472dx20){return _0x472dxf[_0x7f63[28]](403)};return _0x472dx10()})[_0x7f63[22]](function(_0x472dx11){return _0x472dx10(_0x472dx11)})})}function hasCustom(){return compose()[_0x7f63[31]](function(_0x472dxe,_0x472dxf,_0x472dx10){return Settings[_0x7f63[30]]({where:{id:1}})[_0x7f63[29]](function(_0x472dx12){var _0x472dx13=null,_0x472dx22=false;try{if(_0x472dx12[_0x7f63[23]]){_0x472dx13= decrypt(_0x472dx12[_0x7f63[23]]);_0x472dx13= JSON[_0x7f63[24]](_0x472dx13)}else {_0x472dx13= demoLicense}}catch(err){console[_0x7f63[26]](_0x7f63[25],err);_0x472dx13= demoLicense};_0x472dx22= _0x472dx13[_0x7f63[38]];if(!_0x472dx22){return _0x472dxf[_0x7f63[28]](403)};return _0x472dx10()})[_0x7f63[22]](function(_0x472dx11){return _0x472dx10(_0x472dx11)})})}function hasOpenchannel(){return compose()[_0x7f63[31]](function(_0x472dxe,_0x472dxf,_0x472dx10){return Settings[_0x7f63[30]]({where:{id:1}})[_0x7f63[29]](function(_0x472dx12){var _0x472dx13=null,_0x472dx24=false;try{if(_0x472dx12[_0x7f63[23]]){_0x472dx13= decrypt(_0x472dx12[_0x7f63[23]]);_0x472dx13= JSON[_0x7f63[24]](_0x472dx13)}else {_0x472dx13= demoLicense}}catch(err){console[_0x7f63[26]](_0x7f63[25],err);_0x472dx13= demoLicense};_0x472dx24= _0x472dx13[_0x7f63[39]];if(!_0x472dx24){return _0x472dxf[_0x7f63[28]](403)};return _0x472dx10()})[_0x7f63[22]](function(_0x472dx11){return _0x472dx10(_0x472dx11)})})}function isValidDate(){return compose()[_0x7f63[31]](function(_0x472dxe,_0x472dxf,_0x472dx10){return Settings[_0x7f63[30]]({where:{id:1}})[_0x7f63[29]](function(_0x472dx12){var _0x472dx13=null,_0x472dx26=false;try{if(_0x472dx12[_0x7f63[23]]){_0x472dx13= decrypt(_0x472dx12[_0x7f63[23]]);_0x472dx13= JSON[_0x7f63[24]](_0x472dx13);if(moment()[_0x7f63[41]](_0x472dx13[_0x7f63[40]])){_0x472dx26= true}}}catch(err){console[_0x7f63[26]](_0x7f63[25],err)};if(!_0x472dx26){return _0x472dxf[_0x7f63[28]](403)};return _0x472dx10()})[_0x7f63[22]](function(_0x472dx11){return _0x472dx10(_0x472dx11)})})}function isUsersLimit(){return compose()[_0x7f63[31]](function(_0x472dxe,_0x472dxf,_0x472dx10){var _0x472dx28;return Settings[_0x7f63[30]]({where:{id:1}})[_0x7f63[29]](function(_0x472dx12){_0x472dx28= _0x472dx12;return User[_0x7f63[49]]({where:{$or:[{role:_0x7f63[47]},{role:_0x7f63[48]}]}})})[_0x7f63[46]](function(_0x472dx29){var _0x472dx13=null,_0x472dx2a=false;try{if(_0x472dx28[_0x7f63[23]]){_0x472dx13= decrypt(_0x472dx28[_0x7f63[23]]);_0x472dx13= JSON[_0x7f63[24]](_0x472dx13)}else {_0x472dx13= demoLicense}}catch(err){console[_0x7f63[26]](_0x7f63[25],err);_0x472dx13= demoLicense};if(_0x472dx13[_0x7f63[42]]> _0x472dx29){_0x472dx2a= true};if(!_0x472dx2a){return _0x472dxf[_0x7f63[45]](403)[_0x7f63[44]]({message:_0x7f63[43]})};return _0x472dx10()})[_0x7f63[22]](function(_0x472dx11){return _0x472dx10(_0x472dx11)})})}function isTelephonesLimit(){return compose()[_0x7f63[31]](function(_0x472dxe,_0x472dxf,_0x472dx10){var _0x472dx28;return Settings[_0x7f63[30]]({where:{id:1}})[_0x7f63[29]](function(_0x472dx12){_0x472dx28= _0x472dx12;return User[_0x7f63[49]]({where:{role:_0x7f63[52]}})})[_0x7f63[46]](function(_0x472dx2c){var _0x472dx13=null,_0x472dx2a=false;try{if(_0x472dx28[_0x7f63[23]]){_0x472dx13= decrypt(_0x472dx28[_0x7f63[23]]);_0x472dx13= JSON[_0x7f63[24]](_0x472dx13)}else {_0x472dx13= demoLicense}}catch(err){console[_0x7f63[26]](_0x7f63[25],err);_0x472dx13= demoLicense};if(_0x472dx13[_0x7f63[50]]> _0x472dx2c){_0x472dx2a= true};if(!_0x472dx2a){return _0x472dxf[_0x7f63[45]](403)[_0x7f63[44]]({message:_0x7f63[51]})};return _0x472dx10()})[_0x7f63[22]](function(_0x472dx11){return _0x472dx10(_0x472dx11)})})}function isValidAgent(){return function(_0x472dx2e){var _0x472dx28;var _0x472dx2f=false;if(_0x472dx2e[_0x7f63[53]]=== _0x7f63[47]|| _0x472dx2e[_0x7f63[53]]=== _0x7f63[48]|| (_0x472dx2e[_0x7f63[53]]=== _0x7f63[54]&& _0x472dx2e[_0x7f63[55]])){_0x472dx2f= true};return Settings[_0x7f63[30]]({where:{id:1}})[_0x7f63[29]](function(_0x472dx12){_0x472dx28= _0x472dx12;return User[_0x7f63[49]]({where:{role:_0x7f63[54],online:true}})})[_0x7f63[46]](function(_0x472dx30){var _0x472dx13=null;try{if(_0x472dx28[_0x7f63[23]]){_0x472dx13= decrypt(_0x472dx28[_0x7f63[23]]);_0x472dx13= JSON[_0x7f63[24]](_0x472dx13)}else {_0x472dx13= demoLicense}}catch(err){console[_0x7f63[26]](_0x7f63[25],err);_0x472dx13= demoLicense};if(_0x472dx13[_0x7f63[56]]> _0x472dx30){_0x472dx2f= true};return _0x472dx2f})}}function decrypt(_0x472dx32){var _0x472dx33=getUuid();var _0x472dx34=_0x472dx33[_0x7f63[58]](_0x7f63[57])[4];var _0x472dx35=_0x472dx33[_0x7f63[58]](_0x7f63[57])[0];var _0x472dx36=crypto[_0x7f63[62]](_0x7f63[59],util[_0x7f63[61]](_0x7f63[60],_0x472dx34,_0x472dx33,_0x472dx35));var _0x472dx13=_0x472dx36[_0x7f63[34]](_0x472dx32,_0x7f63[63],_0x7f63[18]);_0x472dx13+= _0x472dx36[_0x7f63[64]](_0x7f63[18]);return _0x472dx13}exports[_0x7f63[65]]= getUuid;exports[_0x7f63[66]]= isValidDate;exports[_0x7f63[67]]= isUsersLimit;exports[_0x7f63[68]]= isTelephonesLimit;exports[_0x7f63[69]]= hasChat;exports[_0x7f63[70]]= hasMail;exports[_0x7f63[71]]= hasFax;exports[_0x7f63[72]]= hasOpenchannel;exports[_0x7f63[73]]= hasSms;exports[_0x7f63[74]]= hasJscripty;exports[_0x7f63[75]]= hasCm;exports[_0x7f63[76]]= hasUpdate;exports[_0x7f63[77]]= isValidAgent;exports[_0x7f63[78]]= demoLicense;exports[_0x7f63[79]]= decrypt