Built motion from commit be44e1e4d16f8b29d243415b03d27262d8601e0e. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.7.js
index f862989..56eb674 100644 (file)
@@ -1 +1 @@
-const a980_0xf368=['INTEGER','queryInterface','table\x20dropped\x20%s','FORWARD,\x20BLIND,\x20ATTENDED','../config/logger','info','transfertype','Task','prototype','inspect','STRING','removeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','then','Case','exports','agententerreason','addIndex\x20%s\x20%s\x20%s','ENUM','renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','BOOLEAN','sequelize','tail','removeIndex','transferexten','finally','stringify','addColumn','dropTable','report_agent','enqueue','report_call','transfer','catch','migration','sequence','Added\x20column\x20%s\x20to\x20%s','final','join','ticketType','addIndex','changeColumn','Removed\x20column\x20%s\x20from\x20%s','transferuniqueid'];(function(_0x14f5c6,_0xf3682e){const _0x5b6887=function(_0xd8b6c7){while(--_0xd8b6c7){_0x14f5c6['push'](_0x14f5c6['shift']());}};_0x5b6887(++_0xf3682e);}(a980_0xf368,0xcf));const a980_0x5b68=function(_0x14f5c6,_0xf3682e){_0x14f5c6=_0x14f5c6-0x0;let _0x5b6887=a980_0xf368[_0x14f5c6];return _0x5b6887;};const _0x4ff490=a980_0x5b68;'use strict';const util=require('util'),logger=require(_0x4ff490('0x1b'))(_0x4ff490('0xd')),Sequence=function(){};Sequence['prototype'][_0x4ff490('0x9')]=function(_0xd8b6c7){const _0x210d10=_0x4ff490;this[_0x210d10('0x1')]=this[_0x210d10('0x1')]?this[_0x210d10('0x1')][_0x210d10('0x4')](_0xd8b6c7):_0xd8b6c7();};const Migration=function(_0x257a13){const _0x3c59c2=_0x4ff490;this[_0x3c59c2('0x18')]=_0x257a13,this[_0x3c59c2('0xe')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x35468a,_0x5d3e40,_0x3ba98d){const _0x2b30a2=_0x4ff490,_0x52bc45=this;this[_0x2b30a2('0xe')][_0x2b30a2('0x9')](function(){const _0x1b2d0c=_0x2b30a2;return _0x52bc45[_0x1b2d0c('0x18')][_0x1b2d0c('0x14')](_0x35468a,_0x5d3e40,_0x3ba98d)[_0x1b2d0c('0x25')](function(){const _0x33683e=_0x1b2d0c;logger[_0x33683e('0x1c')](_0x33683e('0x2c'),_0x5d3e40,_0x35468a);})[_0x1b2d0c('0xc')](function(_0x31e1f0){const _0x22b2a9=_0x1b2d0c;logger[_0x22b2a9('0x1c')](JSON['stringify'](_0x31e1f0));});});},Migration['prototype'][_0x4ff490('0x6')]=function(_0x3dd836,_0x403ede,_0x25961a){const _0x43f437=this;this['sequence']['enqueue'](function(){const _0x14a1e8=a980_0x5b68;return _0x43f437[_0x14a1e8('0x18')][_0x14a1e8('0x6')](_0x3dd836,_0x403ede,_0x25961a)[_0x14a1e8('0x25')](function(){const _0x90e8c5=_0x14a1e8;logger[_0x90e8c5('0x1c')](_0x90e8c5('0xf'),_0x403ede,_0x3dd836);})[_0x14a1e8('0xc')](function(_0x8919dc){const _0x4a4a07=_0x14a1e8;logger[_0x4a4a07('0x1c')](JSON['stringify'](_0x8919dc));});});},Migration['prototype'][_0x4ff490('0x7')]=function(_0x3522f3){const _0x35b199=this;this['sequence']['enqueue'](function(){const _0x245515=a980_0x5b68;return _0x35b199['queryInterface'][_0x245515('0x7')](_0x3522f3,{'force':!![]})[_0x245515('0x25')](function(){const _0x17e84b=_0x245515;logger[_0x17e84b('0x1c')](_0x17e84b('0x19'),_0x3522f3);})['catch'](function(_0x5900b9){const _0x570294=_0x245515;logger[_0x570294('0x1c')](JSON[_0x570294('0x5')](_0x5900b9));});});},Migration['prototype'][_0x4ff490('0x13')]=function(_0x303bff,_0xb35ed3,_0x46a08f){const _0x1cbfbb=_0x4ff490,_0x548567=this;this['sequence'][_0x1cbfbb('0x9')](function(){const _0x51111b=_0x1cbfbb;return _0x548567[_0x51111b('0x18')][_0x51111b('0x13')](_0x303bff,_0xb35ed3,{'indexName':_0x46a08f})[_0x51111b('0x25')](function(){const _0x4070f5=_0x51111b;logger[_0x4070f5('0x1c')](_0x4070f5('0x29'),_0x303bff,_0xb35ed3[_0x4070f5('0x11')](','),_0x46a08f);})['catch'](function(_0x2a57d0){const _0x1c7b2a=_0x51111b;logger['info'](JSON[_0x1c7b2a('0x5')](_0x2a57d0));});});},Migration[_0x4ff490('0x1f')]['removeIndex']=function(_0x41e6ca,_0x5a5e5a){const _0x508f92=_0x4ff490,_0x57e496=this;this[_0x508f92('0xe')]['enqueue'](function(){const _0x2220d5=_0x508f92;return _0x57e496[_0x2220d5('0x18')][_0x2220d5('0x2')](_0x41e6ca,_0x5a5e5a)[_0x2220d5('0x25')](function(){const _0x3229f7=_0x2220d5;logger[_0x3229f7('0x1c')]('removeIndex\x20%s\x20%s',_0x41e6ca,_0x5a5e5a);})[_0x2220d5('0xc')](function(_0x5eaee9){const _0x33f711=_0x2220d5;logger['info'](JSON[_0x33f711('0x5')](_0x5eaee9));});});},Migration[_0x4ff490('0x1f')][_0x4ff490('0x24')]=function(_0x5639f1){const _0x47f897=_0x4ff490,_0x1cfb6c=this;this[_0x47f897('0xe')]['enqueue'](function(){const _0x4ccadf=_0x47f897;return _0x1cfb6c['queryInterface'][_0x4ccadf('0x0')][_0x4ccadf('0x24')](_0x5639f1)[_0x4ccadf('0x25')](function(){const _0x5917e3=_0x4ccadf;logger[_0x5917e3('0x1c')]('query\x20%s',_0x5639f1);})[_0x4ccadf('0xc')](function(_0x369d55){const _0x750526=_0x4ccadf;logger[_0x750526('0x1c')](JSON[_0x750526('0x5')](_0x369d55));});});},Migration['prototype'][_0x4ff490('0x22')]=function(_0x8ff774,_0xfe4c1a){const _0x380178=_0x4ff490,_0x3d47ad=this;this['sequence'][_0x380178('0x9')](function(){const _0x2c9333=_0x380178;return _0x3d47ad[_0x2c9333('0x18')][_0x2c9333('0x22')](_0x8ff774,_0xfe4c1a)[_0x2c9333('0x25')](function(){const _0x259b28=_0x2c9333;logger[_0x259b28('0x1c')](_0x259b28('0x15'),_0xfe4c1a,_0x8ff774);})[_0x2c9333('0xc')](function(_0x5357fa){const _0xf98096=_0x2c9333;logger[_0xf98096('0x1c')](util['inspect'](_0x5357fa,{'showHidden':![],'depth':null}));});});},Migration[_0x4ff490('0x1f')][_0x4ff490('0x2b')]=function(_0x53f627,_0x150c5a,_0x472a4f){const _0x2f1c41=_0x4ff490,_0x375ef0=this;this[_0x2f1c41('0xe')][_0x2f1c41('0x9')](function(){const _0x3b5f4e=_0x2f1c41;return _0x375ef0[_0x3b5f4e('0x18')][_0x3b5f4e('0x2b')](_0x53f627,_0x150c5a,_0x472a4f)[_0x3b5f4e('0x25')](function(){const _0x7e9d5f=_0x3b5f4e;logger['info'](_0x7e9d5f('0x23'),_0x150c5a,_0x472a4f,_0x53f627);})[_0x3b5f4e('0xc')](function(_0x56d441){const _0x4babb0=_0x3b5f4e;logger[_0x4babb0('0x1c')](util[_0x4babb0('0x20')](_0x56d441,{'showHidden':![],'depth':null}));});});},Migration[_0x4ff490('0x1f')][_0x4ff490('0x10')]=function(_0x43d359){this['sequence']['enqueue'](function(){return _0x43d359();});},module[_0x4ff490('0x27')]={'up':function(_0x2f3d01,_0x1ef7a8){return new Promise(function(_0x559b47){const _0x2a4b3e=a980_0x5b68,_0x41a3d3=new Migration(_0x2f3d01);_0x41a3d3['addColumn']('report_agent',_0x2a4b3e('0xb'),{'type':_0x1ef7a8[_0x2a4b3e('0x2d')],'defaultValue':![]}),_0x41a3d3[_0x2a4b3e('0x6')](_0x2a4b3e('0x8'),_0x2a4b3e('0x1d'),{'type':_0x1ef7a8['STRING'],'comment':_0x2a4b3e('0x1a')}),_0x41a3d3['addColumn'](_0x2a4b3e('0x8'),_0x2a4b3e('0x3'),{'type':_0x1ef7a8[_0x2a4b3e('0x21')]}),_0x41a3d3['addColumn'](_0x2a4b3e('0x8'),_0x2a4b3e('0x16'),{'type':_0x1ef7a8[_0x2a4b3e('0x21')]}),_0x41a3d3[_0x2a4b3e('0x6')](_0x2a4b3e('0x8'),_0x2a4b3e('0x28'),{'type':_0x1ef7a8[_0x2a4b3e('0x17')],'defaultValue':0x0}),_0x41a3d3[_0x2a4b3e('0x6')](_0x2a4b3e('0xa'),'systemanswertime',{'type':_0x1ef7a8['DATE']}),_0x41a3d3[_0x2a4b3e('0x6')]('int_salesforce_configurations',_0x2a4b3e('0x12'),{'type':_0x1ef7a8[_0x2a4b3e('0x2a')](_0x2a4b3e('0x1e'),_0x2a4b3e('0x26')),'defaultValue':_0x2a4b3e('0x1e')}),_0x41a3d3[_0x2a4b3e('0x10')](_0x559b47);});},'down':function(){}};
\ No newline at end of file
+const a980_0x3aa4=['inspect','transfertype','enqueue','report_call','removeIndex','STRING','systemanswertime','transfer','then','Added\x20column\x20%s\x20to\x20%s','sequelize','dropTable','sequence','queryInterface','FORWARD,\x20BLIND,\x20ATTENDED','Case','query','info','addIndex\x20%s\x20%s\x20%s','removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','report_agent','catch','stringify','tail','transferexten','INTEGER','agententerreason','removeIndex\x20%s\x20%s','../config/logger','Task','table\x20dropped\x20%s','renameColumn','addIndex','finally','prototype','addColumn','join','query\x20%s','changeColumn','final','transferuniqueid','exports','Removed\x20column\x20%s\x20from\x20%s','migration'];(function(_0x40112c,_0x3aa4c6){const _0x18f5bb=function(_0x571666){while(--_0x571666){_0x40112c['push'](_0x40112c['shift']());}};_0x18f5bb(++_0x3aa4c6);}(a980_0x3aa4,0x1db));const a980_0x18f5=function(_0x40112c,_0x3aa4c6){_0x40112c=_0x40112c-0x0;let _0x18f5bb=a980_0x3aa4[_0x40112c];return _0x18f5bb;};const _0x1bcf0c=a980_0x18f5;'use strict';const util=require('util'),logger=require(_0x1bcf0c('0x4'))(_0x1bcf0c('0x13')),Sequence=function(){};Sequence['prototype'][_0x1bcf0c('0x16')]=function(_0x571666){const _0x1ed5a4=_0x1bcf0c;this[_0x1ed5a4('0x2c')]=this[_0x1ed5a4('0x2c')]?this[_0x1ed5a4('0x2c')][_0x1ed5a4('0x9')](_0x571666):_0x571666();};const Migration=function(_0x2acd89){const _0x3d3783=_0x1bcf0c;this[_0x3d3783('0x21')]=_0x2acd89,this['sequence']=new Sequence();};Migration[_0x1bcf0c('0xa')][_0x1bcf0c('0xe')]=function(_0x288627,_0x122a16,_0x363b05){const _0x1b64a2=_0x1bcf0c,_0x582231=this;this['sequence'][_0x1b64a2('0x16')](function(){const _0x263f05=_0x1b64a2;return _0x582231['queryInterface']['changeColumn'](_0x288627,_0x122a16,_0x363b05)['then'](function(){const _0x6f7ba4=a980_0x18f5;logger[_0x6f7ba4('0x25')](_0x6f7ba4('0x28'),_0x122a16,_0x288627);})[_0x263f05('0x2a')](function(_0x31c905){const _0x1236c7=_0x263f05;logger[_0x1236c7('0x25')](JSON[_0x1236c7('0x2b')](_0x31c905));});});},Migration[_0x1bcf0c('0xa')][_0x1bcf0c('0xb')]=function(_0x4f0a88,_0x5ae224,_0x433109){const _0x21cd02=_0x1bcf0c,_0x39af01=this;this[_0x21cd02('0x20')]['enqueue'](function(){const _0x40ff3e=_0x21cd02;return _0x39af01[_0x40ff3e('0x21')][_0x40ff3e('0xb')](_0x4f0a88,_0x5ae224,_0x433109)['then'](function(){const _0x6261c9=_0x40ff3e;logger[_0x6261c9('0x25')](_0x6261c9('0x1d'),_0x5ae224,_0x4f0a88);})[_0x40ff3e('0x2a')](function(_0x4a6547){const _0x1816b0=_0x40ff3e;logger['info'](JSON[_0x1816b0('0x2b')](_0x4a6547));});});},Migration['prototype'][_0x1bcf0c('0x1f')]=function(_0x3bae14){const _0x3c318a=_0x1bcf0c,_0x5be362=this;this[_0x3c318a('0x20')][_0x3c318a('0x16')](function(){const _0x244399=_0x3c318a;return _0x5be362[_0x244399('0x21')][_0x244399('0x1f')](_0x3bae14,{'force':!![]})[_0x244399('0x1c')](function(){const _0x290dd6=_0x244399;logger[_0x290dd6('0x25')](_0x290dd6('0x6'),_0x3bae14);})['catch'](function(_0x479e3f){const _0x4262a6=_0x244399;logger[_0x4262a6('0x25')](JSON[_0x4262a6('0x2b')](_0x479e3f));});});},Migration[_0x1bcf0c('0xa')][_0x1bcf0c('0x8')]=function(_0xce7dd8,_0x65dbd1,_0x462746){const _0x3b74a3=_0x1bcf0c,_0x1e260f=this;this[_0x3b74a3('0x20')]['enqueue'](function(){const _0x17749b=_0x3b74a3;return _0x1e260f[_0x17749b('0x21')]['addIndex'](_0xce7dd8,_0x65dbd1,{'indexName':_0x462746})[_0x17749b('0x1c')](function(){const _0x2382be=_0x17749b;logger['info'](_0x2382be('0x26'),_0xce7dd8,_0x65dbd1[_0x2382be('0xc')](','),_0x462746);})[_0x17749b('0x2a')](function(_0x382e2f){const _0x42b05a=_0x17749b;logger['info'](JSON[_0x42b05a('0x2b')](_0x382e2f));});});},Migration[_0x1bcf0c('0xa')]['removeIndex']=function(_0x200f8e,_0x42c1d5){const _0x2b914f=_0x1bcf0c,_0x4b8c59=this;this[_0x2b914f('0x20')][_0x2b914f('0x16')](function(){const _0x3dffd4=_0x2b914f;return _0x4b8c59['queryInterface'][_0x3dffd4('0x18')](_0x200f8e,_0x42c1d5)['then'](function(){const _0x3a390b=_0x3dffd4;logger[_0x3a390b('0x25')](_0x3a390b('0x3'),_0x200f8e,_0x42c1d5);})[_0x3dffd4('0x2a')](function(_0x609b78){const _0x53dbd0=_0x3dffd4;logger['info'](JSON[_0x53dbd0('0x2b')](_0x609b78));});});},Migration[_0x1bcf0c('0xa')]['query']=function(_0x418b9c){const _0x5d8b91=_0x1bcf0c,_0x14d4f9=this;this[_0x5d8b91('0x20')][_0x5d8b91('0x16')](function(){const _0x16aebb=_0x5d8b91;return _0x14d4f9[_0x16aebb('0x21')][_0x16aebb('0x1e')][_0x16aebb('0x24')](_0x418b9c)[_0x16aebb('0x1c')](function(){const _0x4c199a=_0x16aebb;logger[_0x4c199a('0x25')](_0x4c199a('0xd'),_0x418b9c);})[_0x16aebb('0x2a')](function(_0x3af15b){const _0x5a0530=_0x16aebb;logger['info'](JSON[_0x5a0530('0x2b')](_0x3af15b));});});},Migration[_0x1bcf0c('0xa')][_0x1bcf0c('0x27')]=function(_0x475e32,_0x1c287b){const _0x33c793=_0x1bcf0c,_0x1e6100=this;this[_0x33c793('0x20')][_0x33c793('0x16')](function(){const _0x4a4ee4=_0x33c793;return _0x1e6100['queryInterface'][_0x4a4ee4('0x27')](_0x475e32,_0x1c287b)[_0x4a4ee4('0x1c')](function(){const _0x4c6ed2=_0x4a4ee4;logger[_0x4c6ed2('0x25')](_0x4c6ed2('0x12'),_0x1c287b,_0x475e32);})[_0x4a4ee4('0x2a')](function(_0x15e046){const _0x5bb63a=_0x4a4ee4;logger[_0x5bb63a('0x25')](util[_0x5bb63a('0x14')](_0x15e046,{'showHidden':![],'depth':null}));});});},Migration[_0x1bcf0c('0xa')][_0x1bcf0c('0x7')]=function(_0x1e7f2b,_0x287092,_0x212481){const _0xe0db10=_0x1bcf0c,_0x3f59d7=this;this[_0xe0db10('0x20')][_0xe0db10('0x16')](function(){const _0x458b9b=_0xe0db10;return _0x3f59d7[_0x458b9b('0x21')]['renameColumn'](_0x1e7f2b,_0x287092,_0x212481)[_0x458b9b('0x1c')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x287092,_0x212481,_0x1e7f2b);})['catch'](function(_0x2f6648){const _0x42f2c4=_0x458b9b;logger[_0x42f2c4('0x25')](util[_0x42f2c4('0x14')](_0x2f6648,{'showHidden':![],'depth':null}));});});},Migration[_0x1bcf0c('0xa')]['final']=function(_0x4a2158){const _0x24b8dd=_0x1bcf0c;this['sequence'][_0x24b8dd('0x16')](function(){return _0x4a2158();});},module[_0x1bcf0c('0x11')]={'up':function(_0x143428,_0x1374aa){return new Promise(function(_0x39f77){const _0x8711be=a980_0x18f5,_0x5bded1=new Migration(_0x143428);_0x5bded1[_0x8711be('0xb')]('report_agent',_0x8711be('0x1b'),{'type':_0x1374aa['BOOLEAN'],'defaultValue':![]}),_0x5bded1['addColumn']('report_agent',_0x8711be('0x15'),{'type':_0x1374aa['STRING'],'comment':_0x8711be('0x22')}),_0x5bded1[_0x8711be('0xb')](_0x8711be('0x29'),_0x8711be('0x0'),{'type':_0x1374aa[_0x8711be('0x19')]}),_0x5bded1[_0x8711be('0xb')]('report_agent',_0x8711be('0x10'),{'type':_0x1374aa[_0x8711be('0x19')]}),_0x5bded1['addColumn']('report_agent',_0x8711be('0x2'),{'type':_0x1374aa[_0x8711be('0x1')],'defaultValue':0x0}),_0x5bded1[_0x8711be('0xb')](_0x8711be('0x17'),_0x8711be('0x1a'),{'type':_0x1374aa['DATE']}),_0x5bded1[_0x8711be('0xb')]('int_salesforce_configurations','ticketType',{'type':_0x1374aa['ENUM'](_0x8711be('0x5'),_0x8711be('0x23')),'defaultValue':_0x8711be('0x5')}),_0x5bded1[_0x8711be('0xf')](_0x39f77);});},'down':function(){}};
\ No newline at end of file