Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / migrations / 2.2.0.js
index 18e68f3..05edaa8 100644 (file)
@@ -1 +1 @@
-const a965_0x2b5a=['tail','query\x20%s','type','Changed\x20column\x20%s\x20in\x20table\x20%s','csc','enqueue','stringify','changeColumn','sms_accounts','twilio','finally','removeColumn','info','phoneBarListenPort','plivo','sequence','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex\x20%s\x20%s\x20%s','removeIndex','inspect','exports','sequelize','migration','connectel','final','Added\x20column\x20%s\x20to\x20%s','table\x20dropped\x20%s','queryInterface','infobip','dropTable','ENUM','renameColumn','query','catch','removeIndex\x20%s\x20%s','Removed\x20column\x20%s\x20from\x20%s','../config/logger','prototype','addColumn','then','addIndex','util','clicksend'];(function(_0x2907af,_0x2b5a7e){const _0x5ac558=function(_0x15cfb5){while(--_0x15cfb5){_0x2907af['push'](_0x2907af['shift']());}};_0x5ac558(++_0x2b5a7e);}(a965_0x2b5a,0x1f1));const a965_0x5ac5=function(_0x2907af,_0x2b5a7e){_0x2907af=_0x2907af-0x0;let _0x5ac558=a965_0x2b5a[_0x2907af];return _0x5ac558;};const _0xf744ec=a965_0x5ac5;'use strict';const util=require(_0xf744ec('0x11')),logger=require(_0xf744ec('0xc'))(_0xf744ec('0x29')),Sequence=function(){};Sequence[_0xf744ec('0xd')]['enqueue']=function(_0x15cfb5){const _0x28c9d3=_0xf744ec;this[_0x28c9d3('0x13')]=this['tail']?this[_0x28c9d3('0x13')][_0x28c9d3('0x1d')](_0x15cfb5):_0x15cfb5();};const Migration=function(_0x55949d){const _0x25ddde=_0xf744ec;this[_0x25ddde('0x3')]=_0x55949d,this[_0x25ddde('0x22')]=new Sequence();};Migration[_0xf744ec('0xd')][_0xf744ec('0x1a')]=function(_0x2471de,_0x55dab5,_0xbc64c){const _0x24a172=_0xf744ec,_0x47355f=this;this['sequence'][_0x24a172('0x18')](function(){const _0x1851bd=_0x24a172;return _0x47355f['queryInterface']['changeColumn'](_0x2471de,_0x55dab5,_0xbc64c)['then'](function(){const _0x292456=a965_0x5ac5;logger[_0x292456('0x1f')](_0x292456('0x16'),_0x55dab5,_0x2471de);})[_0x1851bd('0x9')](function(_0x4615f4){const _0x4f5e90=_0x1851bd;logger[_0x4f5e90('0x1f')](JSON[_0x4f5e90('0x19')](_0x4615f4));});});},Migration[_0xf744ec('0xd')]['addColumn']=function(_0x3e29a4,_0x4b819c,_0x78eae6){const _0x34c6aa=_0xf744ec,_0x864527=this;this['sequence'][_0x34c6aa('0x18')](function(){const _0x3507a6=_0x34c6aa;return _0x864527['queryInterface'][_0x3507a6('0xe')](_0x3e29a4,_0x4b819c,_0x78eae6)[_0x3507a6('0xf')](function(){const _0x341ce6=_0x3507a6;logger[_0x341ce6('0x1f')](_0x341ce6('0x1'),_0x4b819c,_0x3e29a4);})['catch'](function(_0xb2c1a1){const _0x5302c6=_0x3507a6;logger['info'](JSON[_0x5302c6('0x19')](_0xb2c1a1));});});},Migration['prototype']['dropTable']=function(_0x26f302){const _0x245267=_0xf744ec,_0x1321cc=this;this[_0x245267('0x22')][_0x245267('0x18')](function(){const _0x26cfea=_0x245267;return _0x1321cc[_0x26cfea('0x3')][_0x26cfea('0x5')](_0x26f302,{'force':!![]})[_0x26cfea('0xf')](function(){const _0x502eb4=_0x26cfea;logger[_0x502eb4('0x1f')](_0x502eb4('0x2'),_0x26f302);})[_0x26cfea('0x9')](function(_0x5e3403){const _0xfe9410=_0x26cfea;logger[_0xfe9410('0x1f')](JSON[_0xfe9410('0x19')](_0x5e3403));});});},Migration[_0xf744ec('0xd')][_0xf744ec('0x10')]=function(_0x474754,_0x4bec0b,_0x277c3b){const _0x16e163=_0xf744ec,_0x3bc1bd=this;this[_0x16e163('0x22')][_0x16e163('0x18')](function(){const _0x304a71=_0x16e163;return _0x3bc1bd['queryInterface']['addIndex'](_0x474754,_0x4bec0b,{'indexName':_0x277c3b})[_0x304a71('0xf')](function(){const _0x5881d8=_0x304a71;logger[_0x5881d8('0x1f')](_0x5881d8('0x24'),_0x474754,_0x4bec0b['join'](','),_0x277c3b);})[_0x304a71('0x9')](function(_0x2b33ac){const _0x3b7d9b=_0x304a71;logger[_0x3b7d9b('0x1f')](JSON[_0x3b7d9b('0x19')](_0x2b33ac));});});},Migration[_0xf744ec('0xd')][_0xf744ec('0x25')]=function(_0x22d48a,_0xcc0da0){const _0x243cda=_0xf744ec,_0x596799=this;this[_0x243cda('0x22')][_0x243cda('0x18')](function(){const _0x573c84=_0x243cda;return _0x596799['queryInterface'][_0x573c84('0x25')](_0x22d48a,_0xcc0da0)[_0x573c84('0xf')](function(){const _0x1e2e46=_0x573c84;logger[_0x1e2e46('0x1f')](_0x1e2e46('0xa'),_0x22d48a,_0xcc0da0);})[_0x573c84('0x9')](function(_0x2ec015){const _0x4bcfff=_0x573c84;logger[_0x4bcfff('0x1f')](JSON[_0x4bcfff('0x19')](_0x2ec015));});});},Migration[_0xf744ec('0xd')][_0xf744ec('0x8')]=function(_0x400d0d){const _0x1453a4=this;this['sequence']['enqueue'](function(){const _0x199718=a965_0x5ac5;return _0x1453a4[_0x199718('0x3')][_0x199718('0x28')][_0x199718('0x8')](_0x400d0d)[_0x199718('0xf')](function(){const _0x376382=_0x199718;logger[_0x376382('0x1f')](_0x376382('0x14'),_0x400d0d);})[_0x199718('0x9')](function(_0x4e70b5){const _0x1750b8=_0x199718;logger['info'](JSON[_0x1750b8('0x19')](_0x4e70b5));});});},Migration[_0xf744ec('0xd')][_0xf744ec('0x1e')]=function(_0x5de022,_0x18f2c8){const _0x29ccd5=_0xf744ec,_0x97ea5e=this;this[_0x29ccd5('0x22')][_0x29ccd5('0x18')](function(){const _0x47ab24=_0x29ccd5;return _0x97ea5e['queryInterface']['removeColumn'](_0x5de022,_0x18f2c8)['then'](function(){const _0x14278a=a965_0x5ac5;logger['info'](_0x14278a('0xb'),_0x18f2c8,_0x5de022);})[_0x47ab24('0x9')](function(_0x41d0a6){const _0x4c6067=_0x47ab24;logger[_0x4c6067('0x1f')](util[_0x4c6067('0x26')](_0x41d0a6,{'showHidden':![],'depth':null}));});});},Migration[_0xf744ec('0xd')][_0xf744ec('0x7')]=function(_0x2ca83f,_0x525d85,_0x5bb8d9){const _0x252e73=_0xf744ec,_0x1beb52=this;this['sequence'][_0x252e73('0x18')](function(){const _0x20e6dc=_0x252e73;return _0x1beb52[_0x20e6dc('0x3')]['renameColumn'](_0x2ca83f,_0x525d85,_0x5bb8d9)[_0x20e6dc('0xf')](function(){const _0x203fc2=_0x20e6dc;logger[_0x203fc2('0x1f')](_0x203fc2('0x23'),_0x525d85,_0x5bb8d9,_0x2ca83f);})[_0x20e6dc('0x9')](function(_0x36a8c8){const _0x5d0fe3=_0x20e6dc;logger[_0x5d0fe3('0x1f')](util[_0x5d0fe3('0x26')](_0x36a8c8,{'showHidden':![],'depth':null}));});});},Migration[_0xf744ec('0xd')][_0xf744ec('0x0')]=function(_0x1a9c6c){this['sequence']['enqueue'](function(){return _0x1a9c6c();});},module[_0xf744ec('0x27')]={'up':function(_0x6e3586,_0x42f472){return new Promise(function(_0x4ea62a){const _0x3163ec=a965_0x5ac5,_0x4d035c=new Migration(_0x6e3586);_0x4d035c[_0x3163ec('0x1a')](_0x3163ec('0x1b'),_0x3163ec('0x15'),{'type':_0x42f472[_0x3163ec('0x6')](_0x3163ec('0x1c'),'skebby',_0x3163ec('0x2a'),_0x3163ec('0x12'),_0x3163ec('0x21'),'clickatell',_0x3163ec('0x17'),_0x3163ec('0x4'),'intelepeer')}),_0x4d035c[_0x3163ec('0x1a')]('users',_0x3163ec('0x20'),{'type':_0x42f472['INTEGER'](0x5),'defaultValue':0x1428}),_0x4d035c[_0x3163ec('0x0')](_0x4ea62a);});},'down':function(){}};
\ No newline at end of file
+const a965_0x12e8=['queryInterface','../config/logger','enqueue','type','join','renameColumn','then','info','table\x20dropped\x20%s','csc','skebby','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','infobip','query','Added\x20column\x20%s\x20to\x20%s','inspect','addColumn','clickatell','plivo','sequence','catch','util','connectel','ENUM','stringify','removeIndex\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','changeColumn','clicksend','intelepeer','removeColumn','dropTable','phoneBarListenPort','users','sequelize','tail','finally','final','Removed\x20column\x20%s\x20from\x20%s','addIndex','INTEGER','migration'];(function(_0x555209,_0x12e83f){const _0x16b719=function(_0x146d45){while(--_0x146d45){_0x555209['push'](_0x555209['shift']());}};_0x16b719(++_0x12e83f);}(a965_0x12e8,0x190));const a965_0x16b7=function(_0x555209,_0x12e83f){_0x555209=_0x555209-0x0;let _0x16b719=a965_0x12e8[_0x555209];return _0x16b719;};const _0x4d47f6=a965_0x16b7;'use strict';const util=require(_0x4d47f6('0x9')),logger=require(_0x4d47f6('0x1f'))(_0x4d47f6('0x1d')),Sequence=function(){};Sequence[_0x4d47f6('0x29')]['enqueue']=function(_0x146d45){const _0x15a211=_0x4d47f6;this['tail']=this['tail']?this[_0x15a211('0x17')][_0x15a211('0x18')](_0x146d45):_0x146d45();};const Migration=function(_0x40f045){const _0x3d4252=_0x4d47f6;this[_0x3d4252('0x1e')]=_0x40f045,this[_0x3d4252('0x7')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x49d799,_0x217798,_0x1512cc){const _0x4a23a2=_0x4d47f6,_0x3eff17=this;this[_0x4a23a2('0x7')][_0x4a23a2('0x20')](function(){const _0x3dba7a=_0x4a23a2;return _0x3eff17[_0x3dba7a('0x1e')]['changeColumn'](_0x49d799,_0x217798,_0x1512cc)[_0x3dba7a('0x24')](function(){const _0x17d738=_0x3dba7a;logger[_0x17d738('0x25')](_0x17d738('0x2a'),_0x217798,_0x49d799);})['catch'](function(_0x4823a7){const _0x8df44a=_0x3dba7a;logger['info'](JSON[_0x8df44a('0xc')](_0x4823a7));});});},Migration['prototype'][_0x4d47f6('0x4')]=function(_0x4db83d,_0x298198,_0x3a2f84){const _0x37f216=_0x4d47f6,_0x2c04ec=this;this['sequence'][_0x37f216('0x20')](function(){const _0x3b66a7=_0x37f216;return _0x2c04ec[_0x3b66a7('0x1e')][_0x3b66a7('0x4')](_0x4db83d,_0x298198,_0x3a2f84)['then'](function(){const _0x254f73=_0x3b66a7;logger[_0x254f73('0x25')](_0x254f73('0x2'),_0x298198,_0x4db83d);})[_0x3b66a7('0x8')](function(_0x5074f4){const _0x403d58=_0x3b66a7;logger[_0x403d58('0x25')](JSON[_0x403d58('0xc')](_0x5074f4));});});},Migration[_0x4d47f6('0x29')][_0x4d47f6('0x13')]=function(_0x4d7a94){const _0x4842f6=_0x4d47f6,_0x4e3973=this;this[_0x4842f6('0x7')][_0x4842f6('0x20')](function(){const _0x598510=_0x4842f6;return _0x4e3973['queryInterface'][_0x598510('0x13')](_0x4d7a94,{'force':!![]})[_0x598510('0x24')](function(){const _0x33acc1=_0x598510;logger['info'](_0x33acc1('0x26'),_0x4d7a94);})[_0x598510('0x8')](function(_0x2b957c){const _0x961bde=_0x598510;logger[_0x961bde('0x25')](JSON[_0x961bde('0xc')](_0x2b957c));});});},Migration['prototype'][_0x4d47f6('0x1b')]=function(_0x37d161,_0x150c7f,_0x11b7c9){const _0x31effa=_0x4d47f6,_0x4c32ef=this;this[_0x31effa('0x7')][_0x31effa('0x20')](function(){const _0x5aa88d=_0x31effa;return _0x4c32ef[_0x5aa88d('0x1e')][_0x5aa88d('0x1b')](_0x37d161,_0x150c7f,{'indexName':_0x11b7c9})['then'](function(){const _0x138943=_0x5aa88d;logger[_0x138943('0x25')]('addIndex\x20%s\x20%s\x20%s',_0x37d161,_0x150c7f[_0x138943('0x22')](','),_0x11b7c9);})['catch'](function(_0x32134a){const _0x194568=_0x5aa88d;logger['info'](JSON[_0x194568('0xc')](_0x32134a));});});},Migration[_0x4d47f6('0x29')]['removeIndex']=function(_0x47acf2,_0x10de84){const _0x1b00e7=_0x4d47f6,_0x5b1eb5=this;this[_0x1b00e7('0x7')][_0x1b00e7('0x20')](function(){const _0x103041=_0x1b00e7;return _0x5b1eb5[_0x103041('0x1e')]['removeIndex'](_0x47acf2,_0x10de84)[_0x103041('0x24')](function(){const _0x21e0af=_0x103041;logger['info'](_0x21e0af('0xd'),_0x47acf2,_0x10de84);})['catch'](function(_0xf57e7d){const _0x1455ed=_0x103041;logger[_0x1455ed('0x25')](JSON[_0x1455ed('0xc')](_0xf57e7d));});});},Migration[_0x4d47f6('0x29')]['query']=function(_0x392ca8){const _0x34ecc0=_0x4d47f6,_0x12e2df=this;this['sequence'][_0x34ecc0('0x20')](function(){const _0x1545b3=_0x34ecc0;return _0x12e2df[_0x1545b3('0x1e')][_0x1545b3('0x16')][_0x1545b3('0x1')](_0x392ca8)[_0x1545b3('0x24')](function(){logger['info']('query\x20%s',_0x392ca8);})[_0x1545b3('0x8')](function(_0x4fd082){const _0x354857=_0x1545b3;logger[_0x354857('0x25')](JSON[_0x354857('0xc')](_0x4fd082));});});},Migration[_0x4d47f6('0x29')][_0x4d47f6('0x12')]=function(_0x38e022,_0x2e36ed){const _0x1cae28=_0x4d47f6,_0x259e26=this;this['sequence'][_0x1cae28('0x20')](function(){const _0x2be0db=_0x1cae28;return _0x259e26[_0x2be0db('0x1e')]['removeColumn'](_0x38e022,_0x2e36ed)['then'](function(){const _0x5662cb=_0x2be0db;logger[_0x5662cb('0x25')](_0x5662cb('0x1a'),_0x2e36ed,_0x38e022);})['catch'](function(_0x2346a7){const _0x2f34fb=_0x2be0db;logger[_0x2f34fb('0x25')](util[_0x2f34fb('0x3')](_0x2346a7,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x4d47f6('0x23')]=function(_0x47fe64,_0x2dbf58,_0x47e406){const _0x2d7d12=_0x4d47f6,_0x1dd598=this;this[_0x2d7d12('0x7')][_0x2d7d12('0x20')](function(){const _0x1104aa=_0x2d7d12;return _0x1dd598[_0x1104aa('0x1e')]['renameColumn'](_0x47fe64,_0x2dbf58,_0x47e406)['then'](function(){const _0x46dac7=_0x1104aa;logger['info'](_0x46dac7('0xe'),_0x2dbf58,_0x47e406,_0x47fe64);})[_0x1104aa('0x8')](function(_0x56009e){const _0x9297d2=_0x1104aa;logger['info'](util[_0x9297d2('0x3')](_0x56009e,{'showHidden':![],'depth':null}));});});},Migration[_0x4d47f6('0x29')][_0x4d47f6('0x19')]=function(_0x431b49){const _0x2cd6e9=_0x4d47f6;this[_0x2cd6e9('0x7')][_0x2cd6e9('0x20')](function(){return _0x431b49();});},module['exports']={'up':function(_0x2c5661,_0x476ff3){return new Promise(function(_0x1f5666){const _0x174bb9=a965_0x16b7,_0x38365e=new Migration(_0x2c5661);_0x38365e[_0x174bb9('0xf')]('sms_accounts',_0x174bb9('0x21'),{'type':_0x476ff3[_0x174bb9('0xb')]('twilio',_0x174bb9('0x28'),_0x174bb9('0xa'),_0x174bb9('0x10'),_0x174bb9('0x6'),_0x174bb9('0x5'),_0x174bb9('0x27'),_0x174bb9('0x0'),_0x174bb9('0x11'))}),_0x38365e[_0x174bb9('0xf')](_0x174bb9('0x15'),_0x174bb9('0x14'),{'type':_0x476ff3[_0x174bb9('0x1c')](0x5),'defaultValue':0x1428}),_0x38365e[_0x174bb9('0x19')](_0x1f5666);});},'down':function(){}};
\ No newline at end of file