Built motion from commit 48095ee.|0.0.102
[motion.git] / server / api / sound / sound.controller.js
index 26df55c..5a59a78 100644 (file)
@@ -1 +1 @@
-var _0x5ab8=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x53\x6F\x75\x6E\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x75\x70\x6C\x6F\x61\x64\x2D\x66\x69\x6C\x65","\x73\x69\x6D\x70\x6C\x65\x2D\x72\x61\x6E\x64\x6F\x6D","\x73\x6F\x78","\x70\x61\x74\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x66\x73","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x66\x69\x6C\x65\x2D\x62\x61\x73\x65\x36\x34","\x62\x6C\x75\x65\x62\x69\x72\x64","\x53\x65\x74\x74\x69\x6E\x67\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\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x53\x6F\x75\x6E\x64\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\x77\x61\x76\x2C\x6D\x70\x33\x2C\x67\x73\x6D\x2C\x20\x61\x6E\x64\x20\x6F\x67\x67\x20\x66\x6F\x72\x6D\x61\x74\x20\x61\x63\x63\x65\x70\x74\x65\x64","\x54\x68\x65\x20\x6D\x61\x78\x69\x6D\x75\x6D\x20\x66\x69\x6C\x65\x20\x73\x69\x7A\x65\x20\x69\x73\x20\x31\x35\x20\x4D\x62","\x49\x6E\x76\x61\x6C\x69\x64\x20\x72\x65\x71\x75\x65\x73\x74","\x65\x6E\x64","\x66\x69\x6C\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x66\x6F\x72\x6D\x61\x74","\x73\x75\x62\x73\x74\x72\x69\x6E\x67","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x66\x6F\x72\x6D\x61\x74","\x77\x61\x76","\x6E\x61\x6D\x65","\x64\x69\x73\x70\x6C\x61\x79\x5F\x6E\x61\x6D\x65","\x62\x61\x73\x65\x6E\x61\x6D\x65","\x73\x61\x76\x65\x5F\x6E\x61\x6D\x65","\x73\x6F\x75\x6E\x64\x50\x61\x74\x68","\x2F\x76\x61\x72\x2F\x6F\x70\x74\x2F\x6D\x6F\x74\x69\x6F\x6E\x2F\x73\x65\x72\x76\x65\x72\x2F\x66\x69\x6C\x65\x73\x2F\x73\x6F\x75\x6E\x64\x73\x2F\x63\x6F\x6E\x76\x65\x72\x74\x65\x64","\x2E","\x30\x37\x37\x37","\x63\x68\x6D\x6F\x64\x53\x79\x6E\x63","\x69\x64\x65\x6E\x74\x69\x66\x79","\x74\x72\x61\x6E\x73\x63\x6F\x64\x65","\x65\x72\x72\x6F\x72","\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x20\x43\x6F\x6E\x76\x65\x72\x73\x69\x6F\x6E\x20\x45\x72\x72\x6F\x72\x3A\x20","\x75\x6E\x6C\x69\x6E\x6B","\x6F\x6E","\x70\x72\x6F\x67\x72\x65\x73\x73","\x73\x72\x63","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x64\x75\x72\x61\x74\x69\x6F\x6E","\x64\x75\x72\x61\x74\x69\x6F\x6E","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x73\x61\x6D\x70\x6C\x65\x43\x6F\x75\x6E\x74","\x73\x61\x6D\x70\x6C\x65\x43\x6F\x75\x6E\x74","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x63\x68\x61\x6E\x6E\x65\x6C\x43\x6F\x75\x6E\x74","\x63\x68\x61\x6E\x6E\x65\x6C\x43\x6F\x75\x6E\x74","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x62\x69\x74\x52\x61\x74\x65","\x62\x69\x74\x52\x61\x74\x65","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x73\x61\x6D\x70\x6C\x65\x52\x61\x74\x65","\x73\x61\x6D\x70\x6C\x65\x52\x61\x74\x65","\x64\x65\x73\x74","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x64\x75\x72\x61\x74\x69\x6F\x6E","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x73\x61\x6D\x70\x6C\x65\x43\x6F\x75\x6E\x74","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x63\x68\x61\x6E\x6E\x65\x6C\x43\x6F\x75\x6E\x74","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x62\x69\x74\x52\x61\x74\x65","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x73\x61\x6D\x70\x6C\x65\x52\x61\x74\x65","\x43\x6F\x6E\x76\x65\x72\x73\x69\x6F\x6E\x20\x63\x6F\x6D\x70\x6C\x65\x74\x65\x64","\x6C\x6F\x67","\x73\x74\x61\x72\x74","\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","\x75\x70\x64\x61\x74\x65","\x62\x6F\x64\x79","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x6F\x72\x69\x67\x69\x6E\x61\x6C","\x73\x74\x72\x65\x61\x6D","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64","\x62\x61\x73\x65\x36\x34","\x62\x69\x6E\x61\x72\x79","\x72\x65\x61\x64\x46\x69\x6C\x65","\x70\x72\x6F\x6D\x69\x73\x69\x66\x79","\x53\x6F\x75\x6E\x64\x73","\x5F\x66\x6F\x72\x6D\x61\x74"];_0x5ab8[0];var _=require(_0x5ab8[1]);var Sound=require(_0x5ab8[3])[_0x5ab8[2]];var uploadFile=require(_0x5ab8[4]);var sr=require(_0x5ab8[5]);var sox=require(_0x5ab8[6]);var path=require(_0x5ab8[7]);var config=require(_0x5ab8[8]);var fs=require(_0x5ab8[9]);var sequelize=require(_0x5ab8[3])[_0x5ab8[10]];var base64=require(_0x5ab8[11]);var Promise=require(_0x5ab8[12]);var Settings=require(_0x5ab8[3])[_0x5ab8[13]];exports[_0x5ab8[14]]=function(_0x3d5cxd,_0x3d5cxe){return Sound[_0x5ab8[19]]()[_0x5ab8[18]](function(_0x3d5cx10){return _0x3d5cxe[_0x5ab8[17]](200)[_0x5ab8[16]](_0x3d5cx10)})[_0x5ab8[15]](function(_0x3d5cxf){return handleError(_0x3d5cxe,_0x3d5cxf)})};exports[_0x5ab8[20]]=function(_0x3d5cxd,_0x3d5cxe){return Sound[_0x5ab8[24]](_0x3d5cxd[_0x5ab8[23]][_0x5ab8[22]])[_0x5ab8[18]](function(Sound){if(!Sound){return _0x3d5cxe[_0x5ab8[21]](404)};return _0x3d5cxe[_0x5ab8[16]](Sound)})[_0x5ab8[15]](function(_0x3d5cxf){return handleError(_0x3d5cxe,_0x3d5cxf)})};exports[_0x5ab8[25]]=function(_0x3d5cxd,_0x3d5cxe){var _0x3d5cx11= new uploadFile({dest:path[_0x5ab8[27]](config[_0x5ab8[26]]),maxFileSize:15*1000000,maxNumberOfFiles:10,minNumberOfFiles:0,acceptFileTypes:/(\.|\/)(wav|mp3|gsm|ogg)$/i,rename:function(_0x3d5cx12,_0x3d5cx13){return sr()+path[_0x5ab8[29]](_0x3d5cx13[_0x5ab8[28]])},messages:{maxNumberOfFiles:_0x5ab8[30],acceptFileTypes:_0x5ab8[31],maxFileSize:_0x5ab8[32],invalidRequest:_0x5ab8[33]}});_0x3d5cx11[_0x5ab8[56]](_0x5ab8[34],function(_0x3d5cx14,_0x3d5cx15){if(!_0x3d5cx15[_0x5ab8[35]][_0x5ab8[28]]){return _0x3d5cxe[_0x5ab8[17]](500)[_0x5ab8[16]](_0x3d5cx11)};return Settings[_0x5ab8[24]](1)[_0x5ab8[18]](function(_0x3d5cx16){var _0x3d5cx17={};var _0x3d5cx18=path[_0x5ab8[29]](_0x3d5cx15[_0x5ab8[35]][_0x5ab8[28]]);_0x3d5cx17[_0x5ab8[36]]=_0x5ab8[37];_0x3d5cx17[_0x5ab8[38]]=path[_0x5ab8[29]](_0x3d5cx15[_0x5ab8[35]][_0x5ab8[28]])[_0x5ab8[39]](1);_0x3d5cx17[_0x5ab8[40]]=_0x5ab8[41];_0x3d5cx17[_0x5ab8[42]]=_0x3d5cx17[_0x5ab8[43]]=path[_0x5ab8[44]](_0x3d5cx15[_0x5ab8[35]][_0x5ab8[7]],_0x3d5cx18);_0x3d5cx17[_0x5ab8[45]]=path[_0x5ab8[44]](_0x3d5cx15[_0x5ab8[35]][_0x5ab8[28]],_0x3d5cx18);var _0x3d5cx19=path[_0x5ab8[27]](config[_0x5ab8[26]],_0x3d5cx17[_0x5ab8[45]]+_0x3d5cx18);var _0x3d5cx1a=path[_0x5ab8[27]](_0x3d5cx16[_0x5ab8[46]]||_0x5ab8[47],_0x3d5cx17[_0x5ab8[45]]+_0x5ab8[48]+_0x3d5cx17[_0x5ab8[40]]);fs[_0x5ab8[50]](_0x3d5cx19,parseInt(_0x5ab8[49],8));sox[_0x5ab8[51]](_0x3d5cx19,function(_0x3d5cxf,_0x3d5cx1b){});var _0x3d5cx1c=sox[_0x5ab8[52]](_0x3d5cx19,_0x3d5cx1a,{sampleRate:8000,format:_0x5ab8[41],channelCount:1,bitRate:192*1024,compressionQuality:5});_0x3d5cx1c[_0x5ab8[56]](_0x5ab8[53],function(_0x3d5cxf){console[_0x5ab8[53]](_0x5ab8[54],_0x3d5cxf);fs[_0x5ab8[55]](_0x3d5cx19,function(_0x3d5cxf){if(_0x3d5cxf){return handleError(_0x3d5cxe,_0x3d5cxf)}});return handleError(_0x3d5cxe,_0x3d5cxf)});_0x3d5cx1c[_0x5ab8[56]](_0x5ab8[57],function(_0x3d5cx1d,_0x3d5cx1e){});_0x3d5cx1c[_0x5ab8[56]](_0x5ab8[58],function(_0x3d5cx1f){_0x3d5cx17[_0x5ab8[59]]=isNaN(_0x3d5cx1f[_0x5ab8[60]])?null:_0x3d5cx1f[_0x5ab8[60]]*1000;_0x3d5cx17[_0x5ab8[61]]=isNaN(_0x3d5cx1f[_0x5ab8[62]])?null:_0x3d5cx1f[_0x5ab8[62]];_0x3d5cx17[_0x5ab8[63]]=isNaN(_0x3d5cx1f[_0x5ab8[64]])?null:_0x3d5cx1f[_0x5ab8[64]];_0x3d5cx17[_0x5ab8[65]]=isNaN(_0x3d5cx1f[_0x5ab8[66]])?null:_0x3d5cx1f[_0x5ab8[66]];_0x3d5cx17[_0x5ab8[67]]=isNaN(_0x3d5cx1f[_0x5ab8[68]])?null:_0x3d5cx1f[_0x5ab8[68]]});_0x3d5cx1c[_0x5ab8[56]](_0x5ab8[69],function(_0x3d5cx1f){_0x3d5cx17[_0x5ab8[70]]=isNaN(_0x3d5cx1f[_0x5ab8[60]])?null:_0x3d5cx1f[_0x5ab8[60]]*1000;_0x3d5cx17[_0x5ab8[71]]=isNaN(_0x3d5cx1f[_0x5ab8[62]])?null:_0x3d5cx1f[_0x5ab8[62]];_0x3d5cx17[_0x5ab8[72]]=isNaN(_0x3d5cx1f[_0x5ab8[64]])?null:_0x3d5cx1f[_0x5ab8[64]];_0x3d5cx17[_0x5ab8[73]]=isNaN(_0x3d5cx1f[_0x5ab8[66]])?null:_0x3d5cx1f[_0x5ab8[66]];_0x3d5cx17[_0x5ab8[74]]=isNaN(_0x3d5cx1f[_0x5ab8[68]])?null:_0x3d5cx1f[_0x5ab8[68]]});_0x3d5cx1c[_0x5ab8[56]](_0x5ab8[34],function(){console[_0x5ab8[76]](_0x5ab8[75]);fs[_0x5ab8[50]](_0x3d5cx1a,parseInt(_0x5ab8[49],8));return Sound[_0x5ab8[25]](_0x3d5cx17)[_0x5ab8[18]](function(_0x3d5cx20){return _0x3d5cxe[_0x5ab8[17]](201)[_0x5ab8[16]](_0x3d5cx20)})[_0x5ab8[15]](function(_0x3d5cxf){console[_0x5ab8[76]](_0x3d5cxf);return handleError(_0x3d5cxe,_0x3d5cxf)})});_0x3d5cx1c[_0x5ab8[77]]()})[_0x5ab8[15]](function(_0x3d5cxf){return handleError(_0x3d5cxe,_0x3d5cxf)})});_0x3d5cx11[_0x5ab8[56]](_0x5ab8[53],function(_0x3d5cxf){console[_0x5ab8[76]](_0x5ab8[78],_0x3d5cxf);return handleError(_0x3d5cxe,_0x3d5cxf)});_0x3d5cx11[_0x5ab8[79]](_0x3d5cxd)};exports[_0x5ab8[80]]=function(_0x3d5cxd,_0x3d5cxe){if(_0x3d5cxd[_0x5ab8[81]][_0x5ab8[22]]){delete _0x3d5cxd[_0x5ab8[81]][_0x5ab8[22]]};return Sound[_0x5ab8[24]](_0x3d5cxd[_0x5ab8[23]][_0x5ab8[22]])[_0x5ab8[18]](function(_0x3d5cx20){if(!_0x3d5cx20){return _0x3d5cxe[_0x5ab8[21]](404)};var _0x3d5cx21=_[_0x5ab8[82]](_0x3d5cx20,_0x3d5cxd[_0x5ab8[81]]);return _0x3d5cx21[_0x5ab8[83]]()})[_0x5ab8[18]](function(_0x3d5cx20){return _0x3d5cxe[_0x5ab8[17]](200)[_0x5ab8[16]](_0x3d5cx20)})[_0x5ab8[15]](function(_0x3d5cxf){return handleError(_0x3d5cxe,_0x3d5cxf)})};exports[_0x5ab8[84]]=function(_0x3d5cxd,_0x3d5cxe){var _0x3d5cx22;return Settings[_0x5ab8[24]](1)[_0x5ab8[18]](function(_0x3d5cx16){_0x3d5cx22=_0x3d5cx16;return Sound[_0x5ab8[24]](_0x3d5cxd[_0x5ab8[23]][_0x5ab8[22]])})[_0x5ab8[18]](function(_0x3d5cx20){if(!_0x3d5cx20){return _0x3d5cxe[_0x5ab8[21]](404)};var _0x3d5cx23=path[_0x5ab8[27]](config[_0x5ab8[26]],_0x3d5cx20[_0x5ab8[45]]+_0x5ab8[48]+_0x3d5cx20[_0x5ab8[38]]);var _0x3d5cx24=path[_0x5ab8[27]](_0x3d5cx22[_0x5ab8[46]]||_0x5ab8[47],_0x3d5cx20[_0x5ab8[45]]+_0x5ab8[48]+_0x3d5cx20[_0x5ab8[40]]);return sequelize[_0x5ab8[85]](function(_0x3d5cx25){return _0x3d5cx20[_0x5ab8[84]]({transaction:_0x3d5cx25})[_0x5ab8[18]](function(){fs[_0x5ab8[55]](_0x3d5cx23,function(_0x3d5cxf){if(_0x3d5cxf){return handleError(_0x3d5cxe,_0x3d5cxf)}});fs[_0x5ab8[55]](_0x3d5cx24,function(_0x3d5cxf){if(_0x3d5cxf){return handleError(_0x3d5cxe,_0x3d5cxf)}});return _0x3d5cxe[_0x5ab8[17]](200)[_0x5ab8[16]](_0x3d5cx20)})})[_0x5ab8[15]](function(_0x3d5cxf){return handleError(_0x3d5cxe,_0x3d5cxf)})})[_0x5ab8[15]](function(_0x3d5cxf){return handleError(_0x3d5cxe,_0x3d5cxf)})};exports[_0x5ab8[86]]=function(_0x3d5cxd,_0x3d5cxe){getStream(_0x3d5cxd,_0x3d5cxe,_0x5ab8[87])};exports[_0x5ab8[88]]=function(_0x3d5cxd,_0x3d5cxe){getStream(_0x3d5cxd,_0x3d5cxe,_0x5ab8[89])};function getStream(_0x3d5cxd,_0x3d5cxe,_0x3d5cx27){return Sound[_0x5ab8[24]](_0x3d5cxd[_0x5ab8[23]][_0x5ab8[22]])[_0x5ab8[18]](function(_0x3d5cx20){var _0x3d5cx29=Promise[_0x5ab8[93]](fs[_0x5ab8[92]]);return _0x3d5cx29(path[_0x5ab8[27]](config[_0x3d5cx27+_0x5ab8[94]],_0x3d5cx20[_0x5ab8[45]]+_0x5ab8[48]+_0x3d5cx20[_0x3d5cx27+_0x5ab8[95]]))})[_0x5ab8[18]](function(_0x3d5cx1b){var _0x3d5cx28= new Buffer(_0x3d5cx1b,_0x5ab8[91]).toString(_0x5ab8[90]);return _0x3d5cx28})[_0x5ab8[18]](function(_0x3d5cx28){return _0x3d5cxe[_0x5ab8[17]](200)[_0x5ab8[16]]({downloadString:_0x3d5cx28})})[_0x5ab8[15]](function(_0x3d5cxf){console[_0x5ab8[76]](_0x3d5cxf);return handleError(_0x3d5cxe,_0x3d5cxf)})}function handleError(_0x3d5cxe,_0x3d5cxf){return _0x3d5cxe[_0x5ab8[17]](500)[_0x5ab8[16]](_0x3d5cxf)}
\ No newline at end of file
+var _0x3615=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x53\x6F\x75\x6E\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x75\x70\x6C\x6F\x61\x64\x2D\x66\x69\x6C\x65","\x73\x69\x6D\x70\x6C\x65\x2D\x72\x61\x6E\x64\x6F\x6D","\x73\x6F\x78","\x70\x61\x74\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x66\x73","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x66\x69\x6C\x65\x2D\x62\x61\x73\x65\x36\x34","\x62\x6C\x75\x65\x62\x69\x72\x64","\x53\x65\x74\x74\x69\x6E\x67\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\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x53\x6F\x75\x6E\x64\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\x77\x61\x76\x2C\x6D\x70\x33\x2C\x67\x73\x6D\x2C\x20\x61\x6E\x64\x20\x6F\x67\x67\x20\x66\x6F\x72\x6D\x61\x74\x20\x61\x63\x63\x65\x70\x74\x65\x64","\x54\x68\x65\x20\x6D\x61\x78\x69\x6D\x75\x6D\x20\x66\x69\x6C\x65\x20\x73\x69\x7A\x65\x20\x69\x73\x20\x31\x35\x20\x4D\x62","\x49\x6E\x76\x61\x6C\x69\x64\x20\x72\x65\x71\x75\x65\x73\x74","\x65\x6E\x64","\x66\x69\x6C\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x66\x6F\x72\x6D\x61\x74","\x73\x75\x62\x73\x74\x72\x69\x6E\x67","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x66\x6F\x72\x6D\x61\x74","\x77\x61\x76","\x6E\x61\x6D\x65","\x64\x69\x73\x70\x6C\x61\x79\x5F\x6E\x61\x6D\x65","\x62\x61\x73\x65\x6E\x61\x6D\x65","\x73\x61\x76\x65\x5F\x6E\x61\x6D\x65","\x73\x6F\x75\x6E\x64\x50\x61\x74\x68","\x2F\x76\x61\x72\x2F\x6F\x70\x74\x2F\x6D\x6F\x74\x69\x6F\x6E\x2F\x73\x65\x72\x76\x65\x72\x2F\x66\x69\x6C\x65\x73\x2F\x73\x6F\x75\x6E\x64\x73\x2F\x63\x6F\x6E\x76\x65\x72\x74\x65\x64","\x2E","\x30\x37\x37\x37","\x63\x68\x6D\x6F\x64\x53\x79\x6E\x63","\x69\x64\x65\x6E\x74\x69\x66\x79","\x74\x72\x61\x6E\x73\x63\x6F\x64\x65","\x65\x72\x72\x6F\x72","\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x20\x43\x6F\x6E\x76\x65\x72\x73\x69\x6F\x6E\x20\x45\x72\x72\x6F\x72\x3A\x20","\x75\x6E\x6C\x69\x6E\x6B","\x6F\x6E","\x70\x72\x6F\x67\x72\x65\x73\x73","\x73\x72\x63","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x64\x75\x72\x61\x74\x69\x6F\x6E","\x64\x75\x72\x61\x74\x69\x6F\x6E","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x73\x61\x6D\x70\x6C\x65\x43\x6F\x75\x6E\x74","\x73\x61\x6D\x70\x6C\x65\x43\x6F\x75\x6E\x74","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x63\x68\x61\x6E\x6E\x65\x6C\x43\x6F\x75\x6E\x74","\x63\x68\x61\x6E\x6E\x65\x6C\x43\x6F\x75\x6E\x74","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x62\x69\x74\x52\x61\x74\x65","\x62\x69\x74\x52\x61\x74\x65","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x73\x61\x6D\x70\x6C\x65\x52\x61\x74\x65","\x73\x61\x6D\x70\x6C\x65\x52\x61\x74\x65","\x64\x65\x73\x74","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x64\x75\x72\x61\x74\x69\x6F\x6E","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x73\x61\x6D\x70\x6C\x65\x43\x6F\x75\x6E\x74","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x63\x68\x61\x6E\x6E\x65\x6C\x43\x6F\x75\x6E\x74","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x62\x69\x74\x52\x61\x74\x65","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x73\x61\x6D\x70\x6C\x65\x52\x61\x74\x65","\x43\x6F\x6E\x76\x65\x72\x73\x69\x6F\x6E\x20\x63\x6F\x6D\x70\x6C\x65\x74\x65\x64","\x6C\x6F\x67","\x73\x74\x61\x72\x74","\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","\x75\x70\x64\x61\x74\x65","\x62\x6F\x64\x79","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x6F\x72\x69\x67\x69\x6E\x61\x6C","\x73\x74\x72\x65\x61\x6D","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64","\x62\x61\x73\x65\x36\x34","\x62\x69\x6E\x61\x72\x79","\x72\x65\x61\x64\x46\x69\x6C\x65","\x70\x72\x6F\x6D\x69\x73\x69\x66\x79","\x53\x6F\x75\x6E\x64\x73","\x5F\x66\x6F\x72\x6D\x61\x74"];_0x3615[0];var _=require(_0x3615[1]);var Sound=require(_0x3615[3])[_0x3615[2]];var uploadFile=require(_0x3615[4]);var sr=require(_0x3615[5]);var sox=require(_0x3615[6]);var path=require(_0x3615[7]);var config=require(_0x3615[8]);var fs=require(_0x3615[9]);var sequelize=require(_0x3615[3])[_0x3615[10]];var base64=require(_0x3615[11]);var Promise=require(_0x3615[12]);var Settings=require(_0x3615[3])[_0x3615[13]];exports[_0x3615[14]]=function(_0xc09dxd,_0xc09dxe){return Sound[_0x3615[19]]()[_0x3615[18]](function(_0xc09dx10){return _0xc09dxe[_0x3615[17]](200)[_0x3615[16]](_0xc09dx10)})[_0x3615[15]](function(_0xc09dxf){return handleError(_0xc09dxe,_0xc09dxf)})};exports[_0x3615[20]]=function(_0xc09dxd,_0xc09dxe){return Sound[_0x3615[24]](_0xc09dxd[_0x3615[23]][_0x3615[22]])[_0x3615[18]](function(Sound){if(!Sound){return _0xc09dxe[_0x3615[21]](404)};return _0xc09dxe[_0x3615[16]](Sound)})[_0x3615[15]](function(_0xc09dxf){return handleError(_0xc09dxe,_0xc09dxf)})};exports[_0x3615[25]]=function(_0xc09dxd,_0xc09dxe){var _0xc09dx11= new uploadFile({dest:path[_0x3615[27]](config[_0x3615[26]]),maxFileSize:15*1000000,maxNumberOfFiles:10,minNumberOfFiles:0,acceptFileTypes:/(\.|\/)(wav|mp3|gsm|ogg)$/i,rename:function(_0xc09dx12,_0xc09dx13){return sr()+path[_0x3615[29]](_0xc09dx13[_0x3615[28]])},messages:{maxNumberOfFiles:_0x3615[30],acceptFileTypes:_0x3615[31],maxFileSize:_0x3615[32],invalidRequest:_0x3615[33]}});_0xc09dx11[_0x3615[56]](_0x3615[34],function(_0xc09dx14,_0xc09dx15){if(!_0xc09dx15[_0x3615[35]][_0x3615[28]]){return _0xc09dxe[_0x3615[17]](500)[_0x3615[16]](_0xc09dx11)};return Settings[_0x3615[24]](1)[_0x3615[18]](function(_0xc09dx16){var _0xc09dx17={};var _0xc09dx18=path[_0x3615[29]](_0xc09dx15[_0x3615[35]][_0x3615[28]]);_0xc09dx17[_0x3615[36]]=_0x3615[37];_0xc09dx17[_0x3615[38]]=path[_0x3615[29]](_0xc09dx15[_0x3615[35]][_0x3615[28]])[_0x3615[39]](1);_0xc09dx17[_0x3615[40]]=_0x3615[41];_0xc09dx17[_0x3615[42]]=_0xc09dx17[_0x3615[43]]=path[_0x3615[44]](_0xc09dx15[_0x3615[35]][_0x3615[7]],_0xc09dx18);_0xc09dx17[_0x3615[45]]=path[_0x3615[44]](_0xc09dx15[_0x3615[35]][_0x3615[28]],_0xc09dx18);var _0xc09dx19=path[_0x3615[27]](config[_0x3615[26]],_0xc09dx17[_0x3615[45]]+_0xc09dx18);var _0xc09dx1a=path[_0x3615[27]](_0xc09dx16[_0x3615[46]]||_0x3615[47],_0xc09dx17[_0x3615[45]]+_0x3615[48]+_0xc09dx17[_0x3615[40]]);fs[_0x3615[50]](_0xc09dx19,parseInt(_0x3615[49],8));sox[_0x3615[51]](_0xc09dx19,function(_0xc09dxf,_0xc09dx1b){});var _0xc09dx1c=sox[_0x3615[52]](_0xc09dx19,_0xc09dx1a,{sampleRate:8000,format:_0x3615[41],channelCount:1,bitRate:192*1024,compressionQuality:5});_0xc09dx1c[_0x3615[56]](_0x3615[53],function(_0xc09dxf){console[_0x3615[53]](_0x3615[54],_0xc09dxf);fs[_0x3615[55]](_0xc09dx19,function(_0xc09dxf){if(_0xc09dxf){return handleError(_0xc09dxe,_0xc09dxf)}});return handleError(_0xc09dxe,_0xc09dxf)});_0xc09dx1c[_0x3615[56]](_0x3615[57],function(_0xc09dx1d,_0xc09dx1e){});_0xc09dx1c[_0x3615[56]](_0x3615[58],function(_0xc09dx1f){_0xc09dx17[_0x3615[59]]=isNaN(_0xc09dx1f[_0x3615[60]])?null:_0xc09dx1f[_0x3615[60]]*1000;_0xc09dx17[_0x3615[61]]=isNaN(_0xc09dx1f[_0x3615[62]])?null:_0xc09dx1f[_0x3615[62]];_0xc09dx17[_0x3615[63]]=isNaN(_0xc09dx1f[_0x3615[64]])?null:_0xc09dx1f[_0x3615[64]];_0xc09dx17[_0x3615[65]]=isNaN(_0xc09dx1f[_0x3615[66]])?null:_0xc09dx1f[_0x3615[66]];_0xc09dx17[_0x3615[67]]=isNaN(_0xc09dx1f[_0x3615[68]])?null:_0xc09dx1f[_0x3615[68]]});_0xc09dx1c[_0x3615[56]](_0x3615[69],function(_0xc09dx1f){_0xc09dx17[_0x3615[70]]=isNaN(_0xc09dx1f[_0x3615[60]])?null:_0xc09dx1f[_0x3615[60]]*1000;_0xc09dx17[_0x3615[71]]=isNaN(_0xc09dx1f[_0x3615[62]])?null:_0xc09dx1f[_0x3615[62]];_0xc09dx17[_0x3615[72]]=isNaN(_0xc09dx1f[_0x3615[64]])?null:_0xc09dx1f[_0x3615[64]];_0xc09dx17[_0x3615[73]]=isNaN(_0xc09dx1f[_0x3615[66]])?null:_0xc09dx1f[_0x3615[66]];_0xc09dx17[_0x3615[74]]=isNaN(_0xc09dx1f[_0x3615[68]])?null:_0xc09dx1f[_0x3615[68]]});_0xc09dx1c[_0x3615[56]](_0x3615[34],function(){console[_0x3615[76]](_0x3615[75]);fs[_0x3615[50]](_0xc09dx1a,parseInt(_0x3615[49],8));return Sound[_0x3615[25]](_0xc09dx17)[_0x3615[18]](function(_0xc09dx20){return _0xc09dxe[_0x3615[17]](201)[_0x3615[16]](_0xc09dx20)})[_0x3615[15]](function(_0xc09dxf){console[_0x3615[76]](_0xc09dxf);return handleError(_0xc09dxe,_0xc09dxf)})});_0xc09dx1c[_0x3615[77]]()})[_0x3615[15]](function(_0xc09dxf){return handleError(_0xc09dxe,_0xc09dxf)})});_0xc09dx11[_0x3615[56]](_0x3615[53],function(_0xc09dxf){console[_0x3615[76]](_0x3615[78],_0xc09dxf);return handleError(_0xc09dxe,_0xc09dxf)});_0xc09dx11[_0x3615[79]](_0xc09dxd)};exports[_0x3615[80]]=function(_0xc09dxd,_0xc09dxe){if(_0xc09dxd[_0x3615[81]][_0x3615[22]]){delete _0xc09dxd[_0x3615[81]][_0x3615[22]]};return Sound[_0x3615[24]](_0xc09dxd[_0x3615[23]][_0x3615[22]])[_0x3615[18]](function(_0xc09dx20){if(!_0xc09dx20){return _0xc09dxe[_0x3615[21]](404)};var _0xc09dx21=_[_0x3615[82]](_0xc09dx20,_0xc09dxd[_0x3615[81]]);return _0xc09dx21[_0x3615[83]]()})[_0x3615[18]](function(_0xc09dx20){return _0xc09dxe[_0x3615[17]](200)[_0x3615[16]](_0xc09dx20)})[_0x3615[15]](function(_0xc09dxf){return handleError(_0xc09dxe,_0xc09dxf)})};exports[_0x3615[84]]=function(_0xc09dxd,_0xc09dxe){var _0xc09dx22;return Settings[_0x3615[24]](1)[_0x3615[18]](function(_0xc09dx16){_0xc09dx22=_0xc09dx16;return Sound[_0x3615[24]](_0xc09dxd[_0x3615[23]][_0x3615[22]])})[_0x3615[18]](function(_0xc09dx20){if(!_0xc09dx20){return _0xc09dxe[_0x3615[21]](404)};var _0xc09dx23=path[_0x3615[27]](config[_0x3615[26]],_0xc09dx20[_0x3615[45]]+_0x3615[48]+_0xc09dx20[_0x3615[38]]);var _0xc09dx24=path[_0x3615[27]](_0xc09dx22[_0x3615[46]]||_0x3615[47],_0xc09dx20[_0x3615[45]]+_0x3615[48]+_0xc09dx20[_0x3615[40]]);return sequelize[_0x3615[85]](function(_0xc09dx25){return _0xc09dx20[_0x3615[84]]({transaction:_0xc09dx25})[_0x3615[18]](function(){fs[_0x3615[55]](_0xc09dx23,function(_0xc09dxf){if(_0xc09dxf){return handleError(_0xc09dxe,_0xc09dxf)}});fs[_0x3615[55]](_0xc09dx24,function(_0xc09dxf){if(_0xc09dxf){return handleError(_0xc09dxe,_0xc09dxf)}});return _0xc09dxe[_0x3615[17]](200)[_0x3615[16]](_0xc09dx20)})})[_0x3615[15]](function(_0xc09dxf){return handleError(_0xc09dxe,_0xc09dxf)})})[_0x3615[15]](function(_0xc09dxf){return handleError(_0xc09dxe,_0xc09dxf)})};exports[_0x3615[86]]=function(_0xc09dxd,_0xc09dxe){getStream(_0xc09dxd,_0xc09dxe,_0x3615[87])};exports[_0x3615[88]]=function(_0xc09dxd,_0xc09dxe){getStream(_0xc09dxd,_0xc09dxe,_0x3615[89])};function getStream(_0xc09dxd,_0xc09dxe,_0xc09dx27){return Sound[_0x3615[24]](_0xc09dxd[_0x3615[23]][_0x3615[22]])[_0x3615[18]](function(_0xc09dx20){var _0xc09dx29=Promise[_0x3615[93]](fs[_0x3615[92]]);return _0xc09dx29(path[_0x3615[27]](config[_0xc09dx27+_0x3615[94]],_0xc09dx20[_0x3615[45]]+_0x3615[48]+_0xc09dx20[_0xc09dx27+_0x3615[95]]))})[_0x3615[18]](function(_0xc09dx1b){var _0xc09dx28= new Buffer(_0xc09dx1b,_0x3615[91]).toString(_0x3615[90]);return _0xc09dx28})[_0x3615[18]](function(_0xc09dx28){return _0xc09dxe[_0x3615[17]](200)[_0x3615[16]]({downloadString:_0xc09dx28})})[_0x3615[15]](function(_0xc09dxf){console[_0x3615[76]](_0xc09dxf);return handleError(_0xc09dxe,_0xc09dxf)})}function handleError(_0xc09dxe,_0xc09dxf){return _0xc09dxe[_0x3615[17]](500)[_0x3615[16]](_0xc09dxf)}
\ No newline at end of file