Built motion from commit 129fb4d95212661e48f0db455e75d668addbaddf. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.3.js
index 8fbfafc..f093043 100644 (file)
@@ -1 +1 @@
-const a975_0x4254=['enqueue','openchannel_applications','join','then','addIndex','exports','catch','query\x20%s','addIndex\x20%s\x20%s\x20%s','queryInterface','info','Changed\x20column\x20%s\x20in\x20table\x20%s','table\x20dropped\x20%s','mail_applications','prototype','dropTable','final','changeColumn','stringify','sequelize','migration','TEXT','sequence','renameColumn','Added\x20column\x20%s\x20to\x20%s','removeIndex\x20%s\x20%s','addColumn','tail','sms_applications','query','finally','appdata','removeIndex','inspect','removeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s'];(function(_0x57f557,_0x425465){const _0x4e574e=function(_0xa9138b){while(--_0xa9138b){_0x57f557['push'](_0x57f557['shift']());}};_0x4e574e(++_0x425465);}(a975_0x4254,0x11c));const a975_0x4e57=function(_0x57f557,_0x425465){_0x57f557=_0x57f557-0x0;let _0x4e574e=a975_0x4254[_0x57f557];return _0x4e574e;};const _0x211620=a975_0x4e57;'use strict';const util=require('util'),logger=require('../config/logger')(_0x211620('0x18')),Sequence=function(){};Sequence[_0x211620('0x12')][_0x211620('0x4')]=function(_0xa9138b){const _0x36c60b=_0x211620;this[_0x36c60b('0x1f')]=this['tail']?this[_0x36c60b('0x1f')][_0x36c60b('0x22')](_0xa9138b):_0xa9138b();};const Migration=function(_0x4c3c3c){this['queryInterface']=_0x4c3c3c,this['sequence']=new Sequence();};Migration[_0x211620('0x12')][_0x211620('0x15')]=function(_0x74e474,_0x43f917,_0x1c3ce7){const _0x1ecd52=_0x211620,_0x530193=this;this[_0x1ecd52('0x1a')][_0x1ecd52('0x4')](function(){const _0x2831cb=_0x1ecd52;return _0x530193[_0x2831cb('0xd')]['changeColumn'](_0x74e474,_0x43f917,_0x1c3ce7)[_0x2831cb('0x7')](function(){const _0x4ddcef=_0x2831cb;logger['info'](_0x4ddcef('0xf'),_0x43f917,_0x74e474);})[_0x2831cb('0xa')](function(_0x1c2102){const _0x423014=_0x2831cb;logger[_0x423014('0xe')](JSON[_0x423014('0x16')](_0x1c2102));});});},Migration[_0x211620('0x12')][_0x211620('0x1e')]=function(_0x8dbc77,_0x57a8a1,_0x4fb178){const _0x22848e=_0x211620,_0x251e45=this;this['sequence'][_0x22848e('0x4')](function(){const _0x4b019c=_0x22848e;return _0x251e45[_0x4b019c('0xd')][_0x4b019c('0x1e')](_0x8dbc77,_0x57a8a1,_0x4fb178)[_0x4b019c('0x7')](function(){const _0x48de3d=_0x4b019c;logger['info'](_0x48de3d('0x1c'),_0x57a8a1,_0x8dbc77);})[_0x4b019c('0xa')](function(_0x3558db){const _0x2476fe=_0x4b019c;logger[_0x2476fe('0xe')](JSON[_0x2476fe('0x16')](_0x3558db));});});},Migration['prototype'][_0x211620('0x13')]=function(_0x3639c1){const _0x19897b=_0x211620,_0x394e5e=this;this[_0x19897b('0x1a')][_0x19897b('0x4')](function(){const _0x194684=_0x19897b;return _0x394e5e[_0x194684('0xd')]['dropTable'](_0x3639c1,{'force':!![]})[_0x194684('0x7')](function(){const _0x469b90=_0x194684;logger[_0x469b90('0xe')](_0x469b90('0x10'),_0x3639c1);})[_0x194684('0xa')](function(_0x3bfec3){const _0x2e5890=_0x194684;logger[_0x2e5890('0xe')](JSON[_0x2e5890('0x16')](_0x3bfec3));});});},Migration[_0x211620('0x12')]['addIndex']=function(_0x5b20e2,_0xcb45fd,_0x335eb4){const _0x5698d8=_0x211620,_0x8dbb7c=this;this['sequence'][_0x5698d8('0x4')](function(){const _0x5c87d9=_0x5698d8;return _0x8dbb7c[_0x5c87d9('0xd')][_0x5c87d9('0x8')](_0x5b20e2,_0xcb45fd,{'indexName':_0x335eb4})['then'](function(){const _0x22248f=_0x5c87d9;logger['info'](_0x22248f('0xc'),_0x5b20e2,_0xcb45fd[_0x22248f('0x6')](','),_0x335eb4);})[_0x5c87d9('0xa')](function(_0x5e32da){const _0x9395a=_0x5c87d9;logger[_0x9395a('0xe')](JSON['stringify'](_0x5e32da));});});},Migration[_0x211620('0x12')][_0x211620('0x0')]=function(_0xeacde1,_0x265425){const _0x5c1330=_0x211620,_0x32ae2a=this;this[_0x5c1330('0x1a')][_0x5c1330('0x4')](function(){const _0x269804=_0x5c1330;return _0x32ae2a['queryInterface']['removeIndex'](_0xeacde1,_0x265425)['then'](function(){const _0x4f7fc9=a975_0x4e57;logger[_0x4f7fc9('0xe')](_0x4f7fc9('0x1d'),_0xeacde1,_0x265425);})[_0x269804('0xa')](function(_0x5d7ddb){const _0x5196b9=_0x269804;logger['info'](JSON[_0x5196b9('0x16')](_0x5d7ddb));});});},Migration[_0x211620('0x12')][_0x211620('0x21')]=function(_0x2e2e6e){const _0x22f095=_0x211620,_0x494c9b=this;this[_0x22f095('0x1a')][_0x22f095('0x4')](function(){const _0x3f7695=_0x22f095;return _0x494c9b[_0x3f7695('0xd')][_0x3f7695('0x17')]['query'](_0x2e2e6e)['then'](function(){const _0xd47f46=_0x3f7695;logger[_0xd47f46('0xe')](_0xd47f46('0xb'),_0x2e2e6e);})[_0x3f7695('0xa')](function(_0x4fd353){const _0x66a758=_0x3f7695;logger[_0x66a758('0xe')](JSON['stringify'](_0x4fd353));});});},Migration['prototype'][_0x211620('0x2')]=function(_0x257dd2,_0x2ebf12){const _0x1a9a71=_0x211620,_0xb6918c=this;this[_0x1a9a71('0x1a')][_0x1a9a71('0x4')](function(){const _0xaef9ba=_0x1a9a71;return _0xb6918c[_0xaef9ba('0xd')][_0xaef9ba('0x2')](_0x257dd2,_0x2ebf12)[_0xaef9ba('0x7')](function(){const _0x1aef51=_0xaef9ba;logger[_0x1aef51('0xe')]('Removed\x20column\x20%s\x20from\x20%s',_0x2ebf12,_0x257dd2);})['catch'](function(_0x17390d){const _0x393285=_0xaef9ba;logger[_0x393285('0xe')](util[_0x393285('0x1')](_0x17390d,{'showHidden':![],'depth':null}));});});},Migration[_0x211620('0x12')][_0x211620('0x1b')]=function(_0x3c1be5,_0x3a8631,_0x324d66){const _0x50f5da=_0x211620,_0x2bedd8=this;this[_0x50f5da('0x1a')][_0x50f5da('0x4')](function(){const _0x386e74=_0x50f5da;return _0x2bedd8[_0x386e74('0xd')][_0x386e74('0x1b')](_0x3c1be5,_0x3a8631,_0x324d66)[_0x386e74('0x7')](function(){const _0x363c72=_0x386e74;logger[_0x363c72('0xe')](_0x363c72('0x3'),_0x3a8631,_0x324d66,_0x3c1be5);})['catch'](function(_0x4ce73e){const _0x390a33=_0x386e74;logger['info'](util[_0x390a33('0x1')](_0x4ce73e,{'showHidden':![],'depth':null}));});});},Migration[_0x211620('0x12')]['final']=function(_0x512acd){const _0x3ff60d=_0x211620;this[_0x3ff60d('0x1a')][_0x3ff60d('0x4')](function(){return _0x512acd();});},module[_0x211620('0x9')]={'up':function(_0x3b5a29,_0x52a424){return new Promise(function(_0x56f708){const _0x47ebd0=a975_0x4e57,_0x2ad411=new Migration(_0x3b5a29);_0x2ad411['query']('ALTER\x20TABLE\x20tools_canned_answers\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;'),_0x2ad411['changeColumn']('chat_applications','appdata',{'type':_0x52a424['TEXT']()}),_0x2ad411['changeColumn']('fax_applications',_0x47ebd0('0x23'),{'type':_0x52a424[_0x47ebd0('0x19')]()}),_0x2ad411[_0x47ebd0('0x15')](_0x47ebd0('0x11'),'appdata',{'type':_0x52a424[_0x47ebd0('0x19')]()}),_0x2ad411[_0x47ebd0('0x15')](_0x47ebd0('0x5'),_0x47ebd0('0x23'),{'type':_0x52a424['TEXT']()}),_0x2ad411[_0x47ebd0('0x15')](_0x47ebd0('0x20'),_0x47ebd0('0x23'),{'type':_0x52a424[_0x47ebd0('0x19')]()}),_0x2ad411[_0x47ebd0('0x14')](_0x56f708);});},'down':function(){}};
\ No newline at end of file
+const a1137_0x5345=['migration','stringify','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','chat_applications','then','util','addIndex\x20%s\x20%s\x20%s','final','table\x20dropped\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','renameColumn','tail','appdata','sequelize','fax_applications','changeColumn','addColumn','removeColumn','catch','queryInterface','prototype','inspect','dropTable','enqueue','openchannel_applications','removeIndex\x20%s\x20%s','ALTER\x20TABLE\x20tools_canned_answers\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','join','TEXT','query','addIndex','sequence','mail_applications','query\x20%s','info','Added\x20column\x20%s\x20to\x20%s','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x1d9da6,_0x1ccd26){const _0x534595=function(_0x1ea03b){while(--_0x1ea03b){_0x1d9da6['push'](_0x1d9da6['shift']());}};_0x534595(++_0x1ccd26);}(a1137_0x5345,0x1c2));const a1137_0x1ea0=function(_0x1d9da6,_0x1ccd26){_0x1d9da6=_0x1d9da6-0x1d4;let _0x534595=a1137_0x5345[_0x1d9da6];return _0x534595;};const a1137_0x5cf150=a1137_0x1ea0;'use strict';const util=require(a1137_0x5cf150(0x1f8)),logger=require('../config/logger')(a1137_0x5cf150(0x1f3)),Sequence=function(){};Sequence[a1137_0x5cf150(0x1e2)][a1137_0x5cf150(0x1e5)]=function(_0x424600){const _0x4dcb51=a1137_0x5cf150;this[_0x4dcb51(0x1d9)]=this['tail']?this[_0x4dcb51(0x1d9)]['finally'](_0x424600):_0x424600();};const Migration=function(_0x4c4ac8){const _0x3ed091=a1137_0x5cf150;this[_0x3ed091(0x1e1)]=_0x4c4ac8,this['sequence']=new Sequence();};Migration[a1137_0x5cf150(0x1e2)]['changeColumn']=function(_0x212380,_0x2966e4,_0x38edbe){const _0x3ff383=a1137_0x5cf150,_0xa4be21=this;this['sequence'][_0x3ff383(0x1e5)](function(){const _0x5c03ad=_0x3ff383;return _0xa4be21['queryInterface']['changeColumn'](_0x212380,_0x2966e4,_0x38edbe)[_0x5c03ad(0x1f7)](function(){const _0x58e6a2=_0x5c03ad;logger[_0x58e6a2(0x1f0)](_0x58e6a2(0x1d7),_0x2966e4,_0x212380);})[_0x5c03ad(0x1e0)](function(_0x404ac8){const _0x2fc84e=_0x5c03ad;logger[_0x2fc84e(0x1f0)](JSON[_0x2fc84e(0x1f4)](_0x404ac8));});});},Migration[a1137_0x5cf150(0x1e2)][a1137_0x5cf150(0x1de)]=function(_0x287ece,_0x2c1aa2,_0x458704){const _0x478f56=a1137_0x5cf150,_0x4b23f5=this;this[_0x478f56(0x1ed)][_0x478f56(0x1e5)](function(){const _0x14108e=_0x478f56;return _0x4b23f5['queryInterface']['addColumn'](_0x287ece,_0x2c1aa2,_0x458704)[_0x14108e(0x1f7)](function(){const _0x515b10=_0x14108e;logger[_0x515b10(0x1f0)](_0x515b10(0x1f1),_0x2c1aa2,_0x287ece);})[_0x14108e(0x1e0)](function(_0x1618b7){const _0x3f2e33=_0x14108e;logger['info'](JSON[_0x3f2e33(0x1f4)](_0x1618b7));});});},Migration[a1137_0x5cf150(0x1e2)][a1137_0x5cf150(0x1e4)]=function(_0x13021d){const _0x105eba=a1137_0x5cf150,_0x37c0eb=this;this[_0x105eba(0x1ed)][_0x105eba(0x1e5)](function(){const _0x171953=_0x105eba;return _0x37c0eb[_0x171953(0x1e1)]['dropTable'](_0x13021d,{'force':!![]})['then'](function(){const _0xab1680=_0x171953;logger['info'](_0xab1680(0x1d6),_0x13021d);})[_0x171953(0x1e0)](function(_0x172091){const _0xfd6e2b=_0x171953;logger[_0xfd6e2b(0x1f0)](JSON[_0xfd6e2b(0x1f4)](_0x172091));});});},Migration['prototype']['addIndex']=function(_0x47644d,_0x19be22,_0x84461f){const _0x1ed52d=a1137_0x5cf150,_0xff269b=this;this[_0x1ed52d(0x1ed)]['enqueue'](function(){const _0x2c8fbd=_0x1ed52d;return _0xff269b[_0x2c8fbd(0x1e1)][_0x2c8fbd(0x1ec)](_0x47644d,_0x19be22,{'indexName':_0x84461f})['then'](function(){const _0x11f32b=_0x2c8fbd;logger[_0x11f32b(0x1f0)](_0x11f32b(0x1d4),_0x47644d,_0x19be22[_0x11f32b(0x1e9)](','),_0x84461f);})['catch'](function(_0x456b09){const _0x30ec28=_0x2c8fbd;logger[_0x30ec28(0x1f0)](JSON[_0x30ec28(0x1f4)](_0x456b09));});});},Migration[a1137_0x5cf150(0x1e2)]['removeIndex']=function(_0x542471,_0x5c906c){const _0x542b3d=a1137_0x5cf150,_0x5b5cd7=this;this[_0x542b3d(0x1ed)][_0x542b3d(0x1e5)](function(){const _0x367470=_0x542b3d;return _0x5b5cd7['queryInterface']['removeIndex'](_0x542471,_0x5c906c)[_0x367470(0x1f7)](function(){const _0xf4a087=_0x367470;logger[_0xf4a087(0x1f0)](_0xf4a087(0x1e7),_0x542471,_0x5c906c);})['catch'](function(_0x2c464c){const _0x1a0df1=_0x367470;logger['info'](JSON[_0x1a0df1(0x1f4)](_0x2c464c));});});},Migration['prototype'][a1137_0x5cf150(0x1eb)]=function(_0x41717f){const _0x50b642=a1137_0x5cf150,_0x13ea0c=this;this[_0x50b642(0x1ed)][_0x50b642(0x1e5)](function(){const _0x32b62c=_0x50b642;return _0x13ea0c[_0x32b62c(0x1e1)][_0x32b62c(0x1db)][_0x32b62c(0x1eb)](_0x41717f)['then'](function(){const _0x13c149=_0x32b62c;logger[_0x13c149(0x1f0)](_0x13c149(0x1ef),_0x41717f);})[_0x32b62c(0x1e0)](function(_0xf1cbf3){const _0x55a69b=_0x32b62c;logger[_0x55a69b(0x1f0)](JSON[_0x55a69b(0x1f4)](_0xf1cbf3));});});},Migration[a1137_0x5cf150(0x1e2)][a1137_0x5cf150(0x1df)]=function(_0x32472e,_0x58df4f){const _0xab7ebe=this;this['sequence']['enqueue'](function(){const _0x19ed04=a1137_0x1ea0;return _0xab7ebe['queryInterface'][_0x19ed04(0x1df)](_0x32472e,_0x58df4f)['then'](function(){const _0x5d409b=_0x19ed04;logger[_0x5d409b(0x1f0)](_0x5d409b(0x1f2),_0x58df4f,_0x32472e);})[_0x19ed04(0x1e0)](function(_0x34fd99){const _0x3295c6=_0x19ed04;logger['info'](util[_0x3295c6(0x1e3)](_0x34fd99,{'showHidden':![],'depth':null}));});});},Migration[a1137_0x5cf150(0x1e2)]['renameColumn']=function(_0x3b2aff,_0x3170b4,_0x46d6d0){const _0x38e6ad=a1137_0x5cf150,_0x20449d=this;this[_0x38e6ad(0x1ed)][_0x38e6ad(0x1e5)](function(){const _0x392445=_0x38e6ad;return _0x20449d[_0x392445(0x1e1)][_0x392445(0x1d8)](_0x3b2aff,_0x3170b4,_0x46d6d0)[_0x392445(0x1f7)](function(){const _0x5377e4=_0x392445;logger[_0x5377e4(0x1f0)](_0x5377e4(0x1f5),_0x3170b4,_0x46d6d0,_0x3b2aff);})[_0x392445(0x1e0)](function(_0x1eed13){const _0x420096=_0x392445;logger[_0x420096(0x1f0)](util[_0x420096(0x1e3)](_0x1eed13,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1137_0x5cf150(0x1d5)]=function(_0x2c0afe){const _0xf4661a=a1137_0x5cf150;this[_0xf4661a(0x1ed)]['enqueue'](function(){return _0x2c0afe();});},module['exports']={'up':function(_0xeed771,_0x5ebd4e){return new Promise(function(_0x3b2185){const _0x59384a=a1137_0x1ea0,_0x2ae68f=new Migration(_0xeed771);_0x2ae68f[_0x59384a(0x1eb)](_0x59384a(0x1e8)),_0x2ae68f['changeColumn'](_0x59384a(0x1f6),_0x59384a(0x1da),{'type':_0x5ebd4e[_0x59384a(0x1ea)]()}),_0x2ae68f[_0x59384a(0x1dd)](_0x59384a(0x1dc),'appdata',{'type':_0x5ebd4e[_0x59384a(0x1ea)]()}),_0x2ae68f[_0x59384a(0x1dd)](_0x59384a(0x1ee),'appdata',{'type':_0x5ebd4e[_0x59384a(0x1ea)]()}),_0x2ae68f[_0x59384a(0x1dd)](_0x59384a(0x1e6),'appdata',{'type':_0x5ebd4e['TEXT']()}),_0x2ae68f['changeColumn']('sms_applications',_0x59384a(0x1da),{'type':_0x5ebd4e[_0x59384a(0x1ea)]()}),_0x2ae68f[_0x59384a(0x1d5)](_0x3b2185);});},'down':function(){}};
\ No newline at end of file