Built motion from commit 3ce3c0a0a.|1.0.27
[motion.git] / server / api / update / update.controller.js
index 238e1d0..5118a90 100644 (file)
@@ -1 +1 @@
-var _0xb6b1=["\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","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\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","\x67\x65\x74\x43\x75\x72\x72\x65\x6E\x74\x56\x65\x72\x73\x69\x6F\x6E","\x6C\x61\x74\x65\x73\x74","\x63\x75\x72\x72\x65\x6E\x74\x56\x65\x72\x73\x69\x6F\x6E","\x20","\x6F\x72\x69\x67\x69\x6E\x2F\x6D\x61\x73\x74\x65\x72","\x6C\x61\x74\x65\x73\x74\x56\x65\x72\x73\x69\x6F\x6E","\x66\x65\x74\x63\x68","\x70\x75\x6C\x6C","\x63\x68\x65\x63\x6B\x6F\x75\x74","\x48\x45\x41\x44","\x2D\x2D","\x73\x63\x72\x69\x70\x74\x73\x2F\x70\x6F\x73\x74\x2D\x6D\x65\x72\x67\x65\x2E\x73\x68","\x55\x70\x64\x61\x74\x65\x20\x72\x65\x73\x75\x6C\x74\x3A\x20","\x64\x65\x62\x75\x67","\x72\x61\x77","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72"];_0xb6b1[0];var _=require(_0xb6b1[1]);var path=require(_0xb6b1[2]);var moment=require(_0xb6b1[3]);var config=require(_0xb6b1[4]);var logger=require(_0xb6b1[6])(_0xb6b1[5]);var Git=require(_0xb6b1[9])(path[_0xb6b1[8]](config[_0xb6b1[7]]));exports[_0xb6b1[10]]= function(_0x9e2bx7,_0x9e2bx8){return Git[_0xb6b1[23]](function(_0x9e2bx9,_0x9e2bxa){if(_0x9e2bx9){return handleError(_0x9e2bx8,_0x9e2bx9)};var _0x9e2bxb=[];for(var _0x9e2bxc=0;_0x9e2bxc< 10&& _0x9e2bxc< _0x9e2bxa[_0xb6b1[12]][_0xb6b1[11]];_0x9e2bxc++){_0x9e2bxb[_0xb6b1[20]]({version:_0x9e2bxa[_0xb6b1[12]][_0x9e2bxc][_0xb6b1[15]][_0xb6b1[14]](_0xb6b1[13])[1]|| _0xb6b1[16],message:_0x9e2bxa[_0xb6b1[12]][_0x9e2bxc][_0xb6b1[15]][_0xb6b1[14]](_0xb6b1[13])[0],createdAt:moment(_0x9e2bxa[_0xb6b1[12]][_0x9e2bxc][_0xb6b1[19]])[_0xb6b1[18]](_0xb6b1[17])})};return _0x9e2bx8[_0xb6b1[22]](200)[_0xb6b1[21]]({rows:_0x9e2bxb,count:_0x9e2bxb[_0xb6b1[11]]})})};exports[_0xb6b1[24]]= function(_0x9e2bx7,_0x9e2bx8){var _0x9e2bxd={};return Git[_0xb6b1[23]](function(_0x9e2bx9,_0x9e2bxa){if(_0x9e2bx9){return handleError(_0x9e2bx8,_0x9e2bx9)};var _0x9e2bxe=_0x9e2bxa[_0xb6b1[25]][_0xb6b1[15]][_0xb6b1[14]](_0xb6b1[13])[1];_0x9e2bxd[_0xb6b1[26]]= {version:_0x9e2bxe?_0x9e2bxe[_0xb6b1[14]](_0xb6b1[27])[0]:_0xb6b1[16],message:_0x9e2bxa[_0xb6b1[25]][_0xb6b1[15]][_0xb6b1[14]](_0xb6b1[13])[0],createdAt:moment(_0x9e2bxa[_0xb6b1[25]][_0xb6b1[19]])[_0xb6b1[18]](_0xb6b1[17])};return Git[_0xb6b1[30]](function(_0x9e2bx9,_0x9e2bxa){if(_0x9e2bx9){return handleError(_0x9e2bx8,_0x9e2bx9)};return Git[_0xb6b1[23]]([_0xb6b1[28]],function(_0x9e2bx9,_0x9e2bxa){if(_0x9e2bx9){return handleError(_0x9e2bx8,_0x9e2bx9)};var _0x9e2bxf=_0x9e2bxa[_0xb6b1[25]][_0xb6b1[15]][_0xb6b1[14]](_0xb6b1[13])[1];_0x9e2bxd[_0xb6b1[29]]= {version:_0x9e2bxf?_0x9e2bxf[_0xb6b1[14]](_0xb6b1[27])[0]:_0xb6b1[16],message:_0x9e2bxa[_0xb6b1[25]][_0xb6b1[15]][_0xb6b1[14]](_0xb6b1[13])[0],createdAt:moment(_0x9e2bxa[_0xb6b1[25]][_0xb6b1[19]])[_0xb6b1[18]](_0xb6b1[17])};return _0x9e2bx8[_0xb6b1[22]](200)[_0xb6b1[21]](_0x9e2bxd)})})})};exports[_0xb6b1[31]]= function(_0x9e2bx7,_0x9e2bx8){return Git[_0xb6b1[38]]([_0xb6b1[32],_0xb6b1[33],_0xb6b1[34],_0xb6b1[35]],function(_0x9e2bx9,_0x9e2bxd){if(_0x9e2bx9){return handleError(_0x9e2bx8,_0x9e2bx9)};return Git[_0xb6b1[31]](function(_0x9e2bx9,_0x9e2bx10){if(_0x9e2bx9){return handleError(_0x9e2bx8,_0x9e2bx9)};logger[_0xb6b1[37]](_0xb6b1[36],_0x9e2bx10);return _0x9e2bx8[_0xb6b1[22]](200)[_0xb6b1[21]](_0x9e2bx10)})})};function handleError(_0x9e2bx8,_0x9e2bx9){logger[_0xb6b1[40]](_0x9e2bx9[_0xb6b1[39]]);return _0x9e2bx8[_0xb6b1[22]](500)[_0xb6b1[21]](_0x9e2bx9)}
\ No newline at end of file
+var _0x1cac=["\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","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\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","\x67\x65\x74\x43\x75\x72\x72\x65\x6E\x74\x56\x65\x72\x73\x69\x6F\x6E","\x6C\x61\x74\x65\x73\x74","\x63\x75\x72\x72\x65\x6E\x74\x56\x65\x72\x73\x69\x6F\x6E","\x20","\x6F\x72\x69\x67\x69\x6E\x2F\x6D\x61\x73\x74\x65\x72","\x6C\x61\x74\x65\x73\x74\x56\x65\x72\x73\x69\x6F\x6E","\x66\x65\x74\x63\x68","\x70\x75\x6C\x6C","\x63\x68\x65\x63\x6B\x6F\x75\x74","\x48\x45\x41\x44","\x2D\x2D","\x73\x63\x72\x69\x70\x74\x73\x2F\x70\x6F\x73\x74\x2D\x6D\x65\x72\x67\x65\x2E\x73\x68","\x55\x70\x64\x61\x74\x65\x20\x72\x65\x73\x75\x6C\x74\x3A\x20","\x64\x65\x62\x75\x67","\x72\x61\x77","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72"];_0x1cac[0];var _=require(_0x1cac[1]);var path=require(_0x1cac[2]);var moment=require(_0x1cac[3]);var config=require(_0x1cac[4]);var logger=require(_0x1cac[6])(_0x1cac[5]);var Git=require(_0x1cac[9])(path[_0x1cac[8]](config[_0x1cac[7]]));exports[_0x1cac[10]]= function(_0x3579x7,_0x3579x8){return Git[_0x1cac[23]](function(_0x3579x9,_0x3579xa){if(_0x3579x9){return handleError(_0x3579x8,_0x3579x9)};var _0x3579xb=[];for(var _0x3579xc=0;_0x3579xc< 10&& _0x3579xc< _0x3579xa[_0x1cac[12]][_0x1cac[11]];_0x3579xc++){_0x3579xb[_0x1cac[20]]({version:_0x3579xa[_0x1cac[12]][_0x3579xc][_0x1cac[15]][_0x1cac[14]](_0x1cac[13])[1]|| _0x1cac[16],message:_0x3579xa[_0x1cac[12]][_0x3579xc][_0x1cac[15]][_0x1cac[14]](_0x1cac[13])[0],createdAt:moment(_0x3579xa[_0x1cac[12]][_0x3579xc][_0x1cac[19]])[_0x1cac[18]](_0x1cac[17])})};return _0x3579x8[_0x1cac[22]](200)[_0x1cac[21]]({rows:_0x3579xb,count:_0x3579xb[_0x1cac[11]]})})};exports[_0x1cac[24]]= function(_0x3579x7,_0x3579x8){var _0x3579xd={};return Git[_0x1cac[23]](function(_0x3579x9,_0x3579xa){if(_0x3579x9){return handleError(_0x3579x8,_0x3579x9)};var _0x3579xe=_0x3579xa[_0x1cac[25]][_0x1cac[15]][_0x1cac[14]](_0x1cac[13])[1];_0x3579xd[_0x1cac[26]]= {version:_0x3579xe?_0x3579xe[_0x1cac[14]](_0x1cac[27])[0]:_0x1cac[16],message:_0x3579xa[_0x1cac[25]][_0x1cac[15]][_0x1cac[14]](_0x1cac[13])[0],createdAt:moment(_0x3579xa[_0x1cac[25]][_0x1cac[19]])[_0x1cac[18]](_0x1cac[17])};return Git[_0x1cac[30]](function(_0x3579x9,_0x3579xa){if(_0x3579x9){return handleError(_0x3579x8,_0x3579x9)};return Git[_0x1cac[23]]([_0x1cac[28]],function(_0x3579x9,_0x3579xa){if(_0x3579x9){return handleError(_0x3579x8,_0x3579x9)};var _0x3579xf=_0x3579xa[_0x1cac[25]][_0x1cac[15]][_0x1cac[14]](_0x1cac[13])[1];_0x3579xd[_0x1cac[29]]= {version:_0x3579xf?_0x3579xf[_0x1cac[14]](_0x1cac[27])[0]:_0x1cac[16],message:_0x3579xa[_0x1cac[25]][_0x1cac[15]][_0x1cac[14]](_0x1cac[13])[0],createdAt:moment(_0x3579xa[_0x1cac[25]][_0x1cac[19]])[_0x1cac[18]](_0x1cac[17])};return _0x3579x8[_0x1cac[22]](200)[_0x1cac[21]](_0x3579xd)})})})};exports[_0x1cac[31]]= function(_0x3579x7,_0x3579x8){return Git[_0x1cac[38]]([_0x1cac[32],_0x1cac[33],_0x1cac[34],_0x1cac[35]],function(_0x3579x9,_0x3579xd){if(_0x3579x9){return handleError(_0x3579x8,_0x3579x9)};return Git[_0x1cac[31]](function(_0x3579x9,_0x3579x10){if(_0x3579x9){return handleError(_0x3579x8,_0x3579x9)};logger[_0x1cac[37]](_0x1cac[36],_0x3579x10);return _0x3579x8[_0x1cac[22]](200)[_0x1cac[21]](_0x3579x10)})})};function handleError(_0x3579x8,_0x3579x9){logger[_0x1cac[40]](_0x3579x9[_0x1cac[39]]);return _0x3579x8[_0x1cac[22]](500)[_0x1cac[21]](_0x3579x9)}
\ No newline at end of file