Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.15.js
index 52f341b..d4b08d6 100644 (file)
@@ -1 +1 @@
-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
+const a998_0x2c8e=['addIndex\x20%s\x20%s\x20%s\x20[%s]','removeIndex\x20%s\x20%s','sequence','../config/logger','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','queryInterface','then','migration','inspect','removeIndex','prototype','util','table\x20dropped\x20%s','sequelize','addIndex','info','query','Changed\x20column\x20%s\x20in\x20table\x20%s','removeColumn','indexName','tail','stringify','exports','query\x20%s','addColumn','renameColumn','UPDATE\x20sms_accounts\x20SET\x20baseUrl\x20=\x20\x22https://sms.csc.lv\x22\x20WHERE\x20type\x20=\x20\x22csc\x22','dropTable','indicesType','join','enqueue','catch','finally','final','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x239644,_0x2c8e38){const _0x2847e6=function(_0x4afa01){while(--_0x4afa01){_0x239644['push'](_0x239644['shift']());}};_0x2847e6(++_0x2c8e38);}(a998_0x2c8e,0x10e));const a998_0x2847=function(_0x239644,_0x2c8e38){_0x239644=_0x239644-0x0;let _0x2847e6=a998_0x2c8e[_0x239644];return _0x2847e6;};const _0x438ea6=a998_0x2847;'use strict';const util=require(_0x438ea6('0x15')),logger=require(_0x438ea6('0xd'))(_0x438ea6('0x11')),Sequence=function(){};Sequence[_0x438ea6('0x14')]['enqueue']=function(_0x4afa01){const _0x258718=_0x438ea6;this[_0x258718('0x1e')]=this[_0x258718('0x1e')]?this[_0x258718('0x1e')][_0x258718('0x7')](_0x4afa01):_0x4afa01();};const Migration=function(_0x9578ff){const _0x3d0ed7=_0x438ea6;this['queryInterface']=_0x9578ff,this[_0x3d0ed7('0xc')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x3a496b,_0x4919ae,_0x1d74e2){const _0x31c5d2=_0x438ea6,_0x12907d=this;this['sequence'][_0x31c5d2('0x5')](function(){const _0x17b406=_0x31c5d2;return _0x12907d['queryInterface']['changeColumn'](_0x3a496b,_0x4919ae,_0x1d74e2)['then'](function(){const _0x4bdd19=a998_0x2847;logger['info'](_0x4bdd19('0x1b'),_0x4919ae,_0x3a496b);})[_0x17b406('0x6')](function(_0x3d29ee){const _0x3da3c6=_0x17b406;logger[_0x3da3c6('0x19')](JSON[_0x3da3c6('0x1f')](_0x3d29ee));});});},Migration[_0x438ea6('0x14')][_0x438ea6('0x22')]=function(_0x1e9a88,_0x3d1c28,_0x282837){const _0x10d1c0=_0x438ea6,_0x409b92=this;this[_0x10d1c0('0xc')][_0x10d1c0('0x5')](function(){const _0x754f46=_0x10d1c0;return _0x409b92[_0x754f46('0xf')][_0x754f46('0x22')](_0x1e9a88,_0x3d1c28,_0x282837)[_0x754f46('0x10')](function(){const _0x3ab1a5=_0x754f46;logger[_0x3ab1a5('0x19')]('Added\x20column\x20%s\x20to\x20%s',_0x3d1c28,_0x1e9a88);})[_0x754f46('0x6')](function(_0x5e4104){logger['info'](JSON['stringify'](_0x5e4104));});});},Migration['prototype']['dropTable']=function(_0x4baee6){const _0x1f51b5=_0x438ea6,_0x401efc=this;this['sequence'][_0x1f51b5('0x5')](function(){const _0x1cf7d8=_0x1f51b5;return _0x401efc['queryInterface'][_0x1cf7d8('0x2')](_0x4baee6,{'force':!![]})[_0x1cf7d8('0x10')](function(){const _0x1c31ed=_0x1cf7d8;logger[_0x1c31ed('0x19')](_0x1c31ed('0x16'),_0x4baee6);})[_0x1cf7d8('0x6')](function(_0x1e47d2){const _0x8afe5f=_0x1cf7d8;logger['info'](JSON[_0x8afe5f('0x1f')](_0x1e47d2));});});},Migration[_0x438ea6('0x14')][_0x438ea6('0x18')]=function(_0x2d2bd4,_0x224a3e,_0x2f1bc1){const _0x31f19a=_0x438ea6,_0x11337a=this;this[_0x31f19a('0xc')][_0x31f19a('0x5')](function(){const _0x460e55=_0x31f19a;return _0x11337a[_0x460e55('0xf')][_0x460e55('0x18')](_0x2d2bd4,_0x224a3e,{'indexName':_0x2f1bc1[_0x460e55('0x1d')],'indicesType':_0x2f1bc1[_0x460e55('0x3')]})[_0x460e55('0x10')](function(){const _0x8196f5=_0x460e55;logger['info'](_0x8196f5('0xa'),_0x2d2bd4,_0x224a3e[_0x8196f5('0x4')](','),_0x2f1bc1[_0x8196f5('0x1d')],_0x2f1bc1[_0x8196f5('0x3')]);})[_0x460e55('0x6')](function(_0x8416b7){const _0x1a735d=_0x460e55;logger[_0x1a735d('0x19')](JSON['stringify'](_0x8416b7));});});},Migration['prototype'][_0x438ea6('0x13')]=function(_0x3569bf,_0x5ea166){const _0xf5a5=_0x438ea6,_0x45867b=this;this[_0xf5a5('0xc')]['enqueue'](function(){const _0x207509=_0xf5a5;return _0x45867b[_0x207509('0xf')][_0x207509('0x13')](_0x3569bf,_0x5ea166)[_0x207509('0x10')](function(){const _0x302919=_0x207509;logger[_0x302919('0x19')](_0x302919('0xb'),_0x3569bf,_0x5ea166);})[_0x207509('0x6')](function(_0x3451d4){const _0x176abe=_0x207509;logger[_0x176abe('0x19')](JSON[_0x176abe('0x1f')](_0x3451d4));});});},Migration[_0x438ea6('0x14')][_0x438ea6('0x1a')]=function(_0x1281e3){const _0x2c85f4=_0x438ea6,_0x1a84d9=this;this[_0x2c85f4('0xc')][_0x2c85f4('0x5')](function(){const _0x5802ba=_0x2c85f4;return _0x1a84d9['queryInterface'][_0x5802ba('0x17')][_0x5802ba('0x1a')](_0x1281e3)[_0x5802ba('0x10')](function(){const _0x2784b7=_0x5802ba;logger[_0x2784b7('0x19')](_0x2784b7('0x21'),_0x1281e3);})[_0x5802ba('0x6')](function(_0x2592fc){const _0x208cb3=_0x5802ba;logger[_0x208cb3('0x19')](JSON['stringify'](_0x2592fc));});});},Migration['prototype'][_0x438ea6('0x1c')]=function(_0xb1e8c2,_0x37f173){const _0xfe266c=_0x438ea6,_0x452bfe=this;this[_0xfe266c('0xc')][_0xfe266c('0x5')](function(){const _0x48c684=_0xfe266c;return _0x452bfe[_0x48c684('0xf')][_0x48c684('0x1c')](_0xb1e8c2,_0x37f173)[_0x48c684('0x10')](function(){const _0x467abe=_0x48c684;logger[_0x467abe('0x19')](_0x467abe('0x9'),_0x37f173,_0xb1e8c2);})[_0x48c684('0x6')](function(_0x1f5ef9){const _0x4984e0=_0x48c684;logger[_0x4984e0('0x19')](util[_0x4984e0('0x12')](_0x1f5ef9,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x438ea6('0x0')]=function(_0x54812b,_0x4dcbd0,_0x18690f){const _0x222b1f=_0x438ea6,_0xf0d9c6=this;this['sequence'][_0x222b1f('0x5')](function(){const _0x7aae16=_0x222b1f;return _0xf0d9c6[_0x7aae16('0xf')][_0x7aae16('0x0')](_0x54812b,_0x4dcbd0,_0x18690f)[_0x7aae16('0x10')](function(){const _0x5881c2=_0x7aae16;logger['info'](_0x5881c2('0xe'),_0x4dcbd0,_0x18690f,_0x54812b);})[_0x7aae16('0x6')](function(_0x582be7){const _0x12eafd=_0x7aae16;logger['info'](util[_0x12eafd('0x12')](_0x582be7,{'showHidden':![],'depth':null}));});});},Migration[_0x438ea6('0x14')][_0x438ea6('0x8')]=function(_0x1c5b66){this['sequence']['enqueue'](function(){return _0x1c5b66();});},module[_0x438ea6('0x20')]={'up':function(_0x5ed099){return new Promise(function(_0x19e0bc){const _0x38c9a8=a998_0x2847,_0x7cb205=new Migration(_0x5ed099);_0x7cb205[_0x38c9a8('0x1a')](_0x38c9a8('0x1')),_0x7cb205[_0x38c9a8('0x8')](_0x19e0bc);});},'down':function(){}};
\ No newline at end of file