Built motion from commit fa8c70b.|0.0.144
[motion.git] / server / config / triggers / urlForward.js
1 var _0xc842=["\x6C\x6F\x64\x61\x73\x68","\x72\x65\x71\x75\x65\x73\x74\x2D\x70\x72\x6F\x6D\x69\x73\x65","\x6D\x75\x73\x74\x61\x63\x68\x65","\x54\x72\x69\x67\x67\x65\x72\x20\x55\x52\x4C\x20\x46\x6F\x72\x77\x61\x72\x64\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x73\x65\x6E\x64\x52\x65\x71\x75\x65\x73\x74","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x47\x45\x54","\x65\x76\x74","\x63\x68\x61\x6E\x67\x65\x64","\x5B\x55\x52\x4C\x20\x46\x6F\x72\x77\x61\x72\x64\x5D\x20\x45\x78\x65\x63\x75\x74\x69\x6E\x67\x20\x6D\x65\x74\x68\x6F\x64","\x64\x61\x74\x61\x31","\x66\x6F\x72\x20\x63\x68\x61\x6E\x6E\x65\x6C","\x64\x61\x74\x61\x32","\x72\x65\x6E\x64\x65\x72","\x50\x4F\x53\x54","\x52\x65\x70\x6F\x72\x74\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x5B\x55\x52\x4C\x20\x46\x6F\x72\x77\x61\x72\x64\x5D\x20\x55\x72\x6C\x20\x72\x65\x71\x75\x65\x73\x74\x65\x64","\x69\x64","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x75\x72\x6C\x46\x6F\x72\x77\x61\x72\x64","\x65\x76\x65\x6E\x74\x43\x68\x61\x6E\x6E\x65\x6C","\x75\x72\x6C","\x5B\x55\x52\x4C\x20\x46\x6F\x72\x77\x61\x72\x64\x5D\x20\x45\x72\x72\x6F\x72\x20\x77\x72\x69\x6E\x74\x69\x6E\x67\x20\x52\x65\x70\x6F\x72\x74\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x65\x72\x72\x6F\x72","\x5B\x55\x52\x4C\x20\x46\x6F\x72\x77\x61\x72\x64\x5D\x20\x4D\x65\x73\x73\x61\x67\x65","\x6D\x65\x73\x73\x61\x67\x65","\x4E\x6F\x20\x61\x76\x61\x69\x6C\x61\x62\x6C\x65\x20\x6D\x65\x73\x73\x61\x67\x65","\x5B\x55\x52\x4C\x20\x46\x6F\x72\x77\x61\x72\x64\x5D\x20\x53\x74\x61\x63\x6B","\x73\x74\x61\x63\x6B","\x63\x61\x74\x63\x68","\x63\x72\x65\x61\x74\x65","\x66\x69\x6E\x61\x6C\x6C\x79","\x5B\x55\x52\x4C\x20\x46\x6F\x72\x77\x61\x72\x64\x5D\x20\x52\x65\x71\x75\x65\x73\x74\x20\x66\x61\x69\x6C\x65\x64\x21","\x5B\x55\x52\x4C\x20\x46\x6F\x72\x77\x61\x72\x64\x5D\x20\x45\x72\x72\x6F\x72","\x65\x78\x69\x74\x53\x74\x61\x74\x75\x73","\x66\x61\x69\x6C\x65\x64","\x5B\x55\x52\x4C\x20\x46\x6F\x72\x77\x61\x72\x64\x5D\x20\x52\x65\x71\x75\x65\x73\x74\x20\x65\x78\x69\x74\x20\x77\x69\x74\x68\x20\x73\x75\x63\x63\x65\x73\x73\x21","\x5B\x55\x52\x4C\x20\x46\x6F\x72\x77\x61\x72\x64\x5D\x20\x52\x65\x73\x70\x6F\x6E\x73\x65","\x73\x75\x63\x63\x65\x73\x73","\x74\x68\x65\x6E","\x65\x78\x70\x6F\x72\x74\x73"];var _=require(_0xc842[0]);var rp=require(_0xc842[1]);var Mustache=require(_0xc842[2]);function UrlForward(){console[_0xc842[4]](_0xc842[3])}UrlForward[_0xc842[6]][_0xc842[5]]= function(_0x3d46x5,_0x3d46x6,_0x3d46x7,_0x3d46x8){switch(_0x3d46x7[_0xc842[11]]){case _0xc842[7]:;case _0xc842[15]:delete _0x3d46x8[_0xc842[8]];delete _0x3d46x8[_0xc842[9]];console[_0xc842[4]](_0xc842[10],_0x3d46x7[_0xc842[11]],_0xc842[12],_0x3d46x6);httpRequest(_0x3d46x5,_0x3d46x6,_0x3d46x7[_0xc842[11]],Mustache[_0xc842[14]](_0x3d46x7[_0xc842[13]],_0x3d46x8));break;default:}};function httpRequest(_0x3d46x5,_0x3d46x6,_0x3d46xa,_0x3d46xb){var _0x3d46xc=require(_0xc842[17])[_0xc842[16]];var _0x3d46xd={method:_0x3d46xa,uri:_0x3d46xb,body:_0x3d46x5,json:true};console[_0xc842[4]](_0xc842[18],_0x3d46xb);rp(_0x3d46xd)[_0xc842[41]](function(_0x3d46xf){console[_0xc842[4]](_0xc842[38]);console[_0xc842[4]](_0xc842[39],_0x3d46xf);_0x3d46x5[_0xc842[36]]= _0xc842[40]})[_0xc842[31]](function(_0x3d46xe){console[_0xc842[25]](_0xc842[34]);console[_0xc842[25]](_0xc842[35],_0x3d46xe);_0x3d46x5[_0xc842[36]]= _0xc842[37]})[_0xc842[33]](function(){delete _0x3d46x5[_0xc842[19]];_0x3d46x5[_0xc842[20]]= _0xc842[21];_0x3d46x5[_0xc842[22]]= _0x3d46x6;_0x3d46x5[_0xc842[23]]= _0x3d46xb;return _0x3d46xc[_0xc842[32]](_0x3d46x5)[_0xc842[31]](function(_0x3d46xe){console[_0xc842[25]](_0xc842[24]);console[_0xc842[25]](_0xc842[26],_0x3d46xe[_0xc842[27]]|| _0xc842[28]);console[_0xc842[25]](_0xc842[29],_0x3d46xe[_0xc842[30]])})})}module[_0xc842[42]]= UrlForward