Built motion from commit c49361c37b5f784889c8087ac6e0e91b7e6b561a. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.97.js
1 const a989_0x411b=['addColumn','UNSIGNED','ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20updatedAt\x20datetime\x20NOT\x20NULL\x20DEFAULT\x20CURRENT_TIMESTAMP\x20AFTER\x20createdAt','dropTable','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','inspect','removeIndex','query','Changed\x20column\x20%s\x20in\x20table\x20%s','migration','../config/logger','util','addIndex\x20%s\x20%s\x20%s','ALTER\x20TABLE\x20migrations\x20DROP\x20PRIMARY\x20KEY','INTEGER','table\x20dropped\x20%s','final','query\x20%s','dialPredictiveIntervalMaxThreshold','prototype','sequelize','renameColumn','sequence','removeColumn','changeColumn','enqueue','addIndex','voice_queues','info','ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20id\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT\x20PRIMARY\x20KEY\x20FIRST','dialPredictiveIntervalMinThreshold','removeIndex\x20%s\x20%s','catch','finally','join','queryInterface','tail','exports','Removed\x20column\x20%s\x20from\x20%s','then','stringify'];(function(_0x334006,_0x411bad){const _0x2964e4=function(_0x56900b){while(--_0x56900b){_0x334006['push'](_0x334006['shift']());}};_0x2964e4(++_0x411bad);}(a989_0x411b,0x1ce));const a989_0x2964=function(_0x334006,_0x411bad){_0x334006=_0x334006-0x0;let _0x2964e4=a989_0x411b[_0x334006];return _0x2964e4;};const _0x503c60=a989_0x2964;'use strict';const util=require(_0x503c60('0x0')),logger=require(_0x503c60('0x28'))(_0x503c60('0x27')),Sequence=function(){};Sequence['prototype'][_0x503c60('0xe')]=function(_0x56900b){const _0xaaebc8=_0x503c60;this[_0xaaebc8('0x19')]=this[_0xaaebc8('0x19')]?this[_0xaaebc8('0x19')][_0xaaebc8('0x16')](_0x56900b):_0x56900b();};const Migration=function(_0x4bf62e){this['queryInterface']=_0x4bf62e,this['sequence']=new Sequence();};Migration[_0x503c60('0x8')][_0x503c60('0xd')]=function(_0x49df08,_0x5929f6,_0x5a51e9){const _0x35ebaf=this;this['sequence']['enqueue'](function(){const _0x57f21f=a989_0x2964;return _0x35ebaf[_0x57f21f('0x18')]['changeColumn'](_0x49df08,_0x5929f6,_0x5a51e9)[_0x57f21f('0x1c')](function(){const _0x5c7391=_0x57f21f;logger[_0x5c7391('0x11')](_0x5c7391('0x26'),_0x5929f6,_0x49df08);})[_0x57f21f('0x15')](function(_0x32a393){const _0x5e2adb=_0x57f21f;logger[_0x5e2adb('0x11')](JSON['stringify'](_0x32a393));});});},Migration[_0x503c60('0x8')][_0x503c60('0x1e')]=function(_0x5047c4,_0xf276eb,_0x2e7dab){const _0x2f4490=_0x503c60,_0x496382=this;this[_0x2f4490('0xb')][_0x2f4490('0xe')](function(){const _0x3c1094=_0x2f4490;return _0x496382[_0x3c1094('0x18')][_0x3c1094('0x1e')](_0x5047c4,_0xf276eb,_0x2e7dab)[_0x3c1094('0x1c')](function(){const _0x5c421f=_0x3c1094;logger[_0x5c421f('0x11')]('Added\x20column\x20%s\x20to\x20%s',_0xf276eb,_0x5047c4);})[_0x3c1094('0x15')](function(_0xb07617){const _0x1d901e=_0x3c1094;logger[_0x1d901e('0x11')](JSON[_0x1d901e('0x1d')](_0xb07617));});});},Migration['prototype']['dropTable']=function(_0x1d3122){const _0x164310=_0x503c60,_0x2b4556=this;this['sequence'][_0x164310('0xe')](function(){const _0x1b47e5=_0x164310;return _0x2b4556[_0x1b47e5('0x18')][_0x1b47e5('0x21')](_0x1d3122,{'force':!![]})[_0x1b47e5('0x1c')](function(){const _0x544e0a=_0x1b47e5;logger[_0x544e0a('0x11')](_0x544e0a('0x4'),_0x1d3122);})[_0x1b47e5('0x15')](function(_0x4b3772){const _0x30c5a2=_0x1b47e5;logger['info'](JSON[_0x30c5a2('0x1d')](_0x4b3772));});});},Migration[_0x503c60('0x8')]['addIndex']=function(_0x1d635c,_0x506ae1,_0x3ddec7){const _0x182563=_0x503c60,_0x122fe0=this;this[_0x182563('0xb')][_0x182563('0xe')](function(){const _0x3df197=_0x182563;return _0x122fe0[_0x3df197('0x18')][_0x3df197('0xf')](_0x1d635c,_0x506ae1,{'indexName':_0x3ddec7})[_0x3df197('0x1c')](function(){const _0x4149de=_0x3df197;logger[_0x4149de('0x11')](_0x4149de('0x1'),_0x1d635c,_0x506ae1[_0x4149de('0x17')](','),_0x3ddec7);})['catch'](function(_0x437959){const _0x1bf384=_0x3df197;logger[_0x1bf384('0x11')](JSON[_0x1bf384('0x1d')](_0x437959));});});},Migration[_0x503c60('0x8')][_0x503c60('0x24')]=function(_0x31d964,_0x45be32){const _0x33aa6b=_0x503c60,_0x46f66b=this;this[_0x33aa6b('0xb')][_0x33aa6b('0xe')](function(){const _0x15c5fe=_0x33aa6b;return _0x46f66b[_0x15c5fe('0x18')]['removeIndex'](_0x31d964,_0x45be32)[_0x15c5fe('0x1c')](function(){const _0x235194=_0x15c5fe;logger[_0x235194('0x11')](_0x235194('0x14'),_0x31d964,_0x45be32);})[_0x15c5fe('0x15')](function(_0x16e369){const _0xe93c6a=_0x15c5fe;logger[_0xe93c6a('0x11')](JSON['stringify'](_0x16e369));});});},Migration['prototype']['query']=function(_0xdb1e14){const _0x2d2412=_0x503c60,_0x30c03f=this;this[_0x2d2412('0xb')][_0x2d2412('0xe')](function(){const _0x43abe1=_0x2d2412;return _0x30c03f[_0x43abe1('0x18')][_0x43abe1('0x9')][_0x43abe1('0x25')](_0xdb1e14)[_0x43abe1('0x1c')](function(){const _0x135b5a=_0x43abe1;logger[_0x135b5a('0x11')](_0x135b5a('0x6'),_0xdb1e14);})['catch'](function(_0x266b03){logger['info'](JSON['stringify'](_0x266b03));});});},Migration[_0x503c60('0x8')]['removeColumn']=function(_0xf49a8c,_0x386552){const _0x112d69=_0x503c60,_0x2e5c7c=this;this[_0x112d69('0xb')]['enqueue'](function(){const _0x5b7500=_0x112d69;return _0x2e5c7c[_0x5b7500('0x18')][_0x5b7500('0xc')](_0xf49a8c,_0x386552)[_0x5b7500('0x1c')](function(){const _0x5e148d=_0x5b7500;logger[_0x5e148d('0x11')](_0x5e148d('0x1b'),_0x386552,_0xf49a8c);})[_0x5b7500('0x15')](function(_0x444808){const _0x5a7300=_0x5b7500;logger['info'](util[_0x5a7300('0x23')](_0x444808,{'showHidden':![],'depth':null}));});});},Migration[_0x503c60('0x8')][_0x503c60('0xa')]=function(_0x70c6f1,_0xa2457d,_0x282173){const _0x1c758d=_0x503c60,_0x327a07=this;this[_0x1c758d('0xb')]['enqueue'](function(){const _0xa66ef=_0x1c758d;return _0x327a07[_0xa66ef('0x18')]['renameColumn'](_0x70c6f1,_0xa2457d,_0x282173)[_0xa66ef('0x1c')](function(){const _0x1bb55d=_0xa66ef;logger[_0x1bb55d('0x11')](_0x1bb55d('0x22'),_0xa2457d,_0x282173,_0x70c6f1);})[_0xa66ef('0x15')](function(_0x4bfc51){const _0x463808=_0xa66ef;logger[_0x463808('0x11')](util[_0x463808('0x23')](_0x4bfc51,{'showHidden':![],'depth':null}));});});},Migration[_0x503c60('0x8')][_0x503c60('0x5')]=function(_0xf6ce3b){const _0x330506=_0x503c60;this['sequence'][_0x330506('0xe')](function(){return _0xf6ce3b();});},module[_0x503c60('0x1a')]={'up':function(_0x8a62fb,_0x179854){return new Promise(function(_0x336a61){const _0x299a50=a989_0x2964,_0x317113=new Migration(_0x8a62fb);_0x317113[_0x299a50('0x1e')](_0x299a50('0x10'),_0x299a50('0x7'),{'type':_0x179854[_0x299a50('0x3')](0x3)[_0x299a50('0x1f')],'defaultValue':0x14}),_0x317113[_0x299a50('0x1e')](_0x299a50('0x10'),_0x299a50('0x13'),{'type':_0x179854['INTEGER'](0x3)['UNSIGNED'],'defaultValue':0xa}),_0x317113[_0x299a50('0x25')](_0x299a50('0x2')),_0x317113[_0x299a50('0x25')]('ALTER\x20TABLE\x20migrations\x20MODIFY\x20COLUMN\x20version\x20varchar(255)\x20NOT\x20NULL\x20UNIQUE'),_0x317113[_0x299a50('0x25')](_0x299a50('0x12')),_0x317113[_0x299a50('0x25')]('ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20createdAt\x20datetime\x20NOT\x20NULL\x20DEFAULT\x20CURRENT_TIMESTAMP\x20AFTER\x20version'),_0x317113[_0x299a50('0x25')](_0x299a50('0x20')),_0x317113[_0x299a50('0x5')](_0x336a61);});},'down':function(){}};