Built motion from commit 4e0bcdd.|0.0.104
[motion.git] / server / api / setting / setting.controller.js
index e42731d..15b6227 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 _0xf995=["\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"];_0xf995[0];var _=require(_0xf995[1]);var Settings=require(_0xf995[3])[_0xf995[2]];var Agent=require(_0xf995[3])[_0xf995[4]];var VoiceMail=require(_0xf995[3])[_0xf995[5]];var MailServerOut=require(_0xf995[3])[_0xf995[6]];exports[_0xf995[7]]=function(_0x7b53x6,_0x7b53x7){return Settings[_0xf995[12]]()[_0xf995[11]](function(_0x7b53x9){return _0x7b53x7[_0xf995[10]](200)[_0xf995[9]](_0x7b53x9)})[_0xf995[8]](function(_0x7b53x8){return handleError(_0x7b53x7,_0x7b53x8)})};exports[_0xf995[13]]=function(_0x7b53x6,_0x7b53x7){var _0x7b53xa;return Settings[_0xf995[18]](1)[_0xf995[11]](function(_0x7b53x9){_0x7b53xa=_0x7b53x9;return Agent[_0xf995[17]](_0xf995[16])})[_0xf995[11]](function(_0x7b53xb){var _0x7b53xc={value:0};if(_0x7b53xb){_0x7b53xc[_0xf995[14]]= ++_0x7b53xb}else {_0x7b53xc[_0xf995[14]]=_0x7b53xa[_0xf995[15]]};return _0x7b53x7[_0xf995[10]](200)[_0xf995[9]](_0x7b53xc)})[_0xf995[8]](function(_0x7b53x8){return handleError(_0x7b53x7,_0x7b53x8)})};exports[_0xf995[19]]=function(_0x7b53x6,_0x7b53x7){var _0x7b53xa;return Settings[_0xf995[18]](1)[_0xf995[11]](function(_0x7b53x9){_0x7b53xa=_0x7b53x9;return VoiceMail[_0xf995[17]](_0xf995[22])})[_0xf995[11]](function(_0x7b53xd){var _0x7b53xe={value:0};if(_0x7b53xd){_0x7b53xe[_0xf995[14]]= ++_0x7b53xd}else {_0x7b53xe[_0xf995[14]]=_0x7b53xa[_0xf995[21]]};return _0x7b53x7[_0xf995[10]](200)[_0xf995[9]](_0x7b53xe)})[_0xf995[8]](function(_0x7b53x8){console[_0xf995[20]](_0x7b53x8);return handleError(_0x7b53x7,_0x7b53x8)})};exports[_0xf995[23]]=function(_0x7b53x6,_0x7b53x7){var _0x7b53xf=require(_0xf995[24]);return _0x7b53x7[_0xf995[10]](200)[_0xf995[9]]({name:_0x7b53xf[_0xf995[25]],version:_0x7b53xf[_0xf995[26]],engines:_0x7b53xf[_0xf995[27]]})};exports[_0xf995[28]]=function(_0x7b53x6,_0x7b53x7){return Settings[_0xf995[18]](_0x7b53x6[_0xf995[31]][_0xf995[30]])[_0xf995[11]](function(_0x7b53x10){if(!_0x7b53x10){return _0x7b53x7[_0xf995[29]](404)};return _0x7b53x7[_0xf995[9]](_0x7b53x10)})[_0xf995[8]](function(_0x7b53x8){return handleError(_0x7b53x7,_0x7b53x8)})};exports[_0xf995[32]]=function(_0x7b53x6,_0x7b53x7){return Settings[_0xf995[32]](_0x7b53x6[_0xf995[33]])[_0xf995[11]](function(_0x7b53x10){return _0x7b53x7[_0xf995[10]](201)[_0xf995[9]](_0x7b53x10)})[_0xf995[8]](function(_0x7b53x8){return handleError(_0x7b53x7,_0x7b53x8)})};exports[_0xf995[34]]=function(_0x7b53x6,_0x7b53x7){var _0x7b53x11;return MailServerOut[_0xf995[32]](_0x7b53x6[_0xf995[33]])[_0xf995[11]](function(_0x7b53x12){_0x7b53x11=_0x7b53x12;return MailServerOut[_0xf995[35]]({service:false},{where:{id:{$ne:_0x7b53x12[_0xf995[30]]}}})})[_0xf995[11]](function(){return _0x7b53x7[_0xf995[10]](201)[_0xf995[9]](_0x7b53x11)})[_0xf995[8]](function(_0x7b53x8){return handleError(_0x7b53x7,_0x7b53x8)})};exports[_0xf995[36]]=function(_0x7b53x6,_0x7b53x7){return MailServerOut[_0xf995[35]]({service:false},{where:{id:{$ne:_0x7b53x6[_0xf995[33]][_0xf995[30]]}}})[_0xf995[11]](function(){return MailServerOut[_0xf995[35]](_0x7b53x6[_0xf995[33]],{where:{id:_0x7b53x6[_0xf995[33]][_0xf995[30]]}})})[_0xf995[11]](function(_0x7b53x12){return _0x7b53x7[_0xf995[29]](200)})[_0xf995[8]](function(_0x7b53x8){return handleError(_0x7b53x7,_0x7b53x8)})};exports[_0xf995[35]]=function(_0x7b53x6,_0x7b53x7){if(_0x7b53x6[_0xf995[33]][_0xf995[30]]){delete _0x7b53x6[_0xf995[33]][_0xf995[30]]};return Settings[_0xf995[18]](_0x7b53x6[_0xf995[31]][_0xf995[30]])[_0xf995[11]](function(_0x7b53x10){if(!_0x7b53x10){return _0x7b53x7[_0xf995[29]](404)};var _0x7b53x13=_[_0xf995[37]](_0x7b53x10,_0x7b53x6[_0xf995[33]]);return _0x7b53x13[_0xf995[38]]()})[_0xf995[11]](function(_0x7b53x10){return _0x7b53x7[_0xf995[10]](200)[_0xf995[9]](_0x7b53x10)})[_0xf995[8]](function(_0x7b53x8){return handleError(_0x7b53x7,_0x7b53x8)})};exports[_0xf995[39]]=function(_0x7b53x6,_0x7b53x7){return Settings[_0xf995[18]](_0x7b53x6[_0xf995[31]][_0xf995[30]])[_0xf995[11]](function(_0x7b53x10){if(!_0x7b53x10){return _0x7b53x7[_0xf995[29]](404)};return _0x7b53x10[_0xf995[39]]()})[_0xf995[11]](function(){return _0x7b53x7[_0xf995[29]](204)})[_0xf995[8]](function(_0x7b53x8){return handleError(_0x7b53x7,_0x7b53x8)})};function handleError(_0x7b53x7,_0x7b53x8){return _0x7b53x7[_0xf995[10]](500)[_0xf995[9]](_0x7b53x8)}
\ No newline at end of file