Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.41.js
index 3b0712d..430f3bb 100644 (file)
@@ -1 +1 @@
-const a920_0x5e2e=['STRING','long','tail','formData','sequelize','dropTable','addIndex\x20%s\x20%s\x20%s','sequence','prototype','TEXT','query','query\x20%s','../config/logger','removeColumn','join','addColumn','catch','table\x20dropped\x20%s','chat_websites','stringify','addIndex','BOOLEAN','agentAvatar','finally','util','changeColumn','final','enqueue','Removed\x20column\x20%s\x20from\x20%s','queryInterface','Changed\x20column\x20%s\x20in\x20table\x20%s','then','info','cm_custom_fields'];(function(_0x59d0c2,_0x5e2e6b){const _0x153c7b=function(_0x1e9f6b){while(--_0x1e9f6b){_0x59d0c2['push'](_0x59d0c2['shift']());}};_0x153c7b(++_0x5e2e6b);}(a920_0x5e2e,0x178));const a920_0x153c=function(_0x59d0c2,_0x5e2e6b){_0x59d0c2=_0x59d0c2-0x0;let _0x153c7b=a920_0x5e2e[_0x59d0c2];return _0x153c7b;};const _0x46fed8=a920_0x153c;'use strict';const logger=require(_0x46fed8('0xa'))('migration'),util=require(_0x46fed8('0x16')),Sequence=function(){};Sequence[_0x46fed8('0x6')]['enqueue']=function(_0x1e9f6b){const _0x5010e6=_0x46fed8;this[_0x5010e6('0x0')]=this['tail']?this[_0x5010e6('0x0')][_0x5010e6('0x15')](_0x1e9f6b):_0x1e9f6b();};const Migration=function(_0x516ff3){const _0xb8e52f=_0x46fed8;this[_0xb8e52f('0x1b')]=_0x516ff3,this['sequence']=new Sequence();};Migration[_0x46fed8('0x6')][_0x46fed8('0x17')]=function(_0x27a7a9,_0x12fc44,_0x3665db){const _0x2facd9=_0x46fed8,_0x1a0dc9=this;this['sequence'][_0x2facd9('0x19')](function(){const _0x20eac4=_0x2facd9;return _0x1a0dc9[_0x20eac4('0x1b')][_0x20eac4('0x17')](_0x27a7a9,_0x12fc44,_0x3665db)[_0x20eac4('0x1d')](function(){const _0x15287b=_0x20eac4;logger[_0x15287b('0x1e')](_0x15287b('0x1c'),_0x12fc44,_0x27a7a9);})[_0x20eac4('0xe')](function(_0x26b238){const _0x58cce1=_0x20eac4;logger['info'](JSON[_0x58cce1('0x11')](_0x26b238));});});},Migration[_0x46fed8('0x6')][_0x46fed8('0xd')]=function(_0xea94ec,_0xe9eac5,_0x19981f){const _0x30fd96=_0x46fed8,_0x16b217=this;this[_0x30fd96('0x5')][_0x30fd96('0x19')](function(){const _0x4810ba=_0x30fd96;return _0x16b217['queryInterface']['addColumn'](_0xea94ec,_0xe9eac5,_0x19981f)[_0x4810ba('0x1d')](function(){const _0xb99f38=_0x4810ba;logger[_0xb99f38('0x1e')]('Added\x20column\x20%s\x20to\x20%s',_0xe9eac5,_0xea94ec);})[_0x4810ba('0xe')](function(_0x273ecc){const _0x1b5109=_0x4810ba;logger[_0x1b5109('0x1e')](JSON[_0x1b5109('0x11')](_0x273ecc));});});},Migration[_0x46fed8('0x6')][_0x46fed8('0x3')]=function(_0x5bd0e5){const _0x5c092a=_0x46fed8,_0x38a6e1=this;this[_0x5c092a('0x5')]['enqueue'](function(){const _0x13822c=_0x5c092a;return _0x38a6e1['queryInterface'][_0x13822c('0x3')](_0x5bd0e5,{'force':!![]})[_0x13822c('0x1d')](function(){const _0x363f4e=_0x13822c;logger[_0x363f4e('0x1e')](_0x363f4e('0xf'),_0x5bd0e5);})[_0x13822c('0xe')](function(_0x28742d){const _0x36548e=_0x13822c;logger[_0x36548e('0x1e')](JSON['stringify'](_0x28742d));});});},Migration['prototype'][_0x46fed8('0x12')]=function(_0x325377,_0x26fd80,_0x402732){const _0x295b3a=_0x46fed8,_0x111722=this;this[_0x295b3a('0x5')][_0x295b3a('0x19')](function(){const _0x567e8e=_0x295b3a;return _0x111722[_0x567e8e('0x1b')][_0x567e8e('0x12')](_0x325377,_0x26fd80,{'indexName':_0x402732})['then'](function(){const _0x428b2a=_0x567e8e;logger[_0x428b2a('0x1e')](_0x428b2a('0x4'),_0x325377,_0x26fd80[_0x428b2a('0xc')](','),_0x402732);})[_0x567e8e('0xe')](function(_0x500c45){logger['info'](JSON['stringify'](_0x500c45));});});},Migration['prototype'][_0x46fed8('0x8')]=function(_0xc14131){const _0x540f6d=_0x46fed8,_0x187cc8=this;this['sequence'][_0x540f6d('0x19')](function(){const _0x4b8248=_0x540f6d;return _0x187cc8[_0x4b8248('0x1b')][_0x4b8248('0x2')][_0x4b8248('0x8')](_0xc14131)[_0x4b8248('0x1d')](function(){const _0x529e03=_0x4b8248;logger[_0x529e03('0x1e')](_0x529e03('0x9'),_0xc14131);})['catch'](function(_0x48c952){const _0x35385a=_0x4b8248;logger[_0x35385a('0x1e')](JSON[_0x35385a('0x11')](_0x48c952));});});},Migration[_0x46fed8('0x6')][_0x46fed8('0xb')]=function(_0x79dbcf,_0x5edf42){const _0xdf4422=_0x46fed8,_0x3a294b=this;this['sequence'][_0xdf4422('0x19')](function(){const _0x2682f7=_0xdf4422;return _0x3a294b[_0x2682f7('0x1b')][_0x2682f7('0xb')](_0x79dbcf,_0x5edf42)[_0x2682f7('0x1d')](function(){const _0x3b872d=_0x2682f7;logger[_0x3b872d('0x1e')](_0x3b872d('0x1a'),_0x5edf42,_0x79dbcf);})[_0x2682f7('0xe')](function(_0x58f8d3){logger['info'](util['inspect'](_0x58f8d3,{'showHidden':![],'depth':null}));});});},Migration[_0x46fed8('0x6')][_0x46fed8('0x18')]=function(_0x3943bd){const _0x2f2ec8=_0x46fed8;this[_0x2f2ec8('0x5')]['enqueue'](function(){return _0x3943bd();});},module['exports']={'up':function(_0x23338e,_0x153ba0){return new Promise(function(_0x546923){const _0x2e388c=a920_0x153c,_0x5a422f=new Migration(_0x23338e);_0x5a422f['addColumn']('int_desk_accounts','serverUrl',{'type':_0x153ba0[_0x2e388c('0x20')]}),_0x5a422f['addColumn']('chat_interactions',_0x2e388c('0x1'),{'type':_0x153ba0['TEXT'](_0x2e388c('0x21'))}),_0x5a422f['addColumn']('chat_messages','secret',{'type':_0x153ba0[_0x2e388c('0x13')],'defaultValue':![]}),_0x5a422f[_0x2e388c('0xd')](_0x2e388c('0x10'),_0x2e388c('0x14'),{'type':_0x153ba0[_0x2e388c('0x7')]}),_0x5a422f[_0x2e388c('0xd')](_0x2e388c('0x10'),'showAgentAvatar',{'type':_0x153ba0[_0x2e388c('0x13')],'defaultValue':![]}),_0x5a422f[_0x2e388c('0x17')](_0x2e388c('0x1f'),'values',{'type':_0x153ba0[_0x2e388c('0x7')](_0x2e388c('0x21'))}),_0x5a422f[_0x2e388c('0x18')](_0x546923);});},'down':function(){}};
\ No newline at end of file
+const a920_0x5aad=['migration','cm_custom_fields','Removed\x20column\x20%s\x20from\x20%s','addColumn','chat_websites','query','queryInterface','addIndex','formData','catch','info','sequelize','serverUrl','util','tail','secret','chat_interactions','chat_messages','showAgentAvatar','join','int_desk_accounts','sequence','stringify','dropTable','removeColumn','table\x20dropped\x20%s','long','inspect','query\x20%s','BOOLEAN','changeColumn','then','STRING','final','prototype','TEXT','enqueue','agentAvatar'];(function(_0x3b1afa,_0x5aad4d){const _0x1ef6ef=function(_0x5b8c0a){while(--_0x5b8c0a){_0x3b1afa['push'](_0x3b1afa['shift']());}};_0x1ef6ef(++_0x5aad4d);}(a920_0x5aad,0x1d8));const a920_0x1ef6=function(_0x3b1afa,_0x5aad4d){_0x3b1afa=_0x3b1afa-0x0;let _0x1ef6ef=a920_0x5aad[_0x3b1afa];return _0x1ef6ef;};const _0x4036f7=a920_0x1ef6;'use strict';const logger=require('../config/logger')(_0x4036f7('0x16')),util=require(_0x4036f7('0x23')),Sequence=function(){};Sequence[_0x4036f7('0x12')]['enqueue']=function(_0x5b8c0a){const _0x3dcf28=_0x4036f7;this[_0x3dcf28('0x24')]=this[_0x3dcf28('0x24')]?this[_0x3dcf28('0x24')]['finally'](_0x5b8c0a):_0x5b8c0a();};const Migration=function(_0x28ba63){const _0x4066fa=_0x4036f7;this[_0x4066fa('0x1c')]=_0x28ba63,this[_0x4066fa('0x5')]=new Sequence();};Migration['prototype'][_0x4036f7('0xe')]=function(_0x3a4d4d,_0x413ff3,_0x3a842a){const _0x24d142=_0x4036f7,_0x3958cb=this;this[_0x24d142('0x5')]['enqueue'](function(){const _0x9eb182=_0x24d142;return _0x3958cb[_0x9eb182('0x1c')][_0x9eb182('0xe')](_0x3a4d4d,_0x413ff3,_0x3a842a)[_0x9eb182('0xf')](function(){const _0x2f2d07=_0x9eb182;logger[_0x2f2d07('0x20')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x413ff3,_0x3a4d4d);})[_0x9eb182('0x1f')](function(_0x28f73a){const _0x3206f5=_0x9eb182;logger[_0x3206f5('0x20')](JSON[_0x3206f5('0x6')](_0x28f73a));});});},Migration[_0x4036f7('0x12')]['addColumn']=function(_0x23783a,_0x5da007,_0x2c9387){const _0x1bdf47=_0x4036f7,_0x76eed2=this;this['sequence'][_0x1bdf47('0x14')](function(){const _0xaf91c1=_0x1bdf47;return _0x76eed2[_0xaf91c1('0x1c')][_0xaf91c1('0x19')](_0x23783a,_0x5da007,_0x2c9387)[_0xaf91c1('0xf')](function(){const _0x4df770=_0xaf91c1;logger[_0x4df770('0x20')]('Added\x20column\x20%s\x20to\x20%s',_0x5da007,_0x23783a);})[_0xaf91c1('0x1f')](function(_0x450e3c){const _0x5bbafd=_0xaf91c1;logger[_0x5bbafd('0x20')](JSON[_0x5bbafd('0x6')](_0x450e3c));});});},Migration[_0x4036f7('0x12')][_0x4036f7('0x7')]=function(_0x2a5160){const _0x29bfb3=_0x4036f7,_0xedd9fc=this;this[_0x29bfb3('0x5')][_0x29bfb3('0x14')](function(){const _0x36bd30=_0x29bfb3;return _0xedd9fc[_0x36bd30('0x1c')]['dropTable'](_0x2a5160,{'force':!![]})[_0x36bd30('0xf')](function(){const _0x3b4c9d=_0x36bd30;logger[_0x3b4c9d('0x20')](_0x3b4c9d('0x9'),_0x2a5160);})['catch'](function(_0x4b0e14){const _0x4036ea=_0x36bd30;logger[_0x4036ea('0x20')](JSON['stringify'](_0x4b0e14));});});},Migration[_0x4036f7('0x12')][_0x4036f7('0x1d')]=function(_0x171694,_0xe45a6c,_0x95d748){const _0x3a5bf4=_0x4036f7,_0x17eccc=this;this[_0x3a5bf4('0x5')][_0x3a5bf4('0x14')](function(){const _0x1f18ba=_0x3a5bf4;return _0x17eccc[_0x1f18ba('0x1c')][_0x1f18ba('0x1d')](_0x171694,_0xe45a6c,{'indexName':_0x95d748})[_0x1f18ba('0xf')](function(){const _0x1df64c=_0x1f18ba;logger[_0x1df64c('0x20')]('addIndex\x20%s\x20%s\x20%s',_0x171694,_0xe45a6c[_0x1df64c('0x3')](','),_0x95d748);})[_0x1f18ba('0x1f')](function(_0x1ad854){const _0x2e574a=_0x1f18ba;logger[_0x2e574a('0x20')](JSON[_0x2e574a('0x6')](_0x1ad854));});});},Migration[_0x4036f7('0x12')][_0x4036f7('0x1b')]=function(_0x331f55){const _0x47008c=_0x4036f7,_0x300dc3=this;this[_0x47008c('0x5')][_0x47008c('0x14')](function(){const _0x15f8e9=_0x47008c;return _0x300dc3[_0x15f8e9('0x1c')][_0x15f8e9('0x21')][_0x15f8e9('0x1b')](_0x331f55)['then'](function(){const _0x1ddfb8=_0x15f8e9;logger['info'](_0x1ddfb8('0xc'),_0x331f55);})[_0x15f8e9('0x1f')](function(_0x80fb0e){const _0xb4fa1b=_0x15f8e9;logger['info'](JSON[_0xb4fa1b('0x6')](_0x80fb0e));});});},Migration[_0x4036f7('0x12')][_0x4036f7('0x8')]=function(_0x104800,_0x212656){const _0x4c2896=this;this['sequence']['enqueue'](function(){const _0x1c388e=a920_0x1ef6;return _0x4c2896[_0x1c388e('0x1c')][_0x1c388e('0x8')](_0x104800,_0x212656)[_0x1c388e('0xf')](function(){const _0x1583b1=_0x1c388e;logger[_0x1583b1('0x20')](_0x1583b1('0x18'),_0x212656,_0x104800);})[_0x1c388e('0x1f')](function(_0x1b51b1){const _0x16a24d=_0x1c388e;logger[_0x16a24d('0x20')](util[_0x16a24d('0xb')](_0x1b51b1,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x17211c){const _0x1d499f=_0x4036f7;this[_0x1d499f('0x5')][_0x1d499f('0x14')](function(){return _0x17211c();});},module['exports']={'up':function(_0x403fe0,_0x23434d){return new Promise(function(_0x46d79b){const _0x23352a=a920_0x1ef6,_0x2717e7=new Migration(_0x403fe0);_0x2717e7[_0x23352a('0x19')](_0x23352a('0x4'),_0x23352a('0x22'),{'type':_0x23434d[_0x23352a('0x10')]}),_0x2717e7[_0x23352a('0x19')](_0x23352a('0x0'),_0x23352a('0x1e'),{'type':_0x23434d['TEXT'](_0x23352a('0xa'))}),_0x2717e7[_0x23352a('0x19')](_0x23352a('0x1'),_0x23352a('0x25'),{'type':_0x23434d[_0x23352a('0xd')],'defaultValue':![]}),_0x2717e7[_0x23352a('0x19')](_0x23352a('0x1a'),_0x23352a('0x15'),{'type':_0x23434d[_0x23352a('0x13')]}),_0x2717e7[_0x23352a('0x19')](_0x23352a('0x1a'),_0x23352a('0x2'),{'type':_0x23434d[_0x23352a('0xd')],'defaultValue':![]}),_0x2717e7[_0x23352a('0xe')](_0x23352a('0x17'),'values',{'type':_0x23434d[_0x23352a('0x13')](_0x23352a('0xa'))}),_0x2717e7[_0x23352a('0x11')](_0x46d79b);});},'down':function(){}};
\ No newline at end of file