Built motion from commit 973e3e332e1c8e2f84c4b0cd2e5af794131724f5. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.91.js
index e43d74c..c3be1f1 100644 (file)
@@ -1 +1 @@
-const a983_0x2120=['tail','dropTable','catch','query\x20%s','renameColumn','final','queryInterface','removeIndex','info','finally','enqueue','sequelize','report_call','exports','prototype','table\x20dropped\x20%s','addColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','then','addIndex','addIndex\x20%s\x20%s\x20%s','sipcallid','Changed\x20column\x20%s\x20in\x20table\x20%s','Removed\x20column\x20%s\x20from\x20%s','stringify','migration','sequence','removeColumn','query','join','STRING','inspect'];(function(_0x559133,_0x212091){const _0x37f94b=function(_0x4819ce){while(--_0x4819ce){_0x559133['push'](_0x559133['shift']());}};_0x37f94b(++_0x212091);}(a983_0x2120,0x6e));const a983_0x37f9=function(_0x559133,_0x212091){_0x559133=_0x559133-0x0;let _0x37f94b=a983_0x2120[_0x559133];return _0x37f94b;};const _0x11c01e=a983_0x37f9;'use strict';const util=require('util'),logger=require('../config/logger')(_0x11c01e('0xb')),Sequence=function(){};Sequence[_0x11c01e('0x0')]['enqueue']=function(_0x4819ce){const _0x450080=_0x11c01e;this[_0x450080('0x12')]=this[_0x450080('0x12')]?this[_0x450080('0x12')][_0x450080('0x1b')](_0x4819ce):_0x4819ce();};const Migration=function(_0x357f48){const _0x4a2844=_0x11c01e;this['queryInterface']=_0x357f48,this[_0x4a2844('0xc')]=new Sequence();};Migration[_0x11c01e('0x0')]['changeColumn']=function(_0x23e317,_0x3d16a2,_0x223d74){const _0x5a63e4=_0x11c01e,_0x24a845=this;this[_0x5a63e4('0xc')][_0x5a63e4('0x1c')](function(){const _0x120f61=_0x5a63e4;return _0x24a845[_0x120f61('0x18')]['changeColumn'](_0x23e317,_0x3d16a2,_0x223d74)['then'](function(){const _0x4ad53e=_0x120f61;logger['info'](_0x4ad53e('0x8'),_0x3d16a2,_0x23e317);})[_0x120f61('0x14')](function(_0x1868d0){const _0x50ace3=_0x120f61;logger['info'](JSON[_0x50ace3('0xa')](_0x1868d0));});});},Migration[_0x11c01e('0x0')]['addColumn']=function(_0x59f4c9,_0x4c8d0c,_0x59ec58){const _0xdfa4f2=_0x11c01e,_0x34ef95=this;this[_0xdfa4f2('0xc')][_0xdfa4f2('0x1c')](function(){const _0x48c961=_0xdfa4f2;return _0x34ef95[_0x48c961('0x18')]['addColumn'](_0x59f4c9,_0x4c8d0c,_0x59ec58)[_0x48c961('0x4')](function(){const _0x56bb5a=_0x48c961;logger[_0x56bb5a('0x1a')]('Added\x20column\x20%s\x20to\x20%s',_0x4c8d0c,_0x59f4c9);})[_0x48c961('0x14')](function(_0x46056a){const _0x4bd4de=_0x48c961;logger[_0x4bd4de('0x1a')](JSON[_0x4bd4de('0xa')](_0x46056a));});});},Migration[_0x11c01e('0x0')][_0x11c01e('0x13')]=function(_0xdcff5b){const _0x524c83=_0x11c01e,_0x337599=this;this[_0x524c83('0xc')][_0x524c83('0x1c')](function(){const _0x7673f6=_0x524c83;return _0x337599[_0x7673f6('0x18')]['dropTable'](_0xdcff5b,{'force':!![]})[_0x7673f6('0x4')](function(){const _0x33e1b4=_0x7673f6;logger[_0x33e1b4('0x1a')](_0x33e1b4('0x1'),_0xdcff5b);})[_0x7673f6('0x14')](function(_0x962498){const _0xc5e671=_0x7673f6;logger['info'](JSON[_0xc5e671('0xa')](_0x962498));});});},Migration[_0x11c01e('0x0')][_0x11c01e('0x5')]=function(_0x300c4b,_0x2172bc,_0x517cc0){const _0x226e05=_0x11c01e,_0x59ca88=this;this[_0x226e05('0xc')][_0x226e05('0x1c')](function(){const _0x452e9b=_0x226e05;return _0x59ca88[_0x452e9b('0x18')]['addIndex'](_0x300c4b,_0x2172bc,{'indexName':_0x517cc0})[_0x452e9b('0x4')](function(){const _0x2a19c6=_0x452e9b;logger[_0x2a19c6('0x1a')](_0x2a19c6('0x6'),_0x300c4b,_0x2172bc[_0x2a19c6('0xf')](','),_0x517cc0);})[_0x452e9b('0x14')](function(_0x2ded53){logger['info'](JSON['stringify'](_0x2ded53));});});},Migration[_0x11c01e('0x0')][_0x11c01e('0x19')]=function(_0x285747,_0x137d8a){const _0x38a2b5=_0x11c01e,_0x22f096=this;this[_0x38a2b5('0xc')][_0x38a2b5('0x1c')](function(){const _0x304d57=_0x38a2b5;return _0x22f096['queryInterface']['removeIndex'](_0x285747,_0x137d8a)[_0x304d57('0x4')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x285747,_0x137d8a);})['catch'](function(_0x2c57ee){const _0x72a740=_0x304d57;logger[_0x72a740('0x1a')](JSON[_0x72a740('0xa')](_0x2c57ee));});});},Migration[_0x11c01e('0x0')][_0x11c01e('0xe')]=function(_0xc1668d){const _0x5a0a24=_0x11c01e,_0x2fcd89=this;this[_0x5a0a24('0xc')][_0x5a0a24('0x1c')](function(){const _0x39e1e6=_0x5a0a24;return _0x2fcd89[_0x39e1e6('0x18')][_0x39e1e6('0x1d')]['query'](_0xc1668d)['then'](function(){const _0x1450b0=_0x39e1e6;logger[_0x1450b0('0x1a')](_0x1450b0('0x15'),_0xc1668d);})[_0x39e1e6('0x14')](function(_0x3357da){const _0x3606b2=_0x39e1e6;logger[_0x3606b2('0x1a')](JSON['stringify'](_0x3357da));});});},Migration[_0x11c01e('0x0')]['removeColumn']=function(_0x1cbd8e,_0x52d3d6){const _0x577cb7=_0x11c01e,_0x322f8c=this;this[_0x577cb7('0xc')][_0x577cb7('0x1c')](function(){const _0x650b6f=_0x577cb7;return _0x322f8c['queryInterface'][_0x650b6f('0xd')](_0x1cbd8e,_0x52d3d6)[_0x650b6f('0x4')](function(){const _0x57eb74=_0x650b6f;logger[_0x57eb74('0x1a')](_0x57eb74('0x9'),_0x52d3d6,_0x1cbd8e);})[_0x650b6f('0x14')](function(_0x1041c0){const _0x33cd9f=_0x650b6f;logger[_0x33cd9f('0x1a')](util[_0x33cd9f('0x11')](_0x1041c0,{'showHidden':![],'depth':null}));});});},Migration[_0x11c01e('0x0')][_0x11c01e('0x16')]=function(_0x1c0c93,_0x2549b9,_0x3c47c1){const _0x4c19ea=_0x11c01e,_0x568c74=this;this[_0x4c19ea('0xc')][_0x4c19ea('0x1c')](function(){const _0x24b561=_0x4c19ea;return _0x568c74[_0x24b561('0x18')][_0x24b561('0x16')](_0x1c0c93,_0x2549b9,_0x3c47c1)[_0x24b561('0x4')](function(){const _0x21df8b=_0x24b561;logger[_0x21df8b('0x1a')](_0x21df8b('0x3'),_0x2549b9,_0x3c47c1,_0x1c0c93);})[_0x24b561('0x14')](function(_0x444b09){const _0x390084=_0x24b561;logger[_0x390084('0x1a')](util[_0x390084('0x11')](_0x444b09,{'showHidden':![],'depth':null}));});});},Migration[_0x11c01e('0x0')][_0x11c01e('0x17')]=function(_0x1c5c69){const _0x567cc=_0x11c01e;this[_0x567cc('0xc')][_0x567cc('0x1c')](function(){return _0x1c5c69();});},module[_0x11c01e('0x1f')]={'up':function(_0x4ffabd,_0x2436ad){return new Promise(function(_0xa2e6ef){const _0x421050=a983_0x37f9,_0x4ff8cb=new Migration(_0x4ffabd);_0x4ff8cb[_0x421050('0x2')](_0x421050('0x1e'),_0x421050('0x7'),{'type':_0x2436ad[_0x421050('0x10')]}),_0x4ff8cb[_0x421050('0x17')](_0xa2e6ef);});},'down':function(){}};
\ No newline at end of file
+const a983_0x210e=['STRING','Added\x20column\x20%s\x20to\x20%s','changeColumn','removeIndex','stringify','catch','table\x20dropped\x20%s','addColumn','queryInterface','then','finally','enqueue','addIndex','util','Removed\x20column\x20%s\x20from\x20%s','exports','join','removeIndex\x20%s\x20%s','final','query','removeColumn','renameColumn','sipcallid','info','addIndex\x20%s\x20%s\x20%s','sequence','report_call','inspect','tail','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','dropTable','prototype'];(function(_0x5c9197,_0x210e69){const _0x3cedd7=function(_0x1fbdfd){while(--_0x1fbdfd){_0x5c9197['push'](_0x5c9197['shift']());}};_0x3cedd7(++_0x210e69);}(a983_0x210e,0xd0));const a983_0x3ced=function(_0x5c9197,_0x210e69){_0x5c9197=_0x5c9197-0x0;let _0x3cedd7=a983_0x210e[_0x5c9197];return _0x3cedd7;};const _0x9dbb3f=a983_0x3ced;'use strict';const util=require(_0x9dbb3f('0x1d')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x9dbb3f('0xf')][_0x9dbb3f('0x1b')]=function(_0x1fbdfd){const _0xe1ea28=_0x9dbb3f;this[_0xe1ea28('0xc')]=this[_0xe1ea28('0xc')]?this[_0xe1ea28('0xc')][_0xe1ea28('0x1a')](_0x1fbdfd):_0x1fbdfd();};const Migration=function(_0xec0c78){const _0xe43cc4=_0x9dbb3f;this[_0xe43cc4('0x18')]=_0xec0c78,this[_0xe43cc4('0x9')]=new Sequence();};Migration[_0x9dbb3f('0xf')][_0x9dbb3f('0x12')]=function(_0x12f7e6,_0x5f4336,_0x1342df){const _0x34241e=_0x9dbb3f,_0x22e7bf=this;this[_0x34241e('0x9')][_0x34241e('0x1b')](function(){const _0x4d8ce6=_0x34241e;return _0x22e7bf[_0x4d8ce6('0x18')][_0x4d8ce6('0x12')](_0x12f7e6,_0x5f4336,_0x1342df)[_0x4d8ce6('0x19')](function(){const _0x5203bf=_0x4d8ce6;logger[_0x5203bf('0x7')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x5f4336,_0x12f7e6);})['catch'](function(_0x414c00){const _0x33a4e8=_0x4d8ce6;logger[_0x33a4e8('0x7')](JSON['stringify'](_0x414c00));});});},Migration['prototype'][_0x9dbb3f('0x17')]=function(_0x23b828,_0x24a465,_0x52e48c){const _0x4523c5=_0x9dbb3f,_0x1e3152=this;this[_0x4523c5('0x9')][_0x4523c5('0x1b')](function(){const _0xe9421d=_0x4523c5;return _0x1e3152['queryInterface']['addColumn'](_0x23b828,_0x24a465,_0x52e48c)[_0xe9421d('0x19')](function(){const _0xe009f3=_0xe9421d;logger['info'](_0xe009f3('0x11'),_0x24a465,_0x23b828);})['catch'](function(_0x53e95c){const _0x1699f6=_0xe9421d;logger[_0x1699f6('0x7')](JSON[_0x1699f6('0x14')](_0x53e95c));});});},Migration['prototype'][_0x9dbb3f('0xe')]=function(_0x53beb0){const _0x3075c9=_0x9dbb3f,_0x5141ca=this;this[_0x3075c9('0x9')][_0x3075c9('0x1b')](function(){const _0x999330=_0x3075c9;return _0x5141ca[_0x999330('0x18')][_0x999330('0xe')](_0x53beb0,{'force':!![]})[_0x999330('0x19')](function(){const _0x10ce62=_0x999330;logger[_0x10ce62('0x7')](_0x10ce62('0x16'),_0x53beb0);})['catch'](function(_0x59597e){const _0x56588c=_0x999330;logger[_0x56588c('0x7')](JSON[_0x56588c('0x14')](_0x59597e));});});},Migration[_0x9dbb3f('0xf')]['addIndex']=function(_0x71afd8,_0x23055c,_0x33e194){const _0x430503=_0x9dbb3f,_0x3c356e=this;this['sequence'][_0x430503('0x1b')](function(){const _0x4ef045=_0x430503;return _0x3c356e[_0x4ef045('0x18')][_0x4ef045('0x1c')](_0x71afd8,_0x23055c,{'indexName':_0x33e194})[_0x4ef045('0x19')](function(){const _0x2168af=_0x4ef045;logger[_0x2168af('0x7')](_0x2168af('0x8'),_0x71afd8,_0x23055c[_0x2168af('0x0')](','),_0x33e194);})[_0x4ef045('0x15')](function(_0xbd7af8){const _0xa1e04c=_0x4ef045;logger['info'](JSON[_0xa1e04c('0x14')](_0xbd7af8));});});},Migration['prototype'][_0x9dbb3f('0x13')]=function(_0xdd81de,_0x4794ad){const _0x4b0f0d=_0x9dbb3f,_0x2a1b09=this;this[_0x4b0f0d('0x9')][_0x4b0f0d('0x1b')](function(){const _0x324386=_0x4b0f0d;return _0x2a1b09['queryInterface'][_0x324386('0x13')](_0xdd81de,_0x4794ad)['then'](function(){const _0x39851f=_0x324386;logger[_0x39851f('0x7')](_0x39851f('0x1'),_0xdd81de,_0x4794ad);})[_0x324386('0x15')](function(_0x5256dc){const _0x467076=_0x324386;logger[_0x467076('0x7')](JSON[_0x467076('0x14')](_0x5256dc));});});},Migration[_0x9dbb3f('0xf')]['query']=function(_0x3b0bb1){const _0x514768=_0x9dbb3f,_0xbdbef2=this;this[_0x514768('0x9')][_0x514768('0x1b')](function(){const _0x5a641f=_0x514768;return _0xbdbef2[_0x5a641f('0x18')]['sequelize'][_0x5a641f('0x3')](_0x3b0bb1)[_0x5a641f('0x19')](function(){logger['info']('query\x20%s',_0x3b0bb1);})['catch'](function(_0x180533){const _0x35dca0=_0x5a641f;logger[_0x35dca0('0x7')](JSON[_0x35dca0('0x14')](_0x180533));});});},Migration[_0x9dbb3f('0xf')]['removeColumn']=function(_0x2ce56d,_0x54d57c){const _0x1b2885=_0x9dbb3f,_0x79f814=this;this[_0x1b2885('0x9')][_0x1b2885('0x1b')](function(){const _0x4199d8=_0x1b2885;return _0x79f814[_0x4199d8('0x18')][_0x4199d8('0x4')](_0x2ce56d,_0x54d57c)[_0x4199d8('0x19')](function(){const _0x3124a1=_0x4199d8;logger[_0x3124a1('0x7')](_0x3124a1('0x1e'),_0x54d57c,_0x2ce56d);})['catch'](function(_0x1fb1cb){const _0xa72ec0=_0x4199d8;logger[_0xa72ec0('0x7')](util[_0xa72ec0('0xb')](_0x1fb1cb,{'showHidden':![],'depth':null}));});});},Migration[_0x9dbb3f('0xf')][_0x9dbb3f('0x5')]=function(_0x286938,_0x2cbc59,_0x13f841){const _0x2444bb=_0x9dbb3f,_0x5954f7=this;this[_0x2444bb('0x9')]['enqueue'](function(){const _0x41b02c=_0x2444bb;return _0x5954f7[_0x41b02c('0x18')][_0x41b02c('0x5')](_0x286938,_0x2cbc59,_0x13f841)['then'](function(){const _0x1ce390=_0x41b02c;logger[_0x1ce390('0x7')](_0x1ce390('0xd'),_0x2cbc59,_0x13f841,_0x286938);})['catch'](function(_0x54c31a){const _0x4d9776=_0x41b02c;logger['info'](util[_0x4d9776('0xb')](_0x54c31a,{'showHidden':![],'depth':null}));});});},Migration[_0x9dbb3f('0xf')][_0x9dbb3f('0x2')]=function(_0x2dff9c){const _0x17a89f=_0x9dbb3f;this[_0x17a89f('0x9')][_0x17a89f('0x1b')](function(){return _0x2dff9c();});},module[_0x9dbb3f('0x1f')]={'up':function(_0x1a6a9d,_0x50ec76){return new Promise(function(_0x3af08f){const _0x4db506=a983_0x3ced,_0x124ec9=new Migration(_0x1a6a9d);_0x124ec9[_0x4db506('0x17')](_0x4db506('0xa'),_0x4db506('0x6'),{'type':_0x50ec76[_0x4db506('0x10')]}),_0x124ec9[_0x4db506('0x2')](_0x3af08f);});},'down':function(){}};
\ No newline at end of file