Built motion from commit 85fd9a89b.|1.0.34
[motion.git] / server / config / triggers / urlForward.js
1 var _0x59b6=["\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","\x6D\x6F\x6D\x65\x6E\x74","\x6D\x6F\x74\x69\x6F\x6E","\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x71\x75\x65\x72\x79\x73\x74\x72\x69\x6E\x67","\x75\x72\x6C","\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","\x69\x6E\x66\x6F","\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\x65\x62\x75\x67","\x64\x61\x74\x61\x32","\x72\x65\x6E\x64\x65\x72","\x50\x4F\x53\x54","\x70\x61\x72\x73\x65","\x73\x65\x61\x72\x63\x68","\x68\x72\x65\x66","\x70\x61\x74\x68","\x71\x75\x65\x72\x79","\x25\x32\x42","\x72\x65\x70\x6C\x61\x63\x65","\x66\x6F\x72\x6D\x61\x74","\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","\x71\x73","\x62\x6F\x64\x79","\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","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x75\x70\x64\x61\x74\x65\x64\x41\x74","\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","\x5B\x55\x52\x4C\x20\x46\x6F\x72\x77\x61\x72\x64\x5D\x20\x45\x72\x72\x6F\x72\x20\x77\x72\x69\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(_0x59b6[0]);var rp=require(_0x59b6[1]);var Mustache=require(_0x59b6[2]);var moment=require(_0x59b6[3]);var logger=require(_0x59b6[5])(_0x59b6[4]);var querystring=require(_0x59b6[6]);var urlL=require(_0x59b6[7]);function UrlForward(){logger[_0x59b6[9]](_0x59b6[8])}UrlForward[_0x59b6[11]][_0x59b6[10]]= function(_0xc57fx9,_0xc57fxa,_0xc57fxb,_0xc57fxc){switch(_0xc57fxb[_0x59b6[16]]){case _0x59b6[12]:;case _0x59b6[21]:delete _0xc57fxc[_0x59b6[13]];delete _0xc57fxc[_0x59b6[14]];logger[_0x59b6[18]](_0x59b6[15],_0xc57fxb[_0x59b6[16]],_0x59b6[17],_0xc57fxa);httpRequest(_0xc57fx9,_0xc57fxa,_0xc57fxb[_0x59b6[16]],Mustache[_0x59b6[20]](_0xc57fxb[_0x59b6[19]],_0xc57fxc));break;default:}};function getUrl(_0xc57fxe){var _0xc57fxf=_0xc57fxe;var _0xc57fx10=urlL[_0x59b6[22]](_0xc57fxf);delete _0xc57fx10[_0x59b6[23]];delete _0xc57fx10[_0x59b6[24]];delete _0xc57fx10[_0x59b6[25]];_0xc57fx10[_0x59b6[26]]&& (_0xc57fx10[_0x59b6[26]]= querystring[_0x59b6[22]](_0xc57fx10[_0x59b6[26]][_0x59b6[28]](/\+/g,_0x59b6[27])));return urlL[_0x59b6[29]](_0xc57fx10)}function httpRequest(_0xc57fx9,_0xc57fxa,_0xc57fx12,_0xc57fxf){var _0xc57fx13=require(_0x59b6[31])[_0x59b6[30]];var _0xc57fx14={method:_0xc57fx12,uri:getUrl(_0xc57fxf),json:true};if(_0xc57fx12=== _0x59b6[12]){_0xc57fx14[_0x59b6[32]]= _0xc57fx9}else {_0xc57fx14[_0x59b6[33]]= _0xc57fx9};logger[_0x59b6[18]](_0x59b6[34],encodeURI(_0xc57fxf));delete _0xc57fx9[_0x59b6[35]];delete _0xc57fx9[_0x59b6[36]];delete _0xc57fx9[_0x59b6[37]];_0xc57fx9[_0x59b6[38]]= _0x59b6[39];_0xc57fx9[_0x59b6[40]]= _0xc57fxa;_0xc57fx9[_0x59b6[7]]= _0xc57fxf;return rp(_0xc57fx14)[_0x59b6[58]](function(_0xc57fx16){logger[_0x59b6[18]](_0x59b6[55]);logger[_0x59b6[18]](_0x59b6[56],_0xc57fx16);_0xc57fx9[_0x59b6[53]]= _0x59b6[57]})[_0x59b6[48]](function(_0xc57fx15){logger[_0x59b6[42]](_0x59b6[51]);logger[_0x59b6[42]](_0x59b6[52],_0xc57fx15[_0x59b6[47]]);_0xc57fx9[_0x59b6[53]]= _0x59b6[54]})[_0x59b6[50]](function(){return _0xc57fx13[_0x59b6[49]](_0xc57fx9)[_0x59b6[48]](function(_0xc57fx15){logger[_0x59b6[42]](_0x59b6[41]);logger[_0x59b6[42]](_0x59b6[43],_0xc57fx15[_0x59b6[44]]|| _0x59b6[45]);logger[_0x59b6[42]](_0x59b6[46],_0xc57fx15[_0x59b6[47]])})})}module[_0x59b6[59]]= UrlForward