Built motion from commit 3848e0076.|1.0.27
[motion.git] / server / api / voice_context / voice_context.controller.js
index 998e127..88b9b34 100644 (file)
@@ -1 +1 @@
-var _0xb67d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\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","\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","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72"];_0xb67d[0];var _=require(_0xb67d[1]);var util=require(_0xb67d[2]);var logger=require(_0xb67d[4])(_0xb67d[3]);var Util=require(_0xb67d[5]);var sequelize=require(_0xb67d[7])[_0xb67d[6]];var VoiceContext=require(_0xb67d[7])[_0xb67d[8]];var VoiceExtension=require(_0xb67d[7])[_0xb67d[9]];exports[_0xb67d[10]]= function(_0x5443x8,_0x5443x9,_0x5443xa){return VoiceContext[_0xb67d[17]](Util[_0xb67d[16]](_0x5443x8[_0xb67d[15]]))[_0xb67d[14]](function(_0x5443xc){_0x5443x9[_0xb67d[13]](200)[_0xb67d[12]](_0x5443xc)})[_0xb67d[11]](function(_0x5443xb){return handleError(_0x5443x9,_0x5443xb)})};exports[_0xb67d[18]]= function(_0x5443x8,_0x5443x9){return VoiceContext[_0xb67d[22]](_0x5443x8[_0xb67d[21]][_0xb67d[20]])[_0xb67d[14]](function(_0x5443xd){if(!_0x5443xd){return _0x5443x9[_0xb67d[19]](404)};return _0x5443x9[_0xb67d[12]](_0x5443xd)})[_0xb67d[11]](function(_0x5443xb){return handleError(_0x5443x9,_0x5443xb)})};exports[_0xb67d[23]]= function(_0x5443x8,_0x5443x9){return VoiceContext[_0xb67d[26]]({where:{name:_0x5443x8[_0xb67d[25]][_0xb67d[24]]}})[_0xb67d[14]](function(_0x5443xe){if(!_0x5443xe){return _0x5443x9[_0xb67d[19]](404)};return _0x5443x9[_0xb67d[12]](_0x5443xe)})[_0xb67d[11]](function(_0x5443xb){return handleError(_0x5443x9,_0x5443xb)})};exports[_0xb67d[27]]= function(_0x5443x8,_0x5443x9){return VoiceContext[_0xb67d[27]](_0x5443x8[_0xb67d[25]])[_0xb67d[14]](function(_0x5443xd){return _0x5443x9[_0xb67d[13]](201)[_0xb67d[12]](_0x5443xd)})[_0xb67d[11]](sequelize.UniqueConstraintError,function(_0x5443xb){_0x5443xb[_0xb67d[28]]= _0xb67d[29];_0x5443xb[_0xb67d[30]]= _0xb67d[31];return handleError(_0x5443x9,_0x5443xb)})[_0xb67d[11]](function(_0x5443xb){return handleError(_0x5443x9,_0x5443xb)})};exports[_0xb67d[32]]= function(_0x5443x8,_0x5443x9){return VoiceContext[_0xb67d[26]]({where:{name:_0x5443x8[_0xb67d[25]][_0xb67d[24]],id:{$ne:_0x5443x8[_0xb67d[25]][_0xb67d[20]]}}})[_0xb67d[14]](function(_0x5443x10){if(!_0x5443x10){return _0x5443x9[_0xb67d[19]](404)};if(_0x5443x10[_0xb67d[35]]> 0){return _0x5443x9[_0xb67d[13]](500)[_0xb67d[12]]({message:_0xb67d[31]})};if(_0x5443x8[_0xb67d[25]][_0xb67d[20]]){delete _0x5443x8[_0xb67d[25]][_0xb67d[20]]};return VoiceContext[_0xb67d[22]](_0x5443x8[_0xb67d[21]][_0xb67d[20]])})[_0xb67d[14]](function(_0x5443xd){if(!_0x5443xd){return _0x5443x9[_0xb67d[19]](404)};var _0x5443xf=_[_0xb67d[33]](_0x5443xd,_0x5443x8[_0xb67d[25]]);return _0x5443xf[_0xb67d[34]]()})[_0xb67d[14]](function(_0x5443xd){return _0x5443x9[_0xb67d[13]](200)[_0xb67d[12]](_0x5443xd)})[_0xb67d[11]](function(_0x5443xb){return handleError(_0x5443x9,_0x5443xb)})};exports[_0xb67d[36]]= function(_0x5443x8,_0x5443x9){var _0x5443x11;return VoiceContext[_0xb67d[22]](_0x5443x8[_0xb67d[21]][_0xb67d[20]])[_0xb67d[14]](function(_0x5443xd){_0x5443x11= _0x5443xd;if(!_0x5443x11){return _0x5443x9[_0xb67d[19]](404)};if(_0x5443x11[_0xb67d[39]]){return _0x5443x9[_0xb67d[13]](500)[_0xb67d[12]]({message:_0xb67d[40],translatedMessage:_0xb67d[41]})};return VoiceExtension[_0xb67d[26]]({where:{context:_0x5443x11[_0xb67d[24]],VoiceContextId:null}})})[_0xb67d[14]](function(_0x5443x12){if(_0x5443x12[_0xb67d[35]]> 0){return _0x5443x9[_0xb67d[13]](500)[_0xb67d[12]]({message:_0xb67d[37],translatedMessage:_0xb67d[38]})};return _0x5443x11[_0xb67d[36]]()})[_0xb67d[14]](function(){return _0x5443x9[_0xb67d[19]](204)})[_0xb67d[11]](function(_0x5443xb){return handleError(_0x5443x9,_0x5443xb)})};exports[_0xb67d[42]]= function(_0x5443x8,_0x5443x9){var _0x5443x13;return VoiceContext[_0xb67d[26]]({where:{id:_0x5443x8[_0xb67d[15]][_0xb67d[43]]}})[_0xb67d[14]](function(_0x5443xe){_0x5443x13= _0x5443xe;var _0x5443x14=_[_0xb67d[44]](_0x5443x13,{defaultEntry:true});if(_0x5443x14){return _0x5443x9[_0xb67d[13]](500)[_0xb67d[12]]({message:_0xb67d[40],translatedMessage:_0xb67d[41]})};if(!_0x5443x13){return _0x5443x9[_0xb67d[19]](404)};var _0x5443x15=_[_0xb67d[46]](_[_0xb67d[46]](_0x5443x13,_0xb67d[45]),_0xb67d[24]);return VoiceExtension[_0xb67d[26]]({where:{context:_0x5443x15,VoiceContextId:null}})})[_0xb67d[14]](function(_0x5443x12){if(_0x5443x12[_0xb67d[35]]> _0x5443x13[_0xb67d[35]]){return _0x5443x9[_0xb67d[13]](500)[_0xb67d[12]]({message:_0xb67d[37],translatedMessage:_0xb67d[38]})};return VoiceContext[_0xb67d[36]]({where:{id:_0x5443x8[_0xb67d[15]][_0xb67d[43]]},individualHooks:true})})[_0xb67d[14]](function(){return _0x5443x9[_0xb67d[19]](204)})[_0xb67d[11]](function(_0x5443xb){return handleError(_0x5443x9,_0x5443xb)})};function handleError(_0x5443x9,_0x5443xb){logger[_0xb67d[48]](_0x5443xb[_0xb67d[47]]);return _0x5443x9[_0xb67d[13]](500)[_0xb67d[12]](_0x5443xb)}
\ No newline at end of file
+var _0x717e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\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","\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","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72"];_0x717e[0];var _=require(_0x717e[1]);var util=require(_0x717e[2]);var logger=require(_0x717e[4])(_0x717e[3]);var Util=require(_0x717e[5]);var sequelize=require(_0x717e[7])[_0x717e[6]];var VoiceContext=require(_0x717e[7])[_0x717e[8]];var VoiceExtension=require(_0x717e[7])[_0x717e[9]];exports[_0x717e[10]]= function(_0xce48x8,_0xce48x9,_0xce48xa){return VoiceContext[_0x717e[17]](Util[_0x717e[16]](_0xce48x8[_0x717e[15]]))[_0x717e[14]](function(_0xce48xc){_0xce48x9[_0x717e[13]](200)[_0x717e[12]](_0xce48xc)})[_0x717e[11]](function(_0xce48xb){return handleError(_0xce48x9,_0xce48xb)})};exports[_0x717e[18]]= function(_0xce48x8,_0xce48x9){return VoiceContext[_0x717e[22]](_0xce48x8[_0x717e[21]][_0x717e[20]])[_0x717e[14]](function(_0xce48xd){if(!_0xce48xd){return _0xce48x9[_0x717e[19]](404)};return _0xce48x9[_0x717e[12]](_0xce48xd)})[_0x717e[11]](function(_0xce48xb){return handleError(_0xce48x9,_0xce48xb)})};exports[_0x717e[23]]= function(_0xce48x8,_0xce48x9){return VoiceContext[_0x717e[26]]({where:{name:_0xce48x8[_0x717e[25]][_0x717e[24]]}})[_0x717e[14]](function(_0xce48xe){if(!_0xce48xe){return _0xce48x9[_0x717e[19]](404)};return _0xce48x9[_0x717e[12]](_0xce48xe)})[_0x717e[11]](function(_0xce48xb){return handleError(_0xce48x9,_0xce48xb)})};exports[_0x717e[27]]= function(_0xce48x8,_0xce48x9){return VoiceContext[_0x717e[27]](_0xce48x8[_0x717e[25]])[_0x717e[14]](function(_0xce48xd){return _0xce48x9[_0x717e[13]](201)[_0x717e[12]](_0xce48xd)})[_0x717e[11]](sequelize.UniqueConstraintError,function(_0xce48xb){_0xce48xb[_0x717e[28]]= _0x717e[29];_0xce48xb[_0x717e[30]]= _0x717e[31];return handleError(_0xce48x9,_0xce48xb)})[_0x717e[11]](function(_0xce48xb){return handleError(_0xce48x9,_0xce48xb)})};exports[_0x717e[32]]= function(_0xce48x8,_0xce48x9){return VoiceContext[_0x717e[26]]({where:{name:_0xce48x8[_0x717e[25]][_0x717e[24]],id:{$ne:_0xce48x8[_0x717e[25]][_0x717e[20]]}}})[_0x717e[14]](function(_0xce48x10){if(!_0xce48x10){return _0xce48x9[_0x717e[19]](404)};if(_0xce48x10[_0x717e[35]]> 0){return _0xce48x9[_0x717e[13]](500)[_0x717e[12]]({message:_0x717e[31]})};if(_0xce48x8[_0x717e[25]][_0x717e[20]]){delete _0xce48x8[_0x717e[25]][_0x717e[20]]};return VoiceContext[_0x717e[22]](_0xce48x8[_0x717e[21]][_0x717e[20]])})[_0x717e[14]](function(_0xce48xd){if(!_0xce48xd){return _0xce48x9[_0x717e[19]](404)};var _0xce48xf=_[_0x717e[33]](_0xce48xd,_0xce48x8[_0x717e[25]]);return _0xce48xf[_0x717e[34]]()})[_0x717e[14]](function(_0xce48xd){return _0xce48x9[_0x717e[13]](200)[_0x717e[12]](_0xce48xd)})[_0x717e[11]](function(_0xce48xb){return handleError(_0xce48x9,_0xce48xb)})};exports[_0x717e[36]]= function(_0xce48x8,_0xce48x9){var _0xce48x11;return VoiceContext[_0x717e[22]](_0xce48x8[_0x717e[21]][_0x717e[20]])[_0x717e[14]](function(_0xce48xd){_0xce48x11= _0xce48xd;if(!_0xce48x11){return _0xce48x9[_0x717e[19]](404)};if(_0xce48x11[_0x717e[39]]){return _0xce48x9[_0x717e[13]](500)[_0x717e[12]]({message:_0x717e[40],translatedMessage:_0x717e[41]})};return VoiceExtension[_0x717e[26]]({where:{context:_0xce48x11[_0x717e[24]],VoiceContextId:null}})})[_0x717e[14]](function(_0xce48x12){if(_0xce48x12[_0x717e[35]]> 0){return _0xce48x9[_0x717e[13]](500)[_0x717e[12]]({message:_0x717e[37],translatedMessage:_0x717e[38]})};return _0xce48x11[_0x717e[36]]()})[_0x717e[14]](function(){return _0xce48x9[_0x717e[19]](204)})[_0x717e[11]](function(_0xce48xb){return handleError(_0xce48x9,_0xce48xb)})};exports[_0x717e[42]]= function(_0xce48x8,_0xce48x9){var _0xce48x13;return VoiceContext[_0x717e[26]]({where:{id:_0xce48x8[_0x717e[15]][_0x717e[43]]}})[_0x717e[14]](function(_0xce48xe){_0xce48x13= _0xce48xe;var _0xce48x14=_[_0x717e[44]](_0xce48x13,{defaultEntry:true});if(_0xce48x14){return _0xce48x9[_0x717e[13]](500)[_0x717e[12]]({message:_0x717e[40],translatedMessage:_0x717e[41]})};if(!_0xce48x13){return _0xce48x9[_0x717e[19]](404)};var _0xce48x15=_[_0x717e[46]](_[_0x717e[46]](_0xce48x13,_0x717e[45]),_0x717e[24]);return VoiceExtension[_0x717e[26]]({where:{context:_0xce48x15,VoiceContextId:null}})})[_0x717e[14]](function(_0xce48x12){if(_0xce48x12[_0x717e[35]]> _0xce48x13[_0x717e[35]]){return _0xce48x9[_0x717e[13]](500)[_0x717e[12]]({message:_0x717e[37],translatedMessage:_0x717e[38]})};return VoiceContext[_0x717e[36]]({where:{id:_0xce48x8[_0x717e[15]][_0x717e[43]]},individualHooks:true})})[_0x717e[14]](function(){return _0xce48x9[_0x717e[19]](204)})[_0x717e[11]](function(_0xce48xb){return handleError(_0xce48x9,_0xce48xb)})};function handleError(_0xce48x9,_0xce48xb){logger[_0x717e[48]](_0xce48xb[_0x717e[47]]);return _0xce48x9[_0x717e[13]](500)[_0x717e[12]](_0xce48xb)}
\ No newline at end of file