Built motion from commit 4a18b36e645f5fa4a517d36f9783bde259878164. Version 3.0.0...
[motion-next.git] / server / migrations / 2.5.6.js
index 194eb58..442bfb4 100644 (file)
@@ -1 +1 @@
-const a1019_0x3ee3=['enqueue','sequelize','prototype','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','finally','queryInterface','FULLTEXT','exports','indicesType','join','addIndex\x20%s\x20%s\x20%s\x20[%s]','renameColumn','stringify','removeColumn','catch','changeColumn','util','phone','migration','sequence','Added\x20column\x20%s\x20to\x20%s','inspect','addColumn','addIndex','table\x20dropped\x20%s','removeIndex','tail','Removed\x20column\x20%s\x20from\x20%s','firstName','fax','final','indexName','query','then','../config/logger','dropTable'];(function(_0x56b9ef,_0x3ee317){const _0x3f49f2=function(_0x485b83){while(--_0x485b83){_0x56b9ef['push'](_0x56b9ef['shift']());}};_0x3f49f2(++_0x3ee317);}(a1019_0x3ee3,0x11e));const a1019_0x3f49=function(_0x56b9ef,_0x3ee317){_0x56b9ef=_0x56b9ef-0x0;let _0x3f49f2=a1019_0x3ee3[_0x56b9ef];return _0x3f49f2;};const _0x45f23e=a1019_0x3f49;'use strict';const util=require(_0x45f23e('0x1b')),logger=require(_0x45f23e('0x8'))(_0x45f23e('0x1d')),Sequence=function(){};Sequence[_0x45f23e('0xc')][_0x45f23e('0xa')]=function(_0x485b83){const _0x368489=_0x45f23e;this['tail']=this[_0x368489('0x0')]?this[_0x368489('0x0')][_0x368489('0xf')](_0x485b83):_0x485b83();};const Migration=function(_0x30e76d){const _0x55e15e=_0x45f23e;this[_0x55e15e('0x10')]=_0x30e76d,this[_0x55e15e('0x1e')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x40afea,_0x5acd07,_0x52a580){const _0x1218f8=_0x45f23e,_0x1e21cd=this;this[_0x1218f8('0x1e')]['enqueue'](function(){const _0x5ee603=_0x1218f8;return _0x1e21cd[_0x5ee603('0x10')][_0x5ee603('0x1a')](_0x40afea,_0x5acd07,_0x52a580)[_0x5ee603('0x7')](function(){const _0x36bc9f=_0x5ee603;logger[_0x36bc9f('0xe')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x5acd07,_0x40afea);})['catch'](function(_0x1063f0){const _0x2a3bcd=_0x5ee603;logger[_0x2a3bcd('0xe')](JSON[_0x2a3bcd('0x17')](_0x1063f0));});});},Migration[_0x45f23e('0xc')][_0x45f23e('0x21')]=function(_0x397839,_0x5f42a0,_0x529eb6){const _0x203ba3=_0x45f23e,_0x8dbf6e=this;this[_0x203ba3('0x1e')][_0x203ba3('0xa')](function(){const _0x416142=_0x203ba3;return _0x8dbf6e[_0x416142('0x10')]['addColumn'](_0x397839,_0x5f42a0,_0x529eb6)[_0x416142('0x7')](function(){const _0x131613=_0x416142;logger[_0x131613('0xe')](_0x131613('0x1f'),_0x5f42a0,_0x397839);})[_0x416142('0x19')](function(_0x33445e){const _0x8c5b3=_0x416142;logger[_0x8c5b3('0xe')](JSON[_0x8c5b3('0x17')](_0x33445e));});});},Migration[_0x45f23e('0xc')][_0x45f23e('0x9')]=function(_0x306bf1){const _0x4c5f16=_0x45f23e,_0x1eed19=this;this[_0x4c5f16('0x1e')][_0x4c5f16('0xa')](function(){const _0x4f283e=_0x4c5f16;return _0x1eed19[_0x4f283e('0x10')]['dropTable'](_0x306bf1,{'force':!![]})[_0x4f283e('0x7')](function(){const _0x2160f5=_0x4f283e;logger[_0x2160f5('0xe')](_0x2160f5('0x23'),_0x306bf1);})['catch'](function(_0x581f53){const _0x33f690=_0x4f283e;logger[_0x33f690('0xe')](JSON[_0x33f690('0x17')](_0x581f53));});});},Migration['prototype']['addIndex']=function(_0x246763,_0x1684af,_0x5b836a){const _0x3983b5=_0x45f23e,_0x133698=this;this['sequence'][_0x3983b5('0xa')](function(){const _0x117615=_0x3983b5;return _0x133698[_0x117615('0x10')]['addIndex'](_0x246763,_0x1684af,{'indexName':_0x5b836a[_0x117615('0x5')],'indicesType':_0x5b836a['indicesType']})['then'](function(){const _0x335761=_0x117615;logger[_0x335761('0xe')](_0x335761('0x15'),_0x246763,_0x1684af[_0x335761('0x14')](','),_0x5b836a['indexName'],_0x5b836a[_0x335761('0x13')]);})['catch'](function(_0x428b6a){const _0x56b512=_0x117615;logger[_0x56b512('0xe')](JSON[_0x56b512('0x17')](_0x428b6a));});});},Migration[_0x45f23e('0xc')][_0x45f23e('0x24')]=function(_0x149215,_0x295d23){const _0x26edb0=_0x45f23e,_0x3fe18c=this;this[_0x26edb0('0x1e')][_0x26edb0('0xa')](function(){const _0x3f32e3=_0x26edb0;return _0x3fe18c['queryInterface'][_0x3f32e3('0x24')](_0x149215,_0x295d23)['then'](function(){logger['info']('removeIndex\x20%s\x20%s',_0x149215,_0x295d23);})[_0x3f32e3('0x19')](function(_0x2ce146){logger['info'](JSON['stringify'](_0x2ce146));});});},Migration['prototype']['query']=function(_0x5d7b54){const _0x2cbe6a=_0x45f23e,_0xadfdc=this;this[_0x2cbe6a('0x1e')][_0x2cbe6a('0xa')](function(){const _0x245f04=_0x2cbe6a;return _0xadfdc['queryInterface'][_0x245f04('0xb')][_0x245f04('0x6')](_0x5d7b54)['then'](function(){const _0x160101=_0x245f04;logger[_0x160101('0xe')]('query\x20%s',_0x5d7b54);})[_0x245f04('0x19')](function(_0x4aab5f){const _0x382046=_0x245f04;logger['info'](JSON[_0x382046('0x17')](_0x4aab5f));});});},Migration['prototype']['removeColumn']=function(_0x1add59,_0x3d118c){const _0x2b6d52=_0x45f23e,_0x43fac7=this;this[_0x2b6d52('0x1e')][_0x2b6d52('0xa')](function(){const _0x501406=_0x2b6d52;return _0x43fac7[_0x501406('0x10')][_0x501406('0x18')](_0x1add59,_0x3d118c)['then'](function(){const _0x5d0e44=_0x501406;logger[_0x5d0e44('0xe')](_0x5d0e44('0x1'),_0x3d118c,_0x1add59);})[_0x501406('0x19')](function(_0x83b2b6){const _0xda28ae=_0x501406;logger[_0xda28ae('0xe')](util[_0xda28ae('0x20')](_0x83b2b6,{'showHidden':![],'depth':null}));});});},Migration[_0x45f23e('0xc')][_0x45f23e('0x16')]=function(_0xb97ac8,_0x3c75d2,_0xf2dea2){const _0x511c29=_0x45f23e,_0x1aa8db=this;this[_0x511c29('0x1e')][_0x511c29('0xa')](function(){const _0x118aef=_0x511c29;return _0x1aa8db['queryInterface'][_0x118aef('0x16')](_0xb97ac8,_0x3c75d2,_0xf2dea2)[_0x118aef('0x7')](function(){const _0x20765e=_0x118aef;logger['info'](_0x20765e('0xd'),_0x3c75d2,_0xf2dea2,_0xb97ac8);})['catch'](function(_0x85a096){const _0x56d9de=_0x118aef;logger[_0x56d9de('0xe')](util[_0x56d9de('0x20')](_0x85a096,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x380e36){const _0x3e341b=_0x45f23e;this[_0x3e341b('0x1e')][_0x3e341b('0xa')](function(){return _0x380e36();});},module[_0x45f23e('0x12')]={'up':function(_0x1bf4ea){return new Promise(function(_0x1bb6f7){const _0x15764f=a1019_0x3f49,_0x55d27f=new Migration(_0x1bf4ea);_0x55d27f[_0x15764f('0x22')]('cm_contacts',[_0x15764f('0x2'),'lastName',_0x15764f('0x1c'),'mobile',_0x15764f('0x3'),'email'],{'indexName':'fti_cm_contacts','indicesType':_0x15764f('0x11')}),_0x55d27f[_0x15764f('0x4')](_0x1bb6f7);});},'down':function(){}};
\ No newline at end of file
+const a1018_0x5845=['util','queryInterface','inspect','join','lastName','../config/logger','dropTable','cm_contacts','mobile','table\x20dropped\x20%s','changeColumn','then','query\x20%s','stringify','fti_cm_contacts','indexName','indicesType','Removed\x20column\x20%s\x20from\x20%s','FULLTEXT','catch','migration','final','removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','query','Added\x20column\x20%s\x20to\x20%s','finally','exports','email','phone','sequence','removeIndex','renameColumn','enqueue','addIndex','info','addColumn','firstName','prototype','tail'];(function(_0x35387c,_0x5845e7){const _0x550d00=function(_0x17eb04){while(--_0x17eb04){_0x35387c['push'](_0x35387c['shift']());}};_0x550d00(++_0x5845e7);}(a1018_0x5845,0x1c9));const a1018_0x550d=function(_0x35387c,_0x5845e7){_0x35387c=_0x35387c-0x0;let _0x550d00=a1018_0x5845[_0x35387c];return _0x550d00;};const _0x4682dc=a1018_0x550d;'use strict';const util=require(_0x4682dc('0x17')),logger=require(_0x4682dc('0x1c'))(_0x4682dc('0x3')),Sequence=function(){};Sequence[_0x4682dc('0x15')]['enqueue']=function(_0x17eb04){const _0x3a0fea=_0x4682dc;this[_0x3a0fea('0x16')]=this[_0x3a0fea('0x16')]?this[_0x3a0fea('0x16')][_0x3a0fea('0x9')](_0x17eb04):_0x17eb04();};const Migration=function(_0x7ca0bd){const _0x3f3482=_0x4682dc;this[_0x3f3482('0x18')]=_0x7ca0bd,this[_0x3f3482('0xd')]=new Sequence();};Migration[_0x4682dc('0x15')][_0x4682dc('0x21')]=function(_0x180601,_0x433052,_0x3475d4){const _0x36bf5b=_0x4682dc,_0x2bc177=this;this[_0x36bf5b('0xd')][_0x36bf5b('0x10')](function(){const _0x18ed9e=_0x36bf5b;return _0x2bc177[_0x18ed9e('0x18')][_0x18ed9e('0x21')](_0x180601,_0x433052,_0x3475d4)[_0x18ed9e('0x22')](function(){const _0x48b927=_0x18ed9e;logger['info'](_0x48b927('0x6'),_0x433052,_0x180601);})[_0x18ed9e('0x2')](function(_0x241b84){const _0x453d31=_0x18ed9e;logger['info'](JSON[_0x453d31('0x24')](_0x241b84));});});},Migration[_0x4682dc('0x15')][_0x4682dc('0x13')]=function(_0x7af3d1,_0x129fd3,_0x38fd00){const _0x193027=_0x4682dc,_0xa333c2=this;this[_0x193027('0xd')][_0x193027('0x10')](function(){const _0x5c2b90=_0x193027;return _0xa333c2['queryInterface'][_0x5c2b90('0x13')](_0x7af3d1,_0x129fd3,_0x38fd00)[_0x5c2b90('0x22')](function(){const _0x4c061f=_0x5c2b90;logger['info'](_0x4c061f('0x8'),_0x129fd3,_0x7af3d1);})[_0x5c2b90('0x2')](function(_0x3eec48){const _0x55d0b4=_0x5c2b90;logger[_0x55d0b4('0x12')](JSON[_0x55d0b4('0x24')](_0x3eec48));});});},Migration[_0x4682dc('0x15')][_0x4682dc('0x1d')]=function(_0x2bf2e1){const _0x2c9590=_0x4682dc,_0x261c44=this;this[_0x2c9590('0xd')][_0x2c9590('0x10')](function(){const _0x4f7fc4=_0x2c9590;return _0x261c44[_0x4f7fc4('0x18')][_0x4f7fc4('0x1d')](_0x2bf2e1,{'force':!![]})['then'](function(){const _0xcc51c8=_0x4f7fc4;logger[_0xcc51c8('0x12')](_0xcc51c8('0x20'),_0x2bf2e1);})[_0x4f7fc4('0x2')](function(_0x51540e){const _0xff0f0d=_0x4f7fc4;logger['info'](JSON[_0xff0f0d('0x24')](_0x51540e));});});},Migration[_0x4682dc('0x15')][_0x4682dc('0x11')]=function(_0x36c1c4,_0x5ce244,_0x3399e4){const _0x3d8669=_0x4682dc,_0x22cac6=this;this['sequence'][_0x3d8669('0x10')](function(){const _0x124b87=_0x3d8669;return _0x22cac6[_0x124b87('0x18')][_0x124b87('0x11')](_0x36c1c4,_0x5ce244,{'indexName':_0x3399e4[_0x124b87('0x26')],'indicesType':_0x3399e4[_0x124b87('0x27')]})[_0x124b87('0x22')](function(){const _0xc2c951=_0x124b87;logger[_0xc2c951('0x12')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x36c1c4,_0x5ce244[_0xc2c951('0x1a')](','),_0x3399e4[_0xc2c951('0x26')],_0x3399e4[_0xc2c951('0x27')]);})[_0x124b87('0x2')](function(_0x27bab8){const _0x3d5d67=_0x124b87;logger[_0x3d5d67('0x12')](JSON[_0x3d5d67('0x24')](_0x27bab8));});});},Migration[_0x4682dc('0x15')][_0x4682dc('0xe')]=function(_0x59f23c,_0x47f98b){const _0x17f827=_0x4682dc,_0xb67555=this;this[_0x17f827('0xd')][_0x17f827('0x10')](function(){const _0x9da4c0=_0x17f827;return _0xb67555[_0x9da4c0('0x18')][_0x9da4c0('0xe')](_0x59f23c,_0x47f98b)[_0x9da4c0('0x22')](function(){const _0x5c87fc=_0x9da4c0;logger[_0x5c87fc('0x12')]('removeIndex\x20%s\x20%s',_0x59f23c,_0x47f98b);})['catch'](function(_0x128112){const _0x3eab21=_0x9da4c0;logger[_0x3eab21('0x12')](JSON[_0x3eab21('0x24')](_0x128112));});});},Migration[_0x4682dc('0x15')][_0x4682dc('0x7')]=function(_0x243064){const _0x394fd6=_0x4682dc,_0x3b7e55=this;this[_0x394fd6('0xd')][_0x394fd6('0x10')](function(){const _0x29223f=_0x394fd6;return _0x3b7e55[_0x29223f('0x18')]['sequelize'][_0x29223f('0x7')](_0x243064)[_0x29223f('0x22')](function(){const _0x4f5690=_0x29223f;logger[_0x4f5690('0x12')](_0x4f5690('0x23'),_0x243064);})[_0x29223f('0x2')](function(_0x985d54){const _0x2e8c0b=_0x29223f;logger[_0x2e8c0b('0x12')](JSON[_0x2e8c0b('0x24')](_0x985d54));});});},Migration[_0x4682dc('0x15')][_0x4682dc('0x5')]=function(_0x1b9c1d,_0x31801f){const _0x39e3ec=_0x4682dc,_0x5e665a=this;this[_0x39e3ec('0xd')][_0x39e3ec('0x10')](function(){const _0x2895b3=_0x39e3ec;return _0x5e665a[_0x2895b3('0x18')]['removeColumn'](_0x1b9c1d,_0x31801f)[_0x2895b3('0x22')](function(){const _0x383861=_0x2895b3;logger['info'](_0x383861('0x0'),_0x31801f,_0x1b9c1d);})[_0x2895b3('0x2')](function(_0x187e5e){const _0x42e49e=_0x2895b3;logger[_0x42e49e('0x12')](util['inspect'](_0x187e5e,{'showHidden':![],'depth':null}));});});},Migration[_0x4682dc('0x15')][_0x4682dc('0xf')]=function(_0x383576,_0x5b1530,_0x1a00ef){const _0x2aea8b=_0x4682dc,_0x443b00=this;this[_0x2aea8b('0xd')][_0x2aea8b('0x10')](function(){const _0x532964=_0x2aea8b;return _0x443b00['queryInterface'][_0x532964('0xf')](_0x383576,_0x5b1530,_0x1a00ef)[_0x532964('0x22')](function(){const _0x19897c=_0x532964;logger[_0x19897c('0x12')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x5b1530,_0x1a00ef,_0x383576);})[_0x532964('0x2')](function(_0x1d126f){const _0x143127=_0x532964;logger[_0x143127('0x12')](util[_0x143127('0x19')](_0x1d126f,{'showHidden':![],'depth':null}));});});},Migration[_0x4682dc('0x15')][_0x4682dc('0x4')]=function(_0x2f44ab){const _0x2b2563=_0x4682dc;this[_0x2b2563('0xd')][_0x2b2563('0x10')](function(){return _0x2f44ab();});},module[_0x4682dc('0xa')]={'up':function(_0x1af6c6){return new Promise(function(_0x7720bf){const _0x28a0a0=a1018_0x550d,_0x52bde7=new Migration(_0x1af6c6);_0x52bde7[_0x28a0a0('0x11')](_0x28a0a0('0x1e'),[_0x28a0a0('0x14'),_0x28a0a0('0x1b'),_0x28a0a0('0xc'),_0x28a0a0('0x1f'),'fax',_0x28a0a0('0xb')],{'indexName':_0x28a0a0('0x25'),'indicesType':_0x28a0a0('0x1')}),_0x52bde7[_0x28a0a0('0x4')](_0x7720bf);});},'down':function(){}};
\ No newline at end of file