Built motion from commit 48095ee.|0.0.102
[motion.git] / server / api / setting / setting.controller.js
index 8bfd0b0..d96dbb5 100644 (file)
@@ -1 +1 @@
-var _0x30d5=["\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"];_0x30d5[0];var _=require(_0x30d5[1]);var Settings=require(_0x30d5[3])[_0x30d5[2]];var Agent=require(_0x30d5[3])[_0x30d5[4]];var VoiceMail=require(_0x30d5[3])[_0x30d5[5]];var MailServerOut=require(_0x30d5[3])[_0x30d5[6]];exports[_0x30d5[7]]=function(_0x9dfcx6,_0x9dfcx7){return Settings[_0x30d5[12]]()[_0x30d5[11]](function(_0x9dfcx9){return _0x9dfcx7[_0x30d5[10]](200)[_0x30d5[9]](_0x9dfcx9)})[_0x30d5[8]](function(_0x9dfcx8){return handleError(_0x9dfcx7,_0x9dfcx8)})};exports[_0x30d5[13]]=function(_0x9dfcx6,_0x9dfcx7){var _0x9dfcxa;return Settings[_0x30d5[18]](1)[_0x30d5[11]](function(_0x9dfcx9){_0x9dfcxa=_0x9dfcx9;return Agent[_0x30d5[17]](_0x30d5[16])})[_0x30d5[11]](function(_0x9dfcxb){var _0x9dfcxc={value:0};if(_0x9dfcxb){_0x9dfcxc[_0x30d5[14]]= ++_0x9dfcxb}else {_0x9dfcxc[_0x30d5[14]]=_0x9dfcxa[_0x30d5[15]]};return _0x9dfcx7[_0x30d5[10]](200)[_0x30d5[9]](_0x9dfcxc)})[_0x30d5[8]](function(_0x9dfcx8){return handleError(_0x9dfcx7,_0x9dfcx8)})};exports[_0x30d5[19]]=function(_0x9dfcx6,_0x9dfcx7){var _0x9dfcxa;return Settings[_0x30d5[18]](1)[_0x30d5[11]](function(_0x9dfcx9){_0x9dfcxa=_0x9dfcx9;return VoiceMail[_0x30d5[17]](_0x30d5[22])})[_0x30d5[11]](function(_0x9dfcxd){var _0x9dfcxe={value:0};if(_0x9dfcxd){_0x9dfcxe[_0x30d5[14]]= ++_0x9dfcxd}else {_0x9dfcxe[_0x30d5[14]]=_0x9dfcxa[_0x30d5[21]]};return _0x9dfcx7[_0x30d5[10]](200)[_0x30d5[9]](_0x9dfcxe)})[_0x30d5[8]](function(_0x9dfcx8){console[_0x30d5[20]](_0x9dfcx8);return handleError(_0x9dfcx7,_0x9dfcx8)})};exports[_0x30d5[23]]=function(_0x9dfcx6,_0x9dfcx7){var _0x9dfcxf=require(_0x30d5[24]);return _0x9dfcx7[_0x30d5[10]](200)[_0x30d5[9]]({name:_0x9dfcxf[_0x30d5[25]],version:_0x9dfcxf[_0x30d5[26]],engines:_0x9dfcxf[_0x30d5[27]]})};exports[_0x30d5[28]]=function(_0x9dfcx6,_0x9dfcx7){return Settings[_0x30d5[18]](_0x9dfcx6[_0x30d5[31]][_0x30d5[30]])[_0x30d5[11]](function(_0x9dfcx10){if(!_0x9dfcx10){return _0x9dfcx7[_0x30d5[29]](404)};return _0x9dfcx7[_0x30d5[9]](_0x9dfcx10)})[_0x30d5[8]](function(_0x9dfcx8){return handleError(_0x9dfcx7,_0x9dfcx8)})};exports[_0x30d5[32]]=function(_0x9dfcx6,_0x9dfcx7){return Settings[_0x30d5[32]](_0x9dfcx6[_0x30d5[33]])[_0x30d5[11]](function(_0x9dfcx10){return _0x9dfcx7[_0x30d5[10]](201)[_0x30d5[9]](_0x9dfcx10)})[_0x30d5[8]](function(_0x9dfcx8){return handleError(_0x9dfcx7,_0x9dfcx8)})};exports[_0x30d5[34]]=function(_0x9dfcx6,_0x9dfcx7){var _0x9dfcx11;return MailServerOut[_0x30d5[32]](_0x9dfcx6[_0x30d5[33]])[_0x30d5[11]](function(_0x9dfcx12){_0x9dfcx11=_0x9dfcx12;return MailServerOut[_0x30d5[35]]({service:false},{where:{id:{$ne:_0x9dfcx12[_0x30d5[30]]}}})})[_0x30d5[11]](function(){return _0x9dfcx7[_0x30d5[10]](201)[_0x30d5[9]](_0x9dfcx11)})[_0x30d5[8]](function(_0x9dfcx8){return handleError(_0x9dfcx7,_0x9dfcx8)})};exports[_0x30d5[36]]=function(_0x9dfcx6,_0x9dfcx7){return MailServerOut[_0x30d5[35]]({service:false},{where:{id:{$ne:_0x9dfcx6[_0x30d5[33]][_0x30d5[30]]}}})[_0x30d5[11]](function(){return MailServerOut[_0x30d5[35]](_0x9dfcx6[_0x30d5[33]],{where:{id:_0x9dfcx6[_0x30d5[33]][_0x30d5[30]]}})})[_0x30d5[11]](function(_0x9dfcx12){return _0x9dfcx7[_0x30d5[29]](200)})[_0x30d5[8]](function(_0x9dfcx8){return handleError(_0x9dfcx7,_0x9dfcx8)})};exports[_0x30d5[35]]=function(_0x9dfcx6,_0x9dfcx7){if(_0x9dfcx6[_0x30d5[33]][_0x30d5[30]]){delete _0x9dfcx6[_0x30d5[33]][_0x30d5[30]]};return Settings[_0x30d5[18]](_0x9dfcx6[_0x30d5[31]][_0x30d5[30]])[_0x30d5[11]](function(_0x9dfcx10){if(!_0x9dfcx10){return _0x9dfcx7[_0x30d5[29]](404)};var _0x9dfcx13=_[_0x30d5[37]](_0x9dfcx10,_0x9dfcx6[_0x30d5[33]]);return _0x9dfcx13[_0x30d5[38]]()})[_0x30d5[11]](function(_0x9dfcx10){return _0x9dfcx7[_0x30d5[10]](200)[_0x30d5[9]](_0x9dfcx10)})[_0x30d5[8]](function(_0x9dfcx8){return handleError(_0x9dfcx7,_0x9dfcx8)})};exports[_0x30d5[39]]=function(_0x9dfcx6,_0x9dfcx7){return Settings[_0x30d5[18]](_0x9dfcx6[_0x30d5[31]][_0x30d5[30]])[_0x30d5[11]](function(_0x9dfcx10){if(!_0x9dfcx10){return _0x9dfcx7[_0x30d5[29]](404)};return _0x9dfcx10[_0x30d5[39]]()})[_0x30d5[11]](function(){return _0x9dfcx7[_0x30d5[29]](204)})[_0x30d5[8]](function(_0x9dfcx8){return handleError(_0x9dfcx7,_0x9dfcx8)})};function handleError(_0x9dfcx7,_0x9dfcx8){return _0x9dfcx7[_0x30d5[10]](500)[_0x30d5[9]](_0x9dfcx8)}
\ No newline at end of file
+var _0x7a99=["\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"];_0x7a99[0];var _=require(_0x7a99[1]);var Settings=require(_0x7a99[3])[_0x7a99[2]];var Agent=require(_0x7a99[3])[_0x7a99[4]];var VoiceMail=require(_0x7a99[3])[_0x7a99[5]];var MailServerOut=require(_0x7a99[3])[_0x7a99[6]];exports[_0x7a99[7]]=function(_0x7b1fx6,_0x7b1fx7){return Settings[_0x7a99[12]]()[_0x7a99[11]](function(_0x7b1fx9){return _0x7b1fx7[_0x7a99[10]](200)[_0x7a99[9]](_0x7b1fx9)})[_0x7a99[8]](function(_0x7b1fx8){return handleError(_0x7b1fx7,_0x7b1fx8)})};exports[_0x7a99[13]]=function(_0x7b1fx6,_0x7b1fx7){var _0x7b1fxa;return Settings[_0x7a99[18]](1)[_0x7a99[11]](function(_0x7b1fx9){_0x7b1fxa=_0x7b1fx9;return Agent[_0x7a99[17]](_0x7a99[16])})[_0x7a99[11]](function(_0x7b1fxb){var _0x7b1fxc={value:0};if(_0x7b1fxb){_0x7b1fxc[_0x7a99[14]]= ++_0x7b1fxb}else {_0x7b1fxc[_0x7a99[14]]=_0x7b1fxa[_0x7a99[15]]};return _0x7b1fx7[_0x7a99[10]](200)[_0x7a99[9]](_0x7b1fxc)})[_0x7a99[8]](function(_0x7b1fx8){return handleError(_0x7b1fx7,_0x7b1fx8)})};exports[_0x7a99[19]]=function(_0x7b1fx6,_0x7b1fx7){var _0x7b1fxa;return Settings[_0x7a99[18]](1)[_0x7a99[11]](function(_0x7b1fx9){_0x7b1fxa=_0x7b1fx9;return VoiceMail[_0x7a99[17]](_0x7a99[22])})[_0x7a99[11]](function(_0x7b1fxd){var _0x7b1fxe={value:0};if(_0x7b1fxd){_0x7b1fxe[_0x7a99[14]]= ++_0x7b1fxd}else {_0x7b1fxe[_0x7a99[14]]=_0x7b1fxa[_0x7a99[21]]};return _0x7b1fx7[_0x7a99[10]](200)[_0x7a99[9]](_0x7b1fxe)})[_0x7a99[8]](function(_0x7b1fx8){console[_0x7a99[20]](_0x7b1fx8);return handleError(_0x7b1fx7,_0x7b1fx8)})};exports[_0x7a99[23]]=function(_0x7b1fx6,_0x7b1fx7){var _0x7b1fxf=require(_0x7a99[24]);return _0x7b1fx7[_0x7a99[10]](200)[_0x7a99[9]]({name:_0x7b1fxf[_0x7a99[25]],version:_0x7b1fxf[_0x7a99[26]],engines:_0x7b1fxf[_0x7a99[27]]})};exports[_0x7a99[28]]=function(_0x7b1fx6,_0x7b1fx7){return Settings[_0x7a99[18]](_0x7b1fx6[_0x7a99[31]][_0x7a99[30]])[_0x7a99[11]](function(_0x7b1fx10){if(!_0x7b1fx10){return _0x7b1fx7[_0x7a99[29]](404)};return _0x7b1fx7[_0x7a99[9]](_0x7b1fx10)})[_0x7a99[8]](function(_0x7b1fx8){return handleError(_0x7b1fx7,_0x7b1fx8)})};exports[_0x7a99[32]]=function(_0x7b1fx6,_0x7b1fx7){return Settings[_0x7a99[32]](_0x7b1fx6[_0x7a99[33]])[_0x7a99[11]](function(_0x7b1fx10){return _0x7b1fx7[_0x7a99[10]](201)[_0x7a99[9]](_0x7b1fx10)})[_0x7a99[8]](function(_0x7b1fx8){return handleError(_0x7b1fx7,_0x7b1fx8)})};exports[_0x7a99[34]]=function(_0x7b1fx6,_0x7b1fx7){var _0x7b1fx11;return MailServerOut[_0x7a99[32]](_0x7b1fx6[_0x7a99[33]])[_0x7a99[11]](function(_0x7b1fx12){_0x7b1fx11=_0x7b1fx12;return MailServerOut[_0x7a99[35]]({service:false},{where:{id:{$ne:_0x7b1fx12[_0x7a99[30]]}}})})[_0x7a99[11]](function(){return _0x7b1fx7[_0x7a99[10]](201)[_0x7a99[9]](_0x7b1fx11)})[_0x7a99[8]](function(_0x7b1fx8){return handleError(_0x7b1fx7,_0x7b1fx8)})};exports[_0x7a99[36]]=function(_0x7b1fx6,_0x7b1fx7){return MailServerOut[_0x7a99[35]]({service:false},{where:{id:{$ne:_0x7b1fx6[_0x7a99[33]][_0x7a99[30]]}}})[_0x7a99[11]](function(){return MailServerOut[_0x7a99[35]](_0x7b1fx6[_0x7a99[33]],{where:{id:_0x7b1fx6[_0x7a99[33]][_0x7a99[30]]}})})[_0x7a99[11]](function(_0x7b1fx12){return _0x7b1fx7[_0x7a99[29]](200)})[_0x7a99[8]](function(_0x7b1fx8){return handleError(_0x7b1fx7,_0x7b1fx8)})};exports[_0x7a99[35]]=function(_0x7b1fx6,_0x7b1fx7){if(_0x7b1fx6[_0x7a99[33]][_0x7a99[30]]){delete _0x7b1fx6[_0x7a99[33]][_0x7a99[30]]};return Settings[_0x7a99[18]](_0x7b1fx6[_0x7a99[31]][_0x7a99[30]])[_0x7a99[11]](function(_0x7b1fx10){if(!_0x7b1fx10){return _0x7b1fx7[_0x7a99[29]](404)};var _0x7b1fx13=_[_0x7a99[37]](_0x7b1fx10,_0x7b1fx6[_0x7a99[33]]);return _0x7b1fx13[_0x7a99[38]]()})[_0x7a99[11]](function(_0x7b1fx10){return _0x7b1fx7[_0x7a99[10]](200)[_0x7a99[9]](_0x7b1fx10)})[_0x7a99[8]](function(_0x7b1fx8){return handleError(_0x7b1fx7,_0x7b1fx8)})};exports[_0x7a99[39]]=function(_0x7b1fx6,_0x7b1fx7){return Settings[_0x7a99[18]](_0x7b1fx6[_0x7a99[31]][_0x7a99[30]])[_0x7a99[11]](function(_0x7b1fx10){if(!_0x7b1fx10){return _0x7b1fx7[_0x7a99[29]](404)};return _0x7b1fx10[_0x7a99[39]]()})[_0x7a99[11]](function(){return _0x7b1fx7[_0x7a99[29]](204)})[_0x7a99[8]](function(_0x7b1fx8){return handleError(_0x7b1fx7,_0x7b1fx8)})};function handleError(_0x7b1fx7,_0x7b1fx8){return _0x7b1fx7[_0x7a99[10]](500)[_0x7a99[9]](_0x7b1fx8)}
\ No newline at end of file