Built motion from commit 7db97eb.|0.0.116
[motion.git] / server / api / voice_extension / voice_extension.controller.js
index 06f3120..6641e7e 100644 (file)
@@ -1 +1 @@
-var _0x5052=["\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"];_0x5052[0];var _=require(_0x5052[1]);var VoiceExtension=require(_0x5052[3])[_0x5052[2]];var Interval=require(_0x5052[3])[_0x5052[4]];var sequelize=require(_0x5052[3])[_0x5052[5]];var Sequelize=require(_0x5052[3])[_0x5052[6]];var util=require(_0x5052[7]);var async=require(_0x5052[8]);var veUtil=require(_0x5052[9]);var Util=require(_0x5052[10]);var Applications=veUtil[_0x5052[11]];exports[_0x5052[12]]=function(_0x20bcxb,_0x20bcxc,_0x20bcxd){return VoiceExtension[_0x5052[23]](_0x5052[21],_0x5052[22])[_0x5052[20]](Util[_0x5052[19]](_0x20bcxb[_0x5052[18]]))[_0x5052[17]](function(_0x20bcxf){_0x20bcxc[_0x5052[16]](200)[_0x5052[15]](_0x20bcxf)})[_0x5052[14]](function(_0x20bcxe){console[_0x5052[13]](_0x20bcxe);return handleError(_0x20bcxc,_0x20bcxe)})};exports[_0x5052[24]]=function(_0x20bcxb,_0x20bcxc){VoiceExtension[_0x5052[23]](_0x5052[22])[_0x5052[28]]({where:{id:_0x20bcxb[_0x5052[27]][_0x5052[26]],VoiceExtensionId:null}})[_0x5052[17]](function(_0x20bcx10){if(!_0x20bcx10){return _0x20bcxc[_0x5052[25]](404)};return _0x20bcxc[_0x5052[15]](_0x20bcx10)})[_0x5052[14]](function(_0x20bcxe){return handleError(_0x20bcxc,_0x20bcxe)})};exports[_0x5052[29]]=function(_0x20bcxb,_0x20bcxc){return VoiceExtension[_0x5052[32]]({where:{exten:_0x20bcxb[_0x5052[18]][_0x5052[30]],context:_0x20bcxb[_0x5052[18]][_0x5052[31]],VoiceExtensionId:null}})[_0x5052[17]](function(_0x20bcx10){if(!_0x20bcx10){return _0x20bcxc[_0x5052[25]](404)};return _0x20bcxc[_0x5052[15]](_0x20bcx10)})[_0x5052[14]](function(_0x20bcxe){return handleError(_0x20bcxc,_0x20bcxe)})};exports[_0x5052[33]]=function(_0x20bcxb,_0x20bcxc){var _0x20bcx11;return sequelize[_0x5052[44]](function(_0x20bcx12){return VoiceExtension[_0x5052[33]](_0x20bcxb[_0x5052[40]],{transaction:_0x20bcx12})[_0x5052[17]](function(_0x20bcx13){_0x20bcx11=_0x20bcx13;if(_0x20bcxb[_0x5052[40]][_0x5052[11]]&&Array[_0x5052[42]](_0x20bcxb[_0x5052[40]].Applications)&&_0x20bcxb[_0x5052[40]][_0x5052[11]][_0x5052[43]]){return _0x20bcx13}})[_0x5052[17]](veUtil[_0x5052[41]](_0x20bcxb[_0x5052[40]].Applications,_0x20bcx12,_0x20bcxc))})[_0x5052[17]](function(){return _0x20bcxc[_0x5052[16]](201)[_0x5052[15]](_0x20bcx11)})[_0x5052[14]](sequelize.UniqueConstraintError,function(_0x20bcxe){if(_0x20bcxe[_0x5052[35]][_0x5052[34]]){_0x20bcxe[_0x5052[36]]=_0x5052[37];_0x20bcxe[_0x5052[38]]=_0x5052[39]};return handleError(_0x20bcxc,_0x20bcxe)})[_0x5052[14]](function(_0x20bcxe){console[_0x5052[13]](_0x20bcxe);return handleError(_0x20bcxc,_0x20bcxe)})};exports[_0x5052[45]]=function(_0x20bcxb,_0x20bcxc){return sequelize[_0x5052[44]](function(_0x20bcx12){return veUtil[_0x5052[46]](_0x20bcxb,_0x20bcx12)})[_0x5052[17]](function(){return _0x20bcxc[_0x5052[25]](200)})[_0x5052[14]](sequelize.UniqueConstraintError,function(_0x20bcxe){if(_0x20bcxe[_0x5052[35]][_0x5052[34]]){_0x20bcxe[_0x5052[36]]=_0x5052[37];_0x20bcxe[_0x5052[38]]=_0x5052[39]};console[_0x5052[13]](_0x20bcxe);return handleError(_0x20bcxc,_0x20bcxe)})[_0x5052[14]](function(_0x20bcxe){console[_0x5052[13]](_0x20bcxe);return handleError(_0x20bcxc,_0x20bcxe)})};exports[_0x5052[47]]=function(_0x20bcxb,_0x20bcxc,_0x20bcxd){return sequelize[_0x5052[44]](function(_0x20bcx12){return VoiceExtension[_0x5052[48]](_0x20bcxb[_0x5052[27]][_0x5052[26]])[_0x5052[17]](function(_0x20bcx10){if(!_0x20bcx10){return _0x20bcxc[_0x5052[25]](404)};return _0x20bcx10[_0x5052[47]]()})})[_0x5052[17]](function(){return _0x20bcxc[_0x5052[25]](204)})[_0x5052[14]](function(_0x20bcxe){console[_0x5052[13]](_0x20bcxe);return handleError(_0x20bcxc,_0x20bcxe)})};exports[_0x5052[49]]=function(_0x20bcxb,_0x20bcxc){VoiceExtension[_0x5052[47]]({where:{id:_0x20bcxb[_0x5052[18]][_0x5052[26]]},individualHooks:true})[_0x5052[17]](function(){return _0x20bcxc[_0x5052[25]](204)})[_0x5052[14]](function(_0x20bcxe){return handleError(_0x20bcxc,_0x20bcxe)})};function handleError(_0x20bcxc,_0x20bcxe){return _0x20bcxc[_0x5052[16]](500)[_0x5052[15]](_0x20bcxe)}
\ No newline at end of file
+var _0x3924=["\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"];_0x3924[0];var _=require(_0x3924[1]);var VoiceExtension=require(_0x3924[3])[_0x3924[2]];var Interval=require(_0x3924[3])[_0x3924[4]];var sequelize=require(_0x3924[3])[_0x3924[5]];var Sequelize=require(_0x3924[3])[_0x3924[6]];var util=require(_0x3924[7]);var async=require(_0x3924[8]);var veUtil=require(_0x3924[9]);var Util=require(_0x3924[10]);var Applications=veUtil[_0x3924[11]];exports[_0x3924[12]]= function(_0x489exb,_0x489exc,_0x489exd){return VoiceExtension[_0x3924[23]](_0x3924[21],_0x3924[22])[_0x3924[20]](Util[_0x3924[19]](_0x489exb[_0x3924[18]]))[_0x3924[17]](function(_0x489exf){_0x489exc[_0x3924[16]](200)[_0x3924[15]](_0x489exf)})[_0x3924[14]](function(_0x489exe){console[_0x3924[13]](_0x489exe);return handleError(_0x489exc,_0x489exe)})};exports[_0x3924[24]]= function(_0x489exb,_0x489exc){return VoiceExtension[_0x3924[23]](_0x3924[22])[_0x3924[28]]({where:{id:_0x489exb[_0x3924[27]][_0x3924[26]],VoiceExtensionId:null}})[_0x3924[17]](function(_0x489ex10){if(!_0x489ex10){return _0x489exc[_0x3924[25]](404)};return _0x489exc[_0x3924[15]](_0x489ex10)})[_0x3924[14]](function(_0x489exe){return handleError(_0x489exc,_0x489exe)})};exports[_0x3924[29]]= function(_0x489exb,_0x489exc){var _0x489ex11;return sequelize[_0x3924[39]](function(_0x489ex12){return VoiceExtension[_0x3924[29]](_0x489exb[_0x3924[35]],{transaction:_0x489ex12})[_0x3924[17]](function(_0x489ex13){_0x489ex11= _0x489ex13;if(_0x489exb[_0x3924[35]][_0x3924[11]]&& Array[_0x3924[37]](_0x489exb[_0x3924[35]].Applications)&& _0x489exb[_0x3924[35]][_0x3924[11]][_0x3924[38]]){return _0x489ex13}})[_0x3924[17]](veUtil[_0x3924[36]](_0x489exb[_0x3924[35]].Applications,_0x489ex12,_0x489exc))})[_0x3924[17]](function(){return _0x489exc[_0x3924[16]](201)[_0x3924[15]](_0x489ex11)})[_0x3924[14]](sequelize.UniqueConstraintError,function(_0x489exe){_0x489exe[_0x3924[31]]= _0x3924[32];_0x489exe[_0x3924[33]]= _0x3924[34];return handleError(_0x489exc,_0x489exe)})[_0x3924[14]](sequelize.ValidationError,function(_0x489exe){_0x489exe[_0x3924[31]]= _0x3924[32];_0x489exe[_0x3924[33]]= _0x3924[34];return handleError(_0x489exc,_0x489exe)})[_0x3924[14]](function(_0x489exe){console[_0x3924[13]](_0x3924[30],_0x489exe);return handleError(_0x489exc,_0x489exe)})};exports[_0x3924[40]]= function(_0x489exb,_0x489exc){return sequelize[_0x3924[39]](function(_0x489ex12){return veUtil[_0x3924[41]](_0x489exb,_0x489ex12)})[_0x3924[17]](function(){return _0x489exc[_0x3924[25]](200)})[_0x3924[14]](sequelize.UniqueConstraintError,function(_0x489exe){_0x489exe[_0x3924[31]]= _0x3924[32];_0x489exe[_0x3924[33]]= _0x3924[34];console[_0x3924[13]](_0x489exe);return handleError(_0x489exc,_0x489exe)})[_0x3924[14]](function(_0x489exe){console[_0x3924[13]](_0x489exe);return handleError(_0x489exc,_0x489exe)})};exports[_0x3924[42]]= function(_0x489exb,_0x489exc,_0x489exd){return sequelize[_0x3924[39]](function(_0x489ex12){return VoiceExtension[_0x3924[43]](_0x489exb[_0x3924[27]][_0x3924[26]])[_0x3924[17]](function(_0x489ex10){if(!_0x489ex10){return _0x489exc[_0x3924[25]](404)};return _0x489ex10[_0x3924[42]]()})})[_0x3924[17]](function(){return _0x489exc[_0x3924[25]](204)})[_0x3924[14]](function(_0x489exe){console[_0x3924[13]](_0x489exe);return handleError(_0x489exc,_0x489exe)})};exports[_0x3924[44]]= function(_0x489exb,_0x489exc){return VoiceExtension[_0x3924[42]]({where:{id:_0x489exb[_0x3924[18]][_0x3924[45]]},individualHooks:true})[_0x3924[17]](function(){return _0x489exc[_0x3924[25]](204)})[_0x3924[14]](function(_0x489exe){return handleError(_0x489exc,_0x489exe)})};function handleError(_0x489exc,_0x489exe){return _0x489exc[_0x3924[16]](500)[_0x3924[15]](_0x489exe)}
\ No newline at end of file