Built motion from commit b517aaa2a6638133380e4d135c64a80893061362. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.68.js
index 09335a2..5372ee7 100644 (file)
@@ -1 +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(){}};
\ No newline at end of file
+const a947_0x1cce=['INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Not\x20Interested\x27,\x20NOW(),\x20NOW())','chat_interactions','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Answer\x20Machine\x27,\x20NOW(),\x20NOW())','addIndex\x20%s\x20%s\x20%s','mapKey','closeReason','removeIndex','changeColumn','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Interested\x27,\x20NOW(),\x20NOW())','STRING','sequence','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Special\x27,\x20NOW(),\x20NOW())','messagesAlignment','then','Changed\x20column\x20%s\x20in\x20table\x20%s','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Fax\x27,\x20NOW(),\x20NOW())','join','removeColumn','dropTable','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Sold\x27,\x20NOW(),\x20NOW())','renameColumn','openchannel_accounts','queryInterface','addIndex','catch','migration','addColumn','../config/logger','settings','table\x20dropped\x20%s','query','tail','finally','UPDATE\x20settings\x20SET\x20messagesAlignment=\x27alternate\x27','stringify','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','final','prototype','inspect','enqueue','query\x20%s','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x5d91ec,_0x1cce3){const _0x1221ab=function(_0x2e3b59){while(--_0x2e3b59){_0x5d91ec['push'](_0x5d91ec['shift']());}};_0x1221ab(++_0x1cce3);}(a947_0x1cce,0xf2));const a947_0x1221=function(_0x5d91ec,_0x1cce3){_0x5d91ec=_0x5d91ec-0x0;let _0x1221ab=a947_0x1cce[_0x5d91ec];return _0x1221ab;};const _0x1657a6=a947_0x1221;'use strict';const util=require('util'),logger=require(_0x1657a6('0x0'))(_0x1657a6('0x29')),Sequence=function(){};Sequence[_0x1657a6('0xb')][_0x1657a6('0xd')]=function(_0x2e3b59){const _0x23f974=_0x1657a6;this[_0x23f974('0x4')]=this[_0x23f974('0x4')]?this[_0x23f974('0x4')][_0x23f974('0x5')](_0x2e3b59):_0x2e3b59();};const Migration=function(_0x2f705a){const _0x17ddde=_0x1657a6;this['queryInterface']=_0x2f705a,this[_0x17ddde('0x1a')]=new Sequence();};Migration['prototype'][_0x1657a6('0x17')]=function(_0x4d1058,_0xad82d,_0x1927a1){const _0x572ff8=_0x1657a6,_0x18dd41=this;this[_0x572ff8('0x1a')][_0x572ff8('0xd')](function(){const _0x2e2801=_0x572ff8;return _0x18dd41[_0x2e2801('0x26')][_0x2e2801('0x17')](_0x4d1058,_0xad82d,_0x1927a1)[_0x2e2801('0x1d')](function(){const _0x57b9d8=_0x2e2801;logger[_0x57b9d8('0x9')](_0x57b9d8('0x1e'),_0xad82d,_0x4d1058);})[_0x2e2801('0x28')](function(_0x4c3dc3){const _0x592ff9=_0x2e2801;logger[_0x592ff9('0x9')](JSON[_0x592ff9('0x7')](_0x4c3dc3));});});},Migration[_0x1657a6('0xb')][_0x1657a6('0x2a')]=function(_0x35aba0,_0x503c00,_0x332576){const _0x57c177=_0x1657a6,_0x41066d=this;this['sequence'][_0x57c177('0xd')](function(){const _0x5b21ae=_0x57c177;return _0x41066d[_0x5b21ae('0x26')][_0x5b21ae('0x2a')](_0x35aba0,_0x503c00,_0x332576)[_0x5b21ae('0x1d')](function(){const _0x21f548=_0x5b21ae;logger[_0x21f548('0x9')]('Added\x20column\x20%s\x20to\x20%s',_0x503c00,_0x35aba0);})[_0x5b21ae('0x28')](function(_0xa3ad62){const _0x287744=_0x5b21ae;logger[_0x287744('0x9')](JSON['stringify'](_0xa3ad62));});});},Migration[_0x1657a6('0xb')][_0x1657a6('0x22')]=function(_0x39aa73){const _0x3a680d=_0x1657a6,_0x516817=this;this[_0x3a680d('0x1a')][_0x3a680d('0xd')](function(){const _0x3c076a=_0x3a680d;return _0x516817[_0x3c076a('0x26')][_0x3c076a('0x22')](_0x39aa73,{'force':!![]})[_0x3c076a('0x1d')](function(){const _0x2f21fe=_0x3c076a;logger[_0x2f21fe('0x9')](_0x2f21fe('0x2'),_0x39aa73);})[_0x3c076a('0x28')](function(_0x5df38d){const _0x5d45aa=_0x3c076a;logger[_0x5d45aa('0x9')](JSON[_0x5d45aa('0x7')](_0x5df38d));});});},Migration['prototype'][_0x1657a6('0x27')]=function(_0x322d39,_0x5b937c,_0x2eaa70){const _0xe7aed7=_0x1657a6,_0x3123e1=this;this[_0xe7aed7('0x1a')][_0xe7aed7('0xd')](function(){const _0x2e7dfb=_0xe7aed7;return _0x3123e1[_0x2e7dfb('0x26')]['addIndex'](_0x322d39,_0x5b937c,{'indexName':_0x2eaa70})[_0x2e7dfb('0x1d')](function(){const _0x49f42a=_0x2e7dfb;logger[_0x49f42a('0x9')](_0x49f42a('0x13'),_0x322d39,_0x5b937c[_0x49f42a('0x20')](','),_0x2eaa70);})[_0x2e7dfb('0x28')](function(_0x52539b){const _0xd20b17=_0x2e7dfb;logger[_0xd20b17('0x9')](JSON[_0xd20b17('0x7')](_0x52539b));});});},Migration[_0x1657a6('0xb')][_0x1657a6('0x16')]=function(_0x362853,_0x60a6a0){const _0x4e5498=_0x1657a6,_0xb2fff=this;this[_0x4e5498('0x1a')][_0x4e5498('0xd')](function(){const _0x289985=_0x4e5498;return _0xb2fff['queryInterface'][_0x289985('0x16')](_0x362853,_0x60a6a0)['then'](function(){const _0x2f5a8b=_0x289985;logger[_0x2f5a8b('0x9')]('removeIndex\x20%s\x20%s',_0x362853,_0x60a6a0);})[_0x289985('0x28')](function(_0x332364){const _0x2fa0aa=_0x289985;logger[_0x2fa0aa('0x9')](JSON[_0x2fa0aa('0x7')](_0x332364));});});},Migration['prototype'][_0x1657a6('0x3')]=function(_0x58e071){const _0x104a5b=_0x1657a6,_0x236aff=this;this[_0x104a5b('0x1a')]['enqueue'](function(){const _0x936700=_0x104a5b;return _0x236aff[_0x936700('0x26')]['sequelize'][_0x936700('0x3')](_0x58e071)[_0x936700('0x1d')](function(){const _0x22e080=_0x936700;logger['info'](_0x22e080('0xe'),_0x58e071);})['catch'](function(_0x5775d6){const _0x4ab883=_0x936700;logger['info'](JSON[_0x4ab883('0x7')](_0x5775d6));});});},Migration[_0x1657a6('0xb')]['removeColumn']=function(_0x3c8378,_0x4835b3){const _0x138b0d=_0x1657a6,_0x20d936=this;this['sequence'][_0x138b0d('0xd')](function(){const _0x180432=_0x138b0d;return _0x20d936[_0x180432('0x26')][_0x180432('0x21')](_0x3c8378,_0x4835b3)[_0x180432('0x1d')](function(){const _0x109273=_0x180432;logger['info'](_0x109273('0xf'),_0x4835b3,_0x3c8378);})['catch'](function(_0x174ddf){const _0xd70b2c=_0x180432;logger[_0xd70b2c('0x9')](util[_0xd70b2c('0xc')](_0x174ddf,{'showHidden':![],'depth':null}));});});},Migration[_0x1657a6('0xb')][_0x1657a6('0x24')]=function(_0x434cbf,_0x286720,_0x429bf0){const _0x3c083b=_0x1657a6,_0xb5fae8=this;this[_0x3c083b('0x1a')]['enqueue'](function(){const _0x105e93=_0x3c083b;return _0xb5fae8[_0x105e93('0x26')][_0x105e93('0x24')](_0x434cbf,_0x286720,_0x429bf0)['then'](function(){const _0x31fb3d=_0x105e93;logger[_0x31fb3d('0x9')](_0x31fb3d('0x8'),_0x286720,_0x429bf0,_0x434cbf);})[_0x105e93('0x28')](function(_0xe41a33){const _0x219d23=_0x105e93;logger[_0x219d23('0x9')](util[_0x219d23('0xc')](_0xe41a33,{'showHidden':![],'depth':null}));});});},Migration[_0x1657a6('0xb')][_0x1657a6('0xa')]=function(_0x5a3225){const _0x992f6a=_0x1657a6;this[_0x992f6a('0x1a')][_0x992f6a('0xd')](function(){return _0x5a3225();});},module['exports']={'up':function(_0x26597d,_0x2dc250){return new Promise(function(_0x5aa82d){const _0x4886d5=a947_0x1221,_0xc9a9bf=new Migration(_0x26597d);_0xc9a9bf[_0x4886d5('0x3')](_0x4886d5('0x1f')),_0xc9a9bf[_0x4886d5('0x3')](_0x4886d5('0x12')),_0xc9a9bf['query'](_0x4886d5('0x18')),_0xc9a9bf['query'](_0x4886d5('0x10')),_0xc9a9bf['query'](_0x4886d5('0x23')),_0xc9a9bf[_0x4886d5('0x3')](_0x4886d5('0x1b')),_0xc9a9bf[_0x4886d5('0x2a')](_0x4886d5('0x25'),_0x4886d5('0x14'),{'type':_0x2dc250['STRING']}),_0xc9a9bf[_0x4886d5('0x2a')](_0x4886d5('0x11'),_0x4886d5('0x15'),{'type':_0x2dc250['STRING']}),_0xc9a9bf[_0x4886d5('0x2a')](_0x4886d5('0x1'),_0x4886d5('0x1c'),{'type':_0x2dc250[_0x4886d5('0x19')]}),_0xc9a9bf[_0x4886d5('0x3')](_0x4886d5('0x6')),_0xc9a9bf[_0x4886d5('0xa')](_0x5aa82d);});},'down':function(){}};
\ No newline at end of file