Built motion from commit 8dca541896b0ff92bb88a36cc13f4f385b593b4b. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.15.js
index 5a82e8f..429491c 100644 (file)
@@ -1 +1 @@
-const a998_0x2d4a=['dropTable','util','final','then','query','indicesType','removeIndex\x20%s\x20%s','sequence','removeIndex','migration','tail','prototype','exports','stringify','catch','join','removeColumn','enqueue','addColumn','changeColumn','indexName','addIndex\x20%s\x20%s\x20%s\x20[%s]','inspect','queryInterface','../config/logger','sequelize','table\x20dropped\x20%s','addIndex','renameColumn','info'];(function(_0x4a35a7,_0x2d4a3c){const _0x4f993f=function(_0x42e5a9){while(--_0x42e5a9){_0x4a35a7['push'](_0x4a35a7['shift']());}};_0x4f993f(++_0x2d4a3c);}(a998_0x2d4a,0xff));const a998_0x4f99=function(_0x4a35a7,_0x2d4a3c){_0x4a35a7=_0x4a35a7-0x0;let _0x4f993f=a998_0x2d4a[_0x4a35a7];return _0x4f993f;};const _0x12ae00=a998_0x4f99;'use strict';const util=require(_0x12ae00('0x10')),logger=require(_0x12ae00('0x9'))(_0x12ae00('0x18')),Sequence=function(){};Sequence[_0x12ae00('0x1a')][_0x12ae00('0x2')]=function(_0x42e5a9){const _0xda447c=_0x12ae00;this[_0xda447c('0x19')]=this['tail']?this[_0xda447c('0x19')]['finally'](_0x42e5a9):_0x42e5a9();};const Migration=function(_0x1b8004){const _0x1b685d=_0x12ae00;this[_0x1b685d('0x8')]=_0x1b8004,this[_0x1b685d('0x16')]=new Sequence();};Migration[_0x12ae00('0x1a')][_0x12ae00('0x4')]=function(_0x562475,_0x4d2c53,_0x311749){const _0x32af24=_0x12ae00,_0x1aa482=this;this[_0x32af24('0x16')][_0x32af24('0x2')](function(){const _0x579e17=_0x32af24;return _0x1aa482[_0x579e17('0x8')]['changeColumn'](_0x562475,_0x4d2c53,_0x311749)[_0x579e17('0x12')](function(){const _0x5b7be5=_0x579e17;logger[_0x5b7be5('0xe')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4d2c53,_0x562475);})[_0x579e17('0x1d')](function(_0x15b099){const _0x2761c5=_0x579e17;logger[_0x2761c5('0xe')](JSON[_0x2761c5('0x1c')](_0x15b099));});});},Migration[_0x12ae00('0x1a')][_0x12ae00('0x3')]=function(_0x3ad593,_0x4f68b5,_0x4eb798){const _0x818b7d=_0x12ae00,_0x110d06=this;this[_0x818b7d('0x16')][_0x818b7d('0x2')](function(){const _0x6185fc=_0x818b7d;return _0x110d06['queryInterface'][_0x6185fc('0x3')](_0x3ad593,_0x4f68b5,_0x4eb798)[_0x6185fc('0x12')](function(){const _0x40f343=_0x6185fc;logger[_0x40f343('0xe')]('Added\x20column\x20%s\x20to\x20%s',_0x4f68b5,_0x3ad593);})['catch'](function(_0x5c3e31){const _0x71b99c=_0x6185fc;logger[_0x71b99c('0xe')](JSON[_0x71b99c('0x1c')](_0x5c3e31));});});},Migration[_0x12ae00('0x1a')][_0x12ae00('0xf')]=function(_0x359e0f){const _0x1c3b25=_0x12ae00,_0x494a38=this;this[_0x1c3b25('0x16')]['enqueue'](function(){const _0x12dba0=_0x1c3b25;return _0x494a38[_0x12dba0('0x8')][_0x12dba0('0xf')](_0x359e0f,{'force':!![]})[_0x12dba0('0x12')](function(){const _0x43bf14=_0x12dba0;logger[_0x43bf14('0xe')](_0x43bf14('0xb'),_0x359e0f);})['catch'](function(_0x3ec1f6){const _0x2db799=_0x12dba0;logger[_0x2db799('0xe')](JSON[_0x2db799('0x1c')](_0x3ec1f6));});});},Migration[_0x12ae00('0x1a')][_0x12ae00('0xc')]=function(_0x5b8963,_0x1ed65a,_0x183d96){const _0x311b8d=_0x12ae00,_0x414bae=this;this['sequence'][_0x311b8d('0x2')](function(){const _0x1630db=_0x311b8d;return _0x414bae[_0x1630db('0x8')][_0x1630db('0xc')](_0x5b8963,_0x1ed65a,{'indexName':_0x183d96[_0x1630db('0x5')],'indicesType':_0x183d96[_0x1630db('0x14')]})[_0x1630db('0x12')](function(){const _0x150b2b=_0x1630db;logger[_0x150b2b('0xe')](_0x150b2b('0x6'),_0x5b8963,_0x1ed65a[_0x150b2b('0x0')](','),_0x183d96[_0x150b2b('0x5')],_0x183d96[_0x150b2b('0x14')]);})[_0x1630db('0x1d')](function(_0x2e4226){const _0x3b1836=_0x1630db;logger[_0x3b1836('0xe')](JSON[_0x3b1836('0x1c')](_0x2e4226));});});},Migration[_0x12ae00('0x1a')][_0x12ae00('0x17')]=function(_0x182231,_0x208f88){const _0x463742=_0x12ae00,_0x382a01=this;this[_0x463742('0x16')][_0x463742('0x2')](function(){const _0xb8d49d=_0x463742;return _0x382a01[_0xb8d49d('0x8')][_0xb8d49d('0x17')](_0x182231,_0x208f88)[_0xb8d49d('0x12')](function(){const _0x293f95=_0xb8d49d;logger[_0x293f95('0xe')](_0x293f95('0x15'),_0x182231,_0x208f88);})[_0xb8d49d('0x1d')](function(_0x90ba74){const _0x485914=_0xb8d49d;logger[_0x485914('0xe')](JSON[_0x485914('0x1c')](_0x90ba74));});});},Migration[_0x12ae00('0x1a')][_0x12ae00('0x13')]=function(_0x156bc0){const _0x1b8b74=_0x12ae00,_0x134f33=this;this[_0x1b8b74('0x16')][_0x1b8b74('0x2')](function(){const _0x12b345=_0x1b8b74;return _0x134f33['queryInterface'][_0x12b345('0xa')][_0x12b345('0x13')](_0x156bc0)[_0x12b345('0x12')](function(){const _0x21a7a9=_0x12b345;logger[_0x21a7a9('0xe')]('query\x20%s',_0x156bc0);})[_0x12b345('0x1d')](function(_0x395cf9){const _0x272db6=_0x12b345;logger[_0x272db6('0xe')](JSON[_0x272db6('0x1c')](_0x395cf9));});});},Migration[_0x12ae00('0x1a')][_0x12ae00('0x1')]=function(_0x348d35,_0x1a69f2){const _0x34aa33=_0x12ae00,_0x2c66fe=this;this['sequence'][_0x34aa33('0x2')](function(){const _0x40c29e=_0x34aa33;return _0x2c66fe[_0x40c29e('0x8')][_0x40c29e('0x1')](_0x348d35,_0x1a69f2)[_0x40c29e('0x12')](function(){const _0x17638e=_0x40c29e;logger[_0x17638e('0xe')]('Removed\x20column\x20%s\x20from\x20%s',_0x1a69f2,_0x348d35);})[_0x40c29e('0x1d')](function(_0x231dc6){const _0x338829=_0x40c29e;logger[_0x338829('0xe')](util[_0x338829('0x7')](_0x231dc6,{'showHidden':![],'depth':null}));});});},Migration[_0x12ae00('0x1a')][_0x12ae00('0xd')]=function(_0x4e3b91,_0x4b0d9a,_0x5ebee6){const _0x4dddfa=_0x12ae00,_0x484f01=this;this[_0x4dddfa('0x16')]['enqueue'](function(){const _0x3b01a0=_0x4dddfa;return _0x484f01['queryInterface'][_0x3b01a0('0xd')](_0x4e3b91,_0x4b0d9a,_0x5ebee6)[_0x3b01a0('0x12')](function(){const _0x57867c=_0x3b01a0;logger[_0x57867c('0xe')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x4b0d9a,_0x5ebee6,_0x4e3b91);})[_0x3b01a0('0x1d')](function(_0x17aab8){const _0x18cdb2=_0x3b01a0;logger[_0x18cdb2('0xe')](util[_0x18cdb2('0x7')](_0x17aab8,{'showHidden':![],'depth':null}));});});},Migration[_0x12ae00('0x1a')]['final']=function(_0x3c61fd){const _0x2548db=_0x12ae00;this[_0x2548db('0x16')]['enqueue'](function(){return _0x3c61fd();});},module[_0x12ae00('0x1b')]={'up':function(_0x3be940){return new Promise(function(_0x21ebbe){const _0x5bffb1=a998_0x4f99,_0x4fe43d=new Migration(_0x3be940);_0x4fe43d[_0x5bffb1('0x13')]('UPDATE\x20sms_accounts\x20SET\x20baseUrl\x20=\x20\x22https://sms.csc.lv\x22\x20WHERE\x20type\x20=\x20\x22csc\x22'),_0x4fe43d[_0x5bffb1('0x11')](_0x21ebbe);});},'down':function(){}};
\ No newline at end of file
+const a998_0x506c=['prototype','UPDATE\x20sms_accounts\x20SET\x20baseUrl\x20=\x20\x22https://sms.csc.lv\x22\x20WHERE\x20type\x20=\x20\x22csc\x22','migration','query\x20%s','info','table\x20dropped\x20%s','then','final','enqueue','query','removeIndex','finally','sequence','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','inspect','sequelize','addIndex','Removed\x20column\x20%s\x20from\x20%s','indicesType','removeColumn','tail','queryInterface','addColumn','renameColumn','changeColumn','exports','dropTable','stringify','indexName','catch','addIndex\x20%s\x20%s\x20%s\x20[%s]'];(function(_0x1c5c42,_0x506c94){const _0x34d264=function(_0xad6af2){while(--_0xad6af2){_0x1c5c42['push'](_0x1c5c42['shift']());}};_0x34d264(++_0x506c94);}(a998_0x506c,0x161));const a998_0x34d2=function(_0x1c5c42,_0x506c94){_0x1c5c42=_0x1c5c42-0x0;let _0x34d264=a998_0x506c[_0x1c5c42];return _0x34d264;};const _0x43e009=a998_0x34d2;'use strict';const util=require('util'),logger=require('../config/logger')(_0x43e009('0x15')),Sequence=function(){};Sequence[_0x43e009('0x13')][_0x43e009('0x1b')]=function(_0xad6af2){const _0x1fcada=_0x43e009;this['tail']=this[_0x1fcada('0x8')]?this[_0x1fcada('0x8')][_0x1fcada('0x1e')](_0xad6af2):_0xad6af2();};const Migration=function(_0x392bce){const _0x32439f=_0x43e009;this[_0x32439f('0x9')]=_0x392bce,this[_0x32439f('0x0')]=new Sequence();};Migration[_0x43e009('0x13')][_0x43e009('0xc')]=function(_0x311357,_0x1bb9f1,_0x2cd4e5){const _0x3cbba5=_0x43e009,_0x1e5659=this;this[_0x3cbba5('0x0')][_0x3cbba5('0x1b')](function(){const _0x54ecce=_0x3cbba5;return _0x1e5659[_0x54ecce('0x9')][_0x54ecce('0xc')](_0x311357,_0x1bb9f1,_0x2cd4e5)[_0x54ecce('0x19')](function(){const _0x13420d=_0x54ecce;logger[_0x13420d('0x17')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1bb9f1,_0x311357);})['catch'](function(_0x46b2a8){const _0x43ce59=_0x54ecce;logger['info'](JSON[_0x43ce59('0xf')](_0x46b2a8));});});},Migration[_0x43e009('0x13')]['addColumn']=function(_0x4d1b6e,_0x2794d6,_0x26c1c6){const _0x2e0600=_0x43e009,_0x1687ab=this;this[_0x2e0600('0x0')]['enqueue'](function(){const _0x32c8c6=_0x2e0600;return _0x1687ab[_0x32c8c6('0x9')][_0x32c8c6('0xa')](_0x4d1b6e,_0x2794d6,_0x26c1c6)[_0x32c8c6('0x19')](function(){const _0x17fd38=_0x32c8c6;logger[_0x17fd38('0x17')]('Added\x20column\x20%s\x20to\x20%s',_0x2794d6,_0x4d1b6e);})[_0x32c8c6('0x11')](function(_0x14e3c7){const _0x3a9f7a=_0x32c8c6;logger[_0x3a9f7a('0x17')](JSON[_0x3a9f7a('0xf')](_0x14e3c7));});});},Migration['prototype'][_0x43e009('0xe')]=function(_0xf08f94){const _0x1b3f20=_0x43e009,_0x559aea=this;this[_0x1b3f20('0x0')]['enqueue'](function(){return _0x559aea['queryInterface']['dropTable'](_0xf08f94,{'force':!![]})['then'](function(){const _0x396e3b=a998_0x34d2;logger[_0x396e3b('0x17')](_0x396e3b('0x18'),_0xf08f94);})['catch'](function(_0x4d2f6a){const _0x2f427c=a998_0x34d2;logger[_0x2f427c('0x17')](JSON['stringify'](_0x4d2f6a));});});},Migration['prototype'][_0x43e009('0x4')]=function(_0x4d479e,_0x1e8ddf,_0x2ccde8){const _0xbc7243=_0x43e009,_0x4906d9=this;this[_0xbc7243('0x0')]['enqueue'](function(){const _0x30a3a3=_0xbc7243;return _0x4906d9[_0x30a3a3('0x9')]['addIndex'](_0x4d479e,_0x1e8ddf,{'indexName':_0x2ccde8[_0x30a3a3('0x10')],'indicesType':_0x2ccde8[_0x30a3a3('0x6')]})[_0x30a3a3('0x19')](function(){const _0x5b30e2=_0x30a3a3;logger[_0x5b30e2('0x17')](_0x5b30e2('0x12'),_0x4d479e,_0x1e8ddf['join'](','),_0x2ccde8[_0x5b30e2('0x10')],_0x2ccde8[_0x5b30e2('0x6')]);})[_0x30a3a3('0x11')](function(_0x576339){const _0x32c28e=_0x30a3a3;logger[_0x32c28e('0x17')](JSON['stringify'](_0x576339));});});},Migration[_0x43e009('0x13')][_0x43e009('0x1d')]=function(_0x57b228,_0x404187){const _0x57f2db=_0x43e009,_0x483886=this;this[_0x57f2db('0x0')][_0x57f2db('0x1b')](function(){const _0x1bc745=_0x57f2db;return _0x483886[_0x1bc745('0x9')][_0x1bc745('0x1d')](_0x57b228,_0x404187)[_0x1bc745('0x19')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x57b228,_0x404187);})[_0x1bc745('0x11')](function(_0xf4efb4){logger['info'](JSON['stringify'](_0xf4efb4));});});},Migration[_0x43e009('0x13')][_0x43e009('0x1c')]=function(_0x5c9123){const _0x5ad417=_0x43e009,_0x23a1c1=this;this[_0x5ad417('0x0')][_0x5ad417('0x1b')](function(){const _0x4befba=_0x5ad417;return _0x23a1c1[_0x4befba('0x9')][_0x4befba('0x3')][_0x4befba('0x1c')](_0x5c9123)['then'](function(){const _0x1db813=_0x4befba;logger[_0x1db813('0x17')](_0x1db813('0x16'),_0x5c9123);})[_0x4befba('0x11')](function(_0x473fa8){const _0x2065c3=_0x4befba;logger[_0x2065c3('0x17')](JSON[_0x2065c3('0xf')](_0x473fa8));});});},Migration[_0x43e009('0x13')][_0x43e009('0x7')]=function(_0x471fdc,_0x552817){const _0x1a3032=_0x43e009,_0x4fa182=this;this['sequence'][_0x1a3032('0x1b')](function(){const _0x448f45=_0x1a3032;return _0x4fa182[_0x448f45('0x9')][_0x448f45('0x7')](_0x471fdc,_0x552817)[_0x448f45('0x19')](function(){const _0x1a2107=_0x448f45;logger[_0x1a2107('0x17')](_0x1a2107('0x5'),_0x552817,_0x471fdc);})[_0x448f45('0x11')](function(_0x1fc117){const _0x3924c3=_0x448f45;logger['info'](util[_0x3924c3('0x2')](_0x1fc117,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x43e009('0xb')]=function(_0x5277a1,_0x1d8912,_0x4991b7){const _0x785978=_0x43e009,_0x1e1daa=this;this[_0x785978('0x0')]['enqueue'](function(){const _0x3cd868=_0x785978;return _0x1e1daa[_0x3cd868('0x9')][_0x3cd868('0xb')](_0x5277a1,_0x1d8912,_0x4991b7)['then'](function(){const _0x1d8c6f=_0x3cd868;logger[_0x1d8c6f('0x17')](_0x1d8c6f('0x1'),_0x1d8912,_0x4991b7,_0x5277a1);})[_0x3cd868('0x11')](function(_0x33d1f1){const _0x517e84=_0x3cd868;logger[_0x517e84('0x17')](util['inspect'](_0x33d1f1,{'showHidden':![],'depth':null}));});});},Migration[_0x43e009('0x13')][_0x43e009('0x1a')]=function(_0x5e737b){const _0x727abc=_0x43e009;this[_0x727abc('0x0')][_0x727abc('0x1b')](function(){return _0x5e737b();});},module[_0x43e009('0xd')]={'up':function(_0x54b966){return new Promise(function(_0x3c3ff8){const _0x10e822=a998_0x34d2,_0x2ce691=new Migration(_0x54b966);_0x2ce691[_0x10e822('0x1c')](_0x10e822('0x14')),_0x2ce691[_0x10e822('0x1a')](_0x3c3ff8);});},'down':function(){}};
\ No newline at end of file