Built motion from commit fa8c70b.|0.0.144
[motion.git] / server / api / voice_extension / voice_extension.controller.js
index cd4d403..95e7d90 100644 (file)
@@ -1 +1 @@
-var _0x5f09=["\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"];_0x5f09[0];var _=require(_0x5f09[1]);var VoiceExtension=require(_0x5f09[3])[_0x5f09[2]];var Interval=require(_0x5f09[3])[_0x5f09[4]];var sequelize=require(_0x5f09[3])[_0x5f09[5]];var Sequelize=require(_0x5f09[3])[_0x5f09[6]];var util=require(_0x5f09[7]);var async=require(_0x5f09[8]);var veUtil=require(_0x5f09[9]);var Util=require(_0x5f09[10]);var Applications=veUtil[_0x5f09[11]];exports[_0x5f09[12]]=function(_0xa6e7xb,_0xa6e7xc,_0xa6e7xd){return VoiceExtension[_0x5f09[23]](_0x5f09[21],_0x5f09[22])[_0x5f09[20]](Util[_0x5f09[19]](_0xa6e7xb[_0x5f09[18]]))[_0x5f09[17]](function(_0xa6e7xf){_0xa6e7xc[_0x5f09[16]](200)[_0x5f09[15]](_0xa6e7xf)})[_0x5f09[14]](function(_0xa6e7xe){console[_0x5f09[13]](_0xa6e7xe);return handleError(_0xa6e7xc,_0xa6e7xe)})};exports[_0x5f09[24]]=function(_0xa6e7xb,_0xa6e7xc){VoiceExtension[_0x5f09[23]](_0x5f09[22])[_0x5f09[28]]({where:{id:_0xa6e7xb[_0x5f09[27]][_0x5f09[26]],VoiceExtensionId:null}})[_0x5f09[17]](function(_0xa6e7x10){if(!_0xa6e7x10){return _0xa6e7xc[_0x5f09[25]](404)};return _0xa6e7xc[_0x5f09[15]](_0xa6e7x10)})[_0x5f09[14]](function(_0xa6e7xe){return handleError(_0xa6e7xc,_0xa6e7xe)})};exports[_0x5f09[29]]=function(_0xa6e7xb,_0xa6e7xc){var _0xa6e7x11;return sequelize[_0x5f09[39]](function(_0xa6e7x12){return VoiceExtension[_0x5f09[29]](_0xa6e7xb[_0x5f09[35]],{transaction:_0xa6e7x12})[_0x5f09[17]](function(_0xa6e7x13){_0xa6e7x11=_0xa6e7x13;if(_0xa6e7xb[_0x5f09[35]][_0x5f09[11]]&&Array[_0x5f09[37]](_0xa6e7xb[_0x5f09[35]].Applications)&&_0xa6e7xb[_0x5f09[35]][_0x5f09[11]][_0x5f09[38]]){return _0xa6e7x13}})[_0x5f09[17]](veUtil[_0x5f09[36]](_0xa6e7xb[_0x5f09[35]].Applications,_0xa6e7x12,_0xa6e7xc))})[_0x5f09[17]](function(){return _0xa6e7xc[_0x5f09[16]](201)[_0x5f09[15]](_0xa6e7x11)})[_0x5f09[14]](sequelize.UniqueConstraintError,function(_0xa6e7xe){_0xa6e7xe[_0x5f09[31]]=_0x5f09[32];_0xa6e7xe[_0x5f09[33]]=_0x5f09[34];return handleError(_0xa6e7xc,_0xa6e7xe)})[_0x5f09[14]](sequelize.ValidationError,function(_0xa6e7xe){_0xa6e7xe[_0x5f09[31]]=_0x5f09[32];_0xa6e7xe[_0x5f09[33]]=_0x5f09[34];return handleError(_0xa6e7xc,_0xa6e7xe)})[_0x5f09[14]](function(_0xa6e7xe){console[_0x5f09[13]](_0x5f09[30],_0xa6e7xe);return handleError(_0xa6e7xc,_0xa6e7xe)})};exports[_0x5f09[40]]=function(_0xa6e7xb,_0xa6e7xc){return sequelize[_0x5f09[39]](function(_0xa6e7x12){return veUtil[_0x5f09[41]](_0xa6e7xb,_0xa6e7x12)})[_0x5f09[17]](function(){return _0xa6e7xc[_0x5f09[25]](200)})[_0x5f09[14]](sequelize.UniqueConstraintError,function(_0xa6e7xe){_0xa6e7xe[_0x5f09[31]]=_0x5f09[32];_0xa6e7xe[_0x5f09[33]]=_0x5f09[34];console[_0x5f09[13]](_0xa6e7xe);return handleError(_0xa6e7xc,_0xa6e7xe)})[_0x5f09[14]](function(_0xa6e7xe){console[_0x5f09[13]](_0xa6e7xe);return handleError(_0xa6e7xc,_0xa6e7xe)})};exports[_0x5f09[42]]=function(_0xa6e7xb,_0xa6e7xc,_0xa6e7xd){return sequelize[_0x5f09[39]](function(_0xa6e7x12){return VoiceExtension[_0x5f09[43]](_0xa6e7xb[_0x5f09[27]][_0x5f09[26]])[_0x5f09[17]](function(_0xa6e7x10){if(!_0xa6e7x10){return _0xa6e7xc[_0x5f09[25]](404)};return _0xa6e7x10[_0x5f09[42]]()})})[_0x5f09[17]](function(){return _0xa6e7xc[_0x5f09[25]](204)})[_0x5f09[14]](function(_0xa6e7xe){console[_0x5f09[13]](_0xa6e7xe);return handleError(_0xa6e7xc,_0xa6e7xe)})};exports[_0x5f09[44]]=function(_0xa6e7xb,_0xa6e7xc){VoiceExtension[_0x5f09[42]]({where:{id:_0xa6e7xb[_0x5f09[18]][_0x5f09[26]]},individualHooks:true})[_0x5f09[17]](function(){return _0xa6e7xc[_0x5f09[25]](204)})[_0x5f09[14]](function(_0xa6e7xe){return handleError(_0xa6e7xc,_0xa6e7xe)})};function handleError(_0xa6e7xc,_0xa6e7xe){return _0xa6e7xc[_0x5f09[16]](500)[_0x5f09[15]](_0xa6e7xe)}
\ No newline at end of file
+var _0x5784=["\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"];_0x5784[0];var _=require(_0x5784[1]);var VoiceExtension=require(_0x5784[3])[_0x5784[2]];var Interval=require(_0x5784[3])[_0x5784[4]];var sequelize=require(_0x5784[3])[_0x5784[5]];var Sequelize=require(_0x5784[3])[_0x5784[6]];var util=require(_0x5784[7]);var async=require(_0x5784[8]);var veUtil=require(_0x5784[9]);var Util=require(_0x5784[10]);var Applications=veUtil[_0x5784[11]];exports[_0x5784[12]]= function(_0xe880xb,_0xe880xc,_0xe880xd){return VoiceExtension[_0x5784[24]](_0x5784[22],_0x5784[23])[_0x5784[21]](_[_0x5784[20]](Util[_0x5784[19]](_0xe880xb[_0x5784[18]]),{distinct:true}))[_0x5784[17]](function(_0xe880xf){_0xe880xc[_0x5784[16]](200)[_0x5784[15]](_0xe880xf)})[_0x5784[14]](function(_0xe880xe){console[_0x5784[13]](_0xe880xe);return handleError(_0xe880xc,_0xe880xe)})};exports[_0x5784[25]]= function(_0xe880xb,_0xe880xc){return VoiceExtension[_0x5784[24]](_0x5784[23])[_0x5784[29]]({where:{id:_0xe880xb[_0x5784[28]][_0x5784[27]],VoiceExtensionId:null}})[_0x5784[17]](function(_0xe880x10){if(!_0xe880x10){return _0xe880xc[_0x5784[26]](404)};return _0xe880xc[_0x5784[15]](_0xe880x10)})[_0x5784[14]](function(_0xe880xe){return handleError(_0xe880xc,_0xe880xe)})};exports[_0x5784[30]]= function(_0xe880xb,_0xe880xc){var _0xe880x11;return sequelize[_0x5784[40]](function(_0xe880x12){return VoiceExtension[_0x5784[30]](_0xe880xb[_0x5784[36]],{transaction:_0xe880x12})[_0x5784[17]](function(_0xe880x13){_0xe880x11= _0xe880x13;if(_0xe880xb[_0x5784[36]][_0x5784[11]]&& Array[_0x5784[38]](_0xe880xb[_0x5784[36]].Applications)&& _0xe880xb[_0x5784[36]][_0x5784[11]][_0x5784[39]]){return _0xe880x13}})[_0x5784[17]](veUtil[_0x5784[37]](_0xe880xb[_0x5784[36]].Applications,_0xe880x12,_0xe880xc))})[_0x5784[17]](function(){return _0xe880xc[_0x5784[16]](201)[_0x5784[15]](_0xe880x11)})[_0x5784[14]](sequelize.UniqueConstraintError,function(_0xe880xe){_0xe880xe[_0x5784[32]]= _0x5784[33];_0xe880xe[_0x5784[34]]= _0x5784[35];return handleError(_0xe880xc,_0xe880xe)})[_0x5784[14]](sequelize.ValidationError,function(_0xe880xe){_0xe880xe[_0x5784[32]]= _0x5784[33];_0xe880xe[_0x5784[34]]= _0x5784[35];return handleError(_0xe880xc,_0xe880xe)})[_0x5784[14]](function(_0xe880xe){console[_0x5784[13]](_0x5784[31],_0xe880xe);return handleError(_0xe880xc,_0xe880xe)})};exports[_0x5784[41]]= function(_0xe880xb,_0xe880xc){return sequelize[_0x5784[40]](function(_0xe880x12){return veUtil[_0x5784[42]](_0xe880xb,_0xe880x12)})[_0x5784[17]](function(){return _0xe880xc[_0x5784[26]](200)})[_0x5784[14]](sequelize.UniqueConstraintError,function(_0xe880xe){_0xe880xe[_0x5784[32]]= _0x5784[33];_0xe880xe[_0x5784[34]]= _0x5784[35];console[_0x5784[13]](_0xe880xe);return handleError(_0xe880xc,_0xe880xe)})[_0x5784[14]](function(_0xe880xe){console[_0x5784[13]](_0xe880xe);return handleError(_0xe880xc,_0xe880xe)})};exports[_0x5784[43]]= function(_0xe880xb,_0xe880xc,_0xe880xd){return sequelize[_0x5784[40]](function(_0xe880x12){return VoiceExtension[_0x5784[44]](_0xe880xb[_0x5784[28]][_0x5784[27]])[_0x5784[17]](function(_0xe880x10){if(!_0xe880x10){return _0xe880xc[_0x5784[26]](404)};return _0xe880x10[_0x5784[43]]()})})[_0x5784[17]](function(){return _0xe880xc[_0x5784[26]](204)})[_0x5784[14]](function(_0xe880xe){console[_0x5784[13]](_0xe880xe);return handleError(_0xe880xc,_0xe880xe)})};exports[_0x5784[45]]= function(_0xe880xb,_0xe880xc){return VoiceExtension[_0x5784[43]]({where:{id:_0xe880xb[_0x5784[18]][_0x5784[46]]},individualHooks:true})[_0x5784[17]](function(){return _0xe880xc[_0x5784[26]](204)})[_0x5784[14]](function(_0xe880xe){return handleError(_0xe880xc,_0xe880xe)})};function handleError(_0xe880xc,_0xe880xe){return _0xe880xc[_0x5784[16]](500)[_0x5784[15]](_0xe880xe)}
\ No newline at end of file