Built motion from commit 4a18b36e645f5fa4a517d36f9783bde259878164. Version 3.0.0...
[motion-next.git] / server / migrations / 2.2.0.js
index ddfe19c..2f5cf34 100644 (file)
@@ -1 +1 @@
-const a965_0x380c=['join','sequelize','phoneBarListenPort','type','renameColumn','../config/logger','table\x20dropped\x20%s','addIndex\x20%s\x20%s\x20%s','twilio','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','final','Changed\x20column\x20%s\x20in\x20table\x20%s','query\x20%s','queryInterface','addColumn','ENUM','removeColumn','then','infobip','util','prototype','query','removeIndex','addIndex','skebby','connectel','info','tail','changeColumn','enqueue','sms_accounts','catch','finally','clickatell','clicksend','INTEGER','stringify','Removed\x20column\x20%s\x20from\x20%s','sequence','inspect','dropTable'];(function(_0x2b9544,_0x380ca7){const _0x4d3f55=function(_0x46aaa1){while(--_0x46aaa1){_0x2b9544['push'](_0x2b9544['shift']());}};_0x4d3f55(++_0x380ca7);}(a965_0x380c,0x105));const a965_0x4d3f=function(_0x2b9544,_0x380ca7){_0x2b9544=_0x2b9544-0x0;let _0x4d3f55=a965_0x380c[_0x2b9544];return _0x4d3f55;};const _0x38f564=a965_0x4d3f;'use strict';const util=require(_0x38f564('0x4')),logger=require(_0x38f564('0x1f'))('migration'),Sequence=function(){};Sequence[_0x38f564('0x5')][_0x38f564('0xe')]=function(_0x46aaa1){const _0x115201=_0x38f564;this[_0x115201('0xc')]=this[_0x115201('0xc')]?this['tail'][_0x115201('0x11')](_0x46aaa1):_0x46aaa1();};const Migration=function(_0x50ddd1){const _0x44ec2d=_0x38f564;this[_0x44ec2d('0x27')]=_0x50ddd1,this['sequence']=new Sequence();};Migration['prototype'][_0x38f564('0xd')]=function(_0x539ecc,_0x4488c2,_0x567950){const _0x5e8d22=_0x38f564,_0x416fc9=this;this[_0x5e8d22('0x17')]['enqueue'](function(){const _0x41c1ee=_0x5e8d22;return _0x416fc9[_0x41c1ee('0x27')][_0x41c1ee('0xd')](_0x539ecc,_0x4488c2,_0x567950)[_0x41c1ee('0x2')](function(){const _0x1dd274=_0x41c1ee;logger['info'](_0x1dd274('0x25'),_0x4488c2,_0x539ecc);})[_0x41c1ee('0x10')](function(_0x5076f3){const _0x11ede3=_0x41c1ee;logger[_0x11ede3('0xb')](JSON[_0x11ede3('0x15')](_0x5076f3));});});},Migration[_0x38f564('0x5')][_0x38f564('0x28')]=function(_0x30cdcd,_0x477703,_0x4c4c94){const _0x578b65=_0x38f564,_0xaefc7=this;this[_0x578b65('0x17')][_0x578b65('0xe')](function(){const _0x257a6e=_0x578b65;return _0xaefc7[_0x257a6e('0x27')][_0x257a6e('0x28')](_0x30cdcd,_0x477703,_0x4c4c94)[_0x257a6e('0x2')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x477703,_0x30cdcd);})[_0x257a6e('0x10')](function(_0x3826eb){const _0x18d691=_0x257a6e;logger[_0x18d691('0xb')](JSON['stringify'](_0x3826eb));});});},Migration[_0x38f564('0x5')][_0x38f564('0x19')]=function(_0x423347){const _0x9e096d=_0x38f564,_0x1f2ff3=this;this[_0x9e096d('0x17')]['enqueue'](function(){const _0x549590=_0x9e096d;return _0x1f2ff3['queryInterface']['dropTable'](_0x423347,{'force':!![]})[_0x549590('0x2')](function(){const _0x557003=_0x549590;logger['info'](_0x557003('0x20'),_0x423347);})[_0x549590('0x10')](function(_0x3519ce){const _0x25bfe6=_0x549590;logger[_0x25bfe6('0xb')](JSON[_0x25bfe6('0x15')](_0x3519ce));});});},Migration[_0x38f564('0x5')][_0x38f564('0x8')]=function(_0x3145a1,_0x5b7992,_0x32fb20){const _0x1e9224=_0x38f564,_0x13622e=this;this[_0x1e9224('0x17')][_0x1e9224('0xe')](function(){const _0x7fd5e1=_0x1e9224;return _0x13622e[_0x7fd5e1('0x27')][_0x7fd5e1('0x8')](_0x3145a1,_0x5b7992,{'indexName':_0x32fb20})[_0x7fd5e1('0x2')](function(){const _0x3b27bf=_0x7fd5e1;logger['info'](_0x3b27bf('0x21'),_0x3145a1,_0x5b7992[_0x3b27bf('0x1a')](','),_0x32fb20);})[_0x7fd5e1('0x10')](function(_0x5c3af0){const _0x425f38=_0x7fd5e1;logger[_0x425f38('0xb')](JSON['stringify'](_0x5c3af0));});});},Migration[_0x38f564('0x5')][_0x38f564('0x7')]=function(_0xfdf798,_0x45b541){const _0xd543df=_0x38f564,_0x1da39e=this;this[_0xd543df('0x17')][_0xd543df('0xe')](function(){const _0x58274d=_0xd543df;return _0x1da39e['queryInterface'][_0x58274d('0x7')](_0xfdf798,_0x45b541)[_0x58274d('0x2')](function(){const _0x41ece0=_0x58274d;logger[_0x41ece0('0xb')]('removeIndex\x20%s\x20%s',_0xfdf798,_0x45b541);})[_0x58274d('0x10')](function(_0xa4b7b2){const _0x453dcf=_0x58274d;logger[_0x453dcf('0xb')](JSON[_0x453dcf('0x15')](_0xa4b7b2));});});},Migration[_0x38f564('0x5')]['query']=function(_0x4791c2){const _0x5bee0d=_0x38f564,_0x65439=this;this[_0x5bee0d('0x17')][_0x5bee0d('0xe')](function(){const _0x205ecb=_0x5bee0d;return _0x65439[_0x205ecb('0x27')][_0x205ecb('0x1b')][_0x205ecb('0x6')](_0x4791c2)[_0x205ecb('0x2')](function(){const _0x3d6ac6=_0x205ecb;logger[_0x3d6ac6('0xb')](_0x3d6ac6('0x26'),_0x4791c2);})[_0x205ecb('0x10')](function(_0x41b252){const _0x20c888=_0x205ecb;logger[_0x20c888('0xb')](JSON[_0x20c888('0x15')](_0x41b252));});});},Migration[_0x38f564('0x5')][_0x38f564('0x1')]=function(_0x46a2df,_0x4ef425){const _0x4157af=_0x38f564,_0x2a26f6=this;this['sequence'][_0x4157af('0xe')](function(){const _0x2db403=_0x4157af;return _0x2a26f6['queryInterface'][_0x2db403('0x1')](_0x46a2df,_0x4ef425)['then'](function(){const _0x4b6ae7=_0x2db403;logger['info'](_0x4b6ae7('0x16'),_0x4ef425,_0x46a2df);})[_0x2db403('0x10')](function(_0xeed64e){const _0x15d904=_0x2db403;logger[_0x15d904('0xb')](util[_0x15d904('0x18')](_0xeed64e,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x38f564('0x1e')]=function(_0x492c3a,_0x338d06,_0x51a594){const _0xd9ee9a=_0x38f564,_0x6e3f67=this;this[_0xd9ee9a('0x17')][_0xd9ee9a('0xe')](function(){const _0x53ee80=_0xd9ee9a;return _0x6e3f67[_0x53ee80('0x27')][_0x53ee80('0x1e')](_0x492c3a,_0x338d06,_0x51a594)['then'](function(){const _0x11d876=_0x53ee80;logger[_0x11d876('0xb')](_0x11d876('0x23'),_0x338d06,_0x51a594,_0x492c3a);})[_0x53ee80('0x10')](function(_0x5449bc){const _0x8c9971=_0x53ee80;logger['info'](util[_0x8c9971('0x18')](_0x5449bc,{'showHidden':![],'depth':null}));});});},Migration[_0x38f564('0x5')][_0x38f564('0x24')]=function(_0x1feccd){const _0xf5408=_0x38f564;this[_0xf5408('0x17')][_0xf5408('0xe')](function(){return _0x1feccd();});},module['exports']={'up':function(_0x14faaf,_0x495522){return new Promise(function(_0x248414){const _0xd742f5=a965_0x4d3f,_0x289ae6=new Migration(_0x14faaf);_0x289ae6[_0xd742f5('0xd')](_0xd742f5('0xf'),_0xd742f5('0x1d'),{'type':_0x495522[_0xd742f5('0x0')](_0xd742f5('0x22'),_0xd742f5('0x9'),_0xd742f5('0xa'),_0xd742f5('0x13'),'plivo',_0xd742f5('0x12'),'csc',_0xd742f5('0x3'),'intelepeer')}),_0x289ae6['changeColumn']('users',_0xd742f5('0x1c'),{'type':_0x495522[_0xd742f5('0x14')](0x5),'defaultValue':0x1428}),_0x289ae6[_0xd742f5('0x24')](_0x248414);});},'down':function(){}};
\ No newline at end of file
+const a964_0x55d8=['../config/logger','catch','info','users','prototype','util','Changed\x20column\x20%s\x20in\x20table\x20%s','join','csc','sequelize','ENUM','removeIndex','INTEGER','removeIndex\x20%s\x20%s','addIndex\x20%s\x20%s\x20%s','renameColumn','dropTable','addIndex','inspect','tail','query\x20%s','phoneBarListenPort','removeColumn','Removed\x20column\x20%s\x20from\x20%s','then','sms_accounts','twilio','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','changeColumn','queryInterface','connectel','query','sequence','stringify','enqueue','final','table\x20dropped\x20%s','Added\x20column\x20%s\x20to\x20%s','infobip','type','plivo','addColumn'];(function(_0x2c3cf3,_0x55d8dd){const _0x2c0db9=function(_0x1f75d4){while(--_0x1f75d4){_0x2c3cf3['push'](_0x2c3cf3['shift']());}};_0x2c0db9(++_0x55d8dd);}(a964_0x55d8,0x104));const a964_0x2c0d=function(_0x2c3cf3,_0x55d8dd){_0x2c3cf3=_0x2c3cf3-0x0;let _0x2c0db9=a964_0x55d8[_0x2c3cf3];return _0x2c0db9;};const _0x185687=a964_0x2c0d;'use strict';const util=require(_0x185687('0x27')),logger=require(_0x185687('0x22'))('migration'),Sequence=function(){};Sequence['prototype'][_0x185687('0x1a')]=function(_0x1f75d4){const _0x34867b=_0x185687;this[_0x34867b('0xb')]=this[_0x34867b('0xb')]?this[_0x34867b('0xb')]['finally'](_0x1f75d4):_0x1f75d4();};const Migration=function(_0x216b0b){const _0x4b378c=_0x185687;this[_0x4b378c('0x15')]=_0x216b0b,this[_0x4b378c('0x18')]=new Sequence();};Migration['prototype'][_0x185687('0x14')]=function(_0x2079f9,_0x5ac39c,_0x15ed92){const _0x3f80d2=_0x185687,_0x34d76d=this;this[_0x3f80d2('0x18')][_0x3f80d2('0x1a')](function(){const _0x3913b5=_0x3f80d2;return _0x34d76d['queryInterface'][_0x3913b5('0x14')](_0x2079f9,_0x5ac39c,_0x15ed92)[_0x3913b5('0x10')](function(){const _0x3470aa=_0x3913b5;logger[_0x3470aa('0x24')](_0x3470aa('0x28'),_0x5ac39c,_0x2079f9);})[_0x3913b5('0x23')](function(_0x1db4b0){const _0xe15701=_0x3913b5;logger['info'](JSON[_0xe15701('0x19')](_0x1db4b0));});});},Migration[_0x185687('0x26')][_0x185687('0x21')]=function(_0x57f85e,_0x1815b1,_0x2ef0ee){const _0x4c25f0=_0x185687,_0x289a8d=this;this['sequence'][_0x4c25f0('0x1a')](function(){const _0x31328e=_0x4c25f0;return _0x289a8d[_0x31328e('0x15')][_0x31328e('0x21')](_0x57f85e,_0x1815b1,_0x2ef0ee)[_0x31328e('0x10')](function(){const _0x482ff9=_0x31328e;logger[_0x482ff9('0x24')](_0x482ff9('0x1d'),_0x1815b1,_0x57f85e);})[_0x31328e('0x23')](function(_0x15d0b4){const _0x1abc67=_0x31328e;logger[_0x1abc67('0x24')](JSON[_0x1abc67('0x19')](_0x15d0b4));});});},Migration[_0x185687('0x26')]['dropTable']=function(_0x38d379){const _0x4f10ec=_0x185687,_0x5c331d=this;this[_0x4f10ec('0x18')][_0x4f10ec('0x1a')](function(){const _0x9874ab=_0x4f10ec;return _0x5c331d['queryInterface'][_0x9874ab('0x8')](_0x38d379,{'force':!![]})['then'](function(){const _0x4a89fc=_0x9874ab;logger[_0x4a89fc('0x24')](_0x4a89fc('0x1c'),_0x38d379);})[_0x9874ab('0x23')](function(_0x526c98){logger['info'](JSON['stringify'](_0x526c98));});});},Migration[_0x185687('0x26')]['addIndex']=function(_0x1eb228,_0x1dfdee,_0x1988ba){const _0x3b8796=_0x185687,_0x47462d=this;this[_0x3b8796('0x18')][_0x3b8796('0x1a')](function(){const _0x5b9615=_0x3b8796;return _0x47462d[_0x5b9615('0x15')][_0x5b9615('0x9')](_0x1eb228,_0x1dfdee,{'indexName':_0x1988ba})[_0x5b9615('0x10')](function(){const _0x44fe08=_0x5b9615;logger[_0x44fe08('0x24')](_0x44fe08('0x6'),_0x1eb228,_0x1dfdee[_0x44fe08('0x29')](','),_0x1988ba);})['catch'](function(_0x2debd8){const _0x4c33ea=_0x5b9615;logger[_0x4c33ea('0x24')](JSON[_0x4c33ea('0x19')](_0x2debd8));});});},Migration[_0x185687('0x26')]['removeIndex']=function(_0x498b67,_0x31e902){const _0xda073d=_0x185687,_0x553000=this;this[_0xda073d('0x18')][_0xda073d('0x1a')](function(){const _0x19d820=_0xda073d;return _0x553000['queryInterface'][_0x19d820('0x3')](_0x498b67,_0x31e902)[_0x19d820('0x10')](function(){const _0x330458=_0x19d820;logger['info'](_0x330458('0x5'),_0x498b67,_0x31e902);})[_0x19d820('0x23')](function(_0x1d438a){const _0xa224ab=_0x19d820;logger[_0xa224ab('0x24')](JSON['stringify'](_0x1d438a));});});},Migration[_0x185687('0x26')]['query']=function(_0x99367c){const _0x5c6ff7=_0x185687,_0x1a0b0c=this;this[_0x5c6ff7('0x18')][_0x5c6ff7('0x1a')](function(){const _0x5094fd=_0x5c6ff7;return _0x1a0b0c['queryInterface'][_0x5094fd('0x1')][_0x5094fd('0x17')](_0x99367c)[_0x5094fd('0x10')](function(){const _0x5c9b66=_0x5094fd;logger[_0x5c9b66('0x24')](_0x5c9b66('0xc'),_0x99367c);})[_0x5094fd('0x23')](function(_0x5e6937){const _0x425509=_0x5094fd;logger[_0x425509('0x24')](JSON[_0x425509('0x19')](_0x5e6937));});});},Migration[_0x185687('0x26')][_0x185687('0xe')]=function(_0x153eb6,_0x5dfd30){const _0x2d1f38=_0x185687,_0x547bda=this;this[_0x2d1f38('0x18')][_0x2d1f38('0x1a')](function(){const _0x5bd778=_0x2d1f38;return _0x547bda[_0x5bd778('0x15')][_0x5bd778('0xe')](_0x153eb6,_0x5dfd30)['then'](function(){const _0x126238=_0x5bd778;logger[_0x126238('0x24')](_0x126238('0xf'),_0x5dfd30,_0x153eb6);})[_0x5bd778('0x23')](function(_0x46a24c){const _0x363bad=_0x5bd778;logger[_0x363bad('0x24')](util[_0x363bad('0xa')](_0x46a24c,{'showHidden':![],'depth':null}));});});},Migration[_0x185687('0x26')][_0x185687('0x7')]=function(_0x3aaf83,_0x12ef58,_0xa96d6e){const _0xcf90df=_0x185687,_0xb9aee7=this;this[_0xcf90df('0x18')][_0xcf90df('0x1a')](function(){const _0x10d005=_0xcf90df;return _0xb9aee7['queryInterface'][_0x10d005('0x7')](_0x3aaf83,_0x12ef58,_0xa96d6e)[_0x10d005('0x10')](function(){const _0x408282=_0x10d005;logger[_0x408282('0x24')](_0x408282('0x13'),_0x12ef58,_0xa96d6e,_0x3aaf83);})[_0x10d005('0x23')](function(_0x5776ed){const _0x3220fb=_0x10d005;logger[_0x3220fb('0x24')](util[_0x3220fb('0xa')](_0x5776ed,{'showHidden':![],'depth':null}));});});},Migration[_0x185687('0x26')]['final']=function(_0x5a312a){const _0xc3146e=_0x185687;this['sequence'][_0xc3146e('0x1a')](function(){return _0x5a312a();});},module['exports']={'up':function(_0x7c9647,_0xa0b497){return new Promise(function(_0x46da7e){const _0x59d0aa=a964_0x2c0d,_0x9d6b0b=new Migration(_0x7c9647);_0x9d6b0b['changeColumn'](_0x59d0aa('0x11'),_0x59d0aa('0x1f'),{'type':_0xa0b497[_0x59d0aa('0x2')](_0x59d0aa('0x12'),'skebby',_0x59d0aa('0x16'),'clicksend',_0x59d0aa('0x20'),'clickatell',_0x59d0aa('0x0'),_0x59d0aa('0x1e'),'intelepeer')}),_0x9d6b0b['changeColumn'](_0x59d0aa('0x25'),_0x59d0aa('0xd'),{'type':_0xa0b497[_0x59d0aa('0x4')](0x5),'defaultValue':0x1428}),_0x9d6b0b[_0x59d0aa('0x1b')](_0x46da7e);});},'down':function(){}};
\ No newline at end of file