Built motion from commit b7ac9c5.|0.0.123
[motion.git] / server / config / sms / skebby.js
index 67eb456..0d5bd1b 100644 (file)
@@ -1 +1 @@
-var _0xed32=["\x74\x65\x78\x74","\x73\x65\x6E\x64\x65\x72\x5F\x6E\x75\x6D\x62\x65\x72","","\x73\x65\x6E\x64\x65\x72\x5F\x73\x74\x72\x69\x6E\x67","\x6D\x65\x74\x68\x6F\x64","\x72\x65\x63\x69\x70\x69\x65\x6E\x74\x73","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x4E\x6F\x20\x4D\x65\x74\x68\x6F\x64\x21","\x73\x65\x6E\x64\x5F\x73\x6D\x73\x5F\x63\x6C\x61\x73\x73\x69\x63","\x63\x6C\x61\x73\x73\x69\x63","\x73\x65\x6E\x64\x5F\x73\x6D\x73\x5F\x63\x6C\x61\x73\x73\x69\x63\x5F\x72\x65\x70\x6F\x72\x74","\x72\x65\x70\x6F\x72\x74","\x62\x61\x73\x69\x63","\x73\x65\x6E\x64\x5F\x73\x6D\x73\x5F\x62\x61\x73\x69\x63","\x74\x65\x73\x74","\x6C\x65\x6E\x67\x74\x68","\x4E\x6F\x20\x72\x65\x63\x69\x70\x69\x65\x6E\x74\x21","\x4E\x6F\x20\x73\x65\x6E\x64\x65\x72\x21","\x4E\x6F\x20\x74\x65\x78\x74\x21","\x55\x54\x46\x2D\x38","\x74\x65\x73\x74\x5F","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x2F\x61\x70\x69\x2F\x73\x65\x6E\x64\x2F\x73\x6D\x73\x65\x61\x73\x79\x2F\x61\x64\x76\x61\x6E\x63\x65\x64\x2F\x68\x74\x74\x70\x2E\x70\x68\x70","\x67\x61\x74\x65\x77\x61\x79\x2E\x73\x6B\x65\x62\x62\x79\x2E\x69\x74","\x50\x4F\x53\x54","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x78\x2D\x77\x77\x77\x2D\x66\x6F\x72\x6D\x2D\x75\x72\x6C\x65\x6E\x63\x6F\x64\x65\x64","\x75\x74\x66\x38","\x64\x61\x74\x61","\x6F\x6E","\x65\x6E\x64","\x70\x61\x72\x73\x65","\x73\x74\x61\x74\x75\x73","\x73\x75\x63\x63\x65\x73\x73","\x72\x65\x71\x75\x65\x73\x74","\x65\x72\x72\x6F\x72","\x65\x78\x70\x6F\x72\x74\x73"];var skebbyMessage=function(_0xbbf0x2,_0xbbf0x3,_0xbbf0x4){var _0xbbf0x5=_0xbbf0x2[_0xed32[0]];var _0xbbf0x6=_0xbbf0x2[_0xed32[1]]||_0xed32[2];var _0xbbf0x7=_0xbbf0x2[_0xed32[3]]||_0xed32[2];var _0xbbf0x8=_0xbbf0x2[_0xed32[4]];var _0xbbf0x9=_0xbbf0x2[_0xed32[5]]||[];var _0xbbf0xa=_0xbbf0x2[_0xed32[6]];var _0xbbf0xb=_0xbbf0x2[_0xed32[7]];if(!_0xbbf0x8){_0xbbf0x4(_0xed32[8]);return};switch(_0xbbf0x8){case _0xed32[10]:_0xbbf0x8=_0xed32[9];break;case _0xed32[12]:_0xbbf0x8=_0xed32[11];break;case _0xed32[13]:;default:_0xbbf0x8=_0xed32[14]};var _0xbbf0xc=_0xbbf0x2[_0xed32[15]]||false;if(_0xbbf0x9[_0xed32[16]]==0){_0xbbf0x4(_0xed32[17]);return};if(!_0xbbf0x7&& !_0xbbf0x6){_0xbbf0x4(_0xed32[18]);return};if(!_0xbbf0x5){_0xbbf0x4(_0xed32[19]);return};var _0xbbf0xd={method:_0xbbf0x8,username:_0xbbf0xa,password:_0xbbf0xb,"\x72\x65\x63\x69\x70\x69\x65\x6E\x74\x73\x5B\x5D":_0xbbf0x9,text:_0xbbf0x5,charset:_0xed32[20]};if(_0xbbf0x6){_0xbbf0xd[_0xed32[1]]=_0xbbf0x6}else {if(_0xbbf0x7){_0xbbf0xd[_0xed32[3]]=_0xbbf0x7}};if(_0xbbf0xc){_0xbbf0xd[_0xed32[4]]=_0xed32[21]+_0xbbf0xd[_0xed32[4]]};var _0xbbf0xe=false;var _0xbbf0xf=qs[_0xed32[22]](_0xbbf0xd);var _0xbbf0x10=https[_0xed32[34]]({port:443,path:_0xed32[23],host:_0xed32[24],method:_0xed32[25],headers:{"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0xed32[26],"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x4C\x65\x6E\x67\x74\x68":_0xbbf0xf[_0xed32[16]],"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x45\x6E\x63\x6F\x64\x69\x6E\x67":_0xed32[27]}},function(_0xbbf0x11){var _0xbbf0x12=_0xed32[2];_0xbbf0x11[_0xed32[29]](_0xed32[28],function(_0xbbf0xf){_0xbbf0x12+=_0xbbf0xf});_0xbbf0x11[_0xed32[29]](_0xed32[30],function(){if(!_0xbbf0xe){var _0xbbf0x13=qs[_0xed32[31]](_0xbbf0x12);if(_0xbbf0x13[_0xed32[32]]==_0xed32[33]){_0xbbf0x3({data:_0xbbf0x13})}else {_0xbbf0x4(_0xbbf0x13)};_0xbbf0xe=true}})});_0xbbf0x10[_0xed32[30]](_0xbbf0xf);_0xbbf0x10[_0xed32[29]](_0xed32[35],function(_0xbbf0x14){if(!_0xbbf0xe){_0xbbf0x4(_0xbbf0x14);_0xbbf0xe=true}})};var sendMessage=function(_0xbbf0x16,_0xbbf0x17){var _0xbbf0x18=_0xbbf0x17[_0xed32[6]];return _0xbbf0x18};module[_0xed32[36]]=sendMessage
\ No newline at end of file
+var _0x2d01=["\x71\x75\x65\x72\x79\x73\x74\x72\x69\x6E\x67","\x68\x74\x74\x70\x73","\x72\x65\x71\x75\x65\x73\x74\x2D\x70\x72\x6F\x6D\x69\x73\x65","\x62\x6C\x75\x65\x62\x69\x72\x64","\x74\x65\x78\x74","\x73\x65\x6E\x64\x65\x72\x5F\x6E\x75\x6D\x62\x65\x72","","\x73\x65\x6E\x64\x65\x72\x5F\x73\x74\x72\x69\x6E\x67","\x6D\x65\x74\x68\x6F\x64","\x72\x65\x63\x69\x70\x69\x65\x6E\x74\x73","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x73\x65\x6E\x64\x5F\x73\x6D\x73\x5F\x63\x6C\x61\x73\x73\x69\x63","\x63\x6C\x61\x73\x73\x69\x63","\x73\x65\x6E\x64\x5F\x73\x6D\x73\x5F\x63\x6C\x61\x73\x73\x69\x63\x5F\x72\x65\x70\x6F\x72\x74","\x63\x6C\x61\x73\x73\x69\x63\x2B","\x74\x65\x73\x74\x5F\x73\x65\x6E\x64\x5F\x73\x6D\x73\x5F\x62\x61\x73\x69\x63","\x74\x65\x73\x74","\x62\x61\x73\x69\x63","\x73\x65\x6E\x64\x5F\x73\x6D\x73\x5F\x62\x61\x73\x69\x63","\x55\x54\x46\x2D\x38","\x74\x65\x73\x74\x5F","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x2F\x61\x70\x69\x2F\x73\x65\x6E\x64\x2F\x73\x6D\x73\x65\x61\x73\x79\x2F\x61\x64\x76\x61\x6E\x63\x65\x64\x2F\x68\x74\x74\x70\x2E\x70\x68\x70","\x67\x61\x74\x65\x77\x61\x79\x2E\x73\x6B\x65\x62\x62\x79\x2E\x69\x74","\x50\x4F\x53\x54","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x78\x2D\x77\x77\x77\x2D\x66\x6F\x72\x6D\x2D\x75\x72\x6C\x65\x6E\x63\x6F\x64\x65\x64","\x6C\x65\x6E\x67\x74\x68","\x75\x74\x66\x38","\x64\x61\x74\x61","\x6F\x6E","\x65\x6E\x64","\x70\x61\x72\x73\x65","\x73\x74\x61\x74\x75\x73","\x73\x75\x63\x63\x65\x73\x73","\x72\x65\x71\x75\x65\x73\x74","\x65\x72\x72\x6F\x72","\x73\x6D\x73\x74\x79\x70\x65","\x66\x72\x6F\x6D","\x2B","\x72\x65\x70\x6C\x61\x63\x65","\x74\x6F","\x62\x6F\x64\x79","\x70\x72\x6F\x6D\x69\x73\x69\x66\x79","\x73\x65\x6E\x64\x4D\x65\x73\x73\x61\x67\x65","\x65\x78\x70\x6F\x72\x74\x73"];var qs=require(_0x2d01[0]);var https=require(_0x2d01[1]);var rp=require(_0x2d01[2]);var Promise=require(_0x2d01[3]);var skebbyMessage=function(_0x5c5bx6,_0x5c5bx7){var _0x5c5bx8=_0x5c5bx6[_0x2d01[4]];var _0x5c5bx9=_0x5c5bx6[_0x2d01[5]]|| _0x2d01[6];var _0x5c5bxa=_0x5c5bx6[_0x2d01[7]]|| _0x2d01[6];var _0x5c5bxb=_0x5c5bx6[_0x2d01[8]];var _0x5c5bxc=_0x5c5bx6[_0x2d01[9]]|| [];var _0x5c5bxd=_0x5c5bx6[_0x2d01[10]];var _0x5c5bxe=_0x5c5bx6[_0x2d01[11]];switch(_0x5c5bxb){case _0x2d01[13]:_0x5c5bxb= _0x2d01[12];break;case _0x2d01[15]:_0x5c5bxb= _0x2d01[14];break;case _0x2d01[17]:_0x5c5bxb= _0x2d01[16];break;case _0x2d01[18]:;default:_0x5c5bxb= _0x2d01[19]};var _0x5c5bxf=_0x5c5bx6[_0x2d01[17]]|| false;var _0x5c5bx10={method:_0x5c5bxb,username:_0x5c5bxd,password:_0x5c5bxe,"\x72\x65\x63\x69\x70\x69\x65\x6E\x74\x73\x5B\x5D":_0x5c5bxc,text:_0x5c5bx8,charset:_0x2d01[20]};if(_0x5c5bx9){_0x5c5bx10[_0x2d01[5]]= _0x5c5bx9}else {if(_0x5c5bxa){_0x5c5bx10[_0x2d01[7]]= _0x5c5bxa}};if(_0x5c5bxf){_0x5c5bx10[_0x2d01[8]]= _0x2d01[21]+ _0x5c5bx10[_0x2d01[8]]};var _0x5c5bx11=false;var _0x5c5bx12=qs[_0x2d01[22]](_0x5c5bx10);var _0x5c5bx13=https[_0x2d01[35]]({port:443,path:_0x2d01[23],host:_0x2d01[24],method:_0x2d01[25],headers:{"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x2d01[26],"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x4C\x65\x6E\x67\x74\x68":_0x5c5bx12[_0x2d01[27]],"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x45\x6E\x63\x6F\x64\x69\x6E\x67":_0x2d01[28]}},function(_0x5c5bx14){var _0x5c5bx15=_0x2d01[6];_0x5c5bx14[_0x2d01[30]](_0x2d01[29],function(_0x5c5bx12){_0x5c5bx15+= _0x5c5bx12});_0x5c5bx14[_0x2d01[30]](_0x2d01[31],function(){if(!_0x5c5bx11){var _0x5c5bx16=qs[_0x2d01[32]](_0x5c5bx15);if(_0x5c5bx16[_0x2d01[33]]== _0x2d01[34]){_0x5c5bx7(null,{data:_0x5c5bx16})}else {_0x5c5bx7(_0x5c5bx16)};_0x5c5bx11= true}})});_0x5c5bx13[_0x2d01[31]](_0x5c5bx12);_0x5c5bx13[_0x2d01[30]](_0x2d01[36],function(_0x5c5bx17){if(!_0x5c5bx11){_0x5c5bx7(_0x5c5bx17);_0x5c5bx11= true}})};var sendMessage=function(_0x5c5bx19,_0x5c5bx1a){var _0x5c5bx1b={method:_0x5c5bx1a[_0x2d01[37]],username:_0x5c5bx1a[_0x2d01[10]],password:_0x5c5bx1a[_0x2d01[11]],sender_number:/^[\+][0-9]+$/[_0x2d01[17]](_0x5c5bx19[_0x2d01[38]])?_0x5c5bx19[_0x2d01[38]][_0x2d01[40]](_0x2d01[39],_0x2d01[6]):_0x5c5bx19[_0x2d01[38]],recipients:/^[\+][0-9]+$/[_0x2d01[17]](_0x5c5bx19[_0x2d01[41]])?_0x5c5bx19[_0x2d01[41]][_0x2d01[40]](_0x2d01[39],_0x2d01[6]):_0x5c5bx19[_0x2d01[41]],text:_0x5c5bx19[_0x2d01[42]]};var _0x5c5bx1c=Promise[_0x2d01[43]](skebbyMessage);return _0x5c5bx1c(_0x5c5bx1b)};module[_0x2d01[45]][_0x2d01[44]]= sendMessage
\ No newline at end of file