Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.73.js
index 98730fa..72a514d 100644 (file)
@@ -1 +1 @@
-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
+const a952_0x1cff=['inspect','exports','cm_hopper_final','sequence','migration','fb_data','removeColumn','cm_hopper_history','table\x20dropped\x20%s','tail','enqueue','stringify','info','finally','final','join','addColumn','then','query','removeIndex\x20%s\x20%s','util','INTEGER','sequelize','originatecalleridnum','Changed\x20column\x20%s\x20in\x20table\x20%s','../config/logger','removeIndex','prototype','dropTable','cm_contacts','addIndex\x20%s\x20%s\x20%s','STRING','queryInterface','catch','originatecalleridname','addIndex','query\x20%s'];(function(_0x2097c0,_0x1cff8a){const _0x2b2b90=function(_0x43b896){while(--_0x43b896){_0x2097c0['push'](_0x2097c0['shift']());}};_0x2b2b90(++_0x1cff8a);}(a952_0x1cff,0x9f));const a952_0x2b2b=function(_0x2097c0,_0x1cff8a){_0x2097c0=_0x2097c0-0x0;let _0x2b2b90=a952_0x1cff[_0x2097c0];return _0x2b2b90;};const _0x33e378=a952_0x2b2b;'use strict';const util=require(_0x33e378('0x9')),logger=require(_0x33e378('0xe'))(_0x33e378('0x1e')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x43b896){const _0x4c6837=_0x33e378;this[_0x4c6837('0x23')]=this['tail']?this[_0x4c6837('0x23')][_0x4c6837('0x2')](_0x43b896):_0x43b896();};const Migration=function(_0x1484d0){const _0x9ce635=_0x33e378;this[_0x9ce635('0x15')]=_0x1484d0,this[_0x9ce635('0x1d')]=new Sequence();};Migration[_0x33e378('0x10')]['changeColumn']=function(_0x5e4756,_0x9309a3,_0x484d81){const _0x5cf7cf=_0x33e378,_0xd1ed9e=this;this['sequence'][_0x5cf7cf('0x24')](function(){const _0x445660=_0x5cf7cf;return _0xd1ed9e[_0x445660('0x15')]['changeColumn'](_0x5e4756,_0x9309a3,_0x484d81)[_0x445660('0x6')](function(){const _0x2c6c0c=_0x445660;logger[_0x2c6c0c('0x1')](_0x2c6c0c('0xd'),_0x9309a3,_0x5e4756);})[_0x445660('0x16')](function(_0x5390bb){const _0x2b70ec=_0x445660;logger[_0x2b70ec('0x1')](JSON[_0x2b70ec('0x0')](_0x5390bb));});});},Migration['prototype'][_0x33e378('0x5')]=function(_0x2b2fd1,_0x4bc24a,_0x425658){const _0x1d351f=_0x33e378,_0x21450b=this;this[_0x1d351f('0x1d')]['enqueue'](function(){const _0x54792b=_0x1d351f;return _0x21450b[_0x54792b('0x15')]['addColumn'](_0x2b2fd1,_0x4bc24a,_0x425658)['then'](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x4bc24a,_0x2b2fd1);})['catch'](function(_0x17e83a){const _0xebc2b9=_0x54792b;logger[_0xebc2b9('0x1')](JSON[_0xebc2b9('0x0')](_0x17e83a));});});},Migration[_0x33e378('0x10')][_0x33e378('0x11')]=function(_0x1f22e8){const _0x226b16=_0x33e378,_0x45d00a=this;this[_0x226b16('0x1d')][_0x226b16('0x24')](function(){const _0x4b477f=_0x226b16;return _0x45d00a[_0x4b477f('0x15')][_0x4b477f('0x11')](_0x1f22e8,{'force':!![]})['then'](function(){const _0x5c58f3=_0x4b477f;logger[_0x5c58f3('0x1')](_0x5c58f3('0x22'),_0x1f22e8);})[_0x4b477f('0x16')](function(_0x5aac3a){const _0x17d8ce=_0x4b477f;logger[_0x17d8ce('0x1')](JSON[_0x17d8ce('0x0')](_0x5aac3a));});});},Migration['prototype'][_0x33e378('0x18')]=function(_0x4ead2e,_0x11ff9e,_0x39276b){const _0x39199d=_0x33e378,_0x180b3a=this;this['sequence'][_0x39199d('0x24')](function(){const _0x3688bd=_0x39199d;return _0x180b3a['queryInterface'][_0x3688bd('0x18')](_0x4ead2e,_0x11ff9e,{'indexName':_0x39276b})['then'](function(){const _0x5cbb5b=_0x3688bd;logger[_0x5cbb5b('0x1')](_0x5cbb5b('0x13'),_0x4ead2e,_0x11ff9e[_0x5cbb5b('0x4')](','),_0x39276b);})['catch'](function(_0x1c5ac9){const _0x4ffc1c=_0x3688bd;logger[_0x4ffc1c('0x1')](JSON[_0x4ffc1c('0x0')](_0x1c5ac9));});});},Migration[_0x33e378('0x10')][_0x33e378('0xf')]=function(_0x176b3f,_0x367b05){const _0x259488=_0x33e378,_0xa0c842=this;this[_0x259488('0x1d')][_0x259488('0x24')](function(){const _0x415172=_0x259488;return _0xa0c842[_0x415172('0x15')]['removeIndex'](_0x176b3f,_0x367b05)[_0x415172('0x6')](function(){const _0x40e2eb=_0x415172;logger[_0x40e2eb('0x1')](_0x40e2eb('0x8'),_0x176b3f,_0x367b05);})[_0x415172('0x16')](function(_0x5e0e78){const _0x58f60a=_0x415172;logger[_0x58f60a('0x1')](JSON['stringify'](_0x5e0e78));});});},Migration['prototype'][_0x33e378('0x7')]=function(_0x2d7054){const _0x460c8b=_0x33e378,_0x181825=this;this[_0x460c8b('0x1d')][_0x460c8b('0x24')](function(){const _0x3e2c80=_0x460c8b;return _0x181825['queryInterface'][_0x3e2c80('0xb')]['query'](_0x2d7054)[_0x3e2c80('0x6')](function(){const _0x422d0a=_0x3e2c80;logger['info'](_0x422d0a('0x19'),_0x2d7054);})[_0x3e2c80('0x16')](function(_0x53b0f1){const _0x357cc0=_0x3e2c80;logger[_0x357cc0('0x1')](JSON[_0x357cc0('0x0')](_0x53b0f1));});});},Migration[_0x33e378('0x10')][_0x33e378('0x20')]=function(_0x1dc316,_0x4067f0){const _0x329329=_0x33e378,_0x27fd56=this;this[_0x329329('0x1d')][_0x329329('0x24')](function(){const _0x468519=_0x329329;return _0x27fd56[_0x468519('0x15')][_0x468519('0x20')](_0x1dc316,_0x4067f0)['then'](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x4067f0,_0x1dc316);})[_0x468519('0x16')](function(_0x4238d5){const _0x506926=_0x468519;logger[_0x506926('0x1')](util[_0x506926('0x1a')](_0x4238d5,{'showHidden':![],'depth':null}));});});},Migration[_0x33e378('0x10')]['renameColumn']=function(_0x29523e,_0x53167d,_0x1d426f){const _0x2552d9=_0x33e378,_0x329ada=this;this[_0x2552d9('0x1d')][_0x2552d9('0x24')](function(){const _0x4219c6=_0x2552d9;return _0x329ada[_0x4219c6('0x15')]['renameColumn'](_0x29523e,_0x53167d,_0x1d426f)['then'](function(){const _0x3f8b0b=_0x4219c6;logger[_0x3f8b0b('0x1')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x53167d,_0x1d426f,_0x29523e);})[_0x4219c6('0x16')](function(_0x4815ad){const _0x34ae2d=_0x4219c6;logger[_0x34ae2d('0x1')](util[_0x34ae2d('0x1a')](_0x4815ad,{'showHidden':![],'depth':null}));});});},Migration[_0x33e378('0x10')][_0x33e378('0x3')]=function(_0x5153b5){const _0x181fb4=_0x33e378;this['sequence'][_0x181fb4('0x24')](function(){return _0x5153b5();});},module[_0x33e378('0x1b')]={'up':function(_0x485ebc,_0x5a9934){return new Promise(function(_0x1ed1d3){const _0x3a2442=a952_0x2b2b,_0x2100b8=new Migration(_0x485ebc);_0x2100b8[_0x3a2442('0x5')]('report_call','routeid',{'type':_0x5a9934[_0x3a2442('0xa')]}),_0x2100b8[_0x3a2442('0x5')](_0x3a2442('0x1c'),_0x3a2442('0xc'),{'type':_0x5a9934[_0x3a2442('0x14')]}),_0x2100b8[_0x3a2442('0x5')](_0x3a2442('0x1c'),_0x3a2442('0x17'),{'type':_0x5a9934[_0x3a2442('0x14')]}),_0x2100b8[_0x3a2442('0x5')]('cm_hopper_history',_0x3a2442('0xc'),{'type':_0x5a9934['STRING']}),_0x2100b8['addColumn'](_0x3a2442('0x21'),_0x3a2442('0x17'),{'type':_0x5a9934['STRING']}),_0x2100b8[_0x3a2442('0x5')](_0x3a2442('0x12'),'wechat',{'type':_0x5a9934[_0x3a2442('0x14')]}),_0x2100b8['addColumn'](_0x3a2442('0x12'),_0x3a2442('0x1f'),{'type':_0x5a9934['STRING']}),_0x2100b8['final'](_0x1ed1d3);});},'down':function(){}};
\ No newline at end of file