Built motion from commit c671bd6.|0.0.103
[motion.git] / server / api / interval / interval.controller.js
index 11769d7..77d7452 100644 (file)
@@ -1 +1 @@
-var _0xa1e3=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x69\x6E\x64\x65\x78","\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","\x69\x6E\x74\x65\x72\x76\x61\x6C\x73","\x73\x75\x62\x69\x6E\x74\x65\x72\x76\x61\x6C\x73","\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\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x6C\x6F\x67","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x61\x6C\x6C","\x61\x72\x65\x20\x74\x68\x65\x72\x65\x20\x69\x6E\x74\x65\x72\x76\x61\x6C\x73","\x53\x75\x62\x49\x6E\x74\x65\x72\x76\x61\x6C\x73","\x6C\x65\x6E\x67\x74\x68","\x64\x65\x73\x74\x72\x6F\x79","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x79\x65\x73\x20\x74\x68\x65\x72\x65\x20\x61\x72\x65","\x49\x6E\x74\x65\x72\x76\x61\x6C\x49\x64","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x6D\x65\x73\x73\x61\x67\x65","\x54\x68\x65\x20\x49\x6E\x74\x65\x72\x76\x61\x6C\x20\x69\x73\x20\x61\x73\x73\x6F\x63\x69\x61\x74\x65\x64\x20\x77\x69\x74\x68\x20\x6F\x6E\x65\x20\x6F\x72\x20\x6D\x6F\x72\x65\x20\x72\x6F\x75\x74\x65\x73\x2C\x20\x64\x65\x6C\x65\x74\x65\x20\x74\x68\x65\x6D\x20\x66\x69\x72\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\x49\x4E\x54\x45\x52\x56\x41\x4C\x5F\x52\x4F\x55\x54\x45\x5F\x41\x53\x53\x4F\x43\x49\x41\x54\x45\x44","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x69\x64\x73"];_0xa1e3[0];var _=require(_0xa1e3[1]);var Interval=require(_0xa1e3[3])[_0xa1e3[2]];var VoiceExtension=require(_0xa1e3[3])[_0xa1e3[4]];var sequelize=require(_0xa1e3[3])[_0xa1e3[5]];var Util=require(_0xa1e3[6]);exports[_0xa1e3[7]]=function(_0xf961x6,_0xf961x7,_0xf961x8){return Interval[_0xa1e3[17]](_0xa1e3[15],_0xa1e3[16])[_0xa1e3[14]](Util[_0xa1e3[13]](_0xf961x6[_0xa1e3[12]]))[_0xa1e3[11]](function(_0xf961xa){_0xf961x7[_0xa1e3[10]](200)[_0xa1e3[9]](_0xf961xa)})[_0xa1e3[8]](function(_0xf961x9){return handleError(_0xf961x7,_0xf961x9)})};exports[_0xa1e3[18]]=function(_0xf961x6,_0xf961x7){return Interval[_0xa1e3[17]](_0xa1e3[16])[_0xa1e3[22]](_0xf961x6[_0xa1e3[21]][_0xa1e3[20]])[_0xa1e3[11]](function(_0xf961xb){if(!_0xf961xb){return _0xf961x7[_0xa1e3[19]](404)};return _0xf961x7[_0xa1e3[9]](_0xf961xb)})[_0xa1e3[8]](function(_0xf961x9){return handleError(_0xf961x7,_0xf961x9)})};exports[_0xa1e3[23]]=function(_0xf961x6,_0xf961x7){return Interval[_0xa1e3[17]](_0xa1e3[16])[_0xa1e3[23]](_0xf961x6[_0xa1e3[25]])[_0xa1e3[11]](function(_0xf961xb){return _0xf961x7[_0xa1e3[10]](201)[_0xa1e3[9]](_0xf961xb)})[_0xa1e3[8]](function(_0xf961x9){console[_0xa1e3[24]](_0xf961x9);return handleError(_0xf961x7,_0xf961x9)})};exports[_0xa1e3[26]]=function(_0xf961x6,_0xf961x7){console[_0xa1e3[24]](_0xf961x6[_0xa1e3[25]]);return sequelize[_0xa1e3[32]](function(_0xf961xc){if(_0xf961x6[_0xa1e3[25]][_0xa1e3[20]]){delete _0xf961x6[_0xa1e3[25]][_0xa1e3[20]]};return Interval[_0xa1e3[26]](_0xf961x6[_0xa1e3[25]],{where:{id:_0xf961x6[_0xa1e3[21]][_0xa1e3[20]]},individualHooks:true,transaction:_0xf961xc})[_0xa1e3[11]](function(){if(_0xf961x6[_0xa1e3[25]][_0xa1e3[29]]){return Interval[_0xa1e3[31]]({where:{IntervalId:_0xf961x6[_0xa1e3[21]][_0xa1e3[20]]},transaction:_0xf961xc})}})[_0xa1e3[11]](function(){console[_0xa1e3[24]](_0xa1e3[28]);if(_0xf961x6[_0xa1e3[25]][_0xa1e3[29]]&&_0xf961x6[_0xa1e3[25]][_0xa1e3[29]][_0xa1e3[30]]){return _0xf961x6[_0xa1e3[21]][_0xa1e3[20]]}})[_0xa1e3[11]](bulkCreateSubIntervals(_0xf961x6[_0xa1e3[25]].SubIntervals,_0xf961xc))[_0xa1e3[27]]()})[_0xa1e3[11]](function(){return _0xf961x7[_0xa1e3[19]](200)})[_0xa1e3[8]](function(_0xf961x9){console[_0xa1e3[24]](_0xf961x9);return handleError(_0xf961x7,_0xf961x9)})};function bulkCreateSubIntervals(_0xf961xe,_0xf961xc){return function(_0xf961xf){if(_0xf961xf){console[_0xa1e3[24]](_0xa1e3[33]);var _0xf961x10=[];_0xf961xe[_0xa1e3[36]](function(_0xf961x11){_0xf961x11[_0xa1e3[34]]=_0xf961xf;_0xf961x10[_0xa1e3[35]](Interval[_0xa1e3[23]](_0xf961x11,{transaction:_0xf961xc}))});return _0xf961x10}else {return []}}}exports[_0xa1e3[31]]=function(_0xf961x6,_0xf961x7){return sequelize[_0xa1e3[32]](function(_0xf961xc){return Interval[_0xa1e3[31]]({where:{id:_0xf961x6[_0xa1e3[21]][_0xa1e3[20]]},individualHooks:true,transaction:_0xf961xc})})[_0xa1e3[11]](function(){return _0xf961x7[_0xa1e3[19]](204)})[_0xa1e3[8]](sequelize.ForeignKeyConstraintError,function(_0xf961x9){_0xf961x9[_0xa1e3[37]]=_0xa1e3[38];_0xf961x9[_0xa1e3[39]]=_0xa1e3[40];return handleError(_0xf961x7,_0xf961x9)})[_0xa1e3[8]](function(_0xf961x9){return handleError(_0xf961x7,_0xf961x9)})};exports[_0xa1e3[41]]=function(_0xf961x6,_0xf961x7){return sequelize[_0xa1e3[32]](function(_0xf961xc){return Interval[_0xa1e3[31]]({where:{id:_0xf961x6[_0xa1e3[12]][_0xa1e3[42]]},individualHooks:true,transaction:_0xf961xc})})[_0xa1e3[11]](function(){return _0xf961x7[_0xa1e3[19]](204)})[_0xa1e3[8]](sequelize.ForeignKeyConstraintError,function(_0xf961x9){_0xf961x9[_0xa1e3[37]]=_0xa1e3[38];_0xf961x9[_0xa1e3[39]]=_0xa1e3[40];return handleError(_0xf961x7,_0xf961x9)})[_0xa1e3[8]](function(_0xf961x9){return handleError(_0xf961x7,_0xf961x9)})};function handleError(_0xf961x7,_0xf961x9){return _0xf961x7[_0xa1e3[10]](500)[_0xa1e3[9]](_0xf961x9)}
\ No newline at end of file
+var _0xc9aa=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x69\x6E\x64\x65\x78","\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","\x69\x6E\x74\x65\x72\x76\x61\x6C\x73","\x73\x75\x62\x69\x6E\x74\x65\x72\x76\x61\x6C\x73","\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\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x6C\x6F\x67","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x61\x6C\x6C","\x61\x72\x65\x20\x74\x68\x65\x72\x65\x20\x69\x6E\x74\x65\x72\x76\x61\x6C\x73","\x53\x75\x62\x49\x6E\x74\x65\x72\x76\x61\x6C\x73","\x6C\x65\x6E\x67\x74\x68","\x64\x65\x73\x74\x72\x6F\x79","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x79\x65\x73\x20\x74\x68\x65\x72\x65\x20\x61\x72\x65","\x49\x6E\x74\x65\x72\x76\x61\x6C\x49\x64","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x6D\x65\x73\x73\x61\x67\x65","\x54\x68\x65\x20\x49\x6E\x74\x65\x72\x76\x61\x6C\x20\x69\x73\x20\x61\x73\x73\x6F\x63\x69\x61\x74\x65\x64\x20\x77\x69\x74\x68\x20\x6F\x6E\x65\x20\x6F\x72\x20\x6D\x6F\x72\x65\x20\x72\x6F\x75\x74\x65\x73\x2C\x20\x64\x65\x6C\x65\x74\x65\x20\x74\x68\x65\x6D\x20\x66\x69\x72\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\x49\x4E\x54\x45\x52\x56\x41\x4C\x5F\x52\x4F\x55\x54\x45\x5F\x41\x53\x53\x4F\x43\x49\x41\x54\x45\x44","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x69\x64\x73"];_0xc9aa[0];var _=require(_0xc9aa[1]);var Interval=require(_0xc9aa[3])[_0xc9aa[2]];var VoiceExtension=require(_0xc9aa[3])[_0xc9aa[4]];var sequelize=require(_0xc9aa[3])[_0xc9aa[5]];var Util=require(_0xc9aa[6]);exports[_0xc9aa[7]]=function(_0xf873x6,_0xf873x7,_0xf873x8){return Interval[_0xc9aa[17]](_0xc9aa[15],_0xc9aa[16])[_0xc9aa[14]](Util[_0xc9aa[13]](_0xf873x6[_0xc9aa[12]]))[_0xc9aa[11]](function(_0xf873xa){_0xf873x7[_0xc9aa[10]](200)[_0xc9aa[9]](_0xf873xa)})[_0xc9aa[8]](function(_0xf873x9){return handleError(_0xf873x7,_0xf873x9)})};exports[_0xc9aa[18]]=function(_0xf873x6,_0xf873x7){return Interval[_0xc9aa[17]](_0xc9aa[16])[_0xc9aa[22]](_0xf873x6[_0xc9aa[21]][_0xc9aa[20]])[_0xc9aa[11]](function(_0xf873xb){if(!_0xf873xb){return _0xf873x7[_0xc9aa[19]](404)};return _0xf873x7[_0xc9aa[9]](_0xf873xb)})[_0xc9aa[8]](function(_0xf873x9){return handleError(_0xf873x7,_0xf873x9)})};exports[_0xc9aa[23]]=function(_0xf873x6,_0xf873x7){return Interval[_0xc9aa[17]](_0xc9aa[16])[_0xc9aa[23]](_0xf873x6[_0xc9aa[25]])[_0xc9aa[11]](function(_0xf873xb){return _0xf873x7[_0xc9aa[10]](201)[_0xc9aa[9]](_0xf873xb)})[_0xc9aa[8]](function(_0xf873x9){console[_0xc9aa[24]](_0xf873x9);return handleError(_0xf873x7,_0xf873x9)})};exports[_0xc9aa[26]]=function(_0xf873x6,_0xf873x7){return sequelize[_0xc9aa[32]](function(_0xf873xc){if(_0xf873x6[_0xc9aa[25]][_0xc9aa[20]]){delete _0xf873x6[_0xc9aa[25]][_0xc9aa[20]]};return Interval[_0xc9aa[26]](_0xf873x6[_0xc9aa[25]],{where:{id:_0xf873x6[_0xc9aa[21]][_0xc9aa[20]]},individualHooks:true,transaction:_0xf873xc})[_0xc9aa[11]](function(){if(_0xf873x6[_0xc9aa[25]][_0xc9aa[29]]){return Interval[_0xc9aa[31]]({where:{IntervalId:_0xf873x6[_0xc9aa[21]][_0xc9aa[20]]},transaction:_0xf873xc})}})[_0xc9aa[11]](function(){console[_0xc9aa[24]](_0xc9aa[28]);if(_0xf873x6[_0xc9aa[25]][_0xc9aa[29]]&&_0xf873x6[_0xc9aa[25]][_0xc9aa[29]][_0xc9aa[30]]){return _0xf873x6[_0xc9aa[21]][_0xc9aa[20]]}})[_0xc9aa[11]](bulkCreateSubIntervals(_0xf873x6[_0xc9aa[25]].SubIntervals,_0xf873xc))[_0xc9aa[27]]()})[_0xc9aa[11]](function(){return _0xf873x7[_0xc9aa[19]](200)})[_0xc9aa[8]](function(_0xf873x9){console[_0xc9aa[24]](_0xf873x9);return handleError(_0xf873x7,_0xf873x9)})};function bulkCreateSubIntervals(_0xf873xe,_0xf873xc){return function(_0xf873xf){if(_0xf873xf){console[_0xc9aa[24]](_0xc9aa[33]);var _0xf873x10=[];_0xf873xe[_0xc9aa[36]](function(_0xf873x11){delete _0xf873x11[_0xc9aa[20]];_0xf873x11[_0xc9aa[34]]=_0xf873xf;_0xf873x10[_0xc9aa[35]](Interval[_0xc9aa[23]](_0xf873x11,{transaction:_0xf873xc}))});return _0xf873x10}else {return []}}}exports[_0xc9aa[31]]=function(_0xf873x6,_0xf873x7){return sequelize[_0xc9aa[32]](function(_0xf873xc){return Interval[_0xc9aa[31]]({where:{id:_0xf873x6[_0xc9aa[21]][_0xc9aa[20]]},individualHooks:true,transaction:_0xf873xc})})[_0xc9aa[11]](function(){return _0xf873x7[_0xc9aa[19]](204)})[_0xc9aa[8]](sequelize.ForeignKeyConstraintError,function(_0xf873x9){_0xf873x9[_0xc9aa[37]]=_0xc9aa[38];_0xf873x9[_0xc9aa[39]]=_0xc9aa[40];return handleError(_0xf873x7,_0xf873x9)})[_0xc9aa[8]](function(_0xf873x9){return handleError(_0xf873x7,_0xf873x9)})};exports[_0xc9aa[41]]=function(_0xf873x6,_0xf873x7){return sequelize[_0xc9aa[32]](function(_0xf873xc){return Interval[_0xc9aa[31]]({where:{id:_0xf873x6[_0xc9aa[12]][_0xc9aa[42]]},individualHooks:true,transaction:_0xf873xc})})[_0xc9aa[11]](function(){return _0xf873x7[_0xc9aa[19]](204)})[_0xc9aa[8]](sequelize.ForeignKeyConstraintError,function(_0xf873x9){_0xf873x9[_0xc9aa[37]]=_0xc9aa[38];_0xf873x9[_0xc9aa[39]]=_0xc9aa[40];return handleError(_0xf873x7,_0xf873x9)})[_0xc9aa[8]](function(_0xf873x9){return handleError(_0xf873x7,_0xf873x9)})};function handleError(_0xf873x7,_0xf873x9){return _0xf873x7[_0xc9aa[10]](500)[_0xc9aa[9]](_0xf873x9)}
\ No newline at end of file