Built motion from commit ec3ecc5.|1.0.2
[motion.git] / server / api / voice_extension / voice_extension.controller.js
index ea7f6cc..d7ebc71 100644 (file)
@@ -1 +1 @@
-var _0x1a23=["\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","\x72\x6F\x75\x74\x65\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x65\x78\x74\x65\x6E","\x63\x6F\x6E\x74\x65\x78\x74","\x66\x69\x6E\x64\x41\x6C\x6C","\x63\x72\x65\x61\x74\x65","\x50\x52\x49\x4D\x41\x52\x59","\x66\x69\x65\x6C\x64\x73","\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"];_0x1a23[0];var _=require(_0x1a23[1]);var VoiceExtension=require(_0x1a23[3])[_0x1a23[2]];var Interval=require(_0x1a23[3])[_0x1a23[4]];var sequelize=require(_0x1a23[3])[_0x1a23[5]];var Sequelize=require(_0x1a23[3])[_0x1a23[6]];var util=require(_0x1a23[7]);var async=require(_0x1a23[8]);var veUtil=require(_0x1a23[9]);var Util=require(_0x1a23[10]);var Applications=veUtil[_0x1a23[11]];exports[_0x1a23[12]]=function(_0x5411xb,_0x5411xc,_0x5411xd){return VoiceExtension[_0x1a23[23]](_0x1a23[21],_0x1a23[22])[_0x1a23[20]](Util[_0x1a23[19]](_0x5411xb[_0x1a23[18]]))[_0x1a23[17]](function(_0x5411xf){_0x5411xc[_0x1a23[16]](200)[_0x1a23[15]](_0x5411xf)})[_0x1a23[14]](function(_0x5411xe){console[_0x1a23[13]](_0x5411xe);return handleError(_0x5411xc,_0x5411xe)})};exports[_0x1a23[24]]=function(_0x5411xb,_0x5411xc){VoiceExtension[_0x1a23[23]](_0x1a23[22])[_0x1a23[28]]({where:{id:_0x5411xb[_0x1a23[27]][_0x1a23[26]],VoiceExtensionId:null}})[_0x1a23[17]](function(_0x5411x10){if(!_0x5411x10){return _0x5411xc[_0x1a23[25]](404)};return _0x5411xc[_0x1a23[15]](_0x5411x10)})[_0x1a23[14]](function(_0x5411xe){return handleError(_0x5411xc,_0x5411xe)})};exports[_0x1a23[29]]=function(_0x5411xb,_0x5411xc){return VoiceExtension[_0x1a23[32]]({where:{exten:_0x5411xb[_0x1a23[18]][_0x1a23[30]],context:_0x5411xb[_0x1a23[18]][_0x1a23[31]],VoiceExtensionId:null}})[_0x1a23[17]](function(_0x5411x10){if(!_0x5411x10){return _0x5411xc[_0x1a23[25]](404)};return _0x5411xc[_0x1a23[15]](_0x5411x10)})[_0x1a23[14]](function(_0x5411xe){return handleError(_0x5411xc,_0x5411xe)})};exports[_0x1a23[33]]=function(_0x5411xb,_0x5411xc){var _0x5411x11;return sequelize[_0x1a23[44]](function(_0x5411x12){return VoiceExtension[_0x1a23[33]](_0x5411xb[_0x1a23[40]],{transaction:_0x5411x12})[_0x1a23[17]](function(_0x5411x13){_0x5411x11=_0x5411x13;if(_0x5411xb[_0x1a23[40]][_0x1a23[11]]&&Array[_0x1a23[42]](_0x5411xb[_0x1a23[40]].Applications)&&_0x5411xb[_0x1a23[40]][_0x1a23[11]][_0x1a23[43]]){return _0x5411x13}})[_0x1a23[17]](veUtil[_0x1a23[41]](_0x5411xb[_0x1a23[40]].Applications,_0x5411x12,_0x5411xc))})[_0x1a23[17]](function(){return _0x5411xc[_0x1a23[16]](201)[_0x1a23[15]](_0x5411x11)})[_0x1a23[14]](sequelize.UniqueConstraintError,function(_0x5411xe){if(_0x5411xe[_0x1a23[35]][_0x1a23[34]]){_0x5411xe[_0x1a23[36]]=_0x1a23[37];_0x5411xe[_0x1a23[38]]=_0x1a23[39]};return handleError(_0x5411xc,_0x5411xe)})[_0x1a23[14]](function(_0x5411xe){console[_0x1a23[13]](_0x5411xe);return handleError(_0x5411xc,_0x5411xe)})};exports[_0x1a23[45]]=function(_0x5411xb,_0x5411xc){return sequelize[_0x1a23[44]](function(_0x5411x12){return veUtil[_0x1a23[46]](_0x5411xb,_0x5411x12)})[_0x1a23[17]](function(){return _0x5411xc[_0x1a23[25]](200)})[_0x1a23[14]](sequelize.UniqueConstraintError,function(_0x5411xe){if(_0x5411xe[_0x1a23[35]][_0x1a23[34]]){_0x5411xe[_0x1a23[36]]=_0x1a23[37];_0x5411xe[_0x1a23[38]]=_0x1a23[39]};console[_0x1a23[13]](_0x5411xe);return handleError(_0x5411xc,_0x5411xe)})[_0x1a23[14]](function(_0x5411xe){console[_0x1a23[13]](_0x5411xe);return handleError(_0x5411xc,_0x5411xe)})};exports[_0x1a23[47]]=function(_0x5411xb,_0x5411xc,_0x5411xd){return sequelize[_0x1a23[44]](function(_0x5411x12){return VoiceExtension[_0x1a23[48]](_0x5411xb[_0x1a23[27]][_0x1a23[26]])[_0x1a23[17]](function(_0x5411x10){if(!_0x5411x10){return _0x5411xc[_0x1a23[25]](404)};return _0x5411x10[_0x1a23[47]]()})})[_0x1a23[17]](function(){return _0x5411xc[_0x1a23[25]](204)})[_0x1a23[14]](function(_0x5411xe){console[_0x1a23[13]](_0x5411xe);return handleError(_0x5411xc,_0x5411xe)})};exports[_0x1a23[49]]=function(_0x5411xb,_0x5411xc){VoiceExtension[_0x1a23[47]]({where:{id:_0x5411xb[_0x1a23[18]][_0x1a23[26]]},individualHooks:true})[_0x1a23[17]](function(){return _0x5411xc[_0x1a23[25]](204)})[_0x1a23[14]](function(_0x5411xe){return handleError(_0x5411xc,_0x5411xe)})};function handleError(_0x5411xc,_0x5411xe){return _0x5411xc[_0x1a23[16]](500)[_0x1a23[15]](_0x5411xe)}
\ No newline at end of file
+var _0xff80=["\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"];_0xff80[0];var _=require(_0xff80[1]);var VoiceExtension=require(_0xff80[3])[_0xff80[2]];var Interval=require(_0xff80[3])[_0xff80[4]];var sequelize=require(_0xff80[3])[_0xff80[5]];var Sequelize=require(_0xff80[3])[_0xff80[6]];var util=require(_0xff80[7]);var async=require(_0xff80[8]);var veUtil=require(_0xff80[9]);var Util=require(_0xff80[10]);var Applications=veUtil[_0xff80[11]];exports[_0xff80[12]]= function(_0xab6bxb,_0xab6bxc,_0xab6bxd){return VoiceExtension[_0xff80[24]](_0xff80[22],_0xff80[23])[_0xff80[21]](_[_0xff80[20]](Util[_0xff80[19]](_0xab6bxb[_0xff80[18]]),{distinct:true}))[_0xff80[17]](function(_0xab6bxf){_0xab6bxc[_0xff80[16]](200)[_0xff80[15]](_0xab6bxf)})[_0xff80[14]](function(_0xab6bxe){console[_0xff80[13]](_0xab6bxe);return handleError(_0xab6bxc,_0xab6bxe)})};exports[_0xff80[25]]= function(_0xab6bxb,_0xab6bxc){return VoiceExtension[_0xff80[24]](_0xff80[23])[_0xff80[29]]({where:{id:_0xab6bxb[_0xff80[28]][_0xff80[27]],VoiceExtensionId:null}})[_0xff80[17]](function(_0xab6bx10){if(!_0xab6bx10){return _0xab6bxc[_0xff80[26]](404)};return _0xab6bxc[_0xff80[15]](_0xab6bx10)})[_0xff80[14]](function(_0xab6bxe){return handleError(_0xab6bxc,_0xab6bxe)})};exports[_0xff80[30]]= function(_0xab6bxb,_0xab6bxc){var _0xab6bx11;return sequelize[_0xff80[40]](function(_0xab6bx12){return VoiceExtension[_0xff80[30]](_0xab6bxb[_0xff80[36]],{transaction:_0xab6bx12})[_0xff80[17]](function(_0xab6bx13){_0xab6bx11= _0xab6bx13;if(_0xab6bxb[_0xff80[36]][_0xff80[11]]&& Array[_0xff80[38]](_0xab6bxb[_0xff80[36]].Applications)&& _0xab6bxb[_0xff80[36]][_0xff80[11]][_0xff80[39]]){return _0xab6bx13}})[_0xff80[17]](veUtil[_0xff80[37]](_0xab6bxb[_0xff80[36]].Applications,_0xab6bx12,_0xab6bxc))})[_0xff80[17]](function(){return _0xab6bxc[_0xff80[16]](201)[_0xff80[15]](_0xab6bx11)})[_0xff80[14]](sequelize.UniqueConstraintError,function(_0xab6bxe){_0xab6bxe[_0xff80[32]]= _0xff80[33];_0xab6bxe[_0xff80[34]]= _0xff80[35];return handleError(_0xab6bxc,_0xab6bxe)})[_0xff80[14]](sequelize.ValidationError,function(_0xab6bxe){_0xab6bxe[_0xff80[32]]= _0xff80[33];_0xab6bxe[_0xff80[34]]= _0xff80[35];return handleError(_0xab6bxc,_0xab6bxe)})[_0xff80[14]](function(_0xab6bxe){console[_0xff80[13]](_0xff80[31],_0xab6bxe);return handleError(_0xab6bxc,_0xab6bxe)})};exports[_0xff80[41]]= function(_0xab6bxb,_0xab6bxc){return sequelize[_0xff80[40]](function(_0xab6bx12){return veUtil[_0xff80[42]](_0xab6bxb,_0xab6bx12)})[_0xff80[17]](function(){return _0xab6bxc[_0xff80[26]](200)})[_0xff80[14]](sequelize.UniqueConstraintError,function(_0xab6bxe){_0xab6bxe[_0xff80[32]]= _0xff80[33];_0xab6bxe[_0xff80[34]]= _0xff80[35];console[_0xff80[13]](_0xab6bxe);return handleError(_0xab6bxc,_0xab6bxe)})[_0xff80[14]](function(_0xab6bxe){console[_0xff80[13]](_0xab6bxe);return handleError(_0xab6bxc,_0xab6bxe)})};exports[_0xff80[43]]= function(_0xab6bxb,_0xab6bxc,_0xab6bxd){return sequelize[_0xff80[40]](function(_0xab6bx12){return VoiceExtension[_0xff80[44]](_0xab6bxb[_0xff80[28]][_0xff80[27]])[_0xff80[17]](function(_0xab6bx10){if(!_0xab6bx10){return _0xab6bxc[_0xff80[26]](404)};return _0xab6bx10[_0xff80[43]]()})})[_0xff80[17]](function(){return _0xab6bxc[_0xff80[26]](204)})[_0xff80[14]](function(_0xab6bxe){console[_0xff80[13]](_0xab6bxe);return handleError(_0xab6bxc,_0xab6bxe)})};exports[_0xff80[45]]= function(_0xab6bxb,_0xab6bxc){return VoiceExtension[_0xff80[43]]({where:{id:_0xab6bxb[_0xff80[18]][_0xff80[46]]},individualHooks:true})[_0xff80[17]](function(){return _0xab6bxc[_0xff80[26]](204)})[_0xff80[14]](function(_0xab6bxe){return handleError(_0xab6bxc,_0xab6bxe)})};function handleError(_0xab6bxc,_0xab6bxe){return _0xab6bxc[_0xff80[16]](500)[_0xff80[15]](_0xab6bxe)}
\ No newline at end of file