Built motion from commit 12b39f1.|0.0.105
[motion.git] / server / api / voice_context / voice_context.controller.js
index 16d1e07..2b04382 100644 (file)
@@ -1 +1 @@
-var _0xfe06=["\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","\x6C\x65\x6E\x67\x74\x68","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x52\x4F\x55\x54\x45","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x72\x72","\x6C\x6F\x67","\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","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x69\x64\x73","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x6D\x61\x70"];_0xfe06[0];var _=require(_0xfe06[1]);var util=require(_0xfe06[2]);var Util=require(_0xfe06[3]);var sequelize=require(_0xfe06[5])[_0xfe06[4]];var VoiceContext=require(_0xfe06[5])[_0xfe06[6]];var VoiceExtension=require(_0xfe06[5])[_0xfe06[7]];exports[_0xfe06[8]]=function(_0x355ax7,_0x355ax8,_0x355ax9){return VoiceContext[_0xfe06[15]](Util[_0xfe06[14]](_0x355ax7[_0xfe06[13]]))[_0xfe06[12]](function(_0x355axb){_0x355ax8[_0xfe06[11]](200)[_0xfe06[10]](_0x355axb)})[_0xfe06[9]](function(_0x355axa){return handleError(_0x355ax8,_0x355axa)})};exports[_0xfe06[16]]=function(_0x355ax7,_0x355ax8){return VoiceContext[_0xfe06[20]](_0x355ax7[_0xfe06[19]][_0xfe06[18]])[_0xfe06[12]](function(_0x355axc){if(!_0x355axc){return _0x355ax8[_0xfe06[17]](404)};return _0x355ax8[_0xfe06[10]](_0x355axc)})[_0xfe06[9]](function(_0x355axa){return handleError(_0x355ax8,_0x355axa)})};exports[_0xfe06[21]]=function(_0x355ax7,_0x355ax8){return VoiceContext[_0xfe06[24]]({where:{name:_0x355ax7[_0xfe06[23]][_0xfe06[22]]}})[_0xfe06[12]](function(_0x355axd){if(!_0x355axd){return _0x355ax8[_0xfe06[17]](404)};return _0x355ax8[_0xfe06[10]](_0x355axd)})[_0xfe06[9]](function(_0x355axa){return handleError(_0x355ax8,_0x355axa)})};exports[_0xfe06[25]]=function(_0x355ax7,_0x355ax8){return VoiceContext[_0xfe06[24]]({where:{name:_0x355ax7[_0xfe06[23]][_0xfe06[22]]}})[_0xfe06[12]](function(_0x355axe){if(!_0x355axe){return _0x355ax8[_0xfe06[17]](404)};if(_0x355axe[_0xfe06[26]]>0){return _0x355ax8[_0xfe06[11]](500)[_0xfe06[10]]({message:_0xfe06[27]})};return VoiceContext[_0xfe06[25]](_0x355ax7[_0xfe06[23]],{include:[{model:VoiceExtension}]})})[_0xfe06[12]](function(_0x355axc){return _0x355ax8[_0xfe06[11]](201)[_0xfe06[10]](_0x355axc)})[_0xfe06[9]](function(_0x355axa){return handleError(_0x355ax8,_0x355axa)})};exports[_0xfe06[28]]=function(_0x355ax7,_0x355ax8){return VoiceContext[_0xfe06[24]]({where:{name:_0x355ax7[_0xfe06[23]][_0xfe06[22]],id:{$ne:_0x355ax7[_0xfe06[23]][_0xfe06[18]]}}})[_0xfe06[12]](function(_0x355axe){if(!_0x355axe){return _0x355ax8[_0xfe06[17]](404)};if(_0x355axe[_0xfe06[26]]>0){return _0x355ax8[_0xfe06[11]](500)[_0xfe06[10]]({message:_0xfe06[27]})};if(_0x355ax7[_0xfe06[23]][_0xfe06[18]]){delete _0x355ax7[_0xfe06[23]][_0xfe06[18]]};return VoiceContext[_0xfe06[20]](_0x355ax7[_0xfe06[19]][_0xfe06[18]])})[_0xfe06[12]](function(_0x355axc){if(!_0x355axc){return _0x355ax8[_0xfe06[17]](404)};var _0x355axf=_[_0xfe06[29]](_0x355axc,_0x355ax7[_0xfe06[23]]);return _0x355axf[_0xfe06[30]]()})[_0xfe06[12]](function(_0x355axc){return _0x355ax8[_0xfe06[11]](200)[_0xfe06[10]](_0x355axc)})[_0xfe06[9]](function(_0x355axa){return handleError(_0x355ax8,_0x355axa)})};exports[_0xfe06[31]]=function(_0x355ax7,_0x355ax8){var _0x355ax10;return VoiceContext[_0xfe06[20]](_0x355ax7[_0xfe06[19]][_0xfe06[18]])[_0xfe06[12]](function(_0x355axc){_0x355ax10=_0x355axc;if(!_0x355ax10){return _0x355ax8[_0xfe06[17]](404)};return VoiceExtension[_0xfe06[24]]({where:{context:_0x355ax10[_0xfe06[22]],VoiceContextId:null}})})[_0xfe06[12]](function(_0x355ax11){console[_0xfe06[33]](_0x355ax11);if(_0x355ax11[_0xfe06[26]]>0){return _0x355ax8[_0xfe06[11]](500)[_0xfe06[10]]({message:_0xfe06[34]})};return _0x355ax10[_0xfe06[31]]()})[_0xfe06[12]](function(){return _0x355ax8[_0xfe06[17]](204)})[_0xfe06[9]](function(_0x355axa){console[_0xfe06[33]](_0xfe06[32],_0x355axa);return handleError(_0x355ax8,_0x355axa)})};exports[_0xfe06[35]]=function(_0x355ax7,_0x355ax8){var _0x355ax12;return VoiceContext[_0xfe06[24]]({where:{id:_0x355ax7[_0xfe06[13]][_0xfe06[36]]}})[_0xfe06[12]](function(_0x355axd){_0x355ax12=_0x355axd;if(!_0x355ax12){return _0x355ax8[_0xfe06[17]](404)};var _0x355ax13=_[_0xfe06[38]](_[_0xfe06[38]](_0x355ax12,_0xfe06[37]),_0xfe06[22]);return VoiceExtension[_0xfe06[24]]({where:{context:_0x355ax13}})})[_0xfe06[12]](function(_0x355ax11){if(_0x355ax11[_0xfe06[26]]>_0x355ax12[_0xfe06[26]]){return _0x355ax8[_0xfe06[11]](500)[_0xfe06[10]]({message:_0xfe06[34]})};return VoiceContext[_0xfe06[31]]({where:{id:_0x355ax7[_0xfe06[13]][_0xfe06[36]]},individualHooks:true})})[_0xfe06[12]](function(){return _0x355ax8[_0xfe06[17]](204)})[_0xfe06[9]](function(_0x355axa){return handleError(_0x355ax8,_0x355axa)})};function handleError(_0x355ax8,_0x355axa){return _0x355ax8[_0xfe06[11]](500)[_0xfe06[10]](_0x355axa)}
\ No newline at end of file
+var _0x2e39=["\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"];_0x2e39[0];var _=require(_0x2e39[1]);var util=require(_0x2e39[2]);var Util=require(_0x2e39[3]);var sequelize=require(_0x2e39[5])[_0x2e39[4]];var VoiceContext=require(_0x2e39[5])[_0x2e39[6]];var VoiceExtension=require(_0x2e39[5])[_0x2e39[7]];exports[_0x2e39[8]]=function(_0x1f28x7,_0x1f28x8,_0x1f28x9){return VoiceContext[_0x2e39[15]](Util[_0x2e39[14]](_0x1f28x7[_0x2e39[13]]))[_0x2e39[12]](function(_0x1f28xb){_0x1f28x8[_0x2e39[11]](200)[_0x2e39[10]](_0x1f28xb)})[_0x2e39[9]](function(_0x1f28xa){return handleError(_0x1f28x8,_0x1f28xa)})};exports[_0x2e39[16]]=function(_0x1f28x7,_0x1f28x8){return VoiceContext[_0x2e39[20]](_0x1f28x7[_0x2e39[19]][_0x2e39[18]])[_0x2e39[12]](function(_0x1f28xc){if(!_0x1f28xc){return _0x1f28x8[_0x2e39[17]](404)};return _0x1f28x8[_0x2e39[10]](_0x1f28xc)})[_0x2e39[9]](function(_0x1f28xa){return handleError(_0x1f28x8,_0x1f28xa)})};exports[_0x2e39[21]]=function(_0x1f28x7,_0x1f28x8){return VoiceContext[_0x2e39[24]]({where:{name:_0x1f28x7[_0x2e39[23]][_0x2e39[22]]}})[_0x2e39[12]](function(_0x1f28xd){if(!_0x1f28xd){return _0x1f28x8[_0x2e39[17]](404)};return _0x1f28x8[_0x2e39[10]](_0x1f28xd)})[_0x2e39[9]](function(_0x1f28xa){return handleError(_0x1f28x8,_0x1f28xa)})};exports[_0x2e39[25]]=function(_0x1f28x7,_0x1f28x8){return VoiceContext[_0x2e39[25]](_0x1f28x7[_0x2e39[23]])[_0x2e39[12]](function(_0x1f28xc){return _0x1f28x8[_0x2e39[11]](201)[_0x2e39[10]](_0x1f28xc)})[_0x2e39[9]](sequelize.UniqueConstraintError,function(_0x1f28xa){_0x1f28xa[_0x2e39[26]]=_0x2e39[27];_0x1f28xa[_0x2e39[28]]=_0x2e39[29];return handleError(_0x1f28x8,_0x1f28xa)})[_0x2e39[9]](function(_0x1f28xa){return handleError(_0x1f28x8,_0x1f28xa)})};exports[_0x2e39[30]]=function(_0x1f28x7,_0x1f28x8){return VoiceContext[_0x2e39[24]]({where:{name:_0x1f28x7[_0x2e39[23]][_0x2e39[22]],id:{$ne:_0x1f28x7[_0x2e39[23]][_0x2e39[18]]}}})[_0x2e39[12]](function(_0x1f28xf){if(!_0x1f28xf){return _0x1f28x8[_0x2e39[17]](404)};if(_0x1f28xf[_0x2e39[33]]>0){return _0x1f28x8[_0x2e39[11]](500)[_0x2e39[10]]({message:_0x2e39[29]})};if(_0x1f28x7[_0x2e39[23]][_0x2e39[18]]){delete _0x1f28x7[_0x2e39[23]][_0x2e39[18]]};return VoiceContext[_0x2e39[20]](_0x1f28x7[_0x2e39[19]][_0x2e39[18]])})[_0x2e39[12]](function(_0x1f28xc){if(!_0x1f28xc){return _0x1f28x8[_0x2e39[17]](404)};var _0x1f28xe=_[_0x2e39[31]](_0x1f28xc,_0x1f28x7[_0x2e39[23]]);return _0x1f28xe[_0x2e39[32]]()})[_0x2e39[12]](function(_0x1f28xc){return _0x1f28x8[_0x2e39[11]](200)[_0x2e39[10]](_0x1f28xc)})[_0x2e39[9]](function(_0x1f28xa){return handleError(_0x1f28x8,_0x1f28xa)})};exports[_0x2e39[34]]=function(_0x1f28x7,_0x1f28x8){var _0x1f28x10;return VoiceContext[_0x2e39[20]](_0x1f28x7[_0x2e39[19]][_0x2e39[18]])[_0x2e39[12]](function(_0x1f28xc){_0x1f28x10=_0x1f28xc;if(!_0x1f28x10){return _0x1f28x8[_0x2e39[17]](404)};if(_0x1f28x10[_0x2e39[39]]){return _0x1f28x8[_0x2e39[11]](500)[_0x2e39[10]]({message:_0x2e39[40],translatedMessage:_0x2e39[41]})};return VoiceExtension[_0x2e39[24]]({where:{context:_0x1f28x10[_0x2e39[22]],VoiceContextId:null}})})[_0x2e39[12]](function(_0x1f28x11){console[_0x2e39[36]](_0x1f28x11);if(_0x1f28x11[_0x2e39[33]]>0){return _0x1f28x8[_0x2e39[11]](500)[_0x2e39[10]]({message:_0x2e39[37],translatedMessage:_0x2e39[38]})};return _0x1f28x10[_0x2e39[34]]()})[_0x2e39[12]](function(){return _0x1f28x8[_0x2e39[17]](204)})[_0x2e39[9]](function(_0x1f28xa){console[_0x2e39[36]](_0x2e39[35],_0x1f28xa);return handleError(_0x1f28x8,_0x1f28xa)})};exports[_0x2e39[42]]=function(_0x1f28x7,_0x1f28x8){var _0x1f28x12;return VoiceContext[_0x2e39[24]]({where:{id:_0x1f28x7[_0x2e39[13]][_0x2e39[43]]}})[_0x2e39[12]](function(_0x1f28xd){_0x1f28x12=_0x1f28xd;var _0x1f28x13=_[_0x2e39[44]](_0x1f28x12,{defaultEntry:true});if(_0x1f28x13){return _0x1f28x8[_0x2e39[11]](500)[_0x2e39[10]]({message:_0x2e39[40],translatedMessage:_0x2e39[41]})};if(!_0x1f28x12){return _0x1f28x8[_0x2e39[17]](404)};var _0x1f28x14=_[_0x2e39[46]](_[_0x2e39[46]](_0x1f28x12,_0x2e39[45]),_0x2e39[22]);return VoiceExtension[_0x2e39[24]]({where:{context:_0x1f28x14,VoiceContextId:null}})})[_0x2e39[12]](function(_0x1f28x11){if(_0x1f28x11[_0x2e39[33]]>_0x1f28x12[_0x2e39[33]]){return _0x1f28x8[_0x2e39[11]](500)[_0x2e39[10]]({message:_0x2e39[37],translatedMessage:_0x2e39[38]})};return VoiceContext[_0x2e39[34]]({where:{id:_0x1f28x7[_0x2e39[13]][_0x2e39[43]]},individualHooks:true})})[_0x2e39[12]](function(){return _0x1f28x8[_0x2e39[17]](204)})[_0x2e39[9]](function(_0x1f28xa){console[_0x2e39[36]](_0x1f28xa);return handleError(_0x1f28x8,_0x1f28xa)})};function handleError(_0x1f28x8,_0x1f28xa){return _0x1f28x8[_0x2e39[11]](500)[_0x2e39[10]](_0x1f28xa)}
\ No newline at end of file