Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.65.js
index ce6c960..4ed304e 100644 (file)
@@ -1 +1 @@
-const a1105_0x30b3=['then','removeIndex\x20%s\x20%s','UNSIGNED','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(7)','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(0)','CREATE\x20TABLE\x20ints(i\x20int(11)\x20DEFAULT\x20NULL,UNIQUE\x20KEY\x20i_UNIQUE\x20(i))\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8','dropTable','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','join','stringify','INSERT\x20INTO\x20tmp_tools_tags(\x20name,\x20createdAt,\x20updatedAt,\x20contact_id)\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20splitted_tags,\x20CURRENT_TIMESTAMP(),\x20CURRENT_TIMESTAMP()\x20,\x20id\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20(\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20DISTINCT\x20cm.id,\x20cm.tags,\x20TRIM(SUBSTRING_INDEX(SUBSTRING_INDEX(cm.tags,\x20\x27;\x27,\x20i+1),\x27;\x27,-1))\x20splitted_tags\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20ints\x20i,\x20cm_contacts\x20cm\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20cm.tags\x20REGEXP\x20\x27(.*;){1}\x27\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20id)\x20a\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20a.tags\x20IS\x20NOT\x20NULL\x20and\x20splitted_tags\x20<>\x20\x27\x27;','Removed\x20column\x20%s\x20from\x20%s','addIndex\x20%s\x20%s\x20%s','migration','query','changeColumn','renameColumn','cm_contacts','teams','catch','voice_queues','INTEGER','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','removeIndex','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(1)','sequence','removeColumn','enqueue','inspect','exports','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(4)','info','sequelize','prototype','query\x20%s','../config/logger','tail','STRING','table\x20dropped\x20%s','addIndex','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(3)','queryInterface','addColumn','dialCutDigit','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(6)','util','CREATE\x20TABLE\x20`cm_contact_has_tags`\x20(\x20\x20\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`CmContactId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`TagId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`CmContactId`,`TagId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`TagId`\x20(`TagId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`cm_contact_has_tags_ibfk_1`\x20FOREIGN\x20KEY\x20(`CmContactId`)\x20REFERENCES\x20`cm_contacts`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`cm_contact_has_tags_ibfk_2`\x20FOREIGN\x20KEY\x20(`TagId`)\x20REFERENCES\x20`tools_tags`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20)\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(5)','Added\x20column\x20%s\x20to\x20%s','campaigns','dialRandomLastDigitCallerIdNumber','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(8)','final'];(function(_0xdd4af2,_0x1bb5d5){const _0x30b3ae=function(_0x333774){while(--_0x333774){_0xdd4af2['push'](_0xdd4af2['shift']());}};_0x30b3ae(++_0x1bb5d5);}(a1105_0x30b3,0x9b));const a1105_0x3337=function(_0xdd4af2,_0x1bb5d5){_0xdd4af2=_0xdd4af2-0x1c7;let _0x30b3ae=a1105_0x30b3[_0xdd4af2];return _0x30b3ae;};const a1105_0x4134cf=a1105_0x3337;'use strict';const util=require(a1105_0x4134cf(0x1fc)),logger=require(a1105_0x4134cf(0x1f2))(a1105_0x4134cf(0x1db)),Sequence=function(){};Sequence[a1105_0x4134cf(0x1f0)][a1105_0x4134cf(0x1ea)]=function(_0x439e96){const _0x1e5a8d=a1105_0x4134cf;this['tail']=this['tail']?this[_0x1e5a8d(0x1f3)][_0x1e5a8d(0x1e5)](_0x439e96):_0x439e96();};const Migration=function(_0x3060ce){const _0x294495=a1105_0x4134cf;this[_0x294495(0x1f8)]=_0x3060ce,this[_0x294495(0x1e8)]=new Sequence();};Migration[a1105_0x4134cf(0x1f0)]['changeColumn']=function(_0x47a0d6,_0x1b9625,_0x556407){const _0x55ecfa=a1105_0x4134cf,_0x283901=this;this['sequence'][_0x55ecfa(0x1ea)](function(){const _0x5b0e54=_0x55ecfa;return _0x283901[_0x5b0e54(0x1f8)][_0x5b0e54(0x1dd)](_0x47a0d6,_0x1b9625,_0x556407)[_0x5b0e54(0x1ce)](function(){const _0x34edd1=_0x5b0e54;logger[_0x34edd1(0x1ee)](_0x34edd1(0x1e4),_0x1b9625,_0x47a0d6);})[_0x5b0e54(0x1e1)](function(_0x402d6d){logger['info'](JSON['stringify'](_0x402d6d));});});},Migration[a1105_0x4134cf(0x1f0)]['addColumn']=function(_0x424389,_0xfbdbee,_0x4f3fd8){const _0x95572f=a1105_0x4134cf,_0x596880=this;this[_0x95572f(0x1e8)][_0x95572f(0x1ea)](function(){const _0x3c42c5=_0x95572f;return _0x596880['queryInterface']['addColumn'](_0x424389,_0xfbdbee,_0x4f3fd8)[_0x3c42c5(0x1ce)](function(){const _0xa078db=_0x3c42c5;logger[_0xa078db(0x1ee)](_0xa078db(0x1c9),_0xfbdbee,_0x424389);})[_0x3c42c5(0x1e1)](function(_0x199eeb){const _0x54b88a=_0x3c42c5;logger[_0x54b88a(0x1ee)](JSON[_0x54b88a(0x1d7)](_0x199eeb));});});},Migration[a1105_0x4134cf(0x1f0)][a1105_0x4134cf(0x1d4)]=function(_0x51a53c){const _0x1f9849=a1105_0x4134cf,_0x578f8e=this;this[_0x1f9849(0x1e8)]['enqueue'](function(){const _0x5e02a8=_0x1f9849;return _0x578f8e[_0x5e02a8(0x1f8)]['dropTable'](_0x51a53c,{'force':!![]})['then'](function(){const _0x39f312=_0x5e02a8;logger[_0x39f312(0x1ee)](_0x39f312(0x1f5),_0x51a53c);})[_0x5e02a8(0x1e1)](function(_0x1961f3){const _0xfea53e=_0x5e02a8;logger[_0xfea53e(0x1ee)](JSON[_0xfea53e(0x1d7)](_0x1961f3));});});},Migration[a1105_0x4134cf(0x1f0)][a1105_0x4134cf(0x1f6)]=function(_0x30e362,_0x3be410,_0x37870e){const _0x237a08=a1105_0x4134cf,_0x13ae2c=this;this[_0x237a08(0x1e8)][_0x237a08(0x1ea)](function(){const _0x296a49=_0x237a08;return _0x13ae2c[_0x296a49(0x1f8)][_0x296a49(0x1f6)](_0x30e362,_0x3be410,{'indexName':_0x37870e})['then'](function(){const _0x4c3948=_0x296a49;logger['info'](_0x4c3948(0x1da),_0x30e362,_0x3be410[_0x4c3948(0x1d6)](','),_0x37870e);})['catch'](function(_0x102aeb){const _0x15e631=_0x296a49;logger['info'](JSON[_0x15e631(0x1d7)](_0x102aeb));});});},Migration[a1105_0x4134cf(0x1f0)][a1105_0x4134cf(0x1e6)]=function(_0x5043ba,_0x1204e4){const _0x11e436=a1105_0x4134cf,_0x286037=this;this[_0x11e436(0x1e8)][_0x11e436(0x1ea)](function(){const _0x5a4469=_0x11e436;return _0x286037[_0x5a4469(0x1f8)][_0x5a4469(0x1e6)](_0x5043ba,_0x1204e4)[_0x5a4469(0x1ce)](function(){const _0x5ef9e=_0x5a4469;logger[_0x5ef9e(0x1ee)](_0x5ef9e(0x1cf),_0x5043ba,_0x1204e4);})[_0x5a4469(0x1e1)](function(_0x5352b3){const _0x8f7243=_0x5a4469;logger[_0x8f7243(0x1ee)](JSON['stringify'](_0x5352b3));});});},Migration[a1105_0x4134cf(0x1f0)][a1105_0x4134cf(0x1dc)]=function(_0x4f2ead){const _0x23434a=a1105_0x4134cf,_0x2b2ff0=this;this[_0x23434a(0x1e8)][_0x23434a(0x1ea)](function(){const _0x1ef557=_0x23434a;return _0x2b2ff0['queryInterface'][_0x1ef557(0x1ef)][_0x1ef557(0x1dc)](_0x4f2ead)[_0x1ef557(0x1ce)](function(){const _0x3cc3c0=_0x1ef557;logger[_0x3cc3c0(0x1ee)](_0x3cc3c0(0x1f1),_0x4f2ead);})[_0x1ef557(0x1e1)](function(_0x34a3fa){const _0x54e633=_0x1ef557;logger[_0x54e633(0x1ee)](JSON[_0x54e633(0x1d7)](_0x34a3fa));});});},Migration[a1105_0x4134cf(0x1f0)][a1105_0x4134cf(0x1e9)]=function(_0xac07f4,_0x23c358){const _0x12fae1=a1105_0x4134cf,_0x5639d2=this;this['sequence'][_0x12fae1(0x1ea)](function(){const _0xf0950a=_0x12fae1;return _0x5639d2[_0xf0950a(0x1f8)][_0xf0950a(0x1e9)](_0xac07f4,_0x23c358)[_0xf0950a(0x1ce)](function(){const _0x2f0965=_0xf0950a;logger[_0x2f0965(0x1ee)](_0x2f0965(0x1d9),_0x23c358,_0xac07f4);})[_0xf0950a(0x1e1)](function(_0x49c0b5){const _0x25f287=_0xf0950a;logger[_0x25f287(0x1ee)](util[_0x25f287(0x1eb)](_0x49c0b5,{'showHidden':![],'depth':null}));});});},Migration[a1105_0x4134cf(0x1f0)]['renameColumn']=function(_0x48f728,_0x10add6,_0x2cd435){const _0x3a7c88=a1105_0x4134cf,_0x3baa3c=this;this[_0x3a7c88(0x1e8)][_0x3a7c88(0x1ea)](function(){const _0x55b34a=_0x3a7c88;return _0x3baa3c['queryInterface'][_0x55b34a(0x1de)](_0x48f728,_0x10add6,_0x2cd435)[_0x55b34a(0x1ce)](function(){const _0x4cb456=_0x55b34a;logger[_0x4cb456(0x1ee)](_0x4cb456(0x1d5),_0x10add6,_0x2cd435,_0x48f728);})['catch'](function(_0x106701){const _0x3d8084=_0x55b34a;logger[_0x3d8084(0x1ee)](util[_0x3d8084(0x1eb)](_0x106701,{'showHidden':![],'depth':null}));});});},Migration[a1105_0x4134cf(0x1f0)][a1105_0x4134cf(0x1cd)]=function(_0x3db156){const _0x388828=a1105_0x4134cf;this[_0x388828(0x1e8)][_0x388828(0x1ea)](function(){return _0x3db156();});},module[a1105_0x4134cf(0x1ec)]={'up':function(_0x1706c1,_0x5036df){return new Promise(function(_0x398b24){const _0x36cc8f=a1105_0x3337,_0x57d37b=new Migration(_0x1706c1);_0x57d37b[_0x36cc8f(0x1f9)](_0x36cc8f(0x1e2),_0x36cc8f(0x1cb),{'type':_0x5036df[_0x36cc8f(0x1e3)](0x3)[_0x36cc8f(0x1d0)],'defaultValue':0x0}),_0x57d37b[_0x36cc8f(0x1f9)](_0x36cc8f(0x1e2),_0x36cc8f(0x1fa),{'type':_0x5036df['INTEGER'](0x3)['UNSIGNED'],'defaultValue':0x0}),_0x57d37b[_0x36cc8f(0x1f9)](_0x36cc8f(0x1ca),_0x36cc8f(0x1cb),{'type':_0x5036df[_0x36cc8f(0x1e3)](0x3)[_0x36cc8f(0x1d0)],'defaultValue':0x0}),_0x57d37b[_0x36cc8f(0x1f9)](_0x36cc8f(0x1ca),'dialCutDigit',{'type':_0x5036df[_0x36cc8f(0x1e3)](0x3)[_0x36cc8f(0x1d0)],'defaultValue':0x0}),_0x57d37b[_0x36cc8f(0x1f9)](_0x36cc8f(0x1df),_0x36cc8f(0x1e0),{'type':_0x5036df[_0x36cc8f(0x1f4)]}),_0x57d37b[_0x36cc8f(0x1dc)](_0x36cc8f(0x1c7)),_0x57d37b[_0x36cc8f(0x1dc)]('CREATE\x20TABLE\x20`tmp_tools_tags`\x20(\x20\x20\x20\x20\x20\x20\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,\x20\x20\x20\x20\x20\x20\x20\x20\x20`name`\x20varchar(255)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`color`\x20varchar(255)\x20DEFAULT\x20\x27#0091EA\x27,\x20\x20\x20\x20\x20\x20\x20\x20\x20`description`\x20varchar(255)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`id`))\x20ENGINE=InnoDB\x20CHARSET=utf8;'),_0x57d37b[_0x36cc8f(0x1dc)](_0x36cc8f(0x1d3)),_0x57d37b['query'](_0x36cc8f(0x1d2)),_0x57d37b[_0x36cc8f(0x1dc)](_0x36cc8f(0x1e7)),_0x57d37b[_0x36cc8f(0x1dc)]('INSERT\x20INTO\x20ints(i)\x20VALUES\x20(2)'),_0x57d37b[_0x36cc8f(0x1dc)](_0x36cc8f(0x1f7)),_0x57d37b[_0x36cc8f(0x1dc)](_0x36cc8f(0x1ed)),_0x57d37b[_0x36cc8f(0x1dc)](_0x36cc8f(0x1c8)),_0x57d37b[_0x36cc8f(0x1dc)](_0x36cc8f(0x1fb)),_0x57d37b['query'](_0x36cc8f(0x1d1)),_0x57d37b[_0x36cc8f(0x1dc)](_0x36cc8f(0x1cc)),_0x57d37b[_0x36cc8f(0x1dc)]('INSERT\x20INTO\x20ints(i)\x20VALUES\x20(9)'),_0x57d37b[_0x36cc8f(0x1dc)]('ALTER\x20TABLE\x20tmp_tools_tags\x20ADD\x20COLUMN\x20contact_id\x20INT\x20NULL'),_0x57d37b['query'](_0x36cc8f(0x1d8)),_0x57d37b[_0x36cc8f(0x1dc)]('INSERT\x20INTO\x20cm_contact_has_tags(createdAt,\x20updatedAt,\x20`CmContactId`,\x20`TagId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20\x20NOW(),\x20NOW(),\x20tmt.contact_id,\x20tt.id\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tmp_tools_tags\x20tmt\x20\x20\x20\x20\x20\x20\x20\x20\x20JOIN\x20tools_tags\x20tt\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20tmt.name\x20=\x20tt.name;'),_0x57d37b['final'](_0x398b24);});},'down':function(){}};
\ No newline at end of file
+const a1108_0x12e5=['INSERT\x20INTO\x20ints(i)\x20VALUES\x20(1)','then','addIndex','prototype','sequence','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s','dialCutDigit','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','INSERT\x20INTO\x20cm_contact_has_tags(createdAt,\x20updatedAt,\x20`CmContactId`,\x20`TagId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20\x20NOW(),\x20NOW(),\x20tmt.contact_id,\x20tt.id\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tmp_tools_tags\x20tmt\x20\x20\x20\x20\x20\x20\x20\x20\x20JOIN\x20tools_tags\x20tt\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20tmt.name\x20=\x20tt.name;','tail','removeIndex\x20%s\x20%s','query','migration','voice_queues','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(4)','queryInterface','addIndex\x20%s\x20%s\x20%s','finally','query\x20%s','join','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(7)','dialRandomLastDigitCallerIdNumber','STRING','exports','addColumn','../config/logger','catch','Removed\x20column\x20%s\x20from\x20%s','inspect','util','Added\x20column\x20%s\x20to\x20%s','ALTER\x20TABLE\x20tmp_tools_tags\x20ADD\x20COLUMN\x20contact_id\x20INT\x20NULL','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(6)','final','CREATE\x20TABLE\x20`tmp_tools_tags`\x20(\x20\x20\x20\x20\x20\x20\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,\x20\x20\x20\x20\x20\x20\x20\x20\x20`name`\x20varchar(255)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`color`\x20varchar(255)\x20DEFAULT\x20\x27#0091EA\x27,\x20\x20\x20\x20\x20\x20\x20\x20\x20`description`\x20varchar(255)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`id`))\x20ENGINE=InnoDB\x20CHARSET=utf8;','CREATE\x20TABLE\x20`cm_contact_has_tags`\x20(\x20\x20\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`CmContactId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`TagId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`CmContactId`,`TagId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`TagId`\x20(`TagId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`cm_contact_has_tags_ibfk_1`\x20FOREIGN\x20KEY\x20(`CmContactId`)\x20REFERENCES\x20`cm_contacts`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`cm_contact_has_tags_ibfk_2`\x20FOREIGN\x20KEY\x20(`TagId`)\x20REFERENCES\x20`tools_tags`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20)\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(0)','cm_contacts','renameColumn','UNSIGNED','removeIndex','INSERT\x20INTO\x20tmp_tools_tags(\x20name,\x20createdAt,\x20updatedAt,\x20contact_id)\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20splitted_tags,\x20CURRENT_TIMESTAMP(),\x20CURRENT_TIMESTAMP()\x20,\x20id\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20(\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20DISTINCT\x20cm.id,\x20cm.tags,\x20TRIM(SUBSTRING_INDEX(SUBSTRING_INDEX(cm.tags,\x20\x27;\x27,\x20i+1),\x27;\x27,-1))\x20splitted_tags\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20ints\x20i,\x20cm_contacts\x20cm\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20cm.tags\x20REGEXP\x20\x27(.*;){1}\x27\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20id)\x20a\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20a.tags\x20IS\x20NOT\x20NULL\x20and\x20splitted_tags\x20<>\x20\x27\x27;','campaigns','stringify','removeColumn','dropTable','enqueue','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(9)','table\x20dropped\x20%s','INTEGER','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(3)','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(8)'];(function(_0x4ba331,_0x49c2ea){const _0x12e5de=function(_0x38b017){while(--_0x38b017){_0x4ba331['push'](_0x4ba331['shift']());}};_0x12e5de(++_0x49c2ea);}(a1108_0x12e5,0x70));const a1108_0x38b0=function(_0x4ba331,_0x49c2ea){_0x4ba331=_0x4ba331-0xbd;let _0x12e5de=a1108_0x12e5[_0x4ba331];return _0x12e5de;};const a1108_0x14701f=a1108_0x38b0;'use strict';const util=require(a1108_0x14701f(0xd8)),logger=require(a1108_0x14701f(0xd4))(a1108_0x14701f(0xc7)),Sequence=function(){};Sequence[a1108_0x14701f(0xf2)][a1108_0x14701f(0xe9)]=function(_0x32b2d9){const _0x5b7e43=a1108_0x14701f;this[_0x5b7e43(0xc4)]=this[_0x5b7e43(0xc4)]?this[_0x5b7e43(0xc4)][_0x5b7e43(0xcc)](_0x32b2d9):_0x32b2d9();};const Migration=function(_0x164db9){const _0xca71ea=a1108_0x14701f;this['queryInterface']=_0x164db9,this[_0xca71ea(0xbd)]=new Sequence();};Migration[a1108_0x14701f(0xf2)]['changeColumn']=function(_0xffca3e,_0x8bdf9b,_0x5500f9){const _0x1df4d3=a1108_0x14701f,_0x1d6e6b=this;this[_0x1df4d3(0xbd)][_0x1df4d3(0xe9)](function(){const _0x5e463f=_0x1df4d3;return _0x1d6e6b[_0x5e463f(0xca)]['changeColumn'](_0xffca3e,_0x8bdf9b,_0x5500f9)[_0x5e463f(0xf0)](function(){const _0x91bc60=_0x5e463f;logger['info'](_0x91bc60(0xbf),_0x8bdf9b,_0xffca3e);})[_0x5e463f(0xd5)](function(_0x18ec2e){const _0x5804a4=_0x5e463f;logger[_0x5804a4(0xc2)](JSON[_0x5804a4(0xe6)](_0x18ec2e));});});},Migration[a1108_0x14701f(0xf2)]['addColumn']=function(_0x11db92,_0x19a233,_0x3a0616){const _0x2e0105=a1108_0x14701f,_0x1356ce=this;this['sequence'][_0x2e0105(0xe9)](function(){const _0x20f14b=_0x2e0105;return _0x1356ce['queryInterface']['addColumn'](_0x11db92,_0x19a233,_0x3a0616)['then'](function(){const _0x257872=a1108_0x38b0;logger['info'](_0x257872(0xd9),_0x19a233,_0x11db92);})[_0x20f14b(0xd5)](function(_0x178016){const _0x2664a2=_0x20f14b;logger['info'](JSON[_0x2664a2(0xe6)](_0x178016));});});},Migration[a1108_0x14701f(0xf2)][a1108_0x14701f(0xe8)]=function(_0x29cfaf){const _0x56a299=a1108_0x14701f,_0x365138=this;this[_0x56a299(0xbd)][_0x56a299(0xe9)](function(){const _0x157f50=_0x56a299;return _0x365138['queryInterface'][_0x157f50(0xe8)](_0x29cfaf,{'force':!![]})[_0x157f50(0xf0)](function(){const _0x73dfc7=_0x157f50;logger['info'](_0x73dfc7(0xeb),_0x29cfaf);})['catch'](function(_0x5dd002){const _0x3e6f13=_0x157f50;logger[_0x3e6f13(0xc2)](JSON['stringify'](_0x5dd002));});});},Migration['prototype'][a1108_0x14701f(0xf1)]=function(_0x55c446,_0x44c91b,_0x2f5f8a){const _0x2b93af=a1108_0x14701f,_0x2b8991=this;this['sequence'][_0x2b93af(0xe9)](function(){const _0x36d7b4=_0x2b93af;return _0x2b8991[_0x36d7b4(0xca)][_0x36d7b4(0xf1)](_0x55c446,_0x44c91b,{'indexName':_0x2f5f8a})['then'](function(){const _0xd5e3d9=_0x36d7b4;logger[_0xd5e3d9(0xc2)](_0xd5e3d9(0xcb),_0x55c446,_0x44c91b[_0xd5e3d9(0xce)](','),_0x2f5f8a);})[_0x36d7b4(0xd5)](function(_0x4ce627){const _0xb09a01=_0x36d7b4;logger[_0xb09a01(0xc2)](JSON[_0xb09a01(0xe6)](_0x4ce627));});});},Migration['prototype'][a1108_0x14701f(0xe3)]=function(_0x20ade0,_0x3146a8){const _0x45ddb0=a1108_0x14701f,_0x2c96fe=this;this[_0x45ddb0(0xbd)][_0x45ddb0(0xe9)](function(){const _0x3ddd26=_0x45ddb0;return _0x2c96fe[_0x3ddd26(0xca)][_0x3ddd26(0xe3)](_0x20ade0,_0x3146a8)[_0x3ddd26(0xf0)](function(){const _0x2bb985=_0x3ddd26;logger[_0x2bb985(0xc2)](_0x2bb985(0xc5),_0x20ade0,_0x3146a8);})[_0x3ddd26(0xd5)](function(_0x57c900){const _0x318e80=_0x3ddd26;logger[_0x318e80(0xc2)](JSON[_0x318e80(0xe6)](_0x57c900));});});},Migration[a1108_0x14701f(0xf2)][a1108_0x14701f(0xc6)]=function(_0x43dcb1){const _0x5f4773=a1108_0x14701f,_0x59b8c6=this;this[_0x5f4773(0xbd)][_0x5f4773(0xe9)](function(){const _0x5982ab=_0x5f4773;return _0x59b8c6[_0x5982ab(0xca)][_0x5982ab(0xbe)][_0x5982ab(0xc6)](_0x43dcb1)[_0x5982ab(0xf0)](function(){const _0x4c041e=_0x5982ab;logger['info'](_0x4c041e(0xcd),_0x43dcb1);})[_0x5982ab(0xd5)](function(_0x8be2c2){const _0x58e7fb=_0x5982ab;logger[_0x58e7fb(0xc2)](JSON[_0x58e7fb(0xe6)](_0x8be2c2));});});},Migration['prototype']['removeColumn']=function(_0x19d6f5,_0x32b19b){const _0x2a5833=a1108_0x14701f,_0x369eff=this;this[_0x2a5833(0xbd)][_0x2a5833(0xe9)](function(){const _0x59b605=_0x2a5833;return _0x369eff[_0x59b605(0xca)][_0x59b605(0xe7)](_0x19d6f5,_0x32b19b)['then'](function(){const _0x454bfb=_0x59b605;logger['info'](_0x454bfb(0xd6),_0x32b19b,_0x19d6f5);})[_0x59b605(0xd5)](function(_0x17b107){const _0xbce291=_0x59b605;logger['info'](util[_0xbce291(0xd7)](_0x17b107,{'showHidden':![],'depth':null}));});});},Migration[a1108_0x14701f(0xf2)][a1108_0x14701f(0xe1)]=function(_0x429368,_0x4f3b7b,_0x23ef82){const _0x415f19=a1108_0x14701f,_0x4513ea=this;this[_0x415f19(0xbd)][_0x415f19(0xe9)](function(){const _0x104571=_0x415f19;return _0x4513ea[_0x104571(0xca)][_0x104571(0xe1)](_0x429368,_0x4f3b7b,_0x23ef82)[_0x104571(0xf0)](function(){const _0x176e44=_0x104571;logger['info'](_0x176e44(0xc1),_0x4f3b7b,_0x23ef82,_0x429368);})[_0x104571(0xd5)](function(_0x295a76){const _0x25adb6=_0x104571;logger['info'](util[_0x25adb6(0xd7)](_0x295a76,{'showHidden':![],'depth':null}));});});},Migration[a1108_0x14701f(0xf2)][a1108_0x14701f(0xdc)]=function(_0x296595){const _0x356843=a1108_0x14701f;this[_0x356843(0xbd)][_0x356843(0xe9)](function(){return _0x296595();});},module[a1108_0x14701f(0xd2)]={'up':function(_0xbaa1a0,_0x43b698){return new Promise(function(_0x10c39e){const _0x24ad40=a1108_0x38b0,_0x10c12b=new Migration(_0xbaa1a0);_0x10c12b[_0x24ad40(0xd3)](_0x24ad40(0xc8),_0x24ad40(0xd0),{'type':_0x43b698[_0x24ad40(0xec)](0x3)[_0x24ad40(0xe2)],'defaultValue':0x0}),_0x10c12b[_0x24ad40(0xd3)](_0x24ad40(0xc8),_0x24ad40(0xc0),{'type':_0x43b698[_0x24ad40(0xec)](0x3)[_0x24ad40(0xe2)],'defaultValue':0x0}),_0x10c12b[_0x24ad40(0xd3)](_0x24ad40(0xe5),_0x24ad40(0xd0),{'type':_0x43b698[_0x24ad40(0xec)](0x3)[_0x24ad40(0xe2)],'defaultValue':0x0}),_0x10c12b[_0x24ad40(0xd3)](_0x24ad40(0xe5),_0x24ad40(0xc0),{'type':_0x43b698[_0x24ad40(0xec)](0x3)[_0x24ad40(0xe2)],'defaultValue':0x0}),_0x10c12b['addColumn'](_0x24ad40(0xe0),'teams',{'type':_0x43b698[_0x24ad40(0xd1)]}),_0x10c12b['query'](_0x24ad40(0xde)),_0x10c12b[_0x24ad40(0xc6)](_0x24ad40(0xdd)),_0x10c12b[_0x24ad40(0xc6)]('CREATE\x20TABLE\x20ints(i\x20int(11)\x20DEFAULT\x20NULL,UNIQUE\x20KEY\x20i_UNIQUE\x20(i))\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8'),_0x10c12b[_0x24ad40(0xc6)](_0x24ad40(0xdf)),_0x10c12b[_0x24ad40(0xc6)](_0x24ad40(0xef)),_0x10c12b[_0x24ad40(0xc6)]('INSERT\x20INTO\x20ints(i)\x20VALUES\x20(2)'),_0x10c12b[_0x24ad40(0xc6)](_0x24ad40(0xed)),_0x10c12b[_0x24ad40(0xc6)](_0x24ad40(0xc9)),_0x10c12b['query']('INSERT\x20INTO\x20ints(i)\x20VALUES\x20(5)'),_0x10c12b[_0x24ad40(0xc6)](_0x24ad40(0xdb)),_0x10c12b[_0x24ad40(0xc6)](_0x24ad40(0xcf)),_0x10c12b[_0x24ad40(0xc6)](_0x24ad40(0xee)),_0x10c12b['query'](_0x24ad40(0xea)),_0x10c12b[_0x24ad40(0xc6)](_0x24ad40(0xda)),_0x10c12b[_0x24ad40(0xc6)](_0x24ad40(0xe4)),_0x10c12b[_0x24ad40(0xc6)](_0x24ad40(0xc3)),_0x10c12b['final'](_0x10c39e);});},'down':function(){}};
\ No newline at end of file