Built motion from commit bfc7a72f7045b27461c9a5d1f71c1a658cfd0b8b. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.15.js
1 const a998_0x325d=['removeIndex','removeColumn','queryInterface','Changed\x20column\x20%s\x20in\x20table\x20%s','renameColumn','then','addIndex','UPDATE\x20sms_accounts\x20SET\x20baseUrl\x20=\x20\x22https://sms.csc.lv\x22\x20WHERE\x20type\x20=\x20\x22csc\x22','addColumn','tail','changeColumn','final','enqueue','table\x20dropped\x20%s','Added\x20column\x20%s\x20to\x20%s','exports','migration','prototype','join','query\x20%s','util','indexName','sequelize','stringify','catch','addIndex\x20%s\x20%s\x20%s\x20[%s]','inspect','query','sequence','Removed\x20column\x20%s\x20from\x20%s','info','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s'];(function(_0x37b728,_0x325d12){const _0x5ad1ba=function(_0x211393){while(--_0x211393){_0x37b728['push'](_0x37b728['shift']());}};_0x5ad1ba(++_0x325d12);}(a998_0x325d,0x143));const a998_0x5ad1=function(_0x37b728,_0x325d12){_0x37b728=_0x37b728-0x0;let _0x5ad1ba=a998_0x325d[_0x37b728];return _0x5ad1ba;};const _0x259186=a998_0x5ad1;'use strict';const util=require(_0x259186('0x11')),logger=require('../config/logger')(_0x259186('0xd')),Sequence=function(){};Sequence[_0x259186('0xe')]['enqueue']=function(_0x211393){const _0x2b747d=_0x259186;this[_0x2b747d('0x6')]=this['tail']?this[_0x2b747d('0x6')]['finally'](_0x211393):_0x211393();};const Migration=function(_0x5bfd51){const _0x3b275d=_0x259186;this['queryInterface']=_0x5bfd51,this[_0x3b275d('0x19')]=new Sequence();};Migration['prototype'][_0x259186('0x7')]=function(_0x2fea95,_0x3a2ddd,_0x18b4c8){const _0x252a4f=_0x259186,_0x37f8b0=this;this[_0x252a4f('0x19')][_0x252a4f('0x9')](function(){const _0x855b82=_0x252a4f;return _0x37f8b0[_0x855b82('0x1f')]['changeColumn'](_0x2fea95,_0x3a2ddd,_0x18b4c8)[_0x855b82('0x2')](function(){const _0x4dc9d1=_0x855b82;logger[_0x4dc9d1('0x1b')](_0x4dc9d1('0x0'),_0x3a2ddd,_0x2fea95);})['catch'](function(_0x1a1b6a){const _0xd61f4f=_0x855b82;logger['info'](JSON[_0xd61f4f('0x14')](_0x1a1b6a));});});},Migration[_0x259186('0xe')][_0x259186('0x5')]=function(_0x4a217c,_0x12c8cf,_0x5819b4){const _0x1c32f6=_0x259186,_0x457bc8=this;this[_0x1c32f6('0x19')][_0x1c32f6('0x9')](function(){const _0x274d60=_0x1c32f6;return _0x457bc8[_0x274d60('0x1f')][_0x274d60('0x5')](_0x4a217c,_0x12c8cf,_0x5819b4)[_0x274d60('0x2')](function(){const _0x38101c=_0x274d60;logger['info'](_0x38101c('0xb'),_0x12c8cf,_0x4a217c);})['catch'](function(_0x301961){const _0x153446=_0x274d60;logger[_0x153446('0x1b')](JSON[_0x153446('0x14')](_0x301961));});});},Migration[_0x259186('0xe')]['dropTable']=function(_0x59b732){const _0x1cafa8=this;this['sequence']['enqueue'](function(){const _0x1166ae=a998_0x5ad1;return _0x1cafa8[_0x1166ae('0x1f')]['dropTable'](_0x59b732,{'force':!![]})[_0x1166ae('0x2')](function(){const _0x56fe4c=_0x1166ae;logger[_0x56fe4c('0x1b')](_0x56fe4c('0xa'),_0x59b732);})[_0x1166ae('0x15')](function(_0xeb3695){const _0x1c1fae=_0x1166ae;logger[_0x1c1fae('0x1b')](JSON[_0x1c1fae('0x14')](_0xeb3695));});});},Migration[_0x259186('0xe')][_0x259186('0x3')]=function(_0x5b4308,_0x218138,_0x8e84c5){const _0x301f7a=_0x259186,_0x1562c2=this;this[_0x301f7a('0x19')][_0x301f7a('0x9')](function(){const _0x32a1a5=_0x301f7a;return _0x1562c2[_0x32a1a5('0x1f')][_0x32a1a5('0x3')](_0x5b4308,_0x218138,{'indexName':_0x8e84c5[_0x32a1a5('0x12')],'indicesType':_0x8e84c5['indicesType']})[_0x32a1a5('0x2')](function(){const _0x276d8f=_0x32a1a5;logger[_0x276d8f('0x1b')](_0x276d8f('0x16'),_0x5b4308,_0x218138[_0x276d8f('0xf')](','),_0x8e84c5['indexName'],_0x8e84c5['indicesType']);})['catch'](function(_0x108de7){const _0x485a26=_0x32a1a5;logger[_0x485a26('0x1b')](JSON[_0x485a26('0x14')](_0x108de7));});});},Migration[_0x259186('0xe')][_0x259186('0x1d')]=function(_0x40c92f,_0x2f9dfb){const _0x19f283=_0x259186,_0x4ce24a=this;this[_0x19f283('0x19')]['enqueue'](function(){const _0x6d33f0=_0x19f283;return _0x4ce24a[_0x6d33f0('0x1f')][_0x6d33f0('0x1d')](_0x40c92f,_0x2f9dfb)[_0x6d33f0('0x2')](function(){const _0x3ffc61=_0x6d33f0;logger[_0x3ffc61('0x1b')]('removeIndex\x20%s\x20%s',_0x40c92f,_0x2f9dfb);})[_0x6d33f0('0x15')](function(_0x68cac6){const _0x33734c=_0x6d33f0;logger[_0x33734c('0x1b')](JSON[_0x33734c('0x14')](_0x68cac6));});});},Migration[_0x259186('0xe')][_0x259186('0x18')]=function(_0x380468){const _0x558ab6=this;this['sequence']['enqueue'](function(){const _0x41dc67=a998_0x5ad1;return _0x558ab6[_0x41dc67('0x1f')][_0x41dc67('0x13')][_0x41dc67('0x18')](_0x380468)[_0x41dc67('0x2')](function(){const _0x1568b3=_0x41dc67;logger[_0x1568b3('0x1b')](_0x1568b3('0x10'),_0x380468);})[_0x41dc67('0x15')](function(_0x329664){logger['info'](JSON['stringify'](_0x329664));});});},Migration['prototype']['removeColumn']=function(_0x561f27,_0x8377b8){const _0x4af6c6=_0x259186,_0x14fb49=this;this[_0x4af6c6('0x19')][_0x4af6c6('0x9')](function(){const _0x496c20=_0x4af6c6;return _0x14fb49[_0x496c20('0x1f')][_0x496c20('0x1e')](_0x561f27,_0x8377b8)[_0x496c20('0x2')](function(){const _0x2f18db=_0x496c20;logger[_0x2f18db('0x1b')](_0x2f18db('0x1a'),_0x8377b8,_0x561f27);})['catch'](function(_0x201dec){const _0x239acb=_0x496c20;logger[_0x239acb('0x1b')](util[_0x239acb('0x17')](_0x201dec,{'showHidden':![],'depth':null}));});});},Migration[_0x259186('0xe')][_0x259186('0x1')]=function(_0xf7f1b5,_0x4c6895,_0x58de38){const _0x14e949=_0x259186,_0x29def2=this;this[_0x14e949('0x19')][_0x14e949('0x9')](function(){const _0x448343=_0x14e949;return _0x29def2['queryInterface'][_0x448343('0x1')](_0xf7f1b5,_0x4c6895,_0x58de38)[_0x448343('0x2')](function(){const _0x2d2a8b=_0x448343;logger[_0x2d2a8b('0x1b')](_0x2d2a8b('0x1c'),_0x4c6895,_0x58de38,_0xf7f1b5);})[_0x448343('0x15')](function(_0x5abd57){const _0x26b667=_0x448343;logger[_0x26b667('0x1b')](util[_0x26b667('0x17')](_0x5abd57,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x259186('0x8')]=function(_0xec3071){const _0x14b39f=_0x259186;this['sequence'][_0x14b39f('0x9')](function(){return _0xec3071();});},module[_0x259186('0xc')]={'up':function(_0x4a43ed){return new Promise(function(_0x5e1977){const _0x56d59e=a998_0x5ad1,_0x467deb=new Migration(_0x4a43ed);_0x467deb[_0x56d59e('0x18')](_0x56d59e('0x4')),_0x467deb[_0x56d59e('0x8')](_0x5e1977);});},'down':function(){}};