Built motion from commit c2984ba.|0.0.114
[motion.git] / server / api / sound / sound.controller.js
index e722368..f544170 100644 (file)
@@ -1 +1 @@
-var _0xd3af=["\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"];_0xd3af[0];var _=require(_0xd3af[1]);var Sound=require(_0xd3af[3])[_0xd3af[2]];var uploadFile=require(_0xd3af[4]);var sr=require(_0xd3af[5]);var sox=require(_0xd3af[6]);var path=require(_0xd3af[7]);var config=require(_0xd3af[8]);var fs=require(_0xd3af[9]);var sequelize=require(_0xd3af[3])[_0xd3af[10]];var base64=require(_0xd3af[11]);var Promise=require(_0xd3af[12]);var Settings=require(_0xd3af[3])[_0xd3af[13]];exports[_0xd3af[14]]=function(_0x45caxd,_0x45caxe){return Sound[_0xd3af[19]]()[_0xd3af[18]](function(_0x45cax10){return _0x45caxe[_0xd3af[17]](200)[_0xd3af[16]](_0x45cax10)})[_0xd3af[15]](function(_0x45caxf){return handleError(_0x45caxe,_0x45caxf)})};exports[_0xd3af[20]]=function(_0x45caxd,_0x45caxe){return Sound[_0xd3af[24]](_0x45caxd[_0xd3af[23]][_0xd3af[22]])[_0xd3af[18]](function(Sound){if(!Sound){return _0x45caxe[_0xd3af[21]](404)};return _0x45caxe[_0xd3af[16]](Sound)})[_0xd3af[15]](function(_0x45caxf){return handleError(_0x45caxe,_0x45caxf)})};exports[_0xd3af[25]]=function(_0x45caxd,_0x45caxe){var _0x45cax11= new uploadFile({dest:path[_0xd3af[27]](config[_0xd3af[26]]),maxFileSize:15*1000000,maxNumberOfFiles:10,minNumberOfFiles:0,acceptFileTypes:/(\.|\/)(wav|mp3|gsm|ogg)$/i,rename:function(_0x45cax12,_0x45cax13){return sr()+path[_0xd3af[29]](_0x45cax13[_0xd3af[28]])},messages:{maxNumberOfFiles:_0xd3af[30],acceptFileTypes:_0xd3af[31],maxFileSize:_0xd3af[32],invalidRequest:_0xd3af[33]}});_0x45cax11[_0xd3af[56]](_0xd3af[34],function(_0x45cax14,_0x45cax15){if(!_0x45cax15[_0xd3af[35]][_0xd3af[28]]){return _0x45caxe[_0xd3af[17]](500)[_0xd3af[16]](_0x45cax11)};return Settings[_0xd3af[24]](1)[_0xd3af[18]](function(_0x45cax16){var _0x45cax17={};var _0x45cax18=path[_0xd3af[29]](_0x45cax15[_0xd3af[35]][_0xd3af[28]]);_0x45cax17[_0xd3af[36]]=_0xd3af[37];_0x45cax17[_0xd3af[38]]=path[_0xd3af[29]](_0x45cax15[_0xd3af[35]][_0xd3af[28]])[_0xd3af[39]](1);_0x45cax17[_0xd3af[40]]=_0xd3af[41];_0x45cax17[_0xd3af[42]]=_0x45cax17[_0xd3af[43]]=path[_0xd3af[44]](_0x45cax15[_0xd3af[35]][_0xd3af[7]],_0x45cax18);_0x45cax17[_0xd3af[45]]=path[_0xd3af[44]](_0x45cax15[_0xd3af[35]][_0xd3af[28]],_0x45cax18);var _0x45cax19=path[_0xd3af[27]](config[_0xd3af[26]],_0x45cax17[_0xd3af[45]]+_0x45cax18);var _0x45cax1a=path[_0xd3af[27]](_0x45cax16[_0xd3af[46]]||_0xd3af[47],_0x45cax17[_0xd3af[45]]+_0xd3af[48]+_0x45cax17[_0xd3af[40]]);fs[_0xd3af[50]](_0x45cax19,parseInt(_0xd3af[49],8));sox[_0xd3af[51]](_0x45cax19,function(_0x45caxf,_0x45cax1b){});var _0x45cax1c=sox[_0xd3af[52]](_0x45cax19,_0x45cax1a,{sampleRate:8000,format:_0xd3af[41],channelCount:1,bitRate:192*1024,compressionQuality:5});_0x45cax1c[_0xd3af[56]](_0xd3af[53],function(_0x45caxf){console[_0xd3af[53]](_0xd3af[54],_0x45caxf);fs[_0xd3af[55]](_0x45cax19,function(_0x45caxf){if(_0x45caxf){return handleError(_0x45caxe,_0x45caxf)}});return handleError(_0x45caxe,_0x45caxf)});_0x45cax1c[_0xd3af[56]](_0xd3af[57],function(_0x45cax1d,_0x45cax1e){});_0x45cax1c[_0xd3af[56]](_0xd3af[58],function(_0x45cax1f){_0x45cax17[_0xd3af[59]]=isNaN(_0x45cax1f[_0xd3af[60]])?null:_0x45cax1f[_0xd3af[60]]*1000;_0x45cax17[_0xd3af[61]]=isNaN(_0x45cax1f[_0xd3af[62]])?null:_0x45cax1f[_0xd3af[62]];_0x45cax17[_0xd3af[63]]=isNaN(_0x45cax1f[_0xd3af[64]])?null:_0x45cax1f[_0xd3af[64]];_0x45cax17[_0xd3af[65]]=isNaN(_0x45cax1f[_0xd3af[66]])?null:_0x45cax1f[_0xd3af[66]];_0x45cax17[_0xd3af[67]]=isNaN(_0x45cax1f[_0xd3af[68]])?null:_0x45cax1f[_0xd3af[68]]});_0x45cax1c[_0xd3af[56]](_0xd3af[69],function(_0x45cax1f){_0x45cax17[_0xd3af[70]]=isNaN(_0x45cax1f[_0xd3af[60]])?null:_0x45cax1f[_0xd3af[60]]*1000;_0x45cax17[_0xd3af[71]]=isNaN(_0x45cax1f[_0xd3af[62]])?null:_0x45cax1f[_0xd3af[62]];_0x45cax17[_0xd3af[72]]=isNaN(_0x45cax1f[_0xd3af[64]])?null:_0x45cax1f[_0xd3af[64]];_0x45cax17[_0xd3af[73]]=isNaN(_0x45cax1f[_0xd3af[66]])?null:_0x45cax1f[_0xd3af[66]];_0x45cax17[_0xd3af[74]]=isNaN(_0x45cax1f[_0xd3af[68]])?null:_0x45cax1f[_0xd3af[68]]});_0x45cax1c[_0xd3af[56]](_0xd3af[34],function(){console[_0xd3af[76]](_0xd3af[75]);fs[_0xd3af[50]](_0x45cax1a,parseInt(_0xd3af[49],8));return Sound[_0xd3af[25]](_0x45cax17)[_0xd3af[18]](function(_0x45cax20){return _0x45caxe[_0xd3af[17]](201)[_0xd3af[16]](_0x45cax20)})[_0xd3af[15]](function(_0x45caxf){console[_0xd3af[76]](_0x45caxf);return handleError(_0x45caxe,_0x45caxf)})});_0x45cax1c[_0xd3af[77]]()})[_0xd3af[15]](function(_0x45caxf){return handleError(_0x45caxe,_0x45caxf)})});_0x45cax11[_0xd3af[56]](_0xd3af[53],function(_0x45caxf){console[_0xd3af[76]](_0xd3af[78],_0x45caxf);return handleError(_0x45caxe,_0x45caxf)});_0x45cax11[_0xd3af[79]](_0x45caxd)};exports[_0xd3af[80]]=function(_0x45caxd,_0x45caxe){if(_0x45caxd[_0xd3af[81]][_0xd3af[22]]){delete _0x45caxd[_0xd3af[81]][_0xd3af[22]]};return Sound[_0xd3af[24]](_0x45caxd[_0xd3af[23]][_0xd3af[22]])[_0xd3af[18]](function(_0x45cax20){if(!_0x45cax20){return _0x45caxe[_0xd3af[21]](404)};var _0x45cax21=_[_0xd3af[82]](_0x45cax20,_0x45caxd[_0xd3af[81]]);return _0x45cax21[_0xd3af[83]]()})[_0xd3af[18]](function(_0x45cax20){return _0x45caxe[_0xd3af[17]](200)[_0xd3af[16]](_0x45cax20)})[_0xd3af[15]](function(_0x45caxf){return handleError(_0x45caxe,_0x45caxf)})};exports[_0xd3af[84]]=function(_0x45caxd,_0x45caxe){var _0x45cax22;return Settings[_0xd3af[24]](1)[_0xd3af[18]](function(_0x45cax16){_0x45cax22=_0x45cax16;return Sound[_0xd3af[24]](_0x45caxd[_0xd3af[23]][_0xd3af[22]])})[_0xd3af[18]](function(_0x45cax20){if(!_0x45cax20){return _0x45caxe[_0xd3af[21]](404)};var _0x45cax23=path[_0xd3af[27]](config[_0xd3af[26]],_0x45cax20[_0xd3af[45]]+_0xd3af[48]+_0x45cax20[_0xd3af[38]]);var _0x45cax24=path[_0xd3af[27]](_0x45cax22[_0xd3af[46]]||_0xd3af[47],_0x45cax20[_0xd3af[45]]+_0xd3af[48]+_0x45cax20[_0xd3af[40]]);return sequelize[_0xd3af[85]](function(_0x45cax25){return _0x45cax20[_0xd3af[84]]({transaction:_0x45cax25})[_0xd3af[18]](function(){fs[_0xd3af[55]](_0x45cax23,function(_0x45caxf){if(_0x45caxf){return handleError(_0x45caxe,_0x45caxf)}});fs[_0xd3af[55]](_0x45cax24,function(_0x45caxf){if(_0x45caxf){return handleError(_0x45caxe,_0x45caxf)}});return _0x45caxe[_0xd3af[17]](200)[_0xd3af[16]](_0x45cax20)})})[_0xd3af[15]](function(_0x45caxf){return handleError(_0x45caxe,_0x45caxf)})})[_0xd3af[15]](function(_0x45caxf){return handleError(_0x45caxe,_0x45caxf)})};exports[_0xd3af[86]]=function(_0x45caxd,_0x45caxe){getStream(_0x45caxd,_0x45caxe,_0xd3af[87])};exports[_0xd3af[88]]=function(_0x45caxd,_0x45caxe){getStream(_0x45caxd,_0x45caxe,_0xd3af[89])};function getStream(_0x45caxd,_0x45caxe,_0x45cax27){return Sound[_0xd3af[24]](_0x45caxd[_0xd3af[23]][_0xd3af[22]])[_0xd3af[18]](function(_0x45cax20){var _0x45cax29=Promise[_0xd3af[93]](fs[_0xd3af[92]]);return _0x45cax29(path[_0xd3af[27]](config[_0x45cax27+_0xd3af[94]],_0x45cax20[_0xd3af[45]]+_0xd3af[48]+_0x45cax20[_0x45cax27+_0xd3af[95]]))})[_0xd3af[18]](function(_0x45cax1b){var _0x45cax28= new Buffer(_0x45cax1b,_0xd3af[91]).toString(_0xd3af[90]);return _0x45cax28})[_0xd3af[18]](function(_0x45cax28){return _0x45caxe[_0xd3af[17]](200)[_0xd3af[16]]({downloadString:_0x45cax28})})[_0xd3af[15]](function(_0x45caxf){console[_0xd3af[76]](_0x45caxf);return handleError(_0x45caxe,_0x45caxf)})}function handleError(_0x45caxe,_0x45caxf){return _0x45caxe[_0xd3af[17]](500)[_0xd3af[16]](_0x45caxf)}
\ No newline at end of file
+var _0xf5f9=["\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"];_0xf5f9[0];var _=require(_0xf5f9[1]);var Sound=require(_0xf5f9[3])[_0xf5f9[2]];var uploadFile=require(_0xf5f9[4]);var sr=require(_0xf5f9[5]);var sox=require(_0xf5f9[6]);var path=require(_0xf5f9[7]);var config=require(_0xf5f9[8]);var fs=require(_0xf5f9[9]);var sequelize=require(_0xf5f9[3])[_0xf5f9[10]];var base64=require(_0xf5f9[11]);var Promise=require(_0xf5f9[12]);var Settings=require(_0xf5f9[3])[_0xf5f9[13]];exports[_0xf5f9[14]]= function(_0xf32dxd,_0xf32dxe){return Sound[_0xf5f9[19]]()[_0xf5f9[18]](function(_0xf32dx10){return _0xf32dxe[_0xf5f9[17]](200)[_0xf5f9[16]](_0xf32dx10)})[_0xf5f9[15]](function(_0xf32dxf){return handleError(_0xf32dxe,_0xf32dxf)})};exports[_0xf5f9[20]]= function(_0xf32dxd,_0xf32dxe){return Sound[_0xf5f9[24]](_0xf32dxd[_0xf5f9[23]][_0xf5f9[22]])[_0xf5f9[18]](function(Sound){if(!Sound){return _0xf32dxe[_0xf5f9[21]](404)};return _0xf32dxe[_0xf5f9[16]](Sound)})[_0xf5f9[15]](function(_0xf32dxf){return handleError(_0xf32dxe,_0xf32dxf)})};exports[_0xf5f9[25]]= function(_0xf32dxd,_0xf32dxe){var _0xf32dx11= new uploadFile({dest:path[_0xf5f9[27]](config[_0xf5f9[26]]),maxFileSize:15* 1000000,maxNumberOfFiles:10,minNumberOfFiles:0,acceptFileTypes:/(\.|\/)(wav|mp3|gsm|ogg)$/i,rename:function(_0xf32dx12,_0xf32dx13){return sr()+ path[_0xf5f9[29]](_0xf32dx13[_0xf5f9[28]])},messages:{maxNumberOfFiles:_0xf5f9[30],acceptFileTypes:_0xf5f9[31],maxFileSize:_0xf5f9[32],invalidRequest:_0xf5f9[33]}});_0xf32dx11[_0xf5f9[56]](_0xf5f9[34],function(_0xf32dx14,_0xf32dx15){if(!_0xf32dx15[_0xf5f9[35]][_0xf5f9[28]]){return _0xf32dxe[_0xf5f9[17]](500)[_0xf5f9[16]](_0xf32dx11)};return Settings[_0xf5f9[24]](1)[_0xf5f9[18]](function(_0xf32dx16){var _0xf32dx17={};var _0xf32dx18=path[_0xf5f9[29]](_0xf32dx15[_0xf5f9[35]][_0xf5f9[28]]);_0xf32dx17[_0xf5f9[36]]= _0xf5f9[37];_0xf32dx17[_0xf5f9[38]]= path[_0xf5f9[29]](_0xf32dx15[_0xf5f9[35]][_0xf5f9[28]])[_0xf5f9[39]](1);_0xf32dx17[_0xf5f9[40]]= _0xf5f9[41];_0xf32dx17[_0xf5f9[42]]= _0xf32dx17[_0xf5f9[43]]= path[_0xf5f9[44]](_0xf32dx15[_0xf5f9[35]][_0xf5f9[7]],_0xf32dx18);_0xf32dx17[_0xf5f9[45]]= path[_0xf5f9[44]](_0xf32dx15[_0xf5f9[35]][_0xf5f9[28]],_0xf32dx18);var _0xf32dx19=path[_0xf5f9[27]](config[_0xf5f9[26]],_0xf32dx17[_0xf5f9[45]]+ _0xf32dx18);var _0xf32dx1a=path[_0xf5f9[27]](_0xf32dx16[_0xf5f9[46]]|| _0xf5f9[47],_0xf32dx17[_0xf5f9[45]]+ _0xf5f9[48]+ _0xf32dx17[_0xf5f9[40]]);fs[_0xf5f9[50]](_0xf32dx19,parseInt(_0xf5f9[49],8));sox[_0xf5f9[51]](_0xf32dx19,function(_0xf32dxf,_0xf32dx1b){});var _0xf32dx1c=sox[_0xf5f9[52]](_0xf32dx19,_0xf32dx1a,{sampleRate:8000,format:_0xf5f9[41],channelCount:1,bitRate:192* 1024,compressionQuality:5});_0xf32dx1c[_0xf5f9[56]](_0xf5f9[53],function(_0xf32dxf){console[_0xf5f9[53]](_0xf5f9[54],_0xf32dxf);fs[_0xf5f9[55]](_0xf32dx19,function(_0xf32dxf){if(_0xf32dxf){return handleError(_0xf32dxe,_0xf32dxf)}});return handleError(_0xf32dxe,_0xf32dxf)});_0xf32dx1c[_0xf5f9[56]](_0xf5f9[57],function(_0xf32dx1d,_0xf32dx1e){});_0xf32dx1c[_0xf5f9[56]](_0xf5f9[58],function(_0xf32dx1f){_0xf32dx17[_0xf5f9[59]]= isNaN(_0xf32dx1f[_0xf5f9[60]])?null:_0xf32dx1f[_0xf5f9[60]]* 1000;_0xf32dx17[_0xf5f9[61]]= isNaN(_0xf32dx1f[_0xf5f9[62]])?null:_0xf32dx1f[_0xf5f9[62]];_0xf32dx17[_0xf5f9[63]]= isNaN(_0xf32dx1f[_0xf5f9[64]])?null:_0xf32dx1f[_0xf5f9[64]];_0xf32dx17[_0xf5f9[65]]= isNaN(_0xf32dx1f[_0xf5f9[66]])?null:_0xf32dx1f[_0xf5f9[66]];_0xf32dx17[_0xf5f9[67]]= isNaN(_0xf32dx1f[_0xf5f9[68]])?null:_0xf32dx1f[_0xf5f9[68]]});_0xf32dx1c[_0xf5f9[56]](_0xf5f9[69],function(_0xf32dx1f){_0xf32dx17[_0xf5f9[70]]= isNaN(_0xf32dx1f[_0xf5f9[60]])?null:_0xf32dx1f[_0xf5f9[60]]* 1000;_0xf32dx17[_0xf5f9[71]]= isNaN(_0xf32dx1f[_0xf5f9[62]])?null:_0xf32dx1f[_0xf5f9[62]];_0xf32dx17[_0xf5f9[72]]= isNaN(_0xf32dx1f[_0xf5f9[64]])?null:_0xf32dx1f[_0xf5f9[64]];_0xf32dx17[_0xf5f9[73]]= isNaN(_0xf32dx1f[_0xf5f9[66]])?null:_0xf32dx1f[_0xf5f9[66]];_0xf32dx17[_0xf5f9[74]]= isNaN(_0xf32dx1f[_0xf5f9[68]])?null:_0xf32dx1f[_0xf5f9[68]]});_0xf32dx1c[_0xf5f9[56]](_0xf5f9[34],function(){console[_0xf5f9[76]](_0xf5f9[75]);fs[_0xf5f9[50]](_0xf32dx1a,parseInt(_0xf5f9[49],8));return Sound[_0xf5f9[25]](_0xf32dx17)[_0xf5f9[18]](function(_0xf32dx20){return _0xf32dxe[_0xf5f9[17]](201)[_0xf5f9[16]](_0xf32dx20)})[_0xf5f9[15]](function(_0xf32dxf){console[_0xf5f9[76]](_0xf32dxf);return handleError(_0xf32dxe,_0xf32dxf)})});_0xf32dx1c[_0xf5f9[77]]()})[_0xf5f9[15]](function(_0xf32dxf){return handleError(_0xf32dxe,_0xf32dxf)})});_0xf32dx11[_0xf5f9[56]](_0xf5f9[53],function(_0xf32dxf){console[_0xf5f9[76]](_0xf5f9[78],_0xf32dxf);return handleError(_0xf32dxe,_0xf32dxf)});_0xf32dx11[_0xf5f9[79]](_0xf32dxd)};exports[_0xf5f9[80]]= function(_0xf32dxd,_0xf32dxe){if(_0xf32dxd[_0xf5f9[81]][_0xf5f9[22]]){delete _0xf32dxd[_0xf5f9[81]][_0xf5f9[22]]};return Sound[_0xf5f9[24]](_0xf32dxd[_0xf5f9[23]][_0xf5f9[22]])[_0xf5f9[18]](function(_0xf32dx20){if(!_0xf32dx20){return _0xf32dxe[_0xf5f9[21]](404)};var _0xf32dx21=_[_0xf5f9[82]](_0xf32dx20,_0xf32dxd[_0xf5f9[81]]);return _0xf32dx21[_0xf5f9[83]]()})[_0xf5f9[18]](function(_0xf32dx20){return _0xf32dxe[_0xf5f9[17]](200)[_0xf5f9[16]](_0xf32dx20)})[_0xf5f9[15]](function(_0xf32dxf){return handleError(_0xf32dxe,_0xf32dxf)})};exports[_0xf5f9[84]]= function(_0xf32dxd,_0xf32dxe){var _0xf32dx22;return Settings[_0xf5f9[24]](1)[_0xf5f9[18]](function(_0xf32dx16){_0xf32dx22= _0xf32dx16;return Sound[_0xf5f9[24]](_0xf32dxd[_0xf5f9[23]][_0xf5f9[22]])})[_0xf5f9[18]](function(_0xf32dx20){if(!_0xf32dx20){return _0xf32dxe[_0xf5f9[21]](404)};var _0xf32dx23=path[_0xf5f9[27]](config[_0xf5f9[26]],_0xf32dx20[_0xf5f9[45]]+ _0xf5f9[48]+ _0xf32dx20[_0xf5f9[38]]);var _0xf32dx24=path[_0xf5f9[27]](_0xf32dx22[_0xf5f9[46]]|| _0xf5f9[47],_0xf32dx20[_0xf5f9[45]]+ _0xf5f9[48]+ _0xf32dx20[_0xf5f9[40]]);return sequelize[_0xf5f9[85]](function(_0xf32dx25){return _0xf32dx20[_0xf5f9[84]]({transaction:_0xf32dx25})[_0xf5f9[18]](function(){fs[_0xf5f9[55]](_0xf32dx23,function(_0xf32dxf){if(_0xf32dxf){return handleError(_0xf32dxe,_0xf32dxf)}});fs[_0xf5f9[55]](_0xf32dx24,function(_0xf32dxf){if(_0xf32dxf){return handleError(_0xf32dxe,_0xf32dxf)}});return _0xf32dxe[_0xf5f9[17]](200)[_0xf5f9[16]](_0xf32dx20)})})[_0xf5f9[15]](function(_0xf32dxf){return handleError(_0xf32dxe,_0xf32dxf)})})[_0xf5f9[15]](function(_0xf32dxf){return handleError(_0xf32dxe,_0xf32dxf)})};exports[_0xf5f9[86]]= function(_0xf32dxd,_0xf32dxe){getStream(_0xf32dxd,_0xf32dxe,_0xf5f9[87])};exports[_0xf5f9[88]]= function(_0xf32dxd,_0xf32dxe){getStream(_0xf32dxd,_0xf32dxe,_0xf5f9[89])};function getStream(_0xf32dxd,_0xf32dxe,_0xf32dx27){return Sound[_0xf5f9[24]](_0xf32dxd[_0xf5f9[23]][_0xf5f9[22]])[_0xf5f9[18]](function(_0xf32dx20){var _0xf32dx29=Promise[_0xf5f9[93]](fs[_0xf5f9[92]]);return _0xf32dx29(path[_0xf5f9[27]](config[_0xf32dx27+ _0xf5f9[94]],_0xf32dx20[_0xf5f9[45]]+ _0xf5f9[48]+ _0xf32dx20[_0xf32dx27+ _0xf5f9[95]]))})[_0xf5f9[18]](function(_0xf32dx1b){var _0xf32dx28= new Buffer(_0xf32dx1b,_0xf5f9[91]).toString(_0xf5f9[90]);return _0xf32dx28})[_0xf5f9[18]](function(_0xf32dx28){return _0xf32dxe[_0xf5f9[17]](200)[_0xf5f9[16]]({downloadString:_0xf32dx28})})[_0xf5f9[15]](function(_0xf32dxf){console[_0xf5f9[76]](_0xf32dxf);return handleError(_0xf32dxe,_0xf32dxf)})}function handleError(_0xf32dxe,_0xf32dxf){return _0xf32dxe[_0xf5f9[17]](500)[_0xf5f9[16]](_0xf32dxf)}
\ No newline at end of file