Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.47.js
index b28d5be..014d23b 100644 (file)
@@ -1 +1 @@
-const a1087_0x4590=['migration','changeColumn','tail','queryInterface','attrs','formSubmitFailureMessage','Changed\x20column\x20%s\x20in\x20table\x20%s','chat_websites','sequelize','secret','interval','then','finally','catch','sequence','stringify','Added\x20column\x20%s\x20to\x20%s','../config/logger','Form\x20submission\x20error','info','data','addColumn','query\x20%s','TEXT','STRING','join','removeColumn','util','inspect','dashboard_items','BOOLEAN','formSubmitSuccessMessage','Form\x20properly\x20submitted','dashboards','table\x20dropped\x20%s','Removed\x20column\x20%s\x20from\x20%s','type','sms_messages','query','dropTable','enqueue','prototype','final','long','addIndex'];(function(_0x4d8f1c,_0x315eab){const _0x459081=function(_0x4e6f26){while(--_0x4e6f26){_0x4d8f1c['push'](_0x4d8f1c['shift']());}};_0x459081(++_0x315eab);}(a1087_0x4590,0xe9));const a1087_0x4e6f=function(_0x4d8f1c,_0x315eab){_0x4d8f1c=_0x4d8f1c-0x133;let _0x459081=a1087_0x4590[_0x4d8f1c];return _0x459081;};const a1087_0x5130ae=a1087_0x4e6f;'use strict';const logger=require(a1087_0x5130ae(0x13c))(a1087_0x5130ae(0x158)),util=require(a1087_0x5130ae(0x146)),Sequence=function(){};Sequence[a1087_0x5130ae(0x154)]['enqueue']=function(_0x2fa71c){const _0x1c8428=a1087_0x5130ae;this[_0x1c8428(0x15a)]=this[_0x1c8428(0x15a)]?this[_0x1c8428(0x15a)][_0x1c8428(0x137)](_0x2fa71c):_0x2fa71c();};const Migration=function(_0x130a7a){const _0x4642a1=a1087_0x5130ae;this[_0x4642a1(0x15b)]=_0x130a7a,this[_0x4642a1(0x139)]=new Sequence();};Migration[a1087_0x5130ae(0x154)]['changeColumn']=function(_0x29830d,_0x395494,_0x57e661){const _0x53a3c6=a1087_0x5130ae,_0x13d1f7=this;this[_0x53a3c6(0x139)][_0x53a3c6(0x153)](function(){const _0x271674=_0x53a3c6;return _0x13d1f7['queryInterface'][_0x271674(0x159)](_0x29830d,_0x395494,_0x57e661)[_0x271674(0x136)](function(){const _0x393e66=_0x271674;logger[_0x393e66(0x13e)](_0x393e66(0x15e),_0x395494,_0x29830d);})[_0x271674(0x138)](function(_0x11fdfb){const _0x4d7761=_0x271674;logger[_0x4d7761(0x13e)](JSON['stringify'](_0x11fdfb));});});},Migration[a1087_0x5130ae(0x154)][a1087_0x5130ae(0x140)]=function(_0x47d49f,_0x56a3df,_0x239995){const _0x589532=a1087_0x5130ae,_0x42d742=this;this[_0x589532(0x139)]['enqueue'](function(){const _0xd0bb23=_0x589532;return _0x42d742['queryInterface']['addColumn'](_0x47d49f,_0x56a3df,_0x239995)['then'](function(){const _0x299fd1=a1087_0x4e6f;logger[_0x299fd1(0x13e)](_0x299fd1(0x13b),_0x56a3df,_0x47d49f);})[_0xd0bb23(0x138)](function(_0x3aa90d){const _0x5eae36=_0xd0bb23;logger[_0x5eae36(0x13e)](JSON[_0x5eae36(0x13a)](_0x3aa90d));});});},Migration[a1087_0x5130ae(0x154)][a1087_0x5130ae(0x152)]=function(_0x4231cc){const _0x86e0fc=a1087_0x5130ae,_0x4778e9=this;this[_0x86e0fc(0x139)][_0x86e0fc(0x153)](function(){const _0x407a44=_0x86e0fc;return _0x4778e9[_0x407a44(0x15b)]['dropTable'](_0x4231cc,{'force':!![]})[_0x407a44(0x136)](function(){const _0x1e8c1f=_0x407a44;logger[_0x1e8c1f(0x13e)](_0x1e8c1f(0x14d),_0x4231cc);})[_0x407a44(0x138)](function(_0x816b4c){const _0x22b851=_0x407a44;logger[_0x22b851(0x13e)](JSON[_0x22b851(0x13a)](_0x816b4c));});});},Migration['prototype'][a1087_0x5130ae(0x157)]=function(_0x536329,_0x2904f9,_0x377ff4){const _0x2a9096=a1087_0x5130ae,_0x32e542=this;this[_0x2a9096(0x139)]['enqueue'](function(){const _0x25f854=_0x2a9096;return _0x32e542[_0x25f854(0x15b)][_0x25f854(0x157)](_0x536329,_0x2904f9,{'indexName':_0x377ff4})[_0x25f854(0x136)](function(){const _0x114cac=_0x25f854;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x536329,_0x2904f9[_0x114cac(0x144)](','),_0x377ff4);})[_0x25f854(0x138)](function(_0x1dcaf3){const _0x351a6b=_0x25f854;logger[_0x351a6b(0x13e)](JSON['stringify'](_0x1dcaf3));});});},Migration[a1087_0x5130ae(0x154)][a1087_0x5130ae(0x151)]=function(_0x5c0bd7){const _0x4d3573=a1087_0x5130ae,_0x85c278=this;this[_0x4d3573(0x139)]['enqueue'](function(){const _0x5e36cd=_0x4d3573;return _0x85c278['queryInterface'][_0x5e36cd(0x133)][_0x5e36cd(0x151)](_0x5c0bd7)[_0x5e36cd(0x136)](function(){const _0x41efc4=_0x5e36cd;logger[_0x41efc4(0x13e)](_0x41efc4(0x141),_0x5c0bd7);})[_0x5e36cd(0x138)](function(_0x10e193){const _0x4c3971=_0x5e36cd;logger['info'](JSON[_0x4c3971(0x13a)](_0x10e193));});});},Migration['prototype'][a1087_0x5130ae(0x145)]=function(_0x35d783,_0x485531){const _0x3ef94f=a1087_0x5130ae,_0x14a034=this;this[_0x3ef94f(0x139)][_0x3ef94f(0x153)](function(){const _0x4999bd=_0x3ef94f;return _0x14a034['queryInterface']['removeColumn'](_0x35d783,_0x485531)[_0x4999bd(0x136)](function(){const _0x80a284=_0x4999bd;logger[_0x80a284(0x13e)](_0x80a284(0x14e),_0x485531,_0x35d783);})['catch'](function(_0x32e155){const _0x3ee3a7=_0x4999bd;logger['info'](util[_0x3ee3a7(0x147)](_0x32e155,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1087_0x5130ae(0x155)]=function(_0x293138){const _0xfd1c30=a1087_0x5130ae;this['sequence'][_0xfd1c30(0x153)](function(){return _0x293138();});},module['exports']={'up':function(_0x848c03,_0x59c7bf){return new Promise(function(_0xe4bea){const _0x16c72d=a1087_0x4e6f,_0x2205eb=new Migration(_0x848c03);_0x2205eb['query']('DELETE\x20FROM\x20dashboards'),_0x2205eb['removeColumn'](_0x16c72d(0x14c),_0x16c72d(0x135)),_0x2205eb[_0x16c72d(0x159)](_0x16c72d(0x148),_0x16c72d(0x14f),{'type':_0x59c7bf[_0x16c72d(0x143)](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}}),_0x2205eb[_0x16c72d(0x145)](_0x16c72d(0x148),_0x16c72d(0x151)),_0x2205eb[_0x16c72d(0x145)]('dashboard_items',_0x16c72d(0x13f)),_0x2205eb[_0x16c72d(0x140)](_0x16c72d(0x148),'title',{'type':_0x59c7bf[_0x16c72d(0x143)](0x14),'validate':{'len':[0x0,0x14]}}),_0x2205eb['addColumn'](_0x16c72d(0x148),_0x16c72d(0x15c),{'type':_0x59c7bf[_0x16c72d(0x142)](_0x16c72d(0x156))}),_0x2205eb[_0x16c72d(0x140)](_0x16c72d(0x150),_0x16c72d(0x134),{'type':_0x59c7bf[_0x16c72d(0x149)],'defaultValue':![]}),_0x2205eb[_0x16c72d(0x140)](_0x16c72d(0x15f),_0x16c72d(0x14a),{'type':_0x59c7bf[_0x16c72d(0x143)],'defaultValue':_0x16c72d(0x14b)}),_0x2205eb['addColumn']('chat_websites',_0x16c72d(0x15d),{'type':_0x59c7bf[_0x16c72d(0x143)],'defaultValue':_0x16c72d(0x13d)}),_0x2205eb[_0x16c72d(0x155)](_0xe4bea);});},'down':function(){}};
\ No newline at end of file
+const a1090_0xa2e5=['Form\x20properly\x20submitted','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype','formSubmitFailureMessage','secret','catch','sequence','dropTable','stringify','Added\x20column\x20%s\x20to\x20%s','STRING','removeColumn','table\x20dropped\x20%s','../config/logger','migration','dashboards','sequelize','long','exports','query','type','final','addColumn','changeColumn','info','title','Form\x20submission\x20error','queryInterface','dashboard_items','DELETE\x20FROM\x20dashboards','finally','enqueue','tail','then','addIndex','TEXT','sms_messages','query\x20%s','chat_websites','data','interval','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x39c535,_0xfb0a04){const _0xa2e52a=function(_0x2ec8ec){while(--_0x2ec8ec){_0x39c535['push'](_0x39c535['shift']());}};_0xa2e52a(++_0xfb0a04);}(a1090_0xa2e5,0x1bc));const a1090_0x2ec8=function(_0x39c535,_0xfb0a04){_0x39c535=_0x39c535-0xc0;let _0xa2e52a=a1090_0xa2e5[_0x39c535];return _0xa2e52a;};const a1090_0xafc6e4=a1090_0x2ec8;'use strict';const logger=require(a1090_0xafc6e4(0xdf))(a1090_0xafc6e4(0xe0)),util=require('util'),Sequence=function(){};Sequence[a1090_0xafc6e4(0xd4)]['enqueue']=function(_0x276c93){const _0x286e5a=a1090_0xafc6e4;this[_0x286e5a(0xc8)]=this['tail']?this[_0x286e5a(0xc8)][_0x286e5a(0xc6)](_0x276c93):_0x276c93();};const Migration=function(_0x377fab){const _0x13db94=a1090_0xafc6e4;this[_0x13db94(0xc3)]=_0x377fab,this[_0x13db94(0xd8)]=new Sequence();};Migration[a1090_0xafc6e4(0xd4)]['changeColumn']=function(_0x2e8bc5,_0x2f0e14,_0x55295b){const _0x60cb80=a1090_0xafc6e4,_0xb076cc=this;this[_0x60cb80(0xd8)][_0x60cb80(0xc7)](function(){const _0x4426bc=_0x60cb80;return _0xb076cc[_0x4426bc(0xc3)]['changeColumn'](_0x2e8bc5,_0x2f0e14,_0x55295b)[_0x4426bc(0xc9)](function(){const _0x2b39db=_0x4426bc;logger[_0x2b39db(0xc0)](_0x2b39db(0xd3),_0x2f0e14,_0x2e8bc5);})['catch'](function(_0x4360d4){const _0x46bbd6=_0x4426bc;logger['info'](JSON[_0x46bbd6(0xda)](_0x4360d4));});});},Migration[a1090_0xafc6e4(0xd4)][a1090_0xafc6e4(0xe8)]=function(_0x1adceb,_0x1ffbfd,_0x308e19){const _0x28f06b=a1090_0xafc6e4,_0x2dd049=this;this['sequence'][_0x28f06b(0xc7)](function(){const _0x9ec634=_0x28f06b;return _0x2dd049[_0x9ec634(0xc3)][_0x9ec634(0xe8)](_0x1adceb,_0x1ffbfd,_0x308e19)[_0x9ec634(0xc9)](function(){const _0x4fd8f6=_0x9ec634;logger[_0x4fd8f6(0xc0)](_0x4fd8f6(0xdb),_0x1ffbfd,_0x1adceb);})[_0x9ec634(0xd7)](function(_0x60bdb5){const _0x96028b=_0x9ec634;logger[_0x96028b(0xc0)](JSON['stringify'](_0x60bdb5));});});},Migration[a1090_0xafc6e4(0xd4)]['dropTable']=function(_0x1adcb6){const _0x856fb0=a1090_0xafc6e4,_0x1bac31=this;this[_0x856fb0(0xd8)][_0x856fb0(0xc7)](function(){const _0x4ebaac=_0x856fb0;return _0x1bac31[_0x4ebaac(0xc3)][_0x4ebaac(0xd9)](_0x1adcb6,{'force':!![]})['then'](function(){const _0x374c37=_0x4ebaac;logger[_0x374c37(0xc0)](_0x374c37(0xde),_0x1adcb6);})['catch'](function(_0x225f82){const _0x57d35a=_0x4ebaac;logger['info'](JSON[_0x57d35a(0xda)](_0x225f82));});});},Migration['prototype'][a1090_0xafc6e4(0xca)]=function(_0x204bc7,_0xf02e26,_0x3fa724){const _0x44626b=a1090_0xafc6e4,_0x511e12=this;this[_0x44626b(0xd8)][_0x44626b(0xc7)](function(){const _0xf2c8f3=_0x44626b;return _0x511e12[_0xf2c8f3(0xc3)][_0xf2c8f3(0xca)](_0x204bc7,_0xf02e26,{'indexName':_0x3fa724})[_0xf2c8f3(0xc9)](function(){const _0x5326a3=_0xf2c8f3;logger[_0x5326a3(0xc0)]('addIndex\x20%s\x20%s\x20%s',_0x204bc7,_0xf02e26['join'](','),_0x3fa724);})[_0xf2c8f3(0xd7)](function(_0x3cf918){const _0xe4481d=_0xf2c8f3;logger[_0xe4481d(0xc0)](JSON['stringify'](_0x3cf918));});});},Migration[a1090_0xafc6e4(0xd4)][a1090_0xafc6e4(0xe5)]=function(_0x2aabbd){const _0xe08fa4=a1090_0xafc6e4,_0x5dc106=this;this[_0xe08fa4(0xd8)]['enqueue'](function(){const _0x11a093=_0xe08fa4;return _0x5dc106[_0x11a093(0xc3)][_0x11a093(0xe2)][_0x11a093(0xe5)](_0x2aabbd)['then'](function(){const _0x900fff=_0x11a093;logger[_0x900fff(0xc0)](_0x900fff(0xcd),_0x2aabbd);})[_0x11a093(0xd7)](function(_0x1e553b){const _0x56c256=_0x11a093;logger['info'](JSON[_0x56c256(0xda)](_0x1e553b));});});},Migration['prototype'][a1090_0xafc6e4(0xdd)]=function(_0x16c0fd,_0x31b423){const _0x30ab42=this;this['sequence']['enqueue'](function(){const _0x3a837c=a1090_0x2ec8;return _0x30ab42[_0x3a837c(0xc3)][_0x3a837c(0xdd)](_0x16c0fd,_0x31b423)[_0x3a837c(0xc9)](function(){const _0x5b3fb4=_0x3a837c;logger[_0x5b3fb4(0xc0)](_0x5b3fb4(0xd1),_0x31b423,_0x16c0fd);})[_0x3a837c(0xd7)](function(_0x4c4921){const _0x549920=_0x3a837c;logger[_0x549920(0xc0)](util['inspect'](_0x4c4921,{'showHidden':![],'depth':null}));});});},Migration[a1090_0xafc6e4(0xd4)]['final']=function(_0xf597ef){this['sequence']['enqueue'](function(){return _0xf597ef();});},module[a1090_0xafc6e4(0xe4)]={'up':function(_0x347912,_0x209ca6){return new Promise(function(_0x5266ba){const _0x2d8eab=a1090_0x2ec8,_0x408b37=new Migration(_0x347912);_0x408b37[_0x2d8eab(0xe5)](_0x2d8eab(0xc5)),_0x408b37[_0x2d8eab(0xdd)](_0x2d8eab(0xe1),_0x2d8eab(0xd0)),_0x408b37[_0x2d8eab(0xe9)](_0x2d8eab(0xc4),_0x2d8eab(0xe6),{'type':_0x209ca6[_0x2d8eab(0xdc)](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}}),_0x408b37[_0x2d8eab(0xdd)]('dashboard_items',_0x2d8eab(0xe5)),_0x408b37['removeColumn'](_0x2d8eab(0xc4),_0x2d8eab(0xcf)),_0x408b37[_0x2d8eab(0xe8)](_0x2d8eab(0xc4),_0x2d8eab(0xc1),{'type':_0x209ca6['STRING'](0x14),'validate':{'len':[0x0,0x14]}}),_0x408b37[_0x2d8eab(0xe8)]('dashboard_items','attrs',{'type':_0x209ca6[_0x2d8eab(0xcb)](_0x2d8eab(0xe3))}),_0x408b37['addColumn'](_0x2d8eab(0xcc),_0x2d8eab(0xd6),{'type':_0x209ca6['BOOLEAN'],'defaultValue':![]}),_0x408b37[_0x2d8eab(0xe8)](_0x2d8eab(0xce),'formSubmitSuccessMessage',{'type':_0x209ca6['STRING'],'defaultValue':_0x2d8eab(0xd2)}),_0x408b37['addColumn'](_0x2d8eab(0xce),_0x2d8eab(0xd5),{'type':_0x209ca6['STRING'],'defaultValue':_0x2d8eab(0xc2)}),_0x408b37[_0x2d8eab(0xe7)](_0x5266ba);});},'down':function(){}};
\ No newline at end of file