Built motion from commit f861bcb808219e66da88ba48b61bddb35224a65e. Version 3.0.0...
[motion-next.git] / server / migrations / 2.5.16.js
index a331edb..d9308db 100644 (file)
@@ -1 +1 @@
-'use strict';const a1190_0xab1a=['addIndex\x20%s\x20%s\x20%s','sequelize','clicksend','ENUM','final','removeColumn','sequence','then','STRING','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','351968PvGMEW','tail','sms_accounts','type','919535qNPvQj','removeIndex','clickatell','info','enqueue','queryInterface','query\x20%s','3tfUlZu','connectel','applicationId','addColumn','migration','twilio','dropTable','skebby','bandwidth','stringify','util','query','catch','changeColumn','1180355KDylPm','907283eEmiTo','accountId','removeIndex\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','csc','4133zXhcKL','renameColumn','237689ZYorir','prototype','resolve','finally','addIndex','171whruqv','160743qWhblc','inspect','exports','../config/logger'];const a1190_0x51ef=function(_0xf098cb,_0x9a90f2){_0xf098cb=_0xf098cb-0x1d0;let _0xab1a9f=a1190_0xab1a[_0xf098cb];return _0xab1a9f;};const a1190_0x2571ce=a1190_0x51ef;(function(_0x1735b8,_0x242026){const _0xe7656c=a1190_0x51ef;while(!![]){try{const _0x44c526=parseInt(_0xe7656c(0x1d6))+parseInt(_0xe7656c(0x1dd))*parseInt(_0xe7656c(0x1f3))+parseInt(_0xe7656c(0x1ec))+parseInt(_0xe7656c(0x1f9))+parseInt(_0xe7656c(0x1f8))*-parseInt(_0xe7656c(0x1f1))+-parseInt(_0xe7656c(0x1d2))+-parseInt(_0xe7656c(0x1eb));if(_0x44c526===_0x242026)break;else _0x1735b8['push'](_0x1735b8['shift']());}catch(_0x53fbfe){_0x1735b8['push'](_0x1735b8['shift']());}}}(a1190_0xab1a,0x70afa));const util=require(a1190_0x2571ce(0x1e7)),logger=require(a1190_0x2571ce(0x1fc))(a1190_0x2571ce(0x1e1)),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x16f208){const _0x1a8d0e=a1190_0x2571ce;this[_0x1a8d0e(0x1d3)]=this[_0x1a8d0e(0x1d3)]?this['tail'][_0x1a8d0e(0x1f6)](_0x16f208):_0x16f208();};const Migration=function(_0x24f9be){const _0x90887a=a1190_0x2571ce;this[_0x90887a(0x1db)]=_0x24f9be,this[_0x90887a(0x203)]=new Sequence();};Migration[a1190_0x2571ce(0x1f4)]['changeColumn']=function(_0x1b1200,_0x2764bc,_0x440e17){const _0x49d4de=a1190_0x2571ce,_0x621099=this;this[_0x49d4de(0x203)][_0x49d4de(0x1da)](function(){const _0x476aa7=_0x49d4de;return _0x621099[_0x476aa7(0x1db)]['changeColumn'](_0x1b1200,_0x2764bc,_0x440e17)[_0x476aa7(0x204)](function(){const _0x523020=_0x476aa7;logger[_0x523020(0x1d9)](_0x523020(0x1ef),_0x2764bc,_0x1b1200);})[_0x476aa7(0x1e9)](function(_0x48c0dc){const _0x156941=_0x476aa7;logger['info'](JSON[_0x156941(0x1e6)](_0x48c0dc));});});},Migration[a1190_0x2571ce(0x1f4)][a1190_0x2571ce(0x1e0)]=function(_0xd6533d,_0x46c483,_0x2dbb66){const _0x3962d7=a1190_0x2571ce,_0x589132=this;this[_0x3962d7(0x203)]['enqueue'](function(){const _0x3cee29=_0x3962d7;return _0x589132[_0x3cee29(0x1db)]['addColumn'](_0xd6533d,_0x46c483,_0x2dbb66)[_0x3cee29(0x204)](function(){const _0xe1e9e5=_0x3cee29;logger[_0xe1e9e5(0x1d9)]('Added\x20column\x20%s\x20to\x20%s',_0x46c483,_0xd6533d);})[_0x3cee29(0x1e9)](function(_0x2800c6){const _0x389fd5=_0x3cee29;logger[_0x389fd5(0x1d9)](JSON['stringify'](_0x2800c6));});});},Migration[a1190_0x2571ce(0x1f4)][a1190_0x2571ce(0x1e3)]=function(_0xcbf9bf){const _0x1d60f4=a1190_0x2571ce,_0x12e9e7=this;this[_0x1d60f4(0x203)][_0x1d60f4(0x1da)](function(){const _0x312d11=_0x1d60f4;return _0x12e9e7['queryInterface'][_0x312d11(0x1e3)](_0xcbf9bf,{'force':!![]})[_0x312d11(0x204)](function(){logger['info']('table\x20dropped\x20%s',_0xcbf9bf);})['catch'](function(_0x332a28){const _0x5864ba=_0x312d11;logger[_0x5864ba(0x1d9)](JSON[_0x5864ba(0x1e6)](_0x332a28));});});},Migration[a1190_0x2571ce(0x1f4)]['addIndex']=function(_0x36dd3c,_0x560343,_0x3383f6){const _0x181c14=this;this['sequence']['enqueue'](function(){const _0x33048f=a1190_0x51ef;return _0x181c14[_0x33048f(0x1db)][_0x33048f(0x1f7)](_0x36dd3c,_0x560343,{'indexName':_0x3383f6})[_0x33048f(0x204)](function(){const _0x26c287=_0x33048f;logger[_0x26c287(0x1d9)](_0x26c287(0x1fd),_0x36dd3c,_0x560343['join'](','),_0x3383f6);})[_0x33048f(0x1e9)](function(_0x124071){const _0x1ffa6d=_0x33048f;logger[_0x1ffa6d(0x1d9)](JSON['stringify'](_0x124071));});});},Migration[a1190_0x2571ce(0x1f4)][a1190_0x2571ce(0x1d7)]=function(_0x5220d2,_0x3373d1){const _0x213e73=a1190_0x2571ce,_0x471788=this;this[_0x213e73(0x203)][_0x213e73(0x1da)](function(){const _0x20433c=_0x213e73;return _0x471788[_0x20433c(0x1db)][_0x20433c(0x1d7)](_0x5220d2,_0x3373d1)[_0x20433c(0x204)](function(){const _0x9bb3c7=_0x20433c;logger[_0x9bb3c7(0x1d9)](_0x9bb3c7(0x1ee),_0x5220d2,_0x3373d1);})['catch'](function(_0x3c7585){const _0x5bf9b8=_0x20433c;logger['info'](JSON[_0x5bf9b8(0x1e6)](_0x3c7585));});});},Migration['prototype'][a1190_0x2571ce(0x1e8)]=function(_0x423cb2){const _0x2cc9ed=a1190_0x2571ce,_0x1f9968=this;this[_0x2cc9ed(0x203)][_0x2cc9ed(0x1da)](function(){const _0x4a80c1=_0x2cc9ed;return _0x1f9968[_0x4a80c1(0x1db)][_0x4a80c1(0x1fe)][_0x4a80c1(0x1e8)](_0x423cb2)[_0x4a80c1(0x204)](function(){const _0x459b3b=_0x4a80c1;logger[_0x459b3b(0x1d9)](_0x459b3b(0x1dc),_0x423cb2);})[_0x4a80c1(0x1e9)](function(_0x2f0789){const _0x5cbc16=_0x4a80c1;logger[_0x5cbc16(0x1d9)](JSON[_0x5cbc16(0x1e6)](_0x2f0789));});});},Migration[a1190_0x2571ce(0x1f4)][a1190_0x2571ce(0x202)]=function(_0x597b84,_0x1e3fce){const _0x5f0828=a1190_0x2571ce,_0xff2094=this;this[_0x5f0828(0x203)]['enqueue'](function(){const _0x209aeb=_0x5f0828;return _0xff2094[_0x209aeb(0x1db)][_0x209aeb(0x202)](_0x597b84,_0x1e3fce)['then'](function(){const _0x3ca6bb=_0x209aeb;logger[_0x3ca6bb(0x1d9)]('Removed\x20column\x20%s\x20from\x20%s',_0x1e3fce,_0x597b84);})[_0x209aeb(0x1e9)](function(_0xe086ad){const _0x1107a2=_0x209aeb;logger[_0x1107a2(0x1d9)](util[_0x1107a2(0x1fa)](_0xe086ad,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1190_0x2571ce(0x1f2)]=function(_0x41163c,_0x4ee36e,_0x26c616){const _0x534d64=a1190_0x2571ce,_0x4c60dc=this;this[_0x534d64(0x203)][_0x534d64(0x1da)](function(){const _0x104f93=_0x534d64;return _0x4c60dc['queryInterface']['renameColumn'](_0x41163c,_0x4ee36e,_0x26c616)['then'](function(){const _0x224a00=a1190_0x51ef;logger[_0x224a00(0x1d9)](_0x224a00(0x1d1),_0x4ee36e,_0x26c616,_0x41163c);})[_0x104f93(0x1e9)](function(_0x432f86){const _0x22c91a=_0x104f93;logger[_0x22c91a(0x1d9)](util[_0x22c91a(0x1fa)](_0x432f86,{'showHidden':![],'depth':null}));});});},Migration[a1190_0x2571ce(0x1f4)][a1190_0x2571ce(0x201)]=function(_0x4fcb39){const _0x4566d9=a1190_0x2571ce;this[_0x4566d9(0x203)][_0x4566d9(0x1da)](function(){return _0x4fcb39();});},module[a1190_0x2571ce(0x1fb)]={'up':function(_0x446cd7,_0x1d5fed){return new Promise(function(_0x356f4f){const _0x48bc59=a1190_0x51ef,_0x3f14b7=new Migration(_0x446cd7);_0x3f14b7[_0x48bc59(0x1e0)](_0x48bc59(0x1d4),_0x48bc59(0x1df),{'type':_0x1d5fed[_0x48bc59(0x1d0)]}),_0x3f14b7[_0x48bc59(0x1e0)](_0x48bc59(0x1d4),_0x48bc59(0x1ed),{'type':_0x1d5fed['STRING']}),_0x3f14b7[_0x48bc59(0x1ea)](_0x48bc59(0x1d4),_0x48bc59(0x1d5),{'type':_0x1d5fed[_0x48bc59(0x200)](_0x48bc59(0x1e2),_0x48bc59(0x1e4),_0x48bc59(0x1de),_0x48bc59(0x1ff),'plivo',_0x48bc59(0x1d8),_0x48bc59(0x1f0),_0x48bc59(0x1e5))}),_0x3f14b7[_0x48bc59(0x201)](_0x356f4f);});},'down':function(){const _0x554698=a1190_0x2571ce;return Promise[_0x554698(0x1f5)]();}};
\ No newline at end of file
+'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)]();}};
\ No newline at end of file