Built motion from commit ae98c6c.|0.0.149
[motion.git] / server / api / voice_context / voice_context.controller.js
index f9b7a44..3543eb3 100644 (file)
@@ -1 +1 @@
-var _0x93e1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x6F\x69\x63\x65\x43\x6F\x6E\x74\x65\x78\x74","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x67\x65\x74\x51\x75\x65\x72\x79","\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\x6F\x6E\x74\x65\x78\x74\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x6E\x61\x6D\x65","\x62\x6F\x64\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x63\x72\x65\x61\x74\x65","\x6D\x65\x73\x73\x61\x67\x65","\x54\x68\x65\x20\x63\x6F\x6E\x74\x65\x78\x74\x20\x6E\x61\x6D\x65\x20\x61\x6C\x72\x65\x61\x64\x79\x20\x65\x78\x69\x73\x74\x73","\x74\x72\x61\x6E\x73\x6C\x61\x74\x65\x64\x4D\x65\x73\x73\x61\x67\x65","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x43\x4F\x4E\x54\x45\x58\x54","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x6C\x65\x6E\x67\x74\x68","\x64\x65\x73\x74\x72\x6F\x79","\x65\x72\x72","\x6C\x6F\x67","\x54\x68\x65\x20\x63\x6F\x6E\x74\x65\x78\x74\x20\x69\x73\x20\x61\x73\x73\x6F\x63\x69\x61\x74\x65\x64\x20\x74\x6F\x20\x61\x20\x72\x6F\x75\x74\x65\x2C\x20\x64\x65\x6C\x65\x74\x65\x20\x6F\x72\x20\x63\x68\x61\x6E\x67\x65\x20\x69\x74\x20\x66\x69\x72\x73\x74","\x4D\x45\x53\x53\x41\x47\x45\x5F\x43\x4F\x4E\x54\x45\x58\x54\x5F\x52\x4F\x55\x54\x45\x5F\x41\x53\x53\x4F\x43\x49\x41\x54\x45\x44","\x64\x65\x66\x61\x75\x6C\x74\x45\x6E\x74\x72\x79","\x59\x6F\x75\x20\x63\x61\x6E\x27\x74\x20\x64\x65\x6C\x65\x74\x65\x20\x61\x20\x64\x65\x66\x61\x75\x6C\x74\x20\x65\x6E\x74\x72\x79\x21","\x4D\x45\x53\x53\x41\x47\x45\x5F\x44\x45\x46\x41\x55\x4C\x54\x5F\x45\x4E\x54\x52\x59","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x69\x64\x73","\x66\x69\x6E\x64","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x6D\x61\x70"];_0x93e1[0];var _=require(_0x93e1[1]);var util=require(_0x93e1[2]);var Util=require(_0x93e1[3]);var sequelize=require(_0x93e1[5])[_0x93e1[4]];var VoiceContext=require(_0x93e1[5])[_0x93e1[6]];var VoiceExtension=require(_0x93e1[5])[_0x93e1[7]];exports[_0x93e1[8]]= function(_0x1785x7,_0x1785x8,_0x1785x9){return VoiceContext[_0x93e1[15]](Util[_0x93e1[14]](_0x1785x7[_0x93e1[13]]))[_0x93e1[12]](function(_0x1785xb){_0x1785x8[_0x93e1[11]](200)[_0x93e1[10]](_0x1785xb)})[_0x93e1[9]](function(_0x1785xa){return handleError(_0x1785x8,_0x1785xa)})};exports[_0x93e1[16]]= function(_0x1785x7,_0x1785x8){return VoiceContext[_0x93e1[20]](_0x1785x7[_0x93e1[19]][_0x93e1[18]])[_0x93e1[12]](function(_0x1785xc){if(!_0x1785xc){return _0x1785x8[_0x93e1[17]](404)};return _0x1785x8[_0x93e1[10]](_0x1785xc)})[_0x93e1[9]](function(_0x1785xa){return handleError(_0x1785x8,_0x1785xa)})};exports[_0x93e1[21]]= function(_0x1785x7,_0x1785x8){return VoiceContext[_0x93e1[24]]({where:{name:_0x1785x7[_0x93e1[23]][_0x93e1[22]]}})[_0x93e1[12]](function(_0x1785xd){if(!_0x1785xd){return _0x1785x8[_0x93e1[17]](404)};return _0x1785x8[_0x93e1[10]](_0x1785xd)})[_0x93e1[9]](function(_0x1785xa){return handleError(_0x1785x8,_0x1785xa)})};exports[_0x93e1[25]]= function(_0x1785x7,_0x1785x8){return VoiceContext[_0x93e1[25]](_0x1785x7[_0x93e1[23]])[_0x93e1[12]](function(_0x1785xc){return _0x1785x8[_0x93e1[11]](201)[_0x93e1[10]](_0x1785xc)})[_0x93e1[9]](sequelize.UniqueConstraintError,function(_0x1785xa){_0x1785xa[_0x93e1[26]]= _0x93e1[27];_0x1785xa[_0x93e1[28]]= _0x93e1[29];return handleError(_0x1785x8,_0x1785xa)})[_0x93e1[9]](function(_0x1785xa){return handleError(_0x1785x8,_0x1785xa)})};exports[_0x93e1[30]]= function(_0x1785x7,_0x1785x8){return VoiceContext[_0x93e1[24]]({where:{name:_0x1785x7[_0x93e1[23]][_0x93e1[22]],id:{$ne:_0x1785x7[_0x93e1[23]][_0x93e1[18]]}}})[_0x93e1[12]](function(_0x1785xf){if(!_0x1785xf){return _0x1785x8[_0x93e1[17]](404)};if(_0x1785xf[_0x93e1[33]]> 0){return _0x1785x8[_0x93e1[11]](500)[_0x93e1[10]]({message:_0x93e1[29]})};if(_0x1785x7[_0x93e1[23]][_0x93e1[18]]){delete _0x1785x7[_0x93e1[23]][_0x93e1[18]]};return VoiceContext[_0x93e1[20]](_0x1785x7[_0x93e1[19]][_0x93e1[18]])})[_0x93e1[12]](function(_0x1785xc){if(!_0x1785xc){return _0x1785x8[_0x93e1[17]](404)};var _0x1785xe=_[_0x93e1[31]](_0x1785xc,_0x1785x7[_0x93e1[23]]);return _0x1785xe[_0x93e1[32]]()})[_0x93e1[12]](function(_0x1785xc){return _0x1785x8[_0x93e1[11]](200)[_0x93e1[10]](_0x1785xc)})[_0x93e1[9]](function(_0x1785xa){return handleError(_0x1785x8,_0x1785xa)})};exports[_0x93e1[34]]= function(_0x1785x7,_0x1785x8){var _0x1785x10;return VoiceContext[_0x93e1[20]](_0x1785x7[_0x93e1[19]][_0x93e1[18]])[_0x93e1[12]](function(_0x1785xc){_0x1785x10= _0x1785xc;if(!_0x1785x10){return _0x1785x8[_0x93e1[17]](404)};if(_0x1785x10[_0x93e1[39]]){return _0x1785x8[_0x93e1[11]](500)[_0x93e1[10]]({message:_0x93e1[40],translatedMessage:_0x93e1[41]})};return VoiceExtension[_0x93e1[24]]({where:{context:_0x1785x10[_0x93e1[22]],VoiceContextId:null}})})[_0x93e1[12]](function(_0x1785x11){console[_0x93e1[36]](_0x1785x11);if(_0x1785x11[_0x93e1[33]]> 0){return _0x1785x8[_0x93e1[11]](500)[_0x93e1[10]]({message:_0x93e1[37],translatedMessage:_0x93e1[38]})};return _0x1785x10[_0x93e1[34]]()})[_0x93e1[12]](function(){return _0x1785x8[_0x93e1[17]](204)})[_0x93e1[9]](function(_0x1785xa){console[_0x93e1[36]](_0x93e1[35],_0x1785xa);return handleError(_0x1785x8,_0x1785xa)})};exports[_0x93e1[42]]= function(_0x1785x7,_0x1785x8){var _0x1785x12;return VoiceContext[_0x93e1[24]]({where:{id:_0x1785x7[_0x93e1[13]][_0x93e1[43]]}})[_0x93e1[12]](function(_0x1785xd){_0x1785x12= _0x1785xd;var _0x1785x13=_[_0x93e1[44]](_0x1785x12,{defaultEntry:true});if(_0x1785x13){return _0x1785x8[_0x93e1[11]](500)[_0x93e1[10]]({message:_0x93e1[40],translatedMessage:_0x93e1[41]})};if(!_0x1785x12){return _0x1785x8[_0x93e1[17]](404)};var _0x1785x14=_[_0x93e1[46]](_[_0x93e1[46]](_0x1785x12,_0x93e1[45]),_0x93e1[22]);return VoiceExtension[_0x93e1[24]]({where:{context:_0x1785x14,VoiceContextId:null}})})[_0x93e1[12]](function(_0x1785x11){if(_0x1785x11[_0x93e1[33]]> _0x1785x12[_0x93e1[33]]){return _0x1785x8[_0x93e1[11]](500)[_0x93e1[10]]({message:_0x93e1[37],translatedMessage:_0x93e1[38]})};return VoiceContext[_0x93e1[34]]({where:{id:_0x1785x7[_0x93e1[13]][_0x93e1[43]]},individualHooks:true})})[_0x93e1[12]](function(){return _0x1785x8[_0x93e1[17]](204)})[_0x93e1[9]](function(_0x1785xa){console[_0x93e1[36]](_0x1785xa);return handleError(_0x1785x8,_0x1785xa)})};function handleError(_0x1785x8,_0x1785xa){return _0x1785x8[_0x93e1[11]](500)[_0x93e1[10]](_0x1785xa)}
\ No newline at end of file
+var _0x22bf=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x6F\x69\x63\x65\x43\x6F\x6E\x74\x65\x78\x74","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x67\x65\x74\x51\x75\x65\x72\x79","\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\x6F\x6E\x74\x65\x78\x74\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x6E\x61\x6D\x65","\x62\x6F\x64\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x63\x72\x65\x61\x74\x65","\x6D\x65\x73\x73\x61\x67\x65","\x54\x68\x65\x20\x63\x6F\x6E\x74\x65\x78\x74\x20\x6E\x61\x6D\x65\x20\x61\x6C\x72\x65\x61\x64\x79\x20\x65\x78\x69\x73\x74\x73","\x74\x72\x61\x6E\x73\x6C\x61\x74\x65\x64\x4D\x65\x73\x73\x61\x67\x65","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x43\x4F\x4E\x54\x45\x58\x54","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x6C\x65\x6E\x67\x74\x68","\x64\x65\x73\x74\x72\x6F\x79","\x65\x72\x72","\x6C\x6F\x67","\x54\x68\x65\x20\x63\x6F\x6E\x74\x65\x78\x74\x20\x69\x73\x20\x61\x73\x73\x6F\x63\x69\x61\x74\x65\x64\x20\x74\x6F\x20\x61\x20\x72\x6F\x75\x74\x65\x2C\x20\x64\x65\x6C\x65\x74\x65\x20\x6F\x72\x20\x63\x68\x61\x6E\x67\x65\x20\x69\x74\x20\x66\x69\x72\x73\x74","\x4D\x45\x53\x53\x41\x47\x45\x5F\x43\x4F\x4E\x54\x45\x58\x54\x5F\x52\x4F\x55\x54\x45\x5F\x41\x53\x53\x4F\x43\x49\x41\x54\x45\x44","\x64\x65\x66\x61\x75\x6C\x74\x45\x6E\x74\x72\x79","\x59\x6F\x75\x20\x63\x61\x6E\x27\x74\x20\x64\x65\x6C\x65\x74\x65\x20\x61\x20\x64\x65\x66\x61\x75\x6C\x74\x20\x65\x6E\x74\x72\x79\x21","\x4D\x45\x53\x53\x41\x47\x45\x5F\x44\x45\x46\x41\x55\x4C\x54\x5F\x45\x4E\x54\x52\x59","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x69\x64\x73","\x66\x69\x6E\x64","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x6D\x61\x70"];_0x22bf[0];var _=require(_0x22bf[1]);var util=require(_0x22bf[2]);var Util=require(_0x22bf[3]);var sequelize=require(_0x22bf[5])[_0x22bf[4]];var VoiceContext=require(_0x22bf[5])[_0x22bf[6]];var VoiceExtension=require(_0x22bf[5])[_0x22bf[7]];exports[_0x22bf[8]]= function(_0xe068x7,_0xe068x8,_0xe068x9){return VoiceContext[_0x22bf[15]](Util[_0x22bf[14]](_0xe068x7[_0x22bf[13]]))[_0x22bf[12]](function(_0xe068xb){_0xe068x8[_0x22bf[11]](200)[_0x22bf[10]](_0xe068xb)})[_0x22bf[9]](function(_0xe068xa){return handleError(_0xe068x8,_0xe068xa)})};exports[_0x22bf[16]]= function(_0xe068x7,_0xe068x8){return VoiceContext[_0x22bf[20]](_0xe068x7[_0x22bf[19]][_0x22bf[18]])[_0x22bf[12]](function(_0xe068xc){if(!_0xe068xc){return _0xe068x8[_0x22bf[17]](404)};return _0xe068x8[_0x22bf[10]](_0xe068xc)})[_0x22bf[9]](function(_0xe068xa){return handleError(_0xe068x8,_0xe068xa)})};exports[_0x22bf[21]]= function(_0xe068x7,_0xe068x8){return VoiceContext[_0x22bf[24]]({where:{name:_0xe068x7[_0x22bf[23]][_0x22bf[22]]}})[_0x22bf[12]](function(_0xe068xd){if(!_0xe068xd){return _0xe068x8[_0x22bf[17]](404)};return _0xe068x8[_0x22bf[10]](_0xe068xd)})[_0x22bf[9]](function(_0xe068xa){return handleError(_0xe068x8,_0xe068xa)})};exports[_0x22bf[25]]= function(_0xe068x7,_0xe068x8){return VoiceContext[_0x22bf[25]](_0xe068x7[_0x22bf[23]])[_0x22bf[12]](function(_0xe068xc){return _0xe068x8[_0x22bf[11]](201)[_0x22bf[10]](_0xe068xc)})[_0x22bf[9]](sequelize.UniqueConstraintError,function(_0xe068xa){_0xe068xa[_0x22bf[26]]= _0x22bf[27];_0xe068xa[_0x22bf[28]]= _0x22bf[29];return handleError(_0xe068x8,_0xe068xa)})[_0x22bf[9]](function(_0xe068xa){return handleError(_0xe068x8,_0xe068xa)})};exports[_0x22bf[30]]= function(_0xe068x7,_0xe068x8){return VoiceContext[_0x22bf[24]]({where:{name:_0xe068x7[_0x22bf[23]][_0x22bf[22]],id:{$ne:_0xe068x7[_0x22bf[23]][_0x22bf[18]]}}})[_0x22bf[12]](function(_0xe068xf){if(!_0xe068xf){return _0xe068x8[_0x22bf[17]](404)};if(_0xe068xf[_0x22bf[33]]> 0){return _0xe068x8[_0x22bf[11]](500)[_0x22bf[10]]({message:_0x22bf[29]})};if(_0xe068x7[_0x22bf[23]][_0x22bf[18]]){delete _0xe068x7[_0x22bf[23]][_0x22bf[18]]};return VoiceContext[_0x22bf[20]](_0xe068x7[_0x22bf[19]][_0x22bf[18]])})[_0x22bf[12]](function(_0xe068xc){if(!_0xe068xc){return _0xe068x8[_0x22bf[17]](404)};var _0xe068xe=_[_0x22bf[31]](_0xe068xc,_0xe068x7[_0x22bf[23]]);return _0xe068xe[_0x22bf[32]]()})[_0x22bf[12]](function(_0xe068xc){return _0xe068x8[_0x22bf[11]](200)[_0x22bf[10]](_0xe068xc)})[_0x22bf[9]](function(_0xe068xa){return handleError(_0xe068x8,_0xe068xa)})};exports[_0x22bf[34]]= function(_0xe068x7,_0xe068x8){var _0xe068x10;return VoiceContext[_0x22bf[20]](_0xe068x7[_0x22bf[19]][_0x22bf[18]])[_0x22bf[12]](function(_0xe068xc){_0xe068x10= _0xe068xc;if(!_0xe068x10){return _0xe068x8[_0x22bf[17]](404)};if(_0xe068x10[_0x22bf[39]]){return _0xe068x8[_0x22bf[11]](500)[_0x22bf[10]]({message:_0x22bf[40],translatedMessage:_0x22bf[41]})};return VoiceExtension[_0x22bf[24]]({where:{context:_0xe068x10[_0x22bf[22]],VoiceContextId:null}})})[_0x22bf[12]](function(_0xe068x11){console[_0x22bf[36]](_0xe068x11);if(_0xe068x11[_0x22bf[33]]> 0){return _0xe068x8[_0x22bf[11]](500)[_0x22bf[10]]({message:_0x22bf[37],translatedMessage:_0x22bf[38]})};return _0xe068x10[_0x22bf[34]]()})[_0x22bf[12]](function(){return _0xe068x8[_0x22bf[17]](204)})[_0x22bf[9]](function(_0xe068xa){console[_0x22bf[36]](_0x22bf[35],_0xe068xa);return handleError(_0xe068x8,_0xe068xa)})};exports[_0x22bf[42]]= function(_0xe068x7,_0xe068x8){var _0xe068x12;return VoiceContext[_0x22bf[24]]({where:{id:_0xe068x7[_0x22bf[13]][_0x22bf[43]]}})[_0x22bf[12]](function(_0xe068xd){_0xe068x12= _0xe068xd;var _0xe068x13=_[_0x22bf[44]](_0xe068x12,{defaultEntry:true});if(_0xe068x13){return _0xe068x8[_0x22bf[11]](500)[_0x22bf[10]]({message:_0x22bf[40],translatedMessage:_0x22bf[41]})};if(!_0xe068x12){return _0xe068x8[_0x22bf[17]](404)};var _0xe068x14=_[_0x22bf[46]](_[_0x22bf[46]](_0xe068x12,_0x22bf[45]),_0x22bf[22]);return VoiceExtension[_0x22bf[24]]({where:{context:_0xe068x14,VoiceContextId:null}})})[_0x22bf[12]](function(_0xe068x11){if(_0xe068x11[_0x22bf[33]]> _0xe068x12[_0x22bf[33]]){return _0xe068x8[_0x22bf[11]](500)[_0x22bf[10]]({message:_0x22bf[37],translatedMessage:_0x22bf[38]})};return VoiceContext[_0x22bf[34]]({where:{id:_0xe068x7[_0x22bf[13]][_0x22bf[43]]},individualHooks:true})})[_0x22bf[12]](function(){return _0xe068x8[_0x22bf[17]](204)})[_0x22bf[9]](function(_0xe068xa){console[_0x22bf[36]](_0xe068xa);return handleError(_0xe068x8,_0xe068xa)})};function handleError(_0xe068x8,_0xe068xa){return _0xe068x8[_0x22bf[11]](500)[_0x22bf[10]](_0xe068xa)}
\ No newline at end of file