Built motion from commit f651e4b0a7312c0adceb5e57d6684a801a3aaf0d. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.7.js
1 const a980_0x5a24=['queryInterface','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','addColumn','info','then','Added\x20column\x20%s\x20to\x20%s','removeIndex\x20%s\x20%s','ticketType','INTEGER','table\x20dropped\x20%s','exports','enqueue','addIndex\x20%s\x20%s\x20%s','sequence','prototype','query\x20%s','report_agent','finally','transferuniqueid','stringify','migration','Removed\x20column\x20%s\x20from\x20%s','agententerreason','Task','query','dropTable','renameColumn','STRING','removeIndex','changeColumn','final','transferexten','inspect','addIndex','DATE','report_call','transfer','util'];(function(_0x1dc13b,_0x5a2418){const _0x314140=function(_0x48e210){while(--_0x48e210){_0x1dc13b['push'](_0x1dc13b['shift']());}};_0x314140(++_0x5a2418);}(a980_0x5a24,0xac));const a980_0x3141=function(_0x1dc13b,_0x5a2418){_0x1dc13b=_0x1dc13b-0x0;let _0x314140=a980_0x5a24[_0x1dc13b];return _0x314140;};const _0x400ca9=a980_0x3141;'use strict';const util=require(_0x400ca9('0x16')),logger=require('../config/logger')(_0x400ca9('0x5')),Sequence=function(){};Sequence[_0x400ca9('0x26')][_0x400ca9('0x23')]=function(_0x48e210){const _0xc6ea99=_0x400ca9;this['tail']=this['tail']?this['tail'][_0xc6ea99('0x2')](_0x48e210):_0x48e210();};const Migration=function(_0x360fe2){this['queryInterface']=_0x360fe2,this['sequence']=new Sequence();};Migration[_0x400ca9('0x26')][_0x400ca9('0xe')]=function(_0xeeaa40,_0x1cff78,_0x1dc994){const _0x4a08dd=_0x400ca9,_0x12fff7=this;this[_0x4a08dd('0x25')][_0x4a08dd('0x23')](function(){const _0x1b4794=_0x4a08dd;return _0x12fff7[_0x1b4794('0x17')][_0x1b4794('0xe')](_0xeeaa40,_0x1cff78,_0x1dc994)[_0x1b4794('0x1c')](function(){const _0xf5cabc=_0x1b4794;logger[_0xf5cabc('0x1b')](_0xf5cabc('0x19'),_0x1cff78,_0xeeaa40);})['catch'](function(_0x224f4a){const _0x5e2411=_0x1b4794;logger[_0x5e2411('0x1b')](JSON[_0x5e2411('0x4')](_0x224f4a));});});},Migration[_0x400ca9('0x26')]['addColumn']=function(_0x250120,_0x81a7cc,_0x551806){const _0x3ce3c0=_0x400ca9,_0xee5416=this;this[_0x3ce3c0('0x25')][_0x3ce3c0('0x23')](function(){const _0x4338fb=_0x3ce3c0;return _0xee5416[_0x4338fb('0x17')][_0x4338fb('0x1a')](_0x250120,_0x81a7cc,_0x551806)[_0x4338fb('0x1c')](function(){const _0x407339=_0x4338fb;logger['info'](_0x407339('0x1d'),_0x81a7cc,_0x250120);})[_0x4338fb('0x18')](function(_0x3b0379){const _0x1098e6=_0x4338fb;logger[_0x1098e6('0x1b')](JSON['stringify'](_0x3b0379));});});},Migration['prototype'][_0x400ca9('0xa')]=function(_0x5e0874){const _0x531793=_0x400ca9,_0x3ce277=this;this[_0x531793('0x25')][_0x531793('0x23')](function(){const _0x1abbba=_0x531793;return _0x3ce277[_0x1abbba('0x17')][_0x1abbba('0xa')](_0x5e0874,{'force':!![]})[_0x1abbba('0x1c')](function(){const _0x58c313=_0x1abbba;logger['info'](_0x58c313('0x21'),_0x5e0874);})[_0x1abbba('0x18')](function(_0x11a0df){const _0x385cab=_0x1abbba;logger[_0x385cab('0x1b')](JSON[_0x385cab('0x4')](_0x11a0df));});});},Migration['prototype'][_0x400ca9('0x12')]=function(_0x59f480,_0x565d16,_0x236129){const _0x2197eb=_0x400ca9,_0x55f216=this;this[_0x2197eb('0x25')][_0x2197eb('0x23')](function(){const _0x5612b4=_0x2197eb;return _0x55f216[_0x5612b4('0x17')][_0x5612b4('0x12')](_0x59f480,_0x565d16,{'indexName':_0x236129})[_0x5612b4('0x1c')](function(){const _0x10bf1c=_0x5612b4;logger['info'](_0x10bf1c('0x24'),_0x59f480,_0x565d16['join'](','),_0x236129);})[_0x5612b4('0x18')](function(_0x2ee5d8){const _0x127c33=_0x5612b4;logger[_0x127c33('0x1b')](JSON[_0x127c33('0x4')](_0x2ee5d8));});});},Migration[_0x400ca9('0x26')][_0x400ca9('0xd')]=function(_0x1362c0,_0x2a8a98){const _0x2fdda9=_0x400ca9,_0x3f4db4=this;this[_0x2fdda9('0x25')]['enqueue'](function(){const _0x13a1ed=_0x2fdda9;return _0x3f4db4[_0x13a1ed('0x17')][_0x13a1ed('0xd')](_0x1362c0,_0x2a8a98)['then'](function(){const _0x209aa9=_0x13a1ed;logger[_0x209aa9('0x1b')](_0x209aa9('0x1e'),_0x1362c0,_0x2a8a98);})[_0x13a1ed('0x18')](function(_0x3b481e){const _0x3e4760=_0x13a1ed;logger[_0x3e4760('0x1b')](JSON['stringify'](_0x3b481e));});});},Migration[_0x400ca9('0x26')][_0x400ca9('0x9')]=function(_0xcf4029){const _0x14d660=_0x400ca9,_0x53cc4a=this;this[_0x14d660('0x25')][_0x14d660('0x23')](function(){const _0x280edc=_0x14d660;return _0x53cc4a[_0x280edc('0x17')]['sequelize'][_0x280edc('0x9')](_0xcf4029)[_0x280edc('0x1c')](function(){const _0x30b2df=_0x280edc;logger[_0x30b2df('0x1b')](_0x30b2df('0x0'),_0xcf4029);})[_0x280edc('0x18')](function(_0x4862a2){const _0x18220b=_0x280edc;logger[_0x18220b('0x1b')](JSON[_0x18220b('0x4')](_0x4862a2));});});},Migration[_0x400ca9('0x26')]['removeColumn']=function(_0x1aecf6,_0xb65496){const _0xaf288b=_0x400ca9,_0x13f114=this;this['sequence'][_0xaf288b('0x23')](function(){const _0x5a256b=_0xaf288b;return _0x13f114[_0x5a256b('0x17')]['removeColumn'](_0x1aecf6,_0xb65496)['then'](function(){const _0x46a7ab=_0x5a256b;logger[_0x46a7ab('0x1b')](_0x46a7ab('0x6'),_0xb65496,_0x1aecf6);})[_0x5a256b('0x18')](function(_0xc9107a){const _0x396d0a=_0x5a256b;logger['info'](util[_0x396d0a('0x11')](_0xc9107a,{'showHidden':![],'depth':null}));});});},Migration[_0x400ca9('0x26')][_0x400ca9('0xb')]=function(_0x54f5c6,_0x2b5a4d,_0x45120e){const _0x4ecb03=_0x400ca9,_0x4747a1=this;this[_0x4ecb03('0x25')][_0x4ecb03('0x23')](function(){const _0x55f4cb=_0x4ecb03;return _0x4747a1['queryInterface'][_0x55f4cb('0xb')](_0x54f5c6,_0x2b5a4d,_0x45120e)[_0x55f4cb('0x1c')](function(){const _0x5871ad=_0x55f4cb;logger[_0x5871ad('0x1b')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x2b5a4d,_0x45120e,_0x54f5c6);})[_0x55f4cb('0x18')](function(_0x416f0a){logger['info'](util['inspect'](_0x416f0a,{'showHidden':![],'depth':null}));});});},Migration[_0x400ca9('0x26')][_0x400ca9('0xf')]=function(_0x1e7a19){const _0x5b7c65=_0x400ca9;this[_0x5b7c65('0x25')]['enqueue'](function(){return _0x1e7a19();});},module[_0x400ca9('0x22')]={'up':function(_0x323ebd,_0x57d45b){return new Promise(function(_0x2ba5dc){const _0x32294f=a980_0x3141,_0x20da8d=new Migration(_0x323ebd);_0x20da8d['addColumn'](_0x32294f('0x1'),_0x32294f('0x15'),{'type':_0x57d45b['BOOLEAN'],'defaultValue':![]}),_0x20da8d['addColumn'](_0x32294f('0x1'),'transfertype',{'type':_0x57d45b[_0x32294f('0xc')],'comment':'FORWARD,\x20BLIND,\x20ATTENDED'}),_0x20da8d[_0x32294f('0x1a')]('report_agent',_0x32294f('0x10'),{'type':_0x57d45b[_0x32294f('0xc')]}),_0x20da8d['addColumn'](_0x32294f('0x1'),_0x32294f('0x3'),{'type':_0x57d45b[_0x32294f('0xc')]}),_0x20da8d[_0x32294f('0x1a')](_0x32294f('0x1'),_0x32294f('0x7'),{'type':_0x57d45b[_0x32294f('0x20')],'defaultValue':0x0}),_0x20da8d['addColumn'](_0x32294f('0x14'),'systemanswertime',{'type':_0x57d45b[_0x32294f('0x13')]}),_0x20da8d[_0x32294f('0x1a')]('int_salesforce_configurations',_0x32294f('0x1f'),{'type':_0x57d45b['ENUM'](_0x32294f('0x8'),'Case'),'defaultValue':_0x32294f('0x8')}),_0x20da8d[_0x32294f('0xf')](_0x2ba5dc);});},'down':function(){}};