Built motion from commit 27e0a5d.|1.0.8
[motion.git] / server / api / voice_extension / voice_extension.controller.js
index e7f6662..8a7255c 100644 (file)
@@ -1 +1 @@
-var _0x44b5=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x53\x65\x71\x75\x65\x6C\x69\x7A\x65","\x75\x74\x69\x6C","\x61\x73\x79\x6E\x63","\x2E\x2E\x2F\x2E\x2E\x2F\x75\x74\x69\x6C\x73\x2F\x76\x6F\x69\x63\x65\x5F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x69\x6E\x64\x65\x78","\x6C\x6F\x67","\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","\x6D\x65\x72\x67\x65","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x72\x6F\x75\x74\x65\x73","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x73\x63\x6F\x70\x65","\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\x4F\x6E\x65","\x63\x72\x65\x61\x74\x65","\x65\x72\x72","\x6D\x65\x73\x73\x61\x67\x65","\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x2F\x63\x6F\x6E\x74\x65\x78\x74\x20\x63\x6F\x6D\x62\x69\x6E\x61\x74\x69\x6F\x6E\x20\x61\x6C\x72\x65\x61\x64\x79\x20\x65\x78\x69\x73\x74","\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\x52\x4F\x55\x54\x45","\x62\x6F\x64\x79","\x63\x72\x65\x61\x74\x65\x41\x70\x70\x73","\x69\x73\x41\x72\x72\x61\x79","\x6C\x65\x6E\x67\x74\x68","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x72\x6F\x75\x74\x65\x55\x70\x64\x61\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x66\x69\x6E\x64\x42\x79\x49\x64","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x69\x64\x73"];_0x44b5[0];var _=require(_0x44b5[1]);var VoiceExtension=require(_0x44b5[3])[_0x44b5[2]];var Interval=require(_0x44b5[3])[_0x44b5[4]];var sequelize=require(_0x44b5[3])[_0x44b5[5]];var Sequelize=require(_0x44b5[3])[_0x44b5[6]];var util=require(_0x44b5[7]);var async=require(_0x44b5[8]);var veUtil=require(_0x44b5[9]);var Util=require(_0x44b5[10]);var Applications=veUtil[_0x44b5[11]];exports[_0x44b5[12]]= function(_0xdb64xb,_0xdb64xc,_0xdb64xd){return VoiceExtension[_0x44b5[24]](_0x44b5[22],_0x44b5[23])[_0x44b5[21]](_[_0x44b5[20]](Util[_0x44b5[19]](_0xdb64xb[_0x44b5[18]]),{distinct:true}))[_0x44b5[17]](function(_0xdb64xf){_0xdb64xc[_0x44b5[16]](200)[_0x44b5[15]](_0xdb64xf)})[_0x44b5[14]](function(_0xdb64xe){console[_0x44b5[13]](_0xdb64xe);return handleError(_0xdb64xc,_0xdb64xe)})};exports[_0x44b5[25]]= function(_0xdb64xb,_0xdb64xc){return VoiceExtension[_0x44b5[24]](_0x44b5[23])[_0x44b5[29]]({where:{id:_0xdb64xb[_0x44b5[28]][_0x44b5[27]],VoiceExtensionId:null}})[_0x44b5[17]](function(_0xdb64x10){if(!_0xdb64x10){return _0xdb64xc[_0x44b5[26]](404)};return _0xdb64xc[_0x44b5[15]](_0xdb64x10)})[_0x44b5[14]](function(_0xdb64xe){return handleError(_0xdb64xc,_0xdb64xe)})};exports[_0x44b5[30]]= function(_0xdb64xb,_0xdb64xc){var _0xdb64x11;return sequelize[_0x44b5[40]](function(_0xdb64x12){return VoiceExtension[_0x44b5[30]](_0xdb64xb[_0x44b5[36]],{transaction:_0xdb64x12})[_0x44b5[17]](function(_0xdb64x13){_0xdb64x11= _0xdb64x13;if(_0xdb64xb[_0x44b5[36]][_0x44b5[11]]&& Array[_0x44b5[38]](_0xdb64xb[_0x44b5[36]].Applications)&& _0xdb64xb[_0x44b5[36]][_0x44b5[11]][_0x44b5[39]]){return _0xdb64x13}})[_0x44b5[17]](veUtil[_0x44b5[37]](_0xdb64xb[_0x44b5[36]].Applications,_0xdb64x12,_0xdb64xc))})[_0x44b5[17]](function(){return _0xdb64xc[_0x44b5[16]](201)[_0x44b5[15]](_0xdb64x11)})[_0x44b5[14]](sequelize.UniqueConstraintError,function(_0xdb64xe){_0xdb64xe[_0x44b5[32]]= _0x44b5[33];_0xdb64xe[_0x44b5[34]]= _0x44b5[35];return handleError(_0xdb64xc,_0xdb64xe)})[_0x44b5[14]](sequelize.ValidationError,function(_0xdb64xe){_0xdb64xe[_0x44b5[32]]= _0x44b5[33];_0xdb64xe[_0x44b5[34]]= _0x44b5[35];return handleError(_0xdb64xc,_0xdb64xe)})[_0x44b5[14]](function(_0xdb64xe){console[_0x44b5[13]](_0x44b5[31],_0xdb64xe);return handleError(_0xdb64xc,_0xdb64xe)})};exports[_0x44b5[41]]= function(_0xdb64xb,_0xdb64xc){return sequelize[_0x44b5[40]](function(_0xdb64x12){return veUtil[_0x44b5[42]](_0xdb64xb,_0xdb64x12)})[_0x44b5[17]](function(){return _0xdb64xc[_0x44b5[26]](200)})[_0x44b5[14]](sequelize.UniqueConstraintError,function(_0xdb64xe){_0xdb64xe[_0x44b5[32]]= _0x44b5[33];_0xdb64xe[_0x44b5[34]]= _0x44b5[35];console[_0x44b5[13]](_0xdb64xe);return handleError(_0xdb64xc,_0xdb64xe)})[_0x44b5[14]](function(_0xdb64xe){console[_0x44b5[13]](_0xdb64xe);return handleError(_0xdb64xc,_0xdb64xe)})};exports[_0x44b5[43]]= function(_0xdb64xb,_0xdb64xc,_0xdb64xd){return sequelize[_0x44b5[40]](function(_0xdb64x12){return VoiceExtension[_0x44b5[44]](_0xdb64xb[_0x44b5[28]][_0x44b5[27]])[_0x44b5[17]](function(_0xdb64x10){if(!_0xdb64x10){return _0xdb64xc[_0x44b5[26]](404)};return _0xdb64x10[_0x44b5[43]]()})})[_0x44b5[17]](function(){return _0xdb64xc[_0x44b5[26]](204)})[_0x44b5[14]](function(_0xdb64xe){console[_0x44b5[13]](_0xdb64xe);return handleError(_0xdb64xc,_0xdb64xe)})};exports[_0x44b5[45]]= function(_0xdb64xb,_0xdb64xc){return VoiceExtension[_0x44b5[43]]({where:{id:_0xdb64xb[_0x44b5[18]][_0x44b5[46]]},individualHooks:true})[_0x44b5[17]](function(){return _0xdb64xc[_0x44b5[26]](204)})[_0x44b5[14]](function(_0xdb64xe){return handleError(_0xdb64xc,_0xdb64xe)})};function handleError(_0xdb64xc,_0xdb64xe){return _0xdb64xc[_0x44b5[16]](500)[_0x44b5[15]](_0xdb64xe)}
\ No newline at end of file
+var _0x9c41=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x53\x65\x71\x75\x65\x6C\x69\x7A\x65","\x75\x74\x69\x6C","\x61\x73\x79\x6E\x63","\x2E\x2E\x2F\x2E\x2E\x2F\x75\x74\x69\x6C\x73\x2F\x76\x6F\x69\x63\x65\x5F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x69\x6E\x64\x65\x78","\x6C\x6F\x67","\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","\x6D\x65\x72\x67\x65","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x72\x6F\x75\x74\x65\x73","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x73\x63\x6F\x70\x65","\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\x4F\x6E\x65","\x63\x72\x65\x61\x74\x65","\x65\x72\x72","\x6D\x65\x73\x73\x61\x67\x65","\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x2F\x63\x6F\x6E\x74\x65\x78\x74\x20\x63\x6F\x6D\x62\x69\x6E\x61\x74\x69\x6F\x6E\x20\x61\x6C\x72\x65\x61\x64\x79\x20\x65\x78\x69\x73\x74","\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\x52\x4F\x55\x54\x45","\x62\x6F\x64\x79","\x63\x72\x65\x61\x74\x65\x41\x70\x70\x73","\x69\x73\x41\x72\x72\x61\x79","\x6C\x65\x6E\x67\x74\x68","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x72\x6F\x75\x74\x65\x55\x70\x64\x61\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x66\x69\x6E\x64\x42\x79\x49\x64","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x69\x64\x73"];_0x9c41[0];var _=require(_0x9c41[1]);var VoiceExtension=require(_0x9c41[3])[_0x9c41[2]];var Interval=require(_0x9c41[3])[_0x9c41[4]];var sequelize=require(_0x9c41[3])[_0x9c41[5]];var Sequelize=require(_0x9c41[3])[_0x9c41[6]];var util=require(_0x9c41[7]);var async=require(_0x9c41[8]);var veUtil=require(_0x9c41[9]);var Util=require(_0x9c41[10]);var Applications=veUtil[_0x9c41[11]];exports[_0x9c41[12]]= function(_0x4f5fxb,_0x4f5fxc,_0x4f5fxd){return VoiceExtension[_0x9c41[24]](_0x9c41[22],_0x9c41[23])[_0x9c41[21]](_[_0x9c41[20]](Util[_0x9c41[19]](_0x4f5fxb[_0x9c41[18]]),{distinct:true}))[_0x9c41[17]](function(_0x4f5fxf){_0x4f5fxc[_0x9c41[16]](200)[_0x9c41[15]](_0x4f5fxf)})[_0x9c41[14]](function(_0x4f5fxe){console[_0x9c41[13]](_0x4f5fxe);return handleError(_0x4f5fxc,_0x4f5fxe)})};exports[_0x9c41[25]]= function(_0x4f5fxb,_0x4f5fxc){return VoiceExtension[_0x9c41[24]](_0x9c41[23])[_0x9c41[29]]({where:{id:_0x4f5fxb[_0x9c41[28]][_0x9c41[27]],VoiceExtensionId:null}})[_0x9c41[17]](function(_0x4f5fx10){if(!_0x4f5fx10){return _0x4f5fxc[_0x9c41[26]](404)};return _0x4f5fxc[_0x9c41[15]](_0x4f5fx10)})[_0x9c41[14]](function(_0x4f5fxe){return handleError(_0x4f5fxc,_0x4f5fxe)})};exports[_0x9c41[30]]= function(_0x4f5fxb,_0x4f5fxc){var _0x4f5fx11;return sequelize[_0x9c41[40]](function(_0x4f5fx12){return VoiceExtension[_0x9c41[30]](_0x4f5fxb[_0x9c41[36]],{transaction:_0x4f5fx12})[_0x9c41[17]](function(_0x4f5fx13){_0x4f5fx11= _0x4f5fx13;if(_0x4f5fxb[_0x9c41[36]][_0x9c41[11]]&& Array[_0x9c41[38]](_0x4f5fxb[_0x9c41[36]].Applications)&& _0x4f5fxb[_0x9c41[36]][_0x9c41[11]][_0x9c41[39]]){return _0x4f5fx13}})[_0x9c41[17]](veUtil[_0x9c41[37]](_0x4f5fxb[_0x9c41[36]].Applications,_0x4f5fx12,_0x4f5fxc))})[_0x9c41[17]](function(){return _0x4f5fxc[_0x9c41[16]](201)[_0x9c41[15]](_0x4f5fx11)})[_0x9c41[14]](sequelize.UniqueConstraintError,function(_0x4f5fxe){_0x4f5fxe[_0x9c41[32]]= _0x9c41[33];_0x4f5fxe[_0x9c41[34]]= _0x9c41[35];return handleError(_0x4f5fxc,_0x4f5fxe)})[_0x9c41[14]](sequelize.ValidationError,function(_0x4f5fxe){_0x4f5fxe[_0x9c41[32]]= _0x9c41[33];_0x4f5fxe[_0x9c41[34]]= _0x9c41[35];return handleError(_0x4f5fxc,_0x4f5fxe)})[_0x9c41[14]](function(_0x4f5fxe){console[_0x9c41[13]](_0x9c41[31],_0x4f5fxe);return handleError(_0x4f5fxc,_0x4f5fxe)})};exports[_0x9c41[41]]= function(_0x4f5fxb,_0x4f5fxc){return sequelize[_0x9c41[40]](function(_0x4f5fx12){return veUtil[_0x9c41[42]](_0x4f5fxb,_0x4f5fx12)})[_0x9c41[17]](function(){return _0x4f5fxc[_0x9c41[26]](200)})[_0x9c41[14]](sequelize.UniqueConstraintError,function(_0x4f5fxe){_0x4f5fxe[_0x9c41[32]]= _0x9c41[33];_0x4f5fxe[_0x9c41[34]]= _0x9c41[35];console[_0x9c41[13]](_0x4f5fxe);return handleError(_0x4f5fxc,_0x4f5fxe)})[_0x9c41[14]](function(_0x4f5fxe){console[_0x9c41[13]](_0x4f5fxe);return handleError(_0x4f5fxc,_0x4f5fxe)})};exports[_0x9c41[43]]= function(_0x4f5fxb,_0x4f5fxc,_0x4f5fxd){return sequelize[_0x9c41[40]](function(_0x4f5fx12){return VoiceExtension[_0x9c41[44]](_0x4f5fxb[_0x9c41[28]][_0x9c41[27]])[_0x9c41[17]](function(_0x4f5fx10){if(!_0x4f5fx10){return _0x4f5fxc[_0x9c41[26]](404)};return _0x4f5fx10[_0x9c41[43]]()})})[_0x9c41[17]](function(){return _0x4f5fxc[_0x9c41[26]](204)})[_0x9c41[14]](function(_0x4f5fxe){console[_0x9c41[13]](_0x4f5fxe);return handleError(_0x4f5fxc,_0x4f5fxe)})};exports[_0x9c41[45]]= function(_0x4f5fxb,_0x4f5fxc){return VoiceExtension[_0x9c41[43]]({where:{id:_0x4f5fxb[_0x9c41[18]][_0x9c41[46]]},individualHooks:true})[_0x9c41[17]](function(){return _0x4f5fxc[_0x9c41[26]](204)})[_0x9c41[14]](function(_0x4f5fxe){return handleError(_0x4f5fxc,_0x4f5fxe)})};function handleError(_0x4f5fxc,_0x4f5fxe){return _0x4f5fxc[_0x9c41[16]](500)[_0x9c41[15]](_0x4f5fxe)}
\ No newline at end of file