Built motion from commit be44e1e4d16f8b29d243415b03d27262d8601e0e. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.76.js
index d01a816..7e675af 100644 (file)
@@ -1 +1 @@
-const a955_0x1469=['ALTER\x20TABLE\x20report_mail_transfer\x20ENCRYPTION=\x27Y\x27;','removeIndex\x20%s\x20%s','../config/logger','sequence','addIndex','ALTER\x20TABLE\x20report_openchannel_transfer\x20ENCRYPTION=\x27Y\x27;','Added\x20column\x20%s\x20to\x20%s','dropTable','ALTER\x20TABLE\x20report_fax_transfer\x20ENCRYPTION=\x27Y\x27;','Changed\x20column\x20%s\x20in\x20table\x20%s','removeColumn','sequelize','removeIndex','inspect','query','final','catch','migration','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','changeColumn','enqueue','Removed\x20column\x20%s\x20from\x20%s','tail','users','query\x20%s','BOOLEAN','prototype','stringify','addColumn','then','queryInterface','join','addIndex\x20%s\x20%s\x20%s','renameColumn','info'];(function(_0x2eabd7,_0x14692e){const _0x13a270=function(_0x202f86){while(--_0x202f86){_0x2eabd7['push'](_0x2eabd7['shift']());}};_0x13a270(++_0x14692e);}(a955_0x1469,0x161));const a955_0x13a2=function(_0x2eabd7,_0x14692e){_0x2eabd7=_0x2eabd7-0x0;let _0x13a270=a955_0x1469[_0x2eabd7];return _0x13a270;};const _0x3f35da=a955_0x13a2;'use strict';const util=require('util'),logger=require(_0x3f35da('0x22'))(_0x3f35da('0xe')),Sequence=function(){};Sequence[_0x3f35da('0x17')][_0x3f35da('0x11')]=function(_0x202f86){const _0x41355d=_0x3f35da;this['tail']=this['tail']?this[_0x41355d('0x13')]['finally'](_0x202f86):_0x202f86();};const Migration=function(_0x1a59ae){const _0x137004=_0x3f35da;this['queryInterface']=_0x1a59ae,this[_0x137004('0x0')]=new Sequence();};Migration[_0x3f35da('0x17')][_0x3f35da('0x10')]=function(_0xbd57e9,_0x154bbb,_0x59c437){const _0x276013=_0x3f35da,_0x59430d=this;this[_0x276013('0x0')][_0x276013('0x11')](function(){const _0x39a15f=_0x276013;return _0x59430d[_0x39a15f('0x1b')][_0x39a15f('0x10')](_0xbd57e9,_0x154bbb,_0x59c437)[_0x39a15f('0x1a')](function(){const _0x2df4d2=_0x39a15f;logger[_0x2df4d2('0x1f')](_0x2df4d2('0x6'),_0x154bbb,_0xbd57e9);})[_0x39a15f('0xd')](function(_0xeb8b9d){const _0x5610f5=_0x39a15f;logger[_0x5610f5('0x1f')](JSON[_0x5610f5('0x18')](_0xeb8b9d));});});},Migration['prototype']['addColumn']=function(_0x1bf856,_0x80741d,_0x3adf51){const _0x46acf6=_0x3f35da,_0x37f4d5=this;this[_0x46acf6('0x0')]['enqueue'](function(){const _0x1efe56=_0x46acf6;return _0x37f4d5[_0x1efe56('0x1b')]['addColumn'](_0x1bf856,_0x80741d,_0x3adf51)[_0x1efe56('0x1a')](function(){const _0x4951f1=_0x1efe56;logger['info'](_0x4951f1('0x3'),_0x80741d,_0x1bf856);})[_0x1efe56('0xd')](function(_0x293f5c){logger['info'](JSON['stringify'](_0x293f5c));});});},Migration['prototype'][_0x3f35da('0x4')]=function(_0x32f6c4){const _0x92aa=_0x3f35da,_0x48b50d=this;this[_0x92aa('0x0')][_0x92aa('0x11')](function(){const _0x2b2962=_0x92aa;return _0x48b50d[_0x2b2962('0x1b')][_0x2b2962('0x4')](_0x32f6c4,{'force':!![]})[_0x2b2962('0x1a')](function(){const _0x5bb1b7=_0x2b2962;logger[_0x5bb1b7('0x1f')]('table\x20dropped\x20%s',_0x32f6c4);})[_0x2b2962('0xd')](function(_0x204e79){const _0x3034a2=_0x2b2962;logger[_0x3034a2('0x1f')](JSON[_0x3034a2('0x18')](_0x204e79));});});},Migration[_0x3f35da('0x17')][_0x3f35da('0x1')]=function(_0xff6bab,_0x42b088,_0x4e9983){const _0x4d8b64=_0x3f35da,_0x2e8bdd=this;this[_0x4d8b64('0x0')][_0x4d8b64('0x11')](function(){const _0x509f46=_0x4d8b64;return _0x2e8bdd[_0x509f46('0x1b')][_0x509f46('0x1')](_0xff6bab,_0x42b088,{'indexName':_0x4e9983})['then'](function(){const _0x59a894=_0x509f46;logger[_0x59a894('0x1f')](_0x59a894('0x1d'),_0xff6bab,_0x42b088[_0x59a894('0x1c')](','),_0x4e9983);})[_0x509f46('0xd')](function(_0x5a3a7d){const _0x3631b1=_0x509f46;logger['info'](JSON[_0x3631b1('0x18')](_0x5a3a7d));});});},Migration[_0x3f35da('0x17')]['removeIndex']=function(_0x4056fb,_0x167cb8){const _0x599f51=_0x3f35da,_0x2d5a79=this;this['sequence'][_0x599f51('0x11')](function(){const _0xf064e7=_0x599f51;return _0x2d5a79[_0xf064e7('0x1b')][_0xf064e7('0x9')](_0x4056fb,_0x167cb8)[_0xf064e7('0x1a')](function(){const _0x1eebb1=_0xf064e7;logger['info'](_0x1eebb1('0x21'),_0x4056fb,_0x167cb8);})[_0xf064e7('0xd')](function(_0x6e8e0d){const _0x46f577=_0xf064e7;logger[_0x46f577('0x1f')](JSON[_0x46f577('0x18')](_0x6e8e0d));});});},Migration[_0x3f35da('0x17')][_0x3f35da('0xb')]=function(_0x25f062){const _0x31c9c4=_0x3f35da,_0x47973b=this;this['sequence'][_0x31c9c4('0x11')](function(){const _0x2085a8=_0x31c9c4;return _0x47973b[_0x2085a8('0x1b')][_0x2085a8('0x8')][_0x2085a8('0xb')](_0x25f062)[_0x2085a8('0x1a')](function(){const _0x2bf215=_0x2085a8;logger['info'](_0x2bf215('0x15'),_0x25f062);})[_0x2085a8('0xd')](function(_0x12661b){const _0x4c32e5=_0x2085a8;logger[_0x4c32e5('0x1f')](JSON[_0x4c32e5('0x18')](_0x12661b));});});},Migration[_0x3f35da('0x17')][_0x3f35da('0x7')]=function(_0x2e217d,_0x590ccc){const _0x1c87bf=_0x3f35da,_0x3c46e2=this;this[_0x1c87bf('0x0')][_0x1c87bf('0x11')](function(){const _0x46287e=_0x1c87bf;return _0x3c46e2['queryInterface'][_0x46287e('0x7')](_0x2e217d,_0x590ccc)['then'](function(){const _0x4f551d=_0x46287e;logger[_0x4f551d('0x1f')](_0x4f551d('0x12'),_0x590ccc,_0x2e217d);})[_0x46287e('0xd')](function(_0x84abc4){logger['info'](util['inspect'](_0x84abc4,{'showHidden':![],'depth':null}));});});},Migration[_0x3f35da('0x17')][_0x3f35da('0x1e')]=function(_0x584ed1,_0x5beb38,_0x2968e9){const _0x429f8b=_0x3f35da,_0x2c7126=this;this['sequence'][_0x429f8b('0x11')](function(){const _0x5a613d=_0x429f8b;return _0x2c7126[_0x5a613d('0x1b')][_0x5a613d('0x1e')](_0x584ed1,_0x5beb38,_0x2968e9)[_0x5a613d('0x1a')](function(){const _0x3fae24=_0x5a613d;logger['info'](_0x3fae24('0xf'),_0x5beb38,_0x2968e9,_0x584ed1);})[_0x5a613d('0xd')](function(_0xa1b0c2){const _0x4eb588=_0x5a613d;logger[_0x4eb588('0x1f')](util[_0x4eb588('0xa')](_0xa1b0c2,{'showHidden':![],'depth':null}));});});},Migration[_0x3f35da('0x17')][_0x3f35da('0xc')]=function(_0x3fb341){const _0x54e939=_0x3f35da;this[_0x54e939('0x0')][_0x54e939('0x11')](function(){return _0x3fb341();});},module['exports']={'up':function(_0x106e17,_0x45bb23){return new Promise(function(_0x3828a2){const _0x45d4ea=a955_0x13a2,_0x1f3948=new Migration(_0x106e17);_0x1f3948[_0x45d4ea('0xb')]('TRUNCATE\x20sessions'),_0x1f3948[_0x45d4ea('0xb')]('ALTER\x20TABLE\x20report_chat_transfer\x20ENCRYPTION=\x27Y\x27;'),_0x1f3948[_0x45d4ea('0xb')](_0x45d4ea('0x20')),_0x1f3948[_0x45d4ea('0xb')](_0x45d4ea('0x5')),_0x1f3948[_0x45d4ea('0xb')](_0x45d4ea('0x2')),_0x1f3948[_0x45d4ea('0xb')]('ALTER\x20TABLE\x20report_sms_transfer\x20ENCRYPTION=\x27Y\x27;'),_0x1f3948[_0x45d4ea('0x19')](_0x45d4ea('0x14'),'hotdesk',{'type':_0x45bb23[_0x45d4ea('0x16')],'defaultValue':![]}),_0x1f3948[_0x45d4ea('0xc')](_0x3828a2);});},'down':function(){}};
\ No newline at end of file
+const a955_0x9a70=['Added\x20column\x20%s\x20to\x20%s','catch','ALTER\x20TABLE\x20report_sms_transfer\x20ENCRYPTION=\x27Y\x27;','final','BOOLEAN','hotdesk','addIndex','table\x20dropped\x20%s','TRUNCATE\x20sessions','dropTable','addColumn','../config/logger','changeColumn','ALTER\x20TABLE\x20report_chat_transfer\x20ENCRYPTION=\x27Y\x27;','ALTER\x20TABLE\x20report_mail_transfer\x20ENCRYPTION=\x27Y\x27;','query','info','removeIndex\x20%s\x20%s','removeColumn','removeIndex','join','ALTER\x20TABLE\x20report_fax_transfer\x20ENCRYPTION=\x27Y\x27;','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype','renameColumn','exports','sequelize','stringify','Removed\x20column\x20%s\x20from\x20%s','then','sequence','migration','users','queryInterface','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enqueue'];(function(_0x55e574,_0x9a70d){const _0x2f137e=function(_0x58c905){while(--_0x58c905){_0x55e574['push'](_0x55e574['shift']());}};_0x2f137e(++_0x9a70d);}(a955_0x9a70,0x139));const a955_0x2f13=function(_0x55e574,_0x9a70d){_0x55e574=_0x55e574-0x0;let _0x2f137e=a955_0x9a70[_0x55e574];return _0x2f137e;};const _0x167cff=a955_0x2f13;'use strict';const util=require('util'),logger=require(_0x167cff('0x1f'))(_0x167cff('0xf')),Sequence=function(){};Sequence['prototype'][_0x167cff('0x13')]=function(_0x58c905){const _0x3bbba4=_0x167cff;this[_0x3bbba4('0x5')]=this[_0x3bbba4('0x5')]?this[_0x3bbba4('0x5')]['finally'](_0x58c905):_0x58c905();};const Migration=function(_0x333622){const _0x43a7ce=_0x167cff;this[_0x43a7ce('0x11')]=_0x333622,this[_0x43a7ce('0xe')]=new Sequence();};Migration[_0x167cff('0x7')][_0x167cff('0x20')]=function(_0x49dff0,_0x3bac4f,_0xdb1e0){const _0x487563=_0x167cff,_0x1bb10d=this;this[_0x487563('0xe')][_0x487563('0x13')](function(){const _0x24c654=_0x487563;return _0x1bb10d[_0x24c654('0x11')][_0x24c654('0x20')](_0x49dff0,_0x3bac4f,_0xdb1e0)['then'](function(){const _0x27b347=_0x24c654;logger[_0x27b347('0x24')](_0x27b347('0x6'),_0x3bac4f,_0x49dff0);})['catch'](function(_0x5da28c){const _0x3964f5=_0x24c654;logger['info'](JSON[_0x3964f5('0xb')](_0x5da28c));});});},Migration[_0x167cff('0x7')][_0x167cff('0x1e')]=function(_0x10a9fd,_0x52646a,_0x2818a1){const _0x2e36a8=_0x167cff,_0x162646=this;this[_0x2e36a8('0xe')][_0x2e36a8('0x13')](function(){const _0x900f1=_0x2e36a8;return _0x162646[_0x900f1('0x11')][_0x900f1('0x1e')](_0x10a9fd,_0x52646a,_0x2818a1)[_0x900f1('0xd')](function(){const _0x43e7c6=_0x900f1;logger[_0x43e7c6('0x24')](_0x43e7c6('0x14'),_0x52646a,_0x10a9fd);})['catch'](function(_0x2c4355){const _0x1c0e82=_0x900f1;logger[_0x1c0e82('0x24')](JSON['stringify'](_0x2c4355));});});},Migration[_0x167cff('0x7')][_0x167cff('0x1d')]=function(_0x14e32d){const _0x4c090c=_0x167cff,_0x5c3532=this;this[_0x4c090c('0xe')][_0x4c090c('0x13')](function(){const _0x4d552b=_0x4c090c;return _0x5c3532[_0x4d552b('0x11')][_0x4d552b('0x1d')](_0x14e32d,{'force':!![]})[_0x4d552b('0xd')](function(){const _0x4701c3=_0x4d552b;logger[_0x4701c3('0x24')](_0x4701c3('0x1b'),_0x14e32d);})[_0x4d552b('0x15')](function(_0x17e4f7){const _0x167f79=_0x4d552b;logger[_0x167f79('0x24')](JSON[_0x167f79('0xb')](_0x17e4f7));});});},Migration['prototype'][_0x167cff('0x1a')]=function(_0xc1f439,_0x1f8830,_0x581536){const _0x4eed28=_0x167cff,_0x3cc926=this;this[_0x4eed28('0xe')]['enqueue'](function(){const _0x30867c=_0x4eed28;return _0x3cc926['queryInterface'][_0x30867c('0x1a')](_0xc1f439,_0x1f8830,{'indexName':_0x581536})[_0x30867c('0xd')](function(){const _0x124e56=_0x30867c;logger[_0x124e56('0x24')]('addIndex\x20%s\x20%s\x20%s',_0xc1f439,_0x1f8830[_0x124e56('0x3')](','),_0x581536);})[_0x30867c('0x15')](function(_0x7472c4){const _0x22ac0e=_0x30867c;logger['info'](JSON[_0x22ac0e('0xb')](_0x7472c4));});});},Migration[_0x167cff('0x7')][_0x167cff('0x2')]=function(_0x97af0,_0x384a5a){const _0x394345=_0x167cff,_0x5a58b6=this;this[_0x394345('0xe')]['enqueue'](function(){return _0x5a58b6['queryInterface']['removeIndex'](_0x97af0,_0x384a5a)['then'](function(){const _0x37a276=a955_0x2f13;logger[_0x37a276('0x24')](_0x37a276('0x0'),_0x97af0,_0x384a5a);})['catch'](function(_0x13967a){const _0x186ce4=a955_0x2f13;logger[_0x186ce4('0x24')](JSON[_0x186ce4('0xb')](_0x13967a));});});},Migration['prototype'][_0x167cff('0x23')]=function(_0x51865c){const _0x292928=_0x167cff,_0x44392e=this;this['sequence'][_0x292928('0x13')](function(){const _0x5cde77=_0x292928;return _0x44392e[_0x5cde77('0x11')][_0x5cde77('0xa')][_0x5cde77('0x23')](_0x51865c)['then'](function(){logger['info']('query\x20%s',_0x51865c);})[_0x5cde77('0x15')](function(_0x29088e){logger['info'](JSON['stringify'](_0x29088e));});});},Migration[_0x167cff('0x7')][_0x167cff('0x1')]=function(_0x48d43f,_0x5ef3a7){const _0x17d4e7=_0x167cff,_0x2960e7=this;this[_0x17d4e7('0xe')]['enqueue'](function(){const _0x9b7a3f=_0x17d4e7;return _0x2960e7[_0x9b7a3f('0x11')]['removeColumn'](_0x48d43f,_0x5ef3a7)[_0x9b7a3f('0xd')](function(){const _0x3452a8=_0x9b7a3f;logger['info'](_0x3452a8('0xc'),_0x5ef3a7,_0x48d43f);})[_0x9b7a3f('0x15')](function(_0x583a0a){const _0x32dffa=_0x9b7a3f;logger[_0x32dffa('0x24')](util['inspect'](_0x583a0a,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x167cff('0x8')]=function(_0x5c048b,_0x55de69,_0x3cd5c3){const _0x67de0=_0x167cff,_0x2a590c=this;this[_0x67de0('0xe')][_0x67de0('0x13')](function(){const _0x31fa99=_0x67de0;return _0x2a590c['queryInterface'][_0x31fa99('0x8')](_0x5c048b,_0x55de69,_0x3cd5c3)[_0x31fa99('0xd')](function(){const _0x48b605=_0x31fa99;logger[_0x48b605('0x24')](_0x48b605('0x12'),_0x55de69,_0x3cd5c3,_0x5c048b);})[_0x31fa99('0x15')](function(_0x47ab0c){const _0x1db38c=_0x31fa99;logger[_0x1db38c('0x24')](util['inspect'](_0x47ab0c,{'showHidden':![],'depth':null}));});});},Migration[_0x167cff('0x7')][_0x167cff('0x17')]=function(_0x48d934){const _0x4882be=_0x167cff;this[_0x4882be('0xe')][_0x4882be('0x13')](function(){return _0x48d934();});},module[_0x167cff('0x9')]={'up':function(_0x2007f5,_0x445668){return new Promise(function(_0x1db6b3){const _0xb74a09=a955_0x2f13,_0x4199ac=new Migration(_0x2007f5);_0x4199ac['query'](_0xb74a09('0x1c')),_0x4199ac[_0xb74a09('0x23')](_0xb74a09('0x21')),_0x4199ac[_0xb74a09('0x23')](_0xb74a09('0x22')),_0x4199ac[_0xb74a09('0x23')](_0xb74a09('0x4')),_0x4199ac[_0xb74a09('0x23')]('ALTER\x20TABLE\x20report_openchannel_transfer\x20ENCRYPTION=\x27Y\x27;'),_0x4199ac[_0xb74a09('0x23')](_0xb74a09('0x16')),_0x4199ac['addColumn'](_0xb74a09('0x10'),_0xb74a09('0x19'),{'type':_0x445668[_0xb74a09('0x18')],'defaultValue':![]}),_0x4199ac['final'](_0x1db6b3);});},'down':function(){}};
\ No newline at end of file