Built motion from commit 76c0fab.|0.0.109
[motion.git] / server / api / voice_context / voice_context.controller.js
index 89f888e..0f594ac 100644 (file)
@@ -1 +1 @@
-var _0xd32c=["\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"];_0xd32c[0];var _=require(_0xd32c[1]);var util=require(_0xd32c[2]);var Util=require(_0xd32c[3]);var sequelize=require(_0xd32c[5])[_0xd32c[4]];var VoiceContext=require(_0xd32c[5])[_0xd32c[6]];var VoiceExtension=require(_0xd32c[5])[_0xd32c[7]];exports[_0xd32c[8]]=function(_0x3ebbx7,_0x3ebbx8,_0x3ebbx9){return VoiceContext[_0xd32c[15]](Util[_0xd32c[14]](_0x3ebbx7[_0xd32c[13]]))[_0xd32c[12]](function(_0x3ebbxb){_0x3ebbx8[_0xd32c[11]](200)[_0xd32c[10]](_0x3ebbxb)})[_0xd32c[9]](function(_0x3ebbxa){return handleError(_0x3ebbx8,_0x3ebbxa)})};exports[_0xd32c[16]]=function(_0x3ebbx7,_0x3ebbx8){return VoiceContext[_0xd32c[20]](_0x3ebbx7[_0xd32c[19]][_0xd32c[18]])[_0xd32c[12]](function(_0x3ebbxc){if(!_0x3ebbxc){return _0x3ebbx8[_0xd32c[17]](404)};return _0x3ebbx8[_0xd32c[10]](_0x3ebbxc)})[_0xd32c[9]](function(_0x3ebbxa){return handleError(_0x3ebbx8,_0x3ebbxa)})};exports[_0xd32c[21]]=function(_0x3ebbx7,_0x3ebbx8){return VoiceContext[_0xd32c[24]]({where:{name:_0x3ebbx7[_0xd32c[23]][_0xd32c[22]]}})[_0xd32c[12]](function(_0x3ebbxd){if(!_0x3ebbxd){return _0x3ebbx8[_0xd32c[17]](404)};return _0x3ebbx8[_0xd32c[10]](_0x3ebbxd)})[_0xd32c[9]](function(_0x3ebbxa){return handleError(_0x3ebbx8,_0x3ebbxa)})};exports[_0xd32c[25]]=function(_0x3ebbx7,_0x3ebbx8){return VoiceContext[_0xd32c[25]](_0x3ebbx7[_0xd32c[23]])[_0xd32c[12]](function(_0x3ebbxc){return _0x3ebbx8[_0xd32c[11]](201)[_0xd32c[10]](_0x3ebbxc)})[_0xd32c[9]](sequelize.UniqueConstraintError,function(_0x3ebbxa){_0x3ebbxa[_0xd32c[26]]=_0xd32c[27];_0x3ebbxa[_0xd32c[28]]=_0xd32c[29];return handleError(_0x3ebbx8,_0x3ebbxa)})[_0xd32c[9]](function(_0x3ebbxa){return handleError(_0x3ebbx8,_0x3ebbxa)})};exports[_0xd32c[30]]=function(_0x3ebbx7,_0x3ebbx8){return VoiceContext[_0xd32c[24]]({where:{name:_0x3ebbx7[_0xd32c[23]][_0xd32c[22]],id:{$ne:_0x3ebbx7[_0xd32c[23]][_0xd32c[18]]}}})[_0xd32c[12]](function(_0x3ebbxf){if(!_0x3ebbxf){return _0x3ebbx8[_0xd32c[17]](404)};if(_0x3ebbxf[_0xd32c[33]]>0){return _0x3ebbx8[_0xd32c[11]](500)[_0xd32c[10]]({message:_0xd32c[29]})};if(_0x3ebbx7[_0xd32c[23]][_0xd32c[18]]){delete _0x3ebbx7[_0xd32c[23]][_0xd32c[18]]};return VoiceContext[_0xd32c[20]](_0x3ebbx7[_0xd32c[19]][_0xd32c[18]])})[_0xd32c[12]](function(_0x3ebbxc){if(!_0x3ebbxc){return _0x3ebbx8[_0xd32c[17]](404)};var _0x3ebbxe=_[_0xd32c[31]](_0x3ebbxc,_0x3ebbx7[_0xd32c[23]]);return _0x3ebbxe[_0xd32c[32]]()})[_0xd32c[12]](function(_0x3ebbxc){return _0x3ebbx8[_0xd32c[11]](200)[_0xd32c[10]](_0x3ebbxc)})[_0xd32c[9]](function(_0x3ebbxa){return handleError(_0x3ebbx8,_0x3ebbxa)})};exports[_0xd32c[34]]=function(_0x3ebbx7,_0x3ebbx8){var _0x3ebbx10;return VoiceContext[_0xd32c[20]](_0x3ebbx7[_0xd32c[19]][_0xd32c[18]])[_0xd32c[12]](function(_0x3ebbxc){_0x3ebbx10=_0x3ebbxc;if(!_0x3ebbx10){return _0x3ebbx8[_0xd32c[17]](404)};if(_0x3ebbx10[_0xd32c[39]]){return _0x3ebbx8[_0xd32c[11]](500)[_0xd32c[10]]({message:_0xd32c[40],translatedMessage:_0xd32c[41]})};return VoiceExtension[_0xd32c[24]]({where:{context:_0x3ebbx10[_0xd32c[22]],VoiceContextId:null}})})[_0xd32c[12]](function(_0x3ebbx11){console[_0xd32c[36]](_0x3ebbx11);if(_0x3ebbx11[_0xd32c[33]]>0){return _0x3ebbx8[_0xd32c[11]](500)[_0xd32c[10]]({message:_0xd32c[37],translatedMessage:_0xd32c[38]})};return _0x3ebbx10[_0xd32c[34]]()})[_0xd32c[12]](function(){return _0x3ebbx8[_0xd32c[17]](204)})[_0xd32c[9]](function(_0x3ebbxa){console[_0xd32c[36]](_0xd32c[35],_0x3ebbxa);return handleError(_0x3ebbx8,_0x3ebbxa)})};exports[_0xd32c[42]]=function(_0x3ebbx7,_0x3ebbx8){var _0x3ebbx12;return VoiceContext[_0xd32c[24]]({where:{id:_0x3ebbx7[_0xd32c[13]][_0xd32c[43]]}})[_0xd32c[12]](function(_0x3ebbxd){_0x3ebbx12=_0x3ebbxd;var _0x3ebbx13=_[_0xd32c[44]](_0x3ebbx12,{defaultEntry:true});if(_0x3ebbx13){return _0x3ebbx8[_0xd32c[11]](500)[_0xd32c[10]]({message:_0xd32c[40],translatedMessage:_0xd32c[41]})};if(!_0x3ebbx12){return _0x3ebbx8[_0xd32c[17]](404)};var _0x3ebbx14=_[_0xd32c[46]](_[_0xd32c[46]](_0x3ebbx12,_0xd32c[45]),_0xd32c[22]);return VoiceExtension[_0xd32c[24]]({where:{context:_0x3ebbx14,VoiceContextId:null}})})[_0xd32c[12]](function(_0x3ebbx11){if(_0x3ebbx11[_0xd32c[33]]>_0x3ebbx12[_0xd32c[33]]){return _0x3ebbx8[_0xd32c[11]](500)[_0xd32c[10]]({message:_0xd32c[37],translatedMessage:_0xd32c[38]})};return VoiceContext[_0xd32c[34]]({where:{id:_0x3ebbx7[_0xd32c[13]][_0xd32c[43]]},individualHooks:true})})[_0xd32c[12]](function(){return _0x3ebbx8[_0xd32c[17]](204)})[_0xd32c[9]](function(_0x3ebbxa){console[_0xd32c[36]](_0x3ebbxa);return handleError(_0x3ebbx8,_0x3ebbxa)})};function handleError(_0x3ebbx8,_0x3ebbxa){return _0x3ebbx8[_0xd32c[11]](500)[_0xd32c[10]](_0x3ebbxa)}
\ No newline at end of file
+var _0x1a04=["\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"];_0x1a04[0];var _=require(_0x1a04[1]);var util=require(_0x1a04[2]);var Util=require(_0x1a04[3]);var sequelize=require(_0x1a04[5])[_0x1a04[4]];var VoiceContext=require(_0x1a04[5])[_0x1a04[6]];var VoiceExtension=require(_0x1a04[5])[_0x1a04[7]];exports[_0x1a04[8]]=function(_0xe766x7,_0xe766x8,_0xe766x9){return VoiceContext[_0x1a04[15]](Util[_0x1a04[14]](_0xe766x7[_0x1a04[13]]))[_0x1a04[12]](function(_0xe766xb){_0xe766x8[_0x1a04[11]](200)[_0x1a04[10]](_0xe766xb)})[_0x1a04[9]](function(_0xe766xa){return handleError(_0xe766x8,_0xe766xa)})};exports[_0x1a04[16]]=function(_0xe766x7,_0xe766x8){return VoiceContext[_0x1a04[20]](_0xe766x7[_0x1a04[19]][_0x1a04[18]])[_0x1a04[12]](function(_0xe766xc){if(!_0xe766xc){return _0xe766x8[_0x1a04[17]](404)};return _0xe766x8[_0x1a04[10]](_0xe766xc)})[_0x1a04[9]](function(_0xe766xa){return handleError(_0xe766x8,_0xe766xa)})};exports[_0x1a04[21]]=function(_0xe766x7,_0xe766x8){return VoiceContext[_0x1a04[24]]({where:{name:_0xe766x7[_0x1a04[23]][_0x1a04[22]]}})[_0x1a04[12]](function(_0xe766xd){if(!_0xe766xd){return _0xe766x8[_0x1a04[17]](404)};return _0xe766x8[_0x1a04[10]](_0xe766xd)})[_0x1a04[9]](function(_0xe766xa){return handleError(_0xe766x8,_0xe766xa)})};exports[_0x1a04[25]]=function(_0xe766x7,_0xe766x8){return VoiceContext[_0x1a04[25]](_0xe766x7[_0x1a04[23]])[_0x1a04[12]](function(_0xe766xc){return _0xe766x8[_0x1a04[11]](201)[_0x1a04[10]](_0xe766xc)})[_0x1a04[9]](sequelize.UniqueConstraintError,function(_0xe766xa){_0xe766xa[_0x1a04[26]]=_0x1a04[27];_0xe766xa[_0x1a04[28]]=_0x1a04[29];return handleError(_0xe766x8,_0xe766xa)})[_0x1a04[9]](function(_0xe766xa){return handleError(_0xe766x8,_0xe766xa)})};exports[_0x1a04[30]]=function(_0xe766x7,_0xe766x8){return VoiceContext[_0x1a04[24]]({where:{name:_0xe766x7[_0x1a04[23]][_0x1a04[22]],id:{$ne:_0xe766x7[_0x1a04[23]][_0x1a04[18]]}}})[_0x1a04[12]](function(_0xe766xf){if(!_0xe766xf){return _0xe766x8[_0x1a04[17]](404)};if(_0xe766xf[_0x1a04[33]]>0){return _0xe766x8[_0x1a04[11]](500)[_0x1a04[10]]({message:_0x1a04[29]})};if(_0xe766x7[_0x1a04[23]][_0x1a04[18]]){delete _0xe766x7[_0x1a04[23]][_0x1a04[18]]};return VoiceContext[_0x1a04[20]](_0xe766x7[_0x1a04[19]][_0x1a04[18]])})[_0x1a04[12]](function(_0xe766xc){if(!_0xe766xc){return _0xe766x8[_0x1a04[17]](404)};var _0xe766xe=_[_0x1a04[31]](_0xe766xc,_0xe766x7[_0x1a04[23]]);return _0xe766xe[_0x1a04[32]]()})[_0x1a04[12]](function(_0xe766xc){return _0xe766x8[_0x1a04[11]](200)[_0x1a04[10]](_0xe766xc)})[_0x1a04[9]](function(_0xe766xa){return handleError(_0xe766x8,_0xe766xa)})};exports[_0x1a04[34]]=function(_0xe766x7,_0xe766x8){var _0xe766x10;return VoiceContext[_0x1a04[20]](_0xe766x7[_0x1a04[19]][_0x1a04[18]])[_0x1a04[12]](function(_0xe766xc){_0xe766x10=_0xe766xc;if(!_0xe766x10){return _0xe766x8[_0x1a04[17]](404)};if(_0xe766x10[_0x1a04[39]]){return _0xe766x8[_0x1a04[11]](500)[_0x1a04[10]]({message:_0x1a04[40],translatedMessage:_0x1a04[41]})};return VoiceExtension[_0x1a04[24]]({where:{context:_0xe766x10[_0x1a04[22]],VoiceContextId:null}})})[_0x1a04[12]](function(_0xe766x11){console[_0x1a04[36]](_0xe766x11);if(_0xe766x11[_0x1a04[33]]>0){return _0xe766x8[_0x1a04[11]](500)[_0x1a04[10]]({message:_0x1a04[37],translatedMessage:_0x1a04[38]})};return _0xe766x10[_0x1a04[34]]()})[_0x1a04[12]](function(){return _0xe766x8[_0x1a04[17]](204)})[_0x1a04[9]](function(_0xe766xa){console[_0x1a04[36]](_0x1a04[35],_0xe766xa);return handleError(_0xe766x8,_0xe766xa)})};exports[_0x1a04[42]]=function(_0xe766x7,_0xe766x8){var _0xe766x12;return VoiceContext[_0x1a04[24]]({where:{id:_0xe766x7[_0x1a04[13]][_0x1a04[43]]}})[_0x1a04[12]](function(_0xe766xd){_0xe766x12=_0xe766xd;var _0xe766x13=_[_0x1a04[44]](_0xe766x12,{defaultEntry:true});if(_0xe766x13){return _0xe766x8[_0x1a04[11]](500)[_0x1a04[10]]({message:_0x1a04[40],translatedMessage:_0x1a04[41]})};if(!_0xe766x12){return _0xe766x8[_0x1a04[17]](404)};var _0xe766x14=_[_0x1a04[46]](_[_0x1a04[46]](_0xe766x12,_0x1a04[45]),_0x1a04[22]);return VoiceExtension[_0x1a04[24]]({where:{context:_0xe766x14,VoiceContextId:null}})})[_0x1a04[12]](function(_0xe766x11){if(_0xe766x11[_0x1a04[33]]>_0xe766x12[_0x1a04[33]]){return _0xe766x8[_0x1a04[11]](500)[_0x1a04[10]]({message:_0x1a04[37],translatedMessage:_0x1a04[38]})};return VoiceContext[_0x1a04[34]]({where:{id:_0xe766x7[_0x1a04[13]][_0x1a04[43]]},individualHooks:true})})[_0x1a04[12]](function(){return _0xe766x8[_0x1a04[17]](204)})[_0x1a04[9]](function(_0xe766xa){console[_0x1a04[36]](_0xe766xa);return handleError(_0xe766x8,_0xe766xa)})};function handleError(_0xe766x8,_0xe766xa){return _0xe766x8[_0x1a04[11]](500)[_0x1a04[10]](_0xe766xa)}
\ No newline at end of file