Built motion from commit 362b9399b4d0ed5560fbb795af995925d345fc38. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.64.js
index 2227620..5dbd03d 100644 (file)
@@ -1 +1 @@
-const a1107_0x4011=['addIndex\x20%s\x20%s\x20%s','report_call','addIndex','removeIndex','tail','dropTable','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query\x20%s','util','addColumn','sequelize','prototype','phoneBarEnableVideoRecording','Removed\x20column\x20%s\x20from\x20%s','migration','renameColumn','finally','removeIndex\x20%s\x20%s','field','changeColumn','BOOLEAN','join','Changed\x20column\x20%s\x20in\x20table\x20%s','catch','info','table\x20dropped\x20%s','Added\x20column\x20%s\x20to\x20%s','sequence','users','removeColumn','../config/logger','final','customerAlias','inspect','then','TEXT','query','STRING','chat_websites','queryInterface','enqueue','stringify','exports'];(function(_0x4831dc,_0x1fd333){const _0x40115d=function(_0x5a11e3){while(--_0x5a11e3){_0x4831dc['push'](_0x4831dc['shift']());}};_0x40115d(++_0x1fd333);}(a1107_0x4011,0x135));const a1107_0x5a11=function(_0x4831dc,_0x1fd333){_0x4831dc=_0x4831dc-0x92;let _0x40115d=a1107_0x4011[_0x4831dc];return _0x40115d;};const a1107_0x2cbc98=a1107_0x5a11;'use strict';const util=require(a1107_0x2cbc98(0x92)),logger=require(a1107_0x2cbc98(0xa8))(a1107_0x2cbc98(0x98)),Sequence=function(){};Sequence['prototype'][a1107_0x2cbc98(0xb2)]=function(_0x41d229){const _0x2462c5=a1107_0x2cbc98;this[_0x2462c5(0xb9)]=this[_0x2462c5(0xb9)]?this[_0x2462c5(0xb9)][_0x2462c5(0x9a)](_0x41d229):_0x41d229();};const Migration=function(_0x5cbe23){this['queryInterface']=_0x5cbe23,this['sequence']=new Sequence();};Migration['prototype'][a1107_0x2cbc98(0x9d)]=function(_0x313a99,_0x4cb80d,_0x28e984){const _0x5a6760=a1107_0x2cbc98,_0x91da0e=this;this[_0x5a6760(0xa5)][_0x5a6760(0xb2)](function(){const _0x2bb473=_0x5a6760;return _0x91da0e['queryInterface'][_0x2bb473(0x9d)](_0x313a99,_0x4cb80d,_0x28e984)[_0x2bb473(0xac)](function(){const _0xabe554=_0x2bb473;logger[_0xabe554(0xa2)](_0xabe554(0xa0),_0x4cb80d,_0x313a99);})[_0x2bb473(0xa1)](function(_0x7a1fe){const _0x39154=_0x2bb473;logger['info'](JSON[_0x39154(0xb3)](_0x7a1fe));});});},Migration[a1107_0x2cbc98(0x95)]['addColumn']=function(_0xcde85e,_0x1bd3e4,_0x38c5d5){const _0xd33bc3=a1107_0x2cbc98,_0x5a5a67=this;this['sequence'][_0xd33bc3(0xb2)](function(){const _0x549ff9=_0xd33bc3;return _0x5a5a67[_0x549ff9(0xb1)]['addColumn'](_0xcde85e,_0x1bd3e4,_0x38c5d5)[_0x549ff9(0xac)](function(){const _0x2e6057=_0x549ff9;logger[_0x2e6057(0xa2)](_0x2e6057(0xa4),_0x1bd3e4,_0xcde85e);})[_0x549ff9(0xa1)](function(_0x4e32f0){const _0x77ed4a=_0x549ff9;logger[_0x77ed4a(0xa2)](JSON[_0x77ed4a(0xb3)](_0x4e32f0));});});},Migration[a1107_0x2cbc98(0x95)][a1107_0x2cbc98(0xba)]=function(_0x45ddec){const _0x22bb36=a1107_0x2cbc98,_0x1140d2=this;this[_0x22bb36(0xa5)][_0x22bb36(0xb2)](function(){const _0x1ce5b9=_0x22bb36;return _0x1140d2['queryInterface'][_0x1ce5b9(0xba)](_0x45ddec,{'force':!![]})[_0x1ce5b9(0xac)](function(){const _0xef0355=_0x1ce5b9;logger[_0xef0355(0xa2)](_0xef0355(0xa3),_0x45ddec);})['catch'](function(_0x150696){const _0x1b3c27=_0x1ce5b9;logger[_0x1b3c27(0xa2)](JSON['stringify'](_0x150696));});});},Migration[a1107_0x2cbc98(0x95)][a1107_0x2cbc98(0xb7)]=function(_0x8eea23,_0x240da9,_0x299f94){const _0x81b60d=a1107_0x2cbc98,_0x57421c=this;this[_0x81b60d(0xa5)][_0x81b60d(0xb2)](function(){const _0x49eda5=_0x81b60d;return _0x57421c['queryInterface']['addIndex'](_0x8eea23,_0x240da9,{'indexName':_0x299f94})[_0x49eda5(0xac)](function(){const _0x42c6ed=_0x49eda5;logger[_0x42c6ed(0xa2)](_0x42c6ed(0xb5),_0x8eea23,_0x240da9[_0x42c6ed(0x9f)](','),_0x299f94);})[_0x49eda5(0xa1)](function(_0x115ecd){const _0x3eda33=_0x49eda5;logger[_0x3eda33(0xa2)](JSON[_0x3eda33(0xb3)](_0x115ecd));});});},Migration[a1107_0x2cbc98(0x95)]['removeIndex']=function(_0x1f35f8,_0x27b4bc){const _0xf6e64c=this;this['sequence']['enqueue'](function(){const _0x440e8a=a1107_0x5a11;return _0xf6e64c[_0x440e8a(0xb1)]['removeIndex'](_0x1f35f8,_0x27b4bc)[_0x440e8a(0xac)](function(){const _0x95bf0c=_0x440e8a;logger[_0x95bf0c(0xa2)](_0x95bf0c(0x9b),_0x1f35f8,_0x27b4bc);})[_0x440e8a(0xa1)](function(_0x1692a9){const _0x4346ba=_0x440e8a;logger[_0x4346ba(0xa2)](JSON[_0x4346ba(0xb3)](_0x1692a9));});});},Migration[a1107_0x2cbc98(0x95)][a1107_0x2cbc98(0xae)]=function(_0x482385){const _0x457270=a1107_0x2cbc98,_0x4d6708=this;this['sequence'][_0x457270(0xb2)](function(){const _0x19589e=_0x457270;return _0x4d6708[_0x19589e(0xb1)][_0x19589e(0x94)][_0x19589e(0xae)](_0x482385)['then'](function(){const _0x365665=_0x19589e;logger['info'](_0x365665(0xbc),_0x482385);})[_0x19589e(0xa1)](function(_0x412765){const _0x423a8d=_0x19589e;logger[_0x423a8d(0xa2)](JSON[_0x423a8d(0xb3)](_0x412765));});});},Migration['prototype']['removeColumn']=function(_0x5aee30,_0x566939){const _0x45a1aa=a1107_0x2cbc98,_0x5eab4=this;this[_0x45a1aa(0xa5)]['enqueue'](function(){const _0xb8424f=_0x45a1aa;return _0x5eab4[_0xb8424f(0xb1)][_0xb8424f(0xa7)](_0x5aee30,_0x566939)[_0xb8424f(0xac)](function(){const _0x9cd505=_0xb8424f;logger['info'](_0x9cd505(0x97),_0x566939,_0x5aee30);})[_0xb8424f(0xa1)](function(_0x2280d3){const _0xe6a12=_0xb8424f;logger[_0xe6a12(0xa2)](util[_0xe6a12(0xab)](_0x2280d3,{'showHidden':![],'depth':null}));});});},Migration[a1107_0x2cbc98(0x95)][a1107_0x2cbc98(0x99)]=function(_0x527bd5,_0xff29e4,_0x5557b0){const _0x57fb9c=a1107_0x2cbc98,_0x5a5e54=this;this[_0x57fb9c(0xa5)][_0x57fb9c(0xb2)](function(){const _0x5a5ca2=_0x57fb9c;return _0x5a5e54['queryInterface'][_0x5a5ca2(0x99)](_0x527bd5,_0xff29e4,_0x5557b0)[_0x5a5ca2(0xac)](function(){const _0x270f54=_0x5a5ca2;logger[_0x270f54(0xa2)](_0x270f54(0xbb),_0xff29e4,_0x5557b0,_0x527bd5);})[_0x5a5ca2(0xa1)](function(_0x2a6a11){const _0x46fd7c=_0x5a5ca2;logger['info'](util[_0x46fd7c(0xab)](_0x2a6a11,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1107_0x2cbc98(0xa9)]=function(_0x4a0cff){const _0x2feb73=a1107_0x2cbc98;this[_0x2feb73(0xa5)][_0x2feb73(0xb2)](function(){return _0x4a0cff();});},module[a1107_0x2cbc98(0xb4)]={'up':function(_0x34bdd5,_0x5421b5){return new Promise(function(_0x14c269){const _0x355373=a1107_0x5a11,_0x5561dd=new Migration(_0x34bdd5);_0x5561dd['addColumn'](_0x355373(0xa6),_0x355373(0x96),{'type':_0x5421b5[_0x355373(0x9e)],'defaultValue':![]}),_0x5561dd[_0x355373(0x9d)](_0x355373(0xb6),'lastdata',{'type':_0x5421b5[_0x355373(0xad)]}),_0x5561dd[_0x355373(0x93)](_0x355373(0xb0),_0x355373(0xaa),{'type':_0x5421b5[_0x355373(0xaf)],'defaultValue':'Me'}),_0x5561dd['changeColumn']('analytics_report_fields',_0x355373(0x9c),{'type':_0x5421b5['TEXT'],'allowNull':![]}),_0x5561dd[_0x355373(0xb8)](_0x355373(0xb6),'uniqueid'),_0x5561dd['final'](_0x14c269);});},'down':function(){}};
\ No newline at end of file
+const a1107_0x106f=['Removed\x20column\x20%s\x20from\x20%s','addColumn','phoneBarEnableVideoRecording','addIndex','users','addIndex\x20%s\x20%s\x20%s','uniqueid','removeIndex\x20%s\x20%s','../config/logger','removeIndex','prototype','join','TEXT','field','queryInterface','renameColumn','removeColumn','tail','sequence','catch','info','stringify','migration','Changed\x20column\x20%s\x20in\x20table\x20%s','then','changeColumn','query\x20%s','BOOLEAN','STRING','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','report_call','Added\x20column\x20%s\x20to\x20%s','final','enqueue','inspect'];(function(_0x164930,_0x442be5){const _0x106ff0=function(_0x182fed){while(--_0x182fed){_0x164930['push'](_0x164930['shift']());}};_0x106ff0(++_0x442be5);}(a1107_0x106f,0x168));const a1107_0x182f=function(_0x164930,_0x442be5){_0x164930=_0x164930-0x1af;let _0x106ff0=a1107_0x106f[_0x164930];return _0x106ff0;};const a1107_0x2565ef=a1107_0x182f;'use strict';const util=require('util'),logger=require(a1107_0x2565ef(0x1d0))(a1107_0x2565ef(0x1bb)),Sequence=function(){};Sequence[a1107_0x2565ef(0x1af)]['enqueue']=function(_0x41527a){const _0x1479ce=a1107_0x2565ef;this[_0x1479ce(0x1b6)]=this[_0x1479ce(0x1b6)]?this[_0x1479ce(0x1b6)]['finally'](_0x41527a):_0x41527a();};const Migration=function(_0x47be1e){const _0x23e533=a1107_0x2565ef;this[_0x23e533(0x1b3)]=_0x47be1e,this[_0x23e533(0x1b7)]=new Sequence();};Migration[a1107_0x2565ef(0x1af)][a1107_0x2565ef(0x1be)]=function(_0x50c493,_0xcb371,_0x98edbc){const _0x1d177c=a1107_0x2565ef,_0x22edf5=this;this[_0x1d177c(0x1b7)][_0x1d177c(0x1c6)](function(){const _0xc3bde5=_0x1d177c;return _0x22edf5['queryInterface']['changeColumn'](_0x50c493,_0xcb371,_0x98edbc)[_0xc3bde5(0x1bd)](function(){const _0x130e12=_0xc3bde5;logger['info'](_0x130e12(0x1bc),_0xcb371,_0x50c493);})[_0xc3bde5(0x1b8)](function(_0x277b3d){const _0x3c4478=_0xc3bde5;logger[_0x3c4478(0x1b9)](JSON['stringify'](_0x277b3d));});});},Migration[a1107_0x2565ef(0x1af)][a1107_0x2565ef(0x1c9)]=function(_0x52a217,_0x484042,_0x157386){const _0xe15c2c=a1107_0x2565ef,_0x3efd9=this;this[_0xe15c2c(0x1b7)][_0xe15c2c(0x1c6)](function(){const _0x3dd39e=_0xe15c2c;return _0x3efd9['queryInterface']['addColumn'](_0x52a217,_0x484042,_0x157386)[_0x3dd39e(0x1bd)](function(){const _0x35618d=_0x3dd39e;logger[_0x35618d(0x1b9)](_0x35618d(0x1c4),_0x484042,_0x52a217);})[_0x3dd39e(0x1b8)](function(_0x5a04b6){const _0x34322b=_0x3dd39e;logger[_0x34322b(0x1b9)](JSON[_0x34322b(0x1ba)](_0x5a04b6));});});},Migration['prototype']['dropTable']=function(_0x19d8fb){const _0x47879e=a1107_0x2565ef,_0xf80e27=this;this['sequence'][_0x47879e(0x1c6)](function(){const _0x4c43a4=_0x47879e;return _0xf80e27[_0x4c43a4(0x1b3)]['dropTable'](_0x19d8fb,{'force':!![]})[_0x4c43a4(0x1bd)](function(){logger['info']('table\x20dropped\x20%s',_0x19d8fb);})[_0x4c43a4(0x1b8)](function(_0x26e368){const _0x5a59a4=_0x4c43a4;logger[_0x5a59a4(0x1b9)](JSON[_0x5a59a4(0x1ba)](_0x26e368));});});},Migration[a1107_0x2565ef(0x1af)][a1107_0x2565ef(0x1cb)]=function(_0x4acaf0,_0x538c45,_0x520f2c){const _0xab3af5=a1107_0x2565ef,_0x189b22=this;this[_0xab3af5(0x1b7)][_0xab3af5(0x1c6)](function(){const _0x419357=_0xab3af5;return _0x189b22[_0x419357(0x1b3)][_0x419357(0x1cb)](_0x4acaf0,_0x538c45,{'indexName':_0x520f2c})[_0x419357(0x1bd)](function(){const _0x3f3afc=_0x419357;logger[_0x3f3afc(0x1b9)](_0x3f3afc(0x1cd),_0x4acaf0,_0x538c45[_0x3f3afc(0x1b0)](','),_0x520f2c);})['catch'](function(_0x47fdc0){const _0x493bf3=_0x419357;logger[_0x493bf3(0x1b9)](JSON[_0x493bf3(0x1ba)](_0x47fdc0));});});},Migration[a1107_0x2565ef(0x1af)][a1107_0x2565ef(0x1d1)]=function(_0x20c4a1,_0x59dd99){const _0x4ea469=a1107_0x2565ef,_0x4dcb3e=this;this[_0x4ea469(0x1b7)][_0x4ea469(0x1c6)](function(){const _0x1a6bba=_0x4ea469;return _0x4dcb3e[_0x1a6bba(0x1b3)][_0x1a6bba(0x1d1)](_0x20c4a1,_0x59dd99)['then'](function(){const _0x16eb3e=_0x1a6bba;logger[_0x16eb3e(0x1b9)](_0x16eb3e(0x1cf),_0x20c4a1,_0x59dd99);})[_0x1a6bba(0x1b8)](function(_0x54fd72){const _0x34d0ca=_0x1a6bba;logger['info'](JSON[_0x34d0ca(0x1ba)](_0x54fd72));});});},Migration[a1107_0x2565ef(0x1af)]['query']=function(_0x4866a2){const _0x308da2=a1107_0x2565ef,_0x53fbe1=this;this[_0x308da2(0x1b7)][_0x308da2(0x1c6)](function(){const _0x4befcc=_0x308da2;return _0x53fbe1[_0x4befcc(0x1b3)]['sequelize']['query'](_0x4866a2)[_0x4befcc(0x1bd)](function(){const _0x48b758=_0x4befcc;logger[_0x48b758(0x1b9)](_0x48b758(0x1bf),_0x4866a2);})[_0x4befcc(0x1b8)](function(_0xbd075d){const _0x167d1d=_0x4befcc;logger['info'](JSON[_0x167d1d(0x1ba)](_0xbd075d));});});},Migration['prototype'][a1107_0x2565ef(0x1b5)]=function(_0x1c972b,_0x52d89f){const _0x6b8cce=a1107_0x2565ef,_0x1becb9=this;this[_0x6b8cce(0x1b7)]['enqueue'](function(){const _0x5e4f6a=_0x6b8cce;return _0x1becb9[_0x5e4f6a(0x1b3)][_0x5e4f6a(0x1b5)](_0x1c972b,_0x52d89f)[_0x5e4f6a(0x1bd)](function(){const _0x15a587=_0x5e4f6a;logger[_0x15a587(0x1b9)](_0x15a587(0x1c8),_0x52d89f,_0x1c972b);})[_0x5e4f6a(0x1b8)](function(_0x3d42bb){const _0x2ecf26=_0x5e4f6a;logger[_0x2ecf26(0x1b9)](util['inspect'](_0x3d42bb,{'showHidden':![],'depth':null}));});});},Migration[a1107_0x2565ef(0x1af)][a1107_0x2565ef(0x1b4)]=function(_0x411aeb,_0x366879,_0x3f655c){const _0xee07cc=a1107_0x2565ef,_0x86f94c=this;this['sequence'][_0xee07cc(0x1c6)](function(){const _0x511c41=_0xee07cc;return _0x86f94c[_0x511c41(0x1b3)][_0x511c41(0x1b4)](_0x411aeb,_0x366879,_0x3f655c)[_0x511c41(0x1bd)](function(){const _0xbca735=_0x511c41;logger[_0xbca735(0x1b9)](_0xbca735(0x1c2),_0x366879,_0x3f655c,_0x411aeb);})['catch'](function(_0x5e0411){const _0x2052d0=_0x511c41;logger[_0x2052d0(0x1b9)](util[_0x2052d0(0x1c7)](_0x5e0411,{'showHidden':![],'depth':null}));});});},Migration[a1107_0x2565ef(0x1af)][a1107_0x2565ef(0x1c5)]=function(_0x27d535){const _0x567e35=a1107_0x2565ef;this[_0x567e35(0x1b7)][_0x567e35(0x1c6)](function(){return _0x27d535();});},module['exports']={'up':function(_0x285da1,_0x5b663b){return new Promise(function(_0x3404ae){const _0x7e88b4=a1107_0x182f,_0x5479fd=new Migration(_0x285da1);_0x5479fd[_0x7e88b4(0x1c9)](_0x7e88b4(0x1cc),_0x7e88b4(0x1ca),{'type':_0x5b663b[_0x7e88b4(0x1c0)],'defaultValue':![]}),_0x5479fd[_0x7e88b4(0x1be)]('report_call','lastdata',{'type':_0x5b663b['TEXT']}),_0x5479fd['addColumn']('chat_websites','customerAlias',{'type':_0x5b663b[_0x7e88b4(0x1c1)],'defaultValue':'Me'}),_0x5479fd[_0x7e88b4(0x1be)]('analytics_report_fields',_0x7e88b4(0x1b2),{'type':_0x5b663b[_0x7e88b4(0x1b1)],'allowNull':![]}),_0x5479fd['removeIndex'](_0x7e88b4(0x1c3),_0x7e88b4(0x1ce)),_0x5479fd[_0x7e88b4(0x1c5)](_0x3404ae);});},'down':function(){}};
\ No newline at end of file