Built motion from commit c2984ba.|0.0.114
[motion.git] / server / api / update / update.controller.js
index fd97bfb..d636f52 100644 (file)
@@ -1 +1 @@
-var _0x986f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x70\x61\x74\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x72\x6F\x6F\x74","\x6A\x6F\x69\x6E","\x73\x69\x6D\x70\x6C\x65\x2D\x67\x69\x74","\x55\x70\x64\x61\x74\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x76\x65\x72\x73\x69\x6F\x6E","\x7C","\x73\x70\x6C\x69\x74","\x6D\x65\x73\x73\x61\x67\x65","\x75\x6E\x6B\x6E\x6F\x77\x6E","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x61\x6C\x6C","\x4C\x61\x74\x65\x73\x74\x20\x61\x76\x61\x69\x6C\x61\x62\x6C\x65\x20\x74\x61\x67\x3A\x20\x25\x73","\x6C\x61\x74\x65\x73\x74","\x6C\x6F\x67","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x73\x68\x6F\x77","\x70\x75\x6C\x6C","\x63\x68\x65\x63\x6B\x6F\x75\x74","\x72\x65\x71\x2E\x70\x61\x72\x61\x6D\x73\x2E\x68\x61\x73\x68","\x68\x61\x73\x68","\x70\x61\x72\x61\x6D\x73","\x63\x72\x65\x61\x74\x65","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x69\x64","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79"];_0x986f[0];var _=require(_0x986f[1]);var path=require(_0x986f[2]);var config=require(_0x986f[3]);var Git=require(_0x986f[6])(path[_0x986f[5]](config[_0x986f[4]]));var Update=require(_0x986f[8])[_0x986f[7]];exports[_0x986f[9]]=function(_0xf55ax6,_0xf55ax7){Git[_0x986f[20]](function(_0xf55ax8,_0xf55ax9){if(_0xf55ax8){return handleError(_0xf55ax7,_0xf55ax8)};var _0xf55axa=[];_0xf55ax9[_0x986f[17]][_0x986f[16]](function(_0xf55axb){_0xf55axb[_0x986f[10]]=_0xf55axb[_0x986f[13]][_0x986f[12]](_0x986f[11])[1]||_0x986f[14];_0xf55axb[_0x986f[13]]=_0xf55axb[_0x986f[13]][_0x986f[12]](_0x986f[11])[0];_0xf55axa[_0x986f[15]](_0xf55axb);});console[_0x986f[20]](_0x986f[18],_0xf55ax9[_0x986f[19]]);return _0xf55ax7[_0x986f[22]](200)[_0x986f[21]](_0xf55axa);})};exports[_0x986f[23]]=function(_0xf55ax6,_0xf55ax7){};exports[_0x986f[24]]=function(_0xf55ax6,_0xf55ax7){Git[_0x986f[24]](function(_0xf55ax8,_0xf55axc){if(_0xf55ax8){return handleError(_0xf55ax7,_0xf55ax8)};return _0xf55ax7[_0x986f[22]](201)[_0x986f[21]](_0xf55axc);})};exports[_0x986f[25]]=function(_0xf55ax6,_0xf55ax7){console[_0x986f[20]](_0x986f[26],_0xf55ax6[_0x986f[28]][_0x986f[27]]);Git[_0x986f[25]](_0xf55ax6[_0x986f[28]][_0x986f[27]],function(_0xf55ax8,_0xf55axc){if(_0xf55ax8){return handleError(_0xf55ax7,_0xf55ax8)};return _0xf55ax7[_0x986f[22]](201)[_0x986f[21]](_0xf55axc);});};exports[_0x986f[29]]=function(_0xf55ax6,_0xf55ax7){Update[_0x986f[29]](_0xf55ax6[_0x986f[32]])[_0x986f[31]](function(_0xf55axc){return _0xf55ax7[_0x986f[22]](201)[_0x986f[21]](_0xf55axc)})[_0x986f[30]](function(_0xf55ax8){return handleError(_0xf55ax7,_0xf55ax8)})};exports[_0x986f[33]]=function(_0xf55ax6,_0xf55ax7){if(_0xf55ax6[_0x986f[32]][_0x986f[34]]){delete _0xf55ax6[_0x986f[32]][_0x986f[34]]};Update[_0x986f[38]]({where:{id:_0xf55ax6[_0x986f[28]][_0x986f[34]]}})[_0x986f[31]](function(_0xf55axc){if(!_0xf55axc){return _0xf55ax7[_0x986f[35]](404)};var _0xf55axd=_[_0x986f[36]](_0xf55axc,_0xf55ax6[_0x986f[32]]);_0xf55axd[_0x986f[37]]()[_0x986f[31]](function(){return _0xf55ax7[_0x986f[22]](200)[_0x986f[21]](_0xf55axc)})[_0x986f[30]](function(_0xf55ax8){return handleError(_0xf55ax7,_0xf55ax8)});})[_0x986f[30]](function(_0xf55ax8){return handleError(_0xf55ax7,_0xf55ax8)});};exports[_0x986f[39]]=function(_0xf55ax6,_0xf55ax7){Update[_0x986f[38]]({where:{id:_0xf55ax6[_0x986f[28]][_0x986f[34]]}})[_0x986f[31]](function(_0xf55axc){if(!_0xf55axc){return _0xf55ax7[_0x986f[35]](404)};_0xf55axc[_0x986f[39]]()[_0x986f[31]](function(){return _0xf55ax7[_0x986f[35]](204)})[_0x986f[30]](function(_0xf55ax8){return handleError(_0xf55ax7,_0xf55ax8)});})[_0x986f[30]](function(_0xf55ax8){return handleError(_0xf55ax7,_0xf55ax8)})};function handleError(_0xf55ax7,_0xf55ax8){return _0xf55ax7[_0x986f[22]](500)[_0x986f[21]](_0xf55ax8)}
\ No newline at end of file
+var _0xe91f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x70\x61\x74\x68","\x6D\x6F\x6D\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x72\x6F\x6F\x74","\x6A\x6F\x69\x6E","\x73\x69\x6D\x70\x6C\x65\x2D\x67\x69\x74","\x69\x6E\x64\x65\x78","\x6C\x65\x6E\x67\x74\x68","\x61\x6C\x6C","\x7C","\x73\x70\x6C\x69\x74","\x6D\x65\x73\x73\x61\x67\x65","\x75\x6E\x6B\x6E\x6F\x77\x6E","\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","\x64\x61\x74\x65","\x70\x75\x73\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6C\x6F\x67","\x70\x75\x6C\x6C","\x6F\x72\x69\x67\x69\x6E","\x6D\x61\x73\x74\x65\x72","\x65\x72\x72","\x65\x72\x72\x6F\x72","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73"];_0xe91f[0];var _=require(_0xe91f[1]);var path=require(_0xe91f[2]);var moment=require(_0xe91f[3]);var config=require(_0xe91f[4]);var Git=require(_0xe91f[7])(path[_0xe91f[6]](config[_0xe91f[5]]));exports[_0xe91f[8]]= function(_0x831cx6,_0x831cx7){return Git[_0xe91f[21]](function(_0x831cx8,_0x831cx9){if(_0x831cx8){return handleError(_0x831cx7,_0x831cx8)};var _0x831cxa=[];for(var _0x831cxb=0;_0x831cxb< 10&& _0x831cxb< _0x831cx9[_0xe91f[10]][_0xe91f[9]];_0x831cxb++){_0x831cxa[_0xe91f[18]]({version:_0x831cx9[_0xe91f[10]][_0x831cxb][_0xe91f[13]][_0xe91f[12]](_0xe91f[11])[1]|| _0xe91f[14],message:_0x831cx9[_0xe91f[10]][_0x831cxb][_0xe91f[13]][_0xe91f[12]](_0xe91f[11])[0],createdAt:moment(_0x831cx9[_0xe91f[10]][_0x831cxb][_0xe91f[17]])[_0xe91f[16]](_0xe91f[15])})};return _0x831cx7[_0xe91f[20]](200)[_0xe91f[19]]({rows:_0x831cxa,count:_0x831cxa[_0xe91f[9]]})})};exports[_0xe91f[22]]= function(_0x831cx6,_0x831cx7){Git[_0xe91f[22]](_0xe91f[23],_0xe91f[24],function(_0x831cx8,_0x831cxc){if(_0x831cx8){console[_0xe91f[26]](_0xe91f[25],_0x831cx8)}});return _0x831cx7[_0xe91f[27]](200)[_0xe91f[19]]()};function handleError(_0x831cx7,_0x831cx8){return _0x831cx7[_0xe91f[20]](500)[_0xe91f[19]](_0x831cx8)}
\ No newline at end of file