70c9be860a2e95ae98f8709e003ac7ea165439ca
[motion-next.git] / server / migrations / 2.0.68.js
1 const a946_0x261d=['INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Special\x27,\x20NOW(),\x20NOW())','table\x20dropped\x20%s','removeIndex\x20%s\x20%s','final','renameColumn','addIndex\x20%s\x20%s\x20%s','exports','messagesAlignment','sequence','Removed\x20column\x20%s\x20from\x20%s','inspect','UPDATE\x20settings\x20SET\x20messagesAlignment=\x27alternate\x27','queryInterface','then','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Sold\x27,\x20NOW(),\x20NOW())','chat_interactions','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Answer\x20Machine\x27,\x20NOW(),\x20NOW())','changeColumn','catch','info','mapKey','finally','settings','query','enqueue','addColumn','stringify','prototype','STRING','addIndex','dropTable','tail','openchannel_accounts','removeIndex','Added\x20column\x20%s\x20to\x20%s','migration','sequelize','removeColumn','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Not\x20Interested\x27,\x20NOW(),\x20NOW())','query\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0xa593e,_0x261de5){const _0x157307=function(_0x1c6d14){while(--_0x1c6d14){_0xa593e['push'](_0xa593e['shift']());}};_0x157307(++_0x261de5);}(a946_0x261d,0x80));const a946_0x1573=function(_0xa593e,_0x261de5){_0xa593e=_0xa593e-0x0;let _0x157307=a946_0x261d[_0xa593e];return _0x157307;};const _0x495b95=a946_0x1573;'use strict';const util=require('util'),logger=require('../config/logger')(_0x495b95('0x1e')),Sequence=function(){};Sequence[_0x495b95('0x16')][_0x495b95('0x13')]=function(_0x1c6d14){const _0x207328=_0x495b95;this[_0x207328('0x1a')]=this[_0x207328('0x1a')]?this['tail'][_0x207328('0x10')](_0x1c6d14):_0x1c6d14();};const Migration=function(_0x39dfd1){const _0x1352c9=_0x495b95;this[_0x1352c9('0x7')]=_0x39dfd1,this[_0x1352c9('0x3')]=new Sequence();};Migration[_0x495b95('0x16')][_0x495b95('0xc')]=function(_0x5bf989,_0x1c7d6b,_0x1cd569){const _0xc86ac3=_0x495b95,_0xfee1c5=this;this[_0xc86ac3('0x3')]['enqueue'](function(){const _0x29abd6=_0xc86ac3;return _0xfee1c5[_0x29abd6('0x7')][_0x29abd6('0xc')](_0x5bf989,_0x1c7d6b,_0x1cd569)[_0x29abd6('0x8')](function(){const _0x306a1d=_0x29abd6;logger[_0x306a1d('0xe')](_0x306a1d('0x23'),_0x1c7d6b,_0x5bf989);})['catch'](function(_0xe8f722){const _0x1e09a0=_0x29abd6;logger[_0x1e09a0('0xe')](JSON[_0x1e09a0('0x15')](_0xe8f722));});});},Migration[_0x495b95('0x16')][_0x495b95('0x14')]=function(_0x1ece62,_0x1d12ee,_0x4d1867){const _0x232b26=this;this['sequence']['enqueue'](function(){const _0x386abf=a946_0x1573;return _0x232b26[_0x386abf('0x7')][_0x386abf('0x14')](_0x1ece62,_0x1d12ee,_0x4d1867)[_0x386abf('0x8')](function(){const _0x4c8d69=_0x386abf;logger[_0x4c8d69('0xe')](_0x4c8d69('0x1d'),_0x1d12ee,_0x1ece62);})[_0x386abf('0xd')](function(_0x11c7a7){const _0x4c1676=_0x386abf;logger[_0x4c1676('0xe')](JSON[_0x4c1676('0x15')](_0x11c7a7));});});},Migration[_0x495b95('0x16')][_0x495b95('0x19')]=function(_0x22aa9d){const _0x34ebd6=_0x495b95,_0x4f4123=this;this[_0x34ebd6('0x3')][_0x34ebd6('0x13')](function(){const _0x5a9964=_0x34ebd6;return _0x4f4123[_0x5a9964('0x7')][_0x5a9964('0x19')](_0x22aa9d,{'force':!![]})[_0x5a9964('0x8')](function(){const _0x885a8=_0x5a9964;logger['info'](_0x885a8('0x25'),_0x22aa9d);})[_0x5a9964('0xd')](function(_0x164860){const _0x46870a=_0x5a9964;logger['info'](JSON[_0x46870a('0x15')](_0x164860));});});},Migration[_0x495b95('0x16')][_0x495b95('0x18')]=function(_0x4a66ee,_0x1607aa,_0x5f345f){const _0x1ea0c5=_0x495b95,_0x57b784=this;this[_0x1ea0c5('0x3')][_0x1ea0c5('0x13')](function(){const _0x2bc074=_0x1ea0c5;return _0x57b784['queryInterface']['addIndex'](_0x4a66ee,_0x1607aa,{'indexName':_0x5f345f})[_0x2bc074('0x8')](function(){const _0x2d09a6=_0x2bc074;logger[_0x2d09a6('0xe')](_0x2d09a6('0x0'),_0x4a66ee,_0x1607aa['join'](','),_0x5f345f);})[_0x2bc074('0xd')](function(_0x428f72){const _0x29c999=_0x2bc074;logger[_0x29c999('0xe')](JSON[_0x29c999('0x15')](_0x428f72));});});},Migration['prototype'][_0x495b95('0x1c')]=function(_0x51d2f1,_0x193365){const _0x35453c=_0x495b95,_0x46deac=this;this[_0x35453c('0x3')][_0x35453c('0x13')](function(){const _0x3efa84=_0x35453c;return _0x46deac[_0x3efa84('0x7')][_0x3efa84('0x1c')](_0x51d2f1,_0x193365)[_0x3efa84('0x8')](function(){const _0x11932b=_0x3efa84;logger['info'](_0x11932b('0x26'),_0x51d2f1,_0x193365);})[_0x3efa84('0xd')](function(_0x1e2fe4){const _0x4e4c23=_0x3efa84;logger[_0x4e4c23('0xe')](JSON[_0x4e4c23('0x15')](_0x1e2fe4));});});},Migration[_0x495b95('0x16')][_0x495b95('0x12')]=function(_0x18af2c){const _0x5c8e93=_0x495b95,_0x163612=this;this['sequence'][_0x5c8e93('0x13')](function(){const _0x20c275=_0x5c8e93;return _0x163612['queryInterface'][_0x20c275('0x1f')]['query'](_0x18af2c)[_0x20c275('0x8')](function(){const _0x6940b2=_0x20c275;logger['info'](_0x6940b2('0x22'),_0x18af2c);})[_0x20c275('0xd')](function(_0x4ccecd){const _0x18c12b=_0x20c275;logger['info'](JSON[_0x18c12b('0x15')](_0x4ccecd));});});},Migration['prototype'][_0x495b95('0x20')]=function(_0x152f80,_0x557905){const _0x3aa1d6=_0x495b95,_0x559d5d=this;this[_0x3aa1d6('0x3')]['enqueue'](function(){const _0x264d3c=_0x3aa1d6;return _0x559d5d[_0x264d3c('0x7')][_0x264d3c('0x20')](_0x152f80,_0x557905)[_0x264d3c('0x8')](function(){const _0x5a249c=_0x264d3c;logger[_0x5a249c('0xe')](_0x5a249c('0x4'),_0x557905,_0x152f80);})[_0x264d3c('0xd')](function(_0x2512fe){logger['info'](util['inspect'](_0x2512fe,{'showHidden':![],'depth':null}));});});},Migration[_0x495b95('0x16')][_0x495b95('0x28')]=function(_0x57d33b,_0x17a57c,_0x359096){const _0xc06a8c=_0x495b95,_0x3efbf5=this;this[_0xc06a8c('0x3')][_0xc06a8c('0x13')](function(){const _0x4d349b=_0xc06a8c;return _0x3efbf5['queryInterface'][_0x4d349b('0x28')](_0x57d33b,_0x17a57c,_0x359096)[_0x4d349b('0x8')](function(){const _0x1bcc6b=_0x4d349b;logger[_0x1bcc6b('0xe')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x17a57c,_0x359096,_0x57d33b);})[_0x4d349b('0xd')](function(_0x5aaf65){const _0x38c5f1=_0x4d349b;logger[_0x38c5f1('0xe')](util[_0x38c5f1('0x5')](_0x5aaf65,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x495b95('0x27')]=function(_0x37f9bf){const _0x12381a=_0x495b95;this['sequence'][_0x12381a('0x13')](function(){return _0x37f9bf();});},module[_0x495b95('0x1')]={'up':function(_0x4c56de,_0x168ac2){return new Promise(function(_0x2b918e){const _0x1af6de=a946_0x1573,_0x15b82a=new Migration(_0x4c56de);_0x15b82a[_0x1af6de('0x12')]('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Fax\x27,\x20NOW(),\x20NOW())'),_0x15b82a[_0x1af6de('0x12')](_0x1af6de('0xb')),_0x15b82a['query']('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Interested\x27,\x20NOW(),\x20NOW())'),_0x15b82a[_0x1af6de('0x12')](_0x1af6de('0x21')),_0x15b82a[_0x1af6de('0x12')](_0x1af6de('0x9')),_0x15b82a[_0x1af6de('0x12')](_0x1af6de('0x24')),_0x15b82a[_0x1af6de('0x14')](_0x1af6de('0x1b'),_0x1af6de('0xf'),{'type':_0x168ac2[_0x1af6de('0x17')]}),_0x15b82a['addColumn'](_0x1af6de('0xa'),'closeReason',{'type':_0x168ac2[_0x1af6de('0x17')]}),_0x15b82a[_0x1af6de('0x14')](_0x1af6de('0x11'),_0x1af6de('0x2'),{'type':_0x168ac2[_0x1af6de('0x17')]}),_0x15b82a[_0x1af6de('0x12')](_0x1af6de('0x6')),_0x15b82a[_0x1af6de('0x27')](_0x2b918e);});},'down':function(){}};