Built motion from commit 1038d87.|0.0.141
[motion.git] / server / api / voice_extension / voice_extension.controller.js
index 25a6c61..2de3c1a 100644 (file)
@@ -1 +1 @@
-var _0x3cd0=["\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"];_0x3cd0[0];var _=require(_0x3cd0[1]);var VoiceExtension=require(_0x3cd0[3])[_0x3cd0[2]];var Interval=require(_0x3cd0[3])[_0x3cd0[4]];var sequelize=require(_0x3cd0[3])[_0x3cd0[5]];var Sequelize=require(_0x3cd0[3])[_0x3cd0[6]];var util=require(_0x3cd0[7]);var async=require(_0x3cd0[8]);var veUtil=require(_0x3cd0[9]);var Util=require(_0x3cd0[10]);var Applications=veUtil[_0x3cd0[11]];exports[_0x3cd0[12]]= function(_0xfaa3xb,_0xfaa3xc,_0xfaa3xd){return VoiceExtension[_0x3cd0[24]](_0x3cd0[22],_0x3cd0[23])[_0x3cd0[21]](_[_0x3cd0[20]](Util[_0x3cd0[19]](_0xfaa3xb[_0x3cd0[18]]),{distinct:true}))[_0x3cd0[17]](function(_0xfaa3xf){_0xfaa3xc[_0x3cd0[16]](200)[_0x3cd0[15]](_0xfaa3xf)})[_0x3cd0[14]](function(_0xfaa3xe){console[_0x3cd0[13]](_0xfaa3xe);return handleError(_0xfaa3xc,_0xfaa3xe)})};exports[_0x3cd0[25]]= function(_0xfaa3xb,_0xfaa3xc){return VoiceExtension[_0x3cd0[24]](_0x3cd0[23])[_0x3cd0[29]]({where:{id:_0xfaa3xb[_0x3cd0[28]][_0x3cd0[27]],VoiceExtensionId:null}})[_0x3cd0[17]](function(_0xfaa3x10){if(!_0xfaa3x10){return _0xfaa3xc[_0x3cd0[26]](404)};return _0xfaa3xc[_0x3cd0[15]](_0xfaa3x10)})[_0x3cd0[14]](function(_0xfaa3xe){return handleError(_0xfaa3xc,_0xfaa3xe)})};exports[_0x3cd0[30]]= function(_0xfaa3xb,_0xfaa3xc){var _0xfaa3x11;return sequelize[_0x3cd0[40]](function(_0xfaa3x12){return VoiceExtension[_0x3cd0[30]](_0xfaa3xb[_0x3cd0[36]],{transaction:_0xfaa3x12})[_0x3cd0[17]](function(_0xfaa3x13){_0xfaa3x11= _0xfaa3x13;if(_0xfaa3xb[_0x3cd0[36]][_0x3cd0[11]]&& Array[_0x3cd0[38]](_0xfaa3xb[_0x3cd0[36]].Applications)&& _0xfaa3xb[_0x3cd0[36]][_0x3cd0[11]][_0x3cd0[39]]){return _0xfaa3x13}})[_0x3cd0[17]](veUtil[_0x3cd0[37]](_0xfaa3xb[_0x3cd0[36]].Applications,_0xfaa3x12,_0xfaa3xc))})[_0x3cd0[17]](function(){return _0xfaa3xc[_0x3cd0[16]](201)[_0x3cd0[15]](_0xfaa3x11)})[_0x3cd0[14]](sequelize.UniqueConstraintError,function(_0xfaa3xe){_0xfaa3xe[_0x3cd0[32]]= _0x3cd0[33];_0xfaa3xe[_0x3cd0[34]]= _0x3cd0[35];return handleError(_0xfaa3xc,_0xfaa3xe)})[_0x3cd0[14]](sequelize.ValidationError,function(_0xfaa3xe){_0xfaa3xe[_0x3cd0[32]]= _0x3cd0[33];_0xfaa3xe[_0x3cd0[34]]= _0x3cd0[35];return handleError(_0xfaa3xc,_0xfaa3xe)})[_0x3cd0[14]](function(_0xfaa3xe){console[_0x3cd0[13]](_0x3cd0[31],_0xfaa3xe);return handleError(_0xfaa3xc,_0xfaa3xe)})};exports[_0x3cd0[41]]= function(_0xfaa3xb,_0xfaa3xc){return sequelize[_0x3cd0[40]](function(_0xfaa3x12){return veUtil[_0x3cd0[42]](_0xfaa3xb,_0xfaa3x12)})[_0x3cd0[17]](function(){return _0xfaa3xc[_0x3cd0[26]](200)})[_0x3cd0[14]](sequelize.UniqueConstraintError,function(_0xfaa3xe){_0xfaa3xe[_0x3cd0[32]]= _0x3cd0[33];_0xfaa3xe[_0x3cd0[34]]= _0x3cd0[35];console[_0x3cd0[13]](_0xfaa3xe);return handleError(_0xfaa3xc,_0xfaa3xe)})[_0x3cd0[14]](function(_0xfaa3xe){console[_0x3cd0[13]](_0xfaa3xe);return handleError(_0xfaa3xc,_0xfaa3xe)})};exports[_0x3cd0[43]]= function(_0xfaa3xb,_0xfaa3xc,_0xfaa3xd){return sequelize[_0x3cd0[40]](function(_0xfaa3x12){return VoiceExtension[_0x3cd0[44]](_0xfaa3xb[_0x3cd0[28]][_0x3cd0[27]])[_0x3cd0[17]](function(_0xfaa3x10){if(!_0xfaa3x10){return _0xfaa3xc[_0x3cd0[26]](404)};return _0xfaa3x10[_0x3cd0[43]]()})})[_0x3cd0[17]](function(){return _0xfaa3xc[_0x3cd0[26]](204)})[_0x3cd0[14]](function(_0xfaa3xe){console[_0x3cd0[13]](_0xfaa3xe);return handleError(_0xfaa3xc,_0xfaa3xe)})};exports[_0x3cd0[45]]= function(_0xfaa3xb,_0xfaa3xc){return VoiceExtension[_0x3cd0[43]]({where:{id:_0xfaa3xb[_0x3cd0[18]][_0x3cd0[46]]},individualHooks:true})[_0x3cd0[17]](function(){return _0xfaa3xc[_0x3cd0[26]](204)})[_0x3cd0[14]](function(_0xfaa3xe){return handleError(_0xfaa3xc,_0xfaa3xe)})};function handleError(_0xfaa3xc,_0xfaa3xe){return _0xfaa3xc[_0x3cd0[16]](500)[_0x3cd0[15]](_0xfaa3xe)}
\ No newline at end of file
+var _0x586c=["\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"];_0x586c[0];var _=require(_0x586c[1]);var VoiceExtension=require(_0x586c[3])[_0x586c[2]];var Interval=require(_0x586c[3])[_0x586c[4]];var sequelize=require(_0x586c[3])[_0x586c[5]];var Sequelize=require(_0x586c[3])[_0x586c[6]];var util=require(_0x586c[7]);var async=require(_0x586c[8]);var veUtil=require(_0x586c[9]);var Util=require(_0x586c[10]);var Applications=veUtil[_0x586c[11]];exports[_0x586c[12]]= function(_0xb375xb,_0xb375xc,_0xb375xd){return VoiceExtension[_0x586c[24]](_0x586c[22],_0x586c[23])[_0x586c[21]](_[_0x586c[20]](Util[_0x586c[19]](_0xb375xb[_0x586c[18]]),{distinct:true}))[_0x586c[17]](function(_0xb375xf){_0xb375xc[_0x586c[16]](200)[_0x586c[15]](_0xb375xf)})[_0x586c[14]](function(_0xb375xe){console[_0x586c[13]](_0xb375xe);return handleError(_0xb375xc,_0xb375xe)})};exports[_0x586c[25]]= function(_0xb375xb,_0xb375xc){return VoiceExtension[_0x586c[24]](_0x586c[23])[_0x586c[29]]({where:{id:_0xb375xb[_0x586c[28]][_0x586c[27]],VoiceExtensionId:null}})[_0x586c[17]](function(_0xb375x10){if(!_0xb375x10){return _0xb375xc[_0x586c[26]](404)};return _0xb375xc[_0x586c[15]](_0xb375x10)})[_0x586c[14]](function(_0xb375xe){return handleError(_0xb375xc,_0xb375xe)})};exports[_0x586c[30]]= function(_0xb375xb,_0xb375xc){var _0xb375x11;return sequelize[_0x586c[40]](function(_0xb375x12){return VoiceExtension[_0x586c[30]](_0xb375xb[_0x586c[36]],{transaction:_0xb375x12})[_0x586c[17]](function(_0xb375x13){_0xb375x11= _0xb375x13;if(_0xb375xb[_0x586c[36]][_0x586c[11]]&& Array[_0x586c[38]](_0xb375xb[_0x586c[36]].Applications)&& _0xb375xb[_0x586c[36]][_0x586c[11]][_0x586c[39]]){return _0xb375x13}})[_0x586c[17]](veUtil[_0x586c[37]](_0xb375xb[_0x586c[36]].Applications,_0xb375x12,_0xb375xc))})[_0x586c[17]](function(){return _0xb375xc[_0x586c[16]](201)[_0x586c[15]](_0xb375x11)})[_0x586c[14]](sequelize.UniqueConstraintError,function(_0xb375xe){_0xb375xe[_0x586c[32]]= _0x586c[33];_0xb375xe[_0x586c[34]]= _0x586c[35];return handleError(_0xb375xc,_0xb375xe)})[_0x586c[14]](sequelize.ValidationError,function(_0xb375xe){_0xb375xe[_0x586c[32]]= _0x586c[33];_0xb375xe[_0x586c[34]]= _0x586c[35];return handleError(_0xb375xc,_0xb375xe)})[_0x586c[14]](function(_0xb375xe){console[_0x586c[13]](_0x586c[31],_0xb375xe);return handleError(_0xb375xc,_0xb375xe)})};exports[_0x586c[41]]= function(_0xb375xb,_0xb375xc){return sequelize[_0x586c[40]](function(_0xb375x12){return veUtil[_0x586c[42]](_0xb375xb,_0xb375x12)})[_0x586c[17]](function(){return _0xb375xc[_0x586c[26]](200)})[_0x586c[14]](sequelize.UniqueConstraintError,function(_0xb375xe){_0xb375xe[_0x586c[32]]= _0x586c[33];_0xb375xe[_0x586c[34]]= _0x586c[35];console[_0x586c[13]](_0xb375xe);return handleError(_0xb375xc,_0xb375xe)})[_0x586c[14]](function(_0xb375xe){console[_0x586c[13]](_0xb375xe);return handleError(_0xb375xc,_0xb375xe)})};exports[_0x586c[43]]= function(_0xb375xb,_0xb375xc,_0xb375xd){return sequelize[_0x586c[40]](function(_0xb375x12){return VoiceExtension[_0x586c[44]](_0xb375xb[_0x586c[28]][_0x586c[27]])[_0x586c[17]](function(_0xb375x10){if(!_0xb375x10){return _0xb375xc[_0x586c[26]](404)};return _0xb375x10[_0x586c[43]]()})})[_0x586c[17]](function(){return _0xb375xc[_0x586c[26]](204)})[_0x586c[14]](function(_0xb375xe){console[_0x586c[13]](_0xb375xe);return handleError(_0xb375xc,_0xb375xe)})};exports[_0x586c[45]]= function(_0xb375xb,_0xb375xc){return VoiceExtension[_0x586c[43]]({where:{id:_0xb375xb[_0x586c[18]][_0x586c[46]]},individualHooks:true})[_0x586c[17]](function(){return _0xb375xc[_0x586c[26]](204)})[_0x586c[14]](function(_0xb375xe){return handleError(_0xb375xc,_0xb375xe)})};function handleError(_0xb375xc,_0xb375xe){return _0xb375xc[_0x586c[16]](500)[_0x586c[15]](_0xb375xe)}
\ No newline at end of file