4e9be2934209f5200fdef38aee1f31b37872da6e
[motion.git] / server / config / ami / user.js
1 var _0xfb50=["\x6D\x6F\x6D\x65\x6E\x74","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x51\x75\x65\x75\x65\x4D\x65\x6D\x62\x65\x72\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x73\x74\x61\x74\x65\x55\x70\x64\x61\x74\x65","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x73\x74\x61\x74\x65","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x53\x49\x50\x2F","","\x72\x65\x70\x6C\x61\x63\x65","\x64\x65\x76\x69\x63\x65","\x71\x75\x65\x75\x65\x53\x74\x61\x74\x75\x73\x55\x70\x64\x61\x74\x65","\x71\x75\x65\x75\x65","\x65\x76\x65\x6E\x74","\x51\x75\x65\x75\x65\x43\x61\x6C\x6C\x65\x72\x41\x62\x61\x6E\x64\x6F\x6E","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x5B\x75\x73\x65\x72\x5D\x20\x73\x74\x61\x74\x75\x73\x20\x75\x70\x64\x61\x74\x65\x20\x65\x72\x72\x6F\x72\x3A\x20","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x5B\x75\x73\x65\x72\x5D\x20\x73\x74\x61\x74\x75\x73\x20\x75\x70\x64\x61\x74\x65","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];var moment=require(_0xfb50[0]);var UserModel=require(_0xfb50[2])[_0xfb50[1]];function User(){console[_0xfb50[4]](_0xfb50[3])}User[_0xfb50[6]][_0xfb50[5]]=function(_0xb42ax4){var _0xb42ax5={status:_0xb42ax4[_0xfb50[7]],statusAt:moment()[_0xfb50[9]](_0xfb50[8])};var _0xb42ax6={name:_0xb42ax4[_0xfb50[13]][_0xfb50[12]](_0xfb50[10],_0xfb50[11])};return findAndUpdate(_0xb42ax5,_0xb42ax6)};User[_0xfb50[6]][_0xfb50[14]]=function(_0xb42ax7,_0xb42ax4){var _0xb42ax5={queueStatus:_0xb42ax7,queueStatusAt:moment()[_0xfb50[9]](_0xfb50[8]),lastQueue:_0xb42ax4[_0xfb50[15]]};var _0xb42ax6=(_0xb42ax4[_0xfb50[16]]===_0xfb50[17])?{lastQueue:_0xb42ax4[_0xfb50[15]]}:{name:_0xb42ax4[_0xfb50[18]]};return findAndUpdate(_0xb42ax5,_0xb42ax6)};function findAndUpdate(_0xb42ax5,_0xb42ax6){return UserModel[_0xfb50[24]](_0xb42ax5,{where:_0xb42ax6,individualHooks:true})[_0xfb50[23]](function(_0xb42axa){console[_0xfb50[4]](_0xfb50[22])})[_0xfb50[21]](function(_0xb42ax9){console[_0xfb50[20]](_0xfb50[19]+_0xb42ax9)})}module[_0xfb50[25]]=User