Built motion from commit 82a371561bcdbc7605c801e5e414f4032ba9e7ad. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.15.js
index a6f594b..f7e17b4 100644 (file)
@@ -1 +1 @@
-const a998_0x1d86=['then','addIndex\x20%s\x20%s\x20%s\x20[%s]','sequence','catch','tail','renameColumn','removeColumn','UPDATE\x20sms_accounts\x20SET\x20baseUrl\x20=\x20\x22https://sms.csc.lv\x22\x20WHERE\x20type\x20=\x20\x22csc\x22','migration','addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query\x20%s','finally','Changed\x20column\x20%s\x20in\x20table\x20%s','info','table\x20dropped\x20%s','indicesType','Removed\x20column\x20%s\x20from\x20%s','queryInterface','enqueue','query','util','stringify','dropTable','prototype','Added\x20column\x20%s\x20to\x20%s','removeIndex','final','changeColumn','../config/logger','indexName','inspect','sequelize'];(function(_0x3c56c4,_0x1d8657){const _0x2217f1=function(_0x122d3e){while(--_0x122d3e){_0x3c56c4['push'](_0x3c56c4['shift']());}};_0x2217f1(++_0x1d8657);}(a998_0x1d86,0xc2));const a998_0x2217=function(_0x3c56c4,_0x1d8657){_0x3c56c4=_0x3c56c4-0x0;let _0x2217f1=a998_0x1d86[_0x3c56c4];return _0x2217f1;};const _0x25738e=a998_0x2217;'use strict';const util=require(_0x25738e('0x19')),logger=require(_0x25738e('0x0'))(_0x25738e('0xc')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x122d3e){const _0x4a2487=_0x25738e;this[_0x4a2487('0x8')]=this['tail']?this['tail'][_0x4a2487('0x10')](_0x122d3e):_0x122d3e();};const Migration=function(_0x3a7972){const _0x2e7690=_0x25738e;this[_0x2e7690('0x16')]=_0x3a7972,this[_0x2e7690('0x6')]=new Sequence();};Migration[_0x25738e('0x1c')][_0x25738e('0x20')]=function(_0x4dc50b,_0x4692ea,_0x563522){const _0x4bf3d5=_0x25738e,_0x2127b6=this;this[_0x4bf3d5('0x6')][_0x4bf3d5('0x17')](function(){const _0x563b34=_0x4bf3d5;return _0x2127b6[_0x563b34('0x16')][_0x563b34('0x20')](_0x4dc50b,_0x4692ea,_0x563522)['then'](function(){const _0x4052f0=_0x563b34;logger[_0x4052f0('0x12')](_0x4052f0('0x11'),_0x4692ea,_0x4dc50b);})[_0x563b34('0x7')](function(_0x552601){const _0x4b7cef=_0x563b34;logger[_0x4b7cef('0x12')](JSON[_0x4b7cef('0x1a')](_0x552601));});});},Migration[_0x25738e('0x1c')]['addColumn']=function(_0x185120,_0x11ec70,_0x2175a2){const _0x443352=_0x25738e,_0x36224f=this;this['sequence'][_0x443352('0x17')](function(){const _0x52fb2e=_0x443352;return _0x36224f[_0x52fb2e('0x16')]['addColumn'](_0x185120,_0x11ec70,_0x2175a2)[_0x52fb2e('0x4')](function(){const _0x374922=_0x52fb2e;logger[_0x374922('0x12')](_0x374922('0x1d'),_0x11ec70,_0x185120);})['catch'](function(_0xd2a27d){const _0x58cac8=_0x52fb2e;logger['info'](JSON[_0x58cac8('0x1a')](_0xd2a27d));});});},Migration['prototype'][_0x25738e('0x1b')]=function(_0x34ad96){const _0x1cf8e2=_0x25738e,_0x1b6e31=this;this['sequence'][_0x1cf8e2('0x17')](function(){const _0x7b2443=_0x1cf8e2;return _0x1b6e31[_0x7b2443('0x16')][_0x7b2443('0x1b')](_0x34ad96,{'force':!![]})[_0x7b2443('0x4')](function(){const _0x151380=_0x7b2443;logger[_0x151380('0x12')](_0x151380('0x13'),_0x34ad96);})[_0x7b2443('0x7')](function(_0x586d29){const _0x20ad73=_0x7b2443;logger['info'](JSON[_0x20ad73('0x1a')](_0x586d29));});});},Migration[_0x25738e('0x1c')][_0x25738e('0xd')]=function(_0x406239,_0x39ac16,_0x3a3a67){const _0x2dda93=_0x25738e,_0x2ed462=this;this[_0x2dda93('0x6')]['enqueue'](function(){const _0x107673=_0x2dda93;return _0x2ed462[_0x107673('0x16')]['addIndex'](_0x406239,_0x39ac16,{'indexName':_0x3a3a67[_0x107673('0x1')],'indicesType':_0x3a3a67[_0x107673('0x14')]})[_0x107673('0x4')](function(){const _0x5ebd2a=_0x107673;logger[_0x5ebd2a('0x12')](_0x5ebd2a('0x5'),_0x406239,_0x39ac16['join'](','),_0x3a3a67[_0x5ebd2a('0x1')],_0x3a3a67[_0x5ebd2a('0x14')]);})['catch'](function(_0x16ffc9){const _0x3bbae2=_0x107673;logger[_0x3bbae2('0x12')](JSON[_0x3bbae2('0x1a')](_0x16ffc9));});});},Migration['prototype']['removeIndex']=function(_0x37a0fb,_0xb4085f){const _0x31d914=_0x25738e,_0x1d5828=this;this[_0x31d914('0x6')][_0x31d914('0x17')](function(){const _0x476955=_0x31d914;return _0x1d5828[_0x476955('0x16')][_0x476955('0x1e')](_0x37a0fb,_0xb4085f)[_0x476955('0x4')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x37a0fb,_0xb4085f);})[_0x476955('0x7')](function(_0x4a4d32){const _0x4bea7c=_0x476955;logger[_0x4bea7c('0x12')](JSON[_0x4bea7c('0x1a')](_0x4a4d32));});});},Migration[_0x25738e('0x1c')][_0x25738e('0x18')]=function(_0x5d39bd){const _0x585cf2=_0x25738e,_0x213333=this;this[_0x585cf2('0x6')][_0x585cf2('0x17')](function(){const _0x2ea8b0=_0x585cf2;return _0x213333['queryInterface'][_0x2ea8b0('0x3')][_0x2ea8b0('0x18')](_0x5d39bd)[_0x2ea8b0('0x4')](function(){const _0x30379b=_0x2ea8b0;logger[_0x30379b('0x12')](_0x30379b('0xf'),_0x5d39bd);})[_0x2ea8b0('0x7')](function(_0x538939){const _0x3cd776=_0x2ea8b0;logger['info'](JSON[_0x3cd776('0x1a')](_0x538939));});});},Migration['prototype'][_0x25738e('0xa')]=function(_0x8ec764,_0x4b1242){const _0x9785c3=_0x25738e,_0x1cab5b=this;this[_0x9785c3('0x6')][_0x9785c3('0x17')](function(){const _0x10b6f6=_0x9785c3;return _0x1cab5b[_0x10b6f6('0x16')]['removeColumn'](_0x8ec764,_0x4b1242)[_0x10b6f6('0x4')](function(){const _0xafea90=_0x10b6f6;logger[_0xafea90('0x12')](_0xafea90('0x15'),_0x4b1242,_0x8ec764);})['catch'](function(_0x4c44af){const _0xf7cd7e=_0x10b6f6;logger[_0xf7cd7e('0x12')](util[_0xf7cd7e('0x2')](_0x4c44af,{'showHidden':![],'depth':null}));});});},Migration[_0x25738e('0x1c')][_0x25738e('0x9')]=function(_0x2c313a,_0x354994,_0x43d0fd){const _0x47d8ff=this;this['sequence']['enqueue'](function(){const _0x3bb278=a998_0x2217;return _0x47d8ff['queryInterface'][_0x3bb278('0x9')](_0x2c313a,_0x354994,_0x43d0fd)['then'](function(){const _0x2dd293=_0x3bb278;logger[_0x2dd293('0x12')](_0x2dd293('0xe'),_0x354994,_0x43d0fd,_0x2c313a);})[_0x3bb278('0x7')](function(_0x2dfdcf){const _0x2ac941=_0x3bb278;logger[_0x2ac941('0x12')](util[_0x2ac941('0x2')](_0x2dfdcf,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x25738e('0x1f')]=function(_0xec70db){const _0x16c899=_0x25738e;this[_0x16c899('0x6')][_0x16c899('0x17')](function(){return _0xec70db();});},module['exports']={'up':function(_0x4ec3ab){return new Promise(function(_0x4d7998){const _0x2ea666=a998_0x2217,_0x742693=new Migration(_0x4ec3ab);_0x742693[_0x2ea666('0x18')](_0x2ea666('0xb')),_0x742693[_0x2ea666('0x1f')](_0x4d7998);});},'down':function(){}};
\ No newline at end of file
+const a998_0xf871=['final','UPDATE\x20sms_accounts\x20SET\x20baseUrl\x20=\x20\x22https://sms.csc.lv\x22\x20WHERE\x20type\x20=\x20\x22csc\x22','table\x20dropped\x20%s','indicesType','prototype','sequence','migration','exports','catch','then','removeIndex\x20%s\x20%s','queryInterface','indexName','inspect','addColumn','query','enqueue','Removed\x20column\x20%s\x20from\x20%s','finally','stringify','removeColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','dropTable','changeColumn','Added\x20column\x20%s\x20to\x20%s','info','tail','removeIndex','sequelize','../config/logger','renameColumn'];(function(_0x274e9b,_0xf87187){const _0x5db4c7=function(_0x352ea8){while(--_0x352ea8){_0x274e9b['push'](_0x274e9b['shift']());}};_0x5db4c7(++_0xf87187);}(a998_0xf871,0x165));const a998_0x5db4=function(_0x274e9b,_0xf87187){_0x274e9b=_0x274e9b-0x0;let _0x5db4c7=a998_0xf871[_0x274e9b];return _0x5db4c7;};const _0x3967e2=a998_0x5db4;'use strict';const util=require('util'),logger=require(_0x3967e2('0xd'))(_0x3967e2('0x15')),Sequence=function(){};Sequence[_0x3967e2('0x13')]['enqueue']=function(_0x352ea8){const _0x29ef14=_0x3967e2;this[_0x29ef14('0xa')]=this[_0x29ef14('0xa')]?this[_0x29ef14('0xa')][_0x29ef14('0x2')](_0x352ea8):_0x352ea8();};const Migration=function(_0x1514cf){const _0x60384b=_0x3967e2;this[_0x60384b('0x1a')]=_0x1514cf,this[_0x60384b('0x14')]=new Sequence();};Migration['prototype'][_0x3967e2('0x7')]=function(_0x48f663,_0x4db7e2,_0x323ecc){const _0x13e288=_0x3967e2,_0xd8fed6=this;this['sequence'][_0x13e288('0x0')](function(){const _0x1b241f=_0x13e288;return _0xd8fed6[_0x1b241f('0x1a')][_0x1b241f('0x7')](_0x48f663,_0x4db7e2,_0x323ecc)[_0x1b241f('0x18')](function(){const _0xd2cb2f=_0x1b241f;logger[_0xd2cb2f('0x9')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4db7e2,_0x48f663);})[_0x1b241f('0x17')](function(_0x28726f){const _0x3d2c73=_0x1b241f;logger['info'](JSON[_0x3d2c73('0x3')](_0x28726f));});});},Migration['prototype'][_0x3967e2('0x1d')]=function(_0x59307e,_0x230894,_0x453050){const _0x54d0d7=_0x3967e2,_0x181a46=this;this[_0x54d0d7('0x14')][_0x54d0d7('0x0')](function(){const _0x50d3fb=_0x54d0d7;return _0x181a46[_0x50d3fb('0x1a')][_0x50d3fb('0x1d')](_0x59307e,_0x230894,_0x453050)[_0x50d3fb('0x18')](function(){const _0x2f2d31=_0x50d3fb;logger[_0x2f2d31('0x9')](_0x2f2d31('0x8'),_0x230894,_0x59307e);})[_0x50d3fb('0x17')](function(_0x14e290){const _0x1f9429=_0x50d3fb;logger[_0x1f9429('0x9')](JSON[_0x1f9429('0x3')](_0x14e290));});});},Migration[_0x3967e2('0x13')][_0x3967e2('0x6')]=function(_0x13345c){const _0x3f2328=_0x3967e2,_0x25ba92=this;this[_0x3f2328('0x14')][_0x3f2328('0x0')](function(){const _0x185b69=_0x3f2328;return _0x25ba92[_0x185b69('0x1a')]['dropTable'](_0x13345c,{'force':!![]})['then'](function(){const _0x19482b=_0x185b69;logger[_0x19482b('0x9')](_0x19482b('0x11'),_0x13345c);})[_0x185b69('0x17')](function(_0x521b0a){const _0x36706c=_0x185b69;logger[_0x36706c('0x9')](JSON[_0x36706c('0x3')](_0x521b0a));});});},Migration[_0x3967e2('0x13')]['addIndex']=function(_0x21d293,_0x114f4e,_0x4d6271){const _0x48da09=_0x3967e2,_0x2a2d2f=this;this[_0x48da09('0x14')][_0x48da09('0x0')](function(){const _0x2ce690=_0x48da09;return _0x2a2d2f[_0x2ce690('0x1a')]['addIndex'](_0x21d293,_0x114f4e,{'indexName':_0x4d6271[_0x2ce690('0x1b')],'indicesType':_0x4d6271[_0x2ce690('0x12')]})[_0x2ce690('0x18')](function(){const _0x17ff9e=_0x2ce690;logger[_0x17ff9e('0x9')](_0x17ff9e('0x5'),_0x21d293,_0x114f4e['join'](','),_0x4d6271[_0x17ff9e('0x1b')],_0x4d6271['indicesType']);})[_0x2ce690('0x17')](function(_0x17e2ab){const _0x2b77be=_0x2ce690;logger['info'](JSON[_0x2b77be('0x3')](_0x17e2ab));});});},Migration[_0x3967e2('0x13')][_0x3967e2('0xb')]=function(_0x40d22e,_0x25d925){const _0x759ec4=_0x3967e2,_0x381057=this;this[_0x759ec4('0x14')][_0x759ec4('0x0')](function(){const _0x4b66eb=_0x759ec4;return _0x381057[_0x4b66eb('0x1a')][_0x4b66eb('0xb')](_0x40d22e,_0x25d925)[_0x4b66eb('0x18')](function(){const _0x16df74=_0x4b66eb;logger[_0x16df74('0x9')](_0x16df74('0x19'),_0x40d22e,_0x25d925);})[_0x4b66eb('0x17')](function(_0x16b4ef){const _0x8758f4=_0x4b66eb;logger[_0x8758f4('0x9')](JSON[_0x8758f4('0x3')](_0x16b4ef));});});},Migration['prototype']['query']=function(_0x23ff21){const _0x28cb24=_0x3967e2,_0x3bf3ce=this;this[_0x28cb24('0x14')][_0x28cb24('0x0')](function(){const _0x30d57a=_0x28cb24;return _0x3bf3ce['queryInterface'][_0x30d57a('0xc')]['query'](_0x23ff21)[_0x30d57a('0x18')](function(){const _0x1424e2=_0x30d57a;logger[_0x1424e2('0x9')]('query\x20%s',_0x23ff21);})[_0x30d57a('0x17')](function(_0x549a6c){const _0x78e1b6=_0x30d57a;logger[_0x78e1b6('0x9')](JSON[_0x78e1b6('0x3')](_0x549a6c));});});},Migration['prototype'][_0x3967e2('0x4')]=function(_0x14bd36,_0x394fee){const _0x4889bb=_0x3967e2,_0x2ca8a9=this;this[_0x4889bb('0x14')][_0x4889bb('0x0')](function(){const _0x43f944=_0x4889bb;return _0x2ca8a9['queryInterface']['removeColumn'](_0x14bd36,_0x394fee)[_0x43f944('0x18')](function(){const _0xc08338=_0x43f944;logger['info'](_0xc08338('0x1'),_0x394fee,_0x14bd36);})[_0x43f944('0x17')](function(_0x5e149f){const _0x5d838c=_0x43f944;logger[_0x5d838c('0x9')](util[_0x5d838c('0x1c')](_0x5e149f,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3967e2('0xe')]=function(_0x1205e3,_0x3eda69,_0x8f56e4){const _0x2d0df1=_0x3967e2,_0x53b9ba=this;this['sequence'][_0x2d0df1('0x0')](function(){const _0x592a8a=_0x2d0df1;return _0x53b9ba[_0x592a8a('0x1a')][_0x592a8a('0xe')](_0x1205e3,_0x3eda69,_0x8f56e4)[_0x592a8a('0x18')](function(){const _0x546997=_0x592a8a;logger[_0x546997('0x9')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x3eda69,_0x8f56e4,_0x1205e3);})['catch'](function(_0x4e4253){const _0x1b8a16=_0x592a8a;logger[_0x1b8a16('0x9')](util[_0x1b8a16('0x1c')](_0x4e4253,{'showHidden':![],'depth':null}));});});},Migration[_0x3967e2('0x13')][_0x3967e2('0xf')]=function(_0xc2191e){const _0x249b18=_0x3967e2;this[_0x249b18('0x14')][_0x249b18('0x0')](function(){return _0xc2191e();});},module[_0x3967e2('0x16')]={'up':function(_0x1c788f){return new Promise(function(_0x173515){const _0x1695dc=a998_0x5db4,_0x3b1d1b=new Migration(_0x1c788f);_0x3b1d1b[_0x1695dc('0x1e')](_0x1695dc('0x10')),_0x3b1d1b[_0x1695dc('0xf')](_0x173515);});},'down':function(){}};
\ No newline at end of file