Built motion from commit b517aaa2a6638133380e4d135c64a80893061362. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.68.js
1 const a947_0x4ce2=['INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Answer\x20Machine\x27,\x20NOW(),\x20NOW())','addIndex','mapKey','exports','openchannel_accounts','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Not\x20Interested\x27,\x20NOW(),\x20NOW())','stringify','removeIndex\x20%s\x20%s','table\x20dropped\x20%s','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Special\x27,\x20NOW(),\x20NOW())','UPDATE\x20settings\x20SET\x20messagesAlignment=\x27alternate\x27','tail','../config/logger','changeColumn','chat_interactions','dropTable','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Sold\x27,\x20NOW(),\x20NOW())','removeIndex','addIndex\x20%s\x20%s\x20%s','addColumn','messagesAlignment','prototype','settings','migration','removeColumn','then','closeReason','Added\x20column\x20%s\x20to\x20%s','STRING','queryInterface','enqueue','Changed\x20column\x20%s\x20in\x20table\x20%s','query','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','renameColumn','info','inspect','sequence','catch','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Interested\x27,\x20NOW(),\x20NOW())','final'];(function(_0x285dc7,_0x4ce2db){const _0x136a63=function(_0x387d6c){while(--_0x387d6c){_0x285dc7['push'](_0x285dc7['shift']());}};_0x136a63(++_0x4ce2db);}(a947_0x4ce2,0x11a));const a947_0x136a=function(_0x285dc7,_0x4ce2db){_0x285dc7=_0x285dc7-0x0;let _0x136a63=a947_0x4ce2[_0x285dc7];return _0x136a63;};const _0x1cb6c1=a947_0x136a;'use strict';const util=require('util'),logger=require(_0x1cb6c1('0x11'))(_0x1cb6c1('0x1c')),Sequence=function(){};Sequence[_0x1cb6c1('0x1a')][_0x1cb6c1('0x23')]=function(_0x387d6c){const _0x36c262=_0x1cb6c1;this['tail']=this[_0x36c262('0x10')]?this[_0x36c262('0x10')]['finally'](_0x387d6c):_0x387d6c();};const Migration=function(_0x1b2a5f){const _0x2bf292=_0x1cb6c1;this[_0x2bf292('0x22')]=_0x1b2a5f,this['sequence']=new Sequence();};Migration[_0x1cb6c1('0x1a')][_0x1cb6c1('0x12')]=function(_0x27925f,_0x25c720,_0x482c49){const _0x512114=_0x1cb6c1,_0x116db0=this;this[_0x512114('0x1')][_0x512114('0x23')](function(){const _0x1cb22c=_0x512114;return _0x116db0[_0x1cb22c('0x22')][_0x1cb22c('0x12')](_0x27925f,_0x25c720,_0x482c49)[_0x1cb22c('0x1e')](function(){const _0x29d395=_0x1cb22c;logger[_0x29d395('0x28')](_0x29d395('0x24'),_0x25c720,_0x27925f);})[_0x1cb22c('0x2')](function(_0x1fac1d){logger['info'](JSON['stringify'](_0x1fac1d));});});},Migration[_0x1cb6c1('0x1a')][_0x1cb6c1('0x18')]=function(_0x9461f7,_0xf4c6f9,_0x26f5ac){const _0x5faa1e=_0x1cb6c1,_0x2151ad=this;this[_0x5faa1e('0x1')][_0x5faa1e('0x23')](function(){const _0x50f127=_0x5faa1e;return _0x2151ad[_0x50f127('0x22')][_0x50f127('0x18')](_0x9461f7,_0xf4c6f9,_0x26f5ac)['then'](function(){const _0x51af8e=_0x50f127;logger['info'](_0x51af8e('0x20'),_0xf4c6f9,_0x9461f7);})[_0x50f127('0x2')](function(_0x3b963d){const _0xfd6848=_0x50f127;logger[_0xfd6848('0x28')](JSON[_0xfd6848('0xb')](_0x3b963d));});});},Migration[_0x1cb6c1('0x1a')][_0x1cb6c1('0x14')]=function(_0x4be59f){const _0x31e36b=_0x1cb6c1,_0x125853=this;this[_0x31e36b('0x1')][_0x31e36b('0x23')](function(){const _0x1a48b1=_0x31e36b;return _0x125853['queryInterface'][_0x1a48b1('0x14')](_0x4be59f,{'force':!![]})['then'](function(){const _0x28777f=_0x1a48b1;logger[_0x28777f('0x28')](_0x28777f('0xd'),_0x4be59f);})[_0x1a48b1('0x2')](function(_0x5826a8){const _0x14ef3b=_0x1a48b1;logger[_0x14ef3b('0x28')](JSON['stringify'](_0x5826a8));});});},Migration[_0x1cb6c1('0x1a')][_0x1cb6c1('0x6')]=function(_0x39562b,_0x2a90b0,_0x144967){const _0x3591fe=_0x1cb6c1,_0x2fc750=this;this[_0x3591fe('0x1')][_0x3591fe('0x23')](function(){const _0x1a0641=_0x3591fe;return _0x2fc750[_0x1a0641('0x22')][_0x1a0641('0x6')](_0x39562b,_0x2a90b0,{'indexName':_0x144967})[_0x1a0641('0x1e')](function(){const _0x5b6141=_0x1a0641;logger[_0x5b6141('0x28')](_0x5b6141('0x17'),_0x39562b,_0x2a90b0['join'](','),_0x144967);})[_0x1a0641('0x2')](function(_0x5bf324){logger['info'](JSON['stringify'](_0x5bf324));});});},Migration[_0x1cb6c1('0x1a')][_0x1cb6c1('0x16')]=function(_0x3f7151,_0x11e149){const _0x54d9d6=_0x1cb6c1,_0x1d7faf=this;this[_0x54d9d6('0x1')][_0x54d9d6('0x23')](function(){const _0x3c63d0=_0x54d9d6;return _0x1d7faf[_0x3c63d0('0x22')][_0x3c63d0('0x16')](_0x3f7151,_0x11e149)['then'](function(){const _0x3c2de8=_0x3c63d0;logger[_0x3c2de8('0x28')](_0x3c2de8('0xc'),_0x3f7151,_0x11e149);})[_0x3c63d0('0x2')](function(_0x16e321){const _0xea6539=_0x3c63d0;logger[_0xea6539('0x28')](JSON['stringify'](_0x16e321));});});},Migration[_0x1cb6c1('0x1a')]['query']=function(_0x1b48b5){const _0x130419=_0x1cb6c1,_0x20bb13=this;this[_0x130419('0x1')]['enqueue'](function(){const _0x4a1d35=_0x130419;return _0x20bb13[_0x4a1d35('0x22')]['sequelize'][_0x4a1d35('0x25')](_0x1b48b5)[_0x4a1d35('0x1e')](function(){const _0xa217fa=_0x4a1d35;logger[_0xa217fa('0x28')]('query\x20%s',_0x1b48b5);})[_0x4a1d35('0x2')](function(_0x5c131d){const _0x5ebfae=_0x4a1d35;logger[_0x5ebfae('0x28')](JSON[_0x5ebfae('0xb')](_0x5c131d));});});},Migration[_0x1cb6c1('0x1a')][_0x1cb6c1('0x1d')]=function(_0x24d1a5,_0x570b2e){const _0x55921c=_0x1cb6c1,_0x17ba61=this;this[_0x55921c('0x1')][_0x55921c('0x23')](function(){const _0x270462=_0x55921c;return _0x17ba61[_0x270462('0x22')][_0x270462('0x1d')](_0x24d1a5,_0x570b2e)[_0x270462('0x1e')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x570b2e,_0x24d1a5);})[_0x270462('0x2')](function(_0x2c8f98){const _0x4cd02c=_0x270462;logger['info'](util[_0x4cd02c('0x0')](_0x2c8f98,{'showHidden':![],'depth':null}));});});},Migration[_0x1cb6c1('0x1a')]['renameColumn']=function(_0x191f84,_0x22e38d,_0x12b1cf){const _0x3819ff=_0x1cb6c1,_0x463ea5=this;this[_0x3819ff('0x1')][_0x3819ff('0x23')](function(){const _0x3f696b=_0x3819ff;return _0x463ea5[_0x3f696b('0x22')][_0x3f696b('0x27')](_0x191f84,_0x22e38d,_0x12b1cf)[_0x3f696b('0x1e')](function(){const _0x5ac47c=_0x3f696b;logger['info'](_0x5ac47c('0x26'),_0x22e38d,_0x12b1cf,_0x191f84);})[_0x3f696b('0x2')](function(_0x569023){const _0xe2e56=_0x3f696b;logger[_0xe2e56('0x28')](util[_0xe2e56('0x0')](_0x569023,{'showHidden':![],'depth':null}));});});},Migration[_0x1cb6c1('0x1a')][_0x1cb6c1('0x4')]=function(_0x4d7dcc){const _0x200a08=_0x1cb6c1;this[_0x200a08('0x1')][_0x200a08('0x23')](function(){return _0x4d7dcc();});},module[_0x1cb6c1('0x8')]={'up':function(_0x5758ba,_0x37ea87){return new Promise(function(_0x45298f){const _0x41cd59=a947_0x136a,_0x4b3fb1=new Migration(_0x5758ba);_0x4b3fb1[_0x41cd59('0x25')]('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Fax\x27,\x20NOW(),\x20NOW())'),_0x4b3fb1[_0x41cd59('0x25')](_0x41cd59('0x5')),_0x4b3fb1[_0x41cd59('0x25')](_0x41cd59('0x3')),_0x4b3fb1['query'](_0x41cd59('0xa')),_0x4b3fb1[_0x41cd59('0x25')](_0x41cd59('0x15')),_0x4b3fb1[_0x41cd59('0x25')](_0x41cd59('0xe')),_0x4b3fb1[_0x41cd59('0x18')](_0x41cd59('0x9'),_0x41cd59('0x7'),{'type':_0x37ea87[_0x41cd59('0x21')]}),_0x4b3fb1[_0x41cd59('0x18')](_0x41cd59('0x13'),_0x41cd59('0x1f'),{'type':_0x37ea87[_0x41cd59('0x21')]}),_0x4b3fb1[_0x41cd59('0x18')](_0x41cd59('0x1b'),_0x41cd59('0x19'),{'type':_0x37ea87[_0x41cd59('0x21')]}),_0x4b3fb1[_0x41cd59('0x25')](_0x41cd59('0xf')),_0x4b3fb1[_0x41cd59('0x4')](_0x45298f);});},'down':function(){}};