Built motion from commit 709aa6fb5ed03aa61bc373fcdbf622215d37d30b. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.23.js
1 const a901_0xcc83=['user_has_openchannel_rooms','dropTable','stringify','table\x20dropped\x20%s','openchannel_accounts','ENUM','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','openchannel_applications','removeColumn','int_zendesk_accounts','integrationTab','migration','prototype','newTab','Added\x20column\x20%s\x20to\x20%s','queryInterface','type','catch','info','int_salesforce_accounts','openchannel_rooms','openchannel_messages','../config/logger','renameColumn','addColumn','then'];(function(_0x32cb90,_0xcc836){const _0x515b2d=function(_0x2cf6fe){while(--_0x2cf6fe){_0x32cb90['push'](_0x32cb90['shift']());}};_0x515b2d(++_0xcc836);}(a901_0xcc83,0x1d0));const a901_0x515b=function(_0x32cb90,_0xcc836){_0x32cb90=_0x32cb90-0x0;let _0x515b2d=a901_0xcc83[_0x32cb90];return _0x515b2d;};const _0xf5a36f=a901_0x515b;'use strict';const logger=require(_0xf5a36f('0x0'))(_0xf5a36f('0xf')),Migration=function(_0x2cf6fe){const _0x9e7223=_0xf5a36f;this[_0x9e7223('0x13')]=_0x2cf6fe;};Migration[_0xf5a36f('0x10')][_0xf5a36f('0x2')]=function(_0x1b5406,_0x4b77eb,_0xdaf959){const _0x22cae5=_0xf5a36f;return this[_0x22cae5('0x13')]['addColumn'](_0x1b5406,_0x4b77eb,_0xdaf959)[_0x22cae5('0x3')](function(){const _0x2c1825=_0x22cae5;logger[_0x2c1825('0x16')](_0x2c1825('0x12'),_0x4b77eb,_0x1b5406);})[_0x22cae5('0x15')](function(_0x5d6006){const _0x16b48a=_0x22cae5;logger[_0x16b48a('0x16')](JSON[_0x16b48a('0x6')](_0x5d6006));});},Migration[_0xf5a36f('0x10')]['removeColumn']=function(_0x1b6a6b,_0xf0493e){const _0x444f59=_0xf5a36f;return this[_0x444f59('0x13')][_0x444f59('0xc')](_0x1b6a6b,_0xf0493e)[_0x444f59('0x3')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0xf0493e,_0x1b6a6b);})['catch'](function(_0x49a748){const _0x4e7cca=_0x444f59;logger[_0x4e7cca('0x16')](JSON[_0x4e7cca('0x6')](_0x49a748));});},Migration[_0xf5a36f('0x10')][_0xf5a36f('0x1')]=function(_0x19582f,_0x4cbe69,_0x1165c1){const _0x2f707e=_0xf5a36f;return this[_0x2f707e('0x13')][_0x2f707e('0x1')](_0x19582f,_0x4cbe69,_0x1165c1)[_0x2f707e('0x3')](function(){const _0x1eceaa=_0x2f707e;logger[_0x1eceaa('0x16')](_0x1eceaa('0xa'),_0x4cbe69,_0x1165c1,_0x19582f);})[_0x2f707e('0x15')](function(_0xb6942){const _0x547d1d=_0x2f707e;logger[_0x547d1d('0x16')](JSON['stringify'](_0xb6942));});},Migration[_0xf5a36f('0x10')][_0xf5a36f('0x5')]=function(_0x49188f){const _0x196e42=_0xf5a36f;return this[_0x196e42('0x13')][_0x196e42('0x5')](_0x49188f)[_0x196e42('0x3')](function(){const _0x2b8cbd=_0x196e42;logger[_0x2b8cbd('0x16')](_0x2b8cbd('0x7'),_0x49188f);})[_0x196e42('0x15')](function(_0x3068c3){const _0x11dcfd=_0x196e42;logger[_0x11dcfd('0x16')](JSON[_0x11dcfd('0x6')](_0x3068c3));});},module['exports']={'up':function(_0x4a23c2,_0x39e53f){const _0x26ad84=_0xf5a36f,_0x31b44f=new Migration(_0x4a23c2);_0x31b44f[_0x26ad84('0x2')](_0x26ad84('0x17'),'type',{'type':_0x39e53f[_0x26ad84('0x9')](_0x26ad84('0xe'),'newTab'),'defaultValue':_0x26ad84('0xe')}),_0x31b44f[_0x26ad84('0x2')](_0x26ad84('0xd'),_0x26ad84('0x14'),{'type':_0x39e53f[_0x26ad84('0x9')]('integrationTab',_0x26ad84('0x11')),'defaultValue':_0x26ad84('0xe')}),_0x31b44f[_0x26ad84('0x5')](_0x26ad84('0x4'),{'force':!![]}),_0x31b44f['dropTable'](_0x26ad84('0x19'),{'force':!![]}),_0x31b44f['dropTable'](_0x26ad84('0x18'),{'force':!![]}),_0x31b44f[_0x26ad84('0x5')](_0x26ad84('0xb'),{'force':!![]}),_0x31b44f[_0x26ad84('0x5')](_0x26ad84('0x8'),{'force':!![]});},'down':function(_0x5655c1){const _0xe673ca=_0xf5a36f,_0x162e3a=new Migration(_0x5655c1);_0x162e3a[_0xe673ca('0xc')](_0xe673ca('0x17'),_0xe673ca('0x14')),_0x162e3a[_0xe673ca('0xc')]('int_zendesk_accounts','type');}};