Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / migrations / 2.5.6.js
index e654a79..990a556 100644 (file)
@@ -1 +1 @@
-const a1019_0xe8f2=['indexName','final','join','table\x20dropped\x20%s','../config/logger','firstName','addIndex\x20%s\x20%s\x20%s\x20[%s]','info','renameColumn','sequence','FULLTEXT','stringify','sequelize','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','inspect','dropTable','removeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','then','addColumn','mobile','query\x20%s','enqueue','migration','removeIndex','query','exports','tail','phone','addIndex','queryInterface','finally','indicesType','util','catch','fti_cm_contacts'];(function(_0xf2d7f0,_0xe8f2a5){const _0x11f38d=function(_0x3691f5){while(--_0x3691f5){_0xf2d7f0['push'](_0xf2d7f0['shift']());}};_0x11f38d(++_0xe8f2a5);}(a1019_0xe8f2,0x104));const a1019_0x11f3=function(_0xf2d7f0,_0xe8f2a5){_0xf2d7f0=_0xf2d7f0-0x0;let _0x11f38d=a1019_0xe8f2[_0xf2d7f0];return _0x11f38d;};const _0x5a753a=a1019_0x11f3;'use strict';const util=require(_0x5a753a('0x21')),logger=require(_0x5a753a('0x3'))(_0x5a753a('0x17')),Sequence=function(){};Sequence[_0x5a753a('0xc')][_0x5a753a('0x16')]=function(_0x3691f5){const _0x1dcd43=_0x5a753a;this[_0x1dcd43('0x1b')]=this['tail']?this[_0x1dcd43('0x1b')][_0x1dcd43('0x1f')](_0x3691f5):_0x3691f5();};const Migration=function(_0x12016b){const _0x16bb4c=_0x5a753a;this[_0x16bb4c('0x1e')]=_0x12016b,this[_0x16bb4c('0x8')]=new Sequence();};Migration[_0x5a753a('0xc')]['changeColumn']=function(_0x38173e,_0x6a3754,_0x55562c){const _0x5279c4=_0x5a753a,_0x49b982=this;this[_0x5279c4('0x8')][_0x5279c4('0x16')](function(){const _0x564c76=_0x5279c4;return _0x49b982['queryInterface']['changeColumn'](_0x38173e,_0x6a3754,_0x55562c)[_0x564c76('0x12')](function(){const _0x35a9fb=_0x564c76;logger['info'](_0x35a9fb('0xd'),_0x6a3754,_0x38173e);})[_0x564c76('0x22')](function(_0x2c677a){const _0x5abe5c=_0x564c76;logger['info'](JSON[_0x5abe5c('0xa')](_0x2c677a));});});},Migration[_0x5a753a('0xc')][_0x5a753a('0x13')]=function(_0x148f6b,_0x241074,_0x1518ea){const _0x447574=_0x5a753a,_0x2a0ff1=this;this[_0x447574('0x8')][_0x447574('0x16')](function(){const _0x5313e5=_0x447574;return _0x2a0ff1[_0x5313e5('0x1e')][_0x5313e5('0x13')](_0x148f6b,_0x241074,_0x1518ea)[_0x5313e5('0x12')](function(){const _0x336733=_0x5313e5;logger[_0x336733('0x6')]('Added\x20column\x20%s\x20to\x20%s',_0x241074,_0x148f6b);})[_0x5313e5('0x22')](function(_0x1408a7){const _0xc0485e=_0x5313e5;logger[_0xc0485e('0x6')](JSON['stringify'](_0x1408a7));});});},Migration[_0x5a753a('0xc')][_0x5a753a('0xf')]=function(_0x334535){const _0x6cc155=_0x5a753a,_0x599f8f=this;this[_0x6cc155('0x8')]['enqueue'](function(){const _0x2b77a2=_0x6cc155;return _0x599f8f[_0x2b77a2('0x1e')]['dropTable'](_0x334535,{'force':!![]})[_0x2b77a2('0x12')](function(){const _0x2f9810=_0x2b77a2;logger[_0x2f9810('0x6')](_0x2f9810('0x2'),_0x334535);})[_0x2b77a2('0x22')](function(_0x530bc9){const _0x2d891d=_0x2b77a2;logger[_0x2d891d('0x6')](JSON['stringify'](_0x530bc9));});});},Migration[_0x5a753a('0xc')][_0x5a753a('0x1d')]=function(_0x540c71,_0x46b134,_0x408c46){const _0x47d1cc=_0x5a753a,_0x172598=this;this[_0x47d1cc('0x8')][_0x47d1cc('0x16')](function(){const _0x3eb264=_0x47d1cc;return _0x172598[_0x3eb264('0x1e')][_0x3eb264('0x1d')](_0x540c71,_0x46b134,{'indexName':_0x408c46[_0x3eb264('0x24')],'indicesType':_0x408c46['indicesType']})[_0x3eb264('0x12')](function(){const _0xb3d064=_0x3eb264;logger[_0xb3d064('0x6')](_0xb3d064('0x5'),_0x540c71,_0x46b134[_0xb3d064('0x1')](','),_0x408c46[_0xb3d064('0x24')],_0x408c46[_0xb3d064('0x20')]);})[_0x3eb264('0x22')](function(_0x366a27){const _0x50a211=_0x3eb264;logger[_0x50a211('0x6')](JSON[_0x50a211('0xa')](_0x366a27));});});},Migration[_0x5a753a('0xc')][_0x5a753a('0x18')]=function(_0x3809df,_0x5bfd5f){const _0x2bed14=_0x5a753a,_0x1bdd99=this;this[_0x2bed14('0x8')][_0x2bed14('0x16')](function(){const _0x28918c=_0x2bed14;return _0x1bdd99[_0x28918c('0x1e')][_0x28918c('0x18')](_0x3809df,_0x5bfd5f)[_0x28918c('0x12')](function(){const _0x18df36=_0x28918c;logger[_0x18df36('0x6')]('removeIndex\x20%s\x20%s',_0x3809df,_0x5bfd5f);})[_0x28918c('0x22')](function(_0x19417c){const _0x2d167b=_0x28918c;logger[_0x2d167b('0x6')](JSON[_0x2d167b('0xa')](_0x19417c));});});},Migration[_0x5a753a('0xc')][_0x5a753a('0x19')]=function(_0x49ee2e){const _0x23de8b=_0x5a753a,_0x1a54f7=this;this['sequence'][_0x23de8b('0x16')](function(){const _0x39e37e=_0x23de8b;return _0x1a54f7[_0x39e37e('0x1e')][_0x39e37e('0xb')][_0x39e37e('0x19')](_0x49ee2e)[_0x39e37e('0x12')](function(){const _0x49c786=_0x39e37e;logger[_0x49c786('0x6')](_0x49c786('0x15'),_0x49ee2e);})[_0x39e37e('0x22')](function(_0x460ac2){const _0x257354=_0x39e37e;logger[_0x257354('0x6')](JSON['stringify'](_0x460ac2));});});},Migration[_0x5a753a('0xc')][_0x5a753a('0x10')]=function(_0x18e47d,_0x2d8acf){const _0x5ba9db=_0x5a753a,_0x55a325=this;this[_0x5ba9db('0x8')][_0x5ba9db('0x16')](function(){const _0x12bc00=_0x5ba9db;return _0x55a325[_0x12bc00('0x1e')][_0x12bc00('0x10')](_0x18e47d,_0x2d8acf)[_0x12bc00('0x12')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x2d8acf,_0x18e47d);})[_0x12bc00('0x22')](function(_0x328953){const _0x55fedc=_0x12bc00;logger[_0x55fedc('0x6')](util[_0x55fedc('0xe')](_0x328953,{'showHidden':![],'depth':null}));});});},Migration[_0x5a753a('0xc')][_0x5a753a('0x7')]=function(_0x2458d8,_0x1cb1a7,_0x1a8bd7){const _0x4712b7=_0x5a753a,_0x217734=this;this[_0x4712b7('0x8')]['enqueue'](function(){const _0x27b00e=_0x4712b7;return _0x217734['queryInterface'][_0x27b00e('0x7')](_0x2458d8,_0x1cb1a7,_0x1a8bd7)[_0x27b00e('0x12')](function(){const _0x4f4cb6=_0x27b00e;logger[_0x4f4cb6('0x6')](_0x4f4cb6('0x11'),_0x1cb1a7,_0x1a8bd7,_0x2458d8);})['catch'](function(_0x250d1f){const _0x1e17b7=_0x27b00e;logger[_0x1e17b7('0x6')](util[_0x1e17b7('0xe')](_0x250d1f,{'showHidden':![],'depth':null}));});});},Migration[_0x5a753a('0xc')][_0x5a753a('0x0')]=function(_0x42b1b7){const _0x4fd328=_0x5a753a;this[_0x4fd328('0x8')]['enqueue'](function(){return _0x42b1b7();});},module[_0x5a753a('0x1a')]={'up':function(_0x34488d){return new Promise(function(_0x2cf4fd){const _0x11e514=a1019_0x11f3,_0x4cb335=new Migration(_0x34488d);_0x4cb335[_0x11e514('0x1d')]('cm_contacts',[_0x11e514('0x4'),'lastName',_0x11e514('0x1c'),_0x11e514('0x14'),'fax','email'],{'indexName':_0x11e514('0x23'),'indicesType':_0x11e514('0x9')}),_0x4cb335[_0x11e514('0x0')](_0x2cf4fd);});},'down':function(){}};
\ No newline at end of file
+const a1019_0xb808=['inspect','prototype','query\x20%s','info','table\x20dropped\x20%s','join','indexName','exports','removeIndex','enqueue','Added\x20column\x20%s\x20to\x20%s','FULLTEXT','finally','stringify','dropTable','fti_cm_contacts','removeColumn','renameColumn','tail','Removed\x20column\x20%s\x20from\x20%s','addColumn','sequence','addIndex\x20%s\x20%s\x20%s\x20[%s]','final','changeColumn','then','query','indicesType','util','migration','catch','../config/logger','removeIndex\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','firstName','mobile','addIndex','queryInterface'];(function(_0x1a5987,_0xb80895){const _0x1cc8de=function(_0x47df84){while(--_0x47df84){_0x1a5987['push'](_0x1a5987['shift']());}};_0x1cc8de(++_0xb80895);}(a1019_0xb808,0x197));const a1019_0x1cc8=function(_0x1a5987,_0xb80895){_0x1a5987=_0x1a5987-0x0;let _0x1cc8de=a1019_0xb808[_0x1a5987];return _0x1cc8de;};const _0x879f59=a1019_0x1cc8;'use strict';const util=require(_0x879f59('0x1')),logger=require(_0x879f59('0x4'))(_0x879f59('0x2')),Sequence=function(){};Sequence[_0x879f59('0xc')][_0x879f59('0x14')]=function(_0x47df84){const _0x1a80c4=_0x879f59;this['tail']=this[_0x1a80c4('0x1d')]?this[_0x1a80c4('0x1d')][_0x1a80c4('0x17')](_0x47df84):_0x47df84();};const Migration=function(_0x40eabf){const _0x40c67c=_0x879f59;this[_0x40c67c('0xa')]=_0x40eabf,this[_0x40c67c('0x20')]=new Sequence();};Migration['prototype'][_0x879f59('0x23')]=function(_0x4c7361,_0x2958f3,_0x50674e){const _0x31e89a=_0x879f59,_0x2f42fc=this;this['sequence'][_0x31e89a('0x14')](function(){const _0x4245d7=_0x31e89a;return _0x2f42fc[_0x4245d7('0xa')][_0x4245d7('0x23')](_0x4c7361,_0x2958f3,_0x50674e)[_0x4245d7('0x24')](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x2958f3,_0x4c7361);})[_0x4245d7('0x3')](function(_0x3dff07){const _0x433216=_0x4245d7;logger[_0x433216('0xe')](JSON['stringify'](_0x3dff07));});});},Migration['prototype']['addColumn']=function(_0x30677a,_0x51dfe8,_0x7ce13){const _0x3bb7ac=_0x879f59,_0x3d5348=this;this[_0x3bb7ac('0x20')][_0x3bb7ac('0x14')](function(){const _0x1623e5=_0x3bb7ac;return _0x3d5348['queryInterface'][_0x1623e5('0x1f')](_0x30677a,_0x51dfe8,_0x7ce13)[_0x1623e5('0x24')](function(){const _0xa5df0d=_0x1623e5;logger['info'](_0xa5df0d('0x15'),_0x51dfe8,_0x30677a);})[_0x1623e5('0x3')](function(_0x1a7ba7){const _0x71e487=_0x1623e5;logger[_0x71e487('0xe')](JSON[_0x71e487('0x18')](_0x1a7ba7));});});},Migration[_0x879f59('0xc')][_0x879f59('0x19')]=function(_0x2d8de3){const _0x9865e4=_0x879f59,_0x408a35=this;this['sequence'][_0x9865e4('0x14')](function(){const _0x544b26=_0x9865e4;return _0x408a35[_0x544b26('0xa')][_0x544b26('0x19')](_0x2d8de3,{'force':!![]})['then'](function(){const _0x53c342=_0x544b26;logger[_0x53c342('0xe')](_0x53c342('0xf'),_0x2d8de3);})[_0x544b26('0x3')](function(_0x1102c9){const _0x182732=_0x544b26;logger[_0x182732('0xe')](JSON[_0x182732('0x18')](_0x1102c9));});});},Migration['prototype'][_0x879f59('0x9')]=function(_0x4dfe15,_0x525da2,_0x3782a){const _0x491046=_0x879f59,_0x1840f6=this;this[_0x491046('0x20')][_0x491046('0x14')](function(){const _0x57fbcf=_0x491046;return _0x1840f6['queryInterface']['addIndex'](_0x4dfe15,_0x525da2,{'indexName':_0x3782a[_0x57fbcf('0x11')],'indicesType':_0x3782a[_0x57fbcf('0x0')]})[_0x57fbcf('0x24')](function(){const _0x205402=_0x57fbcf;logger['info'](_0x205402('0x21'),_0x4dfe15,_0x525da2[_0x205402('0x10')](','),_0x3782a[_0x205402('0x11')],_0x3782a[_0x205402('0x0')]);})['catch'](function(_0x4593ba){const _0x2d3d33=_0x57fbcf;logger[_0x2d3d33('0xe')](JSON[_0x2d3d33('0x18')](_0x4593ba));});});},Migration[_0x879f59('0xc')][_0x879f59('0x13')]=function(_0x392057,_0x3ed75f){const _0x3871a1=_0x879f59,_0x682137=this;this[_0x3871a1('0x20')][_0x3871a1('0x14')](function(){return _0x682137['queryInterface']['removeIndex'](_0x392057,_0x3ed75f)['then'](function(){const _0x3688ba=a1019_0x1cc8;logger[_0x3688ba('0xe')](_0x3688ba('0x5'),_0x392057,_0x3ed75f);})['catch'](function(_0x387ed7){const _0x3ed88b=a1019_0x1cc8;logger['info'](JSON[_0x3ed88b('0x18')](_0x387ed7));});});},Migration[_0x879f59('0xc')][_0x879f59('0x25')]=function(_0x2153e1){const _0x18ad78=_0x879f59,_0x5aa146=this;this[_0x18ad78('0x20')][_0x18ad78('0x14')](function(){const _0x9431a6=_0x18ad78;return _0x5aa146[_0x9431a6('0xa')]['sequelize'][_0x9431a6('0x25')](_0x2153e1)[_0x9431a6('0x24')](function(){const _0x3cad3b=_0x9431a6;logger[_0x3cad3b('0xe')](_0x3cad3b('0xd'),_0x2153e1);})[_0x9431a6('0x3')](function(_0xad8924){const _0x3542b9=_0x9431a6;logger[_0x3542b9('0xe')](JSON[_0x3542b9('0x18')](_0xad8924));});});},Migration['prototype'][_0x879f59('0x1b')]=function(_0x2913bb,_0x2c8c68){const _0x5f5b36=this;this['sequence']['enqueue'](function(){const _0x5e53de=a1019_0x1cc8;return _0x5f5b36[_0x5e53de('0xa')][_0x5e53de('0x1b')](_0x2913bb,_0x2c8c68)[_0x5e53de('0x24')](function(){const _0x5ca851=_0x5e53de;logger[_0x5ca851('0xe')](_0x5ca851('0x1e'),_0x2c8c68,_0x2913bb);})[_0x5e53de('0x3')](function(_0x836788){const _0x6fa7d3=_0x5e53de;logger[_0x6fa7d3('0xe')](util[_0x6fa7d3('0xb')](_0x836788,{'showHidden':![],'depth':null}));});});},Migration[_0x879f59('0xc')][_0x879f59('0x1c')]=function(_0x40704f,_0x492661,_0x2bfe50){const _0x593ebb=_0x879f59,_0x53cf58=this;this['sequence'][_0x593ebb('0x14')](function(){const _0x2d8c92=_0x593ebb;return _0x53cf58[_0x2d8c92('0xa')][_0x2d8c92('0x1c')](_0x40704f,_0x492661,_0x2bfe50)['then'](function(){const _0x112a7e=_0x2d8c92;logger[_0x112a7e('0xe')](_0x112a7e('0x6'),_0x492661,_0x2bfe50,_0x40704f);})['catch'](function(_0x4cece8){logger['info'](util['inspect'](_0x4cece8,{'showHidden':![],'depth':null}));});});},Migration[_0x879f59('0xc')][_0x879f59('0x22')]=function(_0x41f73d){const _0x567b0a=_0x879f59;this[_0x567b0a('0x20')][_0x567b0a('0x14')](function(){return _0x41f73d();});},module[_0x879f59('0x12')]={'up':function(_0x42dfa1){return new Promise(function(_0x403f71){const _0x583915=a1019_0x1cc8,_0xfa4975=new Migration(_0x42dfa1);_0xfa4975[_0x583915('0x9')]('cm_contacts',[_0x583915('0x7'),'lastName','phone',_0x583915('0x8'),'fax','email'],{'indexName':_0x583915('0x1a'),'indicesType':_0x583915('0x16')}),_0xfa4975[_0x583915('0x22')](_0x403f71);});},'down':function(){}};
\ No newline at end of file