Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / migrations / 2.5.6.js
index 03b1f15..a727217 100644 (file)
@@ -1 +1 @@
-const a1180_0x1e8e=['inspect','addIndex','removeIndex\x20%s\x20%s','cm_contacts','renameColumn','finally','removeColumn','query\x20%s','lastName','dropTable','stringify','phone','info','queryInterface','mobile','indicesType','prototype','migration','sequelize','sequence','then','util','removeIndex','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','Removed\x20column\x20%s\x20from\x20%s','changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','firstName','indexName','fti_cm_contacts','enqueue','addColumn','catch','fax'];(function(_0xe1fee8,_0x1ebd97){const _0x1e8ec9=function(_0x4627e2){while(--_0x4627e2){_0xe1fee8['push'](_0xe1fee8['shift']());}};_0x1e8ec9(++_0x1ebd97);}(a1180_0x1e8e,0x1b3));const a1180_0x4627=function(_0xe1fee8,_0x1ebd97){_0xe1fee8=_0xe1fee8-0xca;let _0x1e8ec9=a1180_0x1e8e[_0xe1fee8];return _0x1e8ec9;};const a1180_0x30840b=a1180_0x4627;'use strict';const util=require(a1180_0x30840b(0xdc)),logger=require('../config/logger')(a1180_0x30840b(0xd8)),Sequence=function(){};Sequence[a1180_0x30840b(0xd7)]['enqueue']=function(_0x2c0600){const _0x1a64bc=a1180_0x30840b;this[_0x1a64bc(0xde)]=this['tail']?this[_0x1a64bc(0xde)][_0x1a64bc(0xcc)](_0x2c0600):_0x2c0600();};const Migration=function(_0x2c2d1d){const _0x363565=a1180_0x30840b;this[_0x363565(0xd4)]=_0x2c2d1d,this[_0x363565(0xda)]=new Sequence();};Migration[a1180_0x30840b(0xd7)][a1180_0x30840b(0xe1)]=function(_0x2cb1a3,_0x39b38c,_0x53faa3){const _0x3a8dc9=a1180_0x30840b,_0xf4dd3a=this;this[_0x3a8dc9(0xda)][_0x3a8dc9(0xe7)](function(){const _0x2c6862=_0x3a8dc9;return _0xf4dd3a[_0x2c6862(0xd4)][_0x2c6862(0xe1)](_0x2cb1a3,_0x39b38c,_0x53faa3)['then'](function(){const _0x4881c3=_0x2c6862;logger[_0x4881c3(0xd3)](_0x4881c3(0xdf),_0x39b38c,_0x2cb1a3);})[_0x2c6862(0xe9)](function(_0x128e16){const _0x511c3a=_0x2c6862;logger['info'](JSON[_0x511c3a(0xd1)](_0x128e16));});});},Migration[a1180_0x30840b(0xd7)][a1180_0x30840b(0xe8)]=function(_0x33d355,_0x4c71f3,_0x4a9275){const _0x25e123=a1180_0x30840b,_0x38b8d7=this;this[_0x25e123(0xda)][_0x25e123(0xe7)](function(){const _0xbc66bd=_0x25e123;return _0x38b8d7[_0xbc66bd(0xd4)][_0xbc66bd(0xe8)](_0x33d355,_0x4c71f3,_0x4a9275)[_0xbc66bd(0xdb)](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x4c71f3,_0x33d355);})[_0xbc66bd(0xe9)](function(_0x3bf88d){const _0x2e84b1=_0xbc66bd;logger['info'](JSON[_0x2e84b1(0xd1)](_0x3bf88d));});});},Migration['prototype'][a1180_0x30840b(0xd0)]=function(_0x3b9c72){const _0x3af227=this;this['sequence']['enqueue'](function(){const _0x1b1a5e=a1180_0x4627;return _0x3af227[_0x1b1a5e(0xd4)][_0x1b1a5e(0xd0)](_0x3b9c72,{'force':!![]})[_0x1b1a5e(0xdb)](function(){const _0x19245c=_0x1b1a5e;logger[_0x19245c(0xd3)]('table\x20dropped\x20%s',_0x3b9c72);})[_0x1b1a5e(0xe9)](function(_0x516570){const _0x2bac4f=_0x1b1a5e;logger[_0x2bac4f(0xd3)](JSON['stringify'](_0x516570));});});},Migration[a1180_0x30840b(0xd7)][a1180_0x30840b(0xec)]=function(_0x375bdd,_0x3c4076,_0x3c761f){const _0x3df73d=a1180_0x30840b,_0x1c9444=this;this[_0x3df73d(0xda)]['enqueue'](function(){const _0x2ed1be=_0x3df73d;return _0x1c9444['queryInterface']['addIndex'](_0x375bdd,_0x3c4076,{'indexName':_0x3c761f['indexName'],'indicesType':_0x3c761f[_0x2ed1be(0xd6)]})[_0x2ed1be(0xdb)](function(){const _0x4fb830=_0x2ed1be;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x375bdd,_0x3c4076['join'](','),_0x3c761f[_0x4fb830(0xe5)],_0x3c761f[_0x4fb830(0xd6)]);})['catch'](function(_0x158608){logger['info'](JSON['stringify'](_0x158608));});});},Migration[a1180_0x30840b(0xd7)][a1180_0x30840b(0xdd)]=function(_0x9eb1da,_0x293501){const _0x5ca646=a1180_0x30840b,_0x3431f0=this;this[_0x5ca646(0xda)][_0x5ca646(0xe7)](function(){const _0x17a7f2=_0x5ca646;return _0x3431f0[_0x17a7f2(0xd4)][_0x17a7f2(0xdd)](_0x9eb1da,_0x293501)[_0x17a7f2(0xdb)](function(){const _0x5547d3=_0x17a7f2;logger[_0x5547d3(0xd3)](_0x5547d3(0xed),_0x9eb1da,_0x293501);})[_0x17a7f2(0xe9)](function(_0x31463e){const _0x5e9324=_0x17a7f2;logger['info'](JSON[_0x5e9324(0xd1)](_0x31463e));});});},Migration[a1180_0x30840b(0xd7)][a1180_0x30840b(0xe3)]=function(_0x27b30a){const _0x41a8e5=a1180_0x30840b,_0x1193d9=this;this[_0x41a8e5(0xda)][_0x41a8e5(0xe7)](function(){const _0x592bd3=_0x41a8e5;return _0x1193d9[_0x592bd3(0xd4)][_0x592bd3(0xd9)][_0x592bd3(0xe3)](_0x27b30a)[_0x592bd3(0xdb)](function(){const _0xf9b913=_0x592bd3;logger[_0xf9b913(0xd3)](_0xf9b913(0xce),_0x27b30a);})[_0x592bd3(0xe9)](function(_0x55750a){const _0x3cdb0b=_0x592bd3;logger[_0x3cdb0b(0xd3)](JSON[_0x3cdb0b(0xd1)](_0x55750a));});});},Migration['prototype'][a1180_0x30840b(0xcd)]=function(_0xa0de67,_0x5672c6){const _0x1ba372=a1180_0x30840b,_0x3ffd84=this;this[_0x1ba372(0xda)][_0x1ba372(0xe7)](function(){const _0x323aca=_0x1ba372;return _0x3ffd84[_0x323aca(0xd4)][_0x323aca(0xcd)](_0xa0de67,_0x5672c6)[_0x323aca(0xdb)](function(){const _0x5cde9=_0x323aca;logger[_0x5cde9(0xd3)](_0x5cde9(0xe0),_0x5672c6,_0xa0de67);})[_0x323aca(0xe9)](function(_0x27eac9){const _0x29c8c9=_0x323aca;logger[_0x29c8c9(0xd3)](util['inspect'](_0x27eac9,{'showHidden':![],'depth':null}));});});},Migration[a1180_0x30840b(0xd7)][a1180_0x30840b(0xcb)]=function(_0x35fdf7,_0x47ecbb,_0x47bfc9){const _0x414a15=a1180_0x30840b,_0x17e36e=this;this[_0x414a15(0xda)][_0x414a15(0xe7)](function(){const _0x35eaa6=_0x414a15;return _0x17e36e[_0x35eaa6(0xd4)]['renameColumn'](_0x35fdf7,_0x47ecbb,_0x47bfc9)[_0x35eaa6(0xdb)](function(){const _0x55ab95=_0x35eaa6;logger[_0x55ab95(0xd3)](_0x55ab95(0xe2),_0x47ecbb,_0x47bfc9,_0x35fdf7);})[_0x35eaa6(0xe9)](function(_0x2f9253){const _0x236395=_0x35eaa6;logger['info'](util[_0x236395(0xeb)](_0x2f9253,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x5019e1){const _0x53f421=a1180_0x30840b;this[_0x53f421(0xda)]['enqueue'](function(){return _0x5019e1();});},module['exports']={'up':function(_0x255097){return new Promise(function(_0x492046){const _0x490224=a1180_0x4627,_0x1060de=new Migration(_0x255097);_0x1060de[_0x490224(0xec)](_0x490224(0xca),[_0x490224(0xe4),_0x490224(0xcf),_0x490224(0xd2),_0x490224(0xd5),_0x490224(0xea),'email'],{'indexName':_0x490224(0xe6),'indicesType':'FULLTEXT'}),_0x1060de['final'](_0x492046);});},'down':function(){}};
\ No newline at end of file
+const a1183_0x640f=['renameColumn','lastName','prototype','addColumn','join','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','migration','mobile','FULLTEXT','stringify','email','finally','tail','final','Changed\x20column\x20%s\x20in\x20table\x20%s','queryInterface','phone','addIndex','query\x20%s','query','dropTable','util','catch','sequence','sequelize','indicesType','inspect','Removed\x20column\x20%s\x20from\x20%s','enqueue','then','removeColumn','Added\x20column\x20%s\x20to\x20%s','fti_cm_contacts','info','removeIndex','indexName','cm_contacts','changeColumn','../config/logger','firstName'];(function(_0x591aca,_0xe7988){const _0x640f78=function(_0x5cc285){while(--_0x5cc285){_0x591aca['push'](_0x591aca['shift']());}};_0x640f78(++_0xe7988);}(a1183_0x640f,0xec));const a1183_0x5cc2=function(_0x591aca,_0xe7988){_0x591aca=_0x591aca-0x173;let _0x640f78=a1183_0x640f[_0x591aca];return _0x640f78;};const a1183_0x1598cc=a1183_0x5cc2;'use strict';const util=require(a1183_0x1598cc(0x18c)),logger=require(a1183_0x1598cc(0x175))(a1183_0x1598cc(0x17d)),Sequence=function(){};Sequence[a1183_0x1598cc(0x179)]['enqueue']=function(_0x214eef){const _0x4ca6b2=a1183_0x1598cc;this[_0x4ca6b2(0x183)]=this[_0x4ca6b2(0x183)]?this['tail'][_0x4ca6b2(0x182)](_0x214eef):_0x214eef();};const Migration=function(_0x1cb439){const _0x58912e=a1183_0x1598cc;this[_0x58912e(0x186)]=_0x1cb439,this[_0x58912e(0x18e)]=new Sequence();};Migration[a1183_0x1598cc(0x179)][a1183_0x1598cc(0x174)]=function(_0x7666c6,_0x55287d,_0x34e1d6){const _0x4b567d=a1183_0x1598cc,_0x12d904=this;this[_0x4b567d(0x18e)][_0x4b567d(0x193)](function(){const _0x5c1dd5=_0x4b567d;return _0x12d904['queryInterface']['changeColumn'](_0x7666c6,_0x55287d,_0x34e1d6)[_0x5c1dd5(0x194)](function(){const _0x14ebb7=_0x5c1dd5;logger[_0x14ebb7(0x198)](_0x14ebb7(0x185),_0x55287d,_0x7666c6);})['catch'](function(_0x3ba43e){const _0xe576c2=_0x5c1dd5;logger[_0xe576c2(0x198)](JSON[_0xe576c2(0x180)](_0x3ba43e));});});},Migration[a1183_0x1598cc(0x179)][a1183_0x1598cc(0x17a)]=function(_0x9a9561,_0x5632f3,_0x5e8773){const _0x35a7da=a1183_0x1598cc,_0x50b1c1=this;this[_0x35a7da(0x18e)][_0x35a7da(0x193)](function(){const _0x2a51d2=_0x35a7da;return _0x50b1c1[_0x2a51d2(0x186)][_0x2a51d2(0x17a)](_0x9a9561,_0x5632f3,_0x5e8773)[_0x2a51d2(0x194)](function(){const _0x518a57=_0x2a51d2;logger['info'](_0x518a57(0x196),_0x5632f3,_0x9a9561);})['catch'](function(_0x2aaa3b){const _0x525335=_0x2a51d2;logger[_0x525335(0x198)](JSON[_0x525335(0x180)](_0x2aaa3b));});});},Migration[a1183_0x1598cc(0x179)][a1183_0x1598cc(0x18b)]=function(_0x85ae6a){const _0x3a60bd=a1183_0x1598cc,_0x2280e3=this;this[_0x3a60bd(0x18e)]['enqueue'](function(){const _0x212d6b=_0x3a60bd;return _0x2280e3[_0x212d6b(0x186)][_0x212d6b(0x18b)](_0x85ae6a,{'force':!![]})[_0x212d6b(0x194)](function(){const _0x189bf0=_0x212d6b;logger[_0x189bf0(0x198)]('table\x20dropped\x20%s',_0x85ae6a);})[_0x212d6b(0x18d)](function(_0x8fd68e){const _0x25e707=_0x212d6b;logger[_0x25e707(0x198)](JSON[_0x25e707(0x180)](_0x8fd68e));});});},Migration['prototype'][a1183_0x1598cc(0x188)]=function(_0x71014f,_0x3f3989,_0x1a2e51){const _0x130dca=a1183_0x1598cc,_0x524776=this;this[_0x130dca(0x18e)]['enqueue'](function(){const _0x4a3921=_0x130dca;return _0x524776[_0x4a3921(0x186)][_0x4a3921(0x188)](_0x71014f,_0x3f3989,{'indexName':_0x1a2e51[_0x4a3921(0x19a)],'indicesType':_0x1a2e51[_0x4a3921(0x190)]})[_0x4a3921(0x194)](function(){const _0x44d061=_0x4a3921;logger[_0x44d061(0x198)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x71014f,_0x3f3989[_0x44d061(0x17b)](','),_0x1a2e51['indexName'],_0x1a2e51[_0x44d061(0x190)]);})['catch'](function(_0x5af6d2){const _0x2e9efa=_0x4a3921;logger[_0x2e9efa(0x198)](JSON[_0x2e9efa(0x180)](_0x5af6d2));});});},Migration[a1183_0x1598cc(0x179)][a1183_0x1598cc(0x199)]=function(_0x1ed4e5,_0x4fe1b7){const _0x37e5a1=a1183_0x1598cc,_0x4f1c28=this;this[_0x37e5a1(0x18e)]['enqueue'](function(){const _0x5a5e2c=_0x37e5a1;return _0x4f1c28[_0x5a5e2c(0x186)]['removeIndex'](_0x1ed4e5,_0x4fe1b7)[_0x5a5e2c(0x194)](function(){const _0x5c5a00=_0x5a5e2c;logger[_0x5c5a00(0x198)]('removeIndex\x20%s\x20%s',_0x1ed4e5,_0x4fe1b7);})['catch'](function(_0x58252f){const _0x48d5d7=_0x5a5e2c;logger[_0x48d5d7(0x198)](JSON[_0x48d5d7(0x180)](_0x58252f));});});},Migration[a1183_0x1598cc(0x179)][a1183_0x1598cc(0x18a)]=function(_0x5046bb){const _0x320335=a1183_0x1598cc,_0x7c9d15=this;this['sequence'][_0x320335(0x193)](function(){const _0xbee256=_0x320335;return _0x7c9d15[_0xbee256(0x186)][_0xbee256(0x18f)][_0xbee256(0x18a)](_0x5046bb)[_0xbee256(0x194)](function(){const _0x5720f3=_0xbee256;logger['info'](_0x5720f3(0x189),_0x5046bb);})[_0xbee256(0x18d)](function(_0x4eaa88){const _0x545151=_0xbee256;logger['info'](JSON[_0x545151(0x180)](_0x4eaa88));});});},Migration[a1183_0x1598cc(0x179)][a1183_0x1598cc(0x195)]=function(_0x350108,_0x13f788){const _0x4df8bd=a1183_0x1598cc,_0x5ce3db=this;this[_0x4df8bd(0x18e)][_0x4df8bd(0x193)](function(){const _0x59bec7=_0x4df8bd;return _0x5ce3db[_0x59bec7(0x186)][_0x59bec7(0x195)](_0x350108,_0x13f788)[_0x59bec7(0x194)](function(){const _0x4f01f4=_0x59bec7;logger['info'](_0x4f01f4(0x192),_0x13f788,_0x350108);})[_0x59bec7(0x18d)](function(_0x2117f6){const _0x506f20=_0x59bec7;logger[_0x506f20(0x198)](util[_0x506f20(0x191)](_0x2117f6,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1183_0x1598cc(0x177)]=function(_0x9fb486,_0x46e94b,_0x5032a3){const _0x34daea=a1183_0x1598cc,_0x42aa83=this;this[_0x34daea(0x18e)]['enqueue'](function(){const _0x52b6bb=_0x34daea;return _0x42aa83[_0x52b6bb(0x186)][_0x52b6bb(0x177)](_0x9fb486,_0x46e94b,_0x5032a3)[_0x52b6bb(0x194)](function(){const _0x144104=_0x52b6bb;logger[_0x144104(0x198)](_0x144104(0x17c),_0x46e94b,_0x5032a3,_0x9fb486);})[_0x52b6bb(0x18d)](function(_0x11302f){const _0x1b61c6=_0x52b6bb;logger['info'](util[_0x1b61c6(0x191)](_0x11302f,{'showHidden':![],'depth':null}));});});},Migration[a1183_0x1598cc(0x179)][a1183_0x1598cc(0x184)]=function(_0x1895a8){const _0x3c0a21=a1183_0x1598cc;this['sequence'][_0x3c0a21(0x193)](function(){return _0x1895a8();});},module['exports']={'up':function(_0x1902da){return new Promise(function(_0x20222a){const _0x5afcf9=a1183_0x5cc2,_0x56fe2a=new Migration(_0x1902da);_0x56fe2a[_0x5afcf9(0x188)](_0x5afcf9(0x173),[_0x5afcf9(0x176),_0x5afcf9(0x178),_0x5afcf9(0x187),_0x5afcf9(0x17e),'fax',_0x5afcf9(0x181)],{'indexName':_0x5afcf9(0x197),'indicesType':_0x5afcf9(0x17f)}),_0x56fe2a[_0x5afcf9(0x184)](_0x20222a);});},'down':function(){}};
\ No newline at end of file