Built motion from commit 137ed438a.|1.0.25
[motion.git] / server / api / voice_context / voice_context.controller.js
index 27ce5f6..f39386a 100644 (file)
@@ -1 +1 @@
-var _0xe6c8=["\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"];_0xe6c8[0];var _=require(_0xe6c8[1]);var util=require(_0xe6c8[2]);var Util=require(_0xe6c8[3]);var sequelize=require(_0xe6c8[5])[_0xe6c8[4]];var VoiceContext=require(_0xe6c8[5])[_0xe6c8[6]];var VoiceExtension=require(_0xe6c8[5])[_0xe6c8[7]];exports[_0xe6c8[8]]=function(_0x507ex7,_0x507ex8,_0x507ex9){return VoiceContext[_0xe6c8[15]](Util[_0xe6c8[14]](_0x507ex7[_0xe6c8[13]]))[_0xe6c8[12]](function(_0x507exb){_0x507ex8[_0xe6c8[11]](200)[_0xe6c8[10]](_0x507exb)})[_0xe6c8[9]](function(_0x507exa){return handleError(_0x507ex8,_0x507exa)})};exports[_0xe6c8[16]]=function(_0x507ex7,_0x507ex8){return VoiceContext[_0xe6c8[20]](_0x507ex7[_0xe6c8[19]][_0xe6c8[18]])[_0xe6c8[12]](function(_0x507exc){if(!_0x507exc){return _0x507ex8[_0xe6c8[17]](404)};return _0x507ex8[_0xe6c8[10]](_0x507exc)})[_0xe6c8[9]](function(_0x507exa){return handleError(_0x507ex8,_0x507exa)})};exports[_0xe6c8[21]]=function(_0x507ex7,_0x507ex8){return VoiceContext[_0xe6c8[24]]({where:{name:_0x507ex7[_0xe6c8[23]][_0xe6c8[22]]}})[_0xe6c8[12]](function(_0x507exd){if(!_0x507exd){return _0x507ex8[_0xe6c8[17]](404)};return _0x507ex8[_0xe6c8[10]](_0x507exd)})[_0xe6c8[9]](function(_0x507exa){return handleError(_0x507ex8,_0x507exa)})};exports[_0xe6c8[25]]=function(_0x507ex7,_0x507ex8){return VoiceContext[_0xe6c8[25]](_0x507ex7[_0xe6c8[23]])[_0xe6c8[12]](function(_0x507exc){return _0x507ex8[_0xe6c8[11]](201)[_0xe6c8[10]](_0x507exc)})[_0xe6c8[9]](sequelize.UniqueConstraintError,function(_0x507exa){_0x507exa[_0xe6c8[26]]=_0xe6c8[27];_0x507exa[_0xe6c8[28]]=_0xe6c8[29];return handleError(_0x507ex8,_0x507exa)})[_0xe6c8[9]](function(_0x507exa){return handleError(_0x507ex8,_0x507exa)})};exports[_0xe6c8[30]]=function(_0x507ex7,_0x507ex8){return VoiceContext[_0xe6c8[24]]({where:{name:_0x507ex7[_0xe6c8[23]][_0xe6c8[22]],id:{$ne:_0x507ex7[_0xe6c8[23]][_0xe6c8[18]]}}})[_0xe6c8[12]](function(_0x507exf){if(!_0x507exf){return _0x507ex8[_0xe6c8[17]](404)};if(_0x507exf[_0xe6c8[33]]>0){return _0x507ex8[_0xe6c8[11]](500)[_0xe6c8[10]]({message:_0xe6c8[29]})};if(_0x507ex7[_0xe6c8[23]][_0xe6c8[18]]){delete _0x507ex7[_0xe6c8[23]][_0xe6c8[18]]};return VoiceContext[_0xe6c8[20]](_0x507ex7[_0xe6c8[19]][_0xe6c8[18]])})[_0xe6c8[12]](function(_0x507exc){if(!_0x507exc){return _0x507ex8[_0xe6c8[17]](404)};var _0x507exe=_[_0xe6c8[31]](_0x507exc,_0x507ex7[_0xe6c8[23]]);return _0x507exe[_0xe6c8[32]]()})[_0xe6c8[12]](function(_0x507exc){return _0x507ex8[_0xe6c8[11]](200)[_0xe6c8[10]](_0x507exc)})[_0xe6c8[9]](function(_0x507exa){return handleError(_0x507ex8,_0x507exa)})};exports[_0xe6c8[34]]=function(_0x507ex7,_0x507ex8){var _0x507ex10;return VoiceContext[_0xe6c8[20]](_0x507ex7[_0xe6c8[19]][_0xe6c8[18]])[_0xe6c8[12]](function(_0x507exc){_0x507ex10=_0x507exc;if(!_0x507ex10){return _0x507ex8[_0xe6c8[17]](404)};if(_0x507ex10[_0xe6c8[39]]){return _0x507ex8[_0xe6c8[11]](500)[_0xe6c8[10]]({message:_0xe6c8[40],translatedMessage:_0xe6c8[41]})};return VoiceExtension[_0xe6c8[24]]({where:{context:_0x507ex10[_0xe6c8[22]],VoiceContextId:null}})})[_0xe6c8[12]](function(_0x507ex11){console[_0xe6c8[36]](_0x507ex11);if(_0x507ex11[_0xe6c8[33]]>0){return _0x507ex8[_0xe6c8[11]](500)[_0xe6c8[10]]({message:_0xe6c8[37],translatedMessage:_0xe6c8[38]})};return _0x507ex10[_0xe6c8[34]]()})[_0xe6c8[12]](function(){return _0x507ex8[_0xe6c8[17]](204)})[_0xe6c8[9]](function(_0x507exa){console[_0xe6c8[36]](_0xe6c8[35],_0x507exa);return handleError(_0x507ex8,_0x507exa)})};exports[_0xe6c8[42]]=function(_0x507ex7,_0x507ex8){var _0x507ex12;return VoiceContext[_0xe6c8[24]]({where:{id:_0x507ex7[_0xe6c8[13]][_0xe6c8[43]]}})[_0xe6c8[12]](function(_0x507exd){_0x507ex12=_0x507exd;var _0x507ex13=_[_0xe6c8[44]](_0x507ex12,{defaultEntry:true});if(_0x507ex13){return _0x507ex8[_0xe6c8[11]](500)[_0xe6c8[10]]({message:_0xe6c8[40],translatedMessage:_0xe6c8[41]})};if(!_0x507ex12){return _0x507ex8[_0xe6c8[17]](404)};var _0x507ex14=_[_0xe6c8[46]](_[_0xe6c8[46]](_0x507ex12,_0xe6c8[45]),_0xe6c8[22]);return VoiceExtension[_0xe6c8[24]]({where:{context:_0x507ex14,VoiceContextId:null}})})[_0xe6c8[12]](function(_0x507ex11){if(_0x507ex11[_0xe6c8[33]]>_0x507ex12[_0xe6c8[33]]){return _0x507ex8[_0xe6c8[11]](500)[_0xe6c8[10]]({message:_0xe6c8[37],translatedMessage:_0xe6c8[38]})};return VoiceContext[_0xe6c8[34]]({where:{id:_0x507ex7[_0xe6c8[13]][_0xe6c8[43]]},individualHooks:true})})[_0xe6c8[12]](function(){return _0x507ex8[_0xe6c8[17]](204)})[_0xe6c8[9]](function(_0x507exa){console[_0xe6c8[36]](_0x507exa);return handleError(_0x507ex8,_0x507exa)})};function handleError(_0x507ex8,_0x507exa){return _0x507ex8[_0xe6c8[11]](500)[_0xe6c8[10]](_0x507exa)}
\ No newline at end of file
+var _0xbb31=["\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"];_0xbb31[0];var _=require(_0xbb31[1]);var util=require(_0xbb31[2]);var logger=require(_0xbb31[4])(_0xbb31[3]);var Util=require(_0xbb31[5]);var sequelize=require(_0xbb31[7])[_0xbb31[6]];var VoiceContext=require(_0xbb31[7])[_0xbb31[8]];var VoiceExtension=require(_0xbb31[7])[_0xbb31[9]];exports[_0xbb31[10]]= function(_0x6295x8,_0x6295x9,_0x6295xa){return VoiceContext[_0xbb31[17]](Util[_0xbb31[16]](_0x6295x8[_0xbb31[15]]))[_0xbb31[14]](function(_0x6295xc){_0x6295x9[_0xbb31[13]](200)[_0xbb31[12]](_0x6295xc)})[_0xbb31[11]](function(_0x6295xb){return handleError(_0x6295x9,_0x6295xb)})};exports[_0xbb31[18]]= function(_0x6295x8,_0x6295x9){return VoiceContext[_0xbb31[22]](_0x6295x8[_0xbb31[21]][_0xbb31[20]])[_0xbb31[14]](function(_0x6295xd){if(!_0x6295xd){return _0x6295x9[_0xbb31[19]](404)};return _0x6295x9[_0xbb31[12]](_0x6295xd)})[_0xbb31[11]](function(_0x6295xb){return handleError(_0x6295x9,_0x6295xb)})};exports[_0xbb31[23]]= function(_0x6295x8,_0x6295x9){return VoiceContext[_0xbb31[26]]({where:{name:_0x6295x8[_0xbb31[25]][_0xbb31[24]]}})[_0xbb31[14]](function(_0x6295xe){if(!_0x6295xe){return _0x6295x9[_0xbb31[19]](404)};return _0x6295x9[_0xbb31[12]](_0x6295xe)})[_0xbb31[11]](function(_0x6295xb){return handleError(_0x6295x9,_0x6295xb)})};exports[_0xbb31[27]]= function(_0x6295x8,_0x6295x9){return VoiceContext[_0xbb31[27]](_0x6295x8[_0xbb31[25]])[_0xbb31[14]](function(_0x6295xd){return _0x6295x9[_0xbb31[13]](201)[_0xbb31[12]](_0x6295xd)})[_0xbb31[11]](sequelize.UniqueConstraintError,function(_0x6295xb){_0x6295xb[_0xbb31[28]]= _0xbb31[29];_0x6295xb[_0xbb31[30]]= _0xbb31[31];return handleError(_0x6295x9,_0x6295xb)})[_0xbb31[11]](function(_0x6295xb){return handleError(_0x6295x9,_0x6295xb)})};exports[_0xbb31[32]]= function(_0x6295x8,_0x6295x9){return VoiceContext[_0xbb31[26]]({where:{name:_0x6295x8[_0xbb31[25]][_0xbb31[24]],id:{$ne:_0x6295x8[_0xbb31[25]][_0xbb31[20]]}}})[_0xbb31[14]](function(_0x6295x10){if(!_0x6295x10){return _0x6295x9[_0xbb31[19]](404)};if(_0x6295x10[_0xbb31[35]]> 0){return _0x6295x9[_0xbb31[13]](500)[_0xbb31[12]]({message:_0xbb31[31]})};if(_0x6295x8[_0xbb31[25]][_0xbb31[20]]){delete _0x6295x8[_0xbb31[25]][_0xbb31[20]]};return VoiceContext[_0xbb31[22]](_0x6295x8[_0xbb31[21]][_0xbb31[20]])})[_0xbb31[14]](function(_0x6295xd){if(!_0x6295xd){return _0x6295x9[_0xbb31[19]](404)};var _0x6295xf=_[_0xbb31[33]](_0x6295xd,_0x6295x8[_0xbb31[25]]);return _0x6295xf[_0xbb31[34]]()})[_0xbb31[14]](function(_0x6295xd){return _0x6295x9[_0xbb31[13]](200)[_0xbb31[12]](_0x6295xd)})[_0xbb31[11]](function(_0x6295xb){return handleError(_0x6295x9,_0x6295xb)})};exports[_0xbb31[36]]= function(_0x6295x8,_0x6295x9){var _0x6295x11;return VoiceContext[_0xbb31[22]](_0x6295x8[_0xbb31[21]][_0xbb31[20]])[_0xbb31[14]](function(_0x6295xd){_0x6295x11= _0x6295xd;if(!_0x6295x11){return _0x6295x9[_0xbb31[19]](404)};if(_0x6295x11[_0xbb31[39]]){return _0x6295x9[_0xbb31[13]](500)[_0xbb31[12]]({message:_0xbb31[40],translatedMessage:_0xbb31[41]})};return VoiceExtension[_0xbb31[26]]({where:{context:_0x6295x11[_0xbb31[24]],VoiceContextId:null}})})[_0xbb31[14]](function(_0x6295x12){if(_0x6295x12[_0xbb31[35]]> 0){return _0x6295x9[_0xbb31[13]](500)[_0xbb31[12]]({message:_0xbb31[37],translatedMessage:_0xbb31[38]})};return _0x6295x11[_0xbb31[36]]()})[_0xbb31[14]](function(){return _0x6295x9[_0xbb31[19]](204)})[_0xbb31[11]](function(_0x6295xb){return handleError(_0x6295x9,_0x6295xb)})};exports[_0xbb31[42]]= function(_0x6295x8,_0x6295x9){var _0x6295x13;return VoiceContext[_0xbb31[26]]({where:{id:_0x6295x8[_0xbb31[15]][_0xbb31[43]]}})[_0xbb31[14]](function(_0x6295xe){_0x6295x13= _0x6295xe;var _0x6295x14=_[_0xbb31[44]](_0x6295x13,{defaultEntry:true});if(_0x6295x14){return _0x6295x9[_0xbb31[13]](500)[_0xbb31[12]]({message:_0xbb31[40],translatedMessage:_0xbb31[41]})};if(!_0x6295x13){return _0x6295x9[_0xbb31[19]](404)};var _0x6295x15=_[_0xbb31[46]](_[_0xbb31[46]](_0x6295x13,_0xbb31[45]),_0xbb31[24]);return VoiceExtension[_0xbb31[26]]({where:{context:_0x6295x15,VoiceContextId:null}})})[_0xbb31[14]](function(_0x6295x12){if(_0x6295x12[_0xbb31[35]]> _0x6295x13[_0xbb31[35]]){return _0x6295x9[_0xbb31[13]](500)[_0xbb31[12]]({message:_0xbb31[37],translatedMessage:_0xbb31[38]})};return VoiceContext[_0xbb31[36]]({where:{id:_0x6295x8[_0xbb31[15]][_0xbb31[43]]},individualHooks:true})})[_0xbb31[14]](function(){return _0x6295x9[_0xbb31[19]](204)})[_0xbb31[11]](function(_0x6295xb){return handleError(_0x6295x9,_0x6295xb)})};function handleError(_0x6295x9,_0x6295xb){logger[_0xbb31[48]](_0x6295xb[_0xbb31[47]]);return _0x6295x9[_0xbb31[13]](500)[_0xbb31[12]](_0x6295xb)}
\ No newline at end of file