Built motion from commit ce2081a.|0.0.133
[motion.git] / server / api / voice_extension / voice_extension.controller.js
index 7df3ef8..d7146b9 100644 (file)
@@ -1 +1 @@
-var _0x71be=["\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"];_0x71be[0];var _=require(_0x71be[1]);var VoiceExtension=require(_0x71be[3])[_0x71be[2]];var Interval=require(_0x71be[3])[_0x71be[4]];var sequelize=require(_0x71be[3])[_0x71be[5]];var Sequelize=require(_0x71be[3])[_0x71be[6]];var util=require(_0x71be[7]);var async=require(_0x71be[8]);var veUtil=require(_0x71be[9]);var Util=require(_0x71be[10]);var Applications=veUtil[_0x71be[11]];exports[_0x71be[12]]=function(_0xcadbxb,_0xcadbxc,_0xcadbxd){return VoiceExtension[_0x71be[23]](_0x71be[21],_0x71be[22])[_0x71be[20]](Util[_0x71be[19]](_0xcadbxb[_0x71be[18]]))[_0x71be[17]](function(_0xcadbxf){_0xcadbxc[_0x71be[16]](200)[_0x71be[15]](_0xcadbxf)})[_0x71be[14]](function(_0xcadbxe){console[_0x71be[13]](_0xcadbxe);return handleError(_0xcadbxc,_0xcadbxe)})};exports[_0x71be[24]]=function(_0xcadbxb,_0xcadbxc){VoiceExtension[_0x71be[23]](_0x71be[22])[_0x71be[28]]({where:{id:_0xcadbxb[_0x71be[27]][_0x71be[26]],VoiceExtensionId:null}})[_0x71be[17]](function(_0xcadbx10){if(!_0xcadbx10){return _0xcadbxc[_0x71be[25]](404)};return _0xcadbxc[_0x71be[15]](_0xcadbx10)})[_0x71be[14]](function(_0xcadbxe){return handleError(_0xcadbxc,_0xcadbxe)})};exports[_0x71be[29]]=function(_0xcadbxb,_0xcadbxc){var _0xcadbx11;return sequelize[_0x71be[39]](function(_0xcadbx12){return VoiceExtension[_0x71be[29]](_0xcadbxb[_0x71be[35]],{transaction:_0xcadbx12})[_0x71be[17]](function(_0xcadbx13){_0xcadbx11=_0xcadbx13;if(_0xcadbxb[_0x71be[35]][_0x71be[11]]&&Array[_0x71be[37]](_0xcadbxb[_0x71be[35]].Applications)&&_0xcadbxb[_0x71be[35]][_0x71be[11]][_0x71be[38]]){return _0xcadbx13}})[_0x71be[17]](veUtil[_0x71be[36]](_0xcadbxb[_0x71be[35]].Applications,_0xcadbx12,_0xcadbxc))})[_0x71be[17]](function(){return _0xcadbxc[_0x71be[16]](201)[_0x71be[15]](_0xcadbx11)})[_0x71be[14]](sequelize.UniqueConstraintError,function(_0xcadbxe){_0xcadbxe[_0x71be[31]]=_0x71be[32];_0xcadbxe[_0x71be[33]]=_0x71be[34];return handleError(_0xcadbxc,_0xcadbxe)})[_0x71be[14]](sequelize.ValidationError,function(_0xcadbxe){_0xcadbxe[_0x71be[31]]=_0x71be[32];_0xcadbxe[_0x71be[33]]=_0x71be[34];return handleError(_0xcadbxc,_0xcadbxe)})[_0x71be[14]](function(_0xcadbxe){console[_0x71be[13]](_0x71be[30],_0xcadbxe);return handleError(_0xcadbxc,_0xcadbxe)})};exports[_0x71be[40]]=function(_0xcadbxb,_0xcadbxc){return sequelize[_0x71be[39]](function(_0xcadbx12){return veUtil[_0x71be[41]](_0xcadbxb,_0xcadbx12)})[_0x71be[17]](function(){return _0xcadbxc[_0x71be[25]](200)})[_0x71be[14]](sequelize.UniqueConstraintError,function(_0xcadbxe){_0xcadbxe[_0x71be[31]]=_0x71be[32];_0xcadbxe[_0x71be[33]]=_0x71be[34];console[_0x71be[13]](_0xcadbxe);return handleError(_0xcadbxc,_0xcadbxe)})[_0x71be[14]](function(_0xcadbxe){console[_0x71be[13]](_0xcadbxe);return handleError(_0xcadbxc,_0xcadbxe)})};exports[_0x71be[42]]=function(_0xcadbxb,_0xcadbxc,_0xcadbxd){return sequelize[_0x71be[39]](function(_0xcadbx12){return VoiceExtension[_0x71be[43]](_0xcadbxb[_0x71be[27]][_0x71be[26]])[_0x71be[17]](function(_0xcadbx10){if(!_0xcadbx10){return _0xcadbxc[_0x71be[25]](404)};return _0xcadbx10[_0x71be[42]]()})})[_0x71be[17]](function(){return _0xcadbxc[_0x71be[25]](204)})[_0x71be[14]](function(_0xcadbxe){console[_0x71be[13]](_0xcadbxe);return handleError(_0xcadbxc,_0xcadbxe)})};exports[_0x71be[44]]=function(_0xcadbxb,_0xcadbxc){VoiceExtension[_0x71be[42]]({where:{id:_0xcadbxb[_0x71be[18]][_0x71be[26]]},individualHooks:true})[_0x71be[17]](function(){return _0xcadbxc[_0x71be[25]](204)})[_0x71be[14]](function(_0xcadbxe){return handleError(_0xcadbxc,_0xcadbxe)})};function handleError(_0xcadbxc,_0xcadbxe){return _0xcadbxc[_0x71be[16]](500)[_0x71be[15]](_0xcadbxe)}
\ No newline at end of file
+var _0x4ea8=["\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"];_0x4ea8[0];var _=require(_0x4ea8[1]);var VoiceExtension=require(_0x4ea8[3])[_0x4ea8[2]];var Interval=require(_0x4ea8[3])[_0x4ea8[4]];var sequelize=require(_0x4ea8[3])[_0x4ea8[5]];var Sequelize=require(_0x4ea8[3])[_0x4ea8[6]];var util=require(_0x4ea8[7]);var async=require(_0x4ea8[8]);var veUtil=require(_0x4ea8[9]);var Util=require(_0x4ea8[10]);var Applications=veUtil[_0x4ea8[11]];exports[_0x4ea8[12]]= function(_0x2197xb,_0x2197xc,_0x2197xd){return VoiceExtension[_0x4ea8[23]](_0x4ea8[21],_0x4ea8[22])[_0x4ea8[20]](Util[_0x4ea8[19]](_0x2197xb[_0x4ea8[18]]))[_0x4ea8[17]](function(_0x2197xf){_0x2197xc[_0x4ea8[16]](200)[_0x4ea8[15]](_0x2197xf)})[_0x4ea8[14]](function(_0x2197xe){console[_0x4ea8[13]](_0x2197xe);return handleError(_0x2197xc,_0x2197xe)})};exports[_0x4ea8[24]]= function(_0x2197xb,_0x2197xc){return VoiceExtension[_0x4ea8[23]](_0x4ea8[22])[_0x4ea8[28]]({where:{id:_0x2197xb[_0x4ea8[27]][_0x4ea8[26]],VoiceExtensionId:null}})[_0x4ea8[17]](function(_0x2197x10){if(!_0x2197x10){return _0x2197xc[_0x4ea8[25]](404)};return _0x2197xc[_0x4ea8[15]](_0x2197x10)})[_0x4ea8[14]](function(_0x2197xe){return handleError(_0x2197xc,_0x2197xe)})};exports[_0x4ea8[29]]= function(_0x2197xb,_0x2197xc){var _0x2197x11;return sequelize[_0x4ea8[39]](function(_0x2197x12){return VoiceExtension[_0x4ea8[29]](_0x2197xb[_0x4ea8[35]],{transaction:_0x2197x12})[_0x4ea8[17]](function(_0x2197x13){_0x2197x11= _0x2197x13;if(_0x2197xb[_0x4ea8[35]][_0x4ea8[11]]&& Array[_0x4ea8[37]](_0x2197xb[_0x4ea8[35]].Applications)&& _0x2197xb[_0x4ea8[35]][_0x4ea8[11]][_0x4ea8[38]]){return _0x2197x13}})[_0x4ea8[17]](veUtil[_0x4ea8[36]](_0x2197xb[_0x4ea8[35]].Applications,_0x2197x12,_0x2197xc))})[_0x4ea8[17]](function(){return _0x2197xc[_0x4ea8[16]](201)[_0x4ea8[15]](_0x2197x11)})[_0x4ea8[14]](sequelize.UniqueConstraintError,function(_0x2197xe){_0x2197xe[_0x4ea8[31]]= _0x4ea8[32];_0x2197xe[_0x4ea8[33]]= _0x4ea8[34];return handleError(_0x2197xc,_0x2197xe)})[_0x4ea8[14]](sequelize.ValidationError,function(_0x2197xe){_0x2197xe[_0x4ea8[31]]= _0x4ea8[32];_0x2197xe[_0x4ea8[33]]= _0x4ea8[34];return handleError(_0x2197xc,_0x2197xe)})[_0x4ea8[14]](function(_0x2197xe){console[_0x4ea8[13]](_0x4ea8[30],_0x2197xe);return handleError(_0x2197xc,_0x2197xe)})};exports[_0x4ea8[40]]= function(_0x2197xb,_0x2197xc){return sequelize[_0x4ea8[39]](function(_0x2197x12){return veUtil[_0x4ea8[41]](_0x2197xb,_0x2197x12)})[_0x4ea8[17]](function(){return _0x2197xc[_0x4ea8[25]](200)})[_0x4ea8[14]](sequelize.UniqueConstraintError,function(_0x2197xe){_0x2197xe[_0x4ea8[31]]= _0x4ea8[32];_0x2197xe[_0x4ea8[33]]= _0x4ea8[34];console[_0x4ea8[13]](_0x2197xe);return handleError(_0x2197xc,_0x2197xe)})[_0x4ea8[14]](function(_0x2197xe){console[_0x4ea8[13]](_0x2197xe);return handleError(_0x2197xc,_0x2197xe)})};exports[_0x4ea8[42]]= function(_0x2197xb,_0x2197xc,_0x2197xd){return sequelize[_0x4ea8[39]](function(_0x2197x12){return VoiceExtension[_0x4ea8[43]](_0x2197xb[_0x4ea8[27]][_0x4ea8[26]])[_0x4ea8[17]](function(_0x2197x10){if(!_0x2197x10){return _0x2197xc[_0x4ea8[25]](404)};return _0x2197x10[_0x4ea8[42]]()})})[_0x4ea8[17]](function(){return _0x2197xc[_0x4ea8[25]](204)})[_0x4ea8[14]](function(_0x2197xe){console[_0x4ea8[13]](_0x2197xe);return handleError(_0x2197xc,_0x2197xe)})};exports[_0x4ea8[44]]= function(_0x2197xb,_0x2197xc){return VoiceExtension[_0x4ea8[42]]({where:{id:_0x2197xb[_0x4ea8[18]][_0x4ea8[45]]},individualHooks:true})[_0x4ea8[17]](function(){return _0x2197xc[_0x4ea8[25]](204)})[_0x4ea8[14]](function(_0x2197xe){return handleError(_0x2197xc,_0x2197xe)})};function handleError(_0x2197xc,_0x2197xe){return _0x2197xc[_0x4ea8[16]](500)[_0x4ea8[15]](_0x2197xe)}
\ No newline at end of file