Built motion from commit 36b8e3b.|0.0.111
[motion.git] / server / api / interval / interval.controller.js
index d32d9cc..76ff977 100644 (file)
@@ -1 +1 @@
-var _0x7964=["\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"];_0x7964[0];var _=require(_0x7964[1]);var Interval=require(_0x7964[3])[_0x7964[2]];var VoiceExtension=require(_0x7964[3])[_0x7964[4]];var sequelize=require(_0x7964[3])[_0x7964[5]];var Util=require(_0x7964[6]);exports[_0x7964[7]]=function(_0xdecdx6,_0xdecdx7,_0xdecdx8){return Interval[_0x7964[17]](_0x7964[15],_0x7964[16])[_0x7964[14]](Util[_0x7964[13]](_0xdecdx6[_0x7964[12]]))[_0x7964[11]](function(_0xdecdxa){_0xdecdx7[_0x7964[10]](200)[_0x7964[9]](_0xdecdxa)})[_0x7964[8]](function(_0xdecdx9){return handleError(_0xdecdx7,_0xdecdx9)})};exports[_0x7964[18]]=function(_0xdecdx6,_0xdecdx7){return Interval[_0x7964[17]](_0x7964[16])[_0x7964[22]](_0xdecdx6[_0x7964[21]][_0x7964[20]])[_0x7964[11]](function(_0xdecdxb){if(!_0xdecdxb){return _0xdecdx7[_0x7964[19]](404)};return _0xdecdx7[_0x7964[9]](_0xdecdxb)})[_0x7964[8]](function(_0xdecdx9){return handleError(_0xdecdx7,_0xdecdx9)})};exports[_0x7964[23]]=function(_0xdecdx6,_0xdecdx7){return Interval[_0x7964[17]](_0x7964[16])[_0x7964[23]](_0xdecdx6[_0x7964[25]])[_0x7964[11]](function(_0xdecdxb){return _0xdecdx7[_0x7964[10]](201)[_0x7964[9]](_0xdecdxb)})[_0x7964[8]](function(_0xdecdx9){console[_0x7964[24]](_0xdecdx9);return handleError(_0xdecdx7,_0xdecdx9)})};exports[_0x7964[26]]=function(_0xdecdx6,_0xdecdx7){return sequelize[_0x7964[32]](function(_0xdecdxc){if(_0xdecdx6[_0x7964[25]][_0x7964[20]]){delete _0xdecdx6[_0x7964[25]][_0x7964[20]]};return Interval[_0x7964[26]](_0xdecdx6[_0x7964[25]],{where:{id:_0xdecdx6[_0x7964[21]][_0x7964[20]]},individualHooks:true,transaction:_0xdecdxc})[_0x7964[11]](function(){if(_0xdecdx6[_0x7964[25]][_0x7964[29]]){return Interval[_0x7964[31]]({where:{IntervalId:_0xdecdx6[_0x7964[21]][_0x7964[20]]},transaction:_0xdecdxc})}})[_0x7964[11]](function(){console[_0x7964[24]](_0x7964[28]);if(_0xdecdx6[_0x7964[25]][_0x7964[29]]&&_0xdecdx6[_0x7964[25]][_0x7964[29]][_0x7964[30]]){return _0xdecdx6[_0x7964[21]][_0x7964[20]]}})[_0x7964[11]](bulkCreateSubIntervals(_0xdecdx6[_0x7964[25]].SubIntervals,_0xdecdxc))[_0x7964[27]]()})[_0x7964[11]](function(){return _0xdecdx7[_0x7964[19]](200)})[_0x7964[8]](function(_0xdecdx9){console[_0x7964[24]](_0xdecdx9);return handleError(_0xdecdx7,_0xdecdx9)})};function bulkCreateSubIntervals(_0xdecdxe,_0xdecdxc){return function(_0xdecdxf){if(_0xdecdxf){console[_0x7964[24]](_0x7964[33]);var _0xdecdx10=[];_0xdecdxe[_0x7964[36]](function(_0xdecdx11){delete _0xdecdx11[_0x7964[20]];_0xdecdx11[_0x7964[34]]=_0xdecdxf;_0xdecdx10[_0x7964[35]](Interval[_0x7964[23]](_0xdecdx11,{transaction:_0xdecdxc}))});return _0xdecdx10}else {return []}}}exports[_0x7964[31]]=function(_0xdecdx6,_0xdecdx7){return sequelize[_0x7964[32]](function(_0xdecdxc){return Interval[_0x7964[31]]({where:{id:_0xdecdx6[_0x7964[21]][_0x7964[20]]},individualHooks:true,transaction:_0xdecdxc})})[_0x7964[11]](function(){return _0xdecdx7[_0x7964[19]](204)})[_0x7964[8]](sequelize.ForeignKeyConstraintError,function(_0xdecdx9){_0xdecdx9[_0x7964[37]]=_0x7964[38];_0xdecdx9[_0x7964[39]]=_0x7964[40];return handleError(_0xdecdx7,_0xdecdx9)})[_0x7964[8]](function(_0xdecdx9){return handleError(_0xdecdx7,_0xdecdx9)})};exports[_0x7964[41]]=function(_0xdecdx6,_0xdecdx7){return sequelize[_0x7964[32]](function(_0xdecdxc){return Interval[_0x7964[31]]({where:{id:_0xdecdx6[_0x7964[12]][_0x7964[42]]},individualHooks:true,transaction:_0xdecdxc})})[_0x7964[11]](function(){return _0xdecdx7[_0x7964[19]](204)})[_0x7964[8]](sequelize.ForeignKeyConstraintError,function(_0xdecdx9){_0xdecdx9[_0x7964[37]]=_0x7964[38];_0xdecdx9[_0x7964[39]]=_0x7964[40];return handleError(_0xdecdx7,_0xdecdx9)})[_0x7964[8]](function(_0xdecdx9){return handleError(_0xdecdx7,_0xdecdx9)})};function handleError(_0xdecdx7,_0xdecdx9){return _0xdecdx7[_0x7964[10]](500)[_0x7964[9]](_0xdecdx9)}
\ No newline at end of file
+var _0xe015=["\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"];_0xe015[0];var _=require(_0xe015[1]);var Interval=require(_0xe015[3])[_0xe015[2]];var VoiceExtension=require(_0xe015[3])[_0xe015[4]];var sequelize=require(_0xe015[3])[_0xe015[5]];var Util=require(_0xe015[6]);exports[_0xe015[7]]=function(_0x5672x6,_0x5672x7,_0x5672x8){return Interval[_0xe015[17]](_0xe015[15],_0xe015[16])[_0xe015[14]](Util[_0xe015[13]](_0x5672x6[_0xe015[12]]))[_0xe015[11]](function(_0x5672xa){_0x5672x7[_0xe015[10]](200)[_0xe015[9]](_0x5672xa)})[_0xe015[8]](function(_0x5672x9){return handleError(_0x5672x7,_0x5672x9)})};exports[_0xe015[18]]=function(_0x5672x6,_0x5672x7){return Interval[_0xe015[17]](_0xe015[16])[_0xe015[22]](_0x5672x6[_0xe015[21]][_0xe015[20]])[_0xe015[11]](function(_0x5672xb){if(!_0x5672xb){return _0x5672x7[_0xe015[19]](404)};return _0x5672x7[_0xe015[9]](_0x5672xb)})[_0xe015[8]](function(_0x5672x9){return handleError(_0x5672x7,_0x5672x9)})};exports[_0xe015[23]]=function(_0x5672x6,_0x5672x7){return Interval[_0xe015[17]](_0xe015[16])[_0xe015[23]](_0x5672x6[_0xe015[25]])[_0xe015[11]](function(_0x5672xb){return _0x5672x7[_0xe015[10]](201)[_0xe015[9]](_0x5672xb)})[_0xe015[8]](function(_0x5672x9){console[_0xe015[24]](_0x5672x9);return handleError(_0x5672x7,_0x5672x9)})};exports[_0xe015[26]]=function(_0x5672x6,_0x5672x7){return sequelize[_0xe015[32]](function(_0x5672xc){if(_0x5672x6[_0xe015[25]][_0xe015[20]]){delete _0x5672x6[_0xe015[25]][_0xe015[20]]};return Interval[_0xe015[26]](_0x5672x6[_0xe015[25]],{where:{id:_0x5672x6[_0xe015[21]][_0xe015[20]]},individualHooks:true,transaction:_0x5672xc})[_0xe015[11]](function(){if(_0x5672x6[_0xe015[25]][_0xe015[29]]){return Interval[_0xe015[31]]({where:{IntervalId:_0x5672x6[_0xe015[21]][_0xe015[20]]},transaction:_0x5672xc})}})[_0xe015[11]](function(){console[_0xe015[24]](_0xe015[28]);if(_0x5672x6[_0xe015[25]][_0xe015[29]]&&_0x5672x6[_0xe015[25]][_0xe015[29]][_0xe015[30]]){return _0x5672x6[_0xe015[21]][_0xe015[20]]}})[_0xe015[11]](bulkCreateSubIntervals(_0x5672x6[_0xe015[25]].SubIntervals,_0x5672xc))[_0xe015[27]]()})[_0xe015[11]](function(){return _0x5672x7[_0xe015[19]](200)})[_0xe015[8]](function(_0x5672x9){console[_0xe015[24]](_0x5672x9);return handleError(_0x5672x7,_0x5672x9)})};function bulkCreateSubIntervals(_0x5672xe,_0x5672xc){return function(_0x5672xf){if(_0x5672xf){console[_0xe015[24]](_0xe015[33]);var _0x5672x10=[];_0x5672xe[_0xe015[36]](function(_0x5672x11){delete _0x5672x11[_0xe015[20]];_0x5672x11[_0xe015[34]]=_0x5672xf;_0x5672x10[_0xe015[35]](Interval[_0xe015[23]](_0x5672x11,{transaction:_0x5672xc}))});return _0x5672x10}else {return []}}}exports[_0xe015[31]]=function(_0x5672x6,_0x5672x7){return sequelize[_0xe015[32]](function(_0x5672xc){return Interval[_0xe015[31]]({where:{id:_0x5672x6[_0xe015[21]][_0xe015[20]]},individualHooks:true,transaction:_0x5672xc})})[_0xe015[11]](function(){return _0x5672x7[_0xe015[19]](204)})[_0xe015[8]](sequelize.ForeignKeyConstraintError,function(_0x5672x9){_0x5672x9[_0xe015[37]]=_0xe015[38];_0x5672x9[_0xe015[39]]=_0xe015[40];return handleError(_0x5672x7,_0x5672x9)})[_0xe015[8]](function(_0x5672x9){return handleError(_0x5672x7,_0x5672x9)})};exports[_0xe015[41]]=function(_0x5672x6,_0x5672x7){return sequelize[_0xe015[32]](function(_0x5672xc){return Interval[_0xe015[31]]({where:{id:_0x5672x6[_0xe015[12]][_0xe015[42]]},individualHooks:true,transaction:_0x5672xc})})[_0xe015[11]](function(){return _0x5672x7[_0xe015[19]](204)})[_0xe015[8]](sequelize.ForeignKeyConstraintError,function(_0x5672x9){_0x5672x9[_0xe015[37]]=_0xe015[38];_0x5672x9[_0xe015[39]]=_0xe015[40];return handleError(_0x5672x7,_0x5672x9)})[_0xe015[8]](function(_0x5672x9){return handleError(_0x5672x7,_0x5672x9)})};function handleError(_0x5672x7,_0x5672x9){return _0x5672x7[_0xe015[10]](500)[_0xe015[9]](_0x5672x9)}
\ No newline at end of file