Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.97.js
1 const a989_0x4e37=['Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex\x20%s\x20%s','ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20id\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT\x20PRIMARY\x20KEY\x20FIRST','addColumn','Removed\x20column\x20%s\x20from\x20%s','table\x20dropped\x20%s','catch','removeColumn','migration','final','../config/logger','dialPredictiveIntervalMaxThreshold','Added\x20column\x20%s\x20to\x20%s','dropTable','util','finally','ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20updatedAt\x20datetime\x20NOT\x20NULL\x20DEFAULT\x20CURRENT_TIMESTAMP\x20AFTER\x20createdAt','then','ALTER\x20TABLE\x20migrations\x20MODIFY\x20COLUMN\x20version\x20varchar(255)\x20NOT\x20NULL\x20UNIQUE','addIndex','queryInterface','join','sequelize','changeColumn','addIndex\x20%s\x20%s\x20%s','inspect','prototype','UNSIGNED','stringify','removeIndex','info','query','enqueue','renameColumn','sequence','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20createdAt\x20datetime\x20NOT\x20NULL\x20DEFAULT\x20CURRENT_TIMESTAMP\x20AFTER\x20version','exports','INTEGER','tail'];(function(_0x4d62c8,_0x4e3786){const _0x516531=function(_0x425121){while(--_0x425121){_0x4d62c8['push'](_0x4d62c8['shift']());}};_0x516531(++_0x4e3786);}(a989_0x4e37,0x19a));const a989_0x5165=function(_0x4d62c8,_0x4e3786){_0x4d62c8=_0x4d62c8-0x0;let _0x516531=a989_0x4e37[_0x4d62c8];return _0x516531;};const _0x5b3b9d=a989_0x5165;'use strict';const util=require(_0x5b3b9d('0x4')),logger=require(_0x5b3b9d('0x0'))(_0x5b3b9d('0x26')),Sequence=function(){};Sequence[_0x5b3b9d('0x10')][_0x5b3b9d('0x16')]=function(_0x425121){const _0x206289=_0x5b3b9d;this[_0x206289('0x1d')]=this[_0x206289('0x1d')]?this[_0x206289('0x1d')][_0x206289('0x5')](_0x425121):_0x425121();};const Migration=function(_0x58a2c2){const _0xb44734=_0x5b3b9d;this[_0xb44734('0xa')]=_0x58a2c2,this['sequence']=new Sequence();};Migration[_0x5b3b9d('0x10')][_0x5b3b9d('0xd')]=function(_0x559755,_0x11bfef,_0x590bdd){const _0x409685=_0x5b3b9d,_0x50e296=this;this[_0x409685('0x18')]['enqueue'](function(){const _0xfa3669=_0x409685;return _0x50e296[_0xfa3669('0xa')]['changeColumn'](_0x559755,_0x11bfef,_0x590bdd)[_0xfa3669('0x7')](function(){const _0x2a8482=_0xfa3669;logger[_0x2a8482('0x14')](_0x2a8482('0x1e'),_0x11bfef,_0x559755);})[_0xfa3669('0x24')](function(_0x31ef7d){const _0x5d3ebd=_0xfa3669;logger[_0x5d3ebd('0x14')](JSON[_0x5d3ebd('0x12')](_0x31ef7d));});});},Migration[_0x5b3b9d('0x10')][_0x5b3b9d('0x21')]=function(_0x4bf244,_0x15f9ac,_0x20e17f){const _0x443e98=_0x5b3b9d,_0x1b9c45=this;this[_0x443e98('0x18')][_0x443e98('0x16')](function(){const _0x518cba=_0x443e98;return _0x1b9c45[_0x518cba('0xa')][_0x518cba('0x21')](_0x4bf244,_0x15f9ac,_0x20e17f)[_0x518cba('0x7')](function(){const _0x58e81c=_0x518cba;logger[_0x58e81c('0x14')](_0x58e81c('0x2'),_0x15f9ac,_0x4bf244);})[_0x518cba('0x24')](function(_0x52fa25){const _0x25978d=_0x518cba;logger[_0x25978d('0x14')](JSON['stringify'](_0x52fa25));});});},Migration['prototype'][_0x5b3b9d('0x3')]=function(_0x479458){const _0x91240c=_0x5b3b9d,_0x37f55a=this;this['sequence'][_0x91240c('0x16')](function(){const _0x506340=_0x91240c;return _0x37f55a[_0x506340('0xa')][_0x506340('0x3')](_0x479458,{'force':!![]})[_0x506340('0x7')](function(){const _0x13669a=_0x506340;logger[_0x13669a('0x14')](_0x13669a('0x23'),_0x479458);})[_0x506340('0x24')](function(_0x594ef8){const _0x485afd=_0x506340;logger['info'](JSON[_0x485afd('0x12')](_0x594ef8));});});},Migration[_0x5b3b9d('0x10')]['addIndex']=function(_0x4f0352,_0x13959e,_0x6b6e42){const _0x4dac17=_0x5b3b9d,_0x4f77a7=this;this['sequence'][_0x4dac17('0x16')](function(){const _0x21a5ed=_0x4dac17;return _0x4f77a7[_0x21a5ed('0xa')][_0x21a5ed('0x9')](_0x4f0352,_0x13959e,{'indexName':_0x6b6e42})['then'](function(){const _0x5efcf3=_0x21a5ed;logger[_0x5efcf3('0x14')](_0x5efcf3('0xe'),_0x4f0352,_0x13959e[_0x5efcf3('0xb')](','),_0x6b6e42);})[_0x21a5ed('0x24')](function(_0x2c6ecc){const _0x51da5f=_0x21a5ed;logger[_0x51da5f('0x14')](JSON[_0x51da5f('0x12')](_0x2c6ecc));});});},Migration[_0x5b3b9d('0x10')][_0x5b3b9d('0x13')]=function(_0x390ab0,_0x112710){const _0x2f0ebe=_0x5b3b9d,_0x5d514a=this;this[_0x2f0ebe('0x18')]['enqueue'](function(){const _0x5f4ce8=_0x2f0ebe;return _0x5d514a['queryInterface']['removeIndex'](_0x390ab0,_0x112710)[_0x5f4ce8('0x7')](function(){const _0x586074=_0x5f4ce8;logger[_0x586074('0x14')](_0x586074('0x1f'),_0x390ab0,_0x112710);})[_0x5f4ce8('0x24')](function(_0x1aabd8){const _0x10f81a=_0x5f4ce8;logger[_0x10f81a('0x14')](JSON['stringify'](_0x1aabd8));});});},Migration[_0x5b3b9d('0x10')][_0x5b3b9d('0x15')]=function(_0x45632f){const _0x5c883d=_0x5b3b9d,_0x249ce3=this;this[_0x5c883d('0x18')][_0x5c883d('0x16')](function(){const _0x501069=_0x5c883d;return _0x249ce3['queryInterface'][_0x501069('0xc')][_0x501069('0x15')](_0x45632f)[_0x501069('0x7')](function(){logger['info']('query\x20%s',_0x45632f);})['catch'](function(_0x3569a9){const _0x36390a=_0x501069;logger[_0x36390a('0x14')](JSON[_0x36390a('0x12')](_0x3569a9));});});},Migration[_0x5b3b9d('0x10')][_0x5b3b9d('0x25')]=function(_0xd99be8,_0x25cd45){const _0x5edfde=_0x5b3b9d,_0x563bda=this;this['sequence'][_0x5edfde('0x16')](function(){const _0x4925d7=_0x5edfde;return _0x563bda[_0x4925d7('0xa')]['removeColumn'](_0xd99be8,_0x25cd45)['then'](function(){const _0x48203e=_0x4925d7;logger[_0x48203e('0x14')](_0x48203e('0x22'),_0x25cd45,_0xd99be8);})[_0x4925d7('0x24')](function(_0x290958){const _0x44d1ed=_0x4925d7;logger[_0x44d1ed('0x14')](util[_0x44d1ed('0xf')](_0x290958,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x5b3b9d('0x17')]=function(_0x4c9307,_0x58b3a4,_0x3e2e7a){const _0x62c4f0=_0x5b3b9d,_0x18031c=this;this[_0x62c4f0('0x18')][_0x62c4f0('0x16')](function(){const _0x3efd48=_0x62c4f0;return _0x18031c[_0x3efd48('0xa')]['renameColumn'](_0x4c9307,_0x58b3a4,_0x3e2e7a)['then'](function(){const _0x40abff=_0x3efd48;logger[_0x40abff('0x14')](_0x40abff('0x19'),_0x58b3a4,_0x3e2e7a,_0x4c9307);})[_0x3efd48('0x24')](function(_0xdf67b2){const _0x759aaa=_0x3efd48;logger['info'](util[_0x759aaa('0xf')](_0xdf67b2,{'showHidden':![],'depth':null}));});});},Migration[_0x5b3b9d('0x10')]['final']=function(_0x18098d){const _0x405084=_0x5b3b9d;this[_0x405084('0x18')][_0x405084('0x16')](function(){return _0x18098d();});},module[_0x5b3b9d('0x1b')]={'up':function(_0x45bf29,_0x46424b){return new Promise(function(_0x596b7c){const _0x4a8953=a989_0x5165,_0x243391=new Migration(_0x45bf29);_0x243391[_0x4a8953('0x21')]('voice_queues',_0x4a8953('0x1'),{'type':_0x46424b['INTEGER'](0x3)['UNSIGNED'],'defaultValue':0x14}),_0x243391[_0x4a8953('0x21')]('voice_queues','dialPredictiveIntervalMinThreshold',{'type':_0x46424b[_0x4a8953('0x1c')](0x3)[_0x4a8953('0x11')],'defaultValue':0xa}),_0x243391[_0x4a8953('0x15')]('ALTER\x20TABLE\x20migrations\x20DROP\x20PRIMARY\x20KEY'),_0x243391[_0x4a8953('0x15')](_0x4a8953('0x8')),_0x243391[_0x4a8953('0x15')](_0x4a8953('0x20')),_0x243391[_0x4a8953('0x15')](_0x4a8953('0x1a')),_0x243391[_0x4a8953('0x15')](_0x4a8953('0x6')),_0x243391[_0x4a8953('0x27')](_0x596b7c);});},'down':function(){}};