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