Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.15.js
index fdbd1e4..64608c8 100644 (file)
@@ -1 +1 @@
-const a1159_0x4f53=['addIndex','Added\x20column\x20%s\x20to\x20%s','prototype','addColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','Removed\x20column\x20%s\x20from\x20%s','inspect','util','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','catch','table\x20dropped\x20%s','indexName','info','removeColumn','indicesType','finally','UPDATE\x20sms_accounts\x20SET\x20baseUrl\x20=\x20\x22https://sms.csc.lv\x22\x20WHERE\x20type\x20=\x20\x22csc\x22','changeColumn','then','stringify','removeIndex','removeIndex\x20%s\x20%s','sequence','../config/logger','tail','queryInterface','renameColumn','final','query','enqueue','Changed\x20column\x20%s\x20in\x20table\x20%s','dropTable'];(function(_0x4a1e6d,_0x4bff85){const _0x4f53b1=function(_0x51db44){while(--_0x51db44){_0x4a1e6d['push'](_0x4a1e6d['shift']());}};_0x4f53b1(++_0x4bff85);}(a1159_0x4f53,0x105));const a1159_0x51db=function(_0x4a1e6d,_0x4bff85){_0x4a1e6d=_0x4a1e6d-0x149;let _0x4f53b1=a1159_0x4f53[_0x4a1e6d];return _0x4f53b1;};const a1159_0x2fe9ab=a1159_0x51db;'use strict';const util=require(a1159_0x2fe9ab(0x14b)),logger=require(a1159_0x2fe9ab(0x15b))('migration'),Sequence=function(){};Sequence['prototype'][a1159_0x2fe9ab(0x161)]=function(_0x493e61){const _0x13d915=a1159_0x2fe9ab;this[_0x13d915(0x15c)]=this[_0x13d915(0x15c)]?this[_0x13d915(0x15c)][_0x13d915(0x153)](_0x493e61):_0x493e61();};const Migration=function(_0x26e8fb){const _0x1de60d=a1159_0x2fe9ab;this['queryInterface']=_0x26e8fb,this[_0x1de60d(0x15a)]=new Sequence();};Migration['prototype'][a1159_0x2fe9ab(0x155)]=function(_0x2ec5aa,_0x1e587c,_0x11d627){const _0x247377=a1159_0x2fe9ab,_0x1591bb=this;this[_0x247377(0x15a)]['enqueue'](function(){const _0x17d152=_0x247377;return _0x1591bb[_0x17d152(0x15d)][_0x17d152(0x155)](_0x2ec5aa,_0x1e587c,_0x11d627)[_0x17d152(0x156)](function(){const _0x37360c=_0x17d152;logger[_0x37360c(0x150)](_0x37360c(0x162),_0x1e587c,_0x2ec5aa);})[_0x17d152(0x14d)](function(_0x4f0253){const _0x1aba7b=_0x17d152;logger[_0x1aba7b(0x150)](JSON['stringify'](_0x4f0253));});});},Migration[a1159_0x2fe9ab(0x166)][a1159_0x2fe9ab(0x167)]=function(_0x5cc750,_0x3d05a0,_0x42b87c){const _0x36b8e1=a1159_0x2fe9ab,_0xd3e6a9=this;this[_0x36b8e1(0x15a)][_0x36b8e1(0x161)](function(){const _0x503247=_0x36b8e1;return _0xd3e6a9[_0x503247(0x15d)][_0x503247(0x167)](_0x5cc750,_0x3d05a0,_0x42b87c)[_0x503247(0x156)](function(){const _0x24ec7d=_0x503247;logger[_0x24ec7d(0x150)](_0x24ec7d(0x165),_0x3d05a0,_0x5cc750);})[_0x503247(0x14d)](function(_0x2f0668){const _0x3ff66b=_0x503247;logger[_0x3ff66b(0x150)](JSON['stringify'](_0x2f0668));});});},Migration['prototype']['dropTable']=function(_0x5bdc43){const _0xb3833f=a1159_0x2fe9ab,_0x44e6fa=this;this[_0xb3833f(0x15a)]['enqueue'](function(){const _0x3e5a70=_0xb3833f;return _0x44e6fa['queryInterface'][_0x3e5a70(0x163)](_0x5bdc43,{'force':!![]})[_0x3e5a70(0x156)](function(){const _0xa52fbc=_0x3e5a70;logger[_0xa52fbc(0x150)](_0xa52fbc(0x14e),_0x5bdc43);})['catch'](function(_0x13eaf2){const _0x2fc731=_0x3e5a70;logger[_0x2fc731(0x150)](JSON[_0x2fc731(0x157)](_0x13eaf2));});});},Migration['prototype']['addIndex']=function(_0xb8dc42,_0x5c0401,_0x3eb051){const _0x4dbe62=a1159_0x2fe9ab,_0x14d927=this;this[_0x4dbe62(0x15a)][_0x4dbe62(0x161)](function(){const _0x1f3692=_0x4dbe62;return _0x14d927[_0x1f3692(0x15d)][_0x1f3692(0x164)](_0xb8dc42,_0x5c0401,{'indexName':_0x3eb051[_0x1f3692(0x14f)],'indicesType':_0x3eb051[_0x1f3692(0x152)]})[_0x1f3692(0x156)](function(){const _0xf677c7=_0x1f3692;logger[_0xf677c7(0x150)](_0xf677c7(0x168),_0xb8dc42,_0x5c0401['join'](','),_0x3eb051[_0xf677c7(0x14f)],_0x3eb051[_0xf677c7(0x152)]);})[_0x1f3692(0x14d)](function(_0x1eba5f){const _0x3d7b55=_0x1f3692;logger[_0x3d7b55(0x150)](JSON[_0x3d7b55(0x157)](_0x1eba5f));});});},Migration[a1159_0x2fe9ab(0x166)][a1159_0x2fe9ab(0x158)]=function(_0x21da7f,_0x347fc6){const _0x1a75c4=a1159_0x2fe9ab,_0x4a7dfe=this;this[_0x1a75c4(0x15a)][_0x1a75c4(0x161)](function(){const _0x2e322e=_0x1a75c4;return _0x4a7dfe[_0x2e322e(0x15d)][_0x2e322e(0x158)](_0x21da7f,_0x347fc6)[_0x2e322e(0x156)](function(){const _0x3248dc=_0x2e322e;logger[_0x3248dc(0x150)](_0x3248dc(0x159),_0x21da7f,_0x347fc6);})[_0x2e322e(0x14d)](function(_0x38faf1){const _0x4b8b8d=_0x2e322e;logger[_0x4b8b8d(0x150)](JSON[_0x4b8b8d(0x157)](_0x38faf1));});});},Migration[a1159_0x2fe9ab(0x166)][a1159_0x2fe9ab(0x160)]=function(_0xcbd713){const _0x14489c=a1159_0x2fe9ab,_0x4279ca=this;this[_0x14489c(0x15a)][_0x14489c(0x161)](function(){const _0x4199ef=_0x14489c;return _0x4279ca['queryInterface']['sequelize'][_0x4199ef(0x160)](_0xcbd713)[_0x4199ef(0x156)](function(){const _0x3ba890=_0x4199ef;logger[_0x3ba890(0x150)]('query\x20%s',_0xcbd713);})[_0x4199ef(0x14d)](function(_0x44e68b){const _0x3e938f=_0x4199ef;logger[_0x3e938f(0x150)](JSON[_0x3e938f(0x157)](_0x44e68b));});});},Migration['prototype'][a1159_0x2fe9ab(0x151)]=function(_0x4f460a,_0x442aea){const _0x2b8522=a1159_0x2fe9ab,_0xa4ad71=this;this[_0x2b8522(0x15a)]['enqueue'](function(){const _0x7b7c58=_0x2b8522;return _0xa4ad71[_0x7b7c58(0x15d)]['removeColumn'](_0x4f460a,_0x442aea)[_0x7b7c58(0x156)](function(){const _0x2fd857=_0x7b7c58;logger['info'](_0x2fd857(0x149),_0x442aea,_0x4f460a);})[_0x7b7c58(0x14d)](function(_0x39d1dc){const _0x5cee2b=_0x7b7c58;logger[_0x5cee2b(0x150)](util[_0x5cee2b(0x14a)](_0x39d1dc,{'showHidden':![],'depth':null}));});});},Migration[a1159_0x2fe9ab(0x166)][a1159_0x2fe9ab(0x15e)]=function(_0x3fda4a,_0x1d8dcd,_0x14012b){const _0x5b3bde=a1159_0x2fe9ab,_0x4bc441=this;this[_0x5b3bde(0x15a)][_0x5b3bde(0x161)](function(){const _0x52bdc7=_0x5b3bde;return _0x4bc441['queryInterface'][_0x52bdc7(0x15e)](_0x3fda4a,_0x1d8dcd,_0x14012b)[_0x52bdc7(0x156)](function(){const _0x1e30a2=_0x52bdc7;logger[_0x1e30a2(0x150)](_0x1e30a2(0x14c),_0x1d8dcd,_0x14012b,_0x3fda4a);})['catch'](function(_0x5c5e4b){const _0x477cae=_0x52bdc7;logger[_0x477cae(0x150)](util['inspect'](_0x5c5e4b,{'showHidden':![],'depth':null}));});});},Migration[a1159_0x2fe9ab(0x166)][a1159_0x2fe9ab(0x15f)]=function(_0x212843){const _0x324c82=a1159_0x2fe9ab;this[_0x324c82(0x15a)][_0x324c82(0x161)](function(){return _0x212843();});},module['exports']={'up':function(_0x3f8458){return new Promise(function(_0x2d8647){const _0x4d9227=a1159_0x51db,_0x21f852=new Migration(_0x3f8458);_0x21f852[_0x4d9227(0x160)](_0x4d9227(0x154)),_0x21f852[_0x4d9227(0x15f)](_0x2d8647);});},'down':function(){}};
\ No newline at end of file
+const a1162_0x4bbf=['inspect','table\x20dropped\x20%s','dropTable','queryInterface','query\x20%s','catch','join','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','prototype','migration','sequence','addIndex\x20%s\x20%s\x20%s\x20[%s]','util','indicesType','removeColumn','info','removeIndex','UPDATE\x20sms_accounts\x20SET\x20baseUrl\x20=\x20\x22https://sms.csc.lv\x22\x20WHERE\x20type\x20=\x20\x22csc\x22','then','addColumn','enqueue','addIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','query','../config/logger','final','changeColumn','sequelize','Removed\x20column\x20%s\x20from\x20%s','stringify','indexName','Added\x20column\x20%s\x20to\x20%s','renameColumn','tail'];(function(_0x82e270,_0x36e653){const _0x4bbfd=function(_0x586619){while(--_0x586619){_0x82e270['push'](_0x82e270['shift']());}};_0x4bbfd(++_0x36e653);}(a1162_0x4bbf,0xc9));const a1162_0x5866=function(_0x82e270,_0x36e653){_0x82e270=_0x82e270-0xa0;let _0x4bbfd=a1162_0x4bbf[_0x82e270];return _0x4bbfd;};const a1162_0x136067=a1162_0x5866;'use strict';const util=require(a1162_0x136067(0xaf)),logger=require(a1162_0x136067(0xbb))(a1162_0x136067(0xac)),Sequence=function(){};Sequence[a1162_0x136067(0xab)][a1162_0x136067(0xb7)]=function(_0x556730){const _0x47a82b=a1162_0x136067;this[_0x47a82b(0xa2)]=this[_0x47a82b(0xa2)]?this['tail']['finally'](_0x556730):_0x556730();};const Migration=function(_0x589be9){const _0x294028=a1162_0x136067;this[_0x294028(0xa6)]=_0x589be9,this[_0x294028(0xad)]=new Sequence();};Migration[a1162_0x136067(0xab)][a1162_0x136067(0xbd)]=function(_0x507ff8,_0x549438,_0x355d9c){const _0x4c24ee=a1162_0x136067,_0x1c1233=this;this['sequence'][_0x4c24ee(0xb7)](function(){const _0x57e376=_0x4c24ee;return _0x1c1233['queryInterface'][_0x57e376(0xbd)](_0x507ff8,_0x549438,_0x355d9c)[_0x57e376(0xb5)](function(){const _0xf6a2c0=_0x57e376;logger[_0xf6a2c0(0xb2)](_0xf6a2c0(0xb9),_0x549438,_0x507ff8);})['catch'](function(_0x45e872){const _0x58ef3f=_0x57e376;logger[_0x58ef3f(0xb2)](JSON['stringify'](_0x45e872));});});},Migration[a1162_0x136067(0xab)][a1162_0x136067(0xb6)]=function(_0x2e13c2,_0x2127ce,_0x301c22){const _0x5f474e=a1162_0x136067,_0x4d1704=this;this[_0x5f474e(0xad)][_0x5f474e(0xb7)](function(){const _0x56c782=_0x5f474e;return _0x4d1704[_0x56c782(0xa6)][_0x56c782(0xb6)](_0x2e13c2,_0x2127ce,_0x301c22)[_0x56c782(0xb5)](function(){const _0x120f1f=_0x56c782;logger[_0x120f1f(0xb2)](_0x120f1f(0xa0),_0x2127ce,_0x2e13c2);})[_0x56c782(0xa8)](function(_0x284ad2){const _0x474076=_0x56c782;logger[_0x474076(0xb2)](JSON[_0x474076(0xc0)](_0x284ad2));});});},Migration['prototype'][a1162_0x136067(0xa5)]=function(_0x120944){const _0x4daace=a1162_0x136067,_0x2aef29=this;this[_0x4daace(0xad)][_0x4daace(0xb7)](function(){const _0x52d2d1=_0x4daace;return _0x2aef29['queryInterface']['dropTable'](_0x120944,{'force':!![]})[_0x52d2d1(0xb5)](function(){const _0x1a2028=_0x52d2d1;logger['info'](_0x1a2028(0xa4),_0x120944);})[_0x52d2d1(0xa8)](function(_0x546de8){const _0x1d053f=_0x52d2d1;logger['info'](JSON[_0x1d053f(0xc0)](_0x546de8));});});},Migration['prototype'][a1162_0x136067(0xb8)]=function(_0x46a7f3,_0x219a24,_0x2d8c89){const _0x564b31=a1162_0x136067,_0x34227f=this;this[_0x564b31(0xad)][_0x564b31(0xb7)](function(){const _0x4f186b=_0x564b31;return _0x34227f['queryInterface'][_0x4f186b(0xb8)](_0x46a7f3,_0x219a24,{'indexName':_0x2d8c89['indexName'],'indicesType':_0x2d8c89['indicesType']})[_0x4f186b(0xb5)](function(){const _0x1ba5d3=_0x4f186b;logger[_0x1ba5d3(0xb2)](_0x1ba5d3(0xae),_0x46a7f3,_0x219a24[_0x1ba5d3(0xa9)](','),_0x2d8c89[_0x1ba5d3(0xc1)],_0x2d8c89[_0x1ba5d3(0xb0)]);})[_0x4f186b(0xa8)](function(_0x404d59){const _0x25f1e6=_0x4f186b;logger['info'](JSON[_0x25f1e6(0xc0)](_0x404d59));});});},Migration[a1162_0x136067(0xab)][a1162_0x136067(0xb3)]=function(_0x50d5d0,_0x3e4a05){const _0x5b2d09=this;this['sequence']['enqueue'](function(){const _0x1913c0=a1162_0x5866;return _0x5b2d09[_0x1913c0(0xa6)][_0x1913c0(0xb3)](_0x50d5d0,_0x3e4a05)['then'](function(){const _0x243597=_0x1913c0;logger[_0x243597(0xb2)]('removeIndex\x20%s\x20%s',_0x50d5d0,_0x3e4a05);})[_0x1913c0(0xa8)](function(_0x2b1575){const _0x431010=_0x1913c0;logger[_0x431010(0xb2)](JSON['stringify'](_0x2b1575));});});},Migration[a1162_0x136067(0xab)][a1162_0x136067(0xba)]=function(_0x53d4fb){const _0x131767=a1162_0x136067,_0x584a44=this;this[_0x131767(0xad)][_0x131767(0xb7)](function(){const _0x43c84f=_0x131767;return _0x584a44['queryInterface'][_0x43c84f(0xbe)][_0x43c84f(0xba)](_0x53d4fb)[_0x43c84f(0xb5)](function(){const _0xaa0b97=_0x43c84f;logger[_0xaa0b97(0xb2)](_0xaa0b97(0xa7),_0x53d4fb);})[_0x43c84f(0xa8)](function(_0xd02636){const _0x542ae7=_0x43c84f;logger['info'](JSON[_0x542ae7(0xc0)](_0xd02636));});});},Migration['prototype']['removeColumn']=function(_0x1a17ec,_0x195fd7){const _0x1d7c98=a1162_0x136067,_0x3500cc=this;this[_0x1d7c98(0xad)][_0x1d7c98(0xb7)](function(){const _0x3e32e0=_0x1d7c98;return _0x3500cc[_0x3e32e0(0xa6)][_0x3e32e0(0xb1)](_0x1a17ec,_0x195fd7)[_0x3e32e0(0xb5)](function(){const _0x212d19=_0x3e32e0;logger[_0x212d19(0xb2)](_0x212d19(0xbf),_0x195fd7,_0x1a17ec);})[_0x3e32e0(0xa8)](function(_0x31081b){const _0x39773d=_0x3e32e0;logger['info'](util[_0x39773d(0xa3)](_0x31081b,{'showHidden':![],'depth':null}));});});},Migration[a1162_0x136067(0xab)][a1162_0x136067(0xa1)]=function(_0x149491,_0x1a8424,_0xfd947){const _0x442b8a=a1162_0x136067,_0x51df6e=this;this['sequence'][_0x442b8a(0xb7)](function(){const _0x442f8b=_0x442b8a;return _0x51df6e[_0x442f8b(0xa6)][_0x442f8b(0xa1)](_0x149491,_0x1a8424,_0xfd947)[_0x442f8b(0xb5)](function(){const _0x107c13=_0x442f8b;logger[_0x107c13(0xb2)](_0x107c13(0xaa),_0x1a8424,_0xfd947,_0x149491);})[_0x442f8b(0xa8)](function(_0x102c92){const _0x135506=_0x442f8b;logger[_0x135506(0xb2)](util['inspect'](_0x102c92,{'showHidden':![],'depth':null}));});});},Migration[a1162_0x136067(0xab)][a1162_0x136067(0xbc)]=function(_0x5d0efd){const _0x178b01=a1162_0x136067;this[_0x178b01(0xad)][_0x178b01(0xb7)](function(){return _0x5d0efd();});},module['exports']={'up':function(_0x43a61d){return new Promise(function(_0x2f6469){const _0x363ea1=a1162_0x5866,_0x247783=new Migration(_0x43a61d);_0x247783[_0x363ea1(0xba)](_0x363ea1(0xb4)),_0x247783[_0x363ea1(0xbc)](_0x2f6469);});},'down':function(){}};
\ No newline at end of file