Built motion from commit 459747fdfe53bbf13fbede61eeaffea1f1438f86. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.15.js
index 71304e3..57f0f41 100644 (file)
@@ -1 +1 @@
-const a998_0x1925=['exports','sequence','catch','../config/logger','stringify','prototype','info','final','changeColumn','Added\x20column\x20%s\x20to\x20%s','addColumn','migration','query\x20%s','indexName','Removed\x20column\x20%s\x20from\x20%s','removeIndex','table\x20dropped\x20%s','then','UPDATE\x20sms_accounts\x20SET\x20baseUrl\x20=\x20\x22https://sms.csc.lv\x22\x20WHERE\x20type\x20=\x20\x22csc\x22','addIndex','addIndex\x20%s\x20%s\x20%s\x20[%s]','removeColumn','renameColumn','query','util','indicesType','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enqueue','queryInterface','dropTable','tail'];(function(_0x362d63,_0x192569){const _0x26a955=function(_0x456a01){while(--_0x456a01){_0x362d63['push'](_0x362d63['shift']());}};_0x26a955(++_0x192569);}(a998_0x1925,0xc0));const a998_0x26a9=function(_0x362d63,_0x192569){_0x362d63=_0x362d63-0x0;let _0x26a955=a998_0x1925[_0x362d63];return _0x26a955;};const _0x4af018=a998_0x26a9;'use strict';const util=require(_0x4af018('0x12')),logger=require(_0x4af018('0x1c'))(_0x4af018('0x5')),Sequence=function(){};Sequence[_0x4af018('0x1e')][_0x4af018('0x15')]=function(_0x456a01){const _0x520c80=_0x4af018;this['tail']=this[_0x520c80('0x18')]?this['tail']['finally'](_0x456a01):_0x456a01();};const Migration=function(_0x1f37b0){const _0x1f08f9=_0x4af018;this[_0x1f08f9('0x16')]=_0x1f37b0,this['sequence']=new Sequence();};Migration[_0x4af018('0x1e')][_0x4af018('0x2')]=function(_0x47cc20,_0x28e214,_0x4f39e9){const _0x1b8c12=_0x4af018,_0xdee6f6=this;this['sequence'][_0x1b8c12('0x15')](function(){const _0x1ca16b=_0x1b8c12;return _0xdee6f6[_0x1ca16b('0x16')][_0x1ca16b('0x2')](_0x47cc20,_0x28e214,_0x4f39e9)[_0x1ca16b('0xb')](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x28e214,_0x47cc20);})[_0x1ca16b('0x1b')](function(_0x2ba7ca){const _0x1e39e7=_0x1ca16b;logger[_0x1e39e7('0x0')](JSON['stringify'](_0x2ba7ca));});});},Migration[_0x4af018('0x1e')]['addColumn']=function(_0x238990,_0x87a11d,_0x3ed720){const _0x132fe8=_0x4af018,_0x497bf0=this;this[_0x132fe8('0x1a')][_0x132fe8('0x15')](function(){const _0x4d2d90=_0x132fe8;return _0x497bf0[_0x4d2d90('0x16')][_0x4d2d90('0x4')](_0x238990,_0x87a11d,_0x3ed720)[_0x4d2d90('0xb')](function(){const _0x155efa=_0x4d2d90;logger[_0x155efa('0x0')](_0x155efa('0x3'),_0x87a11d,_0x238990);})[_0x4d2d90('0x1b')](function(_0x3bd31c){logger['info'](JSON['stringify'](_0x3bd31c));});});},Migration[_0x4af018('0x1e')][_0x4af018('0x17')]=function(_0x69fc60){const _0x262799=_0x4af018,_0x55e173=this;this[_0x262799('0x1a')][_0x262799('0x15')](function(){const _0x4cb7ad=_0x262799;return _0x55e173[_0x4cb7ad('0x16')][_0x4cb7ad('0x17')](_0x69fc60,{'force':!![]})[_0x4cb7ad('0xb')](function(){const _0x4a5841=_0x4cb7ad;logger[_0x4a5841('0x0')](_0x4a5841('0xa'),_0x69fc60);})[_0x4cb7ad('0x1b')](function(_0x555fac){const _0x48c8b9=_0x4cb7ad;logger[_0x48c8b9('0x0')](JSON['stringify'](_0x555fac));});});},Migration[_0x4af018('0x1e')][_0x4af018('0xd')]=function(_0x42577e,_0x14f1b7,_0x540bf9){const _0x5abfbd=_0x4af018,_0x5cc3a2=this;this[_0x5abfbd('0x1a')][_0x5abfbd('0x15')](function(){const _0x5a9978=_0x5abfbd;return _0x5cc3a2[_0x5a9978('0x16')][_0x5a9978('0xd')](_0x42577e,_0x14f1b7,{'indexName':_0x540bf9['indexName'],'indicesType':_0x540bf9[_0x5a9978('0x13')]})[_0x5a9978('0xb')](function(){const _0x3f2db5=_0x5a9978;logger[_0x3f2db5('0x0')](_0x3f2db5('0xe'),_0x42577e,_0x14f1b7['join'](','),_0x540bf9[_0x3f2db5('0x7')],_0x540bf9['indicesType']);})[_0x5a9978('0x1b')](function(_0x17eefd){logger['info'](JSON['stringify'](_0x17eefd));});});},Migration[_0x4af018('0x1e')][_0x4af018('0x9')]=function(_0x5eed25,_0x59e1b3){const _0x2338d2=_0x4af018,_0x567c23=this;this[_0x2338d2('0x1a')][_0x2338d2('0x15')](function(){const _0x2ae515=_0x2338d2;return _0x567c23[_0x2ae515('0x16')][_0x2ae515('0x9')](_0x5eed25,_0x59e1b3)[_0x2ae515('0xb')](function(){const _0x173e5b=_0x2ae515;logger[_0x173e5b('0x0')]('removeIndex\x20%s\x20%s',_0x5eed25,_0x59e1b3);})[_0x2ae515('0x1b')](function(_0x195285){const _0x558b2d=_0x2ae515;logger[_0x558b2d('0x0')](JSON['stringify'](_0x195285));});});},Migration[_0x4af018('0x1e')][_0x4af018('0x11')]=function(_0x4a8483){const _0x159444=_0x4af018,_0x2ca064=this;this[_0x159444('0x1a')][_0x159444('0x15')](function(){const _0x5c230d=_0x159444;return _0x2ca064[_0x5c230d('0x16')]['sequelize']['query'](_0x4a8483)[_0x5c230d('0xb')](function(){const _0x47abb8=_0x5c230d;logger['info'](_0x47abb8('0x6'),_0x4a8483);})[_0x5c230d('0x1b')](function(_0x487964){const _0x1e85f5=_0x5c230d;logger[_0x1e85f5('0x0')](JSON[_0x1e85f5('0x1d')](_0x487964));});});},Migration[_0x4af018('0x1e')]['removeColumn']=function(_0x597432,_0x40ce07){const _0x5ec4aa=_0x4af018,_0x115972=this;this[_0x5ec4aa('0x1a')][_0x5ec4aa('0x15')](function(){const _0x3ee994=_0x5ec4aa;return _0x115972[_0x3ee994('0x16')][_0x3ee994('0xf')](_0x597432,_0x40ce07)[_0x3ee994('0xb')](function(){const _0x2338c5=_0x3ee994;logger[_0x2338c5('0x0')](_0x2338c5('0x8'),_0x40ce07,_0x597432);})[_0x3ee994('0x1b')](function(_0x1ab46d){const _0x2b7e06=_0x3ee994;logger[_0x2b7e06('0x0')](util['inspect'](_0x1ab46d,{'showHidden':![],'depth':null}));});});},Migration[_0x4af018('0x1e')][_0x4af018('0x10')]=function(_0x78b6e5,_0x2369b2,_0x4cafd6){const _0x4ed7aa=_0x4af018,_0x5b742c=this;this[_0x4ed7aa('0x1a')][_0x4ed7aa('0x15')](function(){const _0xd89747=_0x4ed7aa;return _0x5b742c['queryInterface'][_0xd89747('0x10')](_0x78b6e5,_0x2369b2,_0x4cafd6)['then'](function(){const _0x5dd9c5=_0xd89747;logger['info'](_0x5dd9c5('0x14'),_0x2369b2,_0x4cafd6,_0x78b6e5);})[_0xd89747('0x1b')](function(_0x3229b6){const _0x337137=_0xd89747;logger[_0x337137('0x0')](util['inspect'](_0x3229b6,{'showHidden':![],'depth':null}));});});},Migration[_0x4af018('0x1e')][_0x4af018('0x1')]=function(_0x50d09d){const _0x12829b=_0x4af018;this[_0x12829b('0x1a')][_0x12829b('0x15')](function(){return _0x50d09d();});},module[_0x4af018('0x19')]={'up':function(_0x3706ba){return new Promise(function(_0x39132e){const _0x38b7aa=a998_0x26a9,_0x3b61b2=new Migration(_0x3706ba);_0x3b61b2[_0x38b7aa('0x11')](_0x38b7aa('0xc')),_0x3b61b2[_0x38b7aa('0x1')](_0x39132e);});},'down':function(){}};
\ No newline at end of file
+const a998_0x2de1=['removeIndex','enqueue','removeColumn','then','Removed\x20column\x20%s\x20from\x20%s','query','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequence','util','prototype','addColumn','catch','../config/logger','addIndex','dropTable','final','queryInterface','removeIndex\x20%s\x20%s','tail','inspect','finally','Changed\x20column\x20%s\x20in\x20table\x20%s','info','migration','sequelize','indexName','addIndex\x20%s\x20%s\x20%s\x20[%s]','changeColumn','renameColumn','exports','UPDATE\x20sms_accounts\x20SET\x20baseUrl\x20=\x20\x22https://sms.csc.lv\x22\x20WHERE\x20type\x20=\x20\x22csc\x22','Added\x20column\x20%s\x20to\x20%s','stringify'];(function(_0x155a94,_0x2de1bd){const _0x51f64c=function(_0x497d12){while(--_0x497d12){_0x155a94['push'](_0x155a94['shift']());}};_0x51f64c(++_0x2de1bd);}(a998_0x2de1,0x18c));const a998_0x51f6=function(_0x155a94,_0x2de1bd){_0x155a94=_0x155a94-0x0;let _0x51f64c=a998_0x2de1[_0x155a94];return _0x51f64c;};const _0x9115e8=a998_0x51f6;'use strict';const util=require(_0x9115e8('0x8')),logger=require(_0x9115e8('0xc'))(_0x9115e8('0x17')),Sequence=function(){};Sequence['prototype'][_0x9115e8('0x1')]=function(_0x497d12){const _0x29661f=_0x9115e8;this[_0x29661f('0x12')]=this[_0x29661f('0x12')]?this[_0x29661f('0x12')][_0x29661f('0x14')](_0x497d12):_0x497d12();};const Migration=function(_0x505ea9){const _0x4624b6=_0x9115e8;this[_0x4624b6('0x10')]=_0x505ea9,this[_0x4624b6('0x7')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x35fba0,_0x11c418,_0x1373fe){const _0x577212=_0x9115e8,_0x155e22=this;this[_0x577212('0x7')]['enqueue'](function(){const _0xbb70d0=_0x577212;return _0x155e22['queryInterface'][_0xbb70d0('0x1b')](_0x35fba0,_0x11c418,_0x1373fe)[_0xbb70d0('0x3')](function(){const _0x2c3faf=_0xbb70d0;logger[_0x2c3faf('0x16')](_0x2c3faf('0x15'),_0x11c418,_0x35fba0);})['catch'](function(_0x3d3601){const _0x4c0501=_0xbb70d0;logger[_0x4c0501('0x16')](JSON[_0x4c0501('0x20')](_0x3d3601));});});},Migration['prototype'][_0x9115e8('0xa')]=function(_0x77294a,_0x7d976e,_0x23cde4){const _0x56afbd=_0x9115e8,_0x16577f=this;this[_0x56afbd('0x7')][_0x56afbd('0x1')](function(){const _0x228333=_0x56afbd;return _0x16577f[_0x228333('0x10')][_0x228333('0xa')](_0x77294a,_0x7d976e,_0x23cde4)['then'](function(){const _0x5f3a86=_0x228333;logger[_0x5f3a86('0x16')](_0x5f3a86('0x1f'),_0x7d976e,_0x77294a);})[_0x228333('0xb')](function(_0x203207){const _0x4cce55=_0x228333;logger[_0x4cce55('0x16')](JSON[_0x4cce55('0x20')](_0x203207));});});},Migration[_0x9115e8('0x9')][_0x9115e8('0xe')]=function(_0x482bb6){const _0x54204e=_0x9115e8,_0x3d3948=this;this[_0x54204e('0x7')][_0x54204e('0x1')](function(){const _0x57836c=_0x54204e;return _0x3d3948[_0x57836c('0x10')][_0x57836c('0xe')](_0x482bb6,{'force':!![]})[_0x57836c('0x3')](function(){logger['info']('table\x20dropped\x20%s',_0x482bb6);})[_0x57836c('0xb')](function(_0x2b26df){const _0x1ac6f6=_0x57836c;logger[_0x1ac6f6('0x16')](JSON[_0x1ac6f6('0x20')](_0x2b26df));});});},Migration['prototype'][_0x9115e8('0xd')]=function(_0x4dd23a,_0x546512,_0x36fc71){const _0x315c0b=_0x9115e8,_0x54e45b=this;this[_0x315c0b('0x7')][_0x315c0b('0x1')](function(){const _0x3c942d=_0x315c0b;return _0x54e45b['queryInterface'][_0x3c942d('0xd')](_0x4dd23a,_0x546512,{'indexName':_0x36fc71[_0x3c942d('0x19')],'indicesType':_0x36fc71['indicesType']})[_0x3c942d('0x3')](function(){const _0x19bd68=_0x3c942d;logger[_0x19bd68('0x16')](_0x19bd68('0x1a'),_0x4dd23a,_0x546512['join'](','),_0x36fc71[_0x19bd68('0x19')],_0x36fc71['indicesType']);})['catch'](function(_0x52735c){const _0xf1ac3a=_0x3c942d;logger[_0xf1ac3a('0x16')](JSON['stringify'](_0x52735c));});});},Migration[_0x9115e8('0x9')][_0x9115e8('0x0')]=function(_0x33d783,_0x54f10d){const _0x543220=_0x9115e8,_0x30f77d=this;this[_0x543220('0x7')]['enqueue'](function(){const _0x353fed=_0x543220;return _0x30f77d['queryInterface'][_0x353fed('0x0')](_0x33d783,_0x54f10d)[_0x353fed('0x3')](function(){const _0x25e2fe=_0x353fed;logger[_0x25e2fe('0x16')](_0x25e2fe('0x11'),_0x33d783,_0x54f10d);})[_0x353fed('0xb')](function(_0x4c8439){const _0x4ae483=_0x353fed;logger[_0x4ae483('0x16')](JSON[_0x4ae483('0x20')](_0x4c8439));});});},Migration['prototype'][_0x9115e8('0x5')]=function(_0x2f46e0){const _0x1ff826=_0x9115e8,_0x53f852=this;this[_0x1ff826('0x7')]['enqueue'](function(){const _0x5a4863=_0x1ff826;return _0x53f852[_0x5a4863('0x10')][_0x5a4863('0x18')][_0x5a4863('0x5')](_0x2f46e0)[_0x5a4863('0x3')](function(){const _0xfe1fb4=_0x5a4863;logger[_0xfe1fb4('0x16')]('query\x20%s',_0x2f46e0);})[_0x5a4863('0xb')](function(_0x46312d){const _0x25b5e6=_0x5a4863;logger[_0x25b5e6('0x16')](JSON['stringify'](_0x46312d));});});},Migration[_0x9115e8('0x9')][_0x9115e8('0x2')]=function(_0x1e9d91,_0x3259bc){const _0x140ba5=_0x9115e8,_0xd743a6=this;this['sequence'][_0x140ba5('0x1')](function(){const _0x2a3bde=_0x140ba5;return _0xd743a6[_0x2a3bde('0x10')][_0x2a3bde('0x2')](_0x1e9d91,_0x3259bc)[_0x2a3bde('0x3')](function(){const _0xcb19d8=_0x2a3bde;logger['info'](_0xcb19d8('0x4'),_0x3259bc,_0x1e9d91);})[_0x2a3bde('0xb')](function(_0x41d088){const _0x556755=_0x2a3bde;logger[_0x556755('0x16')](util[_0x556755('0x13')](_0x41d088,{'showHidden':![],'depth':null}));});});},Migration[_0x9115e8('0x9')][_0x9115e8('0x1c')]=function(_0x1bc980,_0x5c0d9b,_0xbb7ddd){const _0x386073=_0x9115e8,_0x252884=this;this[_0x386073('0x7')][_0x386073('0x1')](function(){const _0xd5f08a=_0x386073;return _0x252884[_0xd5f08a('0x10')]['renameColumn'](_0x1bc980,_0x5c0d9b,_0xbb7ddd)[_0xd5f08a('0x3')](function(){const _0x222499=_0xd5f08a;logger[_0x222499('0x16')](_0x222499('0x6'),_0x5c0d9b,_0xbb7ddd,_0x1bc980);})['catch'](function(_0x5f2136){const _0x4cf9b4=_0xd5f08a;logger['info'](util[_0x4cf9b4('0x13')](_0x5f2136,{'showHidden':![],'depth':null}));});});},Migration[_0x9115e8('0x9')]['final']=function(_0x40ec60){const _0x17fe22=_0x9115e8;this['sequence'][_0x17fe22('0x1')](function(){return _0x40ec60();});},module[_0x9115e8('0x1d')]={'up':function(_0x11de37){return new Promise(function(_0x546fad){const _0x161b41=a998_0x51f6,_0x152f26=new Migration(_0x11de37);_0x152f26['query'](_0x161b41('0x1e')),_0x152f26[_0x161b41('0xf')](_0x546fad);});},'down':function(){}};
\ No newline at end of file