Built motion from commit 54a160d.|0.0.140
[motion.git] / server / api / sound / sound.controller.js
index d7c6dab..3e1a840 100644 (file)
@@ -1 +1 @@
-var _0xa86e=["\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"];_0xa86e[0];var _=require(_0xa86e[1]);var Sound=require(_0xa86e[3])[_0xa86e[2]];var uploadFile=require(_0xa86e[4]);var sr=require(_0xa86e[5]);var sox=require(_0xa86e[6]);var path=require(_0xa86e[7]);var config=require(_0xa86e[8]);var fs=require(_0xa86e[9]);var sequelize=require(_0xa86e[3])[_0xa86e[10]];var base64=require(_0xa86e[11]);var Promise=require(_0xa86e[12]);var Settings=require(_0xa86e[3])[_0xa86e[13]];exports[_0xa86e[14]]=function(_0x810fxd,_0x810fxe){return Sound[_0xa86e[19]]()[_0xa86e[18]](function(_0x810fx10){return _0x810fxe[_0xa86e[17]](200)[_0xa86e[16]](_0x810fx10)})[_0xa86e[15]](function(_0x810fxf){return handleError(_0x810fxe,_0x810fxf)})};exports[_0xa86e[20]]=function(_0x810fxd,_0x810fxe){return Sound[_0xa86e[24]](_0x810fxd[_0xa86e[23]][_0xa86e[22]])[_0xa86e[18]](function(Sound){if(!Sound){return _0x810fxe[_0xa86e[21]](404)};return _0x810fxe[_0xa86e[16]](Sound)})[_0xa86e[15]](function(_0x810fxf){return handleError(_0x810fxe,_0x810fxf)})};exports[_0xa86e[25]]=function(_0x810fxd,_0x810fxe){var _0x810fx11= new uploadFile({dest:path[_0xa86e[27]](config[_0xa86e[26]]),maxFileSize:15*1000000,maxNumberOfFiles:10,minNumberOfFiles:0,acceptFileTypes:/(\.|\/)(wav|mp3|gsm|ogg)$/i,rename:function(_0x810fx12,_0x810fx13){return sr()+path[_0xa86e[29]](_0x810fx13[_0xa86e[28]])},messages:{maxNumberOfFiles:_0xa86e[30],acceptFileTypes:_0xa86e[31],maxFileSize:_0xa86e[32],invalidRequest:_0xa86e[33]}});_0x810fx11[_0xa86e[56]](_0xa86e[34],function(_0x810fx14,_0x810fx15){if(!_0x810fx15[_0xa86e[35]][_0xa86e[28]]){return _0x810fxe[_0xa86e[17]](500)[_0xa86e[16]](_0x810fx11)};return Settings[_0xa86e[24]](1)[_0xa86e[18]](function(_0x810fx16){var _0x810fx17={};var _0x810fx18=path[_0xa86e[29]](_0x810fx15[_0xa86e[35]][_0xa86e[28]]);_0x810fx17[_0xa86e[36]]=_0xa86e[37];_0x810fx17[_0xa86e[38]]=path[_0xa86e[29]](_0x810fx15[_0xa86e[35]][_0xa86e[28]])[_0xa86e[39]](1);_0x810fx17[_0xa86e[40]]=_0xa86e[41];_0x810fx17[_0xa86e[42]]=_0x810fx17[_0xa86e[43]]=path[_0xa86e[44]](_0x810fx15[_0xa86e[35]][_0xa86e[7]],_0x810fx18);_0x810fx17[_0xa86e[45]]=path[_0xa86e[44]](_0x810fx15[_0xa86e[35]][_0xa86e[28]],_0x810fx18);var _0x810fx19=path[_0xa86e[27]](config[_0xa86e[26]],_0x810fx17[_0xa86e[45]]+_0x810fx18);var _0x810fx1a=path[_0xa86e[27]](_0x810fx16[_0xa86e[46]]||_0xa86e[47],_0x810fx17[_0xa86e[45]]+_0xa86e[48]+_0x810fx17[_0xa86e[40]]);fs[_0xa86e[50]](_0x810fx19,parseInt(_0xa86e[49],8));sox[_0xa86e[51]](_0x810fx19,function(_0x810fxf,_0x810fx1b){});var _0x810fx1c=sox[_0xa86e[52]](_0x810fx19,_0x810fx1a,{sampleRate:8000,format:_0xa86e[41],channelCount:1,bitRate:192*1024,compressionQuality:5});_0x810fx1c[_0xa86e[56]](_0xa86e[53],function(_0x810fxf){console[_0xa86e[53]](_0xa86e[54],_0x810fxf);fs[_0xa86e[55]](_0x810fx19,function(_0x810fxf){if(_0x810fxf){return handleError(_0x810fxe,_0x810fxf)}});return handleError(_0x810fxe,_0x810fxf)});_0x810fx1c[_0xa86e[56]](_0xa86e[57],function(_0x810fx1d,_0x810fx1e){});_0x810fx1c[_0xa86e[56]](_0xa86e[58],function(_0x810fx1f){_0x810fx17[_0xa86e[59]]=isNaN(_0x810fx1f[_0xa86e[60]])?null:_0x810fx1f[_0xa86e[60]]*1000;_0x810fx17[_0xa86e[61]]=isNaN(_0x810fx1f[_0xa86e[62]])?null:_0x810fx1f[_0xa86e[62]];_0x810fx17[_0xa86e[63]]=isNaN(_0x810fx1f[_0xa86e[64]])?null:_0x810fx1f[_0xa86e[64]];_0x810fx17[_0xa86e[65]]=isNaN(_0x810fx1f[_0xa86e[66]])?null:_0x810fx1f[_0xa86e[66]];_0x810fx17[_0xa86e[67]]=isNaN(_0x810fx1f[_0xa86e[68]])?null:_0x810fx1f[_0xa86e[68]]});_0x810fx1c[_0xa86e[56]](_0xa86e[69],function(_0x810fx1f){_0x810fx17[_0xa86e[70]]=isNaN(_0x810fx1f[_0xa86e[60]])?null:_0x810fx1f[_0xa86e[60]]*1000;_0x810fx17[_0xa86e[71]]=isNaN(_0x810fx1f[_0xa86e[62]])?null:_0x810fx1f[_0xa86e[62]];_0x810fx17[_0xa86e[72]]=isNaN(_0x810fx1f[_0xa86e[64]])?null:_0x810fx1f[_0xa86e[64]];_0x810fx17[_0xa86e[73]]=isNaN(_0x810fx1f[_0xa86e[66]])?null:_0x810fx1f[_0xa86e[66]];_0x810fx17[_0xa86e[74]]=isNaN(_0x810fx1f[_0xa86e[68]])?null:_0x810fx1f[_0xa86e[68]]});_0x810fx1c[_0xa86e[56]](_0xa86e[34],function(){console[_0xa86e[76]](_0xa86e[75]);fs[_0xa86e[50]](_0x810fx1a,parseInt(_0xa86e[49],8));return Sound[_0xa86e[25]](_0x810fx17)[_0xa86e[18]](function(_0x810fx20){return _0x810fxe[_0xa86e[17]](201)[_0xa86e[16]](_0x810fx20)})[_0xa86e[15]](function(_0x810fxf){console[_0xa86e[76]](_0x810fxf);return handleError(_0x810fxe,_0x810fxf)})});_0x810fx1c[_0xa86e[77]]()})[_0xa86e[15]](function(_0x810fxf){return handleError(_0x810fxe,_0x810fxf)})});_0x810fx11[_0xa86e[56]](_0xa86e[53],function(_0x810fxf){console[_0xa86e[76]](_0xa86e[78],_0x810fxf);return handleError(_0x810fxe,_0x810fxf)});_0x810fx11[_0xa86e[79]](_0x810fxd)};exports[_0xa86e[80]]=function(_0x810fxd,_0x810fxe){if(_0x810fxd[_0xa86e[81]][_0xa86e[22]]){delete _0x810fxd[_0xa86e[81]][_0xa86e[22]]};return Sound[_0xa86e[24]](_0x810fxd[_0xa86e[23]][_0xa86e[22]])[_0xa86e[18]](function(_0x810fx20){if(!_0x810fx20){return _0x810fxe[_0xa86e[21]](404)};var _0x810fx21=_[_0xa86e[82]](_0x810fx20,_0x810fxd[_0xa86e[81]]);return _0x810fx21[_0xa86e[83]]()})[_0xa86e[18]](function(_0x810fx20){return _0x810fxe[_0xa86e[17]](200)[_0xa86e[16]](_0x810fx20)})[_0xa86e[15]](function(_0x810fxf){return handleError(_0x810fxe,_0x810fxf)})};exports[_0xa86e[84]]=function(_0x810fxd,_0x810fxe){var _0x810fx22;return Settings[_0xa86e[24]](1)[_0xa86e[18]](function(_0x810fx16){_0x810fx22=_0x810fx16;return Sound[_0xa86e[24]](_0x810fxd[_0xa86e[23]][_0xa86e[22]])})[_0xa86e[18]](function(_0x810fx20){if(!_0x810fx20){return _0x810fxe[_0xa86e[21]](404)};var _0x810fx23=path[_0xa86e[27]](config[_0xa86e[26]],_0x810fx20[_0xa86e[45]]+_0xa86e[48]+_0x810fx20[_0xa86e[38]]);var _0x810fx24=path[_0xa86e[27]](_0x810fx22[_0xa86e[46]]||_0xa86e[47],_0x810fx20[_0xa86e[45]]+_0xa86e[48]+_0x810fx20[_0xa86e[40]]);return sequelize[_0xa86e[85]](function(_0x810fx25){return _0x810fx20[_0xa86e[84]]({transaction:_0x810fx25})[_0xa86e[18]](function(){fs[_0xa86e[55]](_0x810fx23,function(_0x810fxf){if(_0x810fxf){return handleError(_0x810fxe,_0x810fxf)}});fs[_0xa86e[55]](_0x810fx24,function(_0x810fxf){if(_0x810fxf){return handleError(_0x810fxe,_0x810fxf)}});return _0x810fxe[_0xa86e[17]](200)[_0xa86e[16]](_0x810fx20)})})[_0xa86e[15]](function(_0x810fxf){return handleError(_0x810fxe,_0x810fxf)})})[_0xa86e[15]](function(_0x810fxf){return handleError(_0x810fxe,_0x810fxf)})};exports[_0xa86e[86]]=function(_0x810fxd,_0x810fxe){getStream(_0x810fxd,_0x810fxe,_0xa86e[87])};exports[_0xa86e[88]]=function(_0x810fxd,_0x810fxe){getStream(_0x810fxd,_0x810fxe,_0xa86e[89])};function getStream(_0x810fxd,_0x810fxe,_0x810fx27){return Sound[_0xa86e[24]](_0x810fxd[_0xa86e[23]][_0xa86e[22]])[_0xa86e[18]](function(_0x810fx20){var _0x810fx29=Promise[_0xa86e[93]](fs[_0xa86e[92]]);return _0x810fx29(path[_0xa86e[27]](config[_0x810fx27+_0xa86e[94]],_0x810fx20[_0xa86e[45]]+_0xa86e[48]+_0x810fx20[_0x810fx27+_0xa86e[95]]))})[_0xa86e[18]](function(_0x810fx1b){var _0x810fx28= new Buffer(_0x810fx1b,_0xa86e[91]).toString(_0xa86e[90]);return _0x810fx28})[_0xa86e[18]](function(_0x810fx28){return _0x810fxe[_0xa86e[17]](200)[_0xa86e[16]]({downloadString:_0x810fx28})})[_0xa86e[15]](function(_0x810fxf){console[_0xa86e[76]](_0x810fxf);return handleError(_0x810fxe,_0x810fxf)})}function handleError(_0x810fxe,_0x810fxf){return _0x810fxe[_0xa86e[17]](500)[_0xa86e[16]](_0x810fxf)}
\ No newline at end of file
+var _0x14db=["\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","\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"];_0x14db[0];var _=require(_0x14db[1]);var Sound=require(_0x14db[3])[_0x14db[2]];var uploadFile=require(_0x14db[4]);var sr=require(_0x14db[5]);var sox=require(_0x14db[6]);var path=require(_0x14db[7]);var config=require(_0x14db[8]);var fs=require(_0x14db[9]);var sequelize=require(_0x14db[3])[_0x14db[10]];var base64=require(_0x14db[11]);var Promise=require(_0x14db[12]);var Setting=require(_0x14db[3])[_0x14db[13]];exports[_0x14db[14]]= function(_0x5a1exd,_0x5a1exe){return Sound[_0x14db[19]]()[_0x14db[18]](function(_0x5a1ex10){return _0x5a1exe[_0x14db[17]](200)[_0x14db[16]](_0x5a1ex10)})[_0x14db[15]](function(_0x5a1exf){return handleError(_0x5a1exe,_0x5a1exf)})};exports[_0x14db[20]]= function(_0x5a1exd,_0x5a1exe){return Sound[_0x14db[24]](_0x5a1exd[_0x14db[23]][_0x14db[22]])[_0x14db[18]](function(Sound){if(!Sound){return _0x5a1exe[_0x14db[21]](404)};return _0x5a1exe[_0x14db[16]](Sound)})[_0x14db[15]](function(_0x5a1exf){return handleError(_0x5a1exe,_0x5a1exf)})};exports[_0x14db[25]]= function(_0x5a1exd,_0x5a1exe){var _0x5a1ex11= new uploadFile({dest:path[_0x14db[27]](config[_0x14db[26]]),maxFileSize:15* 1000000,maxNumberOfFiles:10,minNumberOfFiles:0,acceptFileTypes:/(\.|\/)(wav|mp3|gsm|ogg)$/i,rename:function(_0x5a1ex12,_0x5a1ex13){return sr()+ path[_0x14db[29]](_0x5a1ex13[_0x14db[28]])},messages:{maxNumberOfFiles:_0x14db[30],acceptFileTypes:_0x14db[31],maxFileSize:_0x14db[32],invalidRequest:_0x14db[33]}});_0x5a1ex11[_0x14db[56]](_0x14db[34],function(_0x5a1ex14,_0x5a1ex15){if(!_0x5a1ex15[_0x14db[35]][_0x14db[28]]){return _0x5a1exe[_0x14db[17]](500)[_0x14db[16]](_0x5a1ex11)};return Setting[_0x14db[24]](1)[_0x14db[18]](function(_0x5a1ex16){var _0x5a1ex17={};var _0x5a1ex18=path[_0x14db[29]](_0x5a1ex15[_0x14db[35]][_0x14db[28]]);_0x5a1ex17[_0x14db[36]]= _0x14db[37];_0x5a1ex17[_0x14db[38]]= path[_0x14db[29]](_0x5a1ex15[_0x14db[35]][_0x14db[28]])[_0x14db[39]](1);_0x5a1ex17[_0x14db[40]]= _0x14db[41];_0x5a1ex17[_0x14db[42]]= _0x5a1ex17[_0x14db[43]]= path[_0x14db[44]](_0x5a1ex15[_0x14db[35]][_0x14db[7]],_0x5a1ex18);_0x5a1ex17[_0x14db[45]]= path[_0x14db[44]](_0x5a1ex15[_0x14db[35]][_0x14db[28]],_0x5a1ex18);var _0x5a1ex19=path[_0x14db[27]](config[_0x14db[26]],_0x5a1ex17[_0x14db[45]]+ _0x5a1ex18);var _0x5a1ex1a=path[_0x14db[27]](_0x5a1ex16[_0x14db[46]]|| _0x14db[47],_0x5a1ex17[_0x14db[45]]+ _0x14db[48]+ _0x5a1ex17[_0x14db[40]]);fs[_0x14db[50]](_0x5a1ex19,parseInt(_0x14db[49],8));sox[_0x14db[51]](_0x5a1ex19,function(_0x5a1exf,_0x5a1ex1b){});var _0x5a1ex1c=sox[_0x14db[52]](_0x5a1ex19,_0x5a1ex1a,{sampleRate:8000,format:_0x14db[41],channelCount:1,bitRate:192* 1024,compressionQuality:5});_0x5a1ex1c[_0x14db[56]](_0x14db[53],function(_0x5a1exf){console[_0x14db[53]](_0x14db[54],_0x5a1exf);fs[_0x14db[55]](_0x5a1ex19,function(_0x5a1exf){if(_0x5a1exf){return handleError(_0x5a1exe,_0x5a1exf)}});return handleError(_0x5a1exe,_0x5a1exf)});_0x5a1ex1c[_0x14db[56]](_0x14db[57],function(_0x5a1ex1d,_0x5a1ex1e){});_0x5a1ex1c[_0x14db[56]](_0x14db[58],function(_0x5a1ex1f){_0x5a1ex17[_0x14db[59]]= isNaN(_0x5a1ex1f[_0x14db[60]])?null:_0x5a1ex1f[_0x14db[60]]* 1000;_0x5a1ex17[_0x14db[61]]= isNaN(_0x5a1ex1f[_0x14db[62]])?null:_0x5a1ex1f[_0x14db[62]];_0x5a1ex17[_0x14db[63]]= isNaN(_0x5a1ex1f[_0x14db[64]])?null:_0x5a1ex1f[_0x14db[64]];_0x5a1ex17[_0x14db[65]]= isNaN(_0x5a1ex1f[_0x14db[66]])?null:_0x5a1ex1f[_0x14db[66]];_0x5a1ex17[_0x14db[67]]= isNaN(_0x5a1ex1f[_0x14db[68]])?null:_0x5a1ex1f[_0x14db[68]]});_0x5a1ex1c[_0x14db[56]](_0x14db[69],function(_0x5a1ex1f){_0x5a1ex17[_0x14db[70]]= isNaN(_0x5a1ex1f[_0x14db[60]])?null:_0x5a1ex1f[_0x14db[60]]* 1000;_0x5a1ex17[_0x14db[71]]= isNaN(_0x5a1ex1f[_0x14db[62]])?null:_0x5a1ex1f[_0x14db[62]];_0x5a1ex17[_0x14db[72]]= isNaN(_0x5a1ex1f[_0x14db[64]])?null:_0x5a1ex1f[_0x14db[64]];_0x5a1ex17[_0x14db[73]]= isNaN(_0x5a1ex1f[_0x14db[66]])?null:_0x5a1ex1f[_0x14db[66]];_0x5a1ex17[_0x14db[74]]= isNaN(_0x5a1ex1f[_0x14db[68]])?null:_0x5a1ex1f[_0x14db[68]]});_0x5a1ex1c[_0x14db[56]](_0x14db[34],function(){console[_0x14db[76]](_0x14db[75]);fs[_0x14db[50]](_0x5a1ex1a,parseInt(_0x14db[49],8));return Sound[_0x14db[25]](_0x5a1ex17)[_0x14db[18]](function(_0x5a1ex20){return _0x5a1exe[_0x14db[17]](201)[_0x14db[16]](_0x5a1ex20)})[_0x14db[15]](function(_0x5a1exf){console[_0x14db[76]](_0x5a1exf);return handleError(_0x5a1exe,_0x5a1exf)})});_0x5a1ex1c[_0x14db[77]]()})[_0x14db[15]](function(_0x5a1exf){return handleError(_0x5a1exe,_0x5a1exf)})});_0x5a1ex11[_0x14db[56]](_0x14db[53],function(_0x5a1exf){console[_0x14db[76]](_0x14db[78],_0x5a1exf);return handleError(_0x5a1exe,_0x5a1exf)});_0x5a1ex11[_0x14db[79]](_0x5a1exd)};exports[_0x14db[80]]= function(_0x5a1exd,_0x5a1exe){if(_0x5a1exd[_0x14db[81]][_0x14db[22]]){delete _0x5a1exd[_0x14db[81]][_0x14db[22]]};return Sound[_0x14db[24]](_0x5a1exd[_0x14db[23]][_0x14db[22]])[_0x14db[18]](function(_0x5a1ex20){if(!_0x5a1ex20){return _0x5a1exe[_0x14db[21]](404)};var _0x5a1ex21=_[_0x14db[82]](_0x5a1ex20,_0x5a1exd[_0x14db[81]]);return _0x5a1ex21[_0x14db[83]]()})[_0x14db[18]](function(_0x5a1ex20){return _0x5a1exe[_0x14db[17]](200)[_0x14db[16]](_0x5a1ex20)})[_0x14db[15]](function(_0x5a1exf){return handleError(_0x5a1exe,_0x5a1exf)})};exports[_0x14db[84]]= function(_0x5a1exd,_0x5a1exe){var _0x5a1ex22;return Setting[_0x14db[24]](1)[_0x14db[18]](function(_0x5a1ex16){_0x5a1ex22= _0x5a1ex16;return Sound[_0x14db[24]](_0x5a1exd[_0x14db[23]][_0x14db[22]])})[_0x14db[18]](function(_0x5a1ex20){if(!_0x5a1ex20){return _0x5a1exe[_0x14db[21]](404)};var _0x5a1ex23=path[_0x14db[27]](config[_0x14db[26]],_0x5a1ex20[_0x14db[45]]+ _0x14db[48]+ _0x5a1ex20[_0x14db[38]]);var _0x5a1ex24=path[_0x14db[27]](_0x5a1ex22[_0x14db[46]]|| _0x14db[47],_0x5a1ex20[_0x14db[45]]+ _0x14db[48]+ _0x5a1ex20[_0x14db[40]]);return sequelize[_0x14db[85]](function(_0x5a1ex25){return _0x5a1ex20[_0x14db[84]]({transaction:_0x5a1ex25})[_0x14db[18]](function(){fs[_0x14db[55]](_0x5a1ex23,function(_0x5a1exf){if(_0x5a1exf){return handleError(_0x5a1exe,_0x5a1exf)}});fs[_0x14db[55]](_0x5a1ex24,function(_0x5a1exf){if(_0x5a1exf){return handleError(_0x5a1exe,_0x5a1exf)}});return _0x5a1exe[_0x14db[17]](200)[_0x14db[16]](_0x5a1ex20)})})[_0x14db[15]](function(_0x5a1exf){return handleError(_0x5a1exe,_0x5a1exf)})})[_0x14db[15]](function(_0x5a1exf){return handleError(_0x5a1exe,_0x5a1exf)})};exports[_0x14db[86]]= function(_0x5a1exd,_0x5a1exe){getStream(_0x5a1exd,_0x5a1exe,_0x14db[87])};exports[_0x14db[88]]= function(_0x5a1exd,_0x5a1exe){getStream(_0x5a1exd,_0x5a1exe,_0x14db[89])};function getStream(_0x5a1exd,_0x5a1exe,_0x5a1ex27){return Sound[_0x14db[24]](_0x5a1exd[_0x14db[23]][_0x14db[22]])[_0x14db[18]](function(_0x5a1ex20){var _0x5a1ex29=Promise[_0x14db[93]](fs[_0x14db[92]]);return _0x5a1ex29(path[_0x14db[27]](config[_0x5a1ex27+ _0x14db[94]],_0x5a1ex20[_0x14db[45]]+ _0x14db[48]+ _0x5a1ex20[_0x5a1ex27+ _0x14db[95]]))})[_0x14db[18]](function(_0x5a1ex1b){var _0x5a1ex28= new Buffer(_0x5a1ex1b,_0x14db[91]).toString(_0x14db[90]);return _0x5a1ex28})[_0x14db[18]](function(_0x5a1ex28){return _0x5a1exe[_0x14db[17]](200)[_0x14db[16]]({downloadString:_0x5a1ex28})})[_0x14db[15]](function(_0x5a1exf){console[_0x14db[76]](_0x5a1exf);return handleError(_0x5a1exe,_0x5a1exf)})}function handleError(_0x5a1exe,_0x5a1exf){return _0x5a1exe[_0x14db[17]](500)[_0x14db[16]](_0x5a1exf)}
\ No newline at end of file