Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.23.js
1 const a902_0x1d60=['integrationTab','openchannel_accounts','openchannel_messages','Removed\x20column\x20%s\x20from\x20%s','exports','int_zendesk_accounts','openchannel_rooms','stringify','catch','ENUM','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','queryInterface','renameColumn','info','user_has_openchannel_rooms','type','then','prototype','migration','int_salesforce_accounts','addColumn','openchannel_applications','removeColumn','../config/logger','dropTable'];(function(_0x299fb6,_0x1d603a){const _0x4664df=function(_0x2d86f2){while(--_0x2d86f2){_0x299fb6['push'](_0x299fb6['shift']());}};_0x4664df(++_0x1d603a);}(a902_0x1d60,0x142));const a902_0x4664=function(_0x299fb6,_0x1d603a){_0x299fb6=_0x299fb6-0x0;let _0x4664df=a902_0x1d60[_0x299fb6];return _0x4664df;};const _0x5ca4b4=a902_0x4664;'use strict';const logger=require(_0x5ca4b4('0x1'))(_0x5ca4b4('0x15')),Migration=function(_0x2d86f2){this['queryInterface']=_0x2d86f2;};Migration[_0x5ca4b4('0x14')][_0x5ca4b4('0x17')]=function(_0x1523c1,_0x30bcf4,_0x4cce0e){const _0x15a437=_0x5ca4b4;return this[_0x15a437('0xe')][_0x15a437('0x17')](_0x1523c1,_0x30bcf4,_0x4cce0e)[_0x15a437('0x13')](function(){const _0x360e7c=_0x15a437;logger[_0x360e7c('0x10')]('Added\x20column\x20%s\x20to\x20%s',_0x30bcf4,_0x1523c1);})['catch'](function(_0x4d1494){const _0x1ff1a2=_0x15a437;logger[_0x1ff1a2('0x10')](JSON[_0x1ff1a2('0xa')](_0x4d1494));});},Migration['prototype'][_0x5ca4b4('0x0')]=function(_0x1f15a6,_0x279efe){const _0x1d91e1=_0x5ca4b4;return this['queryInterface'][_0x1d91e1('0x0')](_0x1f15a6,_0x279efe)[_0x1d91e1('0x13')](function(){const _0x10711a=_0x1d91e1;logger[_0x10711a('0x10')](_0x10711a('0x6'),_0x279efe,_0x1f15a6);})[_0x1d91e1('0xb')](function(_0x2e85f9){const _0x1f7be2=_0x1d91e1;logger[_0x1f7be2('0x10')](JSON['stringify'](_0x2e85f9));});},Migration[_0x5ca4b4('0x14')][_0x5ca4b4('0xf')]=function(_0x181c05,_0x3dd134,_0x5770e0){const _0x541a62=_0x5ca4b4;return this['queryInterface']['renameColumn'](_0x181c05,_0x3dd134,_0x5770e0)[_0x541a62('0x13')](function(){const _0x409eae=_0x541a62;logger[_0x409eae('0x10')](_0x409eae('0xd'),_0x3dd134,_0x5770e0,_0x181c05);})[_0x541a62('0xb')](function(_0x3d75e2){const _0xa0c78=_0x541a62;logger[_0xa0c78('0x10')](JSON['stringify'](_0x3d75e2));});},Migration[_0x5ca4b4('0x14')]['dropTable']=function(_0x1ef5c9){const _0x1c6866=_0x5ca4b4;return this['queryInterface']['dropTable'](_0x1ef5c9)[_0x1c6866('0x13')](function(){const _0x3f8905=_0x1c6866;logger[_0x3f8905('0x10')]('table\x20dropped\x20%s',_0x1ef5c9);})['catch'](function(_0x47dbf5){const _0x2ee4dc=_0x1c6866;logger[_0x2ee4dc('0x10')](JSON[_0x2ee4dc('0xa')](_0x47dbf5));});},module[_0x5ca4b4('0x7')]={'up':function(_0x4d5adf,_0x406b72){const _0x2fe294=_0x5ca4b4,_0x116f48=new Migration(_0x4d5adf);_0x116f48[_0x2fe294('0x17')](_0x2fe294('0x16'),_0x2fe294('0x12'),{'type':_0x406b72[_0x2fe294('0xc')](_0x2fe294('0x3'),'newTab'),'defaultValue':_0x2fe294('0x3')}),_0x116f48['addColumn'](_0x2fe294('0x8'),_0x2fe294('0x12'),{'type':_0x406b72[_0x2fe294('0xc')]('integrationTab','newTab'),'defaultValue':'integrationTab'}),_0x116f48['dropTable'](_0x2fe294('0x11'),{'force':!![]}),_0x116f48['dropTable'](_0x2fe294('0x5'),{'force':!![]}),_0x116f48['dropTable'](_0x2fe294('0x9'),{'force':!![]}),_0x116f48[_0x2fe294('0x2')](_0x2fe294('0x18'),{'force':!![]}),_0x116f48['dropTable'](_0x2fe294('0x4'),{'force':!![]});},'down':function(_0x95b10b){const _0x85b81=_0x5ca4b4,_0x468d62=new Migration(_0x95b10b);_0x468d62[_0x85b81('0x0')](_0x85b81('0x16'),_0x85b81('0x12')),_0x468d62[_0x85b81('0x0')](_0x85b81('0x8'),_0x85b81('0x12'));}};