Built motion from commit 76c0fab.|0.0.109
[motion.git] / server / api / setting / setting.controller.js
index e42731d..bd9e487 100644 (file)
@@ -1 +1 @@
-var _0xb82c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x53\x65\x74\x74\x69\x6E\x67\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x55\x73\x65\x72","\x56\x6F\x69\x63\x65\x56\x6F\x69\x63\x65\x6D\x61\x69\x6C","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x67\x65\x74\x49\x6E\x74\x65\x72\x6E\x61\x6C","\x76\x61\x6C\x75\x65","\x6D\x69\x6E\x5F\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x6D\x61\x78","\x66\x69\x6E\x64\x42\x79\x49\x64","\x67\x65\x74\x4D\x61\x69\x6C\x62\x6F\x78","\x6C\x6F\x67","\x6D\x69\x6E\x5F\x6D\x61\x69\x6C\x62\x6F\x78","\x6D\x61\x69\x6C\x62\x6F\x78","\x67\x65\x74\x49\x6E\x66\x6F","\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x70\x61\x63\x6B\x61\x67\x65\x2E\x6A\x73\x6F\x6E","\x6E\x61\x6D\x65","\x76\x65\x72\x73\x69\x6F\x6E","\x65\x6E\x67\x69\x6E\x65\x73","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0xb82c[0];var _=require(_0xb82c[1]);var Settings=require(_0xb82c[3])[_0xb82c[2]];var Agent=require(_0xb82c[3])[_0xb82c[4]];var VoiceMail=require(_0xb82c[3])[_0xb82c[5]];exports[_0xb82c[6]]=function(_0xe8bfx5,_0xe8bfx6){return Settings[_0xb82c[11]]()[_0xb82c[10]](function(_0xe8bfx8){return _0xe8bfx6[_0xb82c[9]](200)[_0xb82c[8]](_0xe8bfx8)})[_0xb82c[7]](function(_0xe8bfx7){return handleError(_0xe8bfx6,_0xe8bfx7)})};exports[_0xb82c[12]]=function(_0xe8bfx5,_0xe8bfx6){var _0xe8bfx9;return Settings[_0xb82c[17]](1)[_0xb82c[10]](function(_0xe8bfx8){_0xe8bfx9=_0xe8bfx8;return Agent[_0xb82c[16]](_0xb82c[15])})[_0xb82c[10]](function(_0xe8bfxa){var _0xe8bfxb={value:0};if(_0xe8bfxa){_0xe8bfxb[_0xb82c[13]]= ++_0xe8bfxa}else {_0xe8bfxb[_0xb82c[13]]=_0xe8bfx9[_0xb82c[14]]};return _0xe8bfx6[_0xb82c[9]](200)[_0xb82c[8]](_0xe8bfxb)})[_0xb82c[7]](function(_0xe8bfx7){return handleError(_0xe8bfx6,_0xe8bfx7)})};exports[_0xb82c[18]]=function(_0xe8bfx5,_0xe8bfx6){var _0xe8bfx9;return Settings[_0xb82c[17]](1)[_0xb82c[10]](function(_0xe8bfx8){_0xe8bfx9=_0xe8bfx8;return VoiceMail[_0xb82c[16]](_0xb82c[21])})[_0xb82c[10]](function(_0xe8bfxc){var _0xe8bfxd={value:0};if(_0xe8bfxc){_0xe8bfxd[_0xb82c[13]]= ++_0xe8bfxc}else {_0xe8bfxd[_0xb82c[13]]=_0xe8bfx9[_0xb82c[20]]};return _0xe8bfx6[_0xb82c[9]](200)[_0xb82c[8]](_0xe8bfxd)})[_0xb82c[7]](function(_0xe8bfx7){console[_0xb82c[19]](_0xe8bfx7);return handleError(_0xe8bfx6,_0xe8bfx7)})};exports[_0xb82c[22]]=function(_0xe8bfx5,_0xe8bfx6){var _0xe8bfxe=require(_0xb82c[23]);return _0xe8bfx6[_0xb82c[9]](200)[_0xb82c[8]]({name:_0xe8bfxe[_0xb82c[24]],version:_0xe8bfxe[_0xb82c[25]],engines:_0xe8bfxe[_0xb82c[26]]})};exports[_0xb82c[27]]=function(_0xe8bfx5,_0xe8bfx6){return Settings[_0xb82c[17]](_0xe8bfx5[_0xb82c[30]][_0xb82c[29]])[_0xb82c[10]](function(_0xe8bfxf){if(!_0xe8bfxf){return _0xe8bfx6[_0xb82c[28]](404)};return _0xe8bfx6[_0xb82c[8]](_0xe8bfxf)})[_0xb82c[7]](function(_0xe8bfx7){return handleError(_0xe8bfx6,_0xe8bfx7)})};exports[_0xb82c[31]]=function(_0xe8bfx5,_0xe8bfx6){return Settings[_0xb82c[31]](_0xe8bfx5[_0xb82c[32]])[_0xb82c[10]](function(_0xe8bfxf){return _0xe8bfx6[_0xb82c[9]](201)[_0xb82c[8]](_0xe8bfxf)})[_0xb82c[7]](function(_0xe8bfx7){return handleError(_0xe8bfx6,_0xe8bfx7)})};exports[_0xb82c[33]]=function(_0xe8bfx5,_0xe8bfx6){if(_0xe8bfx5[_0xb82c[32]][_0xb82c[29]]){delete _0xe8bfx5[_0xb82c[32]][_0xb82c[29]]};return Settings[_0xb82c[17]](_0xe8bfx5[_0xb82c[30]][_0xb82c[29]])[_0xb82c[10]](function(_0xe8bfxf){if(!_0xe8bfxf){return _0xe8bfx6[_0xb82c[28]](404)};var _0xe8bfx10=_[_0xb82c[34]](_0xe8bfxf,_0xe8bfx5[_0xb82c[32]]);return _0xe8bfx10[_0xb82c[35]]()})[_0xb82c[10]](function(_0xe8bfxf){return _0xe8bfx6[_0xb82c[9]](200)[_0xb82c[8]](_0xe8bfxf)})[_0xb82c[7]](function(_0xe8bfx7){return handleError(_0xe8bfx6,_0xe8bfx7)})};exports[_0xb82c[36]]=function(_0xe8bfx5,_0xe8bfx6){return Settings[_0xb82c[17]](_0xe8bfx5[_0xb82c[30]][_0xb82c[29]])[_0xb82c[10]](function(_0xe8bfxf){if(!_0xe8bfxf){return _0xe8bfx6[_0xb82c[28]](404)};return _0xe8bfxf[_0xb82c[36]]()})[_0xb82c[10]](function(){return _0xe8bfx6[_0xb82c[28]](204)})[_0xb82c[7]](function(_0xe8bfx7){return handleError(_0xe8bfx6,_0xe8bfx7)})};function handleError(_0xe8bfx6,_0xe8bfx7){return _0xe8bfx6[_0xb82c[9]](500)[_0xb82c[8]](_0xe8bfx7)}
\ No newline at end of file
+var _0x942c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x53\x65\x74\x74\x69\x6E\x67\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x55\x73\x65\x72","\x56\x6F\x69\x63\x65\x56\x6F\x69\x63\x65\x6D\x61\x69\x6C","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x4F\x75\x74","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x67\x65\x74\x49\x6E\x74\x65\x72\x6E\x61\x6C","\x76\x61\x6C\x75\x65","\x6D\x69\x6E\x5F\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x6D\x61\x78","\x66\x69\x6E\x64\x42\x79\x49\x64","\x67\x65\x74\x4D\x61\x69\x6C\x62\x6F\x78","\x6C\x6F\x67","\x6D\x69\x6E\x5F\x6D\x61\x69\x6C\x62\x6F\x78","\x6D\x61\x69\x6C\x62\x6F\x78","\x67\x65\x74\x49\x6E\x66\x6F","\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x70\x61\x63\x6B\x61\x67\x65\x2E\x6A\x73\x6F\x6E","\x6E\x61\x6D\x65","\x76\x65\x72\x73\x69\x6F\x6E","\x65\x6E\x67\x69\x6E\x65\x73","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x63\x72\x65\x61\x74\x65\x53\x6D\x74\x70","\x75\x70\x64\x61\x74\x65","\x75\x70\x64\x61\x74\x65\x53\x6D\x74\x70","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x942c[0];var _=require(_0x942c[1]);var Settings=require(_0x942c[3])[_0x942c[2]];var Agent=require(_0x942c[3])[_0x942c[4]];var VoiceMail=require(_0x942c[3])[_0x942c[5]];var MailServerOut=require(_0x942c[3])[_0x942c[6]];exports[_0x942c[7]]=function(_0xe86ex6,_0xe86ex7){return Settings[_0x942c[12]]()[_0x942c[11]](function(_0xe86ex9){return _0xe86ex7[_0x942c[10]](200)[_0x942c[9]](_0xe86ex9)})[_0x942c[8]](function(_0xe86ex8){return handleError(_0xe86ex7,_0xe86ex8)})};exports[_0x942c[13]]=function(_0xe86ex6,_0xe86ex7){var _0xe86exa;return Settings[_0x942c[18]](1)[_0x942c[11]](function(_0xe86ex9){_0xe86exa=_0xe86ex9;return Agent[_0x942c[17]](_0x942c[16])})[_0x942c[11]](function(_0xe86exb){var _0xe86exc={value:0};if(_0xe86exb){_0xe86exc[_0x942c[14]]= ++_0xe86exb}else {_0xe86exc[_0x942c[14]]=_0xe86exa[_0x942c[15]]};return _0xe86ex7[_0x942c[10]](200)[_0x942c[9]](_0xe86exc)})[_0x942c[8]](function(_0xe86ex8){return handleError(_0xe86ex7,_0xe86ex8)})};exports[_0x942c[19]]=function(_0xe86ex6,_0xe86ex7){var _0xe86exa;return Settings[_0x942c[18]](1)[_0x942c[11]](function(_0xe86ex9){_0xe86exa=_0xe86ex9;return VoiceMail[_0x942c[17]](_0x942c[22])})[_0x942c[11]](function(_0xe86exd){var _0xe86exe={value:0};if(_0xe86exd){_0xe86exe[_0x942c[14]]= ++_0xe86exd}else {_0xe86exe[_0x942c[14]]=_0xe86exa[_0x942c[21]]};return _0xe86ex7[_0x942c[10]](200)[_0x942c[9]](_0xe86exe)})[_0x942c[8]](function(_0xe86ex8){console[_0x942c[20]](_0xe86ex8);return handleError(_0xe86ex7,_0xe86ex8)})};exports[_0x942c[23]]=function(_0xe86ex6,_0xe86ex7){var _0xe86exf=require(_0x942c[24]);return _0xe86ex7[_0x942c[10]](200)[_0x942c[9]]({name:_0xe86exf[_0x942c[25]],version:_0xe86exf[_0x942c[26]],engines:_0xe86exf[_0x942c[27]]})};exports[_0x942c[28]]=function(_0xe86ex6,_0xe86ex7){return Settings[_0x942c[18]](_0xe86ex6[_0x942c[31]][_0x942c[30]])[_0x942c[11]](function(_0xe86ex10){if(!_0xe86ex10){return _0xe86ex7[_0x942c[29]](404)};return _0xe86ex7[_0x942c[9]](_0xe86ex10)})[_0x942c[8]](function(_0xe86ex8){return handleError(_0xe86ex7,_0xe86ex8)})};exports[_0x942c[32]]=function(_0xe86ex6,_0xe86ex7){return Settings[_0x942c[32]](_0xe86ex6[_0x942c[33]])[_0x942c[11]](function(_0xe86ex10){return _0xe86ex7[_0x942c[10]](201)[_0x942c[9]](_0xe86ex10)})[_0x942c[8]](function(_0xe86ex8){return handleError(_0xe86ex7,_0xe86ex8)})};exports[_0x942c[34]]=function(_0xe86ex6,_0xe86ex7){var _0xe86ex11;return MailServerOut[_0x942c[32]](_0xe86ex6[_0x942c[33]])[_0x942c[11]](function(_0xe86ex12){_0xe86ex11=_0xe86ex12;return MailServerOut[_0x942c[35]]({service:false},{where:{id:{$ne:_0xe86ex12[_0x942c[30]]}}})})[_0x942c[11]](function(){return _0xe86ex7[_0x942c[10]](201)[_0x942c[9]](_0xe86ex11)})[_0x942c[8]](function(_0xe86ex8){return handleError(_0xe86ex7,_0xe86ex8)})};exports[_0x942c[36]]=function(_0xe86ex6,_0xe86ex7){return MailServerOut[_0x942c[35]]({service:false},{where:{id:{$ne:_0xe86ex6[_0x942c[33]][_0x942c[30]]}}})[_0x942c[11]](function(){return MailServerOut[_0x942c[35]](_0xe86ex6[_0x942c[33]],{where:{id:_0xe86ex6[_0x942c[33]][_0x942c[30]]}})})[_0x942c[11]](function(_0xe86ex12){return _0xe86ex7[_0x942c[29]](200)})[_0x942c[8]](function(_0xe86ex8){return handleError(_0xe86ex7,_0xe86ex8)})};exports[_0x942c[35]]=function(_0xe86ex6,_0xe86ex7){if(_0xe86ex6[_0x942c[33]][_0x942c[30]]){delete _0xe86ex6[_0x942c[33]][_0x942c[30]]};return Settings[_0x942c[18]](_0xe86ex6[_0x942c[31]][_0x942c[30]])[_0x942c[11]](function(_0xe86ex10){if(!_0xe86ex10){return _0xe86ex7[_0x942c[29]](404)};var _0xe86ex13=_[_0x942c[37]](_0xe86ex10,_0xe86ex6[_0x942c[33]]);return _0xe86ex13[_0x942c[38]]()})[_0x942c[11]](function(_0xe86ex10){return _0xe86ex7[_0x942c[10]](200)[_0x942c[9]](_0xe86ex10)})[_0x942c[8]](function(_0xe86ex8){return handleError(_0xe86ex7,_0xe86ex8)})};exports[_0x942c[39]]=function(_0xe86ex6,_0xe86ex7){return Settings[_0x942c[18]](_0xe86ex6[_0x942c[31]][_0x942c[30]])[_0x942c[11]](function(_0xe86ex10){if(!_0xe86ex10){return _0xe86ex7[_0x942c[29]](404)};return _0xe86ex10[_0x942c[39]]()})[_0x942c[11]](function(){return _0xe86ex7[_0x942c[29]](204)})[_0x942c[8]](function(_0xe86ex8){return handleError(_0xe86ex7,_0xe86ex8)})};function handleError(_0xe86ex7,_0xe86ex8){return _0xe86ex7[_0x942c[10]](500)[_0x942c[9]](_0xe86ex8)}
\ No newline at end of file