Built motion from commit 973e3e332e1c8e2f84c4b0cd2e5af794131724f5. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.10.js
index 6acac89..134d9f6 100644 (file)
@@ -1 +1 @@
-const a974_0x3d49=['STRING','queryInterface','sequelize','sequence','finally','report_call','Added\x20column\x20%s\x20to\x20%s','query','removeIndex','../config/logger','inspect','removeIndex\x20%s\x20%s','info','Changed\x20column\x20%s\x20in\x20table\x20%s','tail','join','prototype','util','migration','addColumn','final','catch','stringify','sipcallid','table\x20dropped\x20%s','changeColumn','removeColumn','Removed\x20column\x20%s\x20from\x20%s','enqueue','then','exports'];(function(_0x371b91,_0x3d498c){const _0xa10c6f=function(_0x12a161){while(--_0x12a161){_0x371b91['push'](_0x371b91['shift']());}};_0xa10c6f(++_0x3d498c);}(a974_0x3d49,0x17a));const a974_0xa10c=function(_0x371b91,_0x3d498c){_0x371b91=_0x371b91-0x0;let _0xa10c6f=a974_0x3d49[_0x371b91];return _0xa10c6f;};const _0x4affe8=a974_0xa10c;'use strict';const util=require(_0x4affe8('0xb')),logger=require(_0x4affe8('0x3'))(_0x4affe8('0xc')),Sequence=function(){};Sequence[_0x4affe8('0xa')]['enqueue']=function(_0x12a161){const _0x186105=_0x4affe8;this[_0x186105('0x8')]=this[_0x186105('0x8')]?this[_0x186105('0x8')][_0x186105('0x1d')](_0x12a161):_0x12a161();};const Migration=function(_0x5be174){const _0x3ad0d5=_0x4affe8;this[_0x3ad0d5('0x1a')]=_0x5be174,this[_0x3ad0d5('0x1c')]=new Sequence();};Migration[_0x4affe8('0xa')][_0x4affe8('0x13')]=function(_0x3d8900,_0x3173a0,_0x254d5a){const _0x956bc9=_0x4affe8,_0xe25cb6=this;this['sequence'][_0x956bc9('0x16')](function(){const _0x4f6dce=_0x956bc9;return _0xe25cb6['queryInterface'][_0x4f6dce('0x13')](_0x3d8900,_0x3173a0,_0x254d5a)['then'](function(){const _0x3b8b49=_0x4f6dce;logger[_0x3b8b49('0x6')](_0x3b8b49('0x7'),_0x3173a0,_0x3d8900);})[_0x4f6dce('0xf')](function(_0x58f389){logger['info'](JSON['stringify'](_0x58f389));});});},Migration[_0x4affe8('0xa')][_0x4affe8('0xd')]=function(_0x1b16fd,_0x12208e,_0x26d990){const _0x57ca08=_0x4affe8,_0x4f9a87=this;this[_0x57ca08('0x1c')][_0x57ca08('0x16')](function(){const _0x20d945=_0x57ca08;return _0x4f9a87[_0x20d945('0x1a')][_0x20d945('0xd')](_0x1b16fd,_0x12208e,_0x26d990)[_0x20d945('0x17')](function(){const _0x35e2ff=_0x20d945;logger[_0x35e2ff('0x6')](_0x35e2ff('0x0'),_0x12208e,_0x1b16fd);})[_0x20d945('0xf')](function(_0x363615){const _0x4244c9=_0x20d945;logger[_0x4244c9('0x6')](JSON[_0x4244c9('0x10')](_0x363615));});});},Migration['prototype']['dropTable']=function(_0x29afdb){const _0x27299f=_0x4affe8,_0x2a1d0a=this;this['sequence'][_0x27299f('0x16')](function(){const _0x26f32f=_0x27299f;return _0x2a1d0a[_0x26f32f('0x1a')]['dropTable'](_0x29afdb,{'force':!![]})['then'](function(){const _0x3247b0=_0x26f32f;logger['info'](_0x3247b0('0x12'),_0x29afdb);})[_0x26f32f('0xf')](function(_0x33c874){const _0x5e053a=_0x26f32f;logger[_0x5e053a('0x6')](JSON['stringify'](_0x33c874));});});},Migration[_0x4affe8('0xa')]['addIndex']=function(_0x5b85b7,_0x1547ef,_0xd495fd){const _0x1acb32=_0x4affe8,_0xdd314b=this;this[_0x1acb32('0x1c')][_0x1acb32('0x16')](function(){const _0x33ab82=_0x1acb32;return _0xdd314b[_0x33ab82('0x1a')]['addIndex'](_0x5b85b7,_0x1547ef,{'indexName':_0xd495fd})[_0x33ab82('0x17')](function(){const _0x3c1c64=_0x33ab82;logger[_0x3c1c64('0x6')]('addIndex\x20%s\x20%s\x20%s',_0x5b85b7,_0x1547ef[_0x3c1c64('0x9')](','),_0xd495fd);})['catch'](function(_0x1f93ce){const _0x738ae1=_0x33ab82;logger['info'](JSON[_0x738ae1('0x10')](_0x1f93ce));});});},Migration['prototype'][_0x4affe8('0x2')]=function(_0x32878d,_0x33dec5){const _0x2b1e2d=_0x4affe8,_0x51a0f7=this;this[_0x2b1e2d('0x1c')][_0x2b1e2d('0x16')](function(){const _0x28dbae=_0x2b1e2d;return _0x51a0f7[_0x28dbae('0x1a')][_0x28dbae('0x2')](_0x32878d,_0x33dec5)[_0x28dbae('0x17')](function(){const _0x51b886=_0x28dbae;logger[_0x51b886('0x6')](_0x51b886('0x5'),_0x32878d,_0x33dec5);})['catch'](function(_0x1a2faf){const _0x25dc51=_0x28dbae;logger[_0x25dc51('0x6')](JSON['stringify'](_0x1a2faf));});});},Migration[_0x4affe8('0xa')][_0x4affe8('0x1')]=function(_0x38e954){const _0x7443a9=_0x4affe8,_0x12e71c=this;this[_0x7443a9('0x1c')]['enqueue'](function(){const _0x908927=_0x7443a9;return _0x12e71c[_0x908927('0x1a')][_0x908927('0x1b')][_0x908927('0x1')](_0x38e954)[_0x908927('0x17')](function(){const _0x3bc679=_0x908927;logger[_0x3bc679('0x6')]('query\x20%s',_0x38e954);})['catch'](function(_0x24abeb){logger['info'](JSON['stringify'](_0x24abeb));});});},Migration[_0x4affe8('0xa')][_0x4affe8('0x14')]=function(_0x45569b,_0x485c25){const _0x5662a6=_0x4affe8,_0xdd20e5=this;this['sequence'][_0x5662a6('0x16')](function(){const _0x94fa8c=_0x5662a6;return _0xdd20e5[_0x94fa8c('0x1a')][_0x94fa8c('0x14')](_0x45569b,_0x485c25)[_0x94fa8c('0x17')](function(){const _0x4a6fdc=_0x94fa8c;logger[_0x4a6fdc('0x6')](_0x4a6fdc('0x15'),_0x485c25,_0x45569b);})[_0x94fa8c('0xf')](function(_0x4486c4){const _0xe9b493=_0x94fa8c;logger[_0xe9b493('0x6')](util[_0xe9b493('0x4')](_0x4486c4,{'showHidden':![],'depth':null}));});});},Migration[_0x4affe8('0xa')]['renameColumn']=function(_0xc735d5,_0x451b5b,_0xad38d7){const _0x17a286=this;this['sequence']['enqueue'](function(){const _0x4d7db5=a974_0xa10c;return _0x17a286['queryInterface']['renameColumn'](_0xc735d5,_0x451b5b,_0xad38d7)['then'](function(){const _0x1fd9f4=a974_0xa10c;logger[_0x1fd9f4('0x6')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x451b5b,_0xad38d7,_0xc735d5);})[_0x4d7db5('0xf')](function(_0x3cf0aa){const _0x1923b6=_0x4d7db5;logger[_0x1923b6('0x6')](util[_0x1923b6('0x4')](_0x3cf0aa,{'showHidden':![],'depth':null}));});});},Migration[_0x4affe8('0xa')][_0x4affe8('0xe')]=function(_0x5ce654){const _0x3f3424=_0x4affe8;this['sequence'][_0x3f3424('0x16')](function(){return _0x5ce654();});},module[_0x4affe8('0x18')]={'up':function(_0x3da105,_0x378c91){return new Promise(function(_0x5e381b){const _0x181e7f=a974_0xa10c,_0x1c8f54=new Migration(_0x3da105);_0x1c8f54[_0x181e7f('0xd')](_0x181e7f('0x1e'),_0x181e7f('0x11'),{'type':_0x378c91[_0x181e7f('0x19')]}),_0x1c8f54[_0x181e7f('0xe')](_0x5e381b);});},'down':function(){}};
\ No newline at end of file
+const a974_0x58f5=['Removed\x20column\x20%s\x20from\x20%s','removeIndex','removeColumn','removeIndex\x20%s\x20%s','catch','changeColumn','dropTable','enqueue','query','sipcallid','final','../config/logger','renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','exports','util','query\x20%s','Added\x20column\x20%s\x20to\x20%s','table\x20dropped\x20%s','inspect','stringify','info','sequence','then','sequelize','tail','addIndex\x20%s\x20%s\x20%s','addIndex','prototype','addColumn','queryInterface','migration'];(function(_0x8bd959,_0x58f55b){const _0x6da789=function(_0x242e8e){while(--_0x242e8e){_0x8bd959['push'](_0x8bd959['shift']());}};_0x6da789(++_0x58f55b);}(a974_0x58f5,0x112));const a974_0x6da7=function(_0x8bd959,_0x58f55b){_0x8bd959=_0x8bd959-0x0;let _0x6da789=a974_0x58f5[_0x8bd959];return _0x6da789;};const _0x5cd72b=a974_0x6da7;'use strict';const util=require(_0x5cd72b('0x1d')),logger=require(_0x5cd72b('0x19'))(_0x5cd72b('0xd')),Sequence=function(){};Sequence[_0x5cd72b('0xa')][_0x5cd72b('0x15')]=function(_0x242e8e){const _0x11d81c=_0x5cd72b;this[_0x11d81c('0x7')]=this[_0x11d81c('0x7')]?this[_0x11d81c('0x7')]['finally'](_0x242e8e):_0x242e8e();};const Migration=function(_0x38ca3f){const _0x3f9f6f=_0x5cd72b;this[_0x3f9f6f('0xc')]=_0x38ca3f,this[_0x3f9f6f('0x4')]=new Sequence();};Migration['prototype'][_0x5cd72b('0x13')]=function(_0x37be04,_0xba666d,_0x227cb9){const _0x209535=_0x5cd72b,_0x14cd1c=this;this[_0x209535('0x4')][_0x209535('0x15')](function(){const _0x3bb7ea=_0x209535;return _0x14cd1c['queryInterface']['changeColumn'](_0x37be04,_0xba666d,_0x227cb9)[_0x3bb7ea('0x5')](function(){const _0x3e2721=_0x3bb7ea;logger[_0x3e2721('0x3')](_0x3e2721('0x1b'),_0xba666d,_0x37be04);})['catch'](function(_0x180a42){const _0x21ee5c=_0x3bb7ea;logger['info'](JSON[_0x21ee5c('0x2')](_0x180a42));});});},Migration['prototype'][_0x5cd72b('0xb')]=function(_0x5863a7,_0x3f68c0,_0x2a2301){const _0xb23ba0=_0x5cd72b,_0x5559b2=this;this[_0xb23ba0('0x4')][_0xb23ba0('0x15')](function(){const _0x480754=_0xb23ba0;return _0x5559b2['queryInterface']['addColumn'](_0x5863a7,_0x3f68c0,_0x2a2301)[_0x480754('0x5')](function(){const _0x2858f2=_0x480754;logger['info'](_0x2858f2('0x1f'),_0x3f68c0,_0x5863a7);})[_0x480754('0x12')](function(_0x30389d){const _0x4b2f0e=_0x480754;logger[_0x4b2f0e('0x3')](JSON[_0x4b2f0e('0x2')](_0x30389d));});});},Migration[_0x5cd72b('0xa')]['dropTable']=function(_0x3f8edf){const _0x34f46d=_0x5cd72b,_0x4ef1c0=this;this[_0x34f46d('0x4')][_0x34f46d('0x15')](function(){const _0x136602=_0x34f46d;return _0x4ef1c0[_0x136602('0xc')][_0x136602('0x14')](_0x3f8edf,{'force':!![]})[_0x136602('0x5')](function(){const _0x36220a=_0x136602;logger[_0x36220a('0x3')](_0x36220a('0x0'),_0x3f8edf);})[_0x136602('0x12')](function(_0x460afc){const _0x32a4f1=_0x136602;logger[_0x32a4f1('0x3')](JSON[_0x32a4f1('0x2')](_0x460afc));});});},Migration['prototype']['addIndex']=function(_0x41c3b8,_0x7c4bb6,_0x5833a6){const _0x1b0e92=_0x5cd72b,_0x2d0682=this;this['sequence'][_0x1b0e92('0x15')](function(){const _0x1fadf1=_0x1b0e92;return _0x2d0682[_0x1fadf1('0xc')][_0x1fadf1('0x9')](_0x41c3b8,_0x7c4bb6,{'indexName':_0x5833a6})[_0x1fadf1('0x5')](function(){const _0x406ff4=_0x1fadf1;logger[_0x406ff4('0x3')](_0x406ff4('0x8'),_0x41c3b8,_0x7c4bb6['join'](','),_0x5833a6);})[_0x1fadf1('0x12')](function(_0x5a0495){const _0x5bc576=_0x1fadf1;logger['info'](JSON[_0x5bc576('0x2')](_0x5a0495));});});},Migration[_0x5cd72b('0xa')][_0x5cd72b('0xf')]=function(_0x5e60da,_0x202b35){const _0xa7dfe=_0x5cd72b,_0x2c2782=this;this['sequence'][_0xa7dfe('0x15')](function(){const _0x2f8275=_0xa7dfe;return _0x2c2782[_0x2f8275('0xc')][_0x2f8275('0xf')](_0x5e60da,_0x202b35)[_0x2f8275('0x5')](function(){const _0x35f808=_0x2f8275;logger[_0x35f808('0x3')](_0x35f808('0x11'),_0x5e60da,_0x202b35);})[_0x2f8275('0x12')](function(_0x95796b){const _0x699adb=_0x2f8275;logger[_0x699adb('0x3')](JSON['stringify'](_0x95796b));});});},Migration[_0x5cd72b('0xa')][_0x5cd72b('0x16')]=function(_0x4b79dc){const _0x1d2e95=_0x5cd72b,_0x48d42b=this;this[_0x1d2e95('0x4')]['enqueue'](function(){const _0x317a6a=_0x1d2e95;return _0x48d42b['queryInterface'][_0x317a6a('0x6')][_0x317a6a('0x16')](_0x4b79dc)[_0x317a6a('0x5')](function(){const _0x3d8d96=_0x317a6a;logger[_0x3d8d96('0x3')](_0x3d8d96('0x1e'),_0x4b79dc);})[_0x317a6a('0x12')](function(_0x2508ac){const _0x121b59=_0x317a6a;logger['info'](JSON[_0x121b59('0x2')](_0x2508ac));});});},Migration[_0x5cd72b('0xa')][_0x5cd72b('0x10')]=function(_0x4e9608,_0x2ed7df){const _0x1eeef2=_0x5cd72b,_0x4dd248=this;this[_0x1eeef2('0x4')][_0x1eeef2('0x15')](function(){const _0x1ea579=_0x1eeef2;return _0x4dd248[_0x1ea579('0xc')][_0x1ea579('0x10')](_0x4e9608,_0x2ed7df)[_0x1ea579('0x5')](function(){const _0x2fe33a=_0x1ea579;logger['info'](_0x2fe33a('0xe'),_0x2ed7df,_0x4e9608);})[_0x1ea579('0x12')](function(_0x13bc9d){const _0x57287f=_0x1ea579;logger[_0x57287f('0x3')](util[_0x57287f('0x1')](_0x13bc9d,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x5cd72b('0x1a')]=function(_0x5b04ee,_0x3d8bfa,_0x50b43b){const _0x1ce232=_0x5cd72b,_0xe01378=this;this[_0x1ce232('0x4')][_0x1ce232('0x15')](function(){const _0x4cf229=_0x1ce232;return _0xe01378[_0x4cf229('0xc')][_0x4cf229('0x1a')](_0x5b04ee,_0x3d8bfa,_0x50b43b)[_0x4cf229('0x5')](function(){const _0x1a417f=_0x4cf229;logger[_0x1a417f('0x3')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x3d8bfa,_0x50b43b,_0x5b04ee);})[_0x4cf229('0x12')](function(_0x43e2ff){const _0x11f59c=_0x4cf229;logger[_0x11f59c('0x3')](util[_0x11f59c('0x1')](_0x43e2ff,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x5cd72b('0x18')]=function(_0x19d1ca){const _0x46661e=_0x5cd72b;this[_0x46661e('0x4')]['enqueue'](function(){return _0x19d1ca();});},module[_0x5cd72b('0x1c')]={'up':function(_0x2aa6af,_0x39e8ed){return new Promise(function(_0x22b05c){const _0x7ccd86=a974_0x6da7,_0x3ad936=new Migration(_0x2aa6af);_0x3ad936[_0x7ccd86('0xb')]('report_call',_0x7ccd86('0x17'),{'type':_0x39e8ed['STRING']}),_0x3ad936[_0x7ccd86('0x18')](_0x22b05c);});},'down':function(){}};
\ No newline at end of file