Built motion from commit 522ec06.|0.0.85
[motion.git] / server / api / report_tree / report_tree.controller.js
1 var _0x16a3=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x52\x65\x70\x6F\x72\x74\x54\x72\x65\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x75\x70\x64\x61\x74\x65","\x62\x6F\x64\x79","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64"];_0x16a3[0];var _=require(_0x16a3[1]);var util=require(_0x16a3[2]);var ReportTree=require(_0x16a3[4])[_0x16a3[3]];exports[_0x16a3[5]]=function(_0xc37fx4,_0xc37fx5){return ReportTree[_0x16a3[11]]()[_0x16a3[10]](function(_0xc37fx7){if(!_0xc37fx7){return _0xc37fx5[_0x16a3[7]](404)};return _0xc37fx5[_0x16a3[9]](200)[_0x16a3[8]](_0xc37fx7)})[_0x16a3[6]](function(_0xc37fx6){return handleError(_0xc37fx5,_0xc37fx6)})};exports[_0x16a3[12]]=function(_0xc37fx4,_0xc37fx5){return ReportTree[_0x16a3[18]](_0xc37fx4[_0x16a3[17]][_0x16a3[16]])[_0x16a3[10]](function(_0xc37fx8){if(!_0xc37fx8){return _0xc37fx5[_0x16a3[7]](404)};var _0xc37fx9=_[_0x16a3[14]](_0xc37fx8,_0xc37fx4[_0x16a3[13]]);return _0xc37fx9[_0x16a3[15]]()})[_0x16a3[10]](function(_0xc37fx8){return _0xc37fx5[_0x16a3[9]](200)[_0x16a3[8]](_0xc37fx8)})[_0x16a3[6]](function(_0xc37fx6){return handleError(_0xc37fx5,_0xc37fx6)})};function handleError(_0xc37fx5,_0xc37fx6){return _0xc37fx5[_0x16a3[9]](500)[_0x16a3[8]](_0xc37fx6)}