Built motion from commit b517aaa2a6638133380e4d135c64a80893061362. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.30.js
index f62fa39..1fa6ec0 100644 (file)
@@ -1 +1 @@
-const a909_0x5e41=['table\x20dropped\x20%s','info','user_has_chat_interactions','enqueue','addColumn','INTEGER','stringify','chat_enquiries','finally','changeColumn','then','join','query','dropTable','Added\x20column\x20%s\x20to\x20%s','addIndex','prototype','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','chat_applications','query\x20%s','chat_websites','queryInterface','final','chat_websites_fields','user_has_chat_queues','catch','chat_visitors','exports','UNSIGNED','chat_proactive_actions','sequence','team_has_chat_queues','chat_interactions','dialQueueTimeout','migration'];(function(_0x54d8a8,_0x5e4160){const _0x689a61=function(_0x1421fc){while(--_0x1421fc){_0x54d8a8['push'](_0x54d8a8['shift']());}};_0x689a61(++_0x5e4160);}(a909_0x5e41,0x11f));const a909_0x689a=function(_0x54d8a8,_0x5e4160){_0x54d8a8=_0x54d8a8-0x0;let _0x689a61=a909_0x5e41[_0x54d8a8];return _0x689a61;};const _0x294541=a909_0x689a;'use strict';const logger=require('../config/logger')(_0x294541('0x0')),Sequence=function(){};Sequence[_0x294541('0x11')]['enqueue']=function(_0x1421fc){const _0x309f65=_0x294541;this['tail']=this[_0x309f65('0x12')]?this[_0x309f65('0x12')][_0x309f65('0x9')](_0x1421fc):_0x1421fc();};const Migration=function(_0x2dffc9){const _0x362ccb=_0x294541;this[_0x362ccb('0x17')]=_0x2dffc9,this[_0x362ccb('0x20')]=new Sequence();};Migration[_0x294541('0x11')]['changeColumn']=function(_0x51472d,_0x5a1aa7,_0x59f7eb){const _0x1cc676=_0x294541,_0x5e95ff=this;this[_0x1cc676('0x20')][_0x1cc676('0x4')](function(){const _0x2ad12a=_0x1cc676;return _0x5e95ff[_0x2ad12a('0x17')][_0x2ad12a('0xa')](_0x51472d,_0x5a1aa7,_0x59f7eb)[_0x2ad12a('0xb')](function(){const _0xc88479=_0x2ad12a;logger[_0xc88479('0x2')](_0xc88479('0x13'),_0x5a1aa7,_0x51472d);})['catch'](function(_0x50c495){const _0xd3e037=_0x2ad12a;logger[_0xd3e037('0x2')](JSON[_0xd3e037('0x7')](_0x50c495));});});},Migration[_0x294541('0x11')][_0x294541('0x5')]=function(_0x95d779,_0x42cccc,_0x1830a9){const _0x593887=_0x294541,_0x47911b=this;this[_0x593887('0x20')][_0x593887('0x4')](function(){const _0x35fe10=_0x593887;return _0x47911b[_0x35fe10('0x17')][_0x35fe10('0x5')](_0x95d779,_0x42cccc,_0x1830a9)[_0x35fe10('0xb')](function(){const _0x5c7905=_0x35fe10;logger[_0x5c7905('0x2')](_0x5c7905('0xf'),_0x42cccc,_0x95d779);})['catch'](function(_0x13cea4){const _0x2a4547=_0x35fe10;logger['info'](JSON[_0x2a4547('0x7')](_0x13cea4));});});},Migration[_0x294541('0x11')]['dropTable']=function(_0xfc7dc2){const _0x443acb=_0x294541,_0x235366=this;this[_0x443acb('0x20')]['enqueue'](function(){const _0x3b9c0b=_0x443acb;return _0x235366['queryInterface'][_0x3b9c0b('0xe')](_0xfc7dc2,{'force':!![]})[_0x3b9c0b('0xb')](function(){const _0x30ad1f=_0x3b9c0b;logger[_0x30ad1f('0x2')](_0x30ad1f('0x1'),_0xfc7dc2);})['catch'](function(_0x3f0872){const _0x521c80=_0x3b9c0b;logger[_0x521c80('0x2')](JSON[_0x521c80('0x7')](_0x3f0872));});});},Migration[_0x294541('0x11')][_0x294541('0x10')]=function(_0x68bbdf,_0xbac553,_0xd3234){const _0x3e8c10=this;this['sequence']['enqueue'](function(){const _0x41a96f=a909_0x689a;return _0x3e8c10[_0x41a96f('0x17')][_0x41a96f('0x10')](_0x68bbdf,_0xbac553,{'indexName':_0xd3234})['then'](function(){const _0x2b46e0=_0x41a96f;logger[_0x2b46e0('0x2')]('addIndex\x20%s\x20%s\x20%s',_0x68bbdf,_0xbac553[_0x2b46e0('0xc')](','),_0xd3234);})['catch'](function(_0x2c62bf){const _0x52eaad=_0x41a96f;logger[_0x52eaad('0x2')](JSON['stringify'](_0x2c62bf));});});},Migration[_0x294541('0x11')][_0x294541('0xd')]=function(_0x4d5aa6){const _0xa096c6=_0x294541,_0x5b926e=this;this[_0xa096c6('0x20')][_0xa096c6('0x4')](function(){const _0x91d7d=_0xa096c6;return _0x5b926e[_0x91d7d('0x17')]['sequelize'][_0x91d7d('0xd')](_0x4d5aa6)[_0x91d7d('0xb')](function(){const _0x495a13=_0x91d7d;logger['info'](_0x495a13('0x15'),_0x4d5aa6);})[_0x91d7d('0x1b')](function(_0x1daa5a){const _0x568ee1=_0x91d7d;logger[_0x568ee1('0x2')](JSON['stringify'](_0x1daa5a));});});},Migration[_0x294541('0x11')][_0x294541('0x18')]=function(_0x5b420a){const _0x16110b=_0x294541;this[_0x16110b('0x20')][_0x16110b('0x4')](function(){return _0x5b420a();});},module[_0x294541('0x1d')]={'up':function(_0x7e3c83,_0x1861c6){return new Promise(function(_0x252642){const _0x38064d=a909_0x689a,_0x207c69=new Migration(_0x7e3c83);_0x207c69[_0x38064d('0xe')]('user_has_chat_rooms'),_0x207c69[_0x38064d('0xe')](_0x38064d('0x8')),_0x207c69[_0x38064d('0xe')]('chat_messages'),_0x207c69[_0x38064d('0xe')](_0x38064d('0x1f')),_0x207c69[_0x38064d('0xe')]('chat_dispositions'),_0x207c69[_0x38064d('0xe')](_0x38064d('0x14')),_0x207c69[_0x38064d('0xe')](_0x38064d('0x3')),_0x207c69[_0x38064d('0xe')](_0x38064d('0x22')),_0x207c69[_0x38064d('0xe')](_0x38064d('0x21')),_0x207c69[_0x38064d('0xe')](_0x38064d('0x1a')),_0x207c69[_0x38064d('0xe')]('chat_queues'),_0x207c69[_0x38064d('0xe')](_0x38064d('0x1c')),_0x207c69['dropTable'](_0x38064d('0x19')),_0x207c69[_0x38064d('0xe')](_0x38064d('0x16')),_0x207c69[_0x38064d('0xa')]('voice_queues',_0x38064d('0x23'),{'type':_0x1861c6[_0x38064d('0x6')](0x3)[_0x38064d('0x1e')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)'}),_0x207c69[_0x38064d('0x18')](_0x252642);});},'down':function(){}};
\ No newline at end of file
+const a909_0x4fad=['query\x20%s','INTEGER','dropTable','addIndex','queryInterface','addIndex\x20%s\x20%s\x20%s','stringify','Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','chat_websites_fields','sequence','final','addColumn','chat_proactive_actions','changeColumn','join','then','migration','table\x20dropped\x20%s','user_has_chat_rooms','chat_queues','user_has_chat_interactions','chat_enquiries','enqueue','tail','catch','info','Added\x20column\x20%s\x20to\x20%s','voice_queues','prototype','UNSIGNED','chat_visitors','chat_applications','chat_interactions','sequelize','exports','chat_websites','user_has_chat_queues','query','dialQueueTimeout'];(function(_0x33ea14,_0x4fad49){const _0x2f482e=function(_0x24caab){while(--_0x24caab){_0x33ea14['push'](_0x33ea14['shift']());}};_0x2f482e(++_0x4fad49);}(a909_0x4fad,0xf2));const a909_0x2f48=function(_0x33ea14,_0x4fad49){_0x33ea14=_0x33ea14-0x0;let _0x2f482e=a909_0x4fad[_0x33ea14];return _0x2f482e;};const _0x40cf93=a909_0x2f48;'use strict';const logger=require('../config/logger')(_0x40cf93('0x8')),Sequence=function(){};Sequence[_0x40cf93('0x14')][_0x40cf93('0xe')]=function(_0x24caab){const _0x73ea90=_0x40cf93;this[_0x73ea90('0xf')]=this[_0x73ea90('0xf')]?this[_0x73ea90('0xf')]['finally'](_0x24caab):_0x24caab();};const Migration=function(_0x4cf33e){const _0x5950e5=_0x40cf93;this[_0x5950e5('0x23')]=_0x4cf33e,this['sequence']=new Sequence();};Migration[_0x40cf93('0x14')][_0x40cf93('0x5')]=function(_0x180e91,_0x532ebd,_0x5e2ae4){const _0x21895d=_0x40cf93,_0x3b6d5f=this;this['sequence'][_0x21895d('0xe')](function(){const _0x2b3e05=_0x21895d;return _0x3b6d5f[_0x2b3e05('0x23')][_0x2b3e05('0x5')](_0x180e91,_0x532ebd,_0x5e2ae4)['then'](function(){const _0x8749b8=_0x2b3e05;logger[_0x8749b8('0x11')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x532ebd,_0x180e91);})[_0x2b3e05('0x10')](function(_0x3b174c){const _0x3ad97d=_0x2b3e05;logger['info'](JSON[_0x3ad97d('0x25')](_0x3b174c));});});},Migration['prototype'][_0x40cf93('0x3')]=function(_0x302913,_0x4f3178,_0x18b371){const _0xb5216c=_0x40cf93,_0x67efcc=this;this['sequence'][_0xb5216c('0xe')](function(){const _0x4516df=_0xb5216c;return _0x67efcc[_0x4516df('0x23')][_0x4516df('0x3')](_0x302913,_0x4f3178,_0x18b371)[_0x4516df('0x7')](function(){const _0x1434f6=_0x4516df;logger['info'](_0x1434f6('0x12'),_0x4f3178,_0x302913);})[_0x4516df('0x10')](function(_0x2c4690){const _0x524444=_0x4516df;logger[_0x524444('0x11')](JSON[_0x524444('0x25')](_0x2c4690));});});},Migration[_0x40cf93('0x14')][_0x40cf93('0x21')]=function(_0x32f6b8){const _0x3c47ed=_0x40cf93,_0x5892c2=this;this['sequence'][_0x3c47ed('0xe')](function(){const _0x3e6244=_0x3c47ed;return _0x5892c2[_0x3e6244('0x23')][_0x3e6244('0x21')](_0x32f6b8,{'force':!![]})[_0x3e6244('0x7')](function(){const _0x3e3d7e=_0x3e6244;logger[_0x3e3d7e('0x11')](_0x3e3d7e('0x9'),_0x32f6b8);})[_0x3e6244('0x10')](function(_0x8d70c7){const _0x5182f1=_0x3e6244;logger[_0x5182f1('0x11')](JSON['stringify'](_0x8d70c7));});});},Migration[_0x40cf93('0x14')][_0x40cf93('0x22')]=function(_0x93cd0,_0x21df35,_0x18b866){const _0x1b0996=_0x40cf93,_0x25acef=this;this[_0x1b0996('0x1')][_0x1b0996('0xe')](function(){const _0xf7ad96=_0x1b0996;return _0x25acef[_0xf7ad96('0x23')][_0xf7ad96('0x22')](_0x93cd0,_0x21df35,{'indexName':_0x18b866})['then'](function(){const _0x1d6c76=_0xf7ad96;logger['info'](_0x1d6c76('0x24'),_0x93cd0,_0x21df35[_0x1d6c76('0x6')](','),_0x18b866);})[_0xf7ad96('0x10')](function(_0x4e53f0){const _0x33443b=_0xf7ad96;logger[_0x33443b('0x11')](JSON[_0x33443b('0x25')](_0x4e53f0));});});},Migration[_0x40cf93('0x14')][_0x40cf93('0x1d')]=function(_0x5f14c5){const _0x37cbd5=_0x40cf93,_0x4e8799=this;this[_0x37cbd5('0x1')][_0x37cbd5('0xe')](function(){const _0x363212=_0x37cbd5;return _0x4e8799['queryInterface'][_0x363212('0x19')]['query'](_0x5f14c5)[_0x363212('0x7')](function(){const _0x52daf9=_0x363212;logger[_0x52daf9('0x11')](_0x52daf9('0x1f'),_0x5f14c5);})[_0x363212('0x10')](function(_0x5ed8fe){const _0x88651b=_0x363212;logger[_0x88651b('0x11')](JSON['stringify'](_0x5ed8fe));});});},Migration['prototype'][_0x40cf93('0x2')]=function(_0x2d1c71){const _0x8548ca=_0x40cf93;this[_0x8548ca('0x1')][_0x8548ca('0xe')](function(){return _0x2d1c71();});},module[_0x40cf93('0x1a')]={'up':function(_0x1411b3,_0x251ee3){return new Promise(function(_0x256063){const _0x2545d9=a909_0x2f48,_0x3568dc=new Migration(_0x1411b3);_0x3568dc[_0x2545d9('0x21')](_0x2545d9('0xa')),_0x3568dc[_0x2545d9('0x21')](_0x2545d9('0xd')),_0x3568dc[_0x2545d9('0x21')]('chat_messages'),_0x3568dc[_0x2545d9('0x21')](_0x2545d9('0x4')),_0x3568dc['dropTable']('chat_dispositions'),_0x3568dc[_0x2545d9('0x21')](_0x2545d9('0x17')),_0x3568dc[_0x2545d9('0x21')](_0x2545d9('0xc')),_0x3568dc[_0x2545d9('0x21')](_0x2545d9('0x18')),_0x3568dc['dropTable']('team_has_chat_queues'),_0x3568dc['dropTable'](_0x2545d9('0x1c')),_0x3568dc[_0x2545d9('0x21')](_0x2545d9('0xb')),_0x3568dc['dropTable'](_0x2545d9('0x16')),_0x3568dc['dropTable'](_0x2545d9('0x0')),_0x3568dc['dropTable'](_0x2545d9('0x1b')),_0x3568dc['changeColumn'](_0x2545d9('0x13'),_0x2545d9('0x1e'),{'type':_0x251ee3[_0x2545d9('0x20')](0x3)[_0x2545d9('0x15')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x2545d9('0x26')}),_0x3568dc[_0x2545d9('0x2')](_0x256063);});},'down':function(){}};
\ No newline at end of file