Built motion from commit 5fcd269f5146f10cf3129722d518881dfac64576. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.53.js
1 const a931_0x5736=['query\x20%s','pdf','users','type','addColumn','skebby','removeColumn','enqueue','info','query','catch','then','UPDATE\x20analytics_extracted_reports\x20SET\x20output=\x27xlsx\x27\x20WHERE\x20output=\x27xls\x27','output','migration','join','dropTable','exports','queryInterface','finally','addIndex\x20%s\x20%s\x20%s','sequelize','inspect','description','tail','xlsx','addIndex','cm_contacts','ENUM','insecure','csv','util','table\x20dropped\x20%s','analytics_extracted_reports','sms_accounts','changeColumn','stringify','Added\x20column\x20%s\x20to\x20%s','sequence','xls','twilio','prototype','plivo','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x23c7ea,_0x57365e){const _0x50e05e=function(_0x3f8ee2){while(--_0x3f8ee2){_0x23c7ea['push'](_0x23c7ea['shift']());}};_0x50e05e(++_0x57365e);}(a931_0x5736,0x9e));const a931_0x50e0=function(_0x23c7ea,_0x57365e){_0x23c7ea=_0x23c7ea-0x0;let _0x50e05e=a931_0x5736[_0x23c7ea];return _0x50e05e;};const _0x263db9=a931_0x50e0;'use strict';const util=require(_0x263db9('0x5')),logger=require('../config/logger')(_0x263db9('0x20')),Sequence=function(){};Sequence[_0x263db9('0xf')][_0x263db9('0x19')]=function(_0x3f8ee2){const _0x35bbee=_0x263db9;this[_0x35bbee('0x2a')]=this['tail']?this[_0x35bbee('0x2a')][_0x35bbee('0x25')](_0x3f8ee2):_0x3f8ee2();};const Migration=function(_0x10eada){const _0x4789c4=_0x263db9;this[_0x4789c4('0x24')]=_0x10eada,this[_0x4789c4('0xc')]=new Sequence();};Migration['prototype'][_0x263db9('0x9')]=function(_0x368cf7,_0x4422b1,_0xa98f9d){const _0x32ce1d=_0x263db9,_0x520e14=this;this[_0x32ce1d('0xc')]['enqueue'](function(){const _0x5a5705=_0x32ce1d;return _0x520e14[_0x5a5705('0x24')][_0x5a5705('0x9')](_0x368cf7,_0x4422b1,_0xa98f9d)[_0x5a5705('0x1d')](function(){const _0x2461ba=_0x5a5705;logger[_0x2461ba('0x1a')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4422b1,_0x368cf7);})[_0x5a5705('0x1c')](function(_0x2a2e91){logger['info'](JSON['stringify'](_0x2a2e91));});});},Migration[_0x263db9('0xf')][_0x263db9('0x16')]=function(_0x56cd11,_0x4c1f64,_0x557c8d){const _0x4322ff=_0x263db9,_0xfbc98d=this;this[_0x4322ff('0xc')][_0x4322ff('0x19')](function(){const _0xe42a09=_0x4322ff;return _0xfbc98d[_0xe42a09('0x24')][_0xe42a09('0x16')](_0x56cd11,_0x4c1f64,_0x557c8d)[_0xe42a09('0x1d')](function(){const _0x16e98e=_0xe42a09;logger['info'](_0x16e98e('0xb'),_0x4c1f64,_0x56cd11);})[_0xe42a09('0x1c')](function(_0x354e93){const _0x171f4f=_0xe42a09;logger[_0x171f4f('0x1a')](JSON[_0x171f4f('0xa')](_0x354e93));});});},Migration[_0x263db9('0xf')][_0x263db9('0x22')]=function(_0x4a365c){const _0x5bb8e8=_0x263db9,_0x17cfc0=this;this[_0x5bb8e8('0xc')]['enqueue'](function(){const _0x5ecc91=_0x5bb8e8;return _0x17cfc0['queryInterface'][_0x5ecc91('0x22')](_0x4a365c,{'force':!![]})[_0x5ecc91('0x1d')](function(){const _0x19d535=_0x5ecc91;logger[_0x19d535('0x1a')](_0x19d535('0x6'),_0x4a365c);})[_0x5ecc91('0x1c')](function(_0x4ace55){const _0x1fa14=_0x5ecc91;logger[_0x1fa14('0x1a')](JSON[_0x1fa14('0xa')](_0x4ace55));});});},Migration[_0x263db9('0xf')][_0x263db9('0x0')]=function(_0x130c1f,_0x2f5438,_0x24fa2c){const _0x3a3a4c=_0x263db9,_0x2c778c=this;this['sequence'][_0x3a3a4c('0x19')](function(){const _0x57b4f8=_0x3a3a4c;return _0x2c778c[_0x57b4f8('0x24')][_0x57b4f8('0x0')](_0x130c1f,_0x2f5438,{'indexName':_0x24fa2c})[_0x57b4f8('0x1d')](function(){const _0x22ec82=_0x57b4f8;logger['info'](_0x22ec82('0x26'),_0x130c1f,_0x2f5438[_0x22ec82('0x21')](','),_0x24fa2c);})['catch'](function(_0x34ed03){logger['info'](JSON['stringify'](_0x34ed03));});});},Migration['prototype'][_0x263db9('0x1b')]=function(_0x8dee8c){const _0x52b72d=_0x263db9,_0x4ef60e=this;this[_0x52b72d('0xc')][_0x52b72d('0x19')](function(){const _0x3819c7=_0x52b72d;return _0x4ef60e[_0x3819c7('0x24')][_0x3819c7('0x27')][_0x3819c7('0x1b')](_0x8dee8c)[_0x3819c7('0x1d')](function(){const _0x12e7f7=_0x3819c7;logger[_0x12e7f7('0x1a')](_0x12e7f7('0x12'),_0x8dee8c);})['catch'](function(_0x5b8b1c){const _0x10f239=_0x3819c7;logger['info'](JSON[_0x10f239('0xa')](_0x5b8b1c));});});},Migration['prototype'][_0x263db9('0x18')]=function(_0x543323,_0x3bae82){const _0x32dcf8=_0x263db9,_0x1dc08d=this;this[_0x32dcf8('0xc')][_0x32dcf8('0x19')](function(){const _0x43e83b=_0x32dcf8;return _0x1dc08d[_0x43e83b('0x24')][_0x43e83b('0x18')](_0x543323,_0x3bae82)[_0x43e83b('0x1d')](function(){const _0x1655db=_0x43e83b;logger[_0x1655db('0x1a')](_0x1655db('0x11'),_0x3bae82,_0x543323);})[_0x43e83b('0x1c')](function(_0x3e090d){const _0x354ca0=_0x43e83b;logger[_0x354ca0('0x1a')](util[_0x354ca0('0x28')](_0x3e090d,{'showHidden':![],'depth':null}));});});},Migration[_0x263db9('0xf')]['final']=function(_0x5f2ebf){const _0x4c5a1d=_0x263db9;this[_0x4c5a1d('0xc')][_0x4c5a1d('0x19')](function(){return _0x5f2ebf();});},module[_0x263db9('0x23')]={'up':function(_0x4d79fc,_0x3a78ad){return new Promise(function(_0x5b1079){const _0x55b9b2=a931_0x50e0,_0xc283c4=new Migration(_0x4d79fc);_0xc283c4[_0x55b9b2('0x9')](_0x55b9b2('0x1'),_0x55b9b2('0x29'),{'type':_0x3a78ad['TEXT']}),_0xc283c4[_0x55b9b2('0x9')](_0x55b9b2('0x8'),_0x55b9b2('0x15'),{'type':_0x3a78ad['ENUM'](_0x55b9b2('0xe'),_0x55b9b2('0x17'),'connectel','clicksend',_0x55b9b2('0x10'))}),_0xc283c4[_0x55b9b2('0x9')]('analytics_extracted_reports',_0x55b9b2('0x1f'),{'type':_0x3a78ad['ENUM'](_0x55b9b2('0x4'),_0x55b9b2('0x13'),_0x55b9b2('0xd'),_0x55b9b2('0x2b')),'allowNull':![],'defaultValue':_0x55b9b2('0x4')}),_0xc283c4[_0x55b9b2('0x1b')](_0x55b9b2('0x1e')),_0xc283c4[_0x55b9b2('0x9')](_0x55b9b2('0x7'),_0x55b9b2('0x1f'),{'type':_0x3a78ad[_0x55b9b2('0x2')](_0x55b9b2('0x4'),_0x55b9b2('0x13'),'xlsx'),'allowNull':![],'defaultValue':'csv'}),_0xc283c4[_0x55b9b2('0x1b')]('UPDATE\x20users\x20SET\x20insecure=NULL\x20WHERE\x20insecure=\x27port,invite\x27'),_0xc283c4[_0x55b9b2('0x9')](_0x55b9b2('0x14'),_0x55b9b2('0x3'),{'type':_0x3a78ad['STRING'],'allowNull':!![]}),_0xc283c4['final'](_0x5b1079);});},'down':function(){}};