Built motion from commit fd18f58.|0.0.129
[motion.git] / server / api / update / update.controller.js
1 var _0x2f43=["\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"];_0x2f43[0];var _=require(_0x2f43[1]);var path=require(_0x2f43[2]);var moment=require(_0x2f43[3]);var config=require(_0x2f43[4]);var Git=require(_0x2f43[7])(path[_0x2f43[6]](config[_0x2f43[5]]));exports[_0x2f43[8]]= function(_0x766fx6,_0x766fx7){return Git[_0x2f43[21]](function(_0x766fx8,_0x766fx9){if(_0x766fx8){return handleError(_0x766fx7,_0x766fx8)};var _0x766fxa=[];for(var _0x766fxb=0;_0x766fxb< 10&& _0x766fxb< _0x766fx9[_0x2f43[10]][_0x2f43[9]];_0x766fxb++){_0x766fxa[_0x2f43[18]]({version:_0x766fx9[_0x2f43[10]][_0x766fxb][_0x2f43[13]][_0x2f43[12]](_0x2f43[11])[1]|| _0x2f43[14],message:_0x766fx9[_0x2f43[10]][_0x766fxb][_0x2f43[13]][_0x2f43[12]](_0x2f43[11])[0],createdAt:moment(_0x766fx9[_0x2f43[10]][_0x766fxb][_0x2f43[17]])[_0x2f43[16]](_0x2f43[15])})};return _0x766fx7[_0x2f43[20]](200)[_0x2f43[19]]({rows:_0x766fxa,count:_0x766fxa[_0x2f43[9]]})})};exports[_0x2f43[22]]= function(_0x766fx6,_0x766fx7){Git[_0x2f43[22]](_0x2f43[23],_0x2f43[24],function(_0x766fx8,_0x766fxc){if(_0x766fx8){console[_0x2f43[26]](_0x2f43[25],_0x766fx8)}});return _0x766fx7[_0x2f43[27]](200)[_0x2f43[19]]()};function handleError(_0x766fx7,_0x766fx8){return _0x766fx7[_0x2f43[20]](500)[_0x2f43[19]](_0x766fx8)}