Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.18.js
index 90ba4c2..7a4f04c 100644 (file)
@@ -1 +1 @@
-const a1162_0x3103=['finally','sequelize','final','queryInterface','then','UPDATE\x20voice_queues\x20SET\x20leavewhenempty\x20=\x20\x22no\x22\x20WHERE\x20leavewhenempty\x20=\x20\x27\x27\x20or\x20leavewhenempty\x20IS\x20NULL','indexName','removeColumn','join','removeIndex','enqueue','addColumn','stringify','UPDATE\x20voice_queues\x20SET\x20joinempty\x20=\x20\x22yes\x22\x20WHERE\x20joinempty\x20=\x20\x27\x27\x20or\x20joinempty\x20IS\x20NULL','exports','tail','addIndex\x20%s\x20%s\x20%s\x20[%s]','indicesType','info','prototype','dropTable','addIndex','Added\x20column\x20%s\x20to\x20%s','migration','removeIndex\x20%s\x20%s','sequence','util','query','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','inspect','catch','changeColumn'];(function(_0x5947b4,_0x5ab5ee){const _0x310305=function(_0xaba9b){while(--_0xaba9b){_0x5947b4['push'](_0x5947b4['shift']());}};_0x310305(++_0x5ab5ee);}(a1162_0x3103,0xc3));const a1162_0xaba9=function(_0x5947b4,_0x5ab5ee){_0x5947b4=_0x5947b4-0xc7;let _0x310305=a1162_0x3103[_0x5947b4];return _0x310305;};const a1162_0x145343=a1162_0xaba9;'use strict';const util=require(a1162_0x145343(0xc8)),logger=require('../config/logger')(a1162_0x145343(0xe7)),Sequence=function(){};Sequence['prototype'][a1162_0x145343(0xda)]=function(_0x5cab6d){const _0x454565=a1162_0x145343;this[_0x454565(0xdf)]=this[_0x454565(0xdf)]?this['tail'][_0x454565(0xd0)](_0x5cab6d):_0x5cab6d();};const Migration=function(_0x4df723){const _0xc2901b=a1162_0x145343;this[_0xc2901b(0xd3)]=_0x4df723,this[_0xc2901b(0xc7)]=new Sequence();};Migration[a1162_0x145343(0xe3)][a1162_0x145343(0xcf)]=function(_0x366d89,_0x39a8c4,_0xa67b64){const _0x2fb904=a1162_0x145343,_0x54118d=this;this[_0x2fb904(0xc7)][_0x2fb904(0xda)](function(){const _0x1077dc=_0x2fb904;return _0x54118d[_0x1077dc(0xd3)][_0x1077dc(0xcf)](_0x366d89,_0x39a8c4,_0xa67b64)[_0x1077dc(0xd4)](function(){const _0xd67bc8=_0x1077dc;logger[_0xd67bc8(0xe2)](_0xd67bc8(0xcc),_0x39a8c4,_0x366d89);})[_0x1077dc(0xce)](function(_0x2ba6b9){const _0x2fc7dc=_0x1077dc;logger[_0x2fc7dc(0xe2)](JSON[_0x2fc7dc(0xdc)](_0x2ba6b9));});});},Migration[a1162_0x145343(0xe3)][a1162_0x145343(0xdb)]=function(_0x269fb6,_0x136f58,_0x5c3d3d){const _0x2862c3=a1162_0x145343,_0x2f4cd0=this;this[_0x2862c3(0xc7)][_0x2862c3(0xda)](function(){const _0x376e70=_0x2862c3;return _0x2f4cd0['queryInterface'][_0x376e70(0xdb)](_0x269fb6,_0x136f58,_0x5c3d3d)['then'](function(){const _0x3e8328=_0x376e70;logger[_0x3e8328(0xe2)](_0x3e8328(0xe6),_0x136f58,_0x269fb6);})['catch'](function(_0x4f3621){const _0x1dcbcf=_0x376e70;logger[_0x1dcbcf(0xe2)](JSON[_0x1dcbcf(0xdc)](_0x4f3621));});});},Migration['prototype'][a1162_0x145343(0xe4)]=function(_0x101ef3){const _0x3a6ed9=a1162_0x145343,_0x49416b=this;this['sequence'][_0x3a6ed9(0xda)](function(){const _0x343d83=_0x3a6ed9;return _0x49416b[_0x343d83(0xd3)][_0x343d83(0xe4)](_0x101ef3,{'force':!![]})[_0x343d83(0xd4)](function(){const _0x25cefa=_0x343d83;logger[_0x25cefa(0xe2)]('table\x20dropped\x20%s',_0x101ef3);})[_0x343d83(0xce)](function(_0x350a58){logger['info'](JSON['stringify'](_0x350a58));});});},Migration[a1162_0x145343(0xe3)][a1162_0x145343(0xe5)]=function(_0x40b6fe,_0x491531,_0x3bcee1){const _0x958c0=a1162_0x145343,_0x3a8eb2=this;this[_0x958c0(0xc7)][_0x958c0(0xda)](function(){const _0x337ad7=_0x958c0;return _0x3a8eb2[_0x337ad7(0xd3)]['addIndex'](_0x40b6fe,_0x491531,{'indexName':_0x3bcee1[_0x337ad7(0xd6)],'indicesType':_0x3bcee1[_0x337ad7(0xe1)]})[_0x337ad7(0xd4)](function(){const _0x396cfa=_0x337ad7;logger[_0x396cfa(0xe2)](_0x396cfa(0xe0),_0x40b6fe,_0x491531[_0x396cfa(0xd8)](','),_0x3bcee1[_0x396cfa(0xd6)],_0x3bcee1[_0x396cfa(0xe1)]);})[_0x337ad7(0xce)](function(_0x2aa465){logger['info'](JSON['stringify'](_0x2aa465));});});},Migration[a1162_0x145343(0xe3)][a1162_0x145343(0xd9)]=function(_0x7c61f0,_0x3ba204){const _0x3c3296=a1162_0x145343,_0x30071a=this;this[_0x3c3296(0xc7)][_0x3c3296(0xda)](function(){const _0x58291d=_0x3c3296;return _0x30071a[_0x58291d(0xd3)][_0x58291d(0xd9)](_0x7c61f0,_0x3ba204)[_0x58291d(0xd4)](function(){const _0x348c74=_0x58291d;logger[_0x348c74(0xe2)](_0x348c74(0xe8),_0x7c61f0,_0x3ba204);})[_0x58291d(0xce)](function(_0x9a8aee){const _0x43a9e9=_0x58291d;logger['info'](JSON[_0x43a9e9(0xdc)](_0x9a8aee));});});},Migration[a1162_0x145343(0xe3)][a1162_0x145343(0xc9)]=function(_0x5adde5){const _0x32919d=a1162_0x145343,_0x4ddcdf=this;this['sequence'][_0x32919d(0xda)](function(){const _0x4ba933=_0x32919d;return _0x4ddcdf['queryInterface'][_0x4ba933(0xd1)][_0x4ba933(0xc9)](_0x5adde5)[_0x4ba933(0xd4)](function(){const _0x48985e=_0x4ba933;logger[_0x48985e(0xe2)](_0x48985e(0xcb),_0x5adde5);})['catch'](function(_0x2d0ae9){const _0x1be14e=_0x4ba933;logger['info'](JSON[_0x1be14e(0xdc)](_0x2d0ae9));});});},Migration[a1162_0x145343(0xe3)]['removeColumn']=function(_0xd4f5da,_0x4f7201){const _0x1d7c5d=a1162_0x145343,_0x5536fb=this;this[_0x1d7c5d(0xc7)]['enqueue'](function(){const _0x47c44d=_0x1d7c5d;return _0x5536fb[_0x47c44d(0xd3)][_0x47c44d(0xd7)](_0xd4f5da,_0x4f7201)[_0x47c44d(0xd4)](function(){const _0x319247=_0x47c44d;logger[_0x319247(0xe2)]('Removed\x20column\x20%s\x20from\x20%s',_0x4f7201,_0xd4f5da);})[_0x47c44d(0xce)](function(_0x3c5e52){const _0x1b1eb3=_0x47c44d;logger[_0x1b1eb3(0xe2)](util[_0x1b1eb3(0xcd)](_0x3c5e52,{'showHidden':![],'depth':null}));});});},Migration[a1162_0x145343(0xe3)]['renameColumn']=function(_0x2226f8,_0x1c3383,_0x644156){const _0x4e7572=a1162_0x145343,_0x561269=this;this[_0x4e7572(0xc7)][_0x4e7572(0xda)](function(){const _0x312c25=_0x4e7572;return _0x561269['queryInterface']['renameColumn'](_0x2226f8,_0x1c3383,_0x644156)['then'](function(){const _0x1e0f0c=a1162_0xaba9;logger['info'](_0x1e0f0c(0xca),_0x1c3383,_0x644156,_0x2226f8);})[_0x312c25(0xce)](function(_0xc4df42){const _0x4d4644=_0x312c25;logger['info'](util[_0x4d4644(0xcd)](_0xc4df42,{'showHidden':![],'depth':null}));});});},Migration[a1162_0x145343(0xe3)][a1162_0x145343(0xd2)]=function(_0x134bb9){const _0x28d86b=a1162_0x145343;this[_0x28d86b(0xc7)][_0x28d86b(0xda)](function(){return _0x134bb9();});},module[a1162_0x145343(0xde)]={'up':function(_0x2b6181){return new Promise(function(_0x1a1731){const _0x5d7230=a1162_0xaba9,_0xd31164=new Migration(_0x2b6181);_0xd31164[_0x5d7230(0xc9)](_0x5d7230(0xdd)),_0xd31164['query'](_0x5d7230(0xd5)),_0xd31164[_0x5d7230(0xd2)](_0x1a1731);});},'down':function(){}};
\ No newline at end of file
+const a1165_0x1659=['indicesType','addColumn','final','changeColumn','table\x20dropped\x20%s','inspect','info','queryInterface','addIndex','catch','dropTable','prototype','sequence','Removed\x20column\x20%s\x20from\x20%s','renameColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','then','removeIndex\x20%s\x20%s','enqueue','addIndex\x20%s\x20%s\x20%s\x20[%s]','UPDATE\x20voice_queues\x20SET\x20leavewhenempty\x20=\x20\x22no\x22\x20WHERE\x20leavewhenempty\x20=\x20\x27\x27\x20or\x20leavewhenempty\x20IS\x20NULL','UPDATE\x20voice_queues\x20SET\x20joinempty\x20=\x20\x22yes\x22\x20WHERE\x20joinempty\x20=\x20\x27\x27\x20or\x20joinempty\x20IS\x20NULL','tail','removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','sequelize','indexName','stringify','removeIndex','Added\x20column\x20%s\x20to\x20%s','query'];(function(_0xe2c09f,_0x5660a6){const _0x165969=function(_0x494167){while(--_0x494167){_0xe2c09f['push'](_0xe2c09f['shift']());}};_0x165969(++_0x5660a6);}(a1165_0x1659,0x1f3));const a1165_0x4941=function(_0xe2c09f,_0x5660a6){_0xe2c09f=_0xe2c09f-0xf6;let _0x165969=a1165_0x1659[_0xe2c09f];return _0x165969;};const a1165_0x107d6a=a1165_0x4941;'use strict';const util=require('util'),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[a1165_0x107d6a(0xfe)][a1165_0x107d6a(0x105)]=function(_0x5b1d16){const _0x474ab8=a1165_0x107d6a;this[_0x474ab8(0x109)]=this[_0x474ab8(0x109)]?this[_0x474ab8(0x109)]['finally'](_0x5b1d16):_0x5b1d16();};const Migration=function(_0xd35a7a){const _0x11c3dd=a1165_0x107d6a;this[_0x11c3dd(0xfa)]=_0xd35a7a,this[_0x11c3dd(0xff)]=new Sequence();};Migration['prototype'][a1165_0x107d6a(0xf6)]=function(_0x7b4605,_0x5ea0c6,_0x2de62a){const _0x3ec3eb=a1165_0x107d6a,_0x32e996=this;this[_0x3ec3eb(0xff)][_0x3ec3eb(0x105)](function(){const _0x2fd941=_0x3ec3eb;return _0x32e996['queryInterface'][_0x2fd941(0xf6)](_0x7b4605,_0x5ea0c6,_0x2de62a)[_0x2fd941(0x103)](function(){const _0x1782bc=_0x2fd941;logger[_0x1782bc(0xf9)](_0x1782bc(0x10b),_0x5ea0c6,_0x7b4605);})[_0x2fd941(0xfc)](function(_0x6b7799){const _0x2c84cc=_0x2fd941;logger['info'](JSON[_0x2c84cc(0x10e)](_0x6b7799));});});},Migration['prototype'][a1165_0x107d6a(0x113)]=function(_0x25bb57,_0x349928,_0x38fb1b){const _0x29ee1b=a1165_0x107d6a,_0x347b47=this;this[_0x29ee1b(0xff)]['enqueue'](function(){const _0x17963d=_0x29ee1b;return _0x347b47[_0x17963d(0xfa)]['addColumn'](_0x25bb57,_0x349928,_0x38fb1b)['then'](function(){const _0x1f5b21=_0x17963d;logger[_0x1f5b21(0xf9)](_0x1f5b21(0x110),_0x349928,_0x25bb57);})[_0x17963d(0xfc)](function(_0x2ed6f0){const _0x2df647=_0x17963d;logger[_0x2df647(0xf9)](JSON[_0x2df647(0x10e)](_0x2ed6f0));});});},Migration[a1165_0x107d6a(0xfe)][a1165_0x107d6a(0xfd)]=function(_0x90f264){const _0x592cc3=this;this['sequence']['enqueue'](function(){const _0x51dfd0=a1165_0x4941;return _0x592cc3[_0x51dfd0(0xfa)]['dropTable'](_0x90f264,{'force':!![]})[_0x51dfd0(0x103)](function(){const _0x57d5c7=_0x51dfd0;logger[_0x57d5c7(0xf9)](_0x57d5c7(0xf7),_0x90f264);})[_0x51dfd0(0xfc)](function(_0x3d18df){const _0x51a5e3=_0x51dfd0;logger['info'](JSON[_0x51a5e3(0x10e)](_0x3d18df));});});},Migration['prototype'][a1165_0x107d6a(0xfb)]=function(_0x17ec70,_0x226b65,_0x3fb5e2){const _0x404d96=a1165_0x107d6a,_0x578dc8=this;this['sequence'][_0x404d96(0x105)](function(){const _0xd2b852=_0x404d96;return _0x578dc8[_0xd2b852(0xfa)][_0xd2b852(0xfb)](_0x17ec70,_0x226b65,{'indexName':_0x3fb5e2['indexName'],'indicesType':_0x3fb5e2[_0xd2b852(0x112)]})[_0xd2b852(0x103)](function(){const _0x798567=_0xd2b852;logger[_0x798567(0xf9)](_0x798567(0x106),_0x17ec70,_0x226b65['join'](','),_0x3fb5e2[_0x798567(0x10d)],_0x3fb5e2[_0x798567(0x112)]);})[_0xd2b852(0xfc)](function(_0x4198d0){const _0x2749a7=_0xd2b852;logger[_0x2749a7(0xf9)](JSON[_0x2749a7(0x10e)](_0x4198d0));});});},Migration[a1165_0x107d6a(0xfe)]['removeIndex']=function(_0x395894,_0x2615a6){const _0x1d8874=a1165_0x107d6a,_0x4e1e6d=this;this[_0x1d8874(0xff)]['enqueue'](function(){const _0x23d8b9=_0x1d8874;return _0x4e1e6d[_0x23d8b9(0xfa)][_0x23d8b9(0x10f)](_0x395894,_0x2615a6)['then'](function(){const _0x300fac=_0x23d8b9;logger[_0x300fac(0xf9)](_0x300fac(0x104),_0x395894,_0x2615a6);})['catch'](function(_0x201759){const _0x225e4c=_0x23d8b9;logger[_0x225e4c(0xf9)](JSON['stringify'](_0x201759));});});},Migration['prototype'][a1165_0x107d6a(0x111)]=function(_0x5933f9){const _0xb49273=a1165_0x107d6a,_0x2693f0=this;this[_0xb49273(0xff)][_0xb49273(0x105)](function(){const _0x57d966=_0xb49273;return _0x2693f0['queryInterface'][_0x57d966(0x10c)][_0x57d966(0x111)](_0x5933f9)[_0x57d966(0x103)](function(){const _0x34a806=_0x57d966;logger[_0x34a806(0xf9)]('query\x20%s',_0x5933f9);})[_0x57d966(0xfc)](function(_0x5cb149){const _0x50834f=_0x57d966;logger[_0x50834f(0xf9)](JSON[_0x50834f(0x10e)](_0x5cb149));});});},Migration[a1165_0x107d6a(0xfe)]['removeColumn']=function(_0x49e816,_0x419a8a){const _0x3179f6=a1165_0x107d6a,_0xf7c676=this;this[_0x3179f6(0xff)][_0x3179f6(0x105)](function(){const _0xbe5f06=_0x3179f6;return _0xf7c676[_0xbe5f06(0xfa)][_0xbe5f06(0x10a)](_0x49e816,_0x419a8a)['then'](function(){const _0x185ebf=_0xbe5f06;logger[_0x185ebf(0xf9)](_0x185ebf(0x100),_0x419a8a,_0x49e816);})['catch'](function(_0xf33f02){const _0x682e6f=_0xbe5f06;logger['info'](util[_0x682e6f(0xf8)](_0xf33f02,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1165_0x107d6a(0x101)]=function(_0x2d1553,_0xc10aa5,_0x26ee0a){const _0x5d4e33=a1165_0x107d6a,_0xbb0764=this;this[_0x5d4e33(0xff)]['enqueue'](function(){const _0x4577e7=_0x5d4e33;return _0xbb0764['queryInterface'][_0x4577e7(0x101)](_0x2d1553,_0xc10aa5,_0x26ee0a)['then'](function(){const _0x2af04b=_0x4577e7;logger['info'](_0x2af04b(0x102),_0xc10aa5,_0x26ee0a,_0x2d1553);})[_0x4577e7(0xfc)](function(_0x244e42){const _0x2aa6eb=_0x4577e7;logger['info'](util[_0x2aa6eb(0xf8)](_0x244e42,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1165_0x107d6a(0x114)]=function(_0x6b81b8){const _0x21894a=a1165_0x107d6a;this[_0x21894a(0xff)]['enqueue'](function(){return _0x6b81b8();});},module['exports']={'up':function(_0x5e8863){return new Promise(function(_0x2696c8){const _0x3df50c=a1165_0x4941,_0x7a007d=new Migration(_0x5e8863);_0x7a007d[_0x3df50c(0x111)](_0x3df50c(0x108)),_0x7a007d[_0x3df50c(0x111)](_0x3df50c(0x107)),_0x7a007d['final'](_0x2696c8);});},'down':function(){}};
\ No newline at end of file