Built motion from commit ecdc8e66766c75b1b08288b0ea13eb12d42606b4. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.72.js
index dac212e..99e8ede 100644 (file)
@@ -1 +1 @@
-const a951_0x4f58=['removeIndex','../config/logger','final','info','table\x20dropped\x20%s','addColumn','Added\x20column\x20%s\x20to\x20%s','dropTable','changeColumn','util','removeIndex\x20%s\x20%s','query','report_square','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','join','stringify','uid_pname','then','removeColumn','DELETE\x20FROM\x20user_has_voice_queues_rt\x20WHERE\x20UserId\x20NOT\x20IN\x20(SELECT\x20id\x20FROM\x20users\x20WHERE\x20role\x20=\x20\x27agent\x27)','enqueue','finally','sequelize','prototype','sequence','queryInterface','leaveAt','inspect','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','project_name','catch','addIndex','renameColumn','uniqueid','migration'];(function(_0x4cc14c,_0x4f5839){const _0x510e28=function(_0x596cbc){while(--_0x596cbc){_0x4cc14c['push'](_0x4cc14c['shift']());}};_0x510e28(++_0x4f5839);}(a951_0x4f58,0x8d));const a951_0x510e=function(_0x4cc14c,_0x4f5839){_0x4cc14c=_0x4cc14c-0x0;let _0x510e28=a951_0x4f58[_0x4cc14c];return _0x510e28;};const _0x2f10d9=a951_0x510e;'use strict';const util=require(_0x2f10d9('0xc')),logger=require(_0x2f10d9('0x4'))(_0x2f10d9('0x2')),Sequence=function(){};Sequence[_0x2f10d9('0x1a')][_0x2f10d9('0x17')]=function(_0x596cbc){const _0x10f6ad=_0x2f10d9;this[_0x10f6ad('0x1f')]=this[_0x10f6ad('0x1f')]?this['tail'][_0x10f6ad('0x18')](_0x596cbc):_0x596cbc();};const Migration=function(_0x399ab7){const _0x1f2b00=_0x2f10d9;this[_0x1f2b00('0x1c')]=_0x399ab7,this[_0x1f2b00('0x1b')]=new Sequence();};Migration[_0x2f10d9('0x1a')]['changeColumn']=function(_0x31ebf0,_0x200218,_0x17921b){const _0x233289=_0x2f10d9,_0x37e630=this;this[_0x233289('0x1b')][_0x233289('0x17')](function(){const _0x10f939=_0x233289;return _0x37e630['queryInterface'][_0x10f939('0xb')](_0x31ebf0,_0x200218,_0x17921b)[_0x10f939('0x14')](function(){const _0x4d37de=_0x10f939;logger[_0x4d37de('0x6')](_0x4d37de('0x20'),_0x200218,_0x31ebf0);})[_0x10f939('0x22')](function(_0x34d570){const _0xd675f0=_0x10f939;logger[_0xd675f0('0x6')](JSON[_0xd675f0('0x12')](_0x34d570));});});},Migration[_0x2f10d9('0x1a')][_0x2f10d9('0x8')]=function(_0x540d41,_0x473826,_0x35a35b){const _0x49ba34=_0x2f10d9,_0x5f520f=this;this[_0x49ba34('0x1b')]['enqueue'](function(){const _0x58bf31=_0x49ba34;return _0x5f520f[_0x58bf31('0x1c')][_0x58bf31('0x8')](_0x540d41,_0x473826,_0x35a35b)[_0x58bf31('0x14')](function(){const _0x20340e=_0x58bf31;logger[_0x20340e('0x6')](_0x20340e('0x9'),_0x473826,_0x540d41);})['catch'](function(_0x5cea00){const _0xb4557b=_0x58bf31;logger['info'](JSON[_0xb4557b('0x12')](_0x5cea00));});});},Migration[_0x2f10d9('0x1a')][_0x2f10d9('0xa')]=function(_0x130a43){const _0x185153=_0x2f10d9,_0x2e45ed=this;this['sequence'][_0x185153('0x17')](function(){const _0x5b2c6c=_0x185153;return _0x2e45ed['queryInterface'][_0x5b2c6c('0xa')](_0x130a43,{'force':!![]})['then'](function(){const _0xa7f635=_0x5b2c6c;logger[_0xa7f635('0x6')](_0xa7f635('0x7'),_0x130a43);})[_0x5b2c6c('0x22')](function(_0x1a2626){const _0x2ae450=_0x5b2c6c;logger[_0x2ae450('0x6')](JSON['stringify'](_0x1a2626));});});},Migration['prototype'][_0x2f10d9('0x23')]=function(_0x253444,_0x6750a4,_0x3e07f4){const _0x2fbb63=_0x2f10d9,_0x20a4b1=this;this[_0x2fbb63('0x1b')]['enqueue'](function(){const _0x27ba8=_0x2fbb63;return _0x20a4b1[_0x27ba8('0x1c')][_0x27ba8('0x23')](_0x253444,_0x6750a4,{'indexName':_0x3e07f4})[_0x27ba8('0x14')](function(){const _0x2421da=_0x27ba8;logger[_0x2421da('0x6')]('addIndex\x20%s\x20%s\x20%s',_0x253444,_0x6750a4[_0x2421da('0x11')](','),_0x3e07f4);})[_0x27ba8('0x22')](function(_0x338cae){const _0x42bdc9=_0x27ba8;logger[_0x42bdc9('0x6')](JSON[_0x42bdc9('0x12')](_0x338cae));});});},Migration[_0x2f10d9('0x1a')]['removeIndex']=function(_0x2eb0d8,_0x5d8082){const _0x5268c7=this;this['sequence']['enqueue'](function(){const _0x141eca=a951_0x510e;return _0x5268c7[_0x141eca('0x1c')][_0x141eca('0x3')](_0x2eb0d8,_0x5d8082)[_0x141eca('0x14')](function(){const _0x39cf25=_0x141eca;logger[_0x39cf25('0x6')](_0x39cf25('0xd'),_0x2eb0d8,_0x5d8082);})[_0x141eca('0x22')](function(_0x522865){logger['info'](JSON['stringify'](_0x522865));});});},Migration[_0x2f10d9('0x1a')][_0x2f10d9('0xe')]=function(_0x1d4fd1){const _0x34b801=_0x2f10d9,_0x35cc9d=this;this[_0x34b801('0x1b')][_0x34b801('0x17')](function(){const _0x78245b=_0x34b801;return _0x35cc9d['queryInterface'][_0x78245b('0x19')][_0x78245b('0xe')](_0x1d4fd1)['then'](function(){const _0x27f951=_0x78245b;logger[_0x27f951('0x6')]('query\x20%s',_0x1d4fd1);})[_0x78245b('0x22')](function(_0x33e339){const _0x57501c=_0x78245b;logger[_0x57501c('0x6')](JSON[_0x57501c('0x12')](_0x33e339));});});},Migration[_0x2f10d9('0x1a')]['removeColumn']=function(_0x1b9bfc,_0x4b4d88){const _0x14dde3=_0x2f10d9,_0x3edfec=this;this['sequence'][_0x14dde3('0x17')](function(){const _0xac7f97=_0x14dde3;return _0x3edfec[_0xac7f97('0x1c')][_0xac7f97('0x15')](_0x1b9bfc,_0x4b4d88)[_0xac7f97('0x14')](function(){const _0x5573f2=_0xac7f97;logger[_0x5573f2('0x6')]('Removed\x20column\x20%s\x20from\x20%s',_0x4b4d88,_0x1b9bfc);})[_0xac7f97('0x22')](function(_0x56a386){const _0x47773d=_0xac7f97;logger[_0x47773d('0x6')](util['inspect'](_0x56a386,{'showHidden':![],'depth':null}));});});},Migration[_0x2f10d9('0x1a')][_0x2f10d9('0x0')]=function(_0x2b6be2,_0x1ac95a,_0x43eb05){const _0x59736b=_0x2f10d9,_0x267c47=this;this[_0x59736b('0x1b')]['enqueue'](function(){const _0x1b29bc=_0x59736b;return _0x267c47[_0x1b29bc('0x1c')][_0x1b29bc('0x0')](_0x2b6be2,_0x1ac95a,_0x43eb05)['then'](function(){const _0x5a60b7=_0x1b29bc;logger[_0x5a60b7('0x6')](_0x5a60b7('0x10'),_0x1ac95a,_0x43eb05,_0x2b6be2);})[_0x1b29bc('0x22')](function(_0x384468){const _0x3e4bc5=_0x1b29bc;logger['info'](util[_0x3e4bc5('0x1e')](_0x384468,{'showHidden':![],'depth':null}));});});},Migration[_0x2f10d9('0x1a')][_0x2f10d9('0x5')]=function(_0x256a8a){const _0x1e1c36=_0x2f10d9;this[_0x1e1c36('0x1b')]['enqueue'](function(){return _0x256a8a();});},module['exports']={'up':function(_0x1fd400){return new Promise(function(_0x5bdd78){const _0x349738=a951_0x510e,_0x40203e=new Migration(_0x1fd400);_0x40203e[_0x349738('0xe')](_0x349738('0x16')),_0x40203e[_0x349738('0x23')](_0x349738('0xf'),[_0x349738('0x1'),_0x349738('0x21')],_0x349738('0x13')),_0x40203e[_0x349738('0x23')](_0x349738('0xf'),[_0x349738('0x1d')],_0x349738('0x1d')),_0x40203e[_0x349738('0x5')](_0x5bdd78);});},'down':function(){}};
\ No newline at end of file
+const a951_0x556d=['exports','queryInterface','removeColumn','uniqueid','query','addIndex\x20%s\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','then','info','sequence','Added\x20column\x20%s\x20to\x20%s','addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','catch','removeIndex\x20%s\x20%s','query\x20%s','leaveAt','project_name','DELETE\x20FROM\x20user_has_voice_queues_rt\x20WHERE\x20UserId\x20NOT\x20IN\x20(SELECT\x20id\x20FROM\x20users\x20WHERE\x20role\x20=\x20\x27agent\x27)','finally','renameColumn','report_square','addColumn','../config/logger','inspect','enqueue','prototype','dropTable','changeColumn','tail','join','final'];(function(_0x3153df,_0x556d12){const _0x18700c=function(_0xdbf23f){while(--_0xdbf23f){_0x3153df['push'](_0x3153df['shift']());}};_0x18700c(++_0x556d12);}(a951_0x556d,0xc9));const a951_0x1870=function(_0x3153df,_0x556d12){_0x3153df=_0x3153df-0x0;let _0x18700c=a951_0x556d[_0x3153df];return _0x18700c;};const _0x1967b7=a951_0x1870;'use strict';const util=require('util'),logger=require(_0x1967b7('0x15'))('migration'),Sequence=function(){};Sequence[_0x1967b7('0x18')][_0x1967b7('0x17')]=function(_0xdbf23f){const _0x2f8c67=_0x1967b7;this['tail']=this[_0x2f8c67('0x1b')]?this['tail'][_0x2f8c67('0x11')](_0xdbf23f):_0xdbf23f();};const Migration=function(_0x27f407){const _0x346520=_0x1967b7;this[_0x346520('0x1f')]=_0x27f407,this[_0x346520('0x7')]=new Sequence();};Migration[_0x1967b7('0x18')][_0x1967b7('0x1a')]=function(_0xba6903,_0x5e72a6,_0x135321){const _0x4b1826=_0x1967b7,_0x5d6c98=this;this['sequence'][_0x4b1826('0x17')](function(){const _0x1fb13f=_0x4b1826;return _0x5d6c98[_0x1fb13f('0x1f')]['changeColumn'](_0xba6903,_0x5e72a6,_0x135321)[_0x1fb13f('0x5')](function(){const _0x225261=_0x1fb13f;logger['info'](_0x225261('0x3'),_0x5e72a6,_0xba6903);})[_0x1fb13f('0xb')](function(_0x79fa46){const _0x35e13b=_0x1fb13f;logger[_0x35e13b('0x6')](JSON[_0x35e13b('0x4')](_0x79fa46));});});},Migration['prototype'][_0x1967b7('0x14')]=function(_0x12c278,_0x25248f,_0x4425b4){const _0xfc8325=_0x1967b7,_0x267faf=this;this[_0xfc8325('0x7')][_0xfc8325('0x17')](function(){const _0x4d4be9=_0xfc8325;return _0x267faf[_0x4d4be9('0x1f')][_0x4d4be9('0x14')](_0x12c278,_0x25248f,_0x4425b4)['then'](function(){const _0x1ae304=_0x4d4be9;logger[_0x1ae304('0x6')](_0x1ae304('0x8'),_0x25248f,_0x12c278);})[_0x4d4be9('0xb')](function(_0x10b89e){const _0x3ff69d=_0x4d4be9;logger[_0x3ff69d('0x6')](JSON[_0x3ff69d('0x4')](_0x10b89e));});});},Migration[_0x1967b7('0x18')][_0x1967b7('0x19')]=function(_0x1c01c7){const _0x1fd8c8=_0x1967b7,_0x49ae9e=this;this[_0x1fd8c8('0x7')][_0x1fd8c8('0x17')](function(){const _0x35f715=_0x1fd8c8;return _0x49ae9e[_0x35f715('0x1f')][_0x35f715('0x19')](_0x1c01c7,{'force':!![]})['then'](function(){logger['info']('table\x20dropped\x20%s',_0x1c01c7);})[_0x35f715('0xb')](function(_0x5140cc){const _0x150986=_0x35f715;logger[_0x150986('0x6')](JSON[_0x150986('0x4')](_0x5140cc));});});},Migration[_0x1967b7('0x18')]['addIndex']=function(_0x3ca94b,_0xbae9be,_0x422700){const _0x4abb1=_0x1967b7,_0x3e315b=this;this[_0x4abb1('0x7')][_0x4abb1('0x17')](function(){const _0x2c5a9b=_0x4abb1;return _0x3e315b['queryInterface'][_0x2c5a9b('0x9')](_0x3ca94b,_0xbae9be,{'indexName':_0x422700})[_0x2c5a9b('0x5')](function(){const _0xec1d78=_0x2c5a9b;logger[_0xec1d78('0x6')](_0xec1d78('0x2'),_0x3ca94b,_0xbae9be[_0xec1d78('0x1c')](','),_0x422700);})[_0x2c5a9b('0xb')](function(_0xbe8193){const _0x4c73d3=_0x2c5a9b;logger[_0x4c73d3('0x6')](JSON['stringify'](_0xbe8193));});});},Migration['prototype']['removeIndex']=function(_0x355ff5,_0x2cd147){const _0x760bbf=_0x1967b7,_0x280ac8=this;this[_0x760bbf('0x7')][_0x760bbf('0x17')](function(){const _0x40aa1a=_0x760bbf;return _0x280ac8[_0x40aa1a('0x1f')]['removeIndex'](_0x355ff5,_0x2cd147)['then'](function(){const _0x59486e=_0x40aa1a;logger[_0x59486e('0x6')](_0x59486e('0xc'),_0x355ff5,_0x2cd147);})[_0x40aa1a('0xb')](function(_0x31656a){const _0x49d0f6=_0x40aa1a;logger[_0x49d0f6('0x6')](JSON['stringify'](_0x31656a));});});},Migration[_0x1967b7('0x18')][_0x1967b7('0x1')]=function(_0x348886){const _0x16af02=_0x1967b7,_0x24b92a=this;this[_0x16af02('0x7')]['enqueue'](function(){const _0x45953b=_0x16af02;return _0x24b92a[_0x45953b('0x1f')]['sequelize'][_0x45953b('0x1')](_0x348886)[_0x45953b('0x5')](function(){const _0x510bee=_0x45953b;logger[_0x510bee('0x6')](_0x510bee('0xd'),_0x348886);})[_0x45953b('0xb')](function(_0x3f7f57){const _0x40a95c=_0x45953b;logger['info'](JSON[_0x40a95c('0x4')](_0x3f7f57));});});},Migration[_0x1967b7('0x18')][_0x1967b7('0x20')]=function(_0x7b8cee,_0x2640c6){const _0x37338e=_0x1967b7,_0x48a7c4=this;this[_0x37338e('0x7')][_0x37338e('0x17')](function(){const _0xf553df=_0x37338e;return _0x48a7c4[_0xf553df('0x1f')][_0xf553df('0x20')](_0x7b8cee,_0x2640c6)[_0xf553df('0x5')](function(){const _0x417c10=_0xf553df;logger[_0x417c10('0x6')]('Removed\x20column\x20%s\x20from\x20%s',_0x2640c6,_0x7b8cee);})[_0xf553df('0xb')](function(_0x31122b){const _0x1dfb04=_0xf553df;logger[_0x1dfb04('0x6')](util['inspect'](_0x31122b,{'showHidden':![],'depth':null}));});});},Migration[_0x1967b7('0x18')][_0x1967b7('0x12')]=function(_0x322049,_0x3d3c43,_0x71a1ef){const _0x2e6fc3=_0x1967b7,_0x5493f4=this;this[_0x2e6fc3('0x7')]['enqueue'](function(){const _0x2cb300=_0x2e6fc3;return _0x5493f4[_0x2cb300('0x1f')]['renameColumn'](_0x322049,_0x3d3c43,_0x71a1ef)['then'](function(){const _0x4488eb=_0x2cb300;logger[_0x4488eb('0x6')](_0x4488eb('0xa'),_0x3d3c43,_0x71a1ef,_0x322049);})[_0x2cb300('0xb')](function(_0x141518){const _0x7704f1=_0x2cb300;logger['info'](util[_0x7704f1('0x16')](_0x141518,{'showHidden':![],'depth':null}));});});},Migration[_0x1967b7('0x18')][_0x1967b7('0x1d')]=function(_0x42a1b2){const _0x3f4dc6=_0x1967b7;this[_0x3f4dc6('0x7')]['enqueue'](function(){return _0x42a1b2();});},module[_0x1967b7('0x1e')]={'up':function(_0x1182bd){return new Promise(function(_0x3dbec8){const _0xd44997=a951_0x1870,_0x4c6811=new Migration(_0x1182bd);_0x4c6811['query'](_0xd44997('0x10')),_0x4c6811[_0xd44997('0x9')](_0xd44997('0x13'),[_0xd44997('0x0'),_0xd44997('0xf')],'uid_pname'),_0x4c6811[_0xd44997('0x9')](_0xd44997('0x13'),[_0xd44997('0xe')],'leaveAt'),_0x4c6811['final'](_0x3dbec8);});},'down':function(){}};
\ No newline at end of file