Built motion from commit 362b9399b4d0ed5560fbb795af995925d345fc38. Version 3.0.0...
[motion-next.git] / server / migrations / 2.5.7.js
index af53ecf..73a6930 100644 (file)
@@ -1 +1 @@
-const a1184_0xc8c8=['util','sequelize','join','addColumn','catch','exports','enqueue','Changed\x20column\x20%s\x20in\x20table\x20%s','queryInterface','sequence','query\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','prototype','removeColumn','providerName','removeIndex','inspect','../config/logger','STRING','query','then','whatsapp_messages','indexName','migration','info','renameColumn','openchannel_messages','changeColumn','Added\x20column\x20%s\x20to\x20%s','providerResponse','tail','TEXT','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','square_messages','indicesType','dropTable','chat_messages','addIndex','stringify','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x47cf69,_0x25ad27){const _0xc8c890=function(_0x4eadda){while(--_0x4eadda){_0x47cf69['push'](_0x47cf69['shift']());}};_0xc8c890(++_0x25ad27);}(a1184_0xc8c8,0x90));const a1184_0x4ead=function(_0x47cf69,_0x25ad27){_0x47cf69=_0x47cf69-0x97;let _0xc8c890=a1184_0xc8c8[_0x47cf69];return _0xc8c890;};const a1184_0x175c81=a1184_0x4ead;'use strict';const util=require(a1184_0x175c81(0xa7)),logger=require(a1184_0x175c81(0xb8))(a1184_0x175c81(0xbe)),Sequence=function(){};Sequence[a1184_0x175c81(0xb3)][a1184_0x175c81(0xad)]=function(_0x42325b){const _0x3aa653=a1184_0x175c81;this[_0x3aa653(0x9d)]=this[_0x3aa653(0x9d)]?this['tail']['finally'](_0x42325b):_0x42325b();};const Migration=function(_0x4e0555){this['queryInterface']=_0x4e0555,this['sequence']=new Sequence();};Migration[a1184_0x175c81(0xb3)][a1184_0x175c81(0x9a)]=function(_0xe9b7ef,_0x50a6f1,_0x16570d){const _0x1cb1a7=this;this['sequence']['enqueue'](function(){const _0x1f28d7=a1184_0x4ead;return _0x1cb1a7[_0x1f28d7(0xaf)][_0x1f28d7(0x9a)](_0xe9b7ef,_0x50a6f1,_0x16570d)[_0x1f28d7(0xbb)](function(){const _0x4f100b=_0x1f28d7;logger[_0x4f100b(0x97)](_0x4f100b(0xae),_0x50a6f1,_0xe9b7ef);})[_0x1f28d7(0xab)](function(_0x51abf4){const _0x469fb9=_0x1f28d7;logger[_0x469fb9(0x97)](JSON[_0x469fb9(0xa5)](_0x51abf4));});});},Migration['prototype'][a1184_0x175c81(0xaa)]=function(_0x277330,_0x184050,_0x39cdee){const _0x37c223=this;this['sequence']['enqueue'](function(){const _0x509206=a1184_0x4ead;return _0x37c223['queryInterface'][_0x509206(0xaa)](_0x277330,_0x184050,_0x39cdee)['then'](function(){const _0x211d9d=_0x509206;logger['info'](_0x211d9d(0x9b),_0x184050,_0x277330);})[_0x509206(0xab)](function(_0x327795){const _0x4fe794=_0x509206;logger[_0x4fe794(0x97)](JSON[_0x4fe794(0xa5)](_0x327795));});});},Migration[a1184_0x175c81(0xb3)][a1184_0x175c81(0xa2)]=function(_0x2ae9c3){const _0x597eb9=a1184_0x175c81,_0x500c8b=this;this[_0x597eb9(0xb0)]['enqueue'](function(){const _0x5e5a68=_0x597eb9;return _0x500c8b[_0x5e5a68(0xaf)]['dropTable'](_0x2ae9c3,{'force':!![]})[_0x5e5a68(0xbb)](function(){logger['info']('table\x20dropped\x20%s',_0x2ae9c3);})['catch'](function(_0x102f14){const _0x30e34b=_0x5e5a68;logger[_0x30e34b(0x97)](JSON[_0x30e34b(0xa5)](_0x102f14));});});},Migration['prototype'][a1184_0x175c81(0xa4)]=function(_0x4ffae5,_0x433ba8,_0x3c93bc){const _0x3c14f4=a1184_0x175c81,_0x4930fe=this;this['sequence'][_0x3c14f4(0xad)](function(){const _0x18b205=_0x3c14f4;return _0x4930fe[_0x18b205(0xaf)][_0x18b205(0xa4)](_0x4ffae5,_0x433ba8,{'indexName':_0x3c93bc[_0x18b205(0xbd)],'indicesType':_0x3c93bc[_0x18b205(0xa1)]})[_0x18b205(0xbb)](function(){const _0x5e34fb=_0x18b205;logger[_0x5e34fb(0x97)](_0x5e34fb(0xb2),_0x4ffae5,_0x433ba8[_0x5e34fb(0xa9)](','),_0x3c93bc[_0x5e34fb(0xbd)],_0x3c93bc[_0x5e34fb(0xa1)]);})[_0x18b205(0xab)](function(_0x260253){const _0x491d2a=_0x18b205;logger[_0x491d2a(0x97)](JSON['stringify'](_0x260253));});});},Migration[a1184_0x175c81(0xb3)][a1184_0x175c81(0xb6)]=function(_0x56e208,_0xae83ca){const _0x3a1b99=a1184_0x175c81,_0x5629f0=this;this[_0x3a1b99(0xb0)][_0x3a1b99(0xad)](function(){const _0x48ad4c=_0x3a1b99;return _0x5629f0[_0x48ad4c(0xaf)][_0x48ad4c(0xb6)](_0x56e208,_0xae83ca)[_0x48ad4c(0xbb)](function(){const _0x2f2818=_0x48ad4c;logger[_0x2f2818(0x97)]('removeIndex\x20%s\x20%s',_0x56e208,_0xae83ca);})[_0x48ad4c(0xab)](function(_0x29862e){const _0x1e45a4=_0x48ad4c;logger[_0x1e45a4(0x97)](JSON[_0x1e45a4(0xa5)](_0x29862e));});});},Migration['prototype']['query']=function(_0x552769){const _0x57bafd=a1184_0x175c81,_0x47ef11=this;this[_0x57bafd(0xb0)][_0x57bafd(0xad)](function(){const _0x24711a=_0x57bafd;return _0x47ef11['queryInterface'][_0x24711a(0xa8)][_0x24711a(0xba)](_0x552769)[_0x24711a(0xbb)](function(){const _0x5456f7=_0x24711a;logger[_0x5456f7(0x97)](_0x5456f7(0xb1),_0x552769);})[_0x24711a(0xab)](function(_0x49332b){const _0x1dcdbd=_0x24711a;logger[_0x1dcdbd(0x97)](JSON[_0x1dcdbd(0xa5)](_0x49332b));});});},Migration['prototype'][a1184_0x175c81(0xb4)]=function(_0x4a16a2,_0x567f9e){const _0x31ef24=a1184_0x175c81,_0x6903f5=this;this['sequence'][_0x31ef24(0xad)](function(){const _0x540224=_0x31ef24;return _0x6903f5[_0x540224(0xaf)][_0x540224(0xb4)](_0x4a16a2,_0x567f9e)[_0x540224(0xbb)](function(){const _0x14c593=_0x540224;logger['info'](_0x14c593(0xa6),_0x567f9e,_0x4a16a2);})[_0x540224(0xab)](function(_0x444b5c){const _0x34e184=_0x540224;logger[_0x34e184(0x97)](util[_0x34e184(0xb7)](_0x444b5c,{'showHidden':![],'depth':null}));});});},Migration[a1184_0x175c81(0xb3)][a1184_0x175c81(0x98)]=function(_0xcee058,_0x192de5,_0x55eb15){const _0x2bfd8c=a1184_0x175c81,_0x18b111=this;this[_0x2bfd8c(0xb0)][_0x2bfd8c(0xad)](function(){const _0x17daf7=_0x2bfd8c;return _0x18b111[_0x17daf7(0xaf)][_0x17daf7(0x98)](_0xcee058,_0x192de5,_0x55eb15)['then'](function(){const _0x826acf=_0x17daf7;logger[_0x826acf(0x97)](_0x826acf(0x9f),_0x192de5,_0x55eb15,_0xcee058);})['catch'](function(_0x2a7ccf){const _0x373ee4=_0x17daf7;logger[_0x373ee4(0x97)](util[_0x373ee4(0xb7)](_0x2a7ccf,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x58f86f){this['sequence']['enqueue'](function(){return _0x58f86f();});},module[a1184_0x175c81(0xac)]={'up':function(_0x4dbd8e,_0x17e65f){return new Promise(function(_0x54d880){const _0x28ca6f=a1184_0x4ead,_0xd36c4f=new Migration(_0x4dbd8e);_0xd36c4f[_0x28ca6f(0xaa)](_0x28ca6f(0xa3),_0x28ca6f(0xb5),{'type':_0x17e65f[_0x28ca6f(0xb9)]}),_0xd36c4f[_0x28ca6f(0xaa)]('chat_messages',_0x28ca6f(0x9c),{'type':_0x17e65f['TEXT']}),_0xd36c4f['addColumn'](_0x28ca6f(0x99),_0x28ca6f(0xb5),{'type':_0x17e65f[_0x28ca6f(0xb9)]}),_0xd36c4f[_0x28ca6f(0xaa)](_0x28ca6f(0x99),_0x28ca6f(0x9c),{'type':_0x17e65f[_0x28ca6f(0x9e)]}),_0xd36c4f[_0x28ca6f(0xaa)]('sms_messages',_0x28ca6f(0xb5),{'type':_0x17e65f[_0x28ca6f(0xb9)]}),_0xd36c4f[_0x28ca6f(0xaa)]('sms_messages','providerResponse',{'type':_0x17e65f['TEXT']}),_0xd36c4f[_0x28ca6f(0xaa)](_0x28ca6f(0xbc),_0x28ca6f(0xb5),{'type':_0x17e65f[_0x28ca6f(0xb9)]}),_0xd36c4f[_0x28ca6f(0xaa)]('whatsapp_messages',_0x28ca6f(0x9c),{'type':_0x17e65f[_0x28ca6f(0x9e)]}),_0xd36c4f[_0x28ca6f(0xaa)](_0x28ca6f(0xa0),_0x28ca6f(0xb5),{'type':_0x17e65f[_0x28ca6f(0xb9)]}),_0xd36c4f[_0x28ca6f(0xaa)](_0x28ca6f(0xa0),_0x28ca6f(0x9c),{'type':_0x17e65f['TEXT']}),_0xd36c4f['final'](_0x54d880);});},'down':function(){}};
\ No newline at end of file
+const a1184_0x591a=['addColumn','STRING','migration','Added\x20column\x20%s\x20to\x20%s','whatsapp_messages','enqueue','util','sms_messages','tail','indicesType','exports','openchannel_messages','query','removeColumn','join','changeColumn','providerResponse','dropTable','then','addIndex','../config/logger','sequence','providerName','TEXT','square_messages','stringify','queryInterface','chat_messages','table\x20dropped\x20%s','catch','query\x20%s','info','removeIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype','inspect','final','renameColumn','indexName','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x24495c,_0x26d7d7){const _0x591a6d=function(_0x474a09){while(--_0x474a09){_0x24495c['push'](_0x24495c['shift']());}};_0x591a6d(++_0x26d7d7);}(a1184_0x591a,0xac));const a1184_0x474a=function(_0x24495c,_0x26d7d7){_0x24495c=_0x24495c-0x159;let _0x591a6d=a1184_0x591a[_0x24495c];return _0x591a6d;};const a1184_0xd57523=a1184_0x474a;'use strict';const util=require(a1184_0xd57523(0x17b)),logger=require(a1184_0xd57523(0x161))(a1184_0xd57523(0x177)),Sequence=function(){};Sequence[a1184_0xd57523(0x16f)][a1184_0xd57523(0x17a)]=function(_0x1b0747){const _0x2a1581=a1184_0xd57523;this['tail']=this[_0x2a1581(0x17d)]?this[_0x2a1581(0x17d)]['finally'](_0x1b0747):_0x1b0747();};const Migration=function(_0x341eb0){const _0x529c9a=a1184_0xd57523;this[_0x529c9a(0x167)]=_0x341eb0,this[_0x529c9a(0x162)]=new Sequence();};Migration[a1184_0xd57523(0x16f)]['changeColumn']=function(_0x276d2f,_0x1ff0b2,_0xc7e4e4){const _0xfa4ced=a1184_0xd57523,_0x184262=this;this['sequence'][_0xfa4ced(0x17a)](function(){const _0x10d721=_0xfa4ced;return _0x184262[_0x10d721(0x167)][_0x10d721(0x15c)](_0x276d2f,_0x1ff0b2,_0xc7e4e4)[_0x10d721(0x15f)](function(){const _0x4515df=_0x10d721;logger['info'](_0x4515df(0x16e),_0x1ff0b2,_0x276d2f);})[_0x10d721(0x16a)](function(_0xa55f6e){logger['info'](JSON['stringify'](_0xa55f6e));});});},Migration[a1184_0xd57523(0x16f)][a1184_0xd57523(0x175)]=function(_0x137842,_0x237d39,_0x4d7c23){const _0x284267=a1184_0xd57523,_0x1595af=this;this[_0x284267(0x162)]['enqueue'](function(){const _0x4ad650=_0x284267;return _0x1595af[_0x4ad650(0x167)][_0x4ad650(0x175)](_0x137842,_0x237d39,_0x4d7c23)['then'](function(){const _0x3a9287=_0x4ad650;logger[_0x3a9287(0x16c)](_0x3a9287(0x178),_0x237d39,_0x137842);})[_0x4ad650(0x16a)](function(_0x27e5f0){const _0x754187=_0x4ad650;logger['info'](JSON[_0x754187(0x166)](_0x27e5f0));});});},Migration[a1184_0xd57523(0x16f)][a1184_0xd57523(0x15e)]=function(_0x58bc8c){const _0x562674=a1184_0xd57523,_0x3f3b33=this;this[_0x562674(0x162)][_0x562674(0x17a)](function(){const _0x26dc98=_0x562674;return _0x3f3b33['queryInterface'][_0x26dc98(0x15e)](_0x58bc8c,{'force':!![]})[_0x26dc98(0x15f)](function(){const _0x394a36=_0x26dc98;logger['info'](_0x394a36(0x169),_0x58bc8c);})['catch'](function(_0x4bb4ac){const _0x52ff01=_0x26dc98;logger[_0x52ff01(0x16c)](JSON[_0x52ff01(0x166)](_0x4bb4ac));});});},Migration[a1184_0xd57523(0x16f)][a1184_0xd57523(0x160)]=function(_0x122f77,_0x5b1765,_0x51509b){const _0x22a4c0=a1184_0xd57523,_0x3e117b=this;this['sequence'][_0x22a4c0(0x17a)](function(){const _0x54b5f8=_0x22a4c0;return _0x3e117b['queryInterface']['addIndex'](_0x122f77,_0x5b1765,{'indexName':_0x51509b[_0x54b5f8(0x173)],'indicesType':_0x51509b['indicesType']})[_0x54b5f8(0x15f)](function(){const _0x140516=_0x54b5f8;logger[_0x140516(0x16c)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x122f77,_0x5b1765[_0x140516(0x15b)](','),_0x51509b[_0x140516(0x173)],_0x51509b[_0x140516(0x17e)]);})[_0x54b5f8(0x16a)](function(_0x583e68){const _0x3795bc=_0x54b5f8;logger['info'](JSON[_0x3795bc(0x166)](_0x583e68));});});},Migration[a1184_0xd57523(0x16f)][a1184_0xd57523(0x16d)]=function(_0x2203bf,_0x5784ed){const _0xc432cf=a1184_0xd57523,_0x5bc9a7=this;this[_0xc432cf(0x162)][_0xc432cf(0x17a)](function(){const _0x82319e=_0xc432cf;return _0x5bc9a7[_0x82319e(0x167)][_0x82319e(0x16d)](_0x2203bf,_0x5784ed)[_0x82319e(0x15f)](function(){logger['info']('removeIndex\x20%s\x20%s',_0x2203bf,_0x5784ed);})[_0x82319e(0x16a)](function(_0xac6c3f){const _0x346b83=_0x82319e;logger[_0x346b83(0x16c)](JSON['stringify'](_0xac6c3f));});});},Migration[a1184_0xd57523(0x16f)][a1184_0xd57523(0x159)]=function(_0x6d9a85){const _0xcec2e8=a1184_0xd57523,_0x22d856=this;this['sequence'][_0xcec2e8(0x17a)](function(){const _0x4f670c=_0xcec2e8;return _0x22d856['queryInterface']['sequelize']['query'](_0x6d9a85)[_0x4f670c(0x15f)](function(){const _0xaf8abd=_0x4f670c;logger[_0xaf8abd(0x16c)](_0xaf8abd(0x16b),_0x6d9a85);})['catch'](function(_0x48619a){const _0x30b0a3=_0x4f670c;logger['info'](JSON[_0x30b0a3(0x166)](_0x48619a));});});},Migration['prototype'][a1184_0xd57523(0x15a)]=function(_0x45238c,_0x166971){const _0x5538cf=a1184_0xd57523,_0x504d80=this;this[_0x5538cf(0x162)][_0x5538cf(0x17a)](function(){const _0x582be8=_0x5538cf;return _0x504d80[_0x582be8(0x167)][_0x582be8(0x15a)](_0x45238c,_0x166971)['then'](function(){const _0xfaa70f=_0x582be8;logger['info'](_0xfaa70f(0x174),_0x166971,_0x45238c);})['catch'](function(_0x300ada){const _0x30bd87=_0x582be8;logger[_0x30bd87(0x16c)](util[_0x30bd87(0x170)](_0x300ada,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1184_0xd57523(0x172)]=function(_0x556b02,_0x434cd9,_0x4f8c3c){const _0x253d03=this;this['sequence']['enqueue'](function(){const _0x5dee63=a1184_0x474a;return _0x253d03['queryInterface']['renameColumn'](_0x556b02,_0x434cd9,_0x4f8c3c)[_0x5dee63(0x15f)](function(){const _0x4aeec4=_0x5dee63;logger[_0x4aeec4(0x16c)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x434cd9,_0x4f8c3c,_0x556b02);})['catch'](function(_0x5c5d2c){const _0x535aab=_0x5dee63;logger[_0x535aab(0x16c)](util[_0x535aab(0x170)](_0x5c5d2c,{'showHidden':![],'depth':null}));});});},Migration[a1184_0xd57523(0x16f)][a1184_0xd57523(0x171)]=function(_0x778f56){const _0x9f257c=a1184_0xd57523;this[_0x9f257c(0x162)]['enqueue'](function(){return _0x778f56();});},module[a1184_0xd57523(0x17f)]={'up':function(_0x5ec9a9,_0x3b43ed){return new Promise(function(_0x36075b){const _0x2060c3=a1184_0x474a,_0x4b3d8e=new Migration(_0x5ec9a9);_0x4b3d8e[_0x2060c3(0x175)]('chat_messages',_0x2060c3(0x163),{'type':_0x3b43ed['STRING']}),_0x4b3d8e[_0x2060c3(0x175)](_0x2060c3(0x168),'providerResponse',{'type':_0x3b43ed[_0x2060c3(0x164)]}),_0x4b3d8e[_0x2060c3(0x175)](_0x2060c3(0x180),_0x2060c3(0x163),{'type':_0x3b43ed[_0x2060c3(0x176)]}),_0x4b3d8e[_0x2060c3(0x175)](_0x2060c3(0x180),_0x2060c3(0x15d),{'type':_0x3b43ed[_0x2060c3(0x164)]}),_0x4b3d8e[_0x2060c3(0x175)](_0x2060c3(0x17c),'providerName',{'type':_0x3b43ed[_0x2060c3(0x176)]}),_0x4b3d8e[_0x2060c3(0x175)](_0x2060c3(0x17c),'providerResponse',{'type':_0x3b43ed[_0x2060c3(0x164)]}),_0x4b3d8e['addColumn'](_0x2060c3(0x179),_0x2060c3(0x163),{'type':_0x3b43ed[_0x2060c3(0x176)]}),_0x4b3d8e[_0x2060c3(0x175)](_0x2060c3(0x179),_0x2060c3(0x15d),{'type':_0x3b43ed[_0x2060c3(0x164)]}),_0x4b3d8e[_0x2060c3(0x175)](_0x2060c3(0x165),'providerName',{'type':_0x3b43ed[_0x2060c3(0x176)]}),_0x4b3d8e['addColumn'](_0x2060c3(0x165),'providerResponse',{'type':_0x3b43ed[_0x2060c3(0x164)]}),_0x4b3d8e[_0x2060c3(0x171)](_0x36075b);});},'down':function(){}};
\ No newline at end of file