Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.0.js
index 87218fb..b1a98fb 100644 (file)
@@ -1 +1 @@
-const a972_0x57d0=['util','query\x20%s','table\x20dropped\x20%s','Added\x20column\x20%s\x20to\x20%s','users','Changed\x20column\x20%s\x20in\x20table\x20%s','../config/logger','uniqueid','info','exports','queryInterface','tail','apiKeyNonce','addColumn','finally','addIndex','inspect','then','removeIndex','changeColumn','enqueue','sequence','catch','prototype','STRING','renameColumn','final','Removed\x20column\x20%s\x20from\x20%s','stringify','sequelize','query','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeColumn'];(function(_0x18f9ff,_0x57d0ba){const _0x39296f=function(_0x4508d8){while(--_0x4508d8){_0x18f9ff['push'](_0x18f9ff['shift']());}};_0x39296f(++_0x57d0ba);}(a972_0x57d0,0x171));const a972_0x3929=function(_0x18f9ff,_0x57d0ba){_0x18f9ff=_0x18f9ff-0x0;let _0x39296f=a972_0x57d0[_0x18f9ff];return _0x39296f;};const _0x4e9166=a972_0x3929;'use strict';const util=require(_0x4e9166('0x1b')),logger=require(_0x4e9166('0x0'))('migration'),Sequence=function(){};Sequence[_0x4e9166('0x11')]['enqueue']=function(_0x4508d8){const _0x5cef83=_0x4e9166;this[_0x5cef83('0x5')]=this['tail']?this[_0x5cef83('0x5')][_0x5cef83('0x8')](_0x4508d8):_0x4508d8();};const Migration=function(_0x5c9ac7){const _0x18ea71=_0x4e9166;this[_0x18ea71('0x4')]=_0x5c9ac7,this['sequence']=new Sequence();};Migration[_0x4e9166('0x11')][_0x4e9166('0xd')]=function(_0x195a47,_0x33e2cf,_0x5baba5){const _0xb52324=_0x4e9166,_0x4a28a4=this;this['sequence'][_0xb52324('0xe')](function(){const _0x403b49=_0xb52324;return _0x4a28a4[_0x403b49('0x4')]['changeColumn'](_0x195a47,_0x33e2cf,_0x5baba5)[_0x403b49('0xb')](function(){const _0x3eb32c=_0x403b49;logger[_0x3eb32c('0x2')](_0x3eb32c('0x20'),_0x33e2cf,_0x195a47);})[_0x403b49('0x10')](function(_0x1e8c64){const _0x399f87=_0x403b49;logger[_0x399f87('0x2')](JSON['stringify'](_0x1e8c64));});});},Migration[_0x4e9166('0x11')][_0x4e9166('0x7')]=function(_0x4231f8,_0x502047,_0x556cd8){const _0x20ff2e=_0x4e9166,_0x3bd101=this;this[_0x20ff2e('0xf')][_0x20ff2e('0xe')](function(){const _0x4236e3=_0x20ff2e;return _0x3bd101[_0x4236e3('0x4')]['addColumn'](_0x4231f8,_0x502047,_0x556cd8)[_0x4236e3('0xb')](function(){const _0x21341c=_0x4236e3;logger[_0x21341c('0x2')](_0x21341c('0x1e'),_0x502047,_0x4231f8);})[_0x4236e3('0x10')](function(_0x5e7835){const _0x4c6323=_0x4236e3;logger[_0x4c6323('0x2')](JSON['stringify'](_0x5e7835));});});},Migration['prototype']['dropTable']=function(_0x5bac89){const _0x5eca36=_0x4e9166,_0x5d38ad=this;this[_0x5eca36('0xf')][_0x5eca36('0xe')](function(){const _0x5b84cd=_0x5eca36;return _0x5d38ad[_0x5b84cd('0x4')]['dropTable'](_0x5bac89,{'force':!![]})[_0x5b84cd('0xb')](function(){const _0x2cc94b=_0x5b84cd;logger[_0x2cc94b('0x2')](_0x2cc94b('0x1d'),_0x5bac89);})[_0x5b84cd('0x10')](function(_0x545f7d){const _0x46f5b2=_0x5b84cd;logger['info'](JSON[_0x46f5b2('0x16')](_0x545f7d));});});},Migration[_0x4e9166('0x11')][_0x4e9166('0x9')]=function(_0x5cb41f,_0x2add5b,_0x1cecc8){const _0x4df8bf=_0x4e9166,_0x5f20f4=this;this[_0x4df8bf('0xf')][_0x4df8bf('0xe')](function(){const _0x39bbfa=_0x4df8bf;return _0x5f20f4[_0x39bbfa('0x4')]['addIndex'](_0x5cb41f,_0x2add5b,{'indexName':_0x1cecc8})[_0x39bbfa('0xb')](function(){const _0x1c8136=_0x39bbfa;logger[_0x1c8136('0x2')]('addIndex\x20%s\x20%s\x20%s',_0x5cb41f,_0x2add5b['join'](','),_0x1cecc8);})[_0x39bbfa('0x10')](function(_0x547c34){const _0x5427c9=_0x39bbfa;logger[_0x5427c9('0x2')](JSON[_0x5427c9('0x16')](_0x547c34));});});},Migration[_0x4e9166('0x11')][_0x4e9166('0xc')]=function(_0x4d7b3f,_0x279fa0){const _0x3c24de=_0x4e9166,_0x24c552=this;this[_0x3c24de('0xf')]['enqueue'](function(){const _0x3eb6df=_0x3c24de;return _0x24c552[_0x3eb6df('0x4')][_0x3eb6df('0xc')](_0x4d7b3f,_0x279fa0)[_0x3eb6df('0xb')](function(){const _0x2ec8a9=_0x3eb6df;logger[_0x2ec8a9('0x2')]('removeIndex\x20%s\x20%s',_0x4d7b3f,_0x279fa0);})[_0x3eb6df('0x10')](function(_0x3d089e){logger['info'](JSON['stringify'](_0x3d089e));});});},Migration[_0x4e9166('0x11')][_0x4e9166('0x18')]=function(_0x16d0f5){const _0x2b080c=_0x4e9166,_0x23b6ee=this;this[_0x2b080c('0xf')][_0x2b080c('0xe')](function(){const _0x1d4a4a=_0x2b080c;return _0x23b6ee[_0x1d4a4a('0x4')][_0x1d4a4a('0x17')][_0x1d4a4a('0x18')](_0x16d0f5)['then'](function(){const _0x7778bb=_0x1d4a4a;logger['info'](_0x7778bb('0x1c'),_0x16d0f5);})['catch'](function(_0x3e813a){const _0x236382=_0x1d4a4a;logger['info'](JSON[_0x236382('0x16')](_0x3e813a));});});},Migration['prototype']['removeColumn']=function(_0x36df33,_0x2605e8){const _0x4ec57f=_0x4e9166,_0x2e92cc=this;this[_0x4ec57f('0xf')]['enqueue'](function(){const _0x203aea=_0x4ec57f;return _0x2e92cc[_0x203aea('0x4')][_0x203aea('0x1a')](_0x36df33,_0x2605e8)[_0x203aea('0xb')](function(){const _0x1a1ca1=_0x203aea;logger[_0x1a1ca1('0x2')](_0x1a1ca1('0x15'),_0x2605e8,_0x36df33);})[_0x203aea('0x10')](function(_0x25c62e){const _0x104f89=_0x203aea;logger[_0x104f89('0x2')](util[_0x104f89('0xa')](_0x25c62e,{'showHidden':![],'depth':null}));});});},Migration[_0x4e9166('0x11')][_0x4e9166('0x13')]=function(_0x5c8432,_0x3a47c3,_0x45ae55){const _0x2b05ff=_0x4e9166,_0x40ecfe=this;this['sequence'][_0x2b05ff('0xe')](function(){const _0x32f0e1=_0x2b05ff;return _0x40ecfe[_0x32f0e1('0x4')][_0x32f0e1('0x13')](_0x5c8432,_0x3a47c3,_0x45ae55)[_0x32f0e1('0xb')](function(){const _0x4ad500=_0x32f0e1;logger['info'](_0x4ad500('0x19'),_0x3a47c3,_0x45ae55,_0x5c8432);})[_0x32f0e1('0x10')](function(_0x2d2063){const _0x175bf8=_0x32f0e1;logger['info'](util[_0x175bf8('0xa')](_0x2d2063,{'showHidden':![],'depth':null}));});});},Migration[_0x4e9166('0x11')]['final']=function(_0x4f5824){const _0x5d2b7f=_0x4e9166;this['sequence'][_0x5d2b7f('0xe')](function(){return _0x4f5824();});},module[_0x4e9166('0x3')]={'up':function(_0xdfb939,_0x4ee649){return new Promise(function(_0x53bcf7){const _0x5c14f3=a972_0x3929,_0x42edac=new Migration(_0xdfb939);_0x42edac['addColumn'](_0x5c14f3('0x1f'),_0x5c14f3('0x6'),{'type':_0x4ee649['STRING']}),_0x42edac[_0x5c14f3('0x7')](_0x5c14f3('0x1f'),'apiKeyIat',{'type':_0x4ee649[_0x5c14f3('0x12')]}),_0x42edac[_0x5c14f3('0x9')]('report_call',['uniqueid'],_0x5c14f3('0x1')),_0x42edac[_0x5c14f3('0x14')](_0x53bcf7);});},'down':function(){}};
\ No newline at end of file
+const a972_0x4e53=['migration','addColumn','changeColumn','Added\x20column\x20%s\x20to\x20%s','addIndex','enqueue','Changed\x20column\x20%s\x20in\x20table\x20%s','queryInterface','removeIndex\x20%s\x20%s','Removed\x20column\x20%s\x20from\x20%s','sequence','renameColumn','query\x20%s','final','removeColumn','catch','prototype','addIndex\x20%s\x20%s\x20%s','table\x20dropped\x20%s','dropTable','exports','util','inspect','sequelize','then','tail','users','apiKeyNonce','finally','info','join','stringify','uniqueid','../config/logger'];(function(_0x566e08,_0x4e53bf){const _0x54ca52=function(_0x219416){while(--_0x219416){_0x566e08['push'](_0x566e08['shift']());}};_0x54ca52(++_0x4e53bf);}(a972_0x4e53,0x12b));const a972_0x54ca=function(_0x566e08,_0x4e53bf){_0x566e08=_0x566e08-0x0;let _0x54ca52=a972_0x4e53[_0x566e08];return _0x54ca52;};const _0x18716e=a972_0x54ca;'use strict';const util=require(_0x18716e('0x1c')),logger=require(_0x18716e('0x6'))(_0x18716e('0x7')),Sequence=function(){};Sequence[_0x18716e('0x17')][_0x18716e('0xc')]=function(_0x219416){const _0x45af12=_0x18716e;this['tail']=this[_0x45af12('0x20')]?this[_0x45af12('0x20')][_0x45af12('0x1')](_0x219416):_0x219416();};const Migration=function(_0x398332){const _0x56c402=_0x18716e;this[_0x56c402('0xe')]=_0x398332,this[_0x56c402('0x11')]=new Sequence();};Migration[_0x18716e('0x17')][_0x18716e('0x9')]=function(_0x19cb21,_0x103d18,_0x1a398c){const _0x54f814=_0x18716e,_0x359a75=this;this[_0x54f814('0x11')][_0x54f814('0xc')](function(){const _0x508b28=_0x54f814;return _0x359a75[_0x508b28('0xe')][_0x508b28('0x9')](_0x19cb21,_0x103d18,_0x1a398c)[_0x508b28('0x1f')](function(){const _0x1e1f20=_0x508b28;logger[_0x1e1f20('0x2')](_0x1e1f20('0xd'),_0x103d18,_0x19cb21);})['catch'](function(_0x2379cc){const _0x1c0ada=_0x508b28;logger[_0x1c0ada('0x2')](JSON['stringify'](_0x2379cc));});});},Migration[_0x18716e('0x17')][_0x18716e('0x8')]=function(_0x4e81db,_0x3c250f,_0x42f70b){const _0x52acee=_0x18716e,_0x50c018=this;this['sequence'][_0x52acee('0xc')](function(){const _0x1865f0=_0x52acee;return _0x50c018[_0x1865f0('0xe')][_0x1865f0('0x8')](_0x4e81db,_0x3c250f,_0x42f70b)[_0x1865f0('0x1f')](function(){const _0x52edc5=_0x1865f0;logger[_0x52edc5('0x2')](_0x52edc5('0xa'),_0x3c250f,_0x4e81db);})[_0x1865f0('0x16')](function(_0x10e858){const _0x2ab6b2=_0x1865f0;logger[_0x2ab6b2('0x2')](JSON[_0x2ab6b2('0x4')](_0x10e858));});});},Migration['prototype'][_0x18716e('0x1a')]=function(_0x208082){const _0x370cae=_0x18716e,_0x25ae45=this;this[_0x370cae('0x11')]['enqueue'](function(){const _0x948d87=_0x370cae;return _0x25ae45[_0x948d87('0xe')]['dropTable'](_0x208082,{'force':!![]})['then'](function(){const _0x1ecffc=_0x948d87;logger['info'](_0x1ecffc('0x19'),_0x208082);})['catch'](function(_0x42feb6){const _0x4057dc=_0x948d87;logger[_0x4057dc('0x2')](JSON['stringify'](_0x42feb6));});});},Migration[_0x18716e('0x17')][_0x18716e('0xb')]=function(_0x5240cb,_0x257480,_0x3e77d7){const _0x9a6066=_0x18716e,_0x13c040=this;this[_0x9a6066('0x11')]['enqueue'](function(){const _0x16b9ec=_0x9a6066;return _0x13c040[_0x16b9ec('0xe')][_0x16b9ec('0xb')](_0x5240cb,_0x257480,{'indexName':_0x3e77d7})[_0x16b9ec('0x1f')](function(){const _0x49c315=_0x16b9ec;logger[_0x49c315('0x2')](_0x49c315('0x18'),_0x5240cb,_0x257480[_0x49c315('0x3')](','),_0x3e77d7);})['catch'](function(_0xa524f1){const _0x19047e=_0x16b9ec;logger[_0x19047e('0x2')](JSON[_0x19047e('0x4')](_0xa524f1));});});},Migration[_0x18716e('0x17')]['removeIndex']=function(_0x58d82b,_0x1b3816){const _0x3ca13b=_0x18716e,_0x338c9c=this;this[_0x3ca13b('0x11')][_0x3ca13b('0xc')](function(){const _0x4d2694=_0x3ca13b;return _0x338c9c[_0x4d2694('0xe')]['removeIndex'](_0x58d82b,_0x1b3816)[_0x4d2694('0x1f')](function(){const _0x2b365c=_0x4d2694;logger['info'](_0x2b365c('0xf'),_0x58d82b,_0x1b3816);})['catch'](function(_0x90df1e){const _0x358571=_0x4d2694;logger[_0x358571('0x2')](JSON[_0x358571('0x4')](_0x90df1e));});});},Migration[_0x18716e('0x17')]['query']=function(_0x25a924){const _0x10323a=this;this['sequence']['enqueue'](function(){const _0x4dcf5b=a972_0x54ca;return _0x10323a[_0x4dcf5b('0xe')][_0x4dcf5b('0x1e')]['query'](_0x25a924)[_0x4dcf5b('0x1f')](function(){const _0x540132=_0x4dcf5b;logger['info'](_0x540132('0x13'),_0x25a924);})[_0x4dcf5b('0x16')](function(_0x33460b){const _0x57ce02=_0x4dcf5b;logger[_0x57ce02('0x2')](JSON[_0x57ce02('0x4')](_0x33460b));});});},Migration['prototype'][_0x18716e('0x15')]=function(_0x45739d,_0x46f2a5){const _0x13b283=_0x18716e,_0x207dcd=this;this[_0x13b283('0x11')][_0x13b283('0xc')](function(){const _0xe47fe2=_0x13b283;return _0x207dcd[_0xe47fe2('0xe')][_0xe47fe2('0x15')](_0x45739d,_0x46f2a5)[_0xe47fe2('0x1f')](function(){const _0x79e50b=_0xe47fe2;logger[_0x79e50b('0x2')](_0x79e50b('0x10'),_0x46f2a5,_0x45739d);})[_0xe47fe2('0x16')](function(_0x2844b1){const _0x170ccc=_0xe47fe2;logger[_0x170ccc('0x2')](util[_0x170ccc('0x1d')](_0x2844b1,{'showHidden':![],'depth':null}));});});},Migration[_0x18716e('0x17')][_0x18716e('0x12')]=function(_0x40321a,_0x1aba63,_0x2debd2){const _0x5eda69=_0x18716e,_0x3933e2=this;this[_0x5eda69('0x11')]['enqueue'](function(){const _0x1dd508=_0x5eda69;return _0x3933e2[_0x1dd508('0xe')][_0x1dd508('0x12')](_0x40321a,_0x1aba63,_0x2debd2)[_0x1dd508('0x1f')](function(){const _0x1e38fb=_0x1dd508;logger[_0x1e38fb('0x2')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x1aba63,_0x2debd2,_0x40321a);})['catch'](function(_0x20d4a2){const _0x54721d=_0x1dd508;logger[_0x54721d('0x2')](util[_0x54721d('0x1d')](_0x20d4a2,{'showHidden':![],'depth':null}));});});},Migration[_0x18716e('0x17')][_0x18716e('0x14')]=function(_0x42a139){const _0x454f1d=_0x18716e;this['sequence'][_0x454f1d('0xc')](function(){return _0x42a139();});},module[_0x18716e('0x1b')]={'up':function(_0x40d23a,_0x5ef411){return new Promise(function(_0x14f6cd){const _0x5f3e67=a972_0x54ca,_0x4919e2=new Migration(_0x40d23a);_0x4919e2[_0x5f3e67('0x8')](_0x5f3e67('0x21'),_0x5f3e67('0x0'),{'type':_0x5ef411['STRING']}),_0x4919e2['addColumn'](_0x5f3e67('0x21'),'apiKeyIat',{'type':_0x5ef411['STRING']}),_0x4919e2[_0x5f3e67('0xb')]('report_call',[_0x5f3e67('0x5')],_0x5f3e67('0x5')),_0x4919e2[_0x5f3e67('0x14')](_0x14f6cd);});},'down':function(){}};
\ No newline at end of file