Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.16.js
index 36e7164..0eed423 100644 (file)
@@ -1 +1 @@
-const a999_0x1343=['Removed\x20column\x20%s\x20from\x20%s','query\x20%s','addColumn','util','Changed\x20column\x20%s\x20in\x20table\x20%s','info','join','final','dropTable','indicesType','renameColumn','indexName','table\x20dropped\x20%s','mobile','then','finally','removeIndex','removeIndex\x20%s\x20%s','phone','queryInterface','sequence','migration','sequelize','cm_contacts','fti_cm_contacts','removeColumn','tail','enqueue','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','firstName','FULLTEXT','../config/logger','changeColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','stringify','prototype','query','addIndex','inspect','email','catch'];(function(_0x52fac5,_0x134356){const _0xd8198e=function(_0x497b71){while(--_0x497b71){_0x52fac5['push'](_0x52fac5['shift']());}};_0xd8198e(++_0x134356);}(a999_0x1343,0x1f4));const a999_0xd819=function(_0x52fac5,_0x134356){_0x52fac5=_0x52fac5-0x0;let _0xd8198e=a999_0x1343[_0x52fac5];return _0xd8198e;};const _0x37b103=a999_0xd819;'use strict';const util=require(_0x37b103('0x24')),logger=require(_0x37b103('0x17'))(_0x37b103('0xd')),Sequence=function(){};Sequence[_0x37b103('0x1b')][_0x37b103('0x13')]=function(_0x497b71){const _0xd62d11=_0x37b103;this[_0xd62d11('0x12')]=this['tail']?this['tail'][_0xd62d11('0x7')](_0x497b71):_0x497b71();};const Migration=function(_0x3f10d9){const _0x1becec=_0x37b103;this[_0x1becec('0xb')]=_0x3f10d9,this[_0x1becec('0xc')]=new Sequence();};Migration['prototype'][_0x37b103('0x18')]=function(_0x506115,_0x3e3805,_0x4758cf){const _0xb43809=_0x37b103,_0x586abf=this;this['sequence'][_0xb43809('0x13')](function(){const _0x4cd7d6=_0xb43809;return _0x586abf[_0x4cd7d6('0xb')][_0x4cd7d6('0x18')](_0x506115,_0x3e3805,_0x4758cf)[_0x4cd7d6('0x6')](function(){const _0x183f8a=_0x4cd7d6;logger[_0x183f8a('0x26')](_0x183f8a('0x25'),_0x3e3805,_0x506115);})['catch'](function(_0xe8caf9){const _0xee625b=_0x4cd7d6;logger[_0xee625b('0x26')](JSON[_0xee625b('0x1a')](_0xe8caf9));});});},Migration['prototype'][_0x37b103('0x23')]=function(_0x57af02,_0x16fe49,_0x42b432){const _0x303862=_0x37b103,_0x5522db=this;this[_0x303862('0xc')][_0x303862('0x13')](function(){const _0x363ac7=_0x303862;return _0x5522db[_0x363ac7('0xb')][_0x363ac7('0x23')](_0x57af02,_0x16fe49,_0x42b432)[_0x363ac7('0x6')](function(){const _0x17fa2a=_0x363ac7;logger[_0x17fa2a('0x26')]('Added\x20column\x20%s\x20to\x20%s',_0x16fe49,_0x57af02);})['catch'](function(_0x2ffe47){const _0x4fc0a4=_0x363ac7;logger[_0x4fc0a4('0x26')](JSON[_0x4fc0a4('0x1a')](_0x2ffe47));});});},Migration[_0x37b103('0x1b')][_0x37b103('0x0')]=function(_0x4d7f26){const _0x40901d=_0x37b103,_0x26659a=this;this['sequence'][_0x40901d('0x13')](function(){const _0x5097aa=_0x40901d;return _0x26659a[_0x5097aa('0xb')]['dropTable'](_0x4d7f26,{'force':!![]})[_0x5097aa('0x6')](function(){const _0x1424e6=_0x5097aa;logger[_0x1424e6('0x26')](_0x1424e6('0x4'),_0x4d7f26);})[_0x5097aa('0x20')](function(_0x1fea47){const _0x3c8cc9=_0x5097aa;logger['info'](JSON[_0x3c8cc9('0x1a')](_0x1fea47));});});},Migration[_0x37b103('0x1b')][_0x37b103('0x1d')]=function(_0x43ac38,_0x531cec,_0x37e3f1){const _0x2f3ab6=_0x37b103,_0x4513ba=this;this[_0x2f3ab6('0xc')][_0x2f3ab6('0x13')](function(){const _0x4c0b28=_0x2f3ab6;return _0x4513ba[_0x4c0b28('0xb')][_0x4c0b28('0x1d')](_0x43ac38,_0x531cec,{'indexName':_0x37e3f1[_0x4c0b28('0x3')],'indicesType':_0x37e3f1[_0x4c0b28('0x1')]})[_0x4c0b28('0x6')](function(){const _0x33544c=_0x4c0b28;logger[_0x33544c('0x26')](_0x33544c('0x19'),_0x43ac38,_0x531cec[_0x33544c('0x27')](','),_0x37e3f1[_0x33544c('0x3')],_0x37e3f1[_0x33544c('0x1')]);})[_0x4c0b28('0x20')](function(_0x47b9a1){const _0x129718=_0x4c0b28;logger['info'](JSON[_0x129718('0x1a')](_0x47b9a1));});});},Migration['prototype'][_0x37b103('0x8')]=function(_0xab119c,_0x23abe8){const _0xc2ead5=_0x37b103,_0x5f16cc=this;this[_0xc2ead5('0xc')][_0xc2ead5('0x13')](function(){const _0x29aac5=_0xc2ead5;return _0x5f16cc[_0x29aac5('0xb')][_0x29aac5('0x8')](_0xab119c,_0x23abe8)[_0x29aac5('0x6')](function(){const _0x50704c=_0x29aac5;logger['info'](_0x50704c('0x9'),_0xab119c,_0x23abe8);})[_0x29aac5('0x20')](function(_0x23fd09){const _0x4c8206=_0x29aac5;logger[_0x4c8206('0x26')](JSON[_0x4c8206('0x1a')](_0x23fd09));});});},Migration[_0x37b103('0x1b')]['query']=function(_0x533ef8){const _0x55f5c1=_0x37b103,_0x3807e5=this;this[_0x55f5c1('0xc')][_0x55f5c1('0x13')](function(){const _0x6b60bc=_0x55f5c1;return _0x3807e5[_0x6b60bc('0xb')][_0x6b60bc('0xe')][_0x6b60bc('0x1c')](_0x533ef8)['then'](function(){const _0xefb2e2=_0x6b60bc;logger[_0xefb2e2('0x26')](_0xefb2e2('0x22'),_0x533ef8);})[_0x6b60bc('0x20')](function(_0xdd815a){const _0x467993=_0x6b60bc;logger[_0x467993('0x26')](JSON[_0x467993('0x1a')](_0xdd815a));});});},Migration[_0x37b103('0x1b')][_0x37b103('0x11')]=function(_0x5b14e7,_0xebe48f){const _0x3e2871=_0x37b103,_0x4ad709=this;this['sequence'][_0x3e2871('0x13')](function(){const _0x201f93=_0x3e2871;return _0x4ad709[_0x201f93('0xb')][_0x201f93('0x11')](_0x5b14e7,_0xebe48f)[_0x201f93('0x6')](function(){const _0x48453a=_0x201f93;logger[_0x48453a('0x26')](_0x48453a('0x21'),_0xebe48f,_0x5b14e7);})['catch'](function(_0x2df1f9){const _0x1004c7=_0x201f93;logger[_0x1004c7('0x26')](util[_0x1004c7('0x1e')](_0x2df1f9,{'showHidden':![],'depth':null}));});});},Migration[_0x37b103('0x1b')]['renameColumn']=function(_0x17c007,_0x19fca6,_0x266823){const _0x243e23=_0x37b103,_0x1b5ed8=this;this[_0x243e23('0xc')][_0x243e23('0x13')](function(){const _0x20afff=_0x243e23;return _0x1b5ed8[_0x20afff('0xb')][_0x20afff('0x2')](_0x17c007,_0x19fca6,_0x266823)[_0x20afff('0x6')](function(){const _0x523ead=_0x20afff;logger['info'](_0x523ead('0x14'),_0x19fca6,_0x266823,_0x17c007);})[_0x20afff('0x20')](function(_0x1bb7fa){const _0x4e8f12=_0x20afff;logger[_0x4e8f12('0x26')](util['inspect'](_0x1bb7fa,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x37b103('0x28')]=function(_0x30b7c5){const _0x2cb5ae=_0x37b103;this[_0x2cb5ae('0xc')][_0x2cb5ae('0x13')](function(){return _0x30b7c5();});},module['exports']={'up':function(_0x1af558){return new Promise(function(_0x35289b){const _0x1992a3=a999_0xd819,_0x213504=new Migration(_0x1af558);_0x213504[_0x1992a3('0x1d')](_0x1992a3('0xf'),[_0x1992a3('0x15'),'lastName',_0x1992a3('0xa'),_0x1992a3('0x5'),'fax',_0x1992a3('0x1f')],{'indexName':_0x1992a3('0x10'),'indicesType':_0x1992a3('0x16')}),_0x213504[_0x1992a3('0x28')](_0x35289b);});},'down':function(){}};
\ No newline at end of file
+const a999_0x9f2d=['mobile','tail','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex','query\x20%s','queryInterface','dropTable','removeColumn','firstName','enqueue','addColumn','info','util','sequence','phone','fti_cm_contacts','Added\x20column\x20%s\x20to\x20%s','renameColumn','table\x20dropped\x20%s','changeColumn','inspect','then','indicesType','prototype','indexName','final','query','lastName','FULLTEXT','migration','fax','sequelize','addIndex','finally','Removed\x20column\x20%s\x20from\x20%s','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','addIndex\x20%s\x20%s\x20%s\x20[%s]'];(function(_0x5f269f,_0x9f2d0a){const _0x17f94c=function(_0x346011){while(--_0x346011){_0x5f269f['push'](_0x5f269f['shift']());}};_0x17f94c(++_0x9f2d0a);}(a999_0x9f2d,0x9d));const a999_0x17f9=function(_0x5f269f,_0x9f2d0a){_0x5f269f=_0x5f269f-0x0;let _0x17f94c=a999_0x9f2d[_0x5f269f];return _0x17f94c;};const _0x33ec6c=a999_0x17f9;'use strict';const util=require(_0x33ec6c('0xb')),logger=require('../config/logger')(_0x33ec6c('0x1c')),Sequence=function(){};Sequence[_0x33ec6c('0x16')][_0x33ec6c('0x8')]=function(_0x346011){const _0x12c603=_0x33ec6c;this['tail']=this['tail']?this[_0x12c603('0x0')][_0x12c603('0x20')](_0x346011):_0x346011();};const Migration=function(_0x3af3b5){const _0x2d06b2=_0x33ec6c;this[_0x2d06b2('0x4')]=_0x3af3b5,this[_0x2d06b2('0xc')]=new Sequence();};Migration[_0x33ec6c('0x16')][_0x33ec6c('0x12')]=function(_0x33b42c,_0x29fc40,_0x1f84c9){const _0x1ae2fb=_0x33ec6c,_0xad4703=this;this[_0x1ae2fb('0xc')][_0x1ae2fb('0x8')](function(){const _0x496cae=_0x1ae2fb;return _0xad4703[_0x496cae('0x4')][_0x496cae('0x12')](_0x33b42c,_0x29fc40,_0x1f84c9)[_0x496cae('0x14')](function(){const _0x53c46d=_0x496cae;logger[_0x53c46d('0xa')](_0x53c46d('0x23'),_0x29fc40,_0x33b42c);})[_0x496cae('0x22')](function(_0x487db5){const _0xecaa0e=_0x496cae;logger['info'](JSON[_0xecaa0e('0x24')](_0x487db5));});});},Migration[_0x33ec6c('0x16')]['addColumn']=function(_0x97f64f,_0x19eae8,_0x454340){const _0x3a7f9c=_0x33ec6c,_0xe3aedd=this;this[_0x3a7f9c('0xc')]['enqueue'](function(){const _0x25508e=_0x3a7f9c;return _0xe3aedd[_0x25508e('0x4')][_0x25508e('0x9')](_0x97f64f,_0x19eae8,_0x454340)['then'](function(){const _0xa9cd35=_0x25508e;logger['info'](_0xa9cd35('0xf'),_0x19eae8,_0x97f64f);})[_0x25508e('0x22')](function(_0x901396){const _0x19850e=_0x25508e;logger[_0x19850e('0xa')](JSON['stringify'](_0x901396));});});},Migration['prototype'][_0x33ec6c('0x5')]=function(_0x25dc90){const _0x395d8f=_0x33ec6c,_0x53a7a5=this;this[_0x395d8f('0xc')]['enqueue'](function(){const _0x1c8726=_0x395d8f;return _0x53a7a5[_0x1c8726('0x4')][_0x1c8726('0x5')](_0x25dc90,{'force':!![]})['then'](function(){const _0x216f91=_0x1c8726;logger['info'](_0x216f91('0x11'),_0x25dc90);})['catch'](function(_0x522e98){const _0x273f41=_0x1c8726;logger[_0x273f41('0xa')](JSON[_0x273f41('0x24')](_0x522e98));});});},Migration['prototype'][_0x33ec6c('0x1f')]=function(_0x8b7c93,_0x46174e,_0x561680){const _0x32afe3=_0x33ec6c,_0x4b5475=this;this[_0x32afe3('0xc')]['enqueue'](function(){const _0x1ca657=_0x32afe3;return _0x4b5475[_0x1ca657('0x4')][_0x1ca657('0x1f')](_0x8b7c93,_0x46174e,{'indexName':_0x561680[_0x1ca657('0x17')],'indicesType':_0x561680['indicesType']})[_0x1ca657('0x14')](function(){const _0xdedd17=_0x1ca657;logger['info'](_0xdedd17('0x25'),_0x8b7c93,_0x46174e['join'](','),_0x561680[_0xdedd17('0x17')],_0x561680[_0xdedd17('0x15')]);})[_0x1ca657('0x22')](function(_0x4733a5){const _0x49b690=_0x1ca657;logger[_0x49b690('0xa')](JSON[_0x49b690('0x24')](_0x4733a5));});});},Migration[_0x33ec6c('0x16')][_0x33ec6c('0x2')]=function(_0x3b1c5c,_0x248ad4){const _0x3d090f=_0x33ec6c,_0xddbaa8=this;this['sequence'][_0x3d090f('0x8')](function(){const _0xee4aa7=_0x3d090f;return _0xddbaa8[_0xee4aa7('0x4')][_0xee4aa7('0x2')](_0x3b1c5c,_0x248ad4)[_0xee4aa7('0x14')](function(){const _0x466ade=_0xee4aa7;logger[_0x466ade('0xa')]('removeIndex\x20%s\x20%s',_0x3b1c5c,_0x248ad4);})[_0xee4aa7('0x22')](function(_0x47c5e8){const _0x18e54a=_0xee4aa7;logger[_0x18e54a('0xa')](JSON['stringify'](_0x47c5e8));});});},Migration[_0x33ec6c('0x16')][_0x33ec6c('0x19')]=function(_0x168b00){const _0x594c15=_0x33ec6c,_0x4a6af0=this;this['sequence'][_0x594c15('0x8')](function(){const _0x42185a=_0x594c15;return _0x4a6af0[_0x42185a('0x4')][_0x42185a('0x1e')][_0x42185a('0x19')](_0x168b00)['then'](function(){const _0xe74663=_0x42185a;logger['info'](_0xe74663('0x3'),_0x168b00);})[_0x42185a('0x22')](function(_0x581da4){const _0xd1b3ab=_0x42185a;logger[_0xd1b3ab('0xa')](JSON['stringify'](_0x581da4));});});},Migration[_0x33ec6c('0x16')]['removeColumn']=function(_0x3752b6,_0x454449){const _0x41966e=_0x33ec6c,_0x25e4e3=this;this[_0x41966e('0xc')][_0x41966e('0x8')](function(){const _0x1dbdb7=_0x41966e;return _0x25e4e3[_0x1dbdb7('0x4')][_0x1dbdb7('0x6')](_0x3752b6,_0x454449)[_0x1dbdb7('0x14')](function(){const _0x17f71e=_0x1dbdb7;logger['info'](_0x17f71e('0x21'),_0x454449,_0x3752b6);})['catch'](function(_0x1b95cd){const _0x571485=_0x1dbdb7;logger['info'](util[_0x571485('0x13')](_0x1b95cd,{'showHidden':![],'depth':null}));});});},Migration[_0x33ec6c('0x16')][_0x33ec6c('0x10')]=function(_0x11ff1b,_0x8e14c0,_0x2096b9){const _0x564b5b=_0x33ec6c,_0xd3f51c=this;this[_0x564b5b('0xc')]['enqueue'](function(){const _0x3e2838=_0x564b5b;return _0xd3f51c['queryInterface']['renameColumn'](_0x11ff1b,_0x8e14c0,_0x2096b9)[_0x3e2838('0x14')](function(){const _0x1cf2f6=_0x3e2838;logger[_0x1cf2f6('0xa')](_0x1cf2f6('0x1'),_0x8e14c0,_0x2096b9,_0x11ff1b);})[_0x3e2838('0x22')](function(_0xd55857){const _0x236a13=_0x3e2838;logger[_0x236a13('0xa')](util[_0x236a13('0x13')](_0xd55857,{'showHidden':![],'depth':null}));});});},Migration[_0x33ec6c('0x16')]['final']=function(_0x16f212){const _0x3e7427=_0x33ec6c;this[_0x3e7427('0xc')][_0x3e7427('0x8')](function(){return _0x16f212();});},module['exports']={'up':function(_0x43145c){return new Promise(function(_0x31505b){const _0x1f6a3f=a999_0x17f9,_0x598a43=new Migration(_0x43145c);_0x598a43[_0x1f6a3f('0x1f')]('cm_contacts',[_0x1f6a3f('0x7'),_0x1f6a3f('0x1a'),_0x1f6a3f('0xd'),_0x1f6a3f('0x26'),_0x1f6a3f('0x1d'),'email'],{'indexName':_0x1f6a3f('0xe'),'indicesType':_0x1f6a3f('0x1b')}),_0x598a43[_0x1f6a3f('0x18')](_0x31505b);});},'down':function(){}};
\ No newline at end of file