Built motion from commit 82a371561bcdbc7605c801e5e414f4032ba9e7ad. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.16.js
index b23aabb..36e7164 100644 (file)
@@ -1 +1 @@
-const a999_0x9c7f=['dropTable','removeIndex','enqueue','query\x20%s','cm_contacts','then','Added\x20column\x20%s\x20to\x20%s','info','queryInterface','removeIndex\x20%s\x20%s','prototype','final','inspect','changeColumn','sequence','addIndex','indexName','query','../config/logger','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','removeColumn','catch','fax','mobile','email','util','fti_cm_contacts','indicesType','renameColumn','exports','Removed\x20column\x20%s\x20from\x20%s','FULLTEXT','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addColumn','stringify'];(function(_0x159a4e,_0x9c7f45){const _0x25ceaa=function(_0x4bafcb){while(--_0x4bafcb){_0x159a4e['push'](_0x159a4e['shift']());}};_0x25ceaa(++_0x9c7f45);}(a999_0x9c7f,0x160));const a999_0x25ce=function(_0x159a4e,_0x9c7f45){_0x159a4e=_0x159a4e-0x0;let _0x25ceaa=a999_0x9c7f[_0x159a4e];return _0x25ceaa;};const _0x4a9e52=a999_0x25ce;'use strict';const util=require(_0x4a9e52('0x22')),logger=require(_0x4a9e52('0x1a'))('migration'),Sequence=function(){};Sequence['prototype'][_0x4a9e52('0xa')]=function(_0x4bafcb){const _0x550fb9=_0x4a9e52;this[_0x550fb9('0x1b')]=this[_0x550fb9('0x1b')]?this[_0x550fb9('0x1b')]['finally'](_0x4bafcb):_0x4bafcb();};const Migration=function(_0x5b0191){const _0x335ebd=_0x4a9e52;this[_0x335ebd('0x10')]=_0x5b0191,this[_0x335ebd('0x16')]=new Sequence();};Migration[_0x4a9e52('0x12')][_0x4a9e52('0x15')]=function(_0x5d7f6f,_0x36de2f,_0x5f5490){const _0x49c858=_0x4a9e52,_0x19c11e=this;this['sequence'][_0x49c858('0xa')](function(){const _0x2c3950=_0x49c858;return _0x19c11e[_0x2c3950('0x10')][_0x2c3950('0x15')](_0x5d7f6f,_0x36de2f,_0x5f5490)[_0x2c3950('0xd')](function(){const _0x1bd6ac=_0x2c3950;logger['info'](_0x1bd6ac('0x1c'),_0x36de2f,_0x5d7f6f);})['catch'](function(_0x46736f){const _0x569293=_0x2c3950;logger[_0x569293('0xf')](JSON[_0x569293('0x7')](_0x46736f));});});},Migration['prototype'][_0x4a9e52('0x6')]=function(_0x3df587,_0x59022d,_0x15b763){const _0x3cb1bf=_0x4a9e52,_0xbf0ab0=this;this[_0x3cb1bf('0x16')][_0x3cb1bf('0xa')](function(){const _0x3ba623=_0x3cb1bf;return _0xbf0ab0['queryInterface'][_0x3ba623('0x6')](_0x3df587,_0x59022d,_0x15b763)[_0x3ba623('0xd')](function(){const _0x5116ff=_0x3ba623;logger[_0x5116ff('0xf')](_0x5116ff('0xe'),_0x59022d,_0x3df587);})[_0x3ba623('0x1e')](function(_0x2c19cc){const _0x3a5423=_0x3ba623;logger['info'](JSON[_0x3a5423('0x7')](_0x2c19cc));});});},Migration[_0x4a9e52('0x12')]['dropTable']=function(_0x4cfd22){const _0x51a487=_0x4a9e52,_0x1559f7=this;this[_0x51a487('0x16')][_0x51a487('0xa')](function(){const _0x39ddd2=_0x51a487;return _0x1559f7['queryInterface'][_0x39ddd2('0x8')](_0x4cfd22,{'force':!![]})[_0x39ddd2('0xd')](function(){const _0x3e08c0=_0x39ddd2;logger[_0x3e08c0('0xf')]('table\x20dropped\x20%s',_0x4cfd22);})[_0x39ddd2('0x1e')](function(_0x4dc4cb){const _0x48fc13=_0x39ddd2;logger[_0x48fc13('0xf')](JSON[_0x48fc13('0x7')](_0x4dc4cb));});});},Migration[_0x4a9e52('0x12')]['addIndex']=function(_0x4b8f47,_0xe084d5,_0x65e997){const _0x4624ae=this;this['sequence']['enqueue'](function(){const _0x58b8ca=a999_0x25ce;return _0x4624ae[_0x58b8ca('0x10')][_0x58b8ca('0x17')](_0x4b8f47,_0xe084d5,{'indexName':_0x65e997[_0x58b8ca('0x18')],'indicesType':_0x65e997[_0x58b8ca('0x0')]})['then'](function(){const _0x3a3320=_0x58b8ca;logger[_0x3a3320('0xf')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x4b8f47,_0xe084d5['join'](','),_0x65e997['indexName'],_0x65e997[_0x3a3320('0x0')]);})['catch'](function(_0x368ccc){const _0x425be6=_0x58b8ca;logger[_0x425be6('0xf')](JSON[_0x425be6('0x7')](_0x368ccc));});});},Migration['prototype'][_0x4a9e52('0x9')]=function(_0x83f4bf,_0x268e95){const _0x39da13=this;this['sequence']['enqueue'](function(){const _0x2cb164=a999_0x25ce;return _0x39da13['queryInterface'][_0x2cb164('0x9')](_0x83f4bf,_0x268e95)['then'](function(){const _0xebf665=_0x2cb164;logger[_0xebf665('0xf')](_0xebf665('0x11'),_0x83f4bf,_0x268e95);})['catch'](function(_0x1be3f5){const _0x15fbf0=_0x2cb164;logger['info'](JSON[_0x15fbf0('0x7')](_0x1be3f5));});});},Migration[_0x4a9e52('0x12')][_0x4a9e52('0x19')]=function(_0x2dcf67){const _0x22975e=_0x4a9e52,_0x38eed5=this;this[_0x22975e('0x16')][_0x22975e('0xa')](function(){const _0x4e800a=_0x22975e;return _0x38eed5[_0x4e800a('0x10')]['sequelize'][_0x4e800a('0x19')](_0x2dcf67)[_0x4e800a('0xd')](function(){const _0x24ed08=_0x4e800a;logger[_0x24ed08('0xf')](_0x24ed08('0xb'),_0x2dcf67);})[_0x4e800a('0x1e')](function(_0x21488c){const _0x61e78=_0x4e800a;logger[_0x61e78('0xf')](JSON[_0x61e78('0x7')](_0x21488c));});});},Migration['prototype'][_0x4a9e52('0x1d')]=function(_0x34c16d,_0x58cd4b){const _0x5c92fb=_0x4a9e52,_0x5e7a01=this;this[_0x5c92fb('0x16')][_0x5c92fb('0xa')](function(){const _0x467701=_0x5c92fb;return _0x5e7a01[_0x467701('0x10')][_0x467701('0x1d')](_0x34c16d,_0x58cd4b)[_0x467701('0xd')](function(){const _0x579ef6=_0x467701;logger[_0x579ef6('0xf')](_0x579ef6('0x3'),_0x58cd4b,_0x34c16d);})[_0x467701('0x1e')](function(_0x5a400e){logger['info'](util['inspect'](_0x5a400e,{'showHidden':![],'depth':null}));});});},Migration[_0x4a9e52('0x12')][_0x4a9e52('0x1')]=function(_0x267e9a,_0x31d7ec,_0x2160e1){const _0x5c077f=_0x4a9e52,_0x1972ba=this;this['sequence'][_0x5c077f('0xa')](function(){const _0x56d116=_0x5c077f;return _0x1972ba['queryInterface'][_0x56d116('0x1')](_0x267e9a,_0x31d7ec,_0x2160e1)[_0x56d116('0xd')](function(){const _0x666f84=_0x56d116;logger[_0x666f84('0xf')](_0x666f84('0x5'),_0x31d7ec,_0x2160e1,_0x267e9a);})['catch'](function(_0x4d2ac9){const _0x28976b=_0x56d116;logger[_0x28976b('0xf')](util[_0x28976b('0x14')](_0x4d2ac9,{'showHidden':![],'depth':null}));});});},Migration[_0x4a9e52('0x12')][_0x4a9e52('0x13')]=function(_0x45da41){const _0x30305b=_0x4a9e52;this[_0x30305b('0x16')][_0x30305b('0xa')](function(){return _0x45da41();});},module[_0x4a9e52('0x2')]={'up':function(_0x556b24){return new Promise(function(_0x239628){const _0x147d21=a999_0x25ce,_0xae9eb6=new Migration(_0x556b24);_0xae9eb6[_0x147d21('0x17')](_0x147d21('0xc'),['firstName','lastName','phone',_0x147d21('0x20'),_0x147d21('0x1f'),_0x147d21('0x21')],{'indexName':_0x147d21('0x23'),'indicesType':_0x147d21('0x4')}),_0xae9eb6[_0x147d21('0x13')](_0x239628);});},'down':function(){}};
\ No newline at end of file
+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