Built motion from commit e493b9a4954b50a8ee6d0034ba3601cd210d989d. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.25.js
1 'use strict';const a1073_0x3a40=['27812bZaPCf','ulaw;gsm','tools_trunks','insertExtension','addColumn','Insert\x20new\x20row\x20in\x20voice_extensions','voice_queues','dialPrefix','query','allow','changeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','449300pgdKWH','then','11gHWhNL','10124fDgAew','migration','resolve','STRING','users','2fiKboH','queryInterface','@config/logger','33PRSxnu','48869AwDzrl','inspect','info','exports','util','prototype','455076fVpNHs','stringify','19447pOqdBR','769746XuLjBv','9YyIhtK','ulaw;gsm;alaw'];const a1073_0x130b=function(_0x4378ad,_0xd8d9f3){_0x4378ad=_0x4378ad-0x12d;let _0x3a405d=a1073_0x3a40[_0x4378ad];return _0x3a405d;};const a1073_0x4e8ecd=a1073_0x130b;(function(_0x2358c8,_0xefbe0c){const _0x30e2f3=a1073_0x130b;while(!![]){try{const _0x18ee01=-parseInt(_0x30e2f3(0x14a))*-parseInt(_0x30e2f3(0x141))+-parseInt(_0x30e2f3(0x148))+parseInt(_0x30e2f3(0x14b))+-parseInt(_0x30e2f3(0x14c))*parseInt(_0x30e2f3(0x14e))+parseInt(_0x30e2f3(0x13e))*parseInt(_0x30e2f3(0x142))+parseInt(_0x30e2f3(0x138))*parseInt(_0x30e2f3(0x139))+-parseInt(_0x30e2f3(0x136));if(_0x18ee01===_0xefbe0c)break;else _0x2358c8['push'](_0x2358c8['shift']());}catch(_0x1d09be){_0x2358c8['push'](_0x2358c8['shift']());}}}(a1073_0x3a40,0x71bfb));const logger=require(a1073_0x4e8ecd(0x140))(a1073_0x4e8ecd(0x13a)),util=require(a1073_0x4e8ecd(0x146)),Migration=function(_0x457439){this['queryInterface']=_0x457439;};Migration[a1073_0x4e8ecd(0x147)][a1073_0x4e8ecd(0x12d)]=function(_0x3e7e19){const _0x3e7120=a1073_0x4e8ecd;return this[_0x3e7120(0x13f)]['sequelize'][_0x3e7120(0x132)](_0x3e7e19)[_0x3e7120(0x137)](function(){const _0x49d40c=_0x3e7120;logger[_0x49d40c(0x144)](_0x49d40c(0x12f));})['catch'](function(_0x4a4a85){const _0x3b5247=_0x3e7120;logger[_0x3b5247(0x144)](util[_0x3b5247(0x143)](_0x4a4a85,{'showHidden':![],'depth':null}));});},Migration[a1073_0x4e8ecd(0x147)][a1073_0x4e8ecd(0x134)]=function(_0x2b3b12,_0x2c64cb,_0x53d739){const _0x5ccaea=a1073_0x4e8ecd;return this[_0x5ccaea(0x13f)][_0x5ccaea(0x134)](_0x2b3b12,_0x2c64cb,_0x53d739)[_0x5ccaea(0x137)](function(){const _0x1a2eb3=_0x5ccaea;logger[_0x1a2eb3(0x144)](_0x1a2eb3(0x135),_0x2c64cb,_0x2b3b12);})['catch'](function(_0x2a87cc){const _0x1e45fc=_0x5ccaea;logger['info'](util[_0x1e45fc(0x143)](_0x2a87cc,{'showHidden':![],'depth':null}));});},Migration[a1073_0x4e8ecd(0x147)][a1073_0x4e8ecd(0x12e)]=function(_0x13f470,_0x5efa07,_0xb145d5){const _0x484d5b=a1073_0x4e8ecd;return this[_0x484d5b(0x13f)][_0x484d5b(0x12e)](_0x13f470,_0x5efa07,_0xb145d5)[_0x484d5b(0x137)](function(){const _0x3a7cd5=_0x484d5b;logger[_0x3a7cd5(0x144)]('Added\x20column\x20%s\x20to\x20%s',_0x5efa07,_0x13f470);})['catch'](function(_0x6aaeb7){const _0x428128=_0x484d5b;logger[_0x428128(0x144)](JSON[_0x428128(0x149)](_0x6aaeb7));});},module[a1073_0x4e8ecd(0x145)]={'up':function(_0x921da4,_0x4cea99){const _0x223ff2=a1073_0x4e8ecd,_0x5b5798=new Migration(_0x921da4);_0x5b5798[_0x223ff2(0x12d)]('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());'),_0x5b5798[_0x223ff2(0x12d)]('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());'),_0x5b5798['changeColumn'](_0x223ff2(0x13d),_0x223ff2(0x133),{'type':_0x4cea99[_0x223ff2(0x13c)],'defaultValue':_0x223ff2(0x14f)}),_0x5b5798[_0x223ff2(0x134)](_0x223ff2(0x150),_0x223ff2(0x133),{'type':_0x4cea99[_0x223ff2(0x13c)],'defaultValue':_0x223ff2(0x14d)}),_0x5b5798[_0x223ff2(0x12e)](_0x223ff2(0x130),_0x223ff2(0x131),{'type':_0x4cea99[_0x223ff2(0x13c)],'defaultValue':null});},'down':function(){const _0x2471f1=a1073_0x4e8ecd;return Promise[_0x2471f1(0x13b)]();}};