Built motion from commit 8dae768.|0.0.121
[motion.git] / server / api / voice_extension / voice_extension.controller.js
index 35bdf33..b11be82 100644 (file)
@@ -1 +1 @@
-var _0xe60d=["\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"];_0xe60d[0];var _=require(_0xe60d[1]);var VoiceExtension=require(_0xe60d[3])[_0xe60d[2]];var Interval=require(_0xe60d[3])[_0xe60d[4]];var sequelize=require(_0xe60d[3])[_0xe60d[5]];var Sequelize=require(_0xe60d[3])[_0xe60d[6]];var util=require(_0xe60d[7]);var async=require(_0xe60d[8]);var veUtil=require(_0xe60d[9]);var Util=require(_0xe60d[10]);var Applications=veUtil[_0xe60d[11]];exports[_0xe60d[12]]=function(_0xea8exb,_0xea8exc,_0xea8exd){return VoiceExtension[_0xe60d[23]](_0xe60d[21],_0xe60d[22])[_0xe60d[20]](Util[_0xe60d[19]](_0xea8exb[_0xe60d[18]]))[_0xe60d[17]](function(_0xea8exf){_0xea8exc[_0xe60d[16]](200)[_0xe60d[15]](_0xea8exf)})[_0xe60d[14]](function(_0xea8exe){console[_0xe60d[13]](_0xea8exe);return handleError(_0xea8exc,_0xea8exe)})};exports[_0xe60d[24]]=function(_0xea8exb,_0xea8exc){return VoiceExtension[_0xe60d[23]](_0xe60d[22])[_0xe60d[28]]({where:{id:_0xea8exb[_0xe60d[27]][_0xe60d[26]],VoiceExtensionId:null}})[_0xe60d[17]](function(_0xea8ex10){if(!_0xea8ex10){return _0xea8exc[_0xe60d[25]](404)};return _0xea8exc[_0xe60d[15]](_0xea8ex10)})[_0xe60d[14]](function(_0xea8exe){return handleError(_0xea8exc,_0xea8exe)})};exports[_0xe60d[29]]=function(_0xea8exb,_0xea8exc){var _0xea8ex11;return sequelize[_0xe60d[39]](function(_0xea8ex12){return VoiceExtension[_0xe60d[29]](_0xea8exb[_0xe60d[35]],{transaction:_0xea8ex12})[_0xe60d[17]](function(_0xea8ex13){_0xea8ex11=_0xea8ex13;if(_0xea8exb[_0xe60d[35]][_0xe60d[11]]&&Array[_0xe60d[37]](_0xea8exb[_0xe60d[35]].Applications)&&_0xea8exb[_0xe60d[35]][_0xe60d[11]][_0xe60d[38]]){return _0xea8ex13}})[_0xe60d[17]](veUtil[_0xe60d[36]](_0xea8exb[_0xe60d[35]].Applications,_0xea8ex12,_0xea8exc))})[_0xe60d[17]](function(){return _0xea8exc[_0xe60d[16]](201)[_0xe60d[15]](_0xea8ex11)})[_0xe60d[14]](sequelize.UniqueConstraintError,function(_0xea8exe){_0xea8exe[_0xe60d[31]]=_0xe60d[32];_0xea8exe[_0xe60d[33]]=_0xe60d[34];return handleError(_0xea8exc,_0xea8exe)})[_0xe60d[14]](sequelize.ValidationError,function(_0xea8exe){_0xea8exe[_0xe60d[31]]=_0xe60d[32];_0xea8exe[_0xe60d[33]]=_0xe60d[34];return handleError(_0xea8exc,_0xea8exe)})[_0xe60d[14]](function(_0xea8exe){console[_0xe60d[13]](_0xe60d[30],_0xea8exe);return handleError(_0xea8exc,_0xea8exe)})};exports[_0xe60d[40]]=function(_0xea8exb,_0xea8exc){return sequelize[_0xe60d[39]](function(_0xea8ex12){return veUtil[_0xe60d[41]](_0xea8exb,_0xea8ex12)})[_0xe60d[17]](function(){return _0xea8exc[_0xe60d[25]](200)})[_0xe60d[14]](sequelize.UniqueConstraintError,function(_0xea8exe){_0xea8exe[_0xe60d[31]]=_0xe60d[32];_0xea8exe[_0xe60d[33]]=_0xe60d[34];console[_0xe60d[13]](_0xea8exe);return handleError(_0xea8exc,_0xea8exe)})[_0xe60d[14]](function(_0xea8exe){console[_0xe60d[13]](_0xea8exe);return handleError(_0xea8exc,_0xea8exe)})};exports[_0xe60d[42]]=function(_0xea8exb,_0xea8exc,_0xea8exd){return sequelize[_0xe60d[39]](function(_0xea8ex12){return VoiceExtension[_0xe60d[43]](_0xea8exb[_0xe60d[27]][_0xe60d[26]])[_0xe60d[17]](function(_0xea8ex10){if(!_0xea8ex10){return _0xea8exc[_0xe60d[25]](404)};return _0xea8ex10[_0xe60d[42]]()})})[_0xe60d[17]](function(){return _0xea8exc[_0xe60d[25]](204)})[_0xe60d[14]](function(_0xea8exe){console[_0xe60d[13]](_0xea8exe);return handleError(_0xea8exc,_0xea8exe)})};exports[_0xe60d[44]]=function(_0xea8exb,_0xea8exc){return VoiceExtension[_0xe60d[42]]({where:{id:_0xea8exb[_0xe60d[18]][_0xe60d[45]]},individualHooks:true})[_0xe60d[17]](function(){return _0xea8exc[_0xe60d[25]](204)})[_0xe60d[14]](function(_0xea8exe){return handleError(_0xea8exc,_0xea8exe)})};function handleError(_0xea8exc,_0xea8exe){return _0xea8exc[_0xe60d[16]](500)[_0xe60d[15]](_0xea8exe)}
\ No newline at end of file
+var _0x4135=["\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"];_0x4135[0];var _=require(_0x4135[1]);var VoiceExtension=require(_0x4135[3])[_0x4135[2]];var Interval=require(_0x4135[3])[_0x4135[4]];var sequelize=require(_0x4135[3])[_0x4135[5]];var Sequelize=require(_0x4135[3])[_0x4135[6]];var util=require(_0x4135[7]);var async=require(_0x4135[8]);var veUtil=require(_0x4135[9]);var Util=require(_0x4135[10]);var Applications=veUtil[_0x4135[11]];exports[_0x4135[12]]= function(_0xcd4cxb,_0xcd4cxc,_0xcd4cxd){return VoiceExtension[_0x4135[23]](_0x4135[21],_0x4135[22])[_0x4135[20]](Util[_0x4135[19]](_0xcd4cxb[_0x4135[18]]))[_0x4135[17]](function(_0xcd4cxf){_0xcd4cxc[_0x4135[16]](200)[_0x4135[15]](_0xcd4cxf)})[_0x4135[14]](function(_0xcd4cxe){console[_0x4135[13]](_0xcd4cxe);return handleError(_0xcd4cxc,_0xcd4cxe)})};exports[_0x4135[24]]= function(_0xcd4cxb,_0xcd4cxc){return VoiceExtension[_0x4135[23]](_0x4135[22])[_0x4135[28]]({where:{id:_0xcd4cxb[_0x4135[27]][_0x4135[26]],VoiceExtensionId:null}})[_0x4135[17]](function(_0xcd4cx10){if(!_0xcd4cx10){return _0xcd4cxc[_0x4135[25]](404)};return _0xcd4cxc[_0x4135[15]](_0xcd4cx10)})[_0x4135[14]](function(_0xcd4cxe){return handleError(_0xcd4cxc,_0xcd4cxe)})};exports[_0x4135[29]]= function(_0xcd4cxb,_0xcd4cxc){var _0xcd4cx11;return sequelize[_0x4135[39]](function(_0xcd4cx12){return VoiceExtension[_0x4135[29]](_0xcd4cxb[_0x4135[35]],{transaction:_0xcd4cx12})[_0x4135[17]](function(_0xcd4cx13){_0xcd4cx11= _0xcd4cx13;if(_0xcd4cxb[_0x4135[35]][_0x4135[11]]&& Array[_0x4135[37]](_0xcd4cxb[_0x4135[35]].Applications)&& _0xcd4cxb[_0x4135[35]][_0x4135[11]][_0x4135[38]]){return _0xcd4cx13}})[_0x4135[17]](veUtil[_0x4135[36]](_0xcd4cxb[_0x4135[35]].Applications,_0xcd4cx12,_0xcd4cxc))})[_0x4135[17]](function(){return _0xcd4cxc[_0x4135[16]](201)[_0x4135[15]](_0xcd4cx11)})[_0x4135[14]](sequelize.UniqueConstraintError,function(_0xcd4cxe){_0xcd4cxe[_0x4135[31]]= _0x4135[32];_0xcd4cxe[_0x4135[33]]= _0x4135[34];return handleError(_0xcd4cxc,_0xcd4cxe)})[_0x4135[14]](sequelize.ValidationError,function(_0xcd4cxe){_0xcd4cxe[_0x4135[31]]= _0x4135[32];_0xcd4cxe[_0x4135[33]]= _0x4135[34];return handleError(_0xcd4cxc,_0xcd4cxe)})[_0x4135[14]](function(_0xcd4cxe){console[_0x4135[13]](_0x4135[30],_0xcd4cxe);return handleError(_0xcd4cxc,_0xcd4cxe)})};exports[_0x4135[40]]= function(_0xcd4cxb,_0xcd4cxc){return sequelize[_0x4135[39]](function(_0xcd4cx12){return veUtil[_0x4135[41]](_0xcd4cxb,_0xcd4cx12)})[_0x4135[17]](function(){return _0xcd4cxc[_0x4135[25]](200)})[_0x4135[14]](sequelize.UniqueConstraintError,function(_0xcd4cxe){_0xcd4cxe[_0x4135[31]]= _0x4135[32];_0xcd4cxe[_0x4135[33]]= _0x4135[34];console[_0x4135[13]](_0xcd4cxe);return handleError(_0xcd4cxc,_0xcd4cxe)})[_0x4135[14]](function(_0xcd4cxe){console[_0x4135[13]](_0xcd4cxe);return handleError(_0xcd4cxc,_0xcd4cxe)})};exports[_0x4135[42]]= function(_0xcd4cxb,_0xcd4cxc,_0xcd4cxd){return sequelize[_0x4135[39]](function(_0xcd4cx12){return VoiceExtension[_0x4135[43]](_0xcd4cxb[_0x4135[27]][_0x4135[26]])[_0x4135[17]](function(_0xcd4cx10){if(!_0xcd4cx10){return _0xcd4cxc[_0x4135[25]](404)};return _0xcd4cx10[_0x4135[42]]()})})[_0x4135[17]](function(){return _0xcd4cxc[_0x4135[25]](204)})[_0x4135[14]](function(_0xcd4cxe){console[_0x4135[13]](_0xcd4cxe);return handleError(_0xcd4cxc,_0xcd4cxe)})};exports[_0x4135[44]]= function(_0xcd4cxb,_0xcd4cxc){return VoiceExtension[_0x4135[42]]({where:{id:_0xcd4cxb[_0x4135[18]][_0x4135[45]]},individualHooks:true})[_0x4135[17]](function(){return _0xcd4cxc[_0x4135[25]](204)})[_0x4135[14]](function(_0xcd4cxe){return handleError(_0xcd4cxc,_0xcd4cxe)})};function handleError(_0xcd4cxc,_0xcd4cxe){return _0xcd4cxc[_0x4135[16]](500)[_0x4135[15]](_0xcd4cxe)}
\ No newline at end of file