Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.15.js
index 04c3fbf..52f341b 100644 (file)
@@ -1 +1 @@
-const a998_0x51b4=['table\x20dropped\x20%s','../config/logger','stringify','dropTable','inspect','renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','indicesType','info','addIndex','changeColumn','util','Removed\x20column\x20%s\x20from\x20%s','query','then','addColumn','sequence','catch','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tail','indexName','addIndex\x20%s\x20%s\x20%s\x20[%s]','exports','prototype','removeIndex','UPDATE\x20sms_accounts\x20SET\x20baseUrl\x20=\x20\x22https://sms.csc.lv\x22\x20WHERE\x20type\x20=\x20\x22csc\x22','final','queryInterface','enqueue','removeColumn'];(function(_0x48a32a,_0x51b480){const _0x41a08e=function(_0x1bcfbd){while(--_0x1bcfbd){_0x48a32a['push'](_0x48a32a['shift']());}};_0x41a08e(++_0x51b480);}(a998_0x51b4,0x11e));const a998_0x41a0=function(_0x48a32a,_0x51b480){_0x48a32a=_0x48a32a-0x0;let _0x41a08e=a998_0x51b4[_0x48a32a];return _0x41a08e;};const _0x3167e0=a998_0x41a0;'use strict';const util=require(_0x3167e0('0x19')),logger=require(_0x3167e0('0xf'))('migration'),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x1bcfbd){const _0x4fc20e=_0x3167e0;this[_0x4fc20e('0x3')]=this[_0x4fc20e('0x3')]?this[_0x4fc20e('0x3')]['finally'](_0x1bcfbd):_0x1bcfbd();};const Migration=function(_0x206aad){const _0x3d1805=_0x3167e0;this[_0x3d1805('0xb')]=_0x206aad,this[_0x3d1805('0x0')]=new Sequence();};Migration['prototype'][_0x3167e0('0x18')]=function(_0x11a2c4,_0x3c6ae4,_0x59d6e7){const _0x5a532b=_0x3167e0,_0x50940f=this;this[_0x5a532b('0x0')]['enqueue'](function(){const _0x220501=_0x5a532b;return _0x50940f[_0x220501('0xb')]['changeColumn'](_0x11a2c4,_0x3c6ae4,_0x59d6e7)[_0x220501('0x1c')](function(){const _0x50c939=_0x220501;logger['info'](_0x50c939('0x14'),_0x3c6ae4,_0x11a2c4);})['catch'](function(_0x3817d5){const _0x3e7a80=_0x220501;logger['info'](JSON[_0x3e7a80('0x10')](_0x3817d5));});});},Migration[_0x3167e0('0x7')][_0x3167e0('0x1d')]=function(_0x356036,_0x188ad3,_0xbb8dd5){const _0x2e44f0=_0x3167e0,_0x2a4999=this;this['sequence'][_0x2e44f0('0xc')](function(){const _0x33edc4=_0x2e44f0;return _0x2a4999[_0x33edc4('0xb')][_0x33edc4('0x1d')](_0x356036,_0x188ad3,_0xbb8dd5)[_0x33edc4('0x1c')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x188ad3,_0x356036);})['catch'](function(_0x5e381b){const _0x437e3c=_0x33edc4;logger[_0x437e3c('0x16')](JSON[_0x437e3c('0x10')](_0x5e381b));});});},Migration[_0x3167e0('0x7')]['dropTable']=function(_0x427efe){const _0x31e922=_0x3167e0,_0x17b57f=this;this['sequence'][_0x31e922('0xc')](function(){const _0x2029e8=_0x31e922;return _0x17b57f[_0x2029e8('0xb')][_0x2029e8('0x11')](_0x427efe,{'force':!![]})[_0x2029e8('0x1c')](function(){const _0x25272b=_0x2029e8;logger[_0x25272b('0x16')](_0x25272b('0xe'),_0x427efe);})[_0x2029e8('0x1')](function(_0x5ba739){const _0x430509=_0x2029e8;logger[_0x430509('0x16')](JSON[_0x430509('0x10')](_0x5ba739));});});},Migration[_0x3167e0('0x7')][_0x3167e0('0x17')]=function(_0x4c9a6d,_0x128f85,_0x450719){const _0x5a5bb9=_0x3167e0,_0x3ee71d=this;this[_0x5a5bb9('0x0')][_0x5a5bb9('0xc')](function(){const _0xfc110e=_0x5a5bb9;return _0x3ee71d[_0xfc110e('0xb')][_0xfc110e('0x17')](_0x4c9a6d,_0x128f85,{'indexName':_0x450719[_0xfc110e('0x4')],'indicesType':_0x450719[_0xfc110e('0x15')]})['then'](function(){const _0x49f279=_0xfc110e;logger[_0x49f279('0x16')](_0x49f279('0x5'),_0x4c9a6d,_0x128f85['join'](','),_0x450719[_0x49f279('0x4')],_0x450719[_0x49f279('0x15')]);})['catch'](function(_0x34ed2f){const _0x357c4a=_0xfc110e;logger[_0x357c4a('0x16')](JSON[_0x357c4a('0x10')](_0x34ed2f));});});},Migration[_0x3167e0('0x7')][_0x3167e0('0x8')]=function(_0x32ca73,_0x4b04f2){const _0x3be964=_0x3167e0,_0x531402=this;this[_0x3be964('0x0')][_0x3be964('0xc')](function(){const _0x1206cf=_0x3be964;return _0x531402[_0x1206cf('0xb')]['removeIndex'](_0x32ca73,_0x4b04f2)[_0x1206cf('0x1c')](function(){const _0x37be0d=_0x1206cf;logger[_0x37be0d('0x16')]('removeIndex\x20%s\x20%s',_0x32ca73,_0x4b04f2);})['catch'](function(_0x3c7b8c){const _0x29c8f8=_0x1206cf;logger[_0x29c8f8('0x16')](JSON['stringify'](_0x3c7b8c));});});},Migration[_0x3167e0('0x7')][_0x3167e0('0x1b')]=function(_0x45ee57){const _0x418244=_0x3167e0,_0x33e0c5=this;this[_0x418244('0x0')][_0x418244('0xc')](function(){const _0x4bbbf1=_0x418244;return _0x33e0c5['queryInterface']['sequelize'][_0x4bbbf1('0x1b')](_0x45ee57)[_0x4bbbf1('0x1c')](function(){const _0x42a01e=_0x4bbbf1;logger[_0x42a01e('0x16')]('query\x20%s',_0x45ee57);})[_0x4bbbf1('0x1')](function(_0x5d0e4a){const _0x600a84=_0x4bbbf1;logger['info'](JSON[_0x600a84('0x10')](_0x5d0e4a));});});},Migration[_0x3167e0('0x7')][_0x3167e0('0xd')]=function(_0x30f3f1,_0x3c423c){const _0x51e175=_0x3167e0,_0x24501d=this;this[_0x51e175('0x0')]['enqueue'](function(){const _0x37098c=_0x51e175;return _0x24501d[_0x37098c('0xb')][_0x37098c('0xd')](_0x30f3f1,_0x3c423c)['then'](function(){const _0x4cc5c5=_0x37098c;logger[_0x4cc5c5('0x16')](_0x4cc5c5('0x1a'),_0x3c423c,_0x30f3f1);})[_0x37098c('0x1')](function(_0x16fe0b){logger['info'](util['inspect'](_0x16fe0b,{'showHidden':![],'depth':null}));});});},Migration[_0x3167e0('0x7')][_0x3167e0('0x13')]=function(_0x1bd7e6,_0x4929f5,_0xb24fc0){const _0x1d758d=this;this['sequence']['enqueue'](function(){const _0x5e1715=a998_0x41a0;return _0x1d758d['queryInterface'][_0x5e1715('0x13')](_0x1bd7e6,_0x4929f5,_0xb24fc0)[_0x5e1715('0x1c')](function(){const _0x535761=_0x5e1715;logger[_0x535761('0x16')](_0x535761('0x2'),_0x4929f5,_0xb24fc0,_0x1bd7e6);})[_0x5e1715('0x1')](function(_0xc0b83d){const _0x47723c=_0x5e1715;logger[_0x47723c('0x16')](util[_0x47723c('0x12')](_0xc0b83d,{'showHidden':![],'depth':null}));});});},Migration[_0x3167e0('0x7')][_0x3167e0('0xa')]=function(_0x1efcbe){this['sequence']['enqueue'](function(){return _0x1efcbe();});},module[_0x3167e0('0x6')]={'up':function(_0x4ea72d){return new Promise(function(_0x1f10e1){const _0x2d512b=a998_0x41a0,_0x387a92=new Migration(_0x4ea72d);_0x387a92[_0x2d512b('0x1b')](_0x2d512b('0x9')),_0x387a92[_0x2d512b('0xa')](_0x1f10e1);});},'down':function(){}};
\ No newline at end of file
+const a998_0x595c=['indicesType','join','Changed\x20column\x20%s\x20in\x20table\x20%s','Removed\x20column\x20%s\x20from\x20%s','tail','stringify','removeIndex','finally','renameColumn','migration','query','table\x20dropped\x20%s','query\x20%s','queryInterface','changeColumn','then','addIndex','addColumn','indexName','enqueue','exports','prototype','removeColumn','sequelize','catch','util','UPDATE\x20sms_accounts\x20SET\x20baseUrl\x20=\x20\x22https://sms.csc.lv\x22\x20WHERE\x20type\x20=\x20\x22csc\x22','final','addIndex\x20%s\x20%s\x20%s\x20[%s]','../config/logger','inspect','info','sequence'];(function(_0xd9c7bb,_0x595cf3){const _0x474d29=function(_0x469249){while(--_0x469249){_0xd9c7bb['push'](_0xd9c7bb['shift']());}};_0x474d29(++_0x595cf3);}(a998_0x595c,0x12b));const a998_0x474d=function(_0xd9c7bb,_0x595cf3){_0xd9c7bb=_0xd9c7bb-0x0;let _0x474d29=a998_0x595c[_0xd9c7bb];return _0x474d29;};const _0x1e2212=a998_0x474d;'use strict';const util=require(_0x1e2212('0x17')),logger=require(_0x1e2212('0x1b'))(_0x1e2212('0x7')),Sequence=function(){};Sequence[_0x1e2212('0x13')][_0x1e2212('0x11')]=function(_0x469249){const _0x5b2c3f=_0x1e2212;this[_0x5b2c3f('0x2')]=this['tail']?this['tail'][_0x5b2c3f('0x5')](_0x469249):_0x469249();};const Migration=function(_0x45f02b){const _0x183826=_0x1e2212;this[_0x183826('0xb')]=_0x45f02b,this[_0x183826('0x1e')]=new Sequence();};Migration[_0x1e2212('0x13')][_0x1e2212('0xc')]=function(_0x594edd,_0x4d67a3,_0x43b63f){const _0x2f223b=this;this['sequence']['enqueue'](function(){const _0x56eaa4=a998_0x474d;return _0x2f223b[_0x56eaa4('0xb')]['changeColumn'](_0x594edd,_0x4d67a3,_0x43b63f)['then'](function(){const _0x465d34=_0x56eaa4;logger['info'](_0x465d34('0x0'),_0x4d67a3,_0x594edd);})['catch'](function(_0x3715c0){const _0x33306f=_0x56eaa4;logger[_0x33306f('0x1d')](JSON[_0x33306f('0x3')](_0x3715c0));});});},Migration[_0x1e2212('0x13')][_0x1e2212('0xf')]=function(_0x1d0f7a,_0x5e410c,_0xb60d88){const _0x4ea342=_0x1e2212,_0x1a38a3=this;this[_0x4ea342('0x1e')][_0x4ea342('0x11')](function(){const _0x32ea6b=_0x4ea342;return _0x1a38a3['queryInterface'][_0x32ea6b('0xf')](_0x1d0f7a,_0x5e410c,_0xb60d88)['then'](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x5e410c,_0x1d0f7a);})[_0x32ea6b('0x16')](function(_0x32b913){const _0x382de3=_0x32ea6b;logger[_0x382de3('0x1d')](JSON[_0x382de3('0x3')](_0x32b913));});});},Migration[_0x1e2212('0x13')]['dropTable']=function(_0x2624ec){const _0x54250f=_0x1e2212,_0x4ee5a8=this;this[_0x54250f('0x1e')][_0x54250f('0x11')](function(){const _0x1b11f2=_0x54250f;return _0x4ee5a8[_0x1b11f2('0xb')]['dropTable'](_0x2624ec,{'force':!![]})['then'](function(){const _0x62c2ba=_0x1b11f2;logger[_0x62c2ba('0x1d')](_0x62c2ba('0x9'),_0x2624ec);})[_0x1b11f2('0x16')](function(_0x5f2513){const _0x4f22b4=_0x1b11f2;logger[_0x4f22b4('0x1d')](JSON['stringify'](_0x5f2513));});});},Migration[_0x1e2212('0x13')][_0x1e2212('0xe')]=function(_0x120432,_0x358a20,_0x510d86){const _0x187311=_0x1e2212,_0x2866c3=this;this[_0x187311('0x1e')]['enqueue'](function(){const _0x36a01a=_0x187311;return _0x2866c3[_0x36a01a('0xb')][_0x36a01a('0xe')](_0x120432,_0x358a20,{'indexName':_0x510d86[_0x36a01a('0x10')],'indicesType':_0x510d86[_0x36a01a('0x1f')]})['then'](function(){const _0x3a73fd=_0x36a01a;logger[_0x3a73fd('0x1d')](_0x3a73fd('0x1a'),_0x120432,_0x358a20[_0x3a73fd('0x20')](','),_0x510d86[_0x3a73fd('0x10')],_0x510d86[_0x3a73fd('0x1f')]);})['catch'](function(_0x457356){const _0x42ead1=_0x36a01a;logger[_0x42ead1('0x1d')](JSON[_0x42ead1('0x3')](_0x457356));});});},Migration['prototype'][_0x1e2212('0x4')]=function(_0x5982e0,_0x10e90d){const _0x1ecb8e=_0x1e2212,_0x53d04c=this;this[_0x1ecb8e('0x1e')]['enqueue'](function(){const _0x32129b=_0x1ecb8e;return _0x53d04c['queryInterface'][_0x32129b('0x4')](_0x5982e0,_0x10e90d)[_0x32129b('0xd')](function(){const _0x4a5a30=_0x32129b;logger[_0x4a5a30('0x1d')]('removeIndex\x20%s\x20%s',_0x5982e0,_0x10e90d);})[_0x32129b('0x16')](function(_0x598c4c){const _0x4a49bd=_0x32129b;logger[_0x4a49bd('0x1d')](JSON[_0x4a49bd('0x3')](_0x598c4c));});});},Migration[_0x1e2212('0x13')]['query']=function(_0x20a286){const _0x49d63d=_0x1e2212,_0x4dd2d0=this;this[_0x49d63d('0x1e')]['enqueue'](function(){const _0x2a8941=_0x49d63d;return _0x4dd2d0['queryInterface'][_0x2a8941('0x15')][_0x2a8941('0x8')](_0x20a286)[_0x2a8941('0xd')](function(){const _0xda14d5=_0x2a8941;logger[_0xda14d5('0x1d')](_0xda14d5('0xa'),_0x20a286);})[_0x2a8941('0x16')](function(_0x37ad1f){const _0x218acc=_0x2a8941;logger[_0x218acc('0x1d')](JSON[_0x218acc('0x3')](_0x37ad1f));});});},Migration['prototype'][_0x1e2212('0x14')]=function(_0x4df22a,_0x4835ec){const _0x3b0f6e=_0x1e2212,_0x4a0ab5=this;this[_0x3b0f6e('0x1e')][_0x3b0f6e('0x11')](function(){const _0x5af501=_0x3b0f6e;return _0x4a0ab5[_0x5af501('0xb')]['removeColumn'](_0x4df22a,_0x4835ec)[_0x5af501('0xd')](function(){const _0x5a64e4=_0x5af501;logger[_0x5a64e4('0x1d')](_0x5a64e4('0x1'),_0x4835ec,_0x4df22a);})[_0x5af501('0x16')](function(_0x3be7dd){const _0x48fad7=_0x5af501;logger[_0x48fad7('0x1d')](util['inspect'](_0x3be7dd,{'showHidden':![],'depth':null}));});});},Migration[_0x1e2212('0x13')]['renameColumn']=function(_0x501906,_0x4f695d,_0x2d1a16){const _0xc939=_0x1e2212,_0x288c5a=this;this[_0xc939('0x1e')][_0xc939('0x11')](function(){const _0x45dc3c=_0xc939;return _0x288c5a[_0x45dc3c('0xb')][_0x45dc3c('0x6')](_0x501906,_0x4f695d,_0x2d1a16)[_0x45dc3c('0xd')](function(){const _0x2386f9=_0x45dc3c;logger[_0x2386f9('0x1d')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x4f695d,_0x2d1a16,_0x501906);})[_0x45dc3c('0x16')](function(_0x4efc21){const _0x537de8=_0x45dc3c;logger[_0x537de8('0x1d')](util[_0x537de8('0x1c')](_0x4efc21,{'showHidden':![],'depth':null}));});});},Migration[_0x1e2212('0x13')][_0x1e2212('0x19')]=function(_0xeae71c){const _0x531721=_0x1e2212;this[_0x531721('0x1e')][_0x531721('0x11')](function(){return _0xeae71c();});},module[_0x1e2212('0x12')]={'up':function(_0x5015c0){return new Promise(function(_0x1e138f){const _0x57cdeb=a998_0x474d,_0x545a82=new Migration(_0x5015c0);_0x545a82[_0x57cdeb('0x8')](_0x57cdeb('0x18')),_0x545a82['final'](_0x1e138f);});},'down':function(){}};
\ No newline at end of file