Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.10.js
index 5b30823..b99d856 100644 (file)
@@ -1 +1 @@
-const a1154_0x3423=['TEXT','removeColumn','referer','catch','query','exports','addColumn','../config/logger','removeIndex','addIndex\x20%s\x20%s\x20%s\x20[%s]','inspect','table\x20dropped\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex','settings','Changed\x20column\x20%s\x20in\x20table\x20%s','STRING','sequence','dropTable','query\x20%s','favicon','enqueue','stringify','renameColumn','indicesType','migration','then','prototype','finally','Added\x20column\x20%s\x20to\x20%s','info','queryInterface','util','indexName','BOOLEAN','changeColumn','tail','Removed\x20column\x20%s\x20from\x20%s','chat_interactions'];(function(_0x3c02cf,_0x432594){const _0x3423e7=function(_0x4b0cfd){while(--_0x4b0cfd){_0x3c02cf['push'](_0x3c02cf['shift']());}};_0x3423e7(++_0x432594);}(a1154_0x3423,0xd7));const a1154_0x4b0c=function(_0x3c02cf,_0x432594){_0x3c02cf=_0x3c02cf-0x9d;let _0x3423e7=a1154_0x3423[_0x3c02cf];return _0x3423e7;};const a1154_0x4a50b1=a1154_0x4b0c;'use strict';const util=require(a1154_0x4a50b1(0xa9)),logger=require(a1154_0x4a50b1(0xb7))(a1154_0x4a50b1(0xa2)),Sequence=function(){};Sequence['prototype'][a1154_0x4a50b1(0x9e)]=function(_0x14d692){const _0x106730=a1154_0x4a50b1;this[_0x106730(0xad)]=this[_0x106730(0xad)]?this[_0x106730(0xad)][_0x106730(0xa5)](_0x14d692):_0x14d692();};const Migration=function(_0x27048d){const _0x1d3821=a1154_0x4a50b1;this[_0x1d3821(0xa8)]=_0x27048d,this[_0x1d3821(0xc1)]=new Sequence();};Migration[a1154_0x4a50b1(0xa4)][a1154_0x4a50b1(0xac)]=function(_0x2513a4,_0x40f8b8,_0x1c28e0){const _0x162723=a1154_0x4a50b1,_0x40b833=this;this[_0x162723(0xc1)][_0x162723(0x9e)](function(){const _0xa26df5=_0x162723;return _0x40b833[_0xa26df5(0xa8)]['changeColumn'](_0x2513a4,_0x40f8b8,_0x1c28e0)[_0xa26df5(0xa3)](function(){const _0xf83f39=_0xa26df5;logger[_0xf83f39(0xa7)](_0xf83f39(0xbf),_0x40f8b8,_0x2513a4);})['catch'](function(_0x595874){const _0x75e455=_0xa26df5;logger['info'](JSON[_0x75e455(0x9f)](_0x595874));});});},Migration[a1154_0x4a50b1(0xa4)][a1154_0x4a50b1(0xb6)]=function(_0x3344fb,_0x557d4e,_0x1082c8){const _0x267ca5=a1154_0x4a50b1,_0x466e38=this;this[_0x267ca5(0xc1)][_0x267ca5(0x9e)](function(){const _0x34c5ad=_0x267ca5;return _0x466e38[_0x34c5ad(0xa8)][_0x34c5ad(0xb6)](_0x3344fb,_0x557d4e,_0x1082c8)[_0x34c5ad(0xa3)](function(){const _0x682e08=_0x34c5ad;logger[_0x682e08(0xa7)](_0x682e08(0xa6),_0x557d4e,_0x3344fb);})['catch'](function(_0x2c4a8a){const _0x1dd412=_0x34c5ad;logger[_0x1dd412(0xa7)](JSON[_0x1dd412(0x9f)](_0x2c4a8a));});});},Migration['prototype'][a1154_0x4a50b1(0xc2)]=function(_0x175c4e){const _0x560eea=a1154_0x4a50b1,_0x305a1e=this;this[_0x560eea(0xc1)][_0x560eea(0x9e)](function(){const _0x2c1190=_0x560eea;return _0x305a1e[_0x2c1190(0xa8)][_0x2c1190(0xc2)](_0x175c4e,{'force':!![]})['then'](function(){const _0x5befd2=_0x2c1190;logger[_0x5befd2(0xa7)](_0x5befd2(0xbb),_0x175c4e);})[_0x2c1190(0xb3)](function(_0x3cfd3c){const _0x6294c0=_0x2c1190;logger['info'](JSON[_0x6294c0(0x9f)](_0x3cfd3c));});});},Migration[a1154_0x4a50b1(0xa4)][a1154_0x4a50b1(0xbd)]=function(_0x1312d9,_0x834d7d,_0x2c9612){const _0x501728=a1154_0x4a50b1,_0x1e0721=this;this[_0x501728(0xc1)][_0x501728(0x9e)](function(){const _0x2095ed=_0x501728;return _0x1e0721['queryInterface'][_0x2095ed(0xbd)](_0x1312d9,_0x834d7d,{'indexName':_0x2c9612[_0x2095ed(0xaa)],'indicesType':_0x2c9612[_0x2095ed(0xa1)]})[_0x2095ed(0xa3)](function(){const _0x176b4d=_0x2095ed;logger[_0x176b4d(0xa7)](_0x176b4d(0xb9),_0x1312d9,_0x834d7d['join'](','),_0x2c9612[_0x176b4d(0xaa)],_0x2c9612[_0x176b4d(0xa1)]);})[_0x2095ed(0xb3)](function(_0x313b67){const _0x3adaa1=_0x2095ed;logger[_0x3adaa1(0xa7)](JSON[_0x3adaa1(0x9f)](_0x313b67));});});},Migration['prototype'][a1154_0x4a50b1(0xb8)]=function(_0x1b2a75,_0x346540){const _0x358edc=a1154_0x4a50b1,_0x22d95d=this;this['sequence'][_0x358edc(0x9e)](function(){const _0x4bd282=_0x358edc;return _0x22d95d[_0x4bd282(0xa8)][_0x4bd282(0xb8)](_0x1b2a75,_0x346540)[_0x4bd282(0xa3)](function(){const _0x493e5b=_0x4bd282;logger[_0x493e5b(0xa7)]('removeIndex\x20%s\x20%s',_0x1b2a75,_0x346540);})[_0x4bd282(0xb3)](function(_0x2ae60a){const _0x8af113=_0x4bd282;logger[_0x8af113(0xa7)](JSON['stringify'](_0x2ae60a));});});},Migration[a1154_0x4a50b1(0xa4)][a1154_0x4a50b1(0xb4)]=function(_0x3fd610){const _0x30dc31=a1154_0x4a50b1,_0x479008=this;this['sequence'][_0x30dc31(0x9e)](function(){const _0x4420d7=_0x30dc31;return _0x479008[_0x4420d7(0xa8)]['sequelize'][_0x4420d7(0xb4)](_0x3fd610)['then'](function(){const _0x40e1c0=_0x4420d7;logger[_0x40e1c0(0xa7)](_0x40e1c0(0xc3),_0x3fd610);})[_0x4420d7(0xb3)](function(_0x3f683a){const _0x1434d7=_0x4420d7;logger[_0x1434d7(0xa7)](JSON['stringify'](_0x3f683a));});});},Migration['prototype']['removeColumn']=function(_0x849414,_0x1480ab){const _0xd00448=a1154_0x4a50b1,_0x391723=this;this['sequence'][_0xd00448(0x9e)](function(){const _0x4d98c9=_0xd00448;return _0x391723['queryInterface'][_0x4d98c9(0xb1)](_0x849414,_0x1480ab)[_0x4d98c9(0xa3)](function(){const _0x30dbf7=_0x4d98c9;logger[_0x30dbf7(0xa7)](_0x30dbf7(0xae),_0x1480ab,_0x849414);})[_0x4d98c9(0xb3)](function(_0x4ad29d){const _0x454f44=_0x4d98c9;logger[_0x454f44(0xa7)](util[_0x454f44(0xba)](_0x4ad29d,{'showHidden':![],'depth':null}));});});},Migration[a1154_0x4a50b1(0xa4)][a1154_0x4a50b1(0xa0)]=function(_0x39820f,_0x141d75,_0x1502cd){const _0x31512e=a1154_0x4a50b1,_0x2a0a1b=this;this[_0x31512e(0xc1)][_0x31512e(0x9e)](function(){const _0xbc862a=_0x31512e;return _0x2a0a1b['queryInterface']['renameColumn'](_0x39820f,_0x141d75,_0x1502cd)[_0xbc862a(0xa3)](function(){const _0x3d7de7=_0xbc862a;logger[_0x3d7de7(0xa7)](_0x3d7de7(0xbc),_0x141d75,_0x1502cd,_0x39820f);})[_0xbc862a(0xb3)](function(_0x1f1ffd){const _0x4003b5=_0xbc862a;logger[_0x4003b5(0xa7)](util[_0x4003b5(0xba)](_0x1f1ffd,{'showHidden':![],'depth':null}));});});},Migration[a1154_0x4a50b1(0xa4)]['final']=function(_0x29f31f){const _0x41b071=a1154_0x4a50b1;this[_0x41b071(0xc1)][_0x41b071(0x9e)](function(){return _0x29f31f();});},module[a1154_0x4a50b1(0xb5)]={'up':function(_0x28b9b0,_0x57258b){return new Promise(function(_0x5cf8ef){const _0xd01f7=a1154_0x4b0c,_0x38fb3d=new Migration(_0x28b9b0);_0x38fb3d[_0xd01f7(0xac)](_0xd01f7(0xaf),_0xd01f7(0xb2),{'type':_0x57258b[_0xd01f7(0xb0)]}),_0x38fb3d[_0xd01f7(0xb6)](_0xd01f7(0xbe),_0xd01f7(0x9d),{'type':_0x57258b[_0xd01f7(0xc0)]}),_0x38fb3d[_0xd01f7(0xb6)](_0xd01f7(0xbe),'defaultFavicon',{'type':_0x57258b[_0xd01f7(0xab)],'defaultValue':!![]}),_0x38fb3d['final'](_0x5cf8ef);});},'down':function(){}};
\ No newline at end of file
+const a1157_0x16fa=['addIndex','queryInterface','renameColumn','stringify','addColumn','info','removeIndex','chat_interactions','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','inspect','prototype','dropTable','query','Removed\x20column\x20%s\x20from\x20%s','final','changeColumn','indicesType','referer','favicon','removeColumn','Added\x20column\x20%s\x20to\x20%s','catch','migration','enqueue','table\x20dropped\x20%s','query\x20%s','sequelize','removeIndex\x20%s\x20%s','tail','join','then','TEXT','settings','sequence','../config/logger','Changed\x20column\x20%s\x20in\x20table\x20%s','defaultFavicon'];(function(_0x26cd3c,_0xb77905){const _0x16faf7=function(_0x336b23){while(--_0x336b23){_0x26cd3c['push'](_0x26cd3c['shift']());}};_0x16faf7(++_0xb77905);}(a1157_0x16fa,0x16e));const a1157_0x336b=function(_0x26cd3c,_0xb77905){_0x26cd3c=_0x26cd3c-0x158;let _0x16faf7=a1157_0x16fa[_0x26cd3c];return _0x16faf7;};const a1157_0x3c95de=a1157_0x336b;'use strict';const util=require('util'),logger=require(a1157_0x3c95de(0x159))(a1157_0x3c95de(0x172)),Sequence=function(){};Sequence['prototype'][a1157_0x3c95de(0x173)]=function(_0x5335fb){const _0x243246=a1157_0x3c95de;this[_0x243246(0x178)]=this[_0x243246(0x178)]?this[_0x243246(0x178)]['finally'](_0x5335fb):_0x5335fb();};const Migration=function(_0xb3ff08){const _0x810f97=a1157_0x3c95de;this['queryInterface']=_0xb3ff08,this[_0x810f97(0x158)]=new Sequence();};Migration[a1157_0x3c95de(0x166)][a1157_0x3c95de(0x16b)]=function(_0x2c2bc7,_0x57e4a6,_0x2a1585){const _0x2b5815=a1157_0x3c95de,_0x22975d=this;this[_0x2b5815(0x158)][_0x2b5815(0x173)](function(){const _0x4e89c4=_0x2b5815;return _0x22975d[_0x4e89c4(0x15d)][_0x4e89c4(0x16b)](_0x2c2bc7,_0x57e4a6,_0x2a1585)['then'](function(){const _0x1df892=_0x4e89c4;logger[_0x1df892(0x161)](_0x1df892(0x15a),_0x57e4a6,_0x2c2bc7);})[_0x4e89c4(0x171)](function(_0x9394cf){const _0x801c04=_0x4e89c4;logger[_0x801c04(0x161)](JSON[_0x801c04(0x15f)](_0x9394cf));});});},Migration[a1157_0x3c95de(0x166)]['addColumn']=function(_0x4d93d1,_0xf01ec8,_0x1bf58b){const _0x5007ed=a1157_0x3c95de,_0x59c3e0=this;this[_0x5007ed(0x158)][_0x5007ed(0x173)](function(){const _0x14855e=_0x5007ed;return _0x59c3e0[_0x14855e(0x15d)]['addColumn'](_0x4d93d1,_0xf01ec8,_0x1bf58b)[_0x14855e(0x17a)](function(){const _0x424f1b=_0x14855e;logger[_0x424f1b(0x161)](_0x424f1b(0x170),_0xf01ec8,_0x4d93d1);})[_0x14855e(0x171)](function(_0xf69898){const _0x2a2a63=_0x14855e;logger[_0x2a2a63(0x161)](JSON[_0x2a2a63(0x15f)](_0xf69898));});});},Migration[a1157_0x3c95de(0x166)][a1157_0x3c95de(0x167)]=function(_0x5f463b){const _0x183126=a1157_0x3c95de,_0x3747b9=this;this[_0x183126(0x158)][_0x183126(0x173)](function(){const _0x5cf041=_0x183126;return _0x3747b9['queryInterface'][_0x5cf041(0x167)](_0x5f463b,{'force':!![]})[_0x5cf041(0x17a)](function(){const _0x112dfe=_0x5cf041;logger[_0x112dfe(0x161)](_0x112dfe(0x174),_0x5f463b);})[_0x5cf041(0x171)](function(_0x499770){logger['info'](JSON['stringify'](_0x499770));});});},Migration['prototype'][a1157_0x3c95de(0x15c)]=function(_0x181bd4,_0x3e2ffe,_0x15e5ab){const _0x3397d8=a1157_0x3c95de,_0x5a73ae=this;this[_0x3397d8(0x158)][_0x3397d8(0x173)](function(){const _0x9f7ead=_0x3397d8;return _0x5a73ae[_0x9f7ead(0x15d)][_0x9f7ead(0x15c)](_0x181bd4,_0x3e2ffe,{'indexName':_0x15e5ab['indexName'],'indicesType':_0x15e5ab['indicesType']})[_0x9f7ead(0x17a)](function(){const _0x35aa36=_0x9f7ead;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x181bd4,_0x3e2ffe[_0x35aa36(0x179)](','),_0x15e5ab['indexName'],_0x15e5ab[_0x35aa36(0x16c)]);})[_0x9f7ead(0x171)](function(_0x2bf813){const _0x52c572=_0x9f7ead;logger[_0x52c572(0x161)](JSON[_0x52c572(0x15f)](_0x2bf813));});});},Migration[a1157_0x3c95de(0x166)][a1157_0x3c95de(0x162)]=function(_0x1a04cd,_0xe158f1){const _0x519868=a1157_0x3c95de,_0x6c8422=this;this[_0x519868(0x158)][_0x519868(0x173)](function(){const _0x1365c9=_0x519868;return _0x6c8422[_0x1365c9(0x15d)][_0x1365c9(0x162)](_0x1a04cd,_0xe158f1)[_0x1365c9(0x17a)](function(){const _0x40e74e=_0x1365c9;logger[_0x40e74e(0x161)](_0x40e74e(0x177),_0x1a04cd,_0xe158f1);})[_0x1365c9(0x171)](function(_0x1c0078){const _0x862a90=_0x1365c9;logger[_0x862a90(0x161)](JSON['stringify'](_0x1c0078));});});},Migration[a1157_0x3c95de(0x166)][a1157_0x3c95de(0x168)]=function(_0x3ea278){const _0x581baf=a1157_0x3c95de,_0x24a485=this;this[_0x581baf(0x158)]['enqueue'](function(){const _0x33a1b1=_0x581baf;return _0x24a485[_0x33a1b1(0x15d)][_0x33a1b1(0x176)][_0x33a1b1(0x168)](_0x3ea278)[_0x33a1b1(0x17a)](function(){const _0x34857a=_0x33a1b1;logger['info'](_0x34857a(0x175),_0x3ea278);})[_0x33a1b1(0x171)](function(_0x57a589){const _0x670d10=_0x33a1b1;logger[_0x670d10(0x161)](JSON['stringify'](_0x57a589));});});},Migration[a1157_0x3c95de(0x166)]['removeColumn']=function(_0x1362b3,_0x132f36){const _0x41eec3=this;this['sequence']['enqueue'](function(){const _0x165a4f=a1157_0x336b;return _0x41eec3[_0x165a4f(0x15d)][_0x165a4f(0x16f)](_0x1362b3,_0x132f36)[_0x165a4f(0x17a)](function(){const _0x41df45=_0x165a4f;logger[_0x41df45(0x161)](_0x41df45(0x169),_0x132f36,_0x1362b3);})[_0x165a4f(0x171)](function(_0x310e8a){const _0x32824c=_0x165a4f;logger[_0x32824c(0x161)](util[_0x32824c(0x165)](_0x310e8a,{'showHidden':![],'depth':null}));});});},Migration[a1157_0x3c95de(0x166)][a1157_0x3c95de(0x15e)]=function(_0x1eb470,_0x43e378,_0x1c007a){const _0x45339e=a1157_0x3c95de,_0x563848=this;this[_0x45339e(0x158)]['enqueue'](function(){const _0x14db71=_0x45339e;return _0x563848[_0x14db71(0x15d)][_0x14db71(0x15e)](_0x1eb470,_0x43e378,_0x1c007a)[_0x14db71(0x17a)](function(){const _0x1b91d3=_0x14db71;logger['info'](_0x1b91d3(0x164),_0x43e378,_0x1c007a,_0x1eb470);})[_0x14db71(0x171)](function(_0x53da06){const _0xb384a2=_0x14db71;logger[_0xb384a2(0x161)](util['inspect'](_0x53da06,{'showHidden':![],'depth':null}));});});},Migration[a1157_0x3c95de(0x166)]['final']=function(_0x2df600){const _0x4240e5=a1157_0x3c95de;this[_0x4240e5(0x158)]['enqueue'](function(){return _0x2df600();});},module['exports']={'up':function(_0x2efce9,_0x519e25){return new Promise(function(_0x519636){const _0x1eb6a9=a1157_0x336b,_0x14279a=new Migration(_0x2efce9);_0x14279a['changeColumn'](_0x1eb6a9(0x163),_0x1eb6a9(0x16d),{'type':_0x519e25[_0x1eb6a9(0x17b)]}),_0x14279a[_0x1eb6a9(0x160)](_0x1eb6a9(0x17c),_0x1eb6a9(0x16e),{'type':_0x519e25['STRING']}),_0x14279a[_0x1eb6a9(0x160)](_0x1eb6a9(0x17c),_0x1eb6a9(0x15b),{'type':_0x519e25['BOOLEAN'],'defaultValue':!![]}),_0x14279a[_0x1eb6a9(0x16a)](_0x519636);});},'down':function(){}};
\ No newline at end of file