Built motion from commit c49361c37b5f784889c8087ac6e0e91b7e6b561a. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.10.js
1 const a974_0x5729=['queryInterface','query\x20%s','addIndex','../config/logger','addIndex\x20%s\x20%s\x20%s','then','enqueue','Added\x20column\x20%s\x20to\x20%s','sequence','table\x20dropped\x20%s','sequelize','tail','util','exports','Changed\x20column\x20%s\x20in\x20table\x20%s','migration','dropTable','final','info','renameColumn','join','addColumn','removeIndex','finally','prototype','stringify','changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','catch','inspect'];(function(_0x34bbd3,_0x572960){const _0x254dd8=function(_0x1e3419){while(--_0x1e3419){_0x34bbd3['push'](_0x34bbd3['shift']());}};_0x254dd8(++_0x572960);}(a974_0x5729,0xfc));const a974_0x254d=function(_0x34bbd3,_0x572960){_0x34bbd3=_0x34bbd3-0x0;let _0x254dd8=a974_0x5729[_0x34bbd3];return _0x254dd8;};const _0x591e57=a974_0x254d;'use strict';const util=require(_0x591e57('0x8')),logger=require(_0x591e57('0x1e'))(_0x591e57('0xb')),Sequence=function(){};Sequence['prototype'][_0x591e57('0x2')]=function(_0x1e3419){const _0x5ee31f=_0x591e57;this[_0x5ee31f('0x7')]=this[_0x5ee31f('0x7')]?this[_0x5ee31f('0x7')][_0x5ee31f('0x13')](_0x1e3419):_0x1e3419();};const Migration=function(_0x4d3b0a){const _0x4591e5=_0x591e57;this[_0x4591e5('0x1b')]=_0x4d3b0a,this['sequence']=new Sequence();};Migration[_0x591e57('0x14')][_0x591e57('0x16')]=function(_0x2c06c3,_0x21c923,_0x10853e){const _0xb05ecb=_0x591e57,_0x32e19d=this;this[_0xb05ecb('0x4')]['enqueue'](function(){const _0x5b4996=_0xb05ecb;return _0x32e19d['queryInterface'][_0x5b4996('0x16')](_0x2c06c3,_0x21c923,_0x10853e)[_0x5b4996('0x1')](function(){const _0x22f00c=_0x5b4996;logger['info'](_0x22f00c('0xa'),_0x21c923,_0x2c06c3);})[_0x5b4996('0x19')](function(_0x54439c){const _0x343246=_0x5b4996;logger[_0x343246('0xe')](JSON[_0x343246('0x15')](_0x54439c));});});},Migration[_0x591e57('0x14')][_0x591e57('0x11')]=function(_0x5ddd1a,_0xda6150,_0x31cb5e){const _0x37f742=_0x591e57,_0x32c125=this;this['sequence'][_0x37f742('0x2')](function(){const _0x249187=_0x37f742;return _0x32c125['queryInterface'][_0x249187('0x11')](_0x5ddd1a,_0xda6150,_0x31cb5e)['then'](function(){const _0x4637b7=_0x249187;logger[_0x4637b7('0xe')](_0x4637b7('0x3'),_0xda6150,_0x5ddd1a);})[_0x249187('0x19')](function(_0x164db2){const _0x2c12fe=_0x249187;logger[_0x2c12fe('0xe')](JSON[_0x2c12fe('0x15')](_0x164db2));});});},Migration['prototype'][_0x591e57('0xc')]=function(_0xa0df4a){const _0xa8b1d4=_0x591e57,_0x43c944=this;this[_0xa8b1d4('0x4')]['enqueue'](function(){const _0x32df2b=_0xa8b1d4;return _0x43c944[_0x32df2b('0x1b')][_0x32df2b('0xc')](_0xa0df4a,{'force':!![]})[_0x32df2b('0x1')](function(){const _0xc54c57=_0x32df2b;logger[_0xc54c57('0xe')](_0xc54c57('0x5'),_0xa0df4a);})[_0x32df2b('0x19')](function(_0x3d25ea){const _0x54c0a4=_0x32df2b;logger[_0x54c0a4('0xe')](JSON['stringify'](_0x3d25ea));});});},Migration[_0x591e57('0x14')][_0x591e57('0x1d')]=function(_0x45f1d0,_0x4220f0,_0x16260b){const _0x225fc8=_0x591e57,_0x834e30=this;this[_0x225fc8('0x4')][_0x225fc8('0x2')](function(){const _0x1b937c=_0x225fc8;return _0x834e30[_0x1b937c('0x1b')][_0x1b937c('0x1d')](_0x45f1d0,_0x4220f0,{'indexName':_0x16260b})[_0x1b937c('0x1')](function(){const _0x39f9f1=_0x1b937c;logger[_0x39f9f1('0xe')](_0x39f9f1('0x0'),_0x45f1d0,_0x4220f0[_0x39f9f1('0x10')](','),_0x16260b);})[_0x1b937c('0x19')](function(_0x278755){const _0x2b050b=_0x1b937c;logger[_0x2b050b('0xe')](JSON[_0x2b050b('0x15')](_0x278755));});});},Migration[_0x591e57('0x14')][_0x591e57('0x12')]=function(_0xe23cb,_0x3e178c){const _0x1d224b=_0x591e57,_0x2ba960=this;this[_0x1d224b('0x4')][_0x1d224b('0x2')](function(){const _0x4d86cf=_0x1d224b;return _0x2ba960[_0x4d86cf('0x1b')]['removeIndex'](_0xe23cb,_0x3e178c)['then'](function(){const _0x5dfd0f=_0x4d86cf;logger[_0x5dfd0f('0xe')]('removeIndex\x20%s\x20%s',_0xe23cb,_0x3e178c);})['catch'](function(_0x15ebb7){const _0x26bb2c=_0x4d86cf;logger[_0x26bb2c('0xe')](JSON[_0x26bb2c('0x15')](_0x15ebb7));});});},Migration[_0x591e57('0x14')][_0x591e57('0x18')]=function(_0x4f7fbe){const _0xa12c9d=_0x591e57,_0x3d35c7=this;this[_0xa12c9d('0x4')]['enqueue'](function(){const _0xc18059=_0xa12c9d;return _0x3d35c7['queryInterface'][_0xc18059('0x6')][_0xc18059('0x18')](_0x4f7fbe)[_0xc18059('0x1')](function(){const _0x439f1b=_0xc18059;logger[_0x439f1b('0xe')](_0x439f1b('0x1c'),_0x4f7fbe);})[_0xc18059('0x19')](function(_0x3b7b88){const _0x58afff=_0xc18059;logger[_0x58afff('0xe')](JSON['stringify'](_0x3b7b88));});});},Migration['prototype']['removeColumn']=function(_0x50d5fd,_0x158889){const _0x4635a3=_0x591e57,_0x40cb2e=this;this[_0x4635a3('0x4')][_0x4635a3('0x2')](function(){const _0x485501=_0x4635a3;return _0x40cb2e[_0x485501('0x1b')]['removeColumn'](_0x50d5fd,_0x158889)['then'](function(){const _0x2928b8=_0x485501;logger[_0x2928b8('0xe')]('Removed\x20column\x20%s\x20from\x20%s',_0x158889,_0x50d5fd);})[_0x485501('0x19')](function(_0xdee565){const _0x1330a7=_0x485501;logger[_0x1330a7('0xe')](util[_0x1330a7('0x1a')](_0xdee565,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x591e57('0xf')]=function(_0x37a561,_0x9e9cfd,_0x276739){const _0x1187ca=_0x591e57,_0x2d9e67=this;this[_0x1187ca('0x4')][_0x1187ca('0x2')](function(){const _0x177766=_0x1187ca;return _0x2d9e67[_0x177766('0x1b')][_0x177766('0xf')](_0x37a561,_0x9e9cfd,_0x276739)['then'](function(){const _0x41ea90=_0x177766;logger['info'](_0x41ea90('0x17'),_0x9e9cfd,_0x276739,_0x37a561);})[_0x177766('0x19')](function(_0x278f21){const _0x53aaa4=_0x177766;logger['info'](util[_0x53aaa4('0x1a')](_0x278f21,{'showHidden':![],'depth':null}));});});},Migration[_0x591e57('0x14')][_0x591e57('0xd')]=function(_0x42885d){const _0x2a61cb=_0x591e57;this['sequence'][_0x2a61cb('0x2')](function(){return _0x42885d();});},module[_0x591e57('0x9')]={'up':function(_0x2cacaa,_0x34219f){return new Promise(function(_0x67556e){const _0x2a202e=a974_0x254d,_0x44a140=new Migration(_0x2cacaa);_0x44a140[_0x2a202e('0x11')]('report_call','sipcallid',{'type':_0x34219f['STRING']}),_0x44a140[_0x2a202e('0xd')](_0x67556e);});},'down':function(){}};