Built motion from commit a5685af.|0.0.128
[motion.git] / server / api / voice_context / voice_context.controller.js
index 0b6a1db..c2d1434 100644 (file)
@@ -1 +1 @@
-var _0xb8c4=["\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"];_0xb8c4[0];var _=require(_0xb8c4[1]);var util=require(_0xb8c4[2]);var Util=require(_0xb8c4[3]);var sequelize=require(_0xb8c4[5])[_0xb8c4[4]];var VoiceContext=require(_0xb8c4[5])[_0xb8c4[6]];var VoiceExtension=require(_0xb8c4[5])[_0xb8c4[7]];exports[_0xb8c4[8]]= function(_0x5b3cx7,_0x5b3cx8,_0x5b3cx9){return VoiceContext[_0xb8c4[15]](Util[_0xb8c4[14]](_0x5b3cx7[_0xb8c4[13]]))[_0xb8c4[12]](function(_0x5b3cxb){_0x5b3cx8[_0xb8c4[11]](200)[_0xb8c4[10]](_0x5b3cxb)})[_0xb8c4[9]](function(_0x5b3cxa){return handleError(_0x5b3cx8,_0x5b3cxa)})};exports[_0xb8c4[16]]= function(_0x5b3cx7,_0x5b3cx8){return VoiceContext[_0xb8c4[20]](_0x5b3cx7[_0xb8c4[19]][_0xb8c4[18]])[_0xb8c4[12]](function(_0x5b3cxc){if(!_0x5b3cxc){return _0x5b3cx8[_0xb8c4[17]](404)};return _0x5b3cx8[_0xb8c4[10]](_0x5b3cxc)})[_0xb8c4[9]](function(_0x5b3cxa){return handleError(_0x5b3cx8,_0x5b3cxa)})};exports[_0xb8c4[21]]= function(_0x5b3cx7,_0x5b3cx8){return VoiceContext[_0xb8c4[24]]({where:{name:_0x5b3cx7[_0xb8c4[23]][_0xb8c4[22]]}})[_0xb8c4[12]](function(_0x5b3cxd){if(!_0x5b3cxd){return _0x5b3cx8[_0xb8c4[17]](404)};return _0x5b3cx8[_0xb8c4[10]](_0x5b3cxd)})[_0xb8c4[9]](function(_0x5b3cxa){return handleError(_0x5b3cx8,_0x5b3cxa)})};exports[_0xb8c4[25]]= function(_0x5b3cx7,_0x5b3cx8){return VoiceContext[_0xb8c4[25]](_0x5b3cx7[_0xb8c4[23]])[_0xb8c4[12]](function(_0x5b3cxc){return _0x5b3cx8[_0xb8c4[11]](201)[_0xb8c4[10]](_0x5b3cxc)})[_0xb8c4[9]](sequelize.UniqueConstraintError,function(_0x5b3cxa){_0x5b3cxa[_0xb8c4[26]]= _0xb8c4[27];_0x5b3cxa[_0xb8c4[28]]= _0xb8c4[29];return handleError(_0x5b3cx8,_0x5b3cxa)})[_0xb8c4[9]](function(_0x5b3cxa){return handleError(_0x5b3cx8,_0x5b3cxa)})};exports[_0xb8c4[30]]= function(_0x5b3cx7,_0x5b3cx8){return VoiceContext[_0xb8c4[24]]({where:{name:_0x5b3cx7[_0xb8c4[23]][_0xb8c4[22]],id:{$ne:_0x5b3cx7[_0xb8c4[23]][_0xb8c4[18]]}}})[_0xb8c4[12]](function(_0x5b3cxf){if(!_0x5b3cxf){return _0x5b3cx8[_0xb8c4[17]](404)};if(_0x5b3cxf[_0xb8c4[33]]> 0){return _0x5b3cx8[_0xb8c4[11]](500)[_0xb8c4[10]]({message:_0xb8c4[29]})};if(_0x5b3cx7[_0xb8c4[23]][_0xb8c4[18]]){delete _0x5b3cx7[_0xb8c4[23]][_0xb8c4[18]]};return VoiceContext[_0xb8c4[20]](_0x5b3cx7[_0xb8c4[19]][_0xb8c4[18]])})[_0xb8c4[12]](function(_0x5b3cxc){if(!_0x5b3cxc){return _0x5b3cx8[_0xb8c4[17]](404)};var _0x5b3cxe=_[_0xb8c4[31]](_0x5b3cxc,_0x5b3cx7[_0xb8c4[23]]);return _0x5b3cxe[_0xb8c4[32]]()})[_0xb8c4[12]](function(_0x5b3cxc){return _0x5b3cx8[_0xb8c4[11]](200)[_0xb8c4[10]](_0x5b3cxc)})[_0xb8c4[9]](function(_0x5b3cxa){return handleError(_0x5b3cx8,_0x5b3cxa)})};exports[_0xb8c4[34]]= function(_0x5b3cx7,_0x5b3cx8){var _0x5b3cx10;return VoiceContext[_0xb8c4[20]](_0x5b3cx7[_0xb8c4[19]][_0xb8c4[18]])[_0xb8c4[12]](function(_0x5b3cxc){_0x5b3cx10= _0x5b3cxc;if(!_0x5b3cx10){return _0x5b3cx8[_0xb8c4[17]](404)};if(_0x5b3cx10[_0xb8c4[39]]){return _0x5b3cx8[_0xb8c4[11]](500)[_0xb8c4[10]]({message:_0xb8c4[40],translatedMessage:_0xb8c4[41]})};return VoiceExtension[_0xb8c4[24]]({where:{context:_0x5b3cx10[_0xb8c4[22]],VoiceContextId:null}})})[_0xb8c4[12]](function(_0x5b3cx11){console[_0xb8c4[36]](_0x5b3cx11);if(_0x5b3cx11[_0xb8c4[33]]> 0){return _0x5b3cx8[_0xb8c4[11]](500)[_0xb8c4[10]]({message:_0xb8c4[37],translatedMessage:_0xb8c4[38]})};return _0x5b3cx10[_0xb8c4[34]]()})[_0xb8c4[12]](function(){return _0x5b3cx8[_0xb8c4[17]](204)})[_0xb8c4[9]](function(_0x5b3cxa){console[_0xb8c4[36]](_0xb8c4[35],_0x5b3cxa);return handleError(_0x5b3cx8,_0x5b3cxa)})};exports[_0xb8c4[42]]= function(_0x5b3cx7,_0x5b3cx8){var _0x5b3cx12;return VoiceContext[_0xb8c4[24]]({where:{id:_0x5b3cx7[_0xb8c4[13]][_0xb8c4[43]]}})[_0xb8c4[12]](function(_0x5b3cxd){_0x5b3cx12= _0x5b3cxd;var _0x5b3cx13=_[_0xb8c4[44]](_0x5b3cx12,{defaultEntry:true});if(_0x5b3cx13){return _0x5b3cx8[_0xb8c4[11]](500)[_0xb8c4[10]]({message:_0xb8c4[40],translatedMessage:_0xb8c4[41]})};if(!_0x5b3cx12){return _0x5b3cx8[_0xb8c4[17]](404)};var _0x5b3cx14=_[_0xb8c4[46]](_[_0xb8c4[46]](_0x5b3cx12,_0xb8c4[45]),_0xb8c4[22]);return VoiceExtension[_0xb8c4[24]]({where:{context:_0x5b3cx14,VoiceContextId:null}})})[_0xb8c4[12]](function(_0x5b3cx11){if(_0x5b3cx11[_0xb8c4[33]]> _0x5b3cx12[_0xb8c4[33]]){return _0x5b3cx8[_0xb8c4[11]](500)[_0xb8c4[10]]({message:_0xb8c4[37],translatedMessage:_0xb8c4[38]})};return VoiceContext[_0xb8c4[34]]({where:{id:_0x5b3cx7[_0xb8c4[13]][_0xb8c4[43]]},individualHooks:true})})[_0xb8c4[12]](function(){return _0x5b3cx8[_0xb8c4[17]](204)})[_0xb8c4[9]](function(_0x5b3cxa){console[_0xb8c4[36]](_0x5b3cxa);return handleError(_0x5b3cx8,_0x5b3cxa)})};function handleError(_0x5b3cx8,_0x5b3cxa){return _0x5b3cx8[_0xb8c4[11]](500)[_0xb8c4[10]](_0x5b3cxa)}
\ No newline at end of file
+var _0x63b7=["\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"];_0x63b7[0];var _=require(_0x63b7[1]);var util=require(_0x63b7[2]);var Util=require(_0x63b7[3]);var sequelize=require(_0x63b7[5])[_0x63b7[4]];var VoiceContext=require(_0x63b7[5])[_0x63b7[6]];var VoiceExtension=require(_0x63b7[5])[_0x63b7[7]];exports[_0x63b7[8]]= function(_0x7f65x7,_0x7f65x8,_0x7f65x9){return VoiceContext[_0x63b7[15]](Util[_0x63b7[14]](_0x7f65x7[_0x63b7[13]]))[_0x63b7[12]](function(_0x7f65xb){_0x7f65x8[_0x63b7[11]](200)[_0x63b7[10]](_0x7f65xb)})[_0x63b7[9]](function(_0x7f65xa){return handleError(_0x7f65x8,_0x7f65xa)})};exports[_0x63b7[16]]= function(_0x7f65x7,_0x7f65x8){return VoiceContext[_0x63b7[20]](_0x7f65x7[_0x63b7[19]][_0x63b7[18]])[_0x63b7[12]](function(_0x7f65xc){if(!_0x7f65xc){return _0x7f65x8[_0x63b7[17]](404)};return _0x7f65x8[_0x63b7[10]](_0x7f65xc)})[_0x63b7[9]](function(_0x7f65xa){return handleError(_0x7f65x8,_0x7f65xa)})};exports[_0x63b7[21]]= function(_0x7f65x7,_0x7f65x8){return VoiceContext[_0x63b7[24]]({where:{name:_0x7f65x7[_0x63b7[23]][_0x63b7[22]]}})[_0x63b7[12]](function(_0x7f65xd){if(!_0x7f65xd){return _0x7f65x8[_0x63b7[17]](404)};return _0x7f65x8[_0x63b7[10]](_0x7f65xd)})[_0x63b7[9]](function(_0x7f65xa){return handleError(_0x7f65x8,_0x7f65xa)})};exports[_0x63b7[25]]= function(_0x7f65x7,_0x7f65x8){return VoiceContext[_0x63b7[25]](_0x7f65x7[_0x63b7[23]])[_0x63b7[12]](function(_0x7f65xc){return _0x7f65x8[_0x63b7[11]](201)[_0x63b7[10]](_0x7f65xc)})[_0x63b7[9]](sequelize.UniqueConstraintError,function(_0x7f65xa){_0x7f65xa[_0x63b7[26]]= _0x63b7[27];_0x7f65xa[_0x63b7[28]]= _0x63b7[29];return handleError(_0x7f65x8,_0x7f65xa)})[_0x63b7[9]](function(_0x7f65xa){return handleError(_0x7f65x8,_0x7f65xa)})};exports[_0x63b7[30]]= function(_0x7f65x7,_0x7f65x8){return VoiceContext[_0x63b7[24]]({where:{name:_0x7f65x7[_0x63b7[23]][_0x63b7[22]],id:{$ne:_0x7f65x7[_0x63b7[23]][_0x63b7[18]]}}})[_0x63b7[12]](function(_0x7f65xf){if(!_0x7f65xf){return _0x7f65x8[_0x63b7[17]](404)};if(_0x7f65xf[_0x63b7[33]]> 0){return _0x7f65x8[_0x63b7[11]](500)[_0x63b7[10]]({message:_0x63b7[29]})};if(_0x7f65x7[_0x63b7[23]][_0x63b7[18]]){delete _0x7f65x7[_0x63b7[23]][_0x63b7[18]]};return VoiceContext[_0x63b7[20]](_0x7f65x7[_0x63b7[19]][_0x63b7[18]])})[_0x63b7[12]](function(_0x7f65xc){if(!_0x7f65xc){return _0x7f65x8[_0x63b7[17]](404)};var _0x7f65xe=_[_0x63b7[31]](_0x7f65xc,_0x7f65x7[_0x63b7[23]]);return _0x7f65xe[_0x63b7[32]]()})[_0x63b7[12]](function(_0x7f65xc){return _0x7f65x8[_0x63b7[11]](200)[_0x63b7[10]](_0x7f65xc)})[_0x63b7[9]](function(_0x7f65xa){return handleError(_0x7f65x8,_0x7f65xa)})};exports[_0x63b7[34]]= function(_0x7f65x7,_0x7f65x8){var _0x7f65x10;return VoiceContext[_0x63b7[20]](_0x7f65x7[_0x63b7[19]][_0x63b7[18]])[_0x63b7[12]](function(_0x7f65xc){_0x7f65x10= _0x7f65xc;if(!_0x7f65x10){return _0x7f65x8[_0x63b7[17]](404)};if(_0x7f65x10[_0x63b7[39]]){return _0x7f65x8[_0x63b7[11]](500)[_0x63b7[10]]({message:_0x63b7[40],translatedMessage:_0x63b7[41]})};return VoiceExtension[_0x63b7[24]]({where:{context:_0x7f65x10[_0x63b7[22]],VoiceContextId:null}})})[_0x63b7[12]](function(_0x7f65x11){console[_0x63b7[36]](_0x7f65x11);if(_0x7f65x11[_0x63b7[33]]> 0){return _0x7f65x8[_0x63b7[11]](500)[_0x63b7[10]]({message:_0x63b7[37],translatedMessage:_0x63b7[38]})};return _0x7f65x10[_0x63b7[34]]()})[_0x63b7[12]](function(){return _0x7f65x8[_0x63b7[17]](204)})[_0x63b7[9]](function(_0x7f65xa){console[_0x63b7[36]](_0x63b7[35],_0x7f65xa);return handleError(_0x7f65x8,_0x7f65xa)})};exports[_0x63b7[42]]= function(_0x7f65x7,_0x7f65x8){var _0x7f65x12;return VoiceContext[_0x63b7[24]]({where:{id:_0x7f65x7[_0x63b7[13]][_0x63b7[43]]}})[_0x63b7[12]](function(_0x7f65xd){_0x7f65x12= _0x7f65xd;var _0x7f65x13=_[_0x63b7[44]](_0x7f65x12,{defaultEntry:true});if(_0x7f65x13){return _0x7f65x8[_0x63b7[11]](500)[_0x63b7[10]]({message:_0x63b7[40],translatedMessage:_0x63b7[41]})};if(!_0x7f65x12){return _0x7f65x8[_0x63b7[17]](404)};var _0x7f65x14=_[_0x63b7[46]](_[_0x63b7[46]](_0x7f65x12,_0x63b7[45]),_0x63b7[22]);return VoiceExtension[_0x63b7[24]]({where:{context:_0x7f65x14,VoiceContextId:null}})})[_0x63b7[12]](function(_0x7f65x11){if(_0x7f65x11[_0x63b7[33]]> _0x7f65x12[_0x63b7[33]]){return _0x7f65x8[_0x63b7[11]](500)[_0x63b7[10]]({message:_0x63b7[37],translatedMessage:_0x63b7[38]})};return VoiceContext[_0x63b7[34]]({where:{id:_0x7f65x7[_0x63b7[13]][_0x63b7[43]]},individualHooks:true})})[_0x63b7[12]](function(){return _0x7f65x8[_0x63b7[17]](204)})[_0x63b7[9]](function(_0x7f65xa){console[_0x63b7[36]](_0x7f65xa);return handleError(_0x7f65x8,_0x7f65xa)})};function handleError(_0x7f65x8,_0x7f65xa){return _0x7f65x8[_0x63b7[11]](500)[_0x63b7[10]](_0x7f65xa)}
\ No newline at end of file