Built motion from commit 57474b6.|0.0.99
[motion.git] / server / api / voice_extension / voice_extension.controller.js
index cbe774d..bf5d549 100644 (file)
@@ -1 +1 @@
-var _0x6406=["\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","\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","\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","\x6C\x6F\x67","\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"];_0x6406[0];var _=require(_0x6406[1]);var VoiceExtension=require(_0x6406[3])[_0x6406[2]];var Interval=require(_0x6406[3])[_0x6406[4]];var sequelize=require(_0x6406[3])[_0x6406[5]];var Sequelize=require(_0x6406[3])[_0x6406[6]];var util=require(_0x6406[7]);var async=require(_0x6406[8]);var veUtil=require(_0x6406[9]);var Util=require(_0x6406[10]);var Applications=veUtil[_0x6406[11]];exports[_0x6406[12]]=function(_0xa4b7xb,_0xa4b7xc,_0xa4b7xd){return VoiceExtension[_0x6406[22]](_0x6406[20],_0x6406[21])[_0x6406[19]](Util[_0x6406[18]](_0xa4b7xb[_0x6406[17]]))[_0x6406[16]](function(_0xa4b7xf){_0xa4b7xc[_0x6406[15]](200)[_0x6406[14]](_0xa4b7xf)})[_0x6406[13]](function(_0xa4b7xe){return handleError(_0xa4b7xc,_0xa4b7xe)})};exports[_0x6406[23]]=function(_0xa4b7xb,_0xa4b7xc){return VoiceExtension[_0x6406[22]](_0x6406[21])[_0x6406[27]]({where:{id:_0xa4b7xb[_0x6406[26]][_0x6406[25]],VoiceExtensionId:null}})[_0x6406[16]](function(_0xa4b7x10){if(!_0xa4b7x10){return _0xa4b7xc[_0x6406[24]](404)};return _0xa4b7xc[_0x6406[14]](_0xa4b7x10)})[_0x6406[13]](function(_0xa4b7xe){return handleError(_0xa4b7xc,_0xa4b7xe)})};exports[_0x6406[28]]=function(_0xa4b7xb,_0xa4b7xc){var _0xa4b7x11;return sequelize[_0x6406[39]](function(_0xa4b7x12){return VoiceExtension[_0x6406[28]](_0xa4b7xb[_0x6406[35]],{transaction:_0xa4b7x12})[_0x6406[16]](function(_0xa4b7x13){_0xa4b7x11=_0xa4b7x13;if(_0xa4b7xb[_0x6406[35]][_0x6406[11]]&&Array[_0x6406[37]](_0xa4b7xb[_0x6406[35]].Applications)&&_0xa4b7xb[_0x6406[35]][_0x6406[11]][_0x6406[38]]){return _0xa4b7x13}})[_0x6406[16]](veUtil[_0x6406[36]](_0xa4b7xb[_0x6406[35]].Applications,_0xa4b7x12,_0xa4b7xc))})[_0x6406[16]](function(){return _0xa4b7xc[_0x6406[15]](201)[_0x6406[14]](_0xa4b7x11)})[_0x6406[13]](sequelize.UniqueConstraintError,function(_0xa4b7xe){_0xa4b7xe[_0x6406[31]]=_0x6406[32];_0xa4b7xe[_0x6406[33]]=_0x6406[34];return handleError(_0xa4b7xc,_0xa4b7xe)})[_0x6406[13]](sequelize.ValidationError,function(_0xa4b7xe){_0xa4b7xe[_0x6406[31]]=_0x6406[32];_0xa4b7xe[_0x6406[33]]=_0x6406[34];return handleError(_0xa4b7xc,_0xa4b7xe)})[_0x6406[13]](function(_0xa4b7xe){console[_0x6406[30]](_0x6406[29],_0xa4b7xe);return handleError(_0xa4b7xc,_0xa4b7xe)})};exports[_0x6406[40]]=function(_0xa4b7xb,_0xa4b7xc){return sequelize[_0x6406[39]](function(_0xa4b7x12){return veUtil[_0x6406[41]](_0xa4b7xb,_0xa4b7x12)})[_0x6406[16]](function(){return _0xa4b7xc[_0x6406[24]](200)})[_0x6406[13]](sequelize.UniqueConstraintError,function(_0xa4b7xe){_0xa4b7xe[_0x6406[31]]=_0x6406[32];_0xa4b7xe[_0x6406[33]]=_0x6406[34];console[_0x6406[30]](_0xa4b7xe);return handleError(_0xa4b7xc,_0xa4b7xe)})[_0x6406[13]](function(_0xa4b7xe){console[_0x6406[30]](_0xa4b7xe);return handleError(_0xa4b7xc,_0xa4b7xe)})};exports[_0x6406[42]]=function(_0xa4b7xb,_0xa4b7xc,_0xa4b7xd){return sequelize[_0x6406[39]](function(_0xa4b7x12){return VoiceExtension[_0x6406[43]](_0xa4b7xb[_0x6406[26]][_0x6406[25]])[_0x6406[16]](function(_0xa4b7x10){if(!_0xa4b7x10){return _0xa4b7xc[_0x6406[24]](404)};return _0xa4b7x10[_0x6406[42]]()})})[_0x6406[16]](function(){return _0xa4b7xc[_0x6406[24]](204)})[_0x6406[13]](function(_0xa4b7xe){console[_0x6406[30]](_0xa4b7xe);return handleError(_0xa4b7xc,_0xa4b7xe)})};exports[_0x6406[44]]=function(_0xa4b7xb,_0xa4b7xc){return VoiceExtension[_0x6406[42]]({where:{id:_0xa4b7xb[_0x6406[17]][_0x6406[25]]},individualHooks:true})[_0x6406[16]](function(){return _0xa4b7xc[_0x6406[24]](204)})[_0x6406[13]](function(_0xa4b7xe){return handleError(_0xa4b7xc,_0xa4b7xe)})};function handleError(_0xa4b7xc,_0xa4b7xe){return _0xa4b7xc[_0x6406[15]](500)[_0x6406[14]](_0xa4b7xe)}
\ No newline at end of file
+var _0x217f=["\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","\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"];_0x217f[0];var _=require(_0x217f[1]);var VoiceExtension=require(_0x217f[3])[_0x217f[2]];var Interval=require(_0x217f[3])[_0x217f[4]];var sequelize=require(_0x217f[3])[_0x217f[5]];var Sequelize=require(_0x217f[3])[_0x217f[6]];var util=require(_0x217f[7]);var async=require(_0x217f[8]);var veUtil=require(_0x217f[9]);var Util=require(_0x217f[10]);var Applications=veUtil[_0x217f[11]];exports[_0x217f[12]]=function(_0x619fxb,_0x619fxc,_0x619fxd){return VoiceExtension[_0x217f[23]](_0x217f[21],_0x217f[22])[_0x217f[20]](Util[_0x217f[19]](_0x619fxb[_0x217f[18]]))[_0x217f[17]](function(_0x619fxf){_0x619fxc[_0x217f[16]](200)[_0x217f[15]](_0x619fxf)})[_0x217f[14]](function(_0x619fxe){console[_0x217f[13]](_0x619fxe);return handleError(_0x619fxc,_0x619fxe)})};exports[_0x217f[24]]=function(_0x619fxb,_0x619fxc){return VoiceExtension[_0x217f[23]](_0x217f[22])[_0x217f[28]]({where:{id:_0x619fxb[_0x217f[27]][_0x217f[26]],VoiceExtensionId:null}})[_0x217f[17]](function(_0x619fx10){if(!_0x619fx10){return _0x619fxc[_0x217f[25]](404)};return _0x619fxc[_0x217f[15]](_0x619fx10)})[_0x217f[14]](function(_0x619fxe){return handleError(_0x619fxc,_0x619fxe)})};exports[_0x217f[29]]=function(_0x619fxb,_0x619fxc){var _0x619fx11;return sequelize[_0x217f[39]](function(_0x619fx12){return VoiceExtension[_0x217f[29]](_0x619fxb[_0x217f[35]],{transaction:_0x619fx12})[_0x217f[17]](function(_0x619fx13){_0x619fx11=_0x619fx13;if(_0x619fxb[_0x217f[35]][_0x217f[11]]&&Array[_0x217f[37]](_0x619fxb[_0x217f[35]].Applications)&&_0x619fxb[_0x217f[35]][_0x217f[11]][_0x217f[38]]){return _0x619fx13}})[_0x217f[17]](veUtil[_0x217f[36]](_0x619fxb[_0x217f[35]].Applications,_0x619fx12,_0x619fxc))})[_0x217f[17]](function(){return _0x619fxc[_0x217f[16]](201)[_0x217f[15]](_0x619fx11)})[_0x217f[14]](sequelize.UniqueConstraintError,function(_0x619fxe){_0x619fxe[_0x217f[31]]=_0x217f[32];_0x619fxe[_0x217f[33]]=_0x217f[34];return handleError(_0x619fxc,_0x619fxe)})[_0x217f[14]](sequelize.ValidationError,function(_0x619fxe){_0x619fxe[_0x217f[31]]=_0x217f[32];_0x619fxe[_0x217f[33]]=_0x217f[34];return handleError(_0x619fxc,_0x619fxe)})[_0x217f[14]](function(_0x619fxe){console[_0x217f[13]](_0x217f[30],_0x619fxe);return handleError(_0x619fxc,_0x619fxe)})};exports[_0x217f[40]]=function(_0x619fxb,_0x619fxc){return sequelize[_0x217f[39]](function(_0x619fx12){return veUtil[_0x217f[41]](_0x619fxb,_0x619fx12)})[_0x217f[17]](function(){return _0x619fxc[_0x217f[25]](200)})[_0x217f[14]](sequelize.UniqueConstraintError,function(_0x619fxe){_0x619fxe[_0x217f[31]]=_0x217f[32];_0x619fxe[_0x217f[33]]=_0x217f[34];console[_0x217f[13]](_0x619fxe);return handleError(_0x619fxc,_0x619fxe)})[_0x217f[14]](function(_0x619fxe){console[_0x217f[13]](_0x619fxe);return handleError(_0x619fxc,_0x619fxe)})};exports[_0x217f[42]]=function(_0x619fxb,_0x619fxc,_0x619fxd){return sequelize[_0x217f[39]](function(_0x619fx12){return VoiceExtension[_0x217f[43]](_0x619fxb[_0x217f[27]][_0x217f[26]])[_0x217f[17]](function(_0x619fx10){if(!_0x619fx10){return _0x619fxc[_0x217f[25]](404)};return _0x619fx10[_0x217f[42]]()})})[_0x217f[17]](function(){return _0x619fxc[_0x217f[25]](204)})[_0x217f[14]](function(_0x619fxe){console[_0x217f[13]](_0x619fxe);return handleError(_0x619fxc,_0x619fxe)})};exports[_0x217f[44]]=function(_0x619fxb,_0x619fxc){return VoiceExtension[_0x217f[42]]({where:{id:_0x619fxb[_0x217f[18]][_0x217f[45]]},individualHooks:true})[_0x217f[17]](function(){return _0x619fxc[_0x217f[25]](204)})[_0x217f[14]](function(_0x619fxe){return handleError(_0x619fxc,_0x619fxe)})};function handleError(_0x619fxc,_0x619fxe){return _0x619fxc[_0x217f[16]](500)[_0x217f[15]](_0x619fxe)}
\ No newline at end of file