Built motion from commit f861bcb808219e66da88ba48b61bddb35224a65e. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.91.js
index c0bc31f..699065c 100644 (file)
@@ -1 +1 @@
-'use strict';const a1152_0x2caa=['Changed\x20column\x20%s\x20in\x20table\x20%s','removeColumn','exports','Removed\x20column\x20%s\x20from\x20%s','report_call','1324901mcquya','migration','then','removeIndex\x20%s\x20%s','removeIndex','813819ASqMxy','enqueue','prototype','1UDJjaq','STRING','1tujtZf','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','inspect','renameColumn','changeColumn','util','@config/logger','sipcallid','join','tail','sequelize','addIndex\x20%s\x20%s\x20%s','255236btZeuO','1166664sxWltY','resolve','3738iPPrGV','663MXwTaj','queryInterface','stringify','sequence','726646DbqYxs','1GNweEh','Added\x20column\x20%s\x20to\x20%s','catch','info','query','final','addIndex','dropTable','addColumn','1418297PmUIrf'];const a1152_0x533e=function(_0xadea53,_0x42bdc4){_0xadea53=_0xadea53-0x102;let _0x2caa2b=a1152_0x2caa[_0xadea53];return _0x2caa2b;};const a1152_0xba9d86=a1152_0x533e;(function(_0x400612,_0x56c9b5){const _0x31de8b=a1152_0x533e;while(!![]){try{const _0x1fd3f5=-parseInt(_0x31de8b(0x103))+parseInt(_0x31de8b(0x118))+parseInt(_0x31de8b(0x129))*-parseInt(_0x31de8b(0x11d))+parseInt(_0x31de8b(0x12a))+parseInt(_0x31de8b(0x104))*-parseInt(_0x31de8b(0x113))+parseInt(_0x31de8b(0x11b))*-parseInt(_0x31de8b(0x10d))+parseInt(_0x31de8b(0x12c))*parseInt(_0x31de8b(0x12d));if(_0x1fd3f5===_0x56c9b5)break;else _0x400612['push'](_0x400612['shift']());}catch(_0x95178f){_0x400612['push'](_0x400612['shift']());}}}(a1152_0x2caa,0xb3201));const util=require(a1152_0xba9d86(0x122)),logger=require(a1152_0xba9d86(0x123))(a1152_0xba9d86(0x114)),Sequence=function(){};Sequence[a1152_0xba9d86(0x11a)]['enqueue']=function(_0x33f079){const _0x3e7958=a1152_0xba9d86;this[_0x3e7958(0x126)]=this['tail']?this[_0x3e7958(0x126)]['finally'](_0x33f079):_0x33f079();};const Migration=function(_0x4fbf7d){const _0x468ea7=a1152_0xba9d86;this[_0x468ea7(0x12e)]=_0x4fbf7d,this[_0x468ea7(0x102)]=new Sequence();};Migration[a1152_0xba9d86(0x11a)][a1152_0xba9d86(0x121)]=function(_0xee1b0a,_0x14ba54,_0x5928e3){const _0x216dfa=this;this['sequence']['enqueue'](function(){const _0x1dad2e=a1152_0x533e;return _0x216dfa[_0x1dad2e(0x12e)]['changeColumn'](_0xee1b0a,_0x14ba54,_0x5928e3)[_0x1dad2e(0x115)](function(){const _0x33b65e=_0x1dad2e;logger[_0x33b65e(0x107)](_0x33b65e(0x10e),_0x14ba54,_0xee1b0a);})[_0x1dad2e(0x106)](function(_0x4e6c82){const _0x221143=_0x1dad2e;logger[_0x221143(0x107)](JSON[_0x221143(0x12f)](_0x4e6c82));});});},Migration[a1152_0xba9d86(0x11a)][a1152_0xba9d86(0x10c)]=function(_0x3314e4,_0x115bfc,_0x89ff36){const _0x33a204=a1152_0xba9d86,_0x5af4d8=this;this[_0x33a204(0x102)]['enqueue'](function(){const _0x33726c=_0x33a204;return _0x5af4d8['queryInterface'][_0x33726c(0x10c)](_0x3314e4,_0x115bfc,_0x89ff36)[_0x33726c(0x115)](function(){const _0x27940b=_0x33726c;logger[_0x27940b(0x107)](_0x27940b(0x105),_0x115bfc,_0x3314e4);})[_0x33726c(0x106)](function(_0x20d302){const _0x5c68d9=_0x33726c;logger[_0x5c68d9(0x107)](JSON[_0x5c68d9(0x12f)](_0x20d302));});});},Migration[a1152_0xba9d86(0x11a)][a1152_0xba9d86(0x10b)]=function(_0x404b6b){const _0x56dfbd=a1152_0xba9d86,_0x31e469=this;this[_0x56dfbd(0x102)][_0x56dfbd(0x119)](function(){const _0x12abe3=_0x56dfbd;return _0x31e469['queryInterface'][_0x12abe3(0x10b)](_0x404b6b,{'force':!![]})['then'](function(){logger['info']('table\x20dropped\x20%s',_0x404b6b);})[_0x12abe3(0x106)](function(_0x392aeb){const _0x200234=_0x12abe3;logger[_0x200234(0x107)](JSON[_0x200234(0x12f)](_0x392aeb));});});},Migration['prototype'][a1152_0xba9d86(0x10a)]=function(_0x38bfb7,_0x3ffd0a,_0x33044c){const _0x2b6402=a1152_0xba9d86,_0x40e01f=this;this[_0x2b6402(0x102)]['enqueue'](function(){const _0x39e1a7=_0x2b6402;return _0x40e01f[_0x39e1a7(0x12e)]['addIndex'](_0x38bfb7,_0x3ffd0a,{'indexName':_0x33044c})[_0x39e1a7(0x115)](function(){const _0x1a9166=_0x39e1a7;logger['info'](_0x1a9166(0x128),_0x38bfb7,_0x3ffd0a[_0x1a9166(0x125)](','),_0x33044c);})[_0x39e1a7(0x106)](function(_0x1bbc51){const _0x35fef1=_0x39e1a7;logger[_0x35fef1(0x107)](JSON['stringify'](_0x1bbc51));});});},Migration[a1152_0xba9d86(0x11a)]['removeIndex']=function(_0x432044,_0x113bde){const _0x5c9ddb=a1152_0xba9d86,_0x5cf7f6=this;this[_0x5c9ddb(0x102)][_0x5c9ddb(0x119)](function(){const _0x18fb1c=_0x5c9ddb;return _0x5cf7f6['queryInterface'][_0x18fb1c(0x117)](_0x432044,_0x113bde)[_0x18fb1c(0x115)](function(){const _0x194370=_0x18fb1c;logger[_0x194370(0x107)](_0x194370(0x116),_0x432044,_0x113bde);})['catch'](function(_0x1300ee){const _0x359756=_0x18fb1c;logger[_0x359756(0x107)](JSON['stringify'](_0x1300ee));});});},Migration[a1152_0xba9d86(0x11a)]['query']=function(_0xe61b2d){const _0x2bec01=a1152_0xba9d86,_0x479ef9=this;this[_0x2bec01(0x102)][_0x2bec01(0x119)](function(){const _0x341408=_0x2bec01;return _0x479ef9['queryInterface'][_0x341408(0x127)][_0x341408(0x108)](_0xe61b2d)[_0x341408(0x115)](function(){logger['info']('query\x20%s',_0xe61b2d);})[_0x341408(0x106)](function(_0x5b9f42){const _0xd73d6c=_0x341408;logger[_0xd73d6c(0x107)](JSON[_0xd73d6c(0x12f)](_0x5b9f42));});});},Migration[a1152_0xba9d86(0x11a)][a1152_0xba9d86(0x10f)]=function(_0x36dc6f,_0x328753){const _0x315afe=this;this['sequence']['enqueue'](function(){const _0x23dc11=a1152_0x533e;return _0x315afe[_0x23dc11(0x12e)][_0x23dc11(0x10f)](_0x36dc6f,_0x328753)[_0x23dc11(0x115)](function(){const _0x39e8f5=_0x23dc11;logger[_0x39e8f5(0x107)](_0x39e8f5(0x111),_0x328753,_0x36dc6f);})['catch'](function(_0x14bd40){const _0x2a62f0=_0x23dc11;logger[_0x2a62f0(0x107)](util[_0x2a62f0(0x11f)](_0x14bd40,{'showHidden':![],'depth':null}));});});},Migration[a1152_0xba9d86(0x11a)][a1152_0xba9d86(0x120)]=function(_0x73aeef,_0x3a40c9,_0x79d058){const _0x5e810b=a1152_0xba9d86,_0x359d44=this;this[_0x5e810b(0x102)]['enqueue'](function(){const _0x1c79af=_0x5e810b;return _0x359d44[_0x1c79af(0x12e)][_0x1c79af(0x120)](_0x73aeef,_0x3a40c9,_0x79d058)[_0x1c79af(0x115)](function(){const _0x417f21=_0x1c79af;logger['info'](_0x417f21(0x11e),_0x3a40c9,_0x79d058,_0x73aeef);})[_0x1c79af(0x106)](function(_0x110ebf){const _0x2fc06c=_0x1c79af;logger[_0x2fc06c(0x107)](util[_0x2fc06c(0x11f)](_0x110ebf,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1152_0xba9d86(0x109)]=function(_0x543d92){const _0x340e23=a1152_0xba9d86;this[_0x340e23(0x102)]['enqueue'](function(){return _0x543d92();});},module[a1152_0xba9d86(0x110)]={'up':function(_0x43ac13,_0x4d6dda){return new Promise(function(_0x16b5cf){const _0x4a7979=a1152_0x533e,_0x49ec8a=new Migration(_0x43ac13);_0x49ec8a[_0x4a7979(0x10c)](_0x4a7979(0x112),_0x4a7979(0x124),{'type':_0x4d6dda[_0x4a7979(0x11c)]}),_0x49ec8a[_0x4a7979(0x109)](_0x16b5cf);});},'down':function(){const _0x42c7b5=a1152_0xba9d86;return Promise[_0x42c7b5(0x12b)]();}};
\ No newline at end of file
+'use strict';const a1155_0x48f3=['1SVaBCn','removeIndex','query','9140TkQrGn','Changed\x20column\x20%s\x20in\x20table\x20%s','44949pgAdsH','prototype','sequelize','STRING','changeColumn','1llqCdH','113curtEa','sipcallid','28478OdWWHL','catch','queryInterface','sequence','Added\x20column\x20%s\x20to\x20%s','util','info','tail','dropTable','addColumn','37Gtavrv','1371857gIFZFI','enqueue','join','@config/logger','142510yGzszp','690118NZdFVy','removeColumn','then','inspect','query\x20%s','renameColumn','stringify','final','43DQUOCW','exports','654839vnrfnP','table\x20dropped\x20%s','addIndex'];const a1155_0x50dd=function(_0x3c7839,_0x8739aa){_0x3c7839=_0x3c7839-0x160;let _0x48f301=a1155_0x48f3[_0x3c7839];return _0x48f301;};const a1155_0x467fe6=a1155_0x50dd;(function(_0x181a1d,_0x14febc){const _0x266343=a1155_0x50dd;while(!![]){try{const _0xeae6f6=-parseInt(_0x266343(0x16a))*parseInt(_0x266343(0x177))+parseInt(_0x266343(0x181))*parseInt(_0x266343(0x174))+parseInt(_0x266343(0x164))*parseInt(_0x266343(0x184))+parseInt(_0x266343(0x169))+-parseInt(_0x266343(0x182))*parseInt(_0x266343(0x17a))+-parseInt(_0x266343(0x165))+-parseInt(_0x266343(0x17c))*-parseInt(_0x266343(0x172));if(_0xeae6f6===_0x14febc)break;else _0x181a1d['push'](_0x181a1d['shift']());}catch(_0x551e1c){_0x181a1d['push'](_0x181a1d['shift']());}}}(a1155_0x48f3,0xa8397));const util=require(a1155_0x467fe6(0x189)),logger=require(a1155_0x467fe6(0x168))('migration'),Sequence=function(){};Sequence[a1155_0x467fe6(0x17d)][a1155_0x467fe6(0x166)]=function(_0x306150){const _0xbaedf4=a1155_0x467fe6;this[_0xbaedf4(0x161)]=this[_0xbaedf4(0x161)]?this['tail']['finally'](_0x306150):_0x306150();};const Migration=function(_0x34dd22){const _0x909084=a1155_0x467fe6;this[_0x909084(0x186)]=_0x34dd22,this[_0x909084(0x187)]=new Sequence();};Migration['prototype'][a1155_0x467fe6(0x180)]=function(_0x5be513,_0x1a2a94,_0x75c140){const _0x34ef5d=a1155_0x467fe6,_0x3b9a99=this;this[_0x34ef5d(0x187)][_0x34ef5d(0x166)](function(){const _0x402228=_0x34ef5d;return _0x3b9a99[_0x402228(0x186)][_0x402228(0x180)](_0x5be513,_0x1a2a94,_0x75c140)[_0x402228(0x16c)](function(){const _0x2d4961=_0x402228;logger[_0x2d4961(0x160)](_0x2d4961(0x17b),_0x1a2a94,_0x5be513);})[_0x402228(0x185)](function(_0x301336){const _0x30b5ee=_0x402228;logger[_0x30b5ee(0x160)](JSON[_0x30b5ee(0x170)](_0x301336));});});},Migration[a1155_0x467fe6(0x17d)][a1155_0x467fe6(0x163)]=function(_0x4c4262,_0x370d66,_0x2c2616){const _0x597080=a1155_0x467fe6,_0x4bcba9=this;this[_0x597080(0x187)][_0x597080(0x166)](function(){const _0x196dba=_0x597080;return _0x4bcba9[_0x196dba(0x186)][_0x196dba(0x163)](_0x4c4262,_0x370d66,_0x2c2616)[_0x196dba(0x16c)](function(){const _0x553713=_0x196dba;logger['info'](_0x553713(0x188),_0x370d66,_0x4c4262);})[_0x196dba(0x185)](function(_0x483ad3){const _0x4f607f=_0x196dba;logger[_0x4f607f(0x160)](JSON[_0x4f607f(0x170)](_0x483ad3));});});},Migration['prototype'][a1155_0x467fe6(0x162)]=function(_0x536b8c){const _0x318917=this;this['sequence']['enqueue'](function(){const _0x1fcd6c=a1155_0x50dd;return _0x318917[_0x1fcd6c(0x186)][_0x1fcd6c(0x162)](_0x536b8c,{'force':!![]})[_0x1fcd6c(0x16c)](function(){const _0xcb02f6=_0x1fcd6c;logger[_0xcb02f6(0x160)](_0xcb02f6(0x175),_0x536b8c);})[_0x1fcd6c(0x185)](function(_0x333fc9){const _0x357b01=_0x1fcd6c;logger[_0x357b01(0x160)](JSON['stringify'](_0x333fc9));});});},Migration[a1155_0x467fe6(0x17d)][a1155_0x467fe6(0x176)]=function(_0xbc931a,_0x3fd021,_0x2731ab){const _0xdd64f1=a1155_0x467fe6,_0xa56ec3=this;this['sequence'][_0xdd64f1(0x166)](function(){const _0x4eff61=_0xdd64f1;return _0xa56ec3[_0x4eff61(0x186)]['addIndex'](_0xbc931a,_0x3fd021,{'indexName':_0x2731ab})[_0x4eff61(0x16c)](function(){const _0x1aa075=_0x4eff61;logger['info']('addIndex\x20%s\x20%s\x20%s',_0xbc931a,_0x3fd021[_0x1aa075(0x167)](','),_0x2731ab);})[_0x4eff61(0x185)](function(_0x12d3a0){const _0x54cf3d=_0x4eff61;logger[_0x54cf3d(0x160)](JSON[_0x54cf3d(0x170)](_0x12d3a0));});});},Migration[a1155_0x467fe6(0x17d)]['removeIndex']=function(_0x23295b,_0x51d207){const _0x410f01=a1155_0x467fe6,_0xf26c6c=this;this[_0x410f01(0x187)][_0x410f01(0x166)](function(){const _0x444517=_0x410f01;return _0xf26c6c['queryInterface'][_0x444517(0x178)](_0x23295b,_0x51d207)[_0x444517(0x16c)](function(){logger['info']('removeIndex\x20%s\x20%s',_0x23295b,_0x51d207);})['catch'](function(_0x27ce04){const _0x597877=_0x444517;logger[_0x597877(0x160)](JSON[_0x597877(0x170)](_0x27ce04));});});},Migration[a1155_0x467fe6(0x17d)][a1155_0x467fe6(0x179)]=function(_0x1875c9){const _0xea1231=a1155_0x467fe6,_0x226fa0=this;this[_0xea1231(0x187)][_0xea1231(0x166)](function(){const _0x534a15=_0xea1231;return _0x226fa0[_0x534a15(0x186)][_0x534a15(0x17e)][_0x534a15(0x179)](_0x1875c9)[_0x534a15(0x16c)](function(){const _0x5af3ce=_0x534a15;logger[_0x5af3ce(0x160)](_0x5af3ce(0x16e),_0x1875c9);})['catch'](function(_0x126c62){const _0x217a29=_0x534a15;logger[_0x217a29(0x160)](JSON['stringify'](_0x126c62));});});},Migration['prototype']['removeColumn']=function(_0x41a7b3,_0x2b28c4){const _0x10c729=a1155_0x467fe6,_0x3a29e8=this;this[_0x10c729(0x187)][_0x10c729(0x166)](function(){const _0x3db3d4=_0x10c729;return _0x3a29e8['queryInterface'][_0x3db3d4(0x16b)](_0x41a7b3,_0x2b28c4)[_0x3db3d4(0x16c)](function(){const _0x1de7ac=_0x3db3d4;logger[_0x1de7ac(0x160)]('Removed\x20column\x20%s\x20from\x20%s',_0x2b28c4,_0x41a7b3);})[_0x3db3d4(0x185)](function(_0x18d696){const _0x109761=_0x3db3d4;logger[_0x109761(0x160)](util[_0x109761(0x16d)](_0x18d696,{'showHidden':![],'depth':null}));});});},Migration[a1155_0x467fe6(0x17d)][a1155_0x467fe6(0x16f)]=function(_0x47e428,_0x299858,_0x51f680){const _0x13c768=a1155_0x467fe6,_0x47542d=this;this[_0x13c768(0x187)][_0x13c768(0x166)](function(){const _0x1c7b72=_0x13c768;return _0x47542d[_0x1c7b72(0x186)][_0x1c7b72(0x16f)](_0x47e428,_0x299858,_0x51f680)['then'](function(){const _0x49fb8a=_0x1c7b72;logger[_0x49fb8a(0x160)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x299858,_0x51f680,_0x47e428);})['catch'](function(_0x515941){const _0x362161=_0x1c7b72;logger['info'](util[_0x362161(0x16d)](_0x515941,{'showHidden':![],'depth':null}));});});},Migration[a1155_0x467fe6(0x17d)][a1155_0x467fe6(0x171)]=function(_0x2ce33a){const _0x1e5594=a1155_0x467fe6;this[_0x1e5594(0x187)]['enqueue'](function(){return _0x2ce33a();});},module[a1155_0x467fe6(0x173)]={'up':function(_0x2883af,_0xb381bf){return new Promise(function(_0x478301){const _0x402846=a1155_0x50dd,_0xdda99c=new Migration(_0x2883af);_0xdda99c[_0x402846(0x163)]('report_call',_0x402846(0x183),{'type':_0xb381bf[_0x402846(0x17f)]}),_0xdda99c[_0x402846(0x171)](_0x478301);});},'down':function(){return Promise['resolve']();}};
\ No newline at end of file