Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.73.js
index 772cf71..98730fa 100644 (file)
@@ -1 +1 @@
-const a952_0xd7c6=['stringify','Added\x20column\x20%s\x20to\x20%s','table\x20dropped\x20%s','then','queryInterface','addIndex','sequence','cm_contacts','INTEGER','exports','enqueue','../config/logger','cm_hopper_final','removeColumn','prototype','query\x20%s','final','tail','STRING','routeid','removeIndex','addColumn','info','wechat','Changed\x20column\x20%s\x20in\x20table\x20%s','util','migration','query','dropTable','join','addIndex\x20%s\x20%s\x20%s','removeIndex\x20%s\x20%s','catch','cm_hopper_history','changeColumn'];(function(_0x5a3a3e,_0xd7c62b){const _0x1d10a1=function(_0x61630d){while(--_0x61630d){_0x5a3a3e['push'](_0x5a3a3e['shift']());}};_0x1d10a1(++_0xd7c62b);}(a952_0xd7c6,0x1c5));const a952_0x1d10=function(_0x5a3a3e,_0xd7c62b){_0x5a3a3e=_0x5a3a3e-0x0;let _0x1d10a1=a952_0xd7c6[_0x5a3a3e];return _0x1d10a1;};const _0x1d0c71=a952_0x1d10;'use strict';const util=require(_0x1d0c71('0x1b')),logger=require(_0x1d0c71('0xd'))(_0x1d0c71('0x1c')),Sequence=function(){};Sequence[_0x1d0c71('0x10')][_0x1d0c71('0xc')]=function(_0x61630d){const _0x13193a=_0x1d0c71;this[_0x13193a('0x13')]=this[_0x13193a('0x13')]?this[_0x13193a('0x13')]['finally'](_0x61630d):_0x61630d();};const Migration=function(_0x364f76){const _0x952509=_0x1d0c71;this[_0x952509('0x6')]=_0x364f76,this['sequence']=new Sequence();};Migration[_0x1d0c71('0x10')][_0x1d0c71('0x1')]=function(_0x500c89,_0x1d0efa,_0x2bf2f5){const _0x118e87=_0x1d0c71,_0x56f6bc=this;this[_0x118e87('0x8')][_0x118e87('0xc')](function(){const _0xa09500=_0x118e87;return _0x56f6bc[_0xa09500('0x6')][_0xa09500('0x1')](_0x500c89,_0x1d0efa,_0x2bf2f5)['then'](function(){const _0x31414c=_0xa09500;logger[_0x31414c('0x18')](_0x31414c('0x1a'),_0x1d0efa,_0x500c89);})[_0xa09500('0x22')](function(_0x29fa4a){const _0x129bbf=_0xa09500;logger['info'](JSON[_0x129bbf('0x2')](_0x29fa4a));});});},Migration[_0x1d0c71('0x10')][_0x1d0c71('0x17')]=function(_0x36531e,_0x321c35,_0x1f470f){const _0x4d5376=_0x1d0c71,_0x120a4f=this;this['sequence'][_0x4d5376('0xc')](function(){const _0x18b733=_0x4d5376;return _0x120a4f[_0x18b733('0x6')][_0x18b733('0x17')](_0x36531e,_0x321c35,_0x1f470f)[_0x18b733('0x5')](function(){const _0x6ebe71=_0x18b733;logger[_0x6ebe71('0x18')](_0x6ebe71('0x3'),_0x321c35,_0x36531e);})['catch'](function(_0x30ca58){const _0x797b4c=_0x18b733;logger[_0x797b4c('0x18')](JSON['stringify'](_0x30ca58));});});},Migration[_0x1d0c71('0x10')][_0x1d0c71('0x1e')]=function(_0x1a0933){const _0x1eca9e=_0x1d0c71,_0x2278ab=this;this['sequence'][_0x1eca9e('0xc')](function(){const _0x56266c=_0x1eca9e;return _0x2278ab['queryInterface'][_0x56266c('0x1e')](_0x1a0933,{'force':!![]})[_0x56266c('0x5')](function(){const _0x404232=_0x56266c;logger['info'](_0x404232('0x4'),_0x1a0933);})[_0x56266c('0x22')](function(_0x4b2427){const _0x36fc1b=_0x56266c;logger[_0x36fc1b('0x18')](JSON[_0x36fc1b('0x2')](_0x4b2427));});});},Migration[_0x1d0c71('0x10')]['addIndex']=function(_0x5d44ea,_0x78cc68,_0x6b9bf6){const _0x36a29c=_0x1d0c71,_0x6ff653=this;this[_0x36a29c('0x8')][_0x36a29c('0xc')](function(){const _0x5c970c=_0x36a29c;return _0x6ff653[_0x5c970c('0x6')][_0x5c970c('0x7')](_0x5d44ea,_0x78cc68,{'indexName':_0x6b9bf6})[_0x5c970c('0x5')](function(){const _0x591c81=_0x5c970c;logger['info'](_0x591c81('0x20'),_0x5d44ea,_0x78cc68[_0x591c81('0x1f')](','),_0x6b9bf6);})[_0x5c970c('0x22')](function(_0x90535e){const _0x24e481=_0x5c970c;logger['info'](JSON[_0x24e481('0x2')](_0x90535e));});});},Migration['prototype']['removeIndex']=function(_0x4681ef,_0x7626b8){const _0x33a127=this;this['sequence']['enqueue'](function(){const _0x5d6611=a952_0x1d10;return _0x33a127[_0x5d6611('0x6')][_0x5d6611('0x16')](_0x4681ef,_0x7626b8)[_0x5d6611('0x5')](function(){const _0x85e0b0=_0x5d6611;logger[_0x85e0b0('0x18')](_0x85e0b0('0x21'),_0x4681ef,_0x7626b8);})[_0x5d6611('0x22')](function(_0x36ca56){const _0x28f3e5=_0x5d6611;logger[_0x28f3e5('0x18')](JSON['stringify'](_0x36ca56));});});},Migration['prototype'][_0x1d0c71('0x1d')]=function(_0x26c064){const _0xe22b34=_0x1d0c71,_0x11ed0b=this;this[_0xe22b34('0x8')][_0xe22b34('0xc')](function(){const _0x229781=_0xe22b34;return _0x11ed0b[_0x229781('0x6')]['sequelize'][_0x229781('0x1d')](_0x26c064)[_0x229781('0x5')](function(){const _0x10120b=_0x229781;logger['info'](_0x10120b('0x11'),_0x26c064);})[_0x229781('0x22')](function(_0x271b4c){const _0x3f4393=_0x229781;logger[_0x3f4393('0x18')](JSON[_0x3f4393('0x2')](_0x271b4c));});});},Migration[_0x1d0c71('0x10')]['removeColumn']=function(_0x445dff,_0x6a2d29){const _0x4e1c39=this;this['sequence']['enqueue'](function(){const _0x11d9fe=a952_0x1d10;return _0x4e1c39[_0x11d9fe('0x6')][_0x11d9fe('0xf')](_0x445dff,_0x6a2d29)[_0x11d9fe('0x5')](function(){const _0x1b9809=_0x11d9fe;logger[_0x1b9809('0x18')]('Removed\x20column\x20%s\x20from\x20%s',_0x6a2d29,_0x445dff);})[_0x11d9fe('0x22')](function(_0xb6ff51){const _0x67fb8d=_0x11d9fe;logger[_0x67fb8d('0x18')](util['inspect'](_0xb6ff51,{'showHidden':![],'depth':null}));});});},Migration[_0x1d0c71('0x10')]['renameColumn']=function(_0x170a48,_0x4983b8,_0x4f3fd9){const _0x4d7617=_0x1d0c71,_0x572601=this;this[_0x4d7617('0x8')][_0x4d7617('0xc')](function(){const _0x2ba5e5=_0x4d7617;return _0x572601['queryInterface']['renameColumn'](_0x170a48,_0x4983b8,_0x4f3fd9)[_0x2ba5e5('0x5')](function(){const _0x11bb56=_0x2ba5e5;logger[_0x11bb56('0x18')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x4983b8,_0x4f3fd9,_0x170a48);})['catch'](function(_0x1995e0){const _0x4a1058=_0x2ba5e5;logger[_0x4a1058('0x18')](util['inspect'](_0x1995e0,{'showHidden':![],'depth':null}));});});},Migration[_0x1d0c71('0x10')][_0x1d0c71('0x12')]=function(_0x531e3e){const _0x4a1486=_0x1d0c71;this[_0x4a1486('0x8')][_0x4a1486('0xc')](function(){return _0x531e3e();});},module[_0x1d0c71('0xb')]={'up':function(_0x15f56f,_0x537bb9){return new Promise(function(_0x5d40d2){const _0x5e80c5=a952_0x1d10,_0x7daf04=new Migration(_0x15f56f);_0x7daf04[_0x5e80c5('0x17')]('report_call',_0x5e80c5('0x15'),{'type':_0x537bb9[_0x5e80c5('0xa')]}),_0x7daf04[_0x5e80c5('0x17')](_0x5e80c5('0xe'),'originatecalleridnum',{'type':_0x537bb9[_0x5e80c5('0x14')]}),_0x7daf04[_0x5e80c5('0x17')]('cm_hopper_final','originatecalleridname',{'type':_0x537bb9[_0x5e80c5('0x14')]}),_0x7daf04[_0x5e80c5('0x17')](_0x5e80c5('0x0'),'originatecalleridnum',{'type':_0x537bb9[_0x5e80c5('0x14')]}),_0x7daf04[_0x5e80c5('0x17')]('cm_hopper_history','originatecalleridname',{'type':_0x537bb9[_0x5e80c5('0x14')]}),_0x7daf04['addColumn']('cm_contacts',_0x5e80c5('0x19'),{'type':_0x537bb9[_0x5e80c5('0x14')]}),_0x7daf04[_0x5e80c5('0x17')](_0x5e80c5('0x9'),'fb_data',{'type':_0x537bb9['STRING']}),_0x7daf04[_0x5e80c5('0x12')](_0x5d40d2);});},'down':function(){}};
\ No newline at end of file
+const a952_0x275a=['addColumn','removeColumn','query','routeid','changeColumn','catch','cm_hopper_history','sequelize','queryInterface','removeIndex\x20%s\x20%s','sequence','prototype','enqueue','wechat','finally','Removed\x20column\x20%s\x20from\x20%s','util','final','Changed\x20column\x20%s\x20in\x20table\x20%s','tail','cm_contacts','table\x20dropped\x20%s','info','STRING','originatecalleridnum','fb_data','report_call','addIndex','../config/logger','dropTable','INTEGER','originatecalleridname','then','stringify','renameColumn','inspect'];(function(_0x136ec1,_0x275ab1){const _0x9ae0bb=function(_0x1a38c3){while(--_0x1a38c3){_0x136ec1['push'](_0x136ec1['shift']());}};_0x9ae0bb(++_0x275ab1);}(a952_0x275a,0x87));const a952_0x9ae0=function(_0x136ec1,_0x275ab1){_0x136ec1=_0x136ec1-0x0;let _0x9ae0bb=a952_0x275a[_0x136ec1];return _0x9ae0bb;};const _0x6e3c63=a952_0x9ae0;'use strict';const util=require(_0x6e3c63('0x19')),logger=require(_0x6e3c63('0x1'))('migration'),Sequence=function(){};Sequence[_0x6e3c63('0x14')][_0x6e3c63('0x15')]=function(_0x1a38c3){const _0x5357f9=_0x6e3c63;this[_0x5357f9('0x1c')]=this[_0x5357f9('0x1c')]?this['tail'][_0x5357f9('0x17')](_0x1a38c3):_0x1a38c3();};const Migration=function(_0x122d05){const _0x38784c=_0x6e3c63;this['queryInterface']=_0x122d05,this[_0x38784c('0x13')]=new Sequence();};Migration[_0x6e3c63('0x14')][_0x6e3c63('0xd')]=function(_0x552a7c,_0x10e9e8,_0x5c8038){const _0x1f3989=_0x6e3c63,_0xd44b7a=this;this[_0x1f3989('0x13')][_0x1f3989('0x15')](function(){const _0x6df831=_0x1f3989;return _0xd44b7a['queryInterface']['changeColumn'](_0x552a7c,_0x10e9e8,_0x5c8038)[_0x6df831('0x5')](function(){const _0x552f64=_0x6df831;logger['info'](_0x552f64('0x1b'),_0x10e9e8,_0x552a7c);})[_0x6df831('0xe')](function(_0x1f9246){const _0x10943a=_0x6df831;logger[_0x10943a('0x1f')](JSON['stringify'](_0x1f9246));});});},Migration[_0x6e3c63('0x14')]['addColumn']=function(_0x4f3129,_0x47e9c9,_0x464d84){const _0x384333=_0x6e3c63,_0x4de1a1=this;this[_0x384333('0x13')][_0x384333('0x15')](function(){const _0x1bef36=_0x384333;return _0x4de1a1[_0x1bef36('0x11')][_0x1bef36('0x9')](_0x4f3129,_0x47e9c9,_0x464d84)['then'](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x47e9c9,_0x4f3129);})[_0x1bef36('0xe')](function(_0x5ed773){const _0x12f679=_0x1bef36;logger[_0x12f679('0x1f')](JSON[_0x12f679('0x6')](_0x5ed773));});});},Migration[_0x6e3c63('0x14')][_0x6e3c63('0x2')]=function(_0x200e9f){const _0x55e769=_0x6e3c63,_0x5b5714=this;this[_0x55e769('0x13')][_0x55e769('0x15')](function(){const _0x2de5c7=_0x55e769;return _0x5b5714[_0x2de5c7('0x11')][_0x2de5c7('0x2')](_0x200e9f,{'force':!![]})['then'](function(){const _0x277bd3=_0x2de5c7;logger[_0x277bd3('0x1f')](_0x277bd3('0x1e'),_0x200e9f);})[_0x2de5c7('0xe')](function(_0x33f220){const _0x1a8403=_0x2de5c7;logger['info'](JSON[_0x1a8403('0x6')](_0x33f220));});});},Migration[_0x6e3c63('0x14')][_0x6e3c63('0x0')]=function(_0x5780fc,_0x34f71f,_0x5e07e2){const _0x8f413d=this;this['sequence']['enqueue'](function(){const _0x52b88d=a952_0x9ae0;return _0x8f413d[_0x52b88d('0x11')][_0x52b88d('0x0')](_0x5780fc,_0x34f71f,{'indexName':_0x5e07e2})[_0x52b88d('0x5')](function(){const _0x539aca=_0x52b88d;logger[_0x539aca('0x1f')]('addIndex\x20%s\x20%s\x20%s',_0x5780fc,_0x34f71f['join'](','),_0x5e07e2);})[_0x52b88d('0xe')](function(_0x4ab24b){const _0x41097d=_0x52b88d;logger['info'](JSON[_0x41097d('0x6')](_0x4ab24b));});});},Migration[_0x6e3c63('0x14')]['removeIndex']=function(_0xf6b88d,_0x20c545){const _0x3b8d9f=_0x6e3c63,_0x530575=this;this[_0x3b8d9f('0x13')]['enqueue'](function(){const _0x500e5a=_0x3b8d9f;return _0x530575[_0x500e5a('0x11')]['removeIndex'](_0xf6b88d,_0x20c545)[_0x500e5a('0x5')](function(){const _0x2b4bb6=_0x500e5a;logger['info'](_0x2b4bb6('0x12'),_0xf6b88d,_0x20c545);})[_0x500e5a('0xe')](function(_0x92cd52){const _0x1831f6=_0x500e5a;logger['info'](JSON[_0x1831f6('0x6')](_0x92cd52));});});},Migration[_0x6e3c63('0x14')][_0x6e3c63('0xb')]=function(_0x2db315){const _0x326809=_0x6e3c63,_0x1c0712=this;this[_0x326809('0x13')][_0x326809('0x15')](function(){const _0x380096=_0x326809;return _0x1c0712[_0x380096('0x11')][_0x380096('0x10')]['query'](_0x2db315)['then'](function(){const _0x17c168=_0x380096;logger[_0x17c168('0x1f')]('query\x20%s',_0x2db315);})[_0x380096('0xe')](function(_0x31065d){const _0x5b20df=_0x380096;logger[_0x5b20df('0x1f')](JSON['stringify'](_0x31065d));});});},Migration[_0x6e3c63('0x14')]['removeColumn']=function(_0x460ee1,_0x1bb30f){const _0x277883=_0x6e3c63,_0x516580=this;this[_0x277883('0x13')]['enqueue'](function(){const _0x163e43=_0x277883;return _0x516580[_0x163e43('0x11')][_0x163e43('0xa')](_0x460ee1,_0x1bb30f)[_0x163e43('0x5')](function(){const _0x484536=_0x163e43;logger[_0x484536('0x1f')](_0x484536('0x18'),_0x1bb30f,_0x460ee1);})[_0x163e43('0xe')](function(_0x4d25ca){const _0x8062d5=_0x163e43;logger[_0x8062d5('0x1f')](util['inspect'](_0x4d25ca,{'showHidden':![],'depth':null}));});});},Migration[_0x6e3c63('0x14')][_0x6e3c63('0x7')]=function(_0x4a078f,_0x284d66,_0x454c4b){const _0x1be306=_0x6e3c63,_0x19a72b=this;this['sequence'][_0x1be306('0x15')](function(){const _0x38a463=_0x1be306;return _0x19a72b['queryInterface'][_0x38a463('0x7')](_0x4a078f,_0x284d66,_0x454c4b)[_0x38a463('0x5')](function(){const _0x43bf35=_0x38a463;logger[_0x43bf35('0x1f')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x284d66,_0x454c4b,_0x4a078f);})['catch'](function(_0x23ebe5){const _0x454f52=_0x38a463;logger[_0x454f52('0x1f')](util[_0x454f52('0x8')](_0x23ebe5,{'showHidden':![],'depth':null}));});});},Migration[_0x6e3c63('0x14')][_0x6e3c63('0x1a')]=function(_0x3671b3){const _0x204c27=_0x6e3c63;this[_0x204c27('0x13')][_0x204c27('0x15')](function(){return _0x3671b3();});},module['exports']={'up':function(_0x1b3305,_0x210260){return new Promise(function(_0x37e296){const _0xdf73a2=a952_0x9ae0,_0x336021=new Migration(_0x1b3305);_0x336021['addColumn'](_0xdf73a2('0x23'),_0xdf73a2('0xc'),{'type':_0x210260[_0xdf73a2('0x3')]}),_0x336021['addColumn']('cm_hopper_final',_0xdf73a2('0x21'),{'type':_0x210260[_0xdf73a2('0x20')]}),_0x336021[_0xdf73a2('0x9')]('cm_hopper_final',_0xdf73a2('0x4'),{'type':_0x210260[_0xdf73a2('0x20')]}),_0x336021['addColumn'](_0xdf73a2('0xf'),_0xdf73a2('0x21'),{'type':_0x210260[_0xdf73a2('0x20')]}),_0x336021['addColumn']('cm_hopper_history',_0xdf73a2('0x4'),{'type':_0x210260[_0xdf73a2('0x20')]}),_0x336021[_0xdf73a2('0x9')]('cm_contacts',_0xdf73a2('0x16'),{'type':_0x210260['STRING']}),_0x336021['addColumn'](_0xdf73a2('0x1d'),_0xdf73a2('0x22'),{'type':_0x210260['STRING']}),_0x336021[_0xdf73a2('0x1a')](_0x37e296);});},'down':function(){}};
\ No newline at end of file