Built motion from commit 27e0a5d.|1.0.8
[motion.git] / server / api / voice_context / voice_context.controller.js
index 4cd1eb4..62bbf3a 100644 (file)
@@ -1 +1 @@
-var _0x8f00=["\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"];_0x8f00[0];var _=require(_0x8f00[1]);var util=require(_0x8f00[2]);var Util=require(_0x8f00[3]);var sequelize=require(_0x8f00[5])[_0x8f00[4]];var VoiceContext=require(_0x8f00[5])[_0x8f00[6]];var VoiceExtension=require(_0x8f00[5])[_0x8f00[7]];exports[_0x8f00[8]]=function(_0xa8fex7,_0xa8fex8,_0xa8fex9){return VoiceContext[_0x8f00[15]](Util[_0x8f00[14]](_0xa8fex7[_0x8f00[13]]))[_0x8f00[12]](function(_0xa8fexb){_0xa8fex8[_0x8f00[11]](200)[_0x8f00[10]](_0xa8fexb)})[_0x8f00[9]](function(_0xa8fexa){return handleError(_0xa8fex8,_0xa8fexa)})};exports[_0x8f00[16]]=function(_0xa8fex7,_0xa8fex8){return VoiceContext[_0x8f00[20]](_0xa8fex7[_0x8f00[19]][_0x8f00[18]])[_0x8f00[12]](function(_0xa8fexc){if(!_0xa8fexc){return _0xa8fex8[_0x8f00[17]](404)};return _0xa8fex8[_0x8f00[10]](_0xa8fexc)})[_0x8f00[9]](function(_0xa8fexa){return handleError(_0xa8fex8,_0xa8fexa)})};exports[_0x8f00[21]]=function(_0xa8fex7,_0xa8fex8){return VoiceContext[_0x8f00[24]]({where:{name:_0xa8fex7[_0x8f00[23]][_0x8f00[22]]}})[_0x8f00[12]](function(_0xa8fexd){if(!_0xa8fexd){return _0xa8fex8[_0x8f00[17]](404)};return _0xa8fex8[_0x8f00[10]](_0xa8fexd)})[_0x8f00[9]](function(_0xa8fexa){return handleError(_0xa8fex8,_0xa8fexa)})};exports[_0x8f00[25]]=function(_0xa8fex7,_0xa8fex8){return VoiceContext[_0x8f00[25]](_0xa8fex7[_0x8f00[23]])[_0x8f00[12]](function(_0xa8fexc){return _0xa8fex8[_0x8f00[11]](201)[_0x8f00[10]](_0xa8fexc)})[_0x8f00[9]](sequelize.UniqueConstraintError,function(_0xa8fexa){_0xa8fexa[_0x8f00[26]]=_0x8f00[27];_0xa8fexa[_0x8f00[28]]=_0x8f00[29];return handleError(_0xa8fex8,_0xa8fexa)})[_0x8f00[9]](function(_0xa8fexa){return handleError(_0xa8fex8,_0xa8fexa)})};exports[_0x8f00[30]]=function(_0xa8fex7,_0xa8fex8){return VoiceContext[_0x8f00[24]]({where:{name:_0xa8fex7[_0x8f00[23]][_0x8f00[22]],id:{$ne:_0xa8fex7[_0x8f00[23]][_0x8f00[18]]}}})[_0x8f00[12]](function(_0xa8fexf){if(!_0xa8fexf){return _0xa8fex8[_0x8f00[17]](404)};if(_0xa8fexf[_0x8f00[33]]>0){return _0xa8fex8[_0x8f00[11]](500)[_0x8f00[10]]({message:_0x8f00[29]})};if(_0xa8fex7[_0x8f00[23]][_0x8f00[18]]){delete _0xa8fex7[_0x8f00[23]][_0x8f00[18]]};return VoiceContext[_0x8f00[20]](_0xa8fex7[_0x8f00[19]][_0x8f00[18]])})[_0x8f00[12]](function(_0xa8fexc){if(!_0xa8fexc){return _0xa8fex8[_0x8f00[17]](404)};var _0xa8fexe=_[_0x8f00[31]](_0xa8fexc,_0xa8fex7[_0x8f00[23]]);return _0xa8fexe[_0x8f00[32]]()})[_0x8f00[12]](function(_0xa8fexc){return _0xa8fex8[_0x8f00[11]](200)[_0x8f00[10]](_0xa8fexc)})[_0x8f00[9]](function(_0xa8fexa){return handleError(_0xa8fex8,_0xa8fexa)})};exports[_0x8f00[34]]=function(_0xa8fex7,_0xa8fex8){var _0xa8fex10;return VoiceContext[_0x8f00[20]](_0xa8fex7[_0x8f00[19]][_0x8f00[18]])[_0x8f00[12]](function(_0xa8fexc){_0xa8fex10=_0xa8fexc;if(!_0xa8fex10){return _0xa8fex8[_0x8f00[17]](404)};if(_0xa8fex10[_0x8f00[39]]){return _0xa8fex8[_0x8f00[11]](500)[_0x8f00[10]]({message:_0x8f00[40],translatedMessage:_0x8f00[41]})};return VoiceExtension[_0x8f00[24]]({where:{context:_0xa8fex10[_0x8f00[22]],VoiceContextId:null}})})[_0x8f00[12]](function(_0xa8fex11){console[_0x8f00[36]](_0xa8fex11);if(_0xa8fex11[_0x8f00[33]]>0){return _0xa8fex8[_0x8f00[11]](500)[_0x8f00[10]]({message:_0x8f00[37],translatedMessage:_0x8f00[38]})};return _0xa8fex10[_0x8f00[34]]()})[_0x8f00[12]](function(){return _0xa8fex8[_0x8f00[17]](204)})[_0x8f00[9]](function(_0xa8fexa){console[_0x8f00[36]](_0x8f00[35],_0xa8fexa);return handleError(_0xa8fex8,_0xa8fexa)})};exports[_0x8f00[42]]=function(_0xa8fex7,_0xa8fex8){var _0xa8fex12;return VoiceContext[_0x8f00[24]]({where:{id:_0xa8fex7[_0x8f00[13]][_0x8f00[43]]}})[_0x8f00[12]](function(_0xa8fexd){_0xa8fex12=_0xa8fexd;var _0xa8fex13=_[_0x8f00[44]](_0xa8fex12,{defaultEntry:true});if(_0xa8fex13){return _0xa8fex8[_0x8f00[11]](500)[_0x8f00[10]]({message:_0x8f00[40],translatedMessage:_0x8f00[41]})};if(!_0xa8fex12){return _0xa8fex8[_0x8f00[17]](404)};var _0xa8fex14=_[_0x8f00[46]](_[_0x8f00[46]](_0xa8fex12,_0x8f00[45]),_0x8f00[22]);return VoiceExtension[_0x8f00[24]]({where:{context:_0xa8fex14,VoiceContextId:null}})})[_0x8f00[12]](function(_0xa8fex11){if(_0xa8fex11[_0x8f00[33]]>_0xa8fex12[_0x8f00[33]]){return _0xa8fex8[_0x8f00[11]](500)[_0x8f00[10]]({message:_0x8f00[37],translatedMessage:_0x8f00[38]})};return VoiceContext[_0x8f00[34]]({where:{id:_0xa8fex7[_0x8f00[13]][_0x8f00[43]]},individualHooks:true})})[_0x8f00[12]](function(){return _0xa8fex8[_0x8f00[17]](204)})[_0x8f00[9]](function(_0xa8fexa){console[_0x8f00[36]](_0xa8fexa);return handleError(_0xa8fex8,_0xa8fexa)})};function handleError(_0xa8fex8,_0xa8fexa){return _0xa8fex8[_0x8f00[11]](500)[_0x8f00[10]](_0xa8fexa)}
\ No newline at end of file
+var _0x62fc=["\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"];_0x62fc[0];var _=require(_0x62fc[1]);var util=require(_0x62fc[2]);var Util=require(_0x62fc[3]);var sequelize=require(_0x62fc[5])[_0x62fc[4]];var VoiceContext=require(_0x62fc[5])[_0x62fc[6]];var VoiceExtension=require(_0x62fc[5])[_0x62fc[7]];exports[_0x62fc[8]]= function(_0xc974x7,_0xc974x8,_0xc974x9){return VoiceContext[_0x62fc[15]](Util[_0x62fc[14]](_0xc974x7[_0x62fc[13]]))[_0x62fc[12]](function(_0xc974xb){_0xc974x8[_0x62fc[11]](200)[_0x62fc[10]](_0xc974xb)})[_0x62fc[9]](function(_0xc974xa){return handleError(_0xc974x8,_0xc974xa)})};exports[_0x62fc[16]]= function(_0xc974x7,_0xc974x8){return VoiceContext[_0x62fc[20]](_0xc974x7[_0x62fc[19]][_0x62fc[18]])[_0x62fc[12]](function(_0xc974xc){if(!_0xc974xc){return _0xc974x8[_0x62fc[17]](404)};return _0xc974x8[_0x62fc[10]](_0xc974xc)})[_0x62fc[9]](function(_0xc974xa){return handleError(_0xc974x8,_0xc974xa)})};exports[_0x62fc[21]]= function(_0xc974x7,_0xc974x8){return VoiceContext[_0x62fc[24]]({where:{name:_0xc974x7[_0x62fc[23]][_0x62fc[22]]}})[_0x62fc[12]](function(_0xc974xd){if(!_0xc974xd){return _0xc974x8[_0x62fc[17]](404)};return _0xc974x8[_0x62fc[10]](_0xc974xd)})[_0x62fc[9]](function(_0xc974xa){return handleError(_0xc974x8,_0xc974xa)})};exports[_0x62fc[25]]= function(_0xc974x7,_0xc974x8){return VoiceContext[_0x62fc[25]](_0xc974x7[_0x62fc[23]])[_0x62fc[12]](function(_0xc974xc){return _0xc974x8[_0x62fc[11]](201)[_0x62fc[10]](_0xc974xc)})[_0x62fc[9]](sequelize.UniqueConstraintError,function(_0xc974xa){_0xc974xa[_0x62fc[26]]= _0x62fc[27];_0xc974xa[_0x62fc[28]]= _0x62fc[29];return handleError(_0xc974x8,_0xc974xa)})[_0x62fc[9]](function(_0xc974xa){return handleError(_0xc974x8,_0xc974xa)})};exports[_0x62fc[30]]= function(_0xc974x7,_0xc974x8){return VoiceContext[_0x62fc[24]]({where:{name:_0xc974x7[_0x62fc[23]][_0x62fc[22]],id:{$ne:_0xc974x7[_0x62fc[23]][_0x62fc[18]]}}})[_0x62fc[12]](function(_0xc974xf){if(!_0xc974xf){return _0xc974x8[_0x62fc[17]](404)};if(_0xc974xf[_0x62fc[33]]> 0){return _0xc974x8[_0x62fc[11]](500)[_0x62fc[10]]({message:_0x62fc[29]})};if(_0xc974x7[_0x62fc[23]][_0x62fc[18]]){delete _0xc974x7[_0x62fc[23]][_0x62fc[18]]};return VoiceContext[_0x62fc[20]](_0xc974x7[_0x62fc[19]][_0x62fc[18]])})[_0x62fc[12]](function(_0xc974xc){if(!_0xc974xc){return _0xc974x8[_0x62fc[17]](404)};var _0xc974xe=_[_0x62fc[31]](_0xc974xc,_0xc974x7[_0x62fc[23]]);return _0xc974xe[_0x62fc[32]]()})[_0x62fc[12]](function(_0xc974xc){return _0xc974x8[_0x62fc[11]](200)[_0x62fc[10]](_0xc974xc)})[_0x62fc[9]](function(_0xc974xa){return handleError(_0xc974x8,_0xc974xa)})};exports[_0x62fc[34]]= function(_0xc974x7,_0xc974x8){var _0xc974x10;return VoiceContext[_0x62fc[20]](_0xc974x7[_0x62fc[19]][_0x62fc[18]])[_0x62fc[12]](function(_0xc974xc){_0xc974x10= _0xc974xc;if(!_0xc974x10){return _0xc974x8[_0x62fc[17]](404)};if(_0xc974x10[_0x62fc[39]]){return _0xc974x8[_0x62fc[11]](500)[_0x62fc[10]]({message:_0x62fc[40],translatedMessage:_0x62fc[41]})};return VoiceExtension[_0x62fc[24]]({where:{context:_0xc974x10[_0x62fc[22]],VoiceContextId:null}})})[_0x62fc[12]](function(_0xc974x11){console[_0x62fc[36]](_0xc974x11);if(_0xc974x11[_0x62fc[33]]> 0){return _0xc974x8[_0x62fc[11]](500)[_0x62fc[10]]({message:_0x62fc[37],translatedMessage:_0x62fc[38]})};return _0xc974x10[_0x62fc[34]]()})[_0x62fc[12]](function(){return _0xc974x8[_0x62fc[17]](204)})[_0x62fc[9]](function(_0xc974xa){console[_0x62fc[36]](_0x62fc[35],_0xc974xa);return handleError(_0xc974x8,_0xc974xa)})};exports[_0x62fc[42]]= function(_0xc974x7,_0xc974x8){var _0xc974x12;return VoiceContext[_0x62fc[24]]({where:{id:_0xc974x7[_0x62fc[13]][_0x62fc[43]]}})[_0x62fc[12]](function(_0xc974xd){_0xc974x12= _0xc974xd;var _0xc974x13=_[_0x62fc[44]](_0xc974x12,{defaultEntry:true});if(_0xc974x13){return _0xc974x8[_0x62fc[11]](500)[_0x62fc[10]]({message:_0x62fc[40],translatedMessage:_0x62fc[41]})};if(!_0xc974x12){return _0xc974x8[_0x62fc[17]](404)};var _0xc974x14=_[_0x62fc[46]](_[_0x62fc[46]](_0xc974x12,_0x62fc[45]),_0x62fc[22]);return VoiceExtension[_0x62fc[24]]({where:{context:_0xc974x14,VoiceContextId:null}})})[_0x62fc[12]](function(_0xc974x11){if(_0xc974x11[_0x62fc[33]]> _0xc974x12[_0x62fc[33]]){return _0xc974x8[_0x62fc[11]](500)[_0x62fc[10]]({message:_0x62fc[37],translatedMessage:_0x62fc[38]})};return VoiceContext[_0x62fc[34]]({where:{id:_0xc974x7[_0x62fc[13]][_0x62fc[43]]},individualHooks:true})})[_0x62fc[12]](function(){return _0xc974x8[_0x62fc[17]](204)})[_0x62fc[9]](function(_0xc974xa){console[_0x62fc[36]](_0xc974xa);return handleError(_0xc974x8,_0xc974xa)})};function handleError(_0xc974x8,_0xc974xa){return _0xc974x8[_0x62fc[11]](500)[_0x62fc[10]](_0xc974xa)}
\ No newline at end of file