Built motion from commit eada615.|0.0.146
[motion.git] / server / api / voice_extension / voice_extension.controller.js
index faec5e5..974686c 100644 (file)
@@ -1 +1 @@
-var _0x5ee4=["\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"];_0x5ee4[0];var _=require(_0x5ee4[1]);var VoiceExtension=require(_0x5ee4[3])[_0x5ee4[2]];var Interval=require(_0x5ee4[3])[_0x5ee4[4]];var sequelize=require(_0x5ee4[3])[_0x5ee4[5]];var Sequelize=require(_0x5ee4[3])[_0x5ee4[6]];var util=require(_0x5ee4[7]);var async=require(_0x5ee4[8]);var veUtil=require(_0x5ee4[9]);var Util=require(_0x5ee4[10]);var Applications=veUtil[_0x5ee4[11]];exports[_0x5ee4[12]]= function(_0xa6a9xb,_0xa6a9xc,_0xa6a9xd){return VoiceExtension[_0x5ee4[24]](_0x5ee4[22],_0x5ee4[23])[_0x5ee4[21]](_[_0x5ee4[20]](Util[_0x5ee4[19]](_0xa6a9xb[_0x5ee4[18]]),{distinct:true}))[_0x5ee4[17]](function(_0xa6a9xf){_0xa6a9xc[_0x5ee4[16]](200)[_0x5ee4[15]](_0xa6a9xf)})[_0x5ee4[14]](function(_0xa6a9xe){console[_0x5ee4[13]](_0xa6a9xe);return handleError(_0xa6a9xc,_0xa6a9xe)})};exports[_0x5ee4[25]]= function(_0xa6a9xb,_0xa6a9xc){return VoiceExtension[_0x5ee4[24]](_0x5ee4[23])[_0x5ee4[29]]({where:{id:_0xa6a9xb[_0x5ee4[28]][_0x5ee4[27]],VoiceExtensionId:null}})[_0x5ee4[17]](function(_0xa6a9x10){if(!_0xa6a9x10){return _0xa6a9xc[_0x5ee4[26]](404)};return _0xa6a9xc[_0x5ee4[15]](_0xa6a9x10)})[_0x5ee4[14]](function(_0xa6a9xe){return handleError(_0xa6a9xc,_0xa6a9xe)})};exports[_0x5ee4[30]]= function(_0xa6a9xb,_0xa6a9xc){var _0xa6a9x11;return sequelize[_0x5ee4[40]](function(_0xa6a9x12){return VoiceExtension[_0x5ee4[30]](_0xa6a9xb[_0x5ee4[36]],{transaction:_0xa6a9x12})[_0x5ee4[17]](function(_0xa6a9x13){_0xa6a9x11= _0xa6a9x13;if(_0xa6a9xb[_0x5ee4[36]][_0x5ee4[11]]&& Array[_0x5ee4[38]](_0xa6a9xb[_0x5ee4[36]].Applications)&& _0xa6a9xb[_0x5ee4[36]][_0x5ee4[11]][_0x5ee4[39]]){return _0xa6a9x13}})[_0x5ee4[17]](veUtil[_0x5ee4[37]](_0xa6a9xb[_0x5ee4[36]].Applications,_0xa6a9x12,_0xa6a9xc))})[_0x5ee4[17]](function(){return _0xa6a9xc[_0x5ee4[16]](201)[_0x5ee4[15]](_0xa6a9x11)})[_0x5ee4[14]](sequelize.UniqueConstraintError,function(_0xa6a9xe){_0xa6a9xe[_0x5ee4[32]]= _0x5ee4[33];_0xa6a9xe[_0x5ee4[34]]= _0x5ee4[35];return handleError(_0xa6a9xc,_0xa6a9xe)})[_0x5ee4[14]](sequelize.ValidationError,function(_0xa6a9xe){_0xa6a9xe[_0x5ee4[32]]= _0x5ee4[33];_0xa6a9xe[_0x5ee4[34]]= _0x5ee4[35];return handleError(_0xa6a9xc,_0xa6a9xe)})[_0x5ee4[14]](function(_0xa6a9xe){console[_0x5ee4[13]](_0x5ee4[31],_0xa6a9xe);return handleError(_0xa6a9xc,_0xa6a9xe)})};exports[_0x5ee4[41]]= function(_0xa6a9xb,_0xa6a9xc){return sequelize[_0x5ee4[40]](function(_0xa6a9x12){return veUtil[_0x5ee4[42]](_0xa6a9xb,_0xa6a9x12)})[_0x5ee4[17]](function(){return _0xa6a9xc[_0x5ee4[26]](200)})[_0x5ee4[14]](sequelize.UniqueConstraintError,function(_0xa6a9xe){_0xa6a9xe[_0x5ee4[32]]= _0x5ee4[33];_0xa6a9xe[_0x5ee4[34]]= _0x5ee4[35];console[_0x5ee4[13]](_0xa6a9xe);return handleError(_0xa6a9xc,_0xa6a9xe)})[_0x5ee4[14]](function(_0xa6a9xe){console[_0x5ee4[13]](_0xa6a9xe);return handleError(_0xa6a9xc,_0xa6a9xe)})};exports[_0x5ee4[43]]= function(_0xa6a9xb,_0xa6a9xc,_0xa6a9xd){return sequelize[_0x5ee4[40]](function(_0xa6a9x12){return VoiceExtension[_0x5ee4[44]](_0xa6a9xb[_0x5ee4[28]][_0x5ee4[27]])[_0x5ee4[17]](function(_0xa6a9x10){if(!_0xa6a9x10){return _0xa6a9xc[_0x5ee4[26]](404)};return _0xa6a9x10[_0x5ee4[43]]()})})[_0x5ee4[17]](function(){return _0xa6a9xc[_0x5ee4[26]](204)})[_0x5ee4[14]](function(_0xa6a9xe){console[_0x5ee4[13]](_0xa6a9xe);return handleError(_0xa6a9xc,_0xa6a9xe)})};exports[_0x5ee4[45]]= function(_0xa6a9xb,_0xa6a9xc){return VoiceExtension[_0x5ee4[43]]({where:{id:_0xa6a9xb[_0x5ee4[18]][_0x5ee4[46]]},individualHooks:true})[_0x5ee4[17]](function(){return _0xa6a9xc[_0x5ee4[26]](204)})[_0x5ee4[14]](function(_0xa6a9xe){return handleError(_0xa6a9xc,_0xa6a9xe)})};function handleError(_0xa6a9xc,_0xa6a9xe){return _0xa6a9xc[_0x5ee4[16]](500)[_0x5ee4[15]](_0xa6a9xe)}
\ No newline at end of file
+var _0x20cd=["\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"];_0x20cd[0];var _=require(_0x20cd[1]);var VoiceExtension=require(_0x20cd[3])[_0x20cd[2]];var Interval=require(_0x20cd[3])[_0x20cd[4]];var sequelize=require(_0x20cd[3])[_0x20cd[5]];var Sequelize=require(_0x20cd[3])[_0x20cd[6]];var util=require(_0x20cd[7]);var async=require(_0x20cd[8]);var veUtil=require(_0x20cd[9]);var Util=require(_0x20cd[10]);var Applications=veUtil[_0x20cd[11]];exports[_0x20cd[12]]= function(_0x6360xb,_0x6360xc,_0x6360xd){return VoiceExtension[_0x20cd[24]](_0x20cd[22],_0x20cd[23])[_0x20cd[21]](_[_0x20cd[20]](Util[_0x20cd[19]](_0x6360xb[_0x20cd[18]]),{distinct:true}))[_0x20cd[17]](function(_0x6360xf){_0x6360xc[_0x20cd[16]](200)[_0x20cd[15]](_0x6360xf)})[_0x20cd[14]](function(_0x6360xe){console[_0x20cd[13]](_0x6360xe);return handleError(_0x6360xc,_0x6360xe)})};exports[_0x20cd[25]]= function(_0x6360xb,_0x6360xc){return VoiceExtension[_0x20cd[24]](_0x20cd[23])[_0x20cd[29]]({where:{id:_0x6360xb[_0x20cd[28]][_0x20cd[27]],VoiceExtensionId:null}})[_0x20cd[17]](function(_0x6360x10){if(!_0x6360x10){return _0x6360xc[_0x20cd[26]](404)};return _0x6360xc[_0x20cd[15]](_0x6360x10)})[_0x20cd[14]](function(_0x6360xe){return handleError(_0x6360xc,_0x6360xe)})};exports[_0x20cd[30]]= function(_0x6360xb,_0x6360xc){var _0x6360x11;return sequelize[_0x20cd[40]](function(_0x6360x12){return VoiceExtension[_0x20cd[30]](_0x6360xb[_0x20cd[36]],{transaction:_0x6360x12})[_0x20cd[17]](function(_0x6360x13){_0x6360x11= _0x6360x13;if(_0x6360xb[_0x20cd[36]][_0x20cd[11]]&& Array[_0x20cd[38]](_0x6360xb[_0x20cd[36]].Applications)&& _0x6360xb[_0x20cd[36]][_0x20cd[11]][_0x20cd[39]]){return _0x6360x13}})[_0x20cd[17]](veUtil[_0x20cd[37]](_0x6360xb[_0x20cd[36]].Applications,_0x6360x12,_0x6360xc))})[_0x20cd[17]](function(){return _0x6360xc[_0x20cd[16]](201)[_0x20cd[15]](_0x6360x11)})[_0x20cd[14]](sequelize.UniqueConstraintError,function(_0x6360xe){_0x6360xe[_0x20cd[32]]= _0x20cd[33];_0x6360xe[_0x20cd[34]]= _0x20cd[35];return handleError(_0x6360xc,_0x6360xe)})[_0x20cd[14]](sequelize.ValidationError,function(_0x6360xe){_0x6360xe[_0x20cd[32]]= _0x20cd[33];_0x6360xe[_0x20cd[34]]= _0x20cd[35];return handleError(_0x6360xc,_0x6360xe)})[_0x20cd[14]](function(_0x6360xe){console[_0x20cd[13]](_0x20cd[31],_0x6360xe);return handleError(_0x6360xc,_0x6360xe)})};exports[_0x20cd[41]]= function(_0x6360xb,_0x6360xc){return sequelize[_0x20cd[40]](function(_0x6360x12){return veUtil[_0x20cd[42]](_0x6360xb,_0x6360x12)})[_0x20cd[17]](function(){return _0x6360xc[_0x20cd[26]](200)})[_0x20cd[14]](sequelize.UniqueConstraintError,function(_0x6360xe){_0x6360xe[_0x20cd[32]]= _0x20cd[33];_0x6360xe[_0x20cd[34]]= _0x20cd[35];console[_0x20cd[13]](_0x6360xe);return handleError(_0x6360xc,_0x6360xe)})[_0x20cd[14]](function(_0x6360xe){console[_0x20cd[13]](_0x6360xe);return handleError(_0x6360xc,_0x6360xe)})};exports[_0x20cd[43]]= function(_0x6360xb,_0x6360xc,_0x6360xd){return sequelize[_0x20cd[40]](function(_0x6360x12){return VoiceExtension[_0x20cd[44]](_0x6360xb[_0x20cd[28]][_0x20cd[27]])[_0x20cd[17]](function(_0x6360x10){if(!_0x6360x10){return _0x6360xc[_0x20cd[26]](404)};return _0x6360x10[_0x20cd[43]]()})})[_0x20cd[17]](function(){return _0x6360xc[_0x20cd[26]](204)})[_0x20cd[14]](function(_0x6360xe){console[_0x20cd[13]](_0x6360xe);return handleError(_0x6360xc,_0x6360xe)})};exports[_0x20cd[45]]= function(_0x6360xb,_0x6360xc){return VoiceExtension[_0x20cd[43]]({where:{id:_0x6360xb[_0x20cd[18]][_0x20cd[46]]},individualHooks:true})[_0x20cd[17]](function(){return _0x6360xc[_0x20cd[26]](204)})[_0x20cd[14]](function(_0x6360xe){return handleError(_0x6360xc,_0x6360xe)})};function handleError(_0x6360xc,_0x6360xe){return _0x6360xc[_0x20cd[16]](500)[_0x20cd[15]](_0x6360xe)}
\ No newline at end of file