Built motion from commit f861bcb808219e66da88ba48b61bddb35224a65e. Version 3.0.0...
[motion-next.git] / server / migrations / 2.5.16.js
1 'use strict';const a1193_0x47ec=['skebby','../config/logger','removeIndex\x20%s\x20%s','tail','14797SAlkZn','3IfoBAD','enqueue','274306QFkqNp','1324647aycMJw','prototype','type','exports','info','addIndex','clickatell','migration','stringify','inspect','sequence','util','table\x20dropped\x20%s','dropTable','join','accountId','Changed\x20column\x20%s\x20in\x20table\x20%s','548346dVfEOB','3708GqPRUA','79JHesVB','twilio','final','addColumn','clicksend','ENUM','connectel','bandwidth','query','addIndex\x20%s\x20%s\x20%s','111493OMiUKM','STRING','Added\x20column\x20%s\x20to\x20%s','catch','finally','queryInterface','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','changeColumn','resolve','removeIndex','csc','removeColumn','then','renameColumn','sms_accounts','72362rMJJWP','87JvBvaC'];const a1193_0xbc59=function(_0x5826b7,_0x42c26d){_0x5826b7=_0x5826b7-0x1f0;let _0x47ec0f=a1193_0x47ec[_0x5826b7];return _0x47ec0f;};const a1193_0x8b628c=a1193_0xbc59;(function(_0x2ba767,_0x5c85d5){const _0x50de6a=a1193_0xbc59;while(!![]){try{const _0x19029c=-parseInt(_0x50de6a(0x201))+-parseInt(_0x50de6a(0x1f8))+-parseInt(_0x50de6a(0x202))+parseInt(_0x50de6a(0x21f))*parseInt(_0x50de6a(0x1ff))+parseInt(_0x50de6a(0x1f9))*parseInt(_0x50de6a(0x1fe))+-parseInt(_0x50de6a(0x215))*-parseInt(_0x50de6a(0x214))+parseInt(_0x50de6a(0x213));if(_0x19029c===_0x5c85d5)break;else _0x2ba767['push'](_0x2ba767['shift']());}catch(_0x1eb463){_0x2ba767['push'](_0x2ba767['shift']());}}}(a1193_0x47ec,0xc14e5));const util=require(a1193_0x8b628c(0x20d)),logger=require(a1193_0x8b628c(0x1fb))(a1193_0x8b628c(0x209)),Sequence=function(){};Sequence[a1193_0x8b628c(0x203)][a1193_0x8b628c(0x200)]=function(_0x27117c){const _0x2874cc=a1193_0x8b628c;this[_0x2874cc(0x1fd)]=this[_0x2874cc(0x1fd)]?this[_0x2874cc(0x1fd)][_0x2874cc(0x223)](_0x27117c):_0x27117c();};const Migration=function(_0x2d7a9e){const _0x5c5c70=a1193_0x8b628c;this[_0x5c5c70(0x224)]=_0x2d7a9e,this[_0x5c5c70(0x20c)]=new Sequence();};Migration[a1193_0x8b628c(0x203)]['changeColumn']=function(_0x258aaa,_0x306a71,_0x4ae02d){const _0x468952=a1193_0x8b628c,_0x39dbfa=this;this['sequence'][_0x468952(0x200)](function(){const _0xf11bd=_0x468952;return _0x39dbfa[_0xf11bd(0x224)][_0xf11bd(0x1f0)](_0x258aaa,_0x306a71,_0x4ae02d)[_0xf11bd(0x1f5)](function(){const _0x2b0fa6=_0xf11bd;logger[_0x2b0fa6(0x206)](_0x2b0fa6(0x212),_0x306a71,_0x258aaa);})[_0xf11bd(0x222)](function(_0x355911){const _0xcd977b=_0xf11bd;logger[_0xcd977b(0x206)](JSON[_0xcd977b(0x20a)](_0x355911));});});},Migration['prototype'][a1193_0x8b628c(0x218)]=function(_0x4a1fcd,_0x26e484,_0x54a6cb){const _0x32f33e=a1193_0x8b628c,_0x135872=this;this[_0x32f33e(0x20c)][_0x32f33e(0x200)](function(){const _0x542e96=_0x32f33e;return _0x135872[_0x542e96(0x224)][_0x542e96(0x218)](_0x4a1fcd,_0x26e484,_0x54a6cb)[_0x542e96(0x1f5)](function(){const _0x54b084=_0x542e96;logger['info'](_0x54b084(0x221),_0x26e484,_0x4a1fcd);})[_0x542e96(0x222)](function(_0x3e4129){const _0xcd6d4b=_0x542e96;logger[_0xcd6d4b(0x206)](JSON[_0xcd6d4b(0x20a)](_0x3e4129));});});},Migration[a1193_0x8b628c(0x203)][a1193_0x8b628c(0x20f)]=function(_0x43f9bf){const _0xfcb8a5=a1193_0x8b628c,_0x5394a7=this;this[_0xfcb8a5(0x20c)][_0xfcb8a5(0x200)](function(){const _0x35c66f=_0xfcb8a5;return _0x5394a7['queryInterface']['dropTable'](_0x43f9bf,{'force':!![]})[_0x35c66f(0x1f5)](function(){const _0x450d06=_0x35c66f;logger[_0x450d06(0x206)](_0x450d06(0x20e),_0x43f9bf);})['catch'](function(_0x10368f){const _0x250f06=_0x35c66f;logger[_0x250f06(0x206)](JSON[_0x250f06(0x20a)](_0x10368f));});});},Migration[a1193_0x8b628c(0x203)][a1193_0x8b628c(0x207)]=function(_0x34e515,_0x7abce1,_0x4fd389){const _0x38195f=a1193_0x8b628c,_0x185903=this;this[_0x38195f(0x20c)][_0x38195f(0x200)](function(){const _0x1a268b=_0x38195f;return _0x185903[_0x1a268b(0x224)][_0x1a268b(0x207)](_0x34e515,_0x7abce1,{'indexName':_0x4fd389})[_0x1a268b(0x1f5)](function(){const _0x225205=_0x1a268b;logger[_0x225205(0x206)](_0x225205(0x21e),_0x34e515,_0x7abce1[_0x225205(0x210)](','),_0x4fd389);})['catch'](function(_0x333a93){const _0x45f0e3=_0x1a268b;logger[_0x45f0e3(0x206)](JSON[_0x45f0e3(0x20a)](_0x333a93));});});},Migration[a1193_0x8b628c(0x203)][a1193_0x8b628c(0x1f2)]=function(_0x307eef,_0x1d04a1){const _0x35498f=a1193_0x8b628c,_0x5930bb=this;this['sequence'][_0x35498f(0x200)](function(){const _0x9f79f1=_0x35498f;return _0x5930bb[_0x9f79f1(0x224)][_0x9f79f1(0x1f2)](_0x307eef,_0x1d04a1)['then'](function(){const _0x59e5c7=_0x9f79f1;logger[_0x59e5c7(0x206)](_0x59e5c7(0x1fc),_0x307eef,_0x1d04a1);})[_0x9f79f1(0x222)](function(_0x16ad6e){const _0x3bb5e3=_0x9f79f1;logger[_0x3bb5e3(0x206)](JSON[_0x3bb5e3(0x20a)](_0x16ad6e));});});},Migration['prototype'][a1193_0x8b628c(0x21d)]=function(_0xe6d7e6){const _0x1c57b2=a1193_0x8b628c,_0x3d8421=this;this[_0x1c57b2(0x20c)][_0x1c57b2(0x200)](function(){const _0x1bc43a=_0x1c57b2;return _0x3d8421[_0x1bc43a(0x224)]['sequelize'][_0x1bc43a(0x21d)](_0xe6d7e6)['then'](function(){const _0xe82e60=_0x1bc43a;logger[_0xe82e60(0x206)]('query\x20%s',_0xe6d7e6);})[_0x1bc43a(0x222)](function(_0x206fdd){const _0xb877ad=_0x1bc43a;logger[_0xb877ad(0x206)](JSON['stringify'](_0x206fdd));});});},Migration[a1193_0x8b628c(0x203)][a1193_0x8b628c(0x1f4)]=function(_0x5482bb,_0x547cbe){const _0x534b66=a1193_0x8b628c,_0x1d397b=this;this[_0x534b66(0x20c)][_0x534b66(0x200)](function(){const _0x4b844d=_0x534b66;return _0x1d397b[_0x4b844d(0x224)][_0x4b844d(0x1f4)](_0x5482bb,_0x547cbe)[_0x4b844d(0x1f5)](function(){const _0x3213d3=_0x4b844d;logger[_0x3213d3(0x206)]('Removed\x20column\x20%s\x20from\x20%s',_0x547cbe,_0x5482bb);})['catch'](function(_0x2af88b){const _0x220634=_0x4b844d;logger[_0x220634(0x206)](util[_0x220634(0x20b)](_0x2af88b,{'showHidden':![],'depth':null}));});});},Migration[a1193_0x8b628c(0x203)][a1193_0x8b628c(0x1f6)]=function(_0x4f941e,_0x4d6734,_0x608826){const _0x32a94d=a1193_0x8b628c,_0x330fda=this;this['sequence'][_0x32a94d(0x200)](function(){const _0x53ebed=_0x32a94d;return _0x330fda['queryInterface'][_0x53ebed(0x1f6)](_0x4f941e,_0x4d6734,_0x608826)[_0x53ebed(0x1f5)](function(){const _0x40ddd8=_0x53ebed;logger[_0x40ddd8(0x206)](_0x40ddd8(0x225),_0x4d6734,_0x608826,_0x4f941e);})[_0x53ebed(0x222)](function(_0x48dceb){const _0xe81526=_0x53ebed;logger[_0xe81526(0x206)](util[_0xe81526(0x20b)](_0x48dceb,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x3c008d){const _0x6290fe=a1193_0x8b628c;this[_0x6290fe(0x20c)][_0x6290fe(0x200)](function(){return _0x3c008d();});},module[a1193_0x8b628c(0x205)]={'up':function(_0x30babc,_0x21e4c0){return new Promise(function(_0x154d2c){const _0x4e0a57=a1193_0xbc59,_0x858deb=new Migration(_0x30babc);_0x858deb[_0x4e0a57(0x218)](_0x4e0a57(0x1f7),'applicationId',{'type':_0x21e4c0[_0x4e0a57(0x220)]}),_0x858deb['addColumn'](_0x4e0a57(0x1f7),_0x4e0a57(0x211),{'type':_0x21e4c0[_0x4e0a57(0x220)]}),_0x858deb[_0x4e0a57(0x1f0)](_0x4e0a57(0x1f7),_0x4e0a57(0x204),{'type':_0x21e4c0[_0x4e0a57(0x21a)](_0x4e0a57(0x216),_0x4e0a57(0x1fa),_0x4e0a57(0x21b),_0x4e0a57(0x219),'plivo',_0x4e0a57(0x208),_0x4e0a57(0x1f3),_0x4e0a57(0x21c))}),_0x858deb[_0x4e0a57(0x217)](_0x154d2c);});},'down':function(){const _0x143100=a1193_0x8b628c;return Promise[_0x143100(0x1f1)]();}};