Built motion from commit 645879c.|0.0.82
[motion.git] / server / api / interval / interval.controller.js
index 3338da9..2c46167 100644 (file)
@@ -1 +1 @@
-var _0xbefc=["\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"];_0xbefc[0];var _=require(_0xbefc[1]);var Interval=require(_0xbefc[3])[_0xbefc[2]];var VoiceExtension=require(_0xbefc[3])[_0xbefc[4]];var sequelize=require(_0xbefc[3])[_0xbefc[5]];var Util=require(_0xbefc[6]);exports[_0xbefc[7]]=function(_0xe663x6,_0xe663x7,_0xe663x8){return Interval[_0xbefc[17]](_0xbefc[15],_0xbefc[16])[_0xbefc[14]](Util[_0xbefc[13]](_0xe663x6[_0xbefc[12]]))[_0xbefc[11]](function(_0xe663xa){_0xe663x7[_0xbefc[10]](200)[_0xbefc[9]](_0xe663xa)})[_0xbefc[8]](function(_0xe663x9){return handleError(_0xe663x7,_0xe663x9)})};exports[_0xbefc[18]]=function(_0xe663x6,_0xe663x7){return Interval[_0xbefc[17]](_0xbefc[16])[_0xbefc[22]](_0xe663x6[_0xbefc[21]][_0xbefc[20]])[_0xbefc[11]](function(_0xe663xb){if(!_0xe663xb){return _0xe663x7[_0xbefc[19]](404)};return _0xe663x7[_0xbefc[9]](_0xe663xb)})[_0xbefc[8]](function(_0xe663x9){return handleError(_0xe663x7,_0xe663x9)})};exports[_0xbefc[23]]=function(_0xe663x6,_0xe663x7){return Interval[_0xbefc[17]](_0xbefc[16])[_0xbefc[23]](_0xe663x6[_0xbefc[25]])[_0xbefc[11]](function(_0xe663xb){return _0xe663x7[_0xbefc[10]](201)[_0xbefc[9]](_0xe663xb)})[_0xbefc[8]](function(_0xe663x9){console[_0xbefc[24]](_0xe663x9);return handleError(_0xe663x7,_0xe663x9)})};exports[_0xbefc[26]]=function(_0xe663x6,_0xe663x7){console[_0xbefc[24]](_0xe663x6[_0xbefc[25]]);return sequelize[_0xbefc[32]](function(_0xe663xc){if(_0xe663x6[_0xbefc[25]][_0xbefc[20]]){delete _0xe663x6[_0xbefc[25]][_0xbefc[20]]};return Interval[_0xbefc[26]](_0xe663x6[_0xbefc[25]],{where:{id:_0xe663x6[_0xbefc[21]][_0xbefc[20]]},individualHooks:true,transaction:_0xe663xc})[_0xbefc[11]](function(){if(_0xe663x6[_0xbefc[25]][_0xbefc[29]]){return Interval[_0xbefc[31]]({where:{IntervalId:_0xe663x6[_0xbefc[21]][_0xbefc[20]]},transaction:_0xe663xc})}})[_0xbefc[11]](function(){console[_0xbefc[24]](_0xbefc[28]);if(_0xe663x6[_0xbefc[25]][_0xbefc[29]]&&_0xe663x6[_0xbefc[25]][_0xbefc[29]][_0xbefc[30]]){return _0xe663x6[_0xbefc[21]][_0xbefc[20]]}})[_0xbefc[11]](bulkCreateSubIntervals(_0xe663x6[_0xbefc[25]].SubIntervals,_0xe663xc))[_0xbefc[27]]()})[_0xbefc[11]](function(){return _0xe663x7[_0xbefc[19]](200)})[_0xbefc[8]](function(_0xe663x9){console[_0xbefc[24]](_0xe663x9);return handleError(_0xe663x7,_0xe663x9)})};function bulkCreateSubIntervals(_0xe663xe,_0xe663xc){return function(_0xe663xf){if(_0xe663xf){console[_0xbefc[24]](_0xbefc[33]);var _0xe663x10=[];_0xe663xe[_0xbefc[36]](function(_0xe663x11){_0xe663x11[_0xbefc[34]]=_0xe663xf;_0xe663x10[_0xbefc[35]](Interval[_0xbefc[23]](_0xe663x11,{transaction:_0xe663xc}))});return _0xe663x10}else {return []}}}exports[_0xbefc[31]]=function(_0xe663x6,_0xe663x7){return sequelize[_0xbefc[32]](function(_0xe663xc){return Interval[_0xbefc[31]]({where:{id:_0xe663x6[_0xbefc[21]][_0xbefc[20]]},individualHooks:true,transaction:_0xe663xc})})[_0xbefc[11]](function(){return _0xe663x7[_0xbefc[19]](204)})[_0xbefc[8]](sequelize.ForeignKeyConstraintError,function(_0xe663x9){_0xe663x9[_0xbefc[37]]=_0xbefc[38];_0xe663x9[_0xbefc[39]]=_0xbefc[40];return handleError(_0xe663x7,_0xe663x9)})[_0xbefc[8]](function(_0xe663x9){return handleError(_0xe663x7,_0xe663x9)})};exports[_0xbefc[41]]=function(_0xe663x6,_0xe663x7){return sequelize[_0xbefc[32]](function(_0xe663xc){return Interval[_0xbefc[31]]({where:{id:_0xe663x6[_0xbefc[12]][_0xbefc[42]]},individualHooks:true,transaction:_0xe663xc})})[_0xbefc[11]](function(){return _0xe663x7[_0xbefc[19]](204)})[_0xbefc[8]](sequelize.ForeignKeyConstraintError,function(_0xe663x9){_0xe663x9[_0xbefc[37]]=_0xbefc[38];_0xe663x9[_0xbefc[39]]=_0xbefc[40];return handleError(_0xe663x7,_0xe663x9)})[_0xbefc[8]](function(_0xe663x9){return handleError(_0xe663x7,_0xe663x9)})};function handleError(_0xe663x7,_0xe663x9){return _0xe663x7[_0xbefc[10]](500)[_0xbefc[9]](_0xe663x9)}
\ No newline at end of file
+var _0xdc80=["\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"];_0xdc80[0];var _=require(_0xdc80[1]);var Interval=require(_0xdc80[3])[_0xdc80[2]];var VoiceExtension=require(_0xdc80[3])[_0xdc80[4]];var sequelize=require(_0xdc80[3])[_0xdc80[5]];var Util=require(_0xdc80[6]);exports[_0xdc80[7]]=function(_0xd41dx6,_0xd41dx7,_0xd41dx8){return Interval[_0xdc80[17]](_0xdc80[15],_0xdc80[16])[_0xdc80[14]](Util[_0xdc80[13]](_0xd41dx6[_0xdc80[12]]))[_0xdc80[11]](function(_0xd41dxa){_0xd41dx7[_0xdc80[10]](200)[_0xdc80[9]](_0xd41dxa)})[_0xdc80[8]](function(_0xd41dx9){return handleError(_0xd41dx7,_0xd41dx9)})};exports[_0xdc80[18]]=function(_0xd41dx6,_0xd41dx7){return Interval[_0xdc80[17]](_0xdc80[16])[_0xdc80[22]](_0xd41dx6[_0xdc80[21]][_0xdc80[20]])[_0xdc80[11]](function(_0xd41dxb){if(!_0xd41dxb){return _0xd41dx7[_0xdc80[19]](404)};return _0xd41dx7[_0xdc80[9]](_0xd41dxb)})[_0xdc80[8]](function(_0xd41dx9){return handleError(_0xd41dx7,_0xd41dx9)})};exports[_0xdc80[23]]=function(_0xd41dx6,_0xd41dx7){return Interval[_0xdc80[17]](_0xdc80[16])[_0xdc80[23]](_0xd41dx6[_0xdc80[25]])[_0xdc80[11]](function(_0xd41dxb){return _0xd41dx7[_0xdc80[10]](201)[_0xdc80[9]](_0xd41dxb)})[_0xdc80[8]](function(_0xd41dx9){console[_0xdc80[24]](_0xd41dx9);return handleError(_0xd41dx7,_0xd41dx9)})};exports[_0xdc80[26]]=function(_0xd41dx6,_0xd41dx7){console[_0xdc80[24]](_0xd41dx6[_0xdc80[25]]);return sequelize[_0xdc80[32]](function(_0xd41dxc){if(_0xd41dx6[_0xdc80[25]][_0xdc80[20]]){delete _0xd41dx6[_0xdc80[25]][_0xdc80[20]]};return Interval[_0xdc80[26]](_0xd41dx6[_0xdc80[25]],{where:{id:_0xd41dx6[_0xdc80[21]][_0xdc80[20]]},individualHooks:true,transaction:_0xd41dxc})[_0xdc80[11]](function(){if(_0xd41dx6[_0xdc80[25]][_0xdc80[29]]){return Interval[_0xdc80[31]]({where:{IntervalId:_0xd41dx6[_0xdc80[21]][_0xdc80[20]]},transaction:_0xd41dxc})}})[_0xdc80[11]](function(){console[_0xdc80[24]](_0xdc80[28]);if(_0xd41dx6[_0xdc80[25]][_0xdc80[29]]&&_0xd41dx6[_0xdc80[25]][_0xdc80[29]][_0xdc80[30]]){return _0xd41dx6[_0xdc80[21]][_0xdc80[20]]}})[_0xdc80[11]](bulkCreateSubIntervals(_0xd41dx6[_0xdc80[25]].SubIntervals,_0xd41dxc))[_0xdc80[27]]()})[_0xdc80[11]](function(){return _0xd41dx7[_0xdc80[19]](200)})[_0xdc80[8]](function(_0xd41dx9){console[_0xdc80[24]](_0xd41dx9);return handleError(_0xd41dx7,_0xd41dx9)})};function bulkCreateSubIntervals(_0xd41dxe,_0xd41dxc){return function(_0xd41dxf){if(_0xd41dxf){console[_0xdc80[24]](_0xdc80[33]);var _0xd41dx10=[];_0xd41dxe[_0xdc80[36]](function(_0xd41dx11){_0xd41dx11[_0xdc80[34]]=_0xd41dxf;_0xd41dx10[_0xdc80[35]](Interval[_0xdc80[23]](_0xd41dx11,{transaction:_0xd41dxc}))});return _0xd41dx10}else {return []}}}exports[_0xdc80[31]]=function(_0xd41dx6,_0xd41dx7){return sequelize[_0xdc80[32]](function(_0xd41dxc){return Interval[_0xdc80[31]]({where:{id:_0xd41dx6[_0xdc80[21]][_0xdc80[20]]},individualHooks:true,transaction:_0xd41dxc})})[_0xdc80[11]](function(){return _0xd41dx7[_0xdc80[19]](204)})[_0xdc80[8]](sequelize.ForeignKeyConstraintError,function(_0xd41dx9){_0xd41dx9[_0xdc80[37]]=_0xdc80[38];_0xd41dx9[_0xdc80[39]]=_0xdc80[40];return handleError(_0xd41dx7,_0xd41dx9)})[_0xdc80[8]](function(_0xd41dx9){return handleError(_0xd41dx7,_0xd41dx9)})};exports[_0xdc80[41]]=function(_0xd41dx6,_0xd41dx7){return sequelize[_0xdc80[32]](function(_0xd41dxc){return Interval[_0xdc80[31]]({where:{id:_0xd41dx6[_0xdc80[12]][_0xdc80[42]]},individualHooks:true,transaction:_0xd41dxc})})[_0xdc80[11]](function(){return _0xd41dx7[_0xdc80[19]](204)})[_0xdc80[8]](sequelize.ForeignKeyConstraintError,function(_0xd41dx9){_0xd41dx9[_0xdc80[37]]=_0xdc80[38];_0xd41dx9[_0xdc80[39]]=_0xdc80[40];return handleError(_0xd41dx7,_0xd41dx9)})[_0xdc80[8]](function(_0xd41dx9){return handleError(_0xd41dx7,_0xd41dx9)})};function handleError(_0xd41dx7,_0xd41dx9){return _0xd41dx7[_0xdc80[10]](500)[_0xdc80[9]](_0xd41dx9)}
\ No newline at end of file