Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.68.js
1 const a947_0x6352=['tail','inspect','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Interested\x27,\x20NOW(),\x20NOW())','enqueue','query\x20%s','addColumn','info','removeIndex','addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex\x20%s\x20%s','openchannel_accounts','removeColumn','finally','util','Removed\x20column\x20%s\x20from\x20%s','addIndex\x20%s\x20%s\x20%s','exports','changeColumn','renameColumn','prototype','final','catch','UPDATE\x20settings\x20SET\x20messagesAlignment=\x27alternate\x27','query','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Fax\x27,\x20NOW(),\x20NOW())','migration','closeReason','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Sold\x27,\x20NOW(),\x20NOW())','../config/logger','dropTable','Added\x20column\x20%s\x20to\x20%s','join','sequelize','mapKey','sequence','stringify','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Not\x20Interested\x27,\x20NOW(),\x20NOW())','STRING','chat_interactions','then','queryInterface'];(function(_0x3b1b95,_0x63526d){const _0x1a0557=function(_0x1258c3){while(--_0x1258c3){_0x3b1b95['push'](_0x3b1b95['shift']());}};_0x1a0557(++_0x63526d);}(a947_0x6352,0x141));const a947_0x1a05=function(_0x3b1b95,_0x63526d){_0x3b1b95=_0x3b1b95-0x0;let _0x1a0557=a947_0x6352[_0x3b1b95];return _0x1a0557;};const _0xf4ce4d=a947_0x1a05;'use strict';const util=require(_0xf4ce4d('0x1d')),logger=require(_0xf4ce4d('0x2'))(_0xf4ce4d('0x29')),Sequence=function(){};Sequence[_0xf4ce4d('0x23')][_0xf4ce4d('0x12')]=function(_0x1258c3){const _0x5b69dd=_0xf4ce4d;this[_0x5b69dd('0xf')]=this['tail']?this[_0x5b69dd('0xf')][_0x5b69dd('0x1c')](_0x1258c3):_0x1258c3();};const Migration=function(_0x561832){const _0x1f60ef=_0xf4ce4d;this[_0x1f60ef('0xe')]=_0x561832,this[_0x1f60ef('0x8')]=new Sequence();};Migration['prototype'][_0xf4ce4d('0x21')]=function(_0x1478eb,_0x130abe,_0x1ab978){const _0x52cc0a=_0xf4ce4d,_0x3a1d1b=this;this['sequence'][_0x52cc0a('0x12')](function(){const _0x46b9dc=_0x52cc0a;return _0x3a1d1b['queryInterface'][_0x46b9dc('0x21')](_0x1478eb,_0x130abe,_0x1ab978)[_0x46b9dc('0xd')](function(){const _0x4076d1=_0x46b9dc;logger[_0x4076d1('0x15')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x130abe,_0x1478eb);})['catch'](function(_0x6f4d4b){const _0x9af96b=_0x46b9dc;logger[_0x9af96b('0x15')](JSON[_0x9af96b('0x9')](_0x6f4d4b));});});},Migration['prototype'][_0xf4ce4d('0x14')]=function(_0x447da0,_0x5e4439,_0x5b9ce1){const _0x456704=_0xf4ce4d,_0x415d37=this;this[_0x456704('0x8')]['enqueue'](function(){const _0x28fbcc=_0x456704;return _0x415d37[_0x28fbcc('0xe')][_0x28fbcc('0x14')](_0x447da0,_0x5e4439,_0x5b9ce1)[_0x28fbcc('0xd')](function(){const _0x1533a7=_0x28fbcc;logger[_0x1533a7('0x15')](_0x1533a7('0x4'),_0x5e4439,_0x447da0);})[_0x28fbcc('0x25')](function(_0x126318){const _0x182332=_0x28fbcc;logger[_0x182332('0x15')](JSON[_0x182332('0x9')](_0x126318));});});},Migration[_0xf4ce4d('0x23')]['dropTable']=function(_0x2a342f){const _0x43a70a=this;this['sequence']['enqueue'](function(){const _0x302768=a947_0x1a05;return _0x43a70a[_0x302768('0xe')][_0x302768('0x3')](_0x2a342f,{'force':!![]})[_0x302768('0xd')](function(){const _0x14f97e=_0x302768;logger[_0x14f97e('0x15')]('table\x20dropped\x20%s',_0x2a342f);})[_0x302768('0x25')](function(_0x104163){const _0x48e776=_0x302768;logger[_0x48e776('0x15')](JSON[_0x48e776('0x9')](_0x104163));});});},Migration['prototype'][_0xf4ce4d('0x17')]=function(_0x57cde9,_0x19d2e3,_0x161d58){const _0x4d3eb0=_0xf4ce4d,_0x540fd4=this;this[_0x4d3eb0('0x8')][_0x4d3eb0('0x12')](function(){const _0xde9dc8=_0x4d3eb0;return _0x540fd4[_0xde9dc8('0xe')][_0xde9dc8('0x17')](_0x57cde9,_0x19d2e3,{'indexName':_0x161d58})['then'](function(){const _0x5516bd=_0xde9dc8;logger[_0x5516bd('0x15')](_0x5516bd('0x1f'),_0x57cde9,_0x19d2e3[_0x5516bd('0x5')](','),_0x161d58);})['catch'](function(_0x6fff81){const _0x35a50a=_0xde9dc8;logger['info'](JSON[_0x35a50a('0x9')](_0x6fff81));});});},Migration['prototype'][_0xf4ce4d('0x16')]=function(_0x4e8f70,_0x4aa7e1){const _0x42d5c1=this;this['sequence']['enqueue'](function(){const _0x5c41b3=a947_0x1a05;return _0x42d5c1[_0x5c41b3('0xe')][_0x5c41b3('0x16')](_0x4e8f70,_0x4aa7e1)[_0x5c41b3('0xd')](function(){const _0xfdd44d=_0x5c41b3;logger[_0xfdd44d('0x15')](_0xfdd44d('0x19'),_0x4e8f70,_0x4aa7e1);})[_0x5c41b3('0x25')](function(_0x159d36){const _0xb86cd3=_0x5c41b3;logger[_0xb86cd3('0x15')](JSON[_0xb86cd3('0x9')](_0x159d36));});});},Migration['prototype']['query']=function(_0x547d34){const _0x1c3c1b=_0xf4ce4d,_0x555328=this;this[_0x1c3c1b('0x8')]['enqueue'](function(){const _0x12fdb8=_0x1c3c1b;return _0x555328[_0x12fdb8('0xe')][_0x12fdb8('0x6')][_0x12fdb8('0x27')](_0x547d34)[_0x12fdb8('0xd')](function(){const _0x4ee551=_0x12fdb8;logger['info'](_0x4ee551('0x13'),_0x547d34);})[_0x12fdb8('0x25')](function(_0x51d19c){const _0x3faf14=_0x12fdb8;logger[_0x3faf14('0x15')](JSON[_0x3faf14('0x9')](_0x51d19c));});});},Migration[_0xf4ce4d('0x23')][_0xf4ce4d('0x1b')]=function(_0x3ebc9f,_0x5eede4){const _0x570e9c=_0xf4ce4d,_0x34a261=this;this[_0x570e9c('0x8')][_0x570e9c('0x12')](function(){const _0xbe5765=_0x570e9c;return _0x34a261[_0xbe5765('0xe')][_0xbe5765('0x1b')](_0x3ebc9f,_0x5eede4)[_0xbe5765('0xd')](function(){const _0x1d865c=_0xbe5765;logger[_0x1d865c('0x15')](_0x1d865c('0x1e'),_0x5eede4,_0x3ebc9f);})[_0xbe5765('0x25')](function(_0x31f8ff){const _0x4f205c=_0xbe5765;logger[_0x4f205c('0x15')](util['inspect'](_0x31f8ff,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x1589f4,_0x2fd68f,_0x1f15a1){const _0xc109c9=_0xf4ce4d,_0x2f7c8f=this;this['sequence'][_0xc109c9('0x12')](function(){const _0x2c22c5=_0xc109c9;return _0x2f7c8f['queryInterface'][_0x2c22c5('0x22')](_0x1589f4,_0x2fd68f,_0x1f15a1)['then'](function(){const _0x3076a1=_0x2c22c5;logger[_0x3076a1('0x15')](_0x3076a1('0x18'),_0x2fd68f,_0x1f15a1,_0x1589f4);})[_0x2c22c5('0x25')](function(_0x27f9f7){const _0xfa23bd=_0x2c22c5;logger[_0xfa23bd('0x15')](util[_0xfa23bd('0x10')](_0x27f9f7,{'showHidden':![],'depth':null}));});});},Migration[_0xf4ce4d('0x23')][_0xf4ce4d('0x24')]=function(_0x14ed67){this['sequence']['enqueue'](function(){return _0x14ed67();});},module[_0xf4ce4d('0x20')]={'up':function(_0x2167a5,_0x2dfb35){return new Promise(function(_0xe29930){const _0x2edde5=a947_0x1a05,_0x178a63=new Migration(_0x2167a5);_0x178a63['query'](_0x2edde5('0x28')),_0x178a63[_0x2edde5('0x27')]('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Answer\x20Machine\x27,\x20NOW(),\x20NOW())'),_0x178a63[_0x2edde5('0x27')](_0x2edde5('0x11')),_0x178a63['query'](_0x2edde5('0xa')),_0x178a63[_0x2edde5('0x27')](_0x2edde5('0x1')),_0x178a63['query']('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Special\x27,\x20NOW(),\x20NOW())'),_0x178a63[_0x2edde5('0x14')](_0x2edde5('0x1a'),_0x2edde5('0x7'),{'type':_0x2dfb35[_0x2edde5('0xb')]}),_0x178a63['addColumn'](_0x2edde5('0xc'),_0x2edde5('0x0'),{'type':_0x2dfb35['STRING']}),_0x178a63['addColumn']('settings','messagesAlignment',{'type':_0x2dfb35[_0x2edde5('0xb')]}),_0x178a63['query'](_0x2edde5('0x26')),_0x178a63[_0x2edde5('0x24')](_0xe29930);});},'down':function(){}};