Built motion from commit fd18f58.|0.0.129
[motion.git] / server / api / setting / setting.controller.js
index ecc527c..e86a3b4 100644 (file)
@@ -1 +1 @@
-var _0x8bad=["\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","\x6C\x6F\x67\x73","","\x72\x65\x61\x64\x46\x69\x6C\x65","\x70\x72\x6F\x6D\x69\x73\x69\x66\x79","\x65\x78\x69\x73\x74\x73","\x6C\x6F\x67\x73\x20\x65\x72\x72\x6F\x72\x3A","\x6D\x65\x73\x73\x61\x67\x65","\x6F\x75\x74\x70\x75\x74","\x4E\x6F\x20\x6F\x75\x74\x70\x75\x74\x20\x6C\x6F\x67\x20\x66\x69\x6C\x65\x20\x66\x6F\x75\x6E\x64\x21","\x2F\x76\x61\x72\x2F\x6C\x6F\x67\x2F\x78\x63\x61\x6C\x6C\x79\x2F\x6D\x6F\x74\x69\x6F\x6E\x2D\x6F\x75\x74\x2E\x6C\x6F\x67","\x75\x74\x66\x38","\x65\x72\x72\x6F\x72\x73","\x4E\x6F\x20\x65\x72\x72\x6F\x72\x20\x6C\x6F\x67\x20\x66\x69\x6C\x65\x20\x66\x6F\x75\x6E\x64\x21","\x2F\x76\x61\x72\x2F\x6C\x6F\x67\x2F\x78\x63\x61\x6C\x6C\x79\x2F\x6D\x6F\x74\x69\x6F\x6E\x2D\x65\x72\x72\x2E\x6C\x6F\x67","\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","\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"];_0x8bad[0];var _=require(_0x8bad[1]);var Settings=require(_0x8bad[3])[_0x8bad[2]];var system=require(_0x8bad[4]);var Agent=require(_0x8bad[3])[_0x8bad[5]];var VoiceMail=require(_0x8bad[3])[_0x8bad[6]];var MailServerOut=require(_0x8bad[3])[_0x8bad[7]];var Promise=require(_0x8bad[8]);var UploadFile=require(_0x8bad[9]);var path=require(_0x8bad[10]);var sequelize=require(_0x8bad[3])[_0x8bad[11]];var config=require(_0x8bad[12]);var sr=require(_0x8bad[13]);var fs=require(_0x8bad[14]);exports[_0x8bad[15]]= function(_0x50cdxe,_0x50cdxf){return Settings[_0x8bad[20]]()[_0x8bad[19]](function(_0x50cdx11){return _0x50cdxf[_0x8bad[18]](200)[_0x8bad[17]](_0x50cdx11)})[_0x8bad[16]](function(_0x50cdx10){return handleError(_0x50cdxf,_0x50cdx10)})};exports[_0x8bad[21]]= function(_0x50cdxe,_0x50cdxf){return Promise[_0x8bad[24]]([])[_0x8bad[19]](system[_0x8bad[23]]())[_0x8bad[19]](function(_0x50cdx12){return _0x50cdxf[_0x8bad[18]](200)[_0x8bad[17]](_0x50cdx12)})[_0x8bad[16]](function(_0x50cdx10){console[_0x8bad[22]](_0x50cdx10);return handleError(_0x50cdxf,_0x50cdx10)})};exports[_0x8bad[25]]= function(_0x50cdxe,_0x50cdxf){var _0x50cdx13={output:_0x8bad[26],errors:_0x8bad[26]};var _0x50cdx14=Promise[_0x8bad[28]](fs[_0x8bad[27]]);var _0x50cdx15=Promise[_0x8bad[28]](fs[_0x8bad[29]]);return _0x50cdx14(_0x8bad[38],_0x8bad[35])[_0x8bad[19]](function(_0x50cdx18){_0x50cdx13[_0x8bad[36]]= _0x50cdx18})[_0x8bad[16]](function(_0x50cdx10){_0x50cdx13[_0x8bad[36]]= _0x8bad[37]})[_0x8bad[19]](function(){return _0x50cdx14(_0x8bad[34],_0x8bad[35])})[_0x8bad[19]](function(_0x50cdx17){_0x50cdx13[_0x8bad[32]]= _0x50cdx17})[_0x8bad[16]](function(_0x50cdx10){_0x50cdx13[_0x8bad[32]]= _0x8bad[33]})[_0x8bad[19]](function(_0x50cdx16){return _0x50cdxf[_0x8bad[18]](200)[_0x8bad[17]](_0x50cdx13)})[_0x8bad[16]](function(_0x50cdx10){console[_0x8bad[22]](_0x8bad[30],_0x50cdx10[_0x8bad[31]]);return handleError(_0x50cdxf,_0x50cdx10)})};exports[_0x8bad[39]]= function(_0x50cdxe,_0x50cdxf){changeLogo(_0x50cdxe,_0x50cdxf,_0x8bad[40])};exports[_0x8bad[41]]= function(_0x50cdxe,_0x50cdxf){changeLogo(_0x50cdxe,_0x50cdxf,_0x8bad[42])};function changeLogo(_0x50cdxe,_0x50cdxf,_0x50cdx1a){var _0x50cdx1b= new UploadFile({dest:path[_0x8bad[47]](config[_0x8bad[43]],_0x8bad[44],_0x8bad[45],_0x8bad[46]),maxNumberOfFiles:1,minNumberOfFiles:0,acceptFileTypes:/(\.|\/)(jpeg|png)$/i,rename:function(_0x50cdx1c,_0x50cdx1d){return sr()+ path[_0x8bad[49]](_0x50cdx1d[_0x8bad[48]])},messages:{maxNumberOfFiles:_0x8bad[50],acceptFileTypes:_0x8bad[51],invalidRequest:_0x8bad[52]}});_0x50cdx1b[_0x8bad[59]](_0x8bad[53],function(_0x50cdx1e,_0x50cdx1f){if(!_0x50cdx1f[_0x8bad[54]][_0x8bad[48]]){return _0x50cdxf[_0x8bad[18]](500)[_0x8bad[17]](_0x50cdx1b)};return sequelize[_0x8bad[58]](function(_0x50cdx20){return Settings[_0x8bad[57]](1)[_0x8bad[19]](function(_0x50cdx11){if(!_0x50cdx11){return _0x50cdxf[_0x8bad[55]](404)};var _0x50cdx22={};_0x50cdx22[_0x50cdx1a]= _0x50cdx1f[_0x8bad[54]][_0x8bad[48]];return _0x50cdx11[_0x8bad[56]](_0x50cdx22,{transaction:_0x50cdx20})})[_0x8bad[19]](function(_0x50cdx21){return _0x50cdxf[_0x8bad[18]](200)[_0x8bad[17]](_0x50cdx21)})})[_0x8bad[16]](function(_0x50cdx10){return handleError(_0x50cdxf,_0x50cdx10)})});_0x50cdx1b[_0x8bad[59]](_0x8bad[60],function(_0x50cdx10){console[_0x8bad[22]](_0x8bad[61],_0x50cdx10);return handleError(_0x50cdxf,_0x50cdx10)});_0x50cdx1b[_0x8bad[62]](_0x50cdxe)}exports[_0x8bad[63]]= function(_0x50cdxe,_0x50cdxf){getLogo(_0x50cdxe,_0x50cdxf,_0x8bad[64])};exports[_0x8bad[65]]= function(_0x50cdxe,_0x50cdxf){getLogo(_0x50cdxe,_0x50cdxf,_0x8bad[66])};function getLogo(_0x50cdxe,_0x50cdxf,_0x50cdx24){var _0x50cdx25=path[_0x8bad[47]](config[_0x8bad[43]],_0x8bad[44],_0x8bad[45],_0x8bad[46],_0x50cdxe[_0x8bad[67]][_0x8bad[48]]);fs[_0x8bad[29]](_0x50cdx25,function(_0x50cdx15){if(!_0x50cdx15){_0x50cdx25= path[_0x8bad[47]](config[_0x8bad[43]],_0x8bad[44],_0x8bad[45],_0x8bad[46],_0x8bad[68],_0x50cdx24)};return _0x50cdxf[_0x8bad[69]](_0x50cdx25)})}exports[_0x8bad[70]]= function(_0x50cdxe,_0x50cdxf){var _0x50cdx26;return Settings[_0x8bad[57]](1)[_0x8bad[19]](function(_0x50cdx11){_0x50cdx26= _0x50cdx11;return Agent[_0x8bad[74]](_0x8bad[73])})[_0x8bad[19]](function(_0x50cdx27){var _0x50cdx28={value:0};if(_0x50cdx27){_0x50cdx28[_0x8bad[71]]=  ++_0x50cdx27}else {_0x50cdx28[_0x8bad[71]]= _0x50cdx26[_0x8bad[72]]};return _0x50cdxf[_0x8bad[18]](200)[_0x8bad[17]](_0x50cdx28)})[_0x8bad[16]](function(_0x50cdx10){return handleError(_0x50cdxf,_0x50cdx10)})};exports[_0x8bad[75]]= function(_0x50cdxe,_0x50cdxf){var _0x50cdx26;return Settings[_0x8bad[57]](1)[_0x8bad[19]](function(_0x50cdx11){_0x50cdx26= _0x50cdx11;return VoiceMail[_0x8bad[74]](_0x8bad[77])})[_0x8bad[19]](function(_0x50cdx29){var _0x50cdx2a={value:0};if(_0x50cdx29){_0x50cdx2a[_0x8bad[71]]=  ++_0x50cdx29}else {_0x50cdx2a[_0x8bad[71]]= _0x50cdx26[_0x8bad[76]]};return _0x50cdxf[_0x8bad[18]](200)[_0x8bad[17]](_0x50cdx2a)})[_0x8bad[16]](function(_0x50cdx10){console[_0x8bad[22]](_0x50cdx10);return handleError(_0x50cdxf,_0x50cdx10)})};exports[_0x8bad[78]]= function(_0x50cdxe,_0x50cdxf){var _0x50cdx2b=require(_0x8bad[79]);return _0x50cdxf[_0x8bad[18]](200)[_0x8bad[17]]({name:_0x50cdx2b[_0x8bad[80]],version:_0x50cdx2b[_0x8bad[81]],engines:_0x50cdx2b[_0x8bad[82]]})};exports[_0x8bad[83]]= function(_0x50cdxe,_0x50cdxf){return Settings[_0x8bad[57]](_0x50cdxe[_0x8bad[67]][_0x8bad[84]])[_0x8bad[19]](function(_0x50cdx2c){if(!_0x50cdx2c){return _0x50cdxf[_0x8bad[55]](404)};return _0x50cdxf[_0x8bad[17]](_0x50cdx2c)})[_0x8bad[16]](function(_0x50cdx10){return handleError(_0x50cdxf,_0x50cdx10)})};exports[_0x8bad[85]]= function(_0x50cdxe,_0x50cdxf){return Settings[_0x8bad[85]](_0x50cdxe[_0x8bad[86]])[_0x8bad[19]](function(_0x50cdx2c){return _0x50cdxf[_0x8bad[18]](201)[_0x8bad[17]](_0x50cdx2c)})[_0x8bad[16]](function(_0x50cdx10){return handleError(_0x50cdxf,_0x50cdx10)})};exports[_0x8bad[87]]= function(_0x50cdxe,_0x50cdxf){var _0x50cdx2d;return MailServerOut[_0x8bad[85]](_0x50cdxe[_0x8bad[86]])[_0x8bad[19]](function(_0x50cdx2e){_0x50cdx2d= _0x50cdx2e;return MailServerOut[_0x8bad[56]]({service:false},{where:{id:{$ne:_0x50cdx2e[_0x8bad[84]]}}})})[_0x8bad[19]](function(){return _0x50cdxf[_0x8bad[18]](201)[_0x8bad[17]](_0x50cdx2d)})[_0x8bad[16]](function(_0x50cdx10){return handleError(_0x50cdxf,_0x50cdx10)})};exports[_0x8bad[88]]= function(_0x50cdxe,_0x50cdxf){return MailServerOut[_0x8bad[56]]({service:false},{where:{id:{$ne:_0x50cdxe[_0x8bad[86]][_0x8bad[84]]}}})[_0x8bad[19]](function(){return MailServerOut[_0x8bad[56]](_0x50cdxe[_0x8bad[86]],{where:{id:_0x50cdxe[_0x8bad[86]][_0x8bad[84]]}})})[_0x8bad[19]](function(_0x50cdx2e){return _0x50cdxf[_0x8bad[55]](200)})[_0x8bad[16]](function(_0x50cdx10){return handleError(_0x50cdxf,_0x50cdx10)})};exports[_0x8bad[56]]= function(_0x50cdxe,_0x50cdxf){if(_0x50cdxe[_0x8bad[86]][_0x8bad[84]]){delete _0x50cdxe[_0x8bad[86]][_0x8bad[84]]};return Settings[_0x8bad[57]](_0x50cdxe[_0x8bad[67]][_0x8bad[84]])[_0x8bad[19]](function(_0x50cdx2c){if(!_0x50cdx2c){return _0x50cdxf[_0x8bad[55]](404)};var _0x50cdx2f=_[_0x8bad[89]](_0x50cdx2c,_0x50cdxe[_0x8bad[86]]);return _0x50cdx2f[_0x8bad[90]]()})[_0x8bad[19]](function(_0x50cdx2c){return _0x50cdxf[_0x8bad[18]](200)[_0x8bad[17]](_0x50cdx2c)})[_0x8bad[16]](function(_0x50cdx10){return handleError(_0x50cdxf,_0x50cdx10)})};exports[_0x8bad[91]]= function(_0x50cdxe,_0x50cdxf){return Settings[_0x8bad[57]](_0x50cdxe[_0x8bad[67]][_0x8bad[84]])[_0x8bad[19]](function(_0x50cdx2c){if(!_0x50cdx2c){return _0x50cdxf[_0x8bad[55]](404)};return _0x50cdx2c[_0x8bad[91]]()})[_0x8bad[19]](function(){return _0x50cdxf[_0x8bad[55]](204)})[_0x8bad[16]](function(_0x50cdx10){return handleError(_0x50cdxf,_0x50cdx10)})};function handleError(_0x50cdxf,_0x50cdx10){return _0x50cdxf[_0x8bad[18]](500)[_0x8bad[17]](_0x50cdx10)}
\ No newline at end of file
+var _0xe8aa=["\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","\x61\x73\x74\x65\x72\x69\x73\x6B\x43\x6F\x6D\x6D\x61\x6E\x64","\x43\x6F\x6D\x6D\x61\x6E\x64","\x74\x72\x69\x6D","\x63\x6F\x6D\x6D\x61\x6E\x64","\x62\x6F\x64\x79","\x61\x63\x74\x69\x6F\x6E","\x61\x6D\x69","\x6C\x6F\x63\x61\x6C\x73","\x61\x70\x70","\x70\x72\x6F\x6D\x69\x73\x69\x66\x79","\x6C\x6F\x67\x73","","\x72\x65\x61\x64\x46\x69\x6C\x65","\x65\x78\x69\x73\x74\x73","\x6C\x6F\x67\x73\x20\x65\x72\x72\x6F\x72\x3A","\x6D\x65\x73\x73\x61\x67\x65","\x6F\x75\x74\x70\x75\x74","\x4E\x6F\x20\x6F\x75\x74\x70\x75\x74\x20\x6C\x6F\x67\x20\x66\x69\x6C\x65\x20\x66\x6F\x75\x6E\x64\x21","\x2F\x76\x61\x72\x2F\x6C\x6F\x67\x2F\x78\x63\x61\x6C\x6C\x79\x2F\x6D\x6F\x74\x69\x6F\x6E\x2D\x6F\x75\x74\x2E\x6C\x6F\x67","\x75\x74\x66\x38","\x65\x72\x72\x6F\x72\x73","\x4E\x6F\x20\x65\x72\x72\x6F\x72\x20\x6C\x6F\x67\x20\x66\x69\x6C\x65\x20\x66\x6F\x75\x6E\x64\x21","\x2F\x76\x61\x72\x2F\x6C\x6F\x67\x2F\x78\x63\x61\x6C\x6C\x79\x2F\x6D\x6F\x74\x69\x6F\x6E\x2D\x65\x72\x72\x2E\x6C\x6F\x67","\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\x6F\x2D\x62\x69\x67\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","\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","\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"];_0xe8aa[0];var _=require(_0xe8aa[1]);var Settings=require(_0xe8aa[3])[_0xe8aa[2]];var system=require(_0xe8aa[4]);var Agent=require(_0xe8aa[3])[_0xe8aa[5]];var VoiceMail=require(_0xe8aa[3])[_0xe8aa[6]];var MailServerOut=require(_0xe8aa[3])[_0xe8aa[7]];var Promise=require(_0xe8aa[8]);var UploadFile=require(_0xe8aa[9]);var path=require(_0xe8aa[10]);var sequelize=require(_0xe8aa[3])[_0xe8aa[11]];var config=require(_0xe8aa[12]);var sr=require(_0xe8aa[13]);var fs=require(_0xe8aa[14]);exports[_0xe8aa[15]]= function(_0x4791xe,_0x4791xf){return Settings[_0xe8aa[20]]()[_0xe8aa[19]](function(_0x4791x11){return _0x4791xf[_0xe8aa[18]](200)[_0xe8aa[17]](_0x4791x11)})[_0xe8aa[16]](function(_0x4791x10){return handleError(_0x4791xf,_0x4791x10)})};exports[_0xe8aa[21]]= function(_0x4791xe,_0x4791xf){return Promise[_0xe8aa[24]]([])[_0xe8aa[19]](system[_0xe8aa[23]]())[_0xe8aa[19]](function(_0x4791x12){return _0x4791xf[_0xe8aa[18]](200)[_0xe8aa[17]](_0x4791x12)})[_0xe8aa[16]](function(_0x4791x10){console[_0xe8aa[22]](_0x4791x10);return handleError(_0x4791xf,_0x4791x10)})};exports[_0xe8aa[25]]= function(_0x4791xe,_0x4791xf){return Promise[_0xe8aa[34]](_0x4791xe[_0xe8aa[33]][_0xe8aa[32]][_0xe8aa[31]][_0xe8aa[30]])({action:_0xe8aa[26],command:_0x4791xe[_0xe8aa[29]][_0xe8aa[28]][_0xe8aa[27]]()})[_0xe8aa[19]](function(_0x4791x13){return _0x4791xf[_0xe8aa[18]](200)[_0xe8aa[17]](_0x4791x13)})[_0xe8aa[16]](function(_0x4791x10){console[_0xe8aa[22]](_0x4791x10);return handleError(_0x4791xf,_0x4791x10)})};exports[_0xe8aa[35]]= function(_0x4791xe,_0x4791xf){var _0x4791x14={output:_0xe8aa[36],errors:_0xe8aa[36]};var _0x4791x15=Promise[_0xe8aa[34]](fs[_0xe8aa[37]]);var _0x4791x16=Promise[_0xe8aa[34]](fs[_0xe8aa[38]]);return _0x4791x15(_0xe8aa[47],_0xe8aa[44])[_0xe8aa[19]](function(_0x4791x18){_0x4791x14[_0xe8aa[45]]= _0x4791x18})[_0xe8aa[16]](function(_0x4791x10){_0x4791x14[_0xe8aa[45]]= _0xe8aa[46]})[_0xe8aa[19]](function(){return _0x4791x15(_0xe8aa[43],_0xe8aa[44])})[_0xe8aa[19]](function(_0x4791x17){_0x4791x14[_0xe8aa[41]]= _0x4791x17})[_0xe8aa[16]](function(_0x4791x10){_0x4791x14[_0xe8aa[41]]= _0xe8aa[42]})[_0xe8aa[19]](function(_0x4791x13){return _0x4791xf[_0xe8aa[18]](200)[_0xe8aa[17]](_0x4791x14)})[_0xe8aa[16]](function(_0x4791x10){console[_0xe8aa[22]](_0xe8aa[39],_0x4791x10[_0xe8aa[40]]);return handleError(_0x4791xf,_0x4791x10)})};exports[_0xe8aa[48]]= function(_0x4791xe,_0x4791xf){changeLogo(_0x4791xe,_0x4791xf,_0xe8aa[49])};exports[_0xe8aa[50]]= function(_0x4791xe,_0x4791xf){changeLogo(_0x4791xe,_0x4791xf,_0xe8aa[51])};function changeLogo(_0x4791xe,_0x4791xf,_0x4791x1a){var _0x4791x1b= new UploadFile({dest:path[_0xe8aa[56]](config[_0xe8aa[52]],_0xe8aa[53],_0xe8aa[54],_0xe8aa[55]),maxNumberOfFiles:1,minNumberOfFiles:0,acceptFileTypes:/(\.|\/)(jpeg|png)$/i,rename:function(_0x4791x1c,_0x4791x1d){return sr()+ path[_0xe8aa[58]](_0x4791x1d[_0xe8aa[57]])},messages:{maxNumberOfFiles:_0xe8aa[59],acceptFileTypes:_0xe8aa[60],invalidRequest:_0xe8aa[61]}});_0x4791x1b[_0xe8aa[68]](_0xe8aa[62],function(_0x4791x1e,_0x4791x1f){if(!_0x4791x1f[_0xe8aa[63]][_0xe8aa[57]]){return _0x4791xf[_0xe8aa[18]](500)[_0xe8aa[17]](_0x4791x1b)};return sequelize[_0xe8aa[67]](function(_0x4791x20){return Settings[_0xe8aa[66]](1)[_0xe8aa[19]](function(_0x4791x11){if(!_0x4791x11){return _0x4791xf[_0xe8aa[64]](404)};var _0x4791x22={};_0x4791x22[_0x4791x1a]= _0x4791x1f[_0xe8aa[63]][_0xe8aa[57]];return _0x4791x11[_0xe8aa[65]](_0x4791x22,{transaction:_0x4791x20})})[_0xe8aa[19]](function(_0x4791x21){return _0x4791xf[_0xe8aa[18]](200)[_0xe8aa[17]](_0x4791x21)})})[_0xe8aa[16]](function(_0x4791x10){return handleError(_0x4791xf,_0x4791x10)})});_0x4791x1b[_0xe8aa[68]](_0xe8aa[69],function(_0x4791x10){console[_0xe8aa[22]](_0xe8aa[70],_0x4791x10);return handleError(_0x4791xf,_0x4791x10)});_0x4791x1b[_0xe8aa[71]](_0x4791xe)}exports[_0xe8aa[72]]= function(_0x4791xe,_0x4791xf){getLogo(_0x4791xe,_0x4791xf,_0xe8aa[73])};exports[_0xe8aa[74]]= function(_0x4791xe,_0x4791xf){getLogo(_0x4791xe,_0x4791xf,_0xe8aa[75])};function getLogo(_0x4791xe,_0x4791xf,_0x4791x24){var _0x4791x25=path[_0xe8aa[56]](config[_0xe8aa[52]],_0xe8aa[53],_0xe8aa[54],_0xe8aa[55],_0x4791xe[_0xe8aa[76]][_0xe8aa[57]]);fs[_0xe8aa[38]](_0x4791x25,function(_0x4791x16){if(!_0x4791x16){_0x4791x25= path[_0xe8aa[56]](config[_0xe8aa[52]],_0xe8aa[53],_0xe8aa[54],_0xe8aa[55],_0xe8aa[77],_0x4791x24)};return _0x4791xf[_0xe8aa[78]](_0x4791x25)})}exports[_0xe8aa[79]]= function(_0x4791xe,_0x4791xf){var _0x4791x26;return Settings[_0xe8aa[66]](1)[_0xe8aa[19]](function(_0x4791x11){_0x4791x26= _0x4791x11;return Agent[_0xe8aa[83]](_0xe8aa[82])})[_0xe8aa[19]](function(_0x4791x27){var _0x4791x28={value:0};if(_0x4791x27){_0x4791x28[_0xe8aa[80]]=  ++_0x4791x27}else {_0x4791x28[_0xe8aa[80]]= _0x4791x26[_0xe8aa[81]]};return _0x4791xf[_0xe8aa[18]](200)[_0xe8aa[17]](_0x4791x28)})[_0xe8aa[16]](function(_0x4791x10){return handleError(_0x4791xf,_0x4791x10)})};exports[_0xe8aa[84]]= function(_0x4791xe,_0x4791xf){var _0x4791x26;return Settings[_0xe8aa[66]](1)[_0xe8aa[19]](function(_0x4791x11){_0x4791x26= _0x4791x11;return VoiceMail[_0xe8aa[83]](_0xe8aa[86])})[_0xe8aa[19]](function(_0x4791x29){var _0x4791x2a={value:0};if(_0x4791x29){_0x4791x2a[_0xe8aa[80]]=  ++_0x4791x29}else {_0x4791x2a[_0xe8aa[80]]= _0x4791x26[_0xe8aa[85]]};return _0x4791xf[_0xe8aa[18]](200)[_0xe8aa[17]](_0x4791x2a)})[_0xe8aa[16]](function(_0x4791x10){console[_0xe8aa[22]](_0x4791x10);return handleError(_0x4791xf,_0x4791x10)})};exports[_0xe8aa[87]]= function(_0x4791xe,_0x4791xf){var _0x4791x2b=require(_0xe8aa[88]);return _0x4791xf[_0xe8aa[18]](200)[_0xe8aa[17]]({name:_0x4791x2b[_0xe8aa[89]],version:_0x4791x2b[_0xe8aa[90]],engines:_0x4791x2b[_0xe8aa[91]]})};exports[_0xe8aa[92]]= function(_0x4791xe,_0x4791xf){return Settings[_0xe8aa[66]](_0x4791xe[_0xe8aa[76]][_0xe8aa[93]])[_0xe8aa[19]](function(_0x4791x2c){if(!_0x4791x2c){return _0x4791xf[_0xe8aa[64]](404)};return _0x4791xf[_0xe8aa[17]](_0x4791x2c)})[_0xe8aa[16]](function(_0x4791x10){return handleError(_0x4791xf,_0x4791x10)})};exports[_0xe8aa[94]]= function(_0x4791xe,_0x4791xf){return Settings[_0xe8aa[94]](_0x4791xe[_0xe8aa[29]])[_0xe8aa[19]](function(_0x4791x2c){return _0x4791xf[_0xe8aa[18]](201)[_0xe8aa[17]](_0x4791x2c)})[_0xe8aa[16]](function(_0x4791x10){return handleError(_0x4791xf,_0x4791x10)})};exports[_0xe8aa[95]]= function(_0x4791xe,_0x4791xf){var _0x4791x2d;return MailServerOut[_0xe8aa[94]](_0x4791xe[_0xe8aa[29]])[_0xe8aa[19]](function(_0x4791x2e){_0x4791x2d= _0x4791x2e;return MailServerOut[_0xe8aa[65]]({service:false},{where:{id:{$ne:_0x4791x2e[_0xe8aa[93]]}}})})[_0xe8aa[19]](function(){return _0x4791xf[_0xe8aa[18]](201)[_0xe8aa[17]](_0x4791x2d)})[_0xe8aa[16]](function(_0x4791x10){return handleError(_0x4791xf,_0x4791x10)})};exports[_0xe8aa[96]]= function(_0x4791xe,_0x4791xf){return MailServerOut[_0xe8aa[65]]({service:false},{where:{id:{$ne:_0x4791xe[_0xe8aa[29]][_0xe8aa[93]]}}})[_0xe8aa[19]](function(){return MailServerOut[_0xe8aa[65]](_0x4791xe[_0xe8aa[29]],{where:{id:_0x4791xe[_0xe8aa[29]][_0xe8aa[93]]}})})[_0xe8aa[19]](function(_0x4791x2e){return _0x4791xf[_0xe8aa[64]](200)})[_0xe8aa[16]](function(_0x4791x10){return handleError(_0x4791xf,_0x4791x10)})};exports[_0xe8aa[65]]= function(_0x4791xe,_0x4791xf){if(_0x4791xe[_0xe8aa[29]][_0xe8aa[93]]){delete _0x4791xe[_0xe8aa[29]][_0xe8aa[93]]};return Settings[_0xe8aa[66]](_0x4791xe[_0xe8aa[76]][_0xe8aa[93]])[_0xe8aa[19]](function(_0x4791x2c){if(!_0x4791x2c){return _0x4791xf[_0xe8aa[64]](404)};var _0x4791x2f=_[_0xe8aa[97]](_0x4791x2c,_0x4791xe[_0xe8aa[29]]);return _0x4791x2f[_0xe8aa[98]]()})[_0xe8aa[19]](function(_0x4791x2c){return _0x4791xf[_0xe8aa[18]](200)[_0xe8aa[17]](_0x4791x2c)})[_0xe8aa[16]](function(_0x4791x10){return handleError(_0x4791xf,_0x4791x10)})};exports[_0xe8aa[99]]= function(_0x4791xe,_0x4791xf){return Settings[_0xe8aa[66]](_0x4791xe[_0xe8aa[76]][_0xe8aa[93]])[_0xe8aa[19]](function(_0x4791x2c){if(!_0x4791x2c){return _0x4791xf[_0xe8aa[64]](404)};return _0x4791x2c[_0xe8aa[99]]()})[_0xe8aa[19]](function(){return _0x4791xf[_0xe8aa[64]](204)})[_0xe8aa[16]](function(_0x4791x10){return handleError(_0x4791xf,_0x4791x10)})};function handleError(_0x4791xf,_0x4791x10){return _0x4791xf[_0xe8aa[18]](500)[_0xe8aa[17]](_0x4791x10)}
\ No newline at end of file