Built motion from commit 973e3e332e1c8e2f84c4b0cd2e5af794131724f5. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.64.js
index a8acd3c..b7604c5 100644 (file)
@@ -1 +1 @@
-const a943_0x4feb=['query','then','dropTable','removeColumn','Removed\x20column\x20%s\x20from\x20%s','report_call','enqueue','addIndex\x20%s\x20%s\x20%s','BOOLEAN','lastdata','analytics_report_fields','stringify','inspect','TEXT','STRING','phoneBarEnableVideoRecording','exports','util','Added\x20column\x20%s\x20to\x20%s','addIndex','migration','sequence','query\x20%s','field','finally','users','sequelize','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tail','final','customerAlias','addColumn','removeIndex','changeColumn','prototype','table\x20dropped\x20%s','queryInterface','chat_websites','catch','renameColumn','info'];(function(_0x13930a,_0x4feb8d){const _0x52b356=function(_0x2d41a2){while(--_0x2d41a2){_0x13930a['push'](_0x13930a['shift']());}};_0x52b356(++_0x4feb8d);}(a943_0x4feb,0x8d));const a943_0x52b3=function(_0x13930a,_0x4feb8d){_0x13930a=_0x13930a-0x0;let _0x52b356=a943_0x4feb[_0x13930a];return _0x52b356;};const _0x55a22d=a943_0x52b3;'use strict';const util=require(_0x55a22d('0x28')),logger=require('../config/logger')(_0x55a22d('0x2')),Sequence=function(){};Sequence[_0x55a22d('0x10')][_0x55a22d('0x1d')]=function(_0x2d41a2){const _0x3ba8bd=_0x55a22d;this[_0x3ba8bd('0xa')]=this['tail']?this[_0x3ba8bd('0xa')][_0x3ba8bd('0x6')](_0x2d41a2):_0x2d41a2();};const Migration=function(_0x422f25){this['queryInterface']=_0x422f25,this['sequence']=new Sequence();};Migration[_0x55a22d('0x10')]['changeColumn']=function(_0x38cd28,_0x475f92,_0x426c6e){const _0x1c1d99=_0x55a22d,_0x29db8e=this;this[_0x1c1d99('0x3')][_0x1c1d99('0x1d')](function(){const _0x69a82e=_0x1c1d99;return _0x29db8e[_0x69a82e('0x12')][_0x69a82e('0xf')](_0x38cd28,_0x475f92,_0x426c6e)[_0x69a82e('0x18')](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x475f92,_0x38cd28);})[_0x69a82e('0x14')](function(_0x2487d2){const _0x549184=_0x69a82e;logger['info'](JSON[_0x549184('0x22')](_0x2487d2));});});},Migration['prototype'][_0x55a22d('0xd')]=function(_0x71fb8b,_0x5634c9,_0x22aaa2){const _0x4bdeb5=_0x55a22d,_0x50137b=this;this[_0x4bdeb5('0x3')][_0x4bdeb5('0x1d')](function(){const _0x5e8ff4=_0x4bdeb5;return _0x50137b[_0x5e8ff4('0x12')][_0x5e8ff4('0xd')](_0x71fb8b,_0x5634c9,_0x22aaa2)[_0x5e8ff4('0x18')](function(){const _0x2d3320=_0x5e8ff4;logger[_0x2d3320('0x16')](_0x2d3320('0x0'),_0x5634c9,_0x71fb8b);})['catch'](function(_0x576390){const _0x4bed18=_0x5e8ff4;logger[_0x4bed18('0x16')](JSON[_0x4bed18('0x22')](_0x576390));});});},Migration['prototype'][_0x55a22d('0x19')]=function(_0x11f194){const _0x31d6fa=_0x55a22d,_0x51428c=this;this[_0x31d6fa('0x3')][_0x31d6fa('0x1d')](function(){const _0x3ba4eb=_0x31d6fa;return _0x51428c['queryInterface']['dropTable'](_0x11f194,{'force':!![]})[_0x3ba4eb('0x18')](function(){const _0x4bfccc=_0x3ba4eb;logger[_0x4bfccc('0x16')](_0x4bfccc('0x11'),_0x11f194);})[_0x3ba4eb('0x14')](function(_0x188d2d){const _0x11a703=_0x3ba4eb;logger['info'](JSON[_0x11a703('0x22')](_0x188d2d));});});},Migration[_0x55a22d('0x10')][_0x55a22d('0x1')]=function(_0x10cd4d,_0x12a4fe,_0x349f48){const _0x35f4d2=_0x55a22d,_0x3fa5d9=this;this['sequence'][_0x35f4d2('0x1d')](function(){const _0x5b00a1=_0x35f4d2;return _0x3fa5d9['queryInterface'][_0x5b00a1('0x1')](_0x10cd4d,_0x12a4fe,{'indexName':_0x349f48})[_0x5b00a1('0x18')](function(){const _0x4f814f=_0x5b00a1;logger[_0x4f814f('0x16')](_0x4f814f('0x1e'),_0x10cd4d,_0x12a4fe['join'](','),_0x349f48);})[_0x5b00a1('0x14')](function(_0x4c11cb){const _0xfcc2a9=_0x5b00a1;logger[_0xfcc2a9('0x16')](JSON[_0xfcc2a9('0x22')](_0x4c11cb));});});},Migration['prototype'][_0x55a22d('0xe')]=function(_0x43be28,_0x1dd0fd){const _0x2619ab=_0x55a22d,_0x3a5f0d=this;this[_0x2619ab('0x3')][_0x2619ab('0x1d')](function(){const _0x125e8c=_0x2619ab;return _0x3a5f0d[_0x125e8c('0x12')][_0x125e8c('0xe')](_0x43be28,_0x1dd0fd)[_0x125e8c('0x18')](function(){const _0x443ece=_0x125e8c;logger[_0x443ece('0x16')]('removeIndex\x20%s\x20%s',_0x43be28,_0x1dd0fd);})[_0x125e8c('0x14')](function(_0x56b0df){const _0x5ea06f=_0x125e8c;logger[_0x5ea06f('0x16')](JSON[_0x5ea06f('0x22')](_0x56b0df));});});},Migration[_0x55a22d('0x10')][_0x55a22d('0x17')]=function(_0x1b3622){const _0x191002=_0x55a22d,_0x2837fc=this;this[_0x191002('0x3')][_0x191002('0x1d')](function(){const _0xf33cb6=_0x191002;return _0x2837fc[_0xf33cb6('0x12')][_0xf33cb6('0x8')][_0xf33cb6('0x17')](_0x1b3622)[_0xf33cb6('0x18')](function(){const _0x4f5b64=_0xf33cb6;logger[_0x4f5b64('0x16')](_0x4f5b64('0x4'),_0x1b3622);})['catch'](function(_0x285f76){const _0x57e598=_0xf33cb6;logger['info'](JSON[_0x57e598('0x22')](_0x285f76));});});},Migration[_0x55a22d('0x10')][_0x55a22d('0x1a')]=function(_0x46e587,_0x11649e){const _0x1a1752=_0x55a22d,_0xfe410a=this;this[_0x1a1752('0x3')][_0x1a1752('0x1d')](function(){const _0x7a790a=_0x1a1752;return _0xfe410a[_0x7a790a('0x12')]['removeColumn'](_0x46e587,_0x11649e)[_0x7a790a('0x18')](function(){const _0x1fb79b=_0x7a790a;logger[_0x1fb79b('0x16')](_0x1fb79b('0x1b'),_0x11649e,_0x46e587);})[_0x7a790a('0x14')](function(_0x33ded3){const _0x1fd7a5=_0x7a790a;logger[_0x1fd7a5('0x16')](util['inspect'](_0x33ded3,{'showHidden':![],'depth':null}));});});},Migration[_0x55a22d('0x10')][_0x55a22d('0x15')]=function(_0x138678,_0x41d90c,_0x5dba49){const _0x190fcf=_0x55a22d,_0x78f45f=this;this[_0x190fcf('0x3')][_0x190fcf('0x1d')](function(){const _0x4682dc=_0x190fcf;return _0x78f45f[_0x4682dc('0x12')][_0x4682dc('0x15')](_0x138678,_0x41d90c,_0x5dba49)[_0x4682dc('0x18')](function(){const _0x40c880=_0x4682dc;logger[_0x40c880('0x16')](_0x40c880('0x9'),_0x41d90c,_0x5dba49,_0x138678);})['catch'](function(_0x1c3061){const _0x333ac8=_0x4682dc;logger['info'](util[_0x333ac8('0x23')](_0x1c3061,{'showHidden':![],'depth':null}));});});},Migration[_0x55a22d('0x10')][_0x55a22d('0xb')]=function(_0x5631de){const _0x251275=_0x55a22d;this[_0x251275('0x3')][_0x251275('0x1d')](function(){return _0x5631de();});},module[_0x55a22d('0x27')]={'up':function(_0x44ba9b,_0x4dfe57){return new Promise(function(_0x4aa6e4){const _0x22eedc=a943_0x52b3,_0x33eca9=new Migration(_0x44ba9b);_0x33eca9['addColumn'](_0x22eedc('0x7'),_0x22eedc('0x26'),{'type':_0x4dfe57[_0x22eedc('0x1f')],'defaultValue':![]}),_0x33eca9['changeColumn']('report_call',_0x22eedc('0x20'),{'type':_0x4dfe57[_0x22eedc('0x24')]}),_0x33eca9[_0x22eedc('0xd')](_0x22eedc('0x13'),_0x22eedc('0xc'),{'type':_0x4dfe57[_0x22eedc('0x25')],'defaultValue':'Me'}),_0x33eca9['changeColumn'](_0x22eedc('0x21'),_0x22eedc('0x5'),{'type':_0x4dfe57[_0x22eedc('0x24')],'allowNull':![]}),_0x33eca9[_0x22eedc('0xe')](_0x22eedc('0x1c'),'uniqueid'),_0x33eca9[_0x22eedc('0xb')](_0x4aa6e4);});},'down':function(){}};
\ No newline at end of file
+const a943_0x36c0=['prototype','queryInterface','lastdata','tail','final','exports','catch','report_call','sequelize','enqueue','STRING','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','users','uniqueid','changeColumn','../config/logger','sequence','TEXT','info','stringify','field','dropTable','removeIndex','addColumn','addIndex','then','chat_websites','inspect','renameColumn','util','query\x20%s','addIndex\x20%s\x20%s\x20%s','query','table\x20dropped\x20%s','Removed\x20column\x20%s\x20from\x20%s','removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','BOOLEAN','finally','analytics_report_fields','join'];(function(_0x365892,_0x36c00b){const _0x3499cb=function(_0x42d043){while(--_0x42d043){_0x365892['push'](_0x365892['shift']());}};_0x3499cb(++_0x36c00b);}(a943_0x36c0,0x8c));const a943_0x3499=function(_0x365892,_0x36c00b){_0x365892=_0x365892-0x0;let _0x3499cb=a943_0x36c0[_0x365892];return _0x3499cb;};const _0x19880f=a943_0x3499;'use strict';const util=require(_0x19880f('0xc')),logger=require(_0x19880f('0x27'))('migration'),Sequence=function(){};Sequence[_0x19880f('0x18')][_0x19880f('0x21')]=function(_0x42d043){const _0x3126ad=_0x19880f;this[_0x3126ad('0x1b')]=this[_0x3126ad('0x1b')]?this[_0x3126ad('0x1b')][_0x3126ad('0x15')](_0x42d043):_0x42d043();};const Migration=function(_0x4bd376){this['queryInterface']=_0x4bd376,this['sequence']=new Sequence();};Migration[_0x19880f('0x18')]['changeColumn']=function(_0x27c5e1,_0xae59ad,_0x17e30c){const _0x1a47ab=_0x19880f,_0xb1b985=this;this[_0x1a47ab('0x28')][_0x1a47ab('0x21')](function(){const _0xf36c18=_0x1a47ab;return _0xb1b985[_0xf36c18('0x19')][_0xf36c18('0x26')](_0x27c5e1,_0xae59ad,_0x17e30c)[_0xf36c18('0x8')](function(){const _0x1e377c=_0xf36c18;logger[_0x1e377c('0x1')](_0x1e377c('0x13'),_0xae59ad,_0x27c5e1);})['catch'](function(_0x53d1bb){const _0x37dc84=_0xf36c18;logger[_0x37dc84('0x1')](JSON['stringify'](_0x53d1bb));});});},Migration['prototype'][_0x19880f('0x6')]=function(_0x109828,_0x57e45a,_0x476641){const _0x1d32a2=_0x19880f,_0x385822=this;this[_0x1d32a2('0x28')]['enqueue'](function(){const _0x135c9c=_0x1d32a2;return _0x385822[_0x135c9c('0x19')]['addColumn'](_0x109828,_0x57e45a,_0x476641)['then'](function(){const _0xec5202=_0x135c9c;logger[_0xec5202('0x1')]('Added\x20column\x20%s\x20to\x20%s',_0x57e45a,_0x109828);})[_0x135c9c('0x1e')](function(_0x4eb004){const _0x36698d=_0x135c9c;logger['info'](JSON[_0x36698d('0x2')](_0x4eb004));});});},Migration[_0x19880f('0x18')]['dropTable']=function(_0x50d2aa){const _0x4aab18=_0x19880f,_0x500c6f=this;this[_0x4aab18('0x28')][_0x4aab18('0x21')](function(){const _0x2f972c=_0x4aab18;return _0x500c6f[_0x2f972c('0x19')][_0x2f972c('0x4')](_0x50d2aa,{'force':!![]})[_0x2f972c('0x8')](function(){const _0x2c1d4e=_0x2f972c;logger[_0x2c1d4e('0x1')](_0x2c1d4e('0x10'),_0x50d2aa);})[_0x2f972c('0x1e')](function(_0x1a8b1c){const _0x3c4b3a=_0x2f972c;logger[_0x3c4b3a('0x1')](JSON[_0x3c4b3a('0x2')](_0x1a8b1c));});});},Migration[_0x19880f('0x18')][_0x19880f('0x7')]=function(_0x10beb1,_0x3ab3e5,_0x1b535c){const _0x2bdc64=_0x19880f,_0xe4f9a0=this;this[_0x2bdc64('0x28')]['enqueue'](function(){const _0x4bbf50=_0x2bdc64;return _0xe4f9a0[_0x4bbf50('0x19')][_0x4bbf50('0x7')](_0x10beb1,_0x3ab3e5,{'indexName':_0x1b535c})[_0x4bbf50('0x8')](function(){const _0x71d498=_0x4bbf50;logger['info'](_0x71d498('0xe'),_0x10beb1,_0x3ab3e5[_0x71d498('0x17')](','),_0x1b535c);})[_0x4bbf50('0x1e')](function(_0x3fae0e){const _0x2f83ff=_0x4bbf50;logger[_0x2f83ff('0x1')](JSON[_0x2f83ff('0x2')](_0x3fae0e));});});},Migration['prototype'][_0x19880f('0x5')]=function(_0x25ad9a,_0x5e89c3){const _0x442b8c=_0x19880f,_0x40323a=this;this[_0x442b8c('0x28')][_0x442b8c('0x21')](function(){const _0xcf2de1=_0x442b8c;return _0x40323a[_0xcf2de1('0x19')][_0xcf2de1('0x5')](_0x25ad9a,_0x5e89c3)['then'](function(){logger['info']('removeIndex\x20%s\x20%s',_0x25ad9a,_0x5e89c3);})['catch'](function(_0xcc7958){const _0x2c4eb8=_0xcf2de1;logger[_0x2c4eb8('0x1')](JSON['stringify'](_0xcc7958));});});},Migration[_0x19880f('0x18')]['query']=function(_0x531eb3){const _0xfe8e96=_0x19880f,_0x36cf36=this;this[_0xfe8e96('0x28')][_0xfe8e96('0x21')](function(){const _0x12997d=_0xfe8e96;return _0x36cf36['queryInterface'][_0x12997d('0x20')][_0x12997d('0xf')](_0x531eb3)[_0x12997d('0x8')](function(){const _0x5a12a4=_0x12997d;logger[_0x5a12a4('0x1')](_0x5a12a4('0xd'),_0x531eb3);})[_0x12997d('0x1e')](function(_0x5c7e3b){logger['info'](JSON['stringify'](_0x5c7e3b));});});},Migration['prototype'][_0x19880f('0x12')]=function(_0x140aba,_0x3ff832){const _0x41e204=_0x19880f,_0x276404=this;this['sequence'][_0x41e204('0x21')](function(){const _0x2a02b2=_0x41e204;return _0x276404[_0x2a02b2('0x19')][_0x2a02b2('0x12')](_0x140aba,_0x3ff832)['then'](function(){const _0x22ebb0=_0x2a02b2;logger[_0x22ebb0('0x1')](_0x22ebb0('0x11'),_0x3ff832,_0x140aba);})[_0x2a02b2('0x1e')](function(_0x42a369){const _0x12091a=_0x2a02b2;logger[_0x12091a('0x1')](util['inspect'](_0x42a369,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x34a102,_0x24dfe2,_0x2b2efb){const _0x10702b=_0x19880f,_0x3d8f9e=this;this[_0x10702b('0x28')][_0x10702b('0x21')](function(){const _0x291627=_0x10702b;return _0x3d8f9e['queryInterface'][_0x291627('0xb')](_0x34a102,_0x24dfe2,_0x2b2efb)[_0x291627('0x8')](function(){const _0x35035d=_0x291627;logger[_0x35035d('0x1')](_0x35035d('0x23'),_0x24dfe2,_0x2b2efb,_0x34a102);})[_0x291627('0x1e')](function(_0x5271d0){const _0x3ed375=_0x291627;logger[_0x3ed375('0x1')](util[_0x3ed375('0xa')](_0x5271d0,{'showHidden':![],'depth':null}));});});},Migration[_0x19880f('0x18')][_0x19880f('0x1c')]=function(_0x27b6f0){const _0x55edc2=_0x19880f;this[_0x55edc2('0x28')][_0x55edc2('0x21')](function(){return _0x27b6f0();});},module[_0x19880f('0x1d')]={'up':function(_0x6fd331,_0x3df0ee){return new Promise(function(_0x51052a){const _0x81951=a943_0x3499,_0xdc95a=new Migration(_0x6fd331);_0xdc95a[_0x81951('0x6')](_0x81951('0x24'),'phoneBarEnableVideoRecording',{'type':_0x3df0ee[_0x81951('0x14')],'defaultValue':![]}),_0xdc95a[_0x81951('0x26')](_0x81951('0x1f'),_0x81951('0x1a'),{'type':_0x3df0ee['TEXT']}),_0xdc95a['addColumn'](_0x81951('0x9'),'customerAlias',{'type':_0x3df0ee[_0x81951('0x22')],'defaultValue':'Me'}),_0xdc95a[_0x81951('0x26')](_0x81951('0x16'),_0x81951('0x3'),{'type':_0x3df0ee[_0x81951('0x0')],'allowNull':![]}),_0xdc95a[_0x81951('0x5')](_0x81951('0x1f'),_0x81951('0x25')),_0xdc95a[_0x81951('0x1c')](_0x51052a);});},'down':function(){}};
\ No newline at end of file