Built motion from commit d3a776a.|0.0.126
[motion.git] / server / api / setting / setting.controller.js
index f5471e2..797e873 100644 (file)
@@ -1 +1 @@
-var _0xb5b8=["\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","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x74\x6F\x6F\x6C\x73\x2F\x73\x79\x73\x74\x65\x6D","\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","\x62\x6C\x75\x65\x62\x69\x72\x64","\x75\x70\x6C\x6F\x61\x64\x2D\x66\x69\x6C\x65","\x70\x61\x74\x68","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x73\x69\x6D\x70\x6C\x65\x2D\x72\x61\x6E\x64\x6F\x6D","\x66\x73","\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","\x73\x74\x61\x74\x73","\x6C\x6F\x67","\x63\x68\x65\x63\x6B\x53\x74\x61\x74\x75\x73","\x61\x6C\x6C","\x63\x68\x61\x6E\x67\x65\x4C\x6F\x67\x6F","\x6C\x6F\x67\x6F","\x63\x68\x61\x6E\x67\x65\x4C\x6F\x67\x69\x6E\x4C\x6F\x67\x6F","\x6C\x6F\x67\x69\x6E\x4C\x6F\x67\x6F","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72","\x66\x69\x6C\x65\x73","\x69\x6D\x61\x67\x65\x73","\x6A\x6F\x69\x6E","\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x65\x78\x74\x6E\x61\x6D\x65","\x4D\x61\x78\x20\x6E\x75\x6D\x62\x65\x72\x20\x6F\x66\x20\x66\x69\x6C\x65\x73\x20\x75\x70\x6C\x6F\x61\x64\x20\x65\x78\x63\x65\x65\x64\x65\x64","\x4F\x6E\x6C\x79\x20\x6A\x70\x65\x67\x20\x61\x6E\x64\x20\x70\x6E\x67\x20\x66\x6F\x72\x6D\x61\x74\x20\x61\x63\x63\x65\x70\x74\x65\x64","\x49\x6E\x76\x61\x6C\x69\x64\x20\x72\x65\x71\x75\x65\x73\x74","\x65\x6E\x64","\x66\x69\x6C\x65","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x75\x70\x64\x61\x74\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x6F\x6E","\x65\x72\x72\x6F\x72","\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x20\x55\x70\x6C\x6F\x61\x64\x20\x65\x72\x72\x6F\x72\x20\x3A","\x70\x61\x72\x73\x65","\x67\x65\x74\x4C\x6F\x67\x6F","\x6C\x6F\x67\x6F\x2E\x70\x6E\x67","\x67\x65\x74\x4C\x6F\x67\x69\x6E\x4C\x6F\x67\x6F","\x6C\x6F\x67\x69\x6E\x4C\x6F\x67\x6F\x2E\x70\x6E\x67","\x70\x61\x72\x61\x6D\x73","\x64\x65\x66\x61\x75\x6C\x74","\x73\x65\x6E\x64\x46\x69\x6C\x65","\x65\x78\x69\x73\x74\x73","\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","\x67\x65\x74\x4D\x61\x69\x6C\x62\x6F\x78","\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","\x69\x64","\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\x53\x6D\x74\x70","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0xb5b8[0];var _=require(_0xb5b8[1]);var Settings=require(_0xb5b8[3])[_0xb5b8[2]];var system=require(_0xb5b8[4]);var Agent=require(_0xb5b8[3])[_0xb5b8[5]];var VoiceMail=require(_0xb5b8[3])[_0xb5b8[6]];var MailServerOut=require(_0xb5b8[3])[_0xb5b8[7]];var Promise=require(_0xb5b8[8]);var UploadFile=require(_0xb5b8[9]);var path=require(_0xb5b8[10]);var sequelize=require(_0xb5b8[3])[_0xb5b8[11]];var config=require(_0xb5b8[12]);var sr=require(_0xb5b8[13]);var fs=require(_0xb5b8[14]);exports[_0xb5b8[15]]= function(_0x6e7bxe,_0x6e7bxf){return Settings[_0xb5b8[20]]()[_0xb5b8[19]](function(_0x6e7bx11){return _0x6e7bxf[_0xb5b8[18]](200)[_0xb5b8[17]](_0x6e7bx11)})[_0xb5b8[16]](function(_0x6e7bx10){return handleError(_0x6e7bxf,_0x6e7bx10)})};exports[_0xb5b8[21]]= function(_0x6e7bxe,_0x6e7bxf){return Promise[_0xb5b8[24]]([])[_0xb5b8[19]](system[_0xb5b8[23]]())[_0xb5b8[19]](function(_0x6e7bx12){return _0x6e7bxf[_0xb5b8[18]](200)[_0xb5b8[17]](_0x6e7bx12)})[_0xb5b8[16]](function(_0x6e7bx10){console[_0xb5b8[22]](_0x6e7bx10);return handleError(_0x6e7bxf,_0x6e7bx10)})};exports[_0xb5b8[25]]= function(_0x6e7bxe,_0x6e7bxf){changeLogo(_0x6e7bxe,_0x6e7bxf,_0xb5b8[26])};exports[_0xb5b8[27]]= function(_0x6e7bxe,_0x6e7bxf){changeLogo(_0x6e7bxe,_0x6e7bxf,_0xb5b8[28])};function changeLogo(_0x6e7bxe,_0x6e7bxf,_0x6e7bx14){var _0x6e7bx15= new UploadFile({dest:path[_0xb5b8[33]](config[_0xb5b8[29]],_0xb5b8[30],_0xb5b8[31],_0xb5b8[32]),maxNumberOfFiles:1,minNumberOfFiles:0,acceptFileTypes:/(\.|\/)(jpeg|png)$/i,rename:function(_0x6e7bx16,_0x6e7bx17){return sr()+ path[_0xb5b8[35]](_0x6e7bx17[_0xb5b8[34]])},messages:{maxNumberOfFiles:_0xb5b8[36],acceptFileTypes:_0xb5b8[37],invalidRequest:_0xb5b8[38]}});_0x6e7bx15[_0xb5b8[45]](_0xb5b8[39],function(_0x6e7bx18,_0x6e7bx19){if(!_0x6e7bx19[_0xb5b8[40]][_0xb5b8[34]]){return _0x6e7bxf[_0xb5b8[18]](500)[_0xb5b8[17]](_0x6e7bx15)};return sequelize[_0xb5b8[44]](function(_0x6e7bx1a){return Settings[_0xb5b8[43]](1)[_0xb5b8[19]](function(_0x6e7bx11){if(!_0x6e7bx11){return _0x6e7bxf[_0xb5b8[41]](404)};var _0x6e7bx1c={};_0x6e7bx1c[_0x6e7bx14]= _0x6e7bx19[_0xb5b8[40]][_0xb5b8[34]];return _0x6e7bx11[_0xb5b8[42]](_0x6e7bx1c,{transaction:_0x6e7bx1a})})[_0xb5b8[19]](function(_0x6e7bx1b){return _0x6e7bxf[_0xb5b8[18]](200)[_0xb5b8[17]](_0x6e7bx1b)})})[_0xb5b8[16]](function(_0x6e7bx10){return handleError(_0x6e7bxf,_0x6e7bx10)})});_0x6e7bx15[_0xb5b8[45]](_0xb5b8[46],function(_0x6e7bx10){console[_0xb5b8[22]](_0xb5b8[47],_0x6e7bx10);return handleError(_0x6e7bxf,_0x6e7bx10)});_0x6e7bx15[_0xb5b8[48]](_0x6e7bxe)}exports[_0xb5b8[49]]= function(_0x6e7bxe,_0x6e7bxf){getLogo(_0x6e7bxe,_0x6e7bxf,_0xb5b8[50])};exports[_0xb5b8[51]]= function(_0x6e7bxe,_0x6e7bxf){getLogo(_0x6e7bxe,_0x6e7bxf,_0xb5b8[52])};function getLogo(_0x6e7bxe,_0x6e7bxf,_0x6e7bx1e){var _0x6e7bx1f=path[_0xb5b8[33]](config[_0xb5b8[29]],_0xb5b8[30],_0xb5b8[31],_0xb5b8[32],_0x6e7bxe[_0xb5b8[53]][_0xb5b8[34]]);fs[_0xb5b8[56]](_0x6e7bx1f,function(_0x6e7bx20){if(!_0x6e7bx20){_0x6e7bx1f= path[_0xb5b8[33]](config[_0xb5b8[29]],_0xb5b8[30],_0xb5b8[31],_0xb5b8[32],_0xb5b8[54],_0x6e7bx1e)};return _0x6e7bxf[_0xb5b8[55]](_0x6e7bx1f)})}exports[_0xb5b8[57]]= function(_0x6e7bxe,_0x6e7bxf){var _0x6e7bx21;return Settings[_0xb5b8[43]](1)[_0xb5b8[19]](function(_0x6e7bx11){_0x6e7bx21= _0x6e7bx11;return Agent[_0xb5b8[61]](_0xb5b8[60])})[_0xb5b8[19]](function(_0x6e7bx22){var _0x6e7bx23={value:0};if(_0x6e7bx22){_0x6e7bx23[_0xb5b8[58]]=  ++_0x6e7bx22}else {_0x6e7bx23[_0xb5b8[58]]= _0x6e7bx21[_0xb5b8[59]]};return _0x6e7bxf[_0xb5b8[18]](200)[_0xb5b8[17]](_0x6e7bx23)})[_0xb5b8[16]](function(_0x6e7bx10){return handleError(_0x6e7bxf,_0x6e7bx10)})};exports[_0xb5b8[62]]= function(_0x6e7bxe,_0x6e7bxf){var _0x6e7bx21;return Settings[_0xb5b8[43]](1)[_0xb5b8[19]](function(_0x6e7bx11){_0x6e7bx21= _0x6e7bx11;return VoiceMail[_0xb5b8[61]](_0xb5b8[64])})[_0xb5b8[19]](function(_0x6e7bx24){var _0x6e7bx25={value:0};if(_0x6e7bx24){_0x6e7bx25[_0xb5b8[58]]=  ++_0x6e7bx24}else {_0x6e7bx25[_0xb5b8[58]]= _0x6e7bx21[_0xb5b8[63]]};return _0x6e7bxf[_0xb5b8[18]](200)[_0xb5b8[17]](_0x6e7bx25)})[_0xb5b8[16]](function(_0x6e7bx10){console[_0xb5b8[22]](_0x6e7bx10);return handleError(_0x6e7bxf,_0x6e7bx10)})};exports[_0xb5b8[65]]= function(_0x6e7bxe,_0x6e7bxf){var _0x6e7bx26=require(_0xb5b8[66]);return _0x6e7bxf[_0xb5b8[18]](200)[_0xb5b8[17]]({name:_0x6e7bx26[_0xb5b8[67]],version:_0x6e7bx26[_0xb5b8[68]],engines:_0x6e7bx26[_0xb5b8[69]]})};exports[_0xb5b8[70]]= function(_0x6e7bxe,_0x6e7bxf){return Settings[_0xb5b8[43]](_0x6e7bxe[_0xb5b8[53]][_0xb5b8[71]])[_0xb5b8[19]](function(_0x6e7bx27){if(!_0x6e7bx27){return _0x6e7bxf[_0xb5b8[41]](404)};return _0x6e7bxf[_0xb5b8[17]](_0x6e7bx27)})[_0xb5b8[16]](function(_0x6e7bx10){return handleError(_0x6e7bxf,_0x6e7bx10)})};exports[_0xb5b8[72]]= function(_0x6e7bxe,_0x6e7bxf){return Settings[_0xb5b8[72]](_0x6e7bxe[_0xb5b8[73]])[_0xb5b8[19]](function(_0x6e7bx27){return _0x6e7bxf[_0xb5b8[18]](201)[_0xb5b8[17]](_0x6e7bx27)})[_0xb5b8[16]](function(_0x6e7bx10){return handleError(_0x6e7bxf,_0x6e7bx10)})};exports[_0xb5b8[74]]= function(_0x6e7bxe,_0x6e7bxf){var _0x6e7bx28;return MailServerOut[_0xb5b8[72]](_0x6e7bxe[_0xb5b8[73]])[_0xb5b8[19]](function(_0x6e7bx29){_0x6e7bx28= _0x6e7bx29;return MailServerOut[_0xb5b8[42]]({service:false},{where:{id:{$ne:_0x6e7bx29[_0xb5b8[71]]}}})})[_0xb5b8[19]](function(){return _0x6e7bxf[_0xb5b8[18]](201)[_0xb5b8[17]](_0x6e7bx28)})[_0xb5b8[16]](function(_0x6e7bx10){return handleError(_0x6e7bxf,_0x6e7bx10)})};exports[_0xb5b8[75]]= function(_0x6e7bxe,_0x6e7bxf){return MailServerOut[_0xb5b8[42]]({service:false},{where:{id:{$ne:_0x6e7bxe[_0xb5b8[73]][_0xb5b8[71]]}}})[_0xb5b8[19]](function(){return MailServerOut[_0xb5b8[42]](_0x6e7bxe[_0xb5b8[73]],{where:{id:_0x6e7bxe[_0xb5b8[73]][_0xb5b8[71]]}})})[_0xb5b8[19]](function(_0x6e7bx29){return _0x6e7bxf[_0xb5b8[41]](200)})[_0xb5b8[16]](function(_0x6e7bx10){return handleError(_0x6e7bxf,_0x6e7bx10)})};exports[_0xb5b8[42]]= function(_0x6e7bxe,_0x6e7bxf){if(_0x6e7bxe[_0xb5b8[73]][_0xb5b8[71]]){delete _0x6e7bxe[_0xb5b8[73]][_0xb5b8[71]]};return Settings[_0xb5b8[43]](_0x6e7bxe[_0xb5b8[53]][_0xb5b8[71]])[_0xb5b8[19]](function(_0x6e7bx27){if(!_0x6e7bx27){return _0x6e7bxf[_0xb5b8[41]](404)};var _0x6e7bx2a=_[_0xb5b8[76]](_0x6e7bx27,_0x6e7bxe[_0xb5b8[73]]);return _0x6e7bx2a[_0xb5b8[77]]()})[_0xb5b8[19]](function(_0x6e7bx27){return _0x6e7bxf[_0xb5b8[18]](200)[_0xb5b8[17]](_0x6e7bx27)})[_0xb5b8[16]](function(_0x6e7bx10){return handleError(_0x6e7bxf,_0x6e7bx10)})};exports[_0xb5b8[78]]= function(_0x6e7bxe,_0x6e7bxf){return Settings[_0xb5b8[43]](_0x6e7bxe[_0xb5b8[53]][_0xb5b8[71]])[_0xb5b8[19]](function(_0x6e7bx27){if(!_0x6e7bx27){return _0x6e7bxf[_0xb5b8[41]](404)};return _0x6e7bx27[_0xb5b8[78]]()})[_0xb5b8[19]](function(){return _0x6e7bxf[_0xb5b8[41]](204)})[_0xb5b8[16]](function(_0x6e7bx10){return handleError(_0x6e7bxf,_0x6e7bx10)})};function handleError(_0x6e7bxf,_0x6e7bx10){return _0x6e7bxf[_0xb5b8[18]](500)[_0xb5b8[17]](_0x6e7bx10)}
\ No newline at end of file
+var _0xc56c=["\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","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x74\x6F\x6F\x6C\x73\x2F\x73\x79\x73\x74\x65\x6D","\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","\x62\x6C\x75\x65\x62\x69\x72\x64","\x75\x70\x6C\x6F\x61\x64\x2D\x66\x69\x6C\x65","\x70\x61\x74\x68","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x73\x69\x6D\x70\x6C\x65\x2D\x72\x61\x6E\x64\x6F\x6D","\x66\x73","\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","\x73\x74\x61\x74\x73","\x6C\x6F\x67","\x63\x68\x65\x63\x6B\x53\x74\x61\x74\x75\x73","\x61\x6C\x6C","\x63\x68\x61\x6E\x67\x65\x4C\x6F\x67\x6F","\x6C\x6F\x67\x6F","\x63\x68\x61\x6E\x67\x65\x4C\x6F\x67\x69\x6E\x4C\x6F\x67\x6F","\x6C\x6F\x67\x69\x6E\x4C\x6F\x67\x6F","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72","\x66\x69\x6C\x65\x73","\x69\x6D\x61\x67\x65\x73","\x6A\x6F\x69\x6E","\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x65\x78\x74\x6E\x61\x6D\x65","\x4D\x61\x78\x20\x6E\x75\x6D\x62\x65\x72\x20\x6F\x66\x20\x66\x69\x6C\x65\x73\x20\x75\x70\x6C\x6F\x61\x64\x20\x65\x78\x63\x65\x65\x64\x65\x64","\x4F\x6E\x6C\x79\x20\x6A\x70\x65\x67\x20\x61\x6E\x64\x20\x70\x6E\x67\x20\x66\x6F\x72\x6D\x61\x74\x20\x61\x63\x63\x65\x70\x74\x65\x64","\x49\x6E\x76\x61\x6C\x69\x64\x20\x72\x65\x71\x75\x65\x73\x74","\x65\x6E\x64","\x66\x69\x6C\x65","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x75\x70\x64\x61\x74\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x6F\x6E","\x65\x72\x72\x6F\x72","\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x20\x55\x70\x6C\x6F\x61\x64\x20\x65\x72\x72\x6F\x72\x20\x3A","\x70\x61\x72\x73\x65","\x67\x65\x74\x4C\x6F\x67\x6F","\x6C\x6F\x67\x6F\x2E\x70\x6E\x67","\x67\x65\x74\x4C\x6F\x67\x69\x6E\x4C\x6F\x67\x6F","\x6C\x6F\x67\x69\x6E\x4C\x6F\x67\x6F\x2E\x70\x6E\x67","\x70\x61\x72\x61\x6D\x73","\x64\x65\x66\x61\x75\x6C\x74","\x73\x65\x6E\x64\x46\x69\x6C\x65","\x65\x78\x69\x73\x74\x73","\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","\x67\x65\x74\x4D\x61\x69\x6C\x62\x6F\x78","\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","\x69\x64","\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\x53\x6D\x74\x70","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0xc56c[0];var _=require(_0xc56c[1]);var Settings=require(_0xc56c[3])[_0xc56c[2]];var system=require(_0xc56c[4]);var Agent=require(_0xc56c[3])[_0xc56c[5]];var VoiceMail=require(_0xc56c[3])[_0xc56c[6]];var MailServerOut=require(_0xc56c[3])[_0xc56c[7]];var Promise=require(_0xc56c[8]);var UploadFile=require(_0xc56c[9]);var path=require(_0xc56c[10]);var sequelize=require(_0xc56c[3])[_0xc56c[11]];var config=require(_0xc56c[12]);var sr=require(_0xc56c[13]);var fs=require(_0xc56c[14]);exports[_0xc56c[15]]= function(_0x51e3xe,_0x51e3xf){return Settings[_0xc56c[20]]()[_0xc56c[19]](function(_0x51e3x11){return _0x51e3xf[_0xc56c[18]](200)[_0xc56c[17]](_0x51e3x11)})[_0xc56c[16]](function(_0x51e3x10){return handleError(_0x51e3xf,_0x51e3x10)})};exports[_0xc56c[21]]= function(_0x51e3xe,_0x51e3xf){return Promise[_0xc56c[24]]([])[_0xc56c[19]](system[_0xc56c[23]]())[_0xc56c[19]](function(_0x51e3x12){return _0x51e3xf[_0xc56c[18]](200)[_0xc56c[17]](_0x51e3x12)})[_0xc56c[16]](function(_0x51e3x10){console[_0xc56c[22]](_0x51e3x10);return handleError(_0x51e3xf,_0x51e3x10)})};exports[_0xc56c[25]]= function(_0x51e3xe,_0x51e3xf){changeLogo(_0x51e3xe,_0x51e3xf,_0xc56c[26])};exports[_0xc56c[27]]= function(_0x51e3xe,_0x51e3xf){changeLogo(_0x51e3xe,_0x51e3xf,_0xc56c[28])};function changeLogo(_0x51e3xe,_0x51e3xf,_0x51e3x14){var _0x51e3x15= new UploadFile({dest:path[_0xc56c[33]](config[_0xc56c[29]],_0xc56c[30],_0xc56c[31],_0xc56c[32]),maxNumberOfFiles:1,minNumberOfFiles:0,acceptFileTypes:/(\.|\/)(jpeg|png)$/i,rename:function(_0x51e3x16,_0x51e3x17){return sr()+ path[_0xc56c[35]](_0x51e3x17[_0xc56c[34]])},messages:{maxNumberOfFiles:_0xc56c[36],acceptFileTypes:_0xc56c[37],invalidRequest:_0xc56c[38]}});_0x51e3x15[_0xc56c[45]](_0xc56c[39],function(_0x51e3x18,_0x51e3x19){if(!_0x51e3x19[_0xc56c[40]][_0xc56c[34]]){return _0x51e3xf[_0xc56c[18]](500)[_0xc56c[17]](_0x51e3x15)};return sequelize[_0xc56c[44]](function(_0x51e3x1a){return Settings[_0xc56c[43]](1)[_0xc56c[19]](function(_0x51e3x11){if(!_0x51e3x11){return _0x51e3xf[_0xc56c[41]](404)};var _0x51e3x1c={};_0x51e3x1c[_0x51e3x14]= _0x51e3x19[_0xc56c[40]][_0xc56c[34]];return _0x51e3x11[_0xc56c[42]](_0x51e3x1c,{transaction:_0x51e3x1a})})[_0xc56c[19]](function(_0x51e3x1b){return _0x51e3xf[_0xc56c[18]](200)[_0xc56c[17]](_0x51e3x1b)})})[_0xc56c[16]](function(_0x51e3x10){return handleError(_0x51e3xf,_0x51e3x10)})});_0x51e3x15[_0xc56c[45]](_0xc56c[46],function(_0x51e3x10){console[_0xc56c[22]](_0xc56c[47],_0x51e3x10);return handleError(_0x51e3xf,_0x51e3x10)});_0x51e3x15[_0xc56c[48]](_0x51e3xe)}exports[_0xc56c[49]]= function(_0x51e3xe,_0x51e3xf){getLogo(_0x51e3xe,_0x51e3xf,_0xc56c[50])};exports[_0xc56c[51]]= function(_0x51e3xe,_0x51e3xf){getLogo(_0x51e3xe,_0x51e3xf,_0xc56c[52])};function getLogo(_0x51e3xe,_0x51e3xf,_0x51e3x1e){var _0x51e3x1f=path[_0xc56c[33]](config[_0xc56c[29]],_0xc56c[30],_0xc56c[31],_0xc56c[32],_0x51e3xe[_0xc56c[53]][_0xc56c[34]]);fs[_0xc56c[56]](_0x51e3x1f,function(_0x51e3x20){if(!_0x51e3x20){_0x51e3x1f= path[_0xc56c[33]](config[_0xc56c[29]],_0xc56c[30],_0xc56c[31],_0xc56c[32],_0xc56c[54],_0x51e3x1e)};return _0x51e3xf[_0xc56c[55]](_0x51e3x1f)})}exports[_0xc56c[57]]= function(_0x51e3xe,_0x51e3xf){var _0x51e3x21;return Settings[_0xc56c[43]](1)[_0xc56c[19]](function(_0x51e3x11){_0x51e3x21= _0x51e3x11;return Agent[_0xc56c[61]](_0xc56c[60])})[_0xc56c[19]](function(_0x51e3x22){var _0x51e3x23={value:0};if(_0x51e3x22){_0x51e3x23[_0xc56c[58]]=  ++_0x51e3x22}else {_0x51e3x23[_0xc56c[58]]= _0x51e3x21[_0xc56c[59]]};return _0x51e3xf[_0xc56c[18]](200)[_0xc56c[17]](_0x51e3x23)})[_0xc56c[16]](function(_0x51e3x10){return handleError(_0x51e3xf,_0x51e3x10)})};exports[_0xc56c[62]]= function(_0x51e3xe,_0x51e3xf){var _0x51e3x21;return Settings[_0xc56c[43]](1)[_0xc56c[19]](function(_0x51e3x11){_0x51e3x21= _0x51e3x11;return VoiceMail[_0xc56c[61]](_0xc56c[64])})[_0xc56c[19]](function(_0x51e3x24){var _0x51e3x25={value:0};if(_0x51e3x24){_0x51e3x25[_0xc56c[58]]=  ++_0x51e3x24}else {_0x51e3x25[_0xc56c[58]]= _0x51e3x21[_0xc56c[63]]};return _0x51e3xf[_0xc56c[18]](200)[_0xc56c[17]](_0x51e3x25)})[_0xc56c[16]](function(_0x51e3x10){console[_0xc56c[22]](_0x51e3x10);return handleError(_0x51e3xf,_0x51e3x10)})};exports[_0xc56c[65]]= function(_0x51e3xe,_0x51e3xf){var _0x51e3x26=require(_0xc56c[66]);return _0x51e3xf[_0xc56c[18]](200)[_0xc56c[17]]({name:_0x51e3x26[_0xc56c[67]],version:_0x51e3x26[_0xc56c[68]],engines:_0x51e3x26[_0xc56c[69]]})};exports[_0xc56c[70]]= function(_0x51e3xe,_0x51e3xf){return Settings[_0xc56c[43]](_0x51e3xe[_0xc56c[53]][_0xc56c[71]])[_0xc56c[19]](function(_0x51e3x27){if(!_0x51e3x27){return _0x51e3xf[_0xc56c[41]](404)};return _0x51e3xf[_0xc56c[17]](_0x51e3x27)})[_0xc56c[16]](function(_0x51e3x10){return handleError(_0x51e3xf,_0x51e3x10)})};exports[_0xc56c[72]]= function(_0x51e3xe,_0x51e3xf){return Settings[_0xc56c[72]](_0x51e3xe[_0xc56c[73]])[_0xc56c[19]](function(_0x51e3x27){return _0x51e3xf[_0xc56c[18]](201)[_0xc56c[17]](_0x51e3x27)})[_0xc56c[16]](function(_0x51e3x10){return handleError(_0x51e3xf,_0x51e3x10)})};exports[_0xc56c[74]]= function(_0x51e3xe,_0x51e3xf){var _0x51e3x28;return MailServerOut[_0xc56c[72]](_0x51e3xe[_0xc56c[73]])[_0xc56c[19]](function(_0x51e3x29){_0x51e3x28= _0x51e3x29;return MailServerOut[_0xc56c[42]]({service:false},{where:{id:{$ne:_0x51e3x29[_0xc56c[71]]}}})})[_0xc56c[19]](function(){return _0x51e3xf[_0xc56c[18]](201)[_0xc56c[17]](_0x51e3x28)})[_0xc56c[16]](function(_0x51e3x10){return handleError(_0x51e3xf,_0x51e3x10)})};exports[_0xc56c[75]]= function(_0x51e3xe,_0x51e3xf){return MailServerOut[_0xc56c[42]]({service:false},{where:{id:{$ne:_0x51e3xe[_0xc56c[73]][_0xc56c[71]]}}})[_0xc56c[19]](function(){return MailServerOut[_0xc56c[42]](_0x51e3xe[_0xc56c[73]],{where:{id:_0x51e3xe[_0xc56c[73]][_0xc56c[71]]}})})[_0xc56c[19]](function(_0x51e3x29){return _0x51e3xf[_0xc56c[41]](200)})[_0xc56c[16]](function(_0x51e3x10){return handleError(_0x51e3xf,_0x51e3x10)})};exports[_0xc56c[42]]= function(_0x51e3xe,_0x51e3xf){if(_0x51e3xe[_0xc56c[73]][_0xc56c[71]]){delete _0x51e3xe[_0xc56c[73]][_0xc56c[71]]};return Settings[_0xc56c[43]](_0x51e3xe[_0xc56c[53]][_0xc56c[71]])[_0xc56c[19]](function(_0x51e3x27){if(!_0x51e3x27){return _0x51e3xf[_0xc56c[41]](404)};var _0x51e3x2a=_[_0xc56c[76]](_0x51e3x27,_0x51e3xe[_0xc56c[73]]);return _0x51e3x2a[_0xc56c[77]]()})[_0xc56c[19]](function(_0x51e3x27){return _0x51e3xf[_0xc56c[18]](200)[_0xc56c[17]](_0x51e3x27)})[_0xc56c[16]](function(_0x51e3x10){return handleError(_0x51e3xf,_0x51e3x10)})};exports[_0xc56c[78]]= function(_0x51e3xe,_0x51e3xf){return Settings[_0xc56c[43]](_0x51e3xe[_0xc56c[53]][_0xc56c[71]])[_0xc56c[19]](function(_0x51e3x27){if(!_0x51e3x27){return _0x51e3xf[_0xc56c[41]](404)};return _0x51e3x27[_0xc56c[78]]()})[_0xc56c[19]](function(){return _0x51e3xf[_0xc56c[41]](204)})[_0xc56c[16]](function(_0x51e3x10){return handleError(_0x51e3xf,_0x51e3x10)})};function handleError(_0x51e3xf,_0x51e3x10){return _0x51e3xf[_0xc56c[18]](500)[_0xc56c[17]](_0x51e3x10)}
\ No newline at end of file