Built motion from commit be44e1e4d16f8b29d243415b03d27262d8601e0e. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.13.js
index a2d2a3d..accdb3d 100644 (file)
@@ -1 +1 @@
-const a996_0x3e99=['info','removeIndex\x20%s\x20%s','indicesType','sequence','util','addIndex','prototype','indexName','inspect','sendUnpauseOnSubmit','final','query','enqueue','finally','addColumn','stringify','jscripty_projects','changeColumn','../config/logger','renameColumn','catch','addIndex\x20%s\x20%s\x20%s\x20[%s]','Removed\x20column\x20%s\x20from\x20%s','then','removeColumn','sequelize','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','join','BOOLEAN','queryInterface','tail','removeIndex','query\x20%s','Added\x20column\x20%s\x20to\x20%s','exports'];(function(_0x45541f,_0x3e99c2){const _0x4e12d0=function(_0x54784e){while(--_0x54784e){_0x45541f['push'](_0x45541f['shift']());}};_0x4e12d0(++_0x3e99c2);}(a996_0x3e99,0xe9));const a996_0x4e12=function(_0x45541f,_0x3e99c2){_0x45541f=_0x45541f-0x0;let _0x4e12d0=a996_0x3e99[_0x45541f];return _0x4e12d0;};const _0x14e850=a996_0x4e12;'use strict';const util=require(_0x14e850('0x10')),logger=require(_0x14e850('0x1e'))('migration'),Sequence=function(){};Sequence[_0x14e850('0x12')][_0x14e850('0x18')]=function(_0x54784e){const _0x7b9601=_0x14e850;this[_0x7b9601('0x7')]=this['tail']?this['tail'][_0x7b9601('0x19')](_0x54784e):_0x54784e();};const Migration=function(_0x8705f4){const _0x32fa28=_0x14e850;this['queryInterface']=_0x8705f4,this[_0x32fa28('0xf')]=new Sequence();};Migration[_0x14e850('0x12')][_0x14e850('0x1d')]=function(_0x11f105,_0x4329e4,_0x1560e1){const _0x337a88=_0x14e850,_0x55ccfd=this;this[_0x337a88('0xf')][_0x337a88('0x18')](function(){const _0x365bd4=_0x337a88;return _0x55ccfd[_0x365bd4('0x6')]['changeColumn'](_0x11f105,_0x4329e4,_0x1560e1)[_0x365bd4('0x0')](function(){const _0x6ceefd=_0x365bd4;logger[_0x6ceefd('0xc')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4329e4,_0x11f105);})[_0x365bd4('0x20')](function(_0x31fc82){const _0x463c0e=_0x365bd4;logger[_0x463c0e('0xc')](JSON[_0x463c0e('0x1b')](_0x31fc82));});});},Migration[_0x14e850('0x12')][_0x14e850('0x1a')]=function(_0x135dbc,_0x314a51,_0x4c7df9){const _0x466d63=_0x14e850,_0x4a2ab3=this;this['sequence'][_0x466d63('0x18')](function(){const _0x2c656e=_0x466d63;return _0x4a2ab3[_0x2c656e('0x6')][_0x2c656e('0x1a')](_0x135dbc,_0x314a51,_0x4c7df9)[_0x2c656e('0x0')](function(){const _0x2a84d5=_0x2c656e;logger[_0x2a84d5('0xc')](_0x2a84d5('0xa'),_0x314a51,_0x135dbc);})[_0x2c656e('0x20')](function(_0x3e10e2){const _0x3e5a80=_0x2c656e;logger[_0x3e5a80('0xc')](JSON[_0x3e5a80('0x1b')](_0x3e10e2));});});},Migration[_0x14e850('0x12')]['dropTable']=function(_0x123c4b){const _0x3a11cb=_0x14e850,_0x51eabe=this;this[_0x3a11cb('0xf')][_0x3a11cb('0x18')](function(){const _0x2c01c7=_0x3a11cb;return _0x51eabe[_0x2c01c7('0x6')]['dropTable'](_0x123c4b,{'force':!![]})['then'](function(){logger['info']('table\x20dropped\x20%s',_0x123c4b);})[_0x2c01c7('0x20')](function(_0x62493a){const _0x403581=_0x2c01c7;logger['info'](JSON[_0x403581('0x1b')](_0x62493a));});});},Migration[_0x14e850('0x12')][_0x14e850('0x11')]=function(_0x166345,_0xd65854,_0x4dbf9f){const _0x48c4c6=_0x14e850,_0x3981c0=this;this['sequence'][_0x48c4c6('0x18')](function(){const _0x15bb92=_0x48c4c6;return _0x3981c0['queryInterface'][_0x15bb92('0x11')](_0x166345,_0xd65854,{'indexName':_0x4dbf9f[_0x15bb92('0x13')],'indicesType':_0x4dbf9f[_0x15bb92('0xe')]})['then'](function(){const _0x42ea7d=_0x15bb92;logger[_0x42ea7d('0xc')](_0x42ea7d('0x21'),_0x166345,_0xd65854[_0x42ea7d('0x4')](','),_0x4dbf9f['indexName'],_0x4dbf9f[_0x42ea7d('0xe')]);})[_0x15bb92('0x20')](function(_0x1838dc){const _0x51b94e=_0x15bb92;logger[_0x51b94e('0xc')](JSON[_0x51b94e('0x1b')](_0x1838dc));});});},Migration['prototype'][_0x14e850('0x8')]=function(_0x34f509,_0x1c5798){const _0x20d20b=this;this['sequence']['enqueue'](function(){const _0x4ab9ff=a996_0x4e12;return _0x20d20b[_0x4ab9ff('0x6')][_0x4ab9ff('0x8')](_0x34f509,_0x1c5798)[_0x4ab9ff('0x0')](function(){const _0x411e3b=_0x4ab9ff;logger[_0x411e3b('0xc')](_0x411e3b('0xd'),_0x34f509,_0x1c5798);})['catch'](function(_0x44f0c2){const _0xea7b44=_0x4ab9ff;logger['info'](JSON[_0xea7b44('0x1b')](_0x44f0c2));});});},Migration[_0x14e850('0x12')][_0x14e850('0x17')]=function(_0x544e56){const _0x282aac=_0x14e850,_0x48f0c1=this;this[_0x282aac('0xf')]['enqueue'](function(){const _0x136129=_0x282aac;return _0x48f0c1[_0x136129('0x6')][_0x136129('0x2')][_0x136129('0x17')](_0x544e56)[_0x136129('0x0')](function(){const _0x4017c0=_0x136129;logger[_0x4017c0('0xc')](_0x4017c0('0x9'),_0x544e56);})['catch'](function(_0x5b9f83){const _0x55e262=_0x136129;logger['info'](JSON[_0x55e262('0x1b')](_0x5b9f83));});});},Migration[_0x14e850('0x12')][_0x14e850('0x1')]=function(_0x1ec4df,_0x36e3be){const _0x1a1d2c=_0x14e850,_0x5cf675=this;this['sequence'][_0x1a1d2c('0x18')](function(){const _0x4ade87=_0x1a1d2c;return _0x5cf675[_0x4ade87('0x6')][_0x4ade87('0x1')](_0x1ec4df,_0x36e3be)['then'](function(){const _0x11d249=_0x4ade87;logger[_0x11d249('0xc')](_0x11d249('0x22'),_0x36e3be,_0x1ec4df);})[_0x4ade87('0x20')](function(_0x721b14){const _0x329cfe=_0x4ade87;logger[_0x329cfe('0xc')](util[_0x329cfe('0x14')](_0x721b14,{'showHidden':![],'depth':null}));});});},Migration[_0x14e850('0x12')][_0x14e850('0x1f')]=function(_0x137d87,_0x38aabe,_0x138878){const _0x5d1358=_0x14e850,_0xefd193=this;this[_0x5d1358('0xf')][_0x5d1358('0x18')](function(){const _0x2c2bd1=_0x5d1358;return _0xefd193[_0x2c2bd1('0x6')][_0x2c2bd1('0x1f')](_0x137d87,_0x38aabe,_0x138878)[_0x2c2bd1('0x0')](function(){const _0x5539cf=_0x2c2bd1;logger[_0x5539cf('0xc')](_0x5539cf('0x3'),_0x38aabe,_0x138878,_0x137d87);})[_0x2c2bd1('0x20')](function(_0x866d16){const _0x1c29ca=_0x2c2bd1;logger[_0x1c29ca('0xc')](util[_0x1c29ca('0x14')](_0x866d16,{'showHidden':![],'depth':null}));});});},Migration[_0x14e850('0x12')][_0x14e850('0x16')]=function(_0x474280){const _0x527522=_0x14e850;this[_0x527522('0xf')][_0x527522('0x18')](function(){return _0x474280();});},module[_0x14e850('0xb')]={'up':function(_0xf445ee,_0x25014d){return new Promise(function(_0x376ce1){const _0xf65cc0=a996_0x4e12,_0xa7dbf1=new Migration(_0xf445ee);_0xa7dbf1[_0xf65cc0('0x1a')](_0xf65cc0('0x1c'),_0xf65cc0('0x15'),{'type':_0x25014d[_0xf65cc0('0x5')],'defaultValue':![]}),_0xa7dbf1[_0xf65cc0('0x16')](_0x376ce1);});},'down':function(){}};
\ No newline at end of file
+const a996_0x3354=['then','sendUnpauseOnSubmit','Removed\x20column\x20%s\x20from\x20%s','removeIndex\x20%s\x20%s','../config/logger','finally','removeColumn','indexName','final','addIndex\x20%s\x20%s\x20%s\x20[%s]','inspect','sequelize','addColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','queryInterface','info','tail','addIndex','prototype','sequence','dropTable','catch','Added\x20column\x20%s\x20to\x20%s','BOOLEAN','jscripty_projects','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','join','enqueue','removeIndex','exports','stringify','changeColumn','migration','query\x20%s','indicesType','query','renameColumn'];(function(_0x43d52d,_0x335452){const _0x470e71=function(_0x55d65e){while(--_0x55d65e){_0x43d52d['push'](_0x43d52d['shift']());}};_0x470e71(++_0x335452);}(a996_0x3354,0x1f3));const a996_0x470e=function(_0x43d52d,_0x335452){_0x43d52d=_0x43d52d-0x0;let _0x470e71=a996_0x3354[_0x43d52d];return _0x470e71;};const _0x285450=a996_0x470e;'use strict';const util=require('util'),logger=require(_0x285450('0x17'))(_0x285450('0xe')),Sequence=function(){};Sequence[_0x285450('0x0')][_0x285450('0x9')]=function(_0x55d65e){const _0x2c950c=_0x285450;this[_0x2c950c('0x23')]=this[_0x2c950c('0x23')]?this[_0x2c950c('0x23')][_0x2c950c('0x18')](_0x55d65e):_0x55d65e();};const Migration=function(_0x1c7256){const _0xf882f6=_0x285450;this[_0xf882f6('0x21')]=_0x1c7256,this[_0xf882f6('0x1')]=new Sequence();};Migration[_0x285450('0x0')][_0x285450('0xd')]=function(_0x259db1,_0x5b144e,_0x5af795){const _0x5f1cb9=_0x285450,_0x17b346=this;this['sequence'][_0x5f1cb9('0x9')](function(){const _0x267eb5=_0x5f1cb9;return _0x17b346[_0x267eb5('0x21')][_0x267eb5('0xd')](_0x259db1,_0x5b144e,_0x5af795)[_0x267eb5('0x13')](function(){const _0x529455=_0x267eb5;logger[_0x529455('0x22')](_0x529455('0x20'),_0x5b144e,_0x259db1);})[_0x267eb5('0x3')](function(_0x46f2f7){const _0x4db745=_0x267eb5;logger[_0x4db745('0x22')](JSON['stringify'](_0x46f2f7));});});},Migration['prototype'][_0x285450('0x1f')]=function(_0xa25356,_0x3e3ac0,_0x512e6e){const _0x5c15fa=_0x285450,_0x3996f8=this;this[_0x5c15fa('0x1')]['enqueue'](function(){const _0x2cf03c=_0x5c15fa;return _0x3996f8[_0x2cf03c('0x21')][_0x2cf03c('0x1f')](_0xa25356,_0x3e3ac0,_0x512e6e)[_0x2cf03c('0x13')](function(){const _0x5bf46f=_0x2cf03c;logger[_0x5bf46f('0x22')](_0x5bf46f('0x4'),_0x3e3ac0,_0xa25356);})[_0x2cf03c('0x3')](function(_0x5a9277){const _0x2bf858=_0x2cf03c;logger[_0x2bf858('0x22')](JSON['stringify'](_0x5a9277));});});},Migration['prototype'][_0x285450('0x2')]=function(_0x596681){const _0x563cce=_0x285450,_0x5a4313=this;this['sequence'][_0x563cce('0x9')](function(){const _0x42006a=_0x563cce;return _0x5a4313[_0x42006a('0x21')][_0x42006a('0x2')](_0x596681,{'force':!![]})[_0x42006a('0x13')](function(){logger['info']('table\x20dropped\x20%s',_0x596681);})[_0x42006a('0x3')](function(_0xe74524){const _0x32b3e4=_0x42006a;logger['info'](JSON[_0x32b3e4('0xc')](_0xe74524));});});},Migration['prototype'][_0x285450('0x24')]=function(_0x40a1a4,_0x17de97,_0x8e281d){const _0x57c202=_0x285450,_0xde508f=this;this['sequence'][_0x57c202('0x9')](function(){const _0x29af12=_0x57c202;return _0xde508f[_0x29af12('0x21')]['addIndex'](_0x40a1a4,_0x17de97,{'indexName':_0x8e281d['indexName'],'indicesType':_0x8e281d[_0x29af12('0x10')]})['then'](function(){const _0x287b3f=_0x29af12;logger[_0x287b3f('0x22')](_0x287b3f('0x1c'),_0x40a1a4,_0x17de97[_0x287b3f('0x8')](','),_0x8e281d[_0x287b3f('0x1a')],_0x8e281d[_0x287b3f('0x10')]);})[_0x29af12('0x3')](function(_0x44cb42){const _0x7681b0=_0x29af12;logger['info'](JSON[_0x7681b0('0xc')](_0x44cb42));});});},Migration[_0x285450('0x0')][_0x285450('0xa')]=function(_0x389778,_0x6e95d5){const _0x5b83ff=_0x285450,_0x47d315=this;this[_0x5b83ff('0x1')]['enqueue'](function(){const _0x3f2bb7=_0x5b83ff;return _0x47d315[_0x3f2bb7('0x21')][_0x3f2bb7('0xa')](_0x389778,_0x6e95d5)[_0x3f2bb7('0x13')](function(){const _0x3e4f1b=_0x3f2bb7;logger[_0x3e4f1b('0x22')](_0x3e4f1b('0x16'),_0x389778,_0x6e95d5);})[_0x3f2bb7('0x3')](function(_0x3ce83e){const _0x10800a=_0x3f2bb7;logger[_0x10800a('0x22')](JSON[_0x10800a('0xc')](_0x3ce83e));});});},Migration['prototype'][_0x285450('0x11')]=function(_0x495bff){const _0x268d21=_0x285450,_0x21e7da=this;this[_0x268d21('0x1')]['enqueue'](function(){const _0x5a97f9=_0x268d21;return _0x21e7da['queryInterface'][_0x5a97f9('0x1e')][_0x5a97f9('0x11')](_0x495bff)[_0x5a97f9('0x13')](function(){const _0x2ac6ad=_0x5a97f9;logger[_0x2ac6ad('0x22')](_0x2ac6ad('0xf'),_0x495bff);})[_0x5a97f9('0x3')](function(_0x2c4490){logger['info'](JSON['stringify'](_0x2c4490));});});},Migration[_0x285450('0x0')][_0x285450('0x19')]=function(_0x2a6289,_0x235230){const _0x3ed6c4=_0x285450,_0x4a1269=this;this[_0x3ed6c4('0x1')][_0x3ed6c4('0x9')](function(){const _0x5ab0dc=_0x3ed6c4;return _0x4a1269[_0x5ab0dc('0x21')][_0x5ab0dc('0x19')](_0x2a6289,_0x235230)['then'](function(){const _0x31f79c=_0x5ab0dc;logger[_0x31f79c('0x22')](_0x31f79c('0x15'),_0x235230,_0x2a6289);})[_0x5ab0dc('0x3')](function(_0x3099ee){const _0x34534a=_0x5ab0dc;logger[_0x34534a('0x22')](util[_0x34534a('0x1d')](_0x3099ee,{'showHidden':![],'depth':null}));});});},Migration[_0x285450('0x0')]['renameColumn']=function(_0x5995fb,_0x47b654,_0x10e8db){const _0x295490=_0x285450,_0x402688=this;this[_0x295490('0x1')][_0x295490('0x9')](function(){const _0x1a3052=_0x295490;return _0x402688[_0x1a3052('0x21')][_0x1a3052('0x12')](_0x5995fb,_0x47b654,_0x10e8db)['then'](function(){const _0x4040f6=_0x1a3052;logger[_0x4040f6('0x22')](_0x4040f6('0x7'),_0x47b654,_0x10e8db,_0x5995fb);})[_0x1a3052('0x3')](function(_0x4a473c){const _0x24987d=_0x1a3052;logger[_0x24987d('0x22')](util[_0x24987d('0x1d')](_0x4a473c,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x285450('0x1b')]=function(_0x58c912){const _0x3a45d0=_0x285450;this[_0x3a45d0('0x1')][_0x3a45d0('0x9')](function(){return _0x58c912();});},module[_0x285450('0xb')]={'up':function(_0x59a704,_0x1a03ef){return new Promise(function(_0x1e932e){const _0x1a1cf1=a996_0x470e,_0x5f14c2=new Migration(_0x59a704);_0x5f14c2[_0x1a1cf1('0x1f')](_0x1a1cf1('0x6'),_0x1a1cf1('0x14'),{'type':_0x1a03ef[_0x1a1cf1('0x5')],'defaultValue':![]}),_0x5f14c2['final'](_0x1e932e);});},'down':function(){}};
\ No newline at end of file