Built motion from commit 459747fdfe53bbf13fbede61eeaffea1f1438f86. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.25.js
index c7f5a61..700ae16 100644 (file)
@@ -1 +1 @@
-const a904_0x1cb4=['Changed\x20column\x20%s\x20in\x20table\x20%s','Added\x20column\x20%s\x20to\x20%s','stringify','STRING','query','queryInterface','prototype','users','then','Insert\x20new\x20row\x20in\x20voice_extensions','inspect','addColumn','catch','migration','tools_trunks','allow','dialPrefix','voice_queues','sequelize','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`appType`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27failed\x27,\x20\x272\x27,\x20\x27Hangup\x27,\x20\x27system\x27,\x20\x27catch\x20failed\x20event\x20auto\x20generated\x27,\x20\x27custom\x27,\x20NOW(),\x20NOW());','ulaw;gsm;alaw','../config/logger','changeColumn','info'];(function(_0x5c52f0,_0x1cb469){const _0x38acc4=function(_0x9060dd){while(--_0x9060dd){_0x5c52f0['push'](_0x5c52f0['shift']());}};_0x38acc4(++_0x1cb469);}(a904_0x1cb4,0xfb));const a904_0x38ac=function(_0x5c52f0,_0x1cb469){_0x5c52f0=_0x5c52f0-0x0;let _0x38acc4=a904_0x1cb4[_0x5c52f0];return _0x38acc4;};const _0x2b1bf6=a904_0x38ac;'use strict';const logger=require(_0x2b1bf6('0xa'))(_0x2b1bf6('0x2')),util=require('util'),Migration=function(_0x9060dd){const _0x48ef1f=_0x2b1bf6;this[_0x48ef1f('0x12')]=_0x9060dd;};Migration['prototype']['insertExtension']=function(_0xd8df04){const _0x583e96=_0x2b1bf6;return this[_0x583e96('0x12')][_0x583e96('0x7')][_0x583e96('0x11')](_0xd8df04)['then'](function(){const _0x13cef7=_0x583e96;logger['info'](_0x13cef7('0x16'));})[_0x583e96('0x1')](function(_0x4e8357){const _0x46af44=_0x583e96;logger['info'](util[_0x46af44('0x17')](_0x4e8357,{'showHidden':![],'depth':null}));});},Migration['prototype'][_0x2b1bf6('0xb')]=function(_0x208366,_0x420406,_0x111e19){const _0x365aef=_0x2b1bf6;return this[_0x365aef('0x12')][_0x365aef('0xb')](_0x208366,_0x420406,_0x111e19)[_0x365aef('0x15')](function(){const _0x3b623e=_0x365aef;logger[_0x3b623e('0xc')](_0x3b623e('0xd'),_0x420406,_0x208366);})[_0x365aef('0x1')](function(_0x356a2e){const _0x240382=_0x365aef;logger[_0x240382('0xc')](util[_0x240382('0x17')](_0x356a2e,{'showHidden':![],'depth':null}));});},Migration[_0x2b1bf6('0x13')]['addColumn']=function(_0x45df44,_0x3f23ae,_0x420395){const _0x288780=_0x2b1bf6;return this[_0x288780('0x12')]['addColumn'](_0x45df44,_0x3f23ae,_0x420395)['then'](function(){const _0x54d441=_0x288780;logger['info'](_0x54d441('0xe'),_0x3f23ae,_0x45df44);})[_0x288780('0x1')](function(_0x2219d5){const _0x24fb3d=_0x288780;logger[_0x24fb3d('0xc')](JSON[_0x24fb3d('0xf')](_0x2219d5));});},module['exports']={'up':function(_0x119656,_0x540d23){const _0x1b7ea5=_0x2b1bf6,_0x2bad94=new Migration(_0x119656);_0x2bad94['insertExtension']('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`appType`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27failed\x27,\x20\x271\x27,\x20\x27NoOp\x27,\x20\x27system\x27,\x20\x27catch\x20failed\x20event\x20auto\x20generated\x27,\x20\x27custom\x27,\x20NOW(),\x20NOW());'),_0x2bad94['insertExtension'](_0x1b7ea5('0x8')),_0x2bad94['changeColumn'](_0x1b7ea5('0x14'),_0x1b7ea5('0x4'),{'type':_0x540d23[_0x1b7ea5('0x10')],'defaultValue':'ulaw;gsm'}),_0x2bad94[_0x1b7ea5('0xb')](_0x1b7ea5('0x3'),_0x1b7ea5('0x4'),{'type':_0x540d23[_0x1b7ea5('0x10')],'defaultValue':_0x1b7ea5('0x9')}),_0x2bad94[_0x1b7ea5('0x0')](_0x1b7ea5('0x6'),_0x1b7ea5('0x5'),{'type':_0x540d23[_0x1b7ea5('0x10')],'defaultValue':null});},'down':function(){}};
\ No newline at end of file
+const a904_0x55af=['Added\x20column\x20%s\x20to\x20%s','changeColumn','exports','Insert\x20new\x20row\x20in\x20voice_extensions','insertExtension','STRING','stringify','dialPrefix','queryInterface','inspect','ulaw;gsm;alaw','info','query','voice_queues','catch','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`appType`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27failed\x27,\x20\x271\x27,\x20\x27NoOp\x27,\x20\x27system\x27,\x20\x27catch\x20failed\x20event\x20auto\x20generated\x27,\x20\x27custom\x27,\x20NOW(),\x20NOW());','sequelize','addColumn','allow','then','prototype','../config/logger','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`appType`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27failed\x27,\x20\x272\x27,\x20\x27Hangup\x27,\x20\x27system\x27,\x20\x27catch\x20failed\x20event\x20auto\x20generated\x27,\x20\x27custom\x27,\x20NOW(),\x20NOW());'];(function(_0x434b17,_0x55af8d){const _0x276d70=function(_0xc9ed84){while(--_0xc9ed84){_0x434b17['push'](_0x434b17['shift']());}};_0x276d70(++_0x55af8d);}(a904_0x55af,0xfb));const a904_0x276d=function(_0x434b17,_0x55af8d){_0x434b17=_0x434b17-0x0;let _0x276d70=a904_0x55af[_0x434b17];return _0x276d70;};const _0x434c94=a904_0x276d;'use strict';const logger=require(_0x434c94('0x0'))('migration'),util=require('util'),Migration=function(_0xc9ed84){this['queryInterface']=_0xc9ed84;};Migration['prototype'][_0x434c94('0x6')]=function(_0x5f0950){const _0x4e5cd9=_0x434c94;return this['queryInterface'][_0x4e5cd9('0x12')][_0x4e5cd9('0xe')](_0x5f0950)[_0x4e5cd9('0x15')](function(){const _0x2e1f87=_0x4e5cd9;logger[_0x2e1f87('0xd')](_0x2e1f87('0x5'));})[_0x4e5cd9('0x10')](function(_0xb1cb77){const _0x1dd961=_0x4e5cd9;logger[_0x1dd961('0xd')](util[_0x1dd961('0xb')](_0xb1cb77,{'showHidden':![],'depth':null}));});},Migration[_0x434c94('0x16')]['changeColumn']=function(_0x40e165,_0x3966f6,_0x49db85){const _0x51c398=_0x434c94;return this[_0x51c398('0xa')]['changeColumn'](_0x40e165,_0x3966f6,_0x49db85)[_0x51c398('0x15')](function(){const _0xa2d1a7=_0x51c398;logger[_0xa2d1a7('0xd')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x3966f6,_0x40e165);})[_0x51c398('0x10')](function(_0x1fbba1){const _0x24a7b1=_0x51c398;logger[_0x24a7b1('0xd')](util['inspect'](_0x1fbba1,{'showHidden':![],'depth':null}));});},Migration[_0x434c94('0x16')][_0x434c94('0x13')]=function(_0x1fd484,_0x776501,_0x2a41b3){const _0x42f80c=_0x434c94;return this['queryInterface'][_0x42f80c('0x13')](_0x1fd484,_0x776501,_0x2a41b3)[_0x42f80c('0x15')](function(){const _0x2d1ac7=_0x42f80c;logger[_0x2d1ac7('0xd')](_0x2d1ac7('0x2'),_0x776501,_0x1fd484);})[_0x42f80c('0x10')](function(_0x358569){const _0x2a82aa=_0x42f80c;logger[_0x2a82aa('0xd')](JSON[_0x2a82aa('0x8')](_0x358569));});},module[_0x434c94('0x4')]={'up':function(_0x26c79b,_0x1f9b46){const _0x2153fd=_0x434c94,_0x425e00=new Migration(_0x26c79b);_0x425e00[_0x2153fd('0x6')](_0x2153fd('0x11')),_0x425e00[_0x2153fd('0x6')](_0x2153fd('0x1')),_0x425e00[_0x2153fd('0x3')]('users',_0x2153fd('0x14'),{'type':_0x1f9b46[_0x2153fd('0x7')],'defaultValue':'ulaw;gsm'}),_0x425e00['changeColumn']('tools_trunks',_0x2153fd('0x14'),{'type':_0x1f9b46[_0x2153fd('0x7')],'defaultValue':_0x2153fd('0xc')}),_0x425e00[_0x2153fd('0x13')](_0x2153fd('0xf'),_0x2153fd('0x9'),{'type':_0x1f9b46[_0x2153fd('0x7')],'defaultValue':null});},'down':function(){}};
\ No newline at end of file