Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / migrations / 2.2.0.js
index 3a38975..ee602ed 100644 (file)
@@ -1 +1 @@
-const a965_0x54e7=['util','dropTable','skebby','migration','queryInterface','query','INTEGER','users','exports','changeColumn','twilio','../config/logger','addIndex','removeColumn','Removed\x20column\x20%s\x20from\x20%s','removeIndex','infobip','sequence','plivo','clicksend','connectel','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','csc','prototype','join','enqueue','Added\x20column\x20%s\x20to\x20%s','renameColumn','final','inspect','phoneBarListenPort','stringify','info','addColumn','intelepeer','removeIndex\x20%s\x20%s','tail','type','query\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','then','table\x20dropped\x20%s'];(function(_0x363c1e,_0x54e772){const _0x4452bf=function(_0x508d0f){while(--_0x508d0f){_0x363c1e['push'](_0x363c1e['shift']());}};_0x4452bf(++_0x54e772);}(a965_0x54e7,0xa9));const a965_0x4452=function(_0x363c1e,_0x54e772){_0x363c1e=_0x363c1e-0x0;let _0x4452bf=a965_0x54e7[_0x363c1e];return _0x4452bf;};const _0x19c299=a965_0x4452;'use strict';const util=require(_0x19c299('0x3')),logger=require(_0x19c299('0xe'))(_0x19c299('0x6')),Sequence=function(){};Sequence['prototype'][_0x19c299('0x1d')]=function(_0x508d0f){const _0x11b947=_0x19c299;this[_0x11b947('0x28')]=this[_0x11b947('0x28')]?this[_0x11b947('0x28')]['finally'](_0x508d0f):_0x508d0f();};const Migration=function(_0x59f185){const _0x4e043d=_0x19c299;this[_0x4e043d('0x7')]=_0x59f185,this[_0x4e043d('0x14')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x1ec6dd,_0x2421d3,_0x4aba35){const _0x55d794=_0x19c299,_0x391712=this;this[_0x55d794('0x14')][_0x55d794('0x1d')](function(){const _0x526aad=_0x55d794;return _0x391712['queryInterface'][_0x526aad('0xc')](_0x1ec6dd,_0x2421d3,_0x4aba35)[_0x526aad('0x1')](function(){const _0x519dc3=_0x526aad;logger[_0x519dc3('0x24')](_0x519dc3('0x19'),_0x2421d3,_0x1ec6dd);})[_0x526aad('0x18')](function(_0x5a4ee1){const _0x7a4888=_0x526aad;logger[_0x7a4888('0x24')](JSON[_0x7a4888('0x23')](_0x5a4ee1));});});},Migration[_0x19c299('0x1b')][_0x19c299('0x25')]=function(_0x4e11ce,_0x238444,_0x44c230){const _0x439e39=_0x19c299,_0x2e07aa=this;this[_0x439e39('0x14')][_0x439e39('0x1d')](function(){const _0x2ca2e7=_0x439e39;return _0x2e07aa[_0x2ca2e7('0x7')][_0x2ca2e7('0x25')](_0x4e11ce,_0x238444,_0x44c230)['then'](function(){const _0xdc1a57=_0x2ca2e7;logger[_0xdc1a57('0x24')](_0xdc1a57('0x1e'),_0x238444,_0x4e11ce);})[_0x2ca2e7('0x18')](function(_0x3ebc23){const _0x4c21e3=_0x2ca2e7;logger[_0x4c21e3('0x24')](JSON[_0x4c21e3('0x23')](_0x3ebc23));});});},Migration[_0x19c299('0x1b')][_0x19c299('0x4')]=function(_0x5c3ad9){const _0x19b2f8=_0x19c299,_0xd4cb6f=this;this[_0x19b2f8('0x14')][_0x19b2f8('0x1d')](function(){const _0x4356fb=_0x19b2f8;return _0xd4cb6f[_0x4356fb('0x7')][_0x4356fb('0x4')](_0x5c3ad9,{'force':!![]})[_0x4356fb('0x1')](function(){const _0x43caa7=_0x4356fb;logger[_0x43caa7('0x24')](_0x43caa7('0x2'),_0x5c3ad9);})[_0x4356fb('0x18')](function(_0x18f539){const _0x3948df=_0x4356fb;logger[_0x3948df('0x24')](JSON[_0x3948df('0x23')](_0x18f539));});});},Migration[_0x19c299('0x1b')][_0x19c299('0xf')]=function(_0x5d0f9f,_0x338898,_0x1e4647){const _0x28ebe9=_0x19c299,_0x179add=this;this[_0x28ebe9('0x14')]['enqueue'](function(){const _0x554904=_0x28ebe9;return _0x179add['queryInterface'][_0x554904('0xf')](_0x5d0f9f,_0x338898,{'indexName':_0x1e4647})[_0x554904('0x1')](function(){const _0x2a7597=_0x554904;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x5d0f9f,_0x338898[_0x2a7597('0x1c')](','),_0x1e4647);})['catch'](function(_0x279027){const _0x239b96=_0x554904;logger[_0x239b96('0x24')](JSON[_0x239b96('0x23')](_0x279027));});});},Migration[_0x19c299('0x1b')][_0x19c299('0x12')]=function(_0xb1ce92,_0x14a8ab){const _0x1abdc4=_0x19c299,_0x3917f1=this;this[_0x1abdc4('0x14')][_0x1abdc4('0x1d')](function(){const _0x1bc7a7=_0x1abdc4;return _0x3917f1[_0x1bc7a7('0x7')]['removeIndex'](_0xb1ce92,_0x14a8ab)['then'](function(){const _0x22889c=_0x1bc7a7;logger['info'](_0x22889c('0x27'),_0xb1ce92,_0x14a8ab);})[_0x1bc7a7('0x18')](function(_0x2cfc83){const _0x33193a=_0x1bc7a7;logger['info'](JSON[_0x33193a('0x23')](_0x2cfc83));});});},Migration['prototype'][_0x19c299('0x8')]=function(_0x40bd15){const _0x367513=_0x19c299,_0x2a749e=this;this[_0x367513('0x14')][_0x367513('0x1d')](function(){const _0x4360da=_0x367513;return _0x2a749e[_0x4360da('0x7')]['sequelize']['query'](_0x40bd15)[_0x4360da('0x1')](function(){const _0x35110c=_0x4360da;logger[_0x35110c('0x24')](_0x35110c('0x2a'),_0x40bd15);})[_0x4360da('0x18')](function(_0x31b432){const _0x363bef=_0x4360da;logger[_0x363bef('0x24')](JSON['stringify'](_0x31b432));});});},Migration[_0x19c299('0x1b')][_0x19c299('0x10')]=function(_0x2e9f98,_0x4419c3){const _0x5ecb17=_0x19c299,_0xae0681=this;this[_0x5ecb17('0x14')][_0x5ecb17('0x1d')](function(){const _0x58e054=_0x5ecb17;return _0xae0681[_0x58e054('0x7')][_0x58e054('0x10')](_0x2e9f98,_0x4419c3)[_0x58e054('0x1')](function(){const _0x1582fd=_0x58e054;logger[_0x1582fd('0x24')](_0x1582fd('0x11'),_0x4419c3,_0x2e9f98);})[_0x58e054('0x18')](function(_0x3a7b28){const _0x24a40d=_0x58e054;logger['info'](util[_0x24a40d('0x21')](_0x3a7b28,{'showHidden':![],'depth':null}));});});},Migration[_0x19c299('0x1b')][_0x19c299('0x1f')]=function(_0x5bedaf,_0x1833e8,_0x3a56fc){const _0x2f3c9f=_0x19c299,_0x2b1262=this;this[_0x2f3c9f('0x14')][_0x2f3c9f('0x1d')](function(){const _0x2ea545=_0x2f3c9f;return _0x2b1262[_0x2ea545('0x7')][_0x2ea545('0x1f')](_0x5bedaf,_0x1833e8,_0x3a56fc)['then'](function(){const _0x92d398=_0x2ea545;logger[_0x92d398('0x24')](_0x92d398('0x0'),_0x1833e8,_0x3a56fc,_0x5bedaf);})['catch'](function(_0x49d768){const _0x21ed7f=_0x2ea545;logger[_0x21ed7f('0x24')](util[_0x21ed7f('0x21')](_0x49d768,{'showHidden':![],'depth':null}));});});},Migration[_0x19c299('0x1b')][_0x19c299('0x20')]=function(_0x2874d8){const _0x3a7252=_0x19c299;this[_0x3a7252('0x14')][_0x3a7252('0x1d')](function(){return _0x2874d8();});},module[_0x19c299('0xb')]={'up':function(_0x48a8d9,_0x52c44a){return new Promise(function(_0x1be62c){const _0x500c7c=a965_0x4452,_0x59dd74=new Migration(_0x48a8d9);_0x59dd74[_0x500c7c('0xc')]('sms_accounts',_0x500c7c('0x29'),{'type':_0x52c44a['ENUM'](_0x500c7c('0xd'),_0x500c7c('0x5'),_0x500c7c('0x17'),_0x500c7c('0x16'),_0x500c7c('0x15'),'clickatell',_0x500c7c('0x1a'),_0x500c7c('0x13'),_0x500c7c('0x26'))}),_0x59dd74[_0x500c7c('0xc')](_0x500c7c('0xa'),_0x500c7c('0x22'),{'type':_0x52c44a[_0x500c7c('0x9')](0x5),'defaultValue':0x1428}),_0x59dd74[_0x500c7c('0x20')](_0x1be62c);});},'down':function(){}};
\ No newline at end of file
+const a965_0x4412=['renameColumn','infobip','users','csc','plivo','final','table\x20dropped\x20%s','query\x20%s','addIndex','INTEGER','removeIndex','../config/logger','Changed\x20column\x20%s\x20in\x20table\x20%s','ENUM','addColumn','migration','clicksend','enqueue','changeColumn','twilio','stringify','Added\x20column\x20%s\x20to\x20%s','queryInterface','intelepeer','util','join','connectel','sequence','type','catch','tail','removeColumn','then','removeIndex\x20%s\x20%s','Removed\x20column\x20%s\x20from\x20%s','skebby','phoneBarListenPort','info','prototype','clickatell','inspect','dropTable','query','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','finally'];(function(_0x26eb50,_0x4412de){const _0x115c86=function(_0x5ea68d){while(--_0x5ea68d){_0x26eb50['push'](_0x26eb50['shift']());}};_0x115c86(++_0x4412de);}(a965_0x4412,0xf6));const a965_0x115c=function(_0x26eb50,_0x4412de){_0x26eb50=_0x26eb50-0x0;let _0x115c86=a965_0x4412[_0x26eb50];return _0x115c86;};const _0x49716a=a965_0x115c;'use strict';const util=require(_0x49716a('0x3')),logger=require(_0x49716a('0x23'))(_0x49716a('0x27')),Sequence=function(){};Sequence[_0x49716a('0x11')]['enqueue']=function(_0x5ea68d){const _0x54b3c6=_0x49716a;this[_0x54b3c6('0x9')]=this['tail']?this[_0x54b3c6('0x9')][_0x54b3c6('0x17')](_0x5ea68d):_0x5ea68d();};const Migration=function(_0x4a9f64){const _0x40815e=_0x49716a;this[_0x40815e('0x1')]=_0x4a9f64,this[_0x40815e('0x6')]=new Sequence();};Migration[_0x49716a('0x11')][_0x49716a('0x2a')]=function(_0x100db6,_0x4a341c,_0x417767){const _0xb1685b=_0x49716a,_0x2ec5c8=this;this[_0xb1685b('0x6')][_0xb1685b('0x29')](function(){const _0x1e2c10=_0xb1685b;return _0x2ec5c8[_0x1e2c10('0x1')]['changeColumn'](_0x100db6,_0x4a341c,_0x417767)['then'](function(){const _0x1a4c2d=_0x1e2c10;logger[_0x1a4c2d('0x10')](_0x1a4c2d('0x24'),_0x4a341c,_0x100db6);})['catch'](function(_0x52268c){const _0x2bb3d3=_0x1e2c10;logger[_0x2bb3d3('0x10')](JSON[_0x2bb3d3('0x2c')](_0x52268c));});});},Migration[_0x49716a('0x11')][_0x49716a('0x26')]=function(_0x10c877,_0x19266c,_0x430c64){const _0x3da47d=_0x49716a,_0x3d48ea=this;this['sequence'][_0x3da47d('0x29')](function(){const _0x4c2017=_0x3da47d;return _0x3d48ea[_0x4c2017('0x1')][_0x4c2017('0x26')](_0x10c877,_0x19266c,_0x430c64)['then'](function(){const _0xe9ccca=_0x4c2017;logger['info'](_0xe9ccca('0x0'),_0x19266c,_0x10c877);})[_0x4c2017('0x8')](function(_0x432cbc){const _0x36c6ce=_0x4c2017;logger['info'](JSON[_0x36c6ce('0x2c')](_0x432cbc));});});},Migration[_0x49716a('0x11')][_0x49716a('0x14')]=function(_0x3ffb74){const _0x3440d3=_0x49716a,_0x16b854=this;this['sequence'][_0x3440d3('0x29')](function(){const _0x498425=_0x3440d3;return _0x16b854[_0x498425('0x1')][_0x498425('0x14')](_0x3ffb74,{'force':!![]})[_0x498425('0xb')](function(){const _0xff05f0=_0x498425;logger[_0xff05f0('0x10')](_0xff05f0('0x1e'),_0x3ffb74);})[_0x498425('0x8')](function(_0x16d900){logger['info'](JSON['stringify'](_0x16d900));});});},Migration['prototype'][_0x49716a('0x20')]=function(_0x4e85ab,_0x49f329,_0x1e3a4a){const _0x2250f1=_0x49716a,_0xbe4275=this;this[_0x2250f1('0x6')][_0x2250f1('0x29')](function(){const _0x5da65c=_0x2250f1;return _0xbe4275[_0x5da65c('0x1')][_0x5da65c('0x20')](_0x4e85ab,_0x49f329,{'indexName':_0x1e3a4a})[_0x5da65c('0xb')](function(){const _0x57f8e1=_0x5da65c;logger[_0x57f8e1('0x10')]('addIndex\x20%s\x20%s\x20%s',_0x4e85ab,_0x49f329[_0x57f8e1('0x4')](','),_0x1e3a4a);})['catch'](function(_0x12445f){const _0x44e544=_0x5da65c;logger[_0x44e544('0x10')](JSON['stringify'](_0x12445f));});});},Migration[_0x49716a('0x11')][_0x49716a('0x22')]=function(_0x85d8fd,_0x46a27e){const _0x5b665f=_0x49716a,_0x46a6f8=this;this[_0x5b665f('0x6')][_0x5b665f('0x29')](function(){const _0x4b5835=_0x5b665f;return _0x46a6f8['queryInterface']['removeIndex'](_0x85d8fd,_0x46a27e)[_0x4b5835('0xb')](function(){const _0x192d73=_0x4b5835;logger[_0x192d73('0x10')](_0x192d73('0xc'),_0x85d8fd,_0x46a27e);})['catch'](function(_0x281a1b){const _0x237e9a=_0x4b5835;logger['info'](JSON[_0x237e9a('0x2c')](_0x281a1b));});});},Migration[_0x49716a('0x11')][_0x49716a('0x15')]=function(_0x115c39){const _0x2df233=_0x49716a,_0x1585b6=this;this['sequence'][_0x2df233('0x29')](function(){const _0x5277a7=_0x2df233;return _0x1585b6[_0x5277a7('0x1')]['sequelize'][_0x5277a7('0x15')](_0x115c39)['then'](function(){const _0x26a247=_0x5277a7;logger[_0x26a247('0x10')](_0x26a247('0x1f'),_0x115c39);})[_0x5277a7('0x8')](function(_0x4dafa4){const _0x1754fc=_0x5277a7;logger[_0x1754fc('0x10')](JSON[_0x1754fc('0x2c')](_0x4dafa4));});});},Migration[_0x49716a('0x11')][_0x49716a('0xa')]=function(_0x2f51c1,_0xd74240){const _0x1742b6=_0x49716a,_0xad9c37=this;this[_0x1742b6('0x6')][_0x1742b6('0x29')](function(){const _0x3ffc05=_0x1742b6;return _0xad9c37[_0x3ffc05('0x1')][_0x3ffc05('0xa')](_0x2f51c1,_0xd74240)[_0x3ffc05('0xb')](function(){const _0x55775f=_0x3ffc05;logger[_0x55775f('0x10')](_0x55775f('0xd'),_0xd74240,_0x2f51c1);})['catch'](function(_0x5ae879){const _0x2167e8=_0x3ffc05;logger['info'](util[_0x2167e8('0x13')](_0x5ae879,{'showHidden':![],'depth':null}));});});},Migration[_0x49716a('0x11')][_0x49716a('0x18')]=function(_0x419337,_0x3f2000,_0x4f9120){const _0x5e242c=_0x49716a,_0x136796=this;this[_0x5e242c('0x6')][_0x5e242c('0x29')](function(){const _0x443b08=_0x5e242c;return _0x136796[_0x443b08('0x1')][_0x443b08('0x18')](_0x419337,_0x3f2000,_0x4f9120)[_0x443b08('0xb')](function(){const _0x444d9b=_0x443b08;logger[_0x444d9b('0x10')](_0x444d9b('0x16'),_0x3f2000,_0x4f9120,_0x419337);})[_0x443b08('0x8')](function(_0x4b1bcc){const _0x4f74a4=_0x443b08;logger[_0x4f74a4('0x10')](util[_0x4f74a4('0x13')](_0x4b1bcc,{'showHidden':![],'depth':null}));});});},Migration[_0x49716a('0x11')]['final']=function(_0x563b55){const _0x3257dd=_0x49716a;this[_0x3257dd('0x6')][_0x3257dd('0x29')](function(){return _0x563b55();});},module['exports']={'up':function(_0x471dcd,_0x501f09){return new Promise(function(_0x2bbe27){const _0x28596f=a965_0x115c,_0x41c22b=new Migration(_0x471dcd);_0x41c22b[_0x28596f('0x2a')]('sms_accounts',_0x28596f('0x7'),{'type':_0x501f09[_0x28596f('0x25')](_0x28596f('0x2b'),_0x28596f('0xe'),_0x28596f('0x5'),_0x28596f('0x28'),_0x28596f('0x1c'),_0x28596f('0x12'),_0x28596f('0x1b'),_0x28596f('0x19'),_0x28596f('0x2'))}),_0x41c22b[_0x28596f('0x2a')](_0x28596f('0x1a'),_0x28596f('0xf'),{'type':_0x501f09[_0x28596f('0x21')](0x5),'defaultValue':0x1428}),_0x41c22b[_0x28596f('0x1d')](_0x2bbe27);});},'down':function(){}};
\ No newline at end of file