Built motion from commit de2cb856.|2.0.30
[motion2.git] / server / api / sound / sound.controller.js
1 var _0xf2d2=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x66\x61\x73\x74\x2D\x6A\x73\x6F\x6E\x2D\x70\x61\x74\x63\x68","\x72\x65\x71\x75\x65\x73\x74\x2D\x70\x72\x6F\x6D\x69\x73\x65","\x6D\x6F\x6D\x65\x6E\x74","\x62\x6C\x75\x65\x62\x69\x72\x64","\x6D\x75\x73\x74\x61\x63\x68\x65","\x75\x74\x69\x6C","\x70\x61\x74\x68","\x73\x6F\x78","\x65\x6A\x73","\x66\x73","\x6C\x6F\x64\x61\x73\x68","\x73\x71\x75\x65\x6C","\x63\x72\x79\x70\x74\x6F","\x6A\x73\x66\x6F\x72\x63\x65","\x64\x65\x73\x6B\x2E\x6A\x73","\x74\x6F\x2D\x63\x73\x76","\x71\x75\x65\x72\x79\x73\x74\x72\x69\x6E\x67","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x73\x2F\x70\x61\x72\x73\x65\x72\x73\x2F\x71\x73","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x64\x62","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x79\x73\x71\x6C\x64\x62","\x53\x6F\x75\x6E\x64\x2C\x20\x25\x73\x2C\x20\x25\x73\x2C\x20\x25\x73","\x6E\x6F\x20\x63\x6F\x6E\x74\x65\x6E\x74","\x69\x6E\x66\x6F","\x53\x6F\x75\x6E\x64\x2C\x20\x25\x73\x2C\x20\x25\x73\x2C\x20\x25\x73\x2C\x20\x25\x73","\x64\x65\x62\x75\x67","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x65\x6E\x74\x69\x74\x79\x20\x66\x6F\x75\x6E\x64","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x6A\x73\x6F\x6E","\x63\x6F\x75\x6E\x74","\x6F\x66\x66\x73\x65\x74","\x6C\x69\x6D\x69\x74","\x65\x6E\x74\x69\x74\x69\x65\x73\x20\x66\x6F\x75\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x52\x61\x6E\x67\x65","\x2D","\x2F","\x73\x65\x74","\x61\x70\x70\x6C\x79","\x72\x65\x6A\x65\x63\x74","\x73\x61\x76\x65","\x65\x6E\x74\x69\x74\x79\x20\x75\x70\x64\x61\x74\x65\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65","\x65\x6E\x74\x69\x74\x79\x20\x72\x65\x6D\x6F\x76\x65\x64","\x64\x65\x73\x74\x72\x6F\x79","\x65\x6E\x74\x69\x74\x79\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x65\x72\x72\x6F\x72","\x69\x6E\x73\x70\x65\x63\x74","\x6E\x61\x6D\x65","\x73\x65\x6E\x64","\x69\x6E\x64\x65\x78","\x6D\x6F\x64\x65\x6C","\x72\x61\x77\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x53\x6F\x75\x6E\x64","\x6B\x65\x79\x73","\x71\x75\x65\x72\x79","\x66\x69\x6C\x74\x65\x72\x73","\x69\x6E\x74\x65\x72\x73\x65\x63\x74\x69\x6F\x6E","\x61\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x66\x69\x65\x6C\x64\x73","\x6C\x65\x6E\x67\x74\x68","\x6E\x6F\x6C\x69\x6D\x69\x74","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x6F\x72\x64\x65\x72","\x73\x6F\x72\x74","\x77\x68\x65\x72\x65","\x70\x69\x63\x6B","\x66\x69\x6C\x74\x65\x72","\x25","\x6D\x61\x70","\x6D\x65\x72\x67\x65","\x6F\x70\x74\x69\x6F\x6E\x73","\x63\x61\x74\x63\x68","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64","\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x53\x6F\x75\x6E\x64\x2C\x20\x25\x73\x2C\x20\x25\x73","\x72\x6F\x6F\x74","\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","\x73\x61\x76\x65\x5F\x6E\x61\x6D\x65","\x2E","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x66\x6F\x72\x6D\x61\x74","\x6A\x6F\x69\x6E","\x65\x78\x69\x73\x74\x73\x53\x79\x6E\x63","\x53\x6F\x75\x6E\x64\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x53\x65\x71\x75\x65\x6C\x69\x7A\x65","\x25\x73\x2E\x25\x73","\x66\x6F\x72\x6D\x61\x74","\x63\x72\x65\x61\x74\x65","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x6E\x61\x6D\x65","\x66\x69\x6C\x65","\x65\x78\x74\x6E\x61\x6D\x65","\x62\x61\x73\x65\x6E\x61\x6D\x65","\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x73\x75\x62\x73\x74\x72\x69\x6E\x67","\x77\x61\x76","\x73\x65\x72\x76\x65\x72\x2F\x66\x69\x6C\x65\x73\x2F\x73\x6F\x75\x6E\x64\x73\x2F\x6F\x72\x69\x67\x69\x6E\x61\x6C","\x53\x6F\x75\x6E\x64\x20\x75\x70\x6C\x6F\x61\x64\x20\x66\x69\x6C\x65\x70\x61\x74\x68\x3A\x20\x25\x73","\x53\x6F\x75\x6E\x64\x20\x75\x70\x6C\x6F\x61\x64\x20\x64\x65\x73\x74\x69\x6E\x61\x74\x69\x6F\x6E\x3A\x20\x25\x73","\x30\x37\x37\x37","\x63\x68\x6D\x6F\x64\x53\x79\x6E\x63","\x74\x72\x61\x6E\x73\x63\x6F\x64\x65","\x6F\x6E","\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","\x63\x72\x61\x74\x65","\x73\x74\x61\x72\x74","\x62\x6F\x64\x79","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x64\x65\x6C\x65\x74\x65","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x66\x6F\x72\x6D\x61\x74","\x75\x6E\x6C\x69\x6E\x6B\x53\x79\x6E\x63"];_0xf2d2[0];var jsonpatch=require(_0xf2d2[1]);var rp=require(_0xf2d2[2]);var moment=require(_0xf2d2[3]);var BPromise=require(_0xf2d2[4]);var Mustache=require(_0xf2d2[5]);var util=require(_0xf2d2[6]);var path=require(_0xf2d2[7]);var sox=require(_0xf2d2[8]);var ejs=require(_0xf2d2[9]);var fs=require(_0xf2d2[10]);var _=require(_0xf2d2[11]);var squel=require(_0xf2d2[12]);var crypto=require(_0xf2d2[13]);var jsforce=require(_0xf2d2[14]);var deskjs=require(_0xf2d2[15]);var toCsv=require(_0xf2d2[16]);var querystring=require(_0xf2d2[17]);var qs=require(_0xf2d2[18]);var logger=require(_0xf2d2[20])(_0xf2d2[19]);var utils=require(_0xf2d2[21]);var config=require(_0xf2d2[22]);var db=require(_0xf2d2[24])[_0xf2d2[23]];function respondWithStatusCode(_0x8f65x18,_0x8f65x19,_0x8f65x1a){_0x8f65x19= _0x8f65x19|| 204;return function(_0x8f65x1b){if(_0x8f65x1b){logger[_0xf2d2[27]](_0xf2d2[25],_0x8f65x1a,_0x8f65x19,_0xf2d2[26]);logger[_0xf2d2[29]](_0xf2d2[28],_0x8f65x1a,_0x8f65x19,_0xf2d2[26]);return _0x8f65x18[_0xf2d2[30]](_0x8f65x19)};return _0x8f65x18[_0xf2d2[32]](304)[_0xf2d2[31]]()}}function respondWithResult(_0x8f65x18,_0x8f65x19,_0x8f65x1a){_0x8f65x19= _0x8f65x19|| 200;return function(_0x8f65x1b){if(_0x8f65x1b){logger[_0xf2d2[27]](_0xf2d2[25],_0x8f65x1a,_0x8f65x19,_0xf2d2[33]);logger[_0xf2d2[29]](_0xf2d2[28],_0x8f65x1a,_0x8f65x19,_0xf2d2[33],JSON[_0xf2d2[34]](_0x8f65x1b));return _0x8f65x18[_0xf2d2[32]](_0x8f65x19)[_0xf2d2[35]](_0x8f65x1b)};return _0x8f65x18[_0xf2d2[32]](304)[_0xf2d2[31]]()}}function respondWithFilteredResult(_0x8f65x18,_0x8f65x1e,_0x8f65x1a){return function(_0x8f65x1b){if(_0x8f65x1b){var _0x8f65x1f=_0x8f65x1b[_0xf2d2[36]],_0x8f65x20=_0x8f65x1e[_0xf2d2[37]],_0x8f65x21=_0x8f65x1e[_0xf2d2[37]]+ _0x8f65x1e[_0xf2d2[38]],_0x8f65x19;if(_0x8f65x21>= _0x8f65x1f){_0x8f65x21= _0x8f65x1f;_0x8f65x19= 200}else {_0x8f65x19= 206};_0x8f65x18[_0xf2d2[32]](_0x8f65x19);logger[_0xf2d2[27]](_0xf2d2[25],_0x8f65x1a,_0x8f65x19,_0xf2d2[39]);logger[_0xf2d2[29]](_0xf2d2[28],_0x8f65x1a,_0x8f65x19,_0xf2d2[33],JSON[_0xf2d2[34]](_0x8f65x1b));return _0x8f65x18[_0xf2d2[43]](_0xf2d2[40],_0x8f65x20+ _0xf2d2[41]+ _0x8f65x21+ _0xf2d2[42]+ _0x8f65x1f)[_0xf2d2[35]](_0x8f65x1b)};return null}}function patchUpdates(_0x8f65x23){return function(_0x8f65x1b){try{jsonpatch[_0xf2d2[44]](_0x8f65x1b,_0x8f65x23,true)}catch(err){return BPromise[_0xf2d2[45]](err)};return _0x8f65x1b[_0xf2d2[46]]()}}function saveUpdates(_0x8f65x25,_0x8f65x19,_0x8f65x1a){return function(_0x8f65x1b){if(_0x8f65x1b){return _0x8f65x1b[_0xf2d2[49]](_0x8f65x25)[_0xf2d2[48]](function(_0x8f65x26){logger[_0xf2d2[27]](_0xf2d2[25],_0x8f65x1a,_0x8f65x19,_0xf2d2[47]);logger[_0xf2d2[29]](_0xf2d2[28],_0x8f65x1a,_0x8f65x19,_0xf2d2[47],JSON[_0xf2d2[34]](_0x8f65x1b));return _0x8f65x26})};return null}}function removeEntity(_0x8f65x18,_0x8f65x19,_0x8f65x1a){return function(_0x8f65x1b){if(_0x8f65x1b){return _0x8f65x1b[_0xf2d2[51]]()[_0xf2d2[48]](function(){logger[_0xf2d2[27]](_0xf2d2[25],_0x8f65x1a,_0x8f65x19,_0xf2d2[50]);logger[_0xf2d2[29]](_0xf2d2[28],_0x8f65x1a,_0x8f65x19,_0xf2d2[50],JSON[_0xf2d2[34]](_0x8f65x1b));_0x8f65x18[_0xf2d2[32]](204)[_0xf2d2[31]]()})}}}function handleEntityNotFound(_0x8f65x18,_0x8f65x19,_0x8f65x1a){return function(_0x8f65x1b){if(!_0x8f65x1b){logger[_0xf2d2[53]](_0xf2d2[25],_0x8f65x1a,404,_0xf2d2[52]);return _0x8f65x18[_0xf2d2[30]](404)};return _0x8f65x1b}}function handleError(_0x8f65x18,_0x8f65x19,_0x8f65x1a){_0x8f65x19= _0x8f65x19|| 500;return function(_0x8f65x2a){logger[_0xf2d2[53]](_0xf2d2[25],_0x8f65x1a,_0x8f65x19,util[_0xf2d2[54]](_0x8f65x2a,{showHidden:false,depth:null}));delete _0x8f65x2a[_0xf2d2[55]];_0x8f65x18[_0xf2d2[32]](_0x8f65x19)[_0xf2d2[56]](_0x8f65x2a)}}exports[_0xf2d2[57]]= function(_0x8f65x2b,_0x8f65x18){var _0x8f65x1e={},_0x8f65x2c={};_0x8f65x2c[_0xf2d2[58]]= _[_0xf2d2[61]](db[_0xf2d2[60]][_0xf2d2[59]]);_0x8f65x2c[_0xf2d2[62]]= _[_0xf2d2[61]](_0x8f65x2b[_0xf2d2[62]]);_0x8f65x2c[_0xf2d2[63]]= _[_0xf2d2[64]](_0x8f65x2c[_0xf2d2[58]],_0x8f65x2c[_0xf2d2[62]]);_0x8f65x1e[_0xf2d2[65]]= _[_0xf2d2[64]](_0x8f65x2c[_0xf2d2[58]],qs[_0xf2d2[66]](_0x8f65x2b[_0xf2d2[62]][_0xf2d2[66]]));_0x8f65x1e[_0xf2d2[65]]= (_0x8f65x1e[_0xf2d2[65]][_0xf2d2[67]])?_0x8f65x1e[_0xf2d2[65]]:_0x8f65x2c[_0xf2d2[58]];if(!_0x8f65x2b[_0xf2d2[62]][_0xf2d2[69]](_0xf2d2[68])){_0x8f65x1e[_0xf2d2[38]]= qs[_0xf2d2[38]](_0x8f65x2b[_0xf2d2[62]][_0xf2d2[38]]);_0x8f65x1e[_0xf2d2[37]]= qs[_0xf2d2[37]](_0x8f65x2b[_0xf2d2[62]][_0xf2d2[37]])};_0x8f65x1e[_0xf2d2[70]]= qs[_0xf2d2[71]](_0x8f65x2b[_0xf2d2[62]][_0xf2d2[71]]);_0x8f65x1e[_0xf2d2[72]]= qs[_0xf2d2[63]](_[_0xf2d2[73]](_0x8f65x2b[_0xf2d2[62]],_0x8f65x2c[_0xf2d2[63]]));if(_0x8f65x2b[_0xf2d2[62]][_0xf2d2[74]]){_0x8f65x1e[_0xf2d2[72]]= _[_0xf2d2[77]](_0x8f65x1e[_0xf2d2[72]],{$or:_[_0xf2d2[76]](_0x8f65x1e[_0xf2d2[65]],function(_0x8f65x2d){var _0x8f65x2e={};_0x8f65x2e[_0x8f65x2d]= {$like:_0xf2d2[75]+ _0x8f65x2b[_0xf2d2[62]][_0xf2d2[74]]+ _0xf2d2[75]};return _0x8f65x2e})})};_0x8f65x1e= _[_0xf2d2[77]]({},_0x8f65x1e,_0x8f65x2b[_0xf2d2[78]]);return db[_0xf2d2[60]][_0xf2d2[80]](_0x8f65x1e)[_0xf2d2[48]](respondWithFilteredResult(_0x8f65x18,_0x8f65x1e,_0xf2d2[57]))[_0xf2d2[79]](handleError(_0x8f65x18,null,_0xf2d2[57]))};exports[_0xf2d2[81]]= function(_0x8f65x2b,_0x8f65x18){var _0x8f65x1e={raw:true,where:{id:_0x8f65x2b[_0xf2d2[83]][_0xf2d2[82]]}},_0x8f65x2c={};_0x8f65x2c[_0xf2d2[58]]= _[_0xf2d2[61]](db[_0xf2d2[60]][_0xf2d2[59]]);_0x8f65x2c[_0xf2d2[62]]= _[_0xf2d2[61]](_0x8f65x2b[_0xf2d2[62]]);_0x8f65x2c[_0xf2d2[63]]= _[_0xf2d2[64]](_0x8f65x2c[_0xf2d2[58]],_0x8f65x2c[_0xf2d2[62]]);_0x8f65x1e[_0xf2d2[65]]= _[_0xf2d2[64]](_0x8f65x2c[_0xf2d2[58]],qs[_0xf2d2[66]](_0x8f65x2b[_0xf2d2[62]][_0xf2d2[66]]));_0x8f65x1e[_0xf2d2[65]]= (_0x8f65x1e[_0xf2d2[65]][_0xf2d2[67]])?_0x8f65x1e[_0xf2d2[65]]:_0x8f65x2c[_0xf2d2[58]];_0x8f65x1e= _[_0xf2d2[77]]({},_0x8f65x1e,_0x8f65x2b[_0xf2d2[78]]);return db[_0xf2d2[60]][_0xf2d2[84]](_0x8f65x1e)[_0xf2d2[48]](handleEntityNotFound(_0x8f65x18,null,_0xf2d2[81]))[_0xf2d2[48]](respondWithResult(_0x8f65x18,null,_0xf2d2[81]))[_0xf2d2[79]](handleError(_0x8f65x18,null,_0xf2d2[81]))};exports[_0xf2d2[85]]= function(_0x8f65x2b,_0x8f65x18,_0x8f65x2f){return db[_0xf2d2[60]][_0xf2d2[84]]({where:{id:_0x8f65x2b[_0xf2d2[83]][_0xf2d2[82]]},attributes:[_0xf2d2[55],_0xf2d2[89],_0xf2d2[91]],raw:true})[_0xf2d2[48]](handleEntityNotFound(_0x8f65x18,null,_0xf2d2[85]))[_0xf2d2[48]](function(_0x8f65x1b){if(_0x8f65x1b){logger[_0xf2d2[27]](_0xf2d2[86],_0xf2d2[85],_0xf2d2[33]);logger[_0xf2d2[29]](_0xf2d2[25],_0xf2d2[85],_0xf2d2[33],JSON[_0xf2d2[34]](_0x8f65x1b));if(!fs[_0xf2d2[93]](path[_0xf2d2[92]](config[_0xf2d2[87]],_0xf2d2[88],_0x8f65x1b[_0xf2d2[89]]+ _0xf2d2[90]+ _0x8f65x1b[_0xf2d2[91]]))){throw  new db[_0xf2d2[95]].ValidationError(_0xf2d2[94])};return _0x8f65x18[_0xf2d2[85]](path[_0xf2d2[92]](config[_0xf2d2[87]],_0xf2d2[88],util[_0xf2d2[97]](_0xf2d2[96],_0x8f65x1b[_0xf2d2[89]],_0x8f65x1b[_0xf2d2[91]])),util[_0xf2d2[97]](_0xf2d2[96],_0x8f65x1b[_0xf2d2[55]],_0x8f65x1b[_0xf2d2[91]]))};return null})[_0xf2d2[79]](handleError(_0x8f65x18,null,_0xf2d2[81]))};exports[_0xf2d2[98]]= function(_0x8f65x2b,_0x8f65x18,_0x8f65x2f){var _0x8f65x30={name:path[_0xf2d2[102]](_0x8f65x2b[_0xf2d2[100]][_0xf2d2[99]],path[_0xf2d2[101]](_0x8f65x2b[_0xf2d2[100]][_0xf2d2[99]])),save_name:path[_0xf2d2[102]](_0x8f65x2b[_0xf2d2[100]][_0xf2d2[103]],path[_0xf2d2[101]](_0x8f65x2b[_0xf2d2[100]][_0xf2d2[103]])),original_format:path[_0xf2d2[101]](_0x8f65x2b[_0xf2d2[100]][_0xf2d2[99]])[_0xf2d2[104]](1),converted_format:_0xf2d2[105]};var _0x8f65x31=path[_0xf2d2[92]](config[_0xf2d2[87]],_0xf2d2[106],_0x8f65x2b[_0xf2d2[100]][_0xf2d2[103]]);var _0x8f65x32=path[_0xf2d2[92]](config[_0xf2d2[87]],_0xf2d2[88],util[_0xf2d2[97]](_0xf2d2[96],path[_0xf2d2[102]](_0x8f65x2b[_0xf2d2[100]][_0xf2d2[103]],path[_0xf2d2[101]](_0x8f65x2b[_0xf2d2[100]][_0xf2d2[103]])),_0x8f65x30[_0xf2d2[91]]));logger[_0xf2d2[27]](_0xf2d2[107],_0x8f65x31);logger[_0xf2d2[27]](_0xf2d2[108],_0x8f65x32);try{fs[_0xf2d2[110]](_0x8f65x31,parseInt(_0xf2d2[109],8));var _0x8f65x33=sox[_0xf2d2[111]](_0x8f65x31,_0x8f65x32,{sampleRate:8000,format:_0xf2d2[105],channelCount:1,bitRate:192* 1024,compressionQuality:5});_0x8f65x33[_0xf2d2[112]](_0xf2d2[53],function(_0x8f65x2a){_0x8f65x18[_0xf2d2[32]](500)[_0xf2d2[56]](_0x8f65x2a)});_0x8f65x33[_0xf2d2[112]](_0xf2d2[113],function(_0x8f65x34){_0x8f65x30[_0xf2d2[114]]= isNaN(_0x8f65x34[_0xf2d2[115]])?null:_0x8f65x34[_0xf2d2[115]]* 1000;_0x8f65x30[_0xf2d2[116]]= isNaN(_0x8f65x34[_0xf2d2[117]])?null:_0x8f65x34[_0xf2d2[117]];_0x8f65x30[_0xf2d2[118]]= isNaN(_0x8f65x34[_0xf2d2[119]])?null:_0x8f65x34[_0xf2d2[119]];_0x8f65x30[_0xf2d2[120]]= isNaN(_0x8f65x34[_0xf2d2[121]])?null:_0x8f65x34[_0xf2d2[121]];_0x8f65x30[_0xf2d2[122]]= isNaN(_0x8f65x34[_0xf2d2[123]])?null:_0x8f65x34[_0xf2d2[123]]});_0x8f65x33[_0xf2d2[112]](_0xf2d2[124],function(_0x8f65x34){_0x8f65x30[_0xf2d2[125]]= isNaN(_0x8f65x34[_0xf2d2[115]])?null:_0x8f65x34[_0xf2d2[115]]* 1000;_0x8f65x30[_0xf2d2[126]]= isNaN(_0x8f65x34[_0xf2d2[117]])?null:_0x8f65x34[_0xf2d2[117]];_0x8f65x30[_0xf2d2[127]]= isNaN(_0x8f65x34[_0xf2d2[119]])?null:_0x8f65x34[_0xf2d2[119]];_0x8f65x30[_0xf2d2[128]]= isNaN(_0x8f65x34[_0xf2d2[121]])?null:_0x8f65x34[_0xf2d2[121]];_0x8f65x30[_0xf2d2[129]]= isNaN(_0x8f65x34[_0xf2d2[123]])?null:_0x8f65x34[_0xf2d2[123]]});_0x8f65x33[_0xf2d2[112]](_0xf2d2[31],function(){fs[_0xf2d2[110]](_0x8f65x32,parseInt(_0xf2d2[109],8));return db[_0xf2d2[60]][_0xf2d2[98]](_0x8f65x30)[_0xf2d2[48]](respondWithResult(_0x8f65x18,null,_0xf2d2[98]))[_0xf2d2[79]](handleError(_0x8f65x18,null,_0xf2d2[130]))});_0x8f65x33[_0xf2d2[131]]()}catch(err){_0x8f65x18[_0xf2d2[32]](500)[_0xf2d2[56]](err)}};exports[_0xf2d2[49]]= function(_0x8f65x2b,_0x8f65x18,_0x8f65x2f){return db[_0xf2d2[60]][_0xf2d2[84]]({where:{id:_0x8f65x2b[_0xf2d2[83]][_0xf2d2[82]]}})[_0xf2d2[48]](handleEntityNotFound(_0x8f65x18,null,_0xf2d2[49]))[_0xf2d2[48]](saveUpdates(_[_0xf2d2[73]](_0x8f65x2b[_0xf2d2[132]],[_0xf2d2[55],_0xf2d2[133]]),null,_0xf2d2[49]))[_0xf2d2[48]](respondWithResult(_0x8f65x18,null,_0xf2d2[49]))[_0xf2d2[79]](handleError(_0x8f65x18,null,_0xf2d2[49]))};exports[_0xf2d2[134]]= function(_0x8f65x2b,_0x8f65x18,_0x8f65x2f){return db[_0xf2d2[60]][_0xf2d2[84]]({where:{id:_0x8f65x2b[_0xf2d2[83]][_0xf2d2[82]]}})[_0xf2d2[48]](function(_0x8f65x1b){if(_0x8f65x1b){return _0x8f65x1b[_0xf2d2[51]]()}})[_0xf2d2[48]](function(_0x8f65x1b){var _0x8f65x35=path[_0xf2d2[92]](config[_0xf2d2[87]],_0xf2d2[106],util[_0xf2d2[97]](_0xf2d2[96],_0x8f65x1b[_0xf2d2[89]],_0x8f65x1b[_0xf2d2[135]]));var _0x8f65x36=path[_0xf2d2[92]](config[_0xf2d2[87]],_0xf2d2[88],util[_0xf2d2[97]](_0xf2d2[96],_0x8f65x1b[_0xf2d2[89]],_0x8f65x1b[_0xf2d2[91]]));fs[_0xf2d2[136]](_0x8f65x35);fs[_0xf2d2[136]](_0x8f65x36);return _0x8f65x1b})[_0xf2d2[48]](function(_0x8f65x1b){if(_0x8f65x1b){return _0x8f65x18[_0xf2d2[32]](204)[_0xf2d2[31]]()}})[_0xf2d2[48]](handleEntityNotFound(_0x8f65x18,null,_0xf2d2[134]))[_0xf2d2[79]](handleError(_0x8f65x18,null,_0xf2d2[134]))}