Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / config / seedDB / voiceContexts.js
index 367488c..b1db09c 100644 (file)
@@ -1 +1 @@
-const a881_0xdf14=['\x20have\x20been\x20created','name','default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','\x20context','Context\x20','xcally-mixmonitor-context','findOrCreate','../logger','app','error','VoiceContext','Can\x27t\x20create\x20','outbound-fax','../../mysqldb'];(function(_0x46d2f3,_0xdf1482){const _0x380228=function(_0x24ced1){while(--_0x24ced1){_0x46d2f3['push'](_0x46d2f3['shift']());}};_0x380228(++_0xdf1482);}(a881_0xdf14,0x14e));const a881_0x3802=function(_0x46d2f3,_0xdf1482){_0x46d2f3=_0x46d2f3-0x0;let _0x380228=a881_0xdf14[_0x46d2f3];return _0x380228;};const _0x5b7eac=a881_0x3802;'use strict';const db=require(_0x5b7eac('0x1'))['db'],logger=require(_0x5b7eac('0x9'))(_0x5b7eac('0xa')),voiceContexts=[{'name':'from-sip','description':_0x5b7eac('0x4'),'defaultEntry':!![]},{'name':'from-voip-provider','description':'default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','defaultEntry':!![]},{'name':'inbound-fax','description':_0x5b7eac('0x4'),'defaultEntry':!![]},{'name':_0x5b7eac('0x0'),'description':_0x5b7eac('0x4'),'defaultEntry':!![]},{'name':'from-voicemail','description':_0x5b7eac('0x4'),'defaultEntry':!![]},{'name':_0x5b7eac('0x7'),'description':'default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','defaultEntry':!![]}];async function create(){const _0x465d0b=_0x5b7eac;for(const _0x24ced1 of voiceContexts){try{const [,_0x289bf2]=await db[_0x465d0b('0xc')][_0x465d0b('0x8')]({'where':{'name':_0x24ced1[_0x465d0b('0x3')]},'defaults':_0x24ced1});_0x289bf2&&logger['info'](_0x465d0b('0x6')+_0x24ced1[_0x465d0b('0x3')]+_0x465d0b('0x2'));}catch(_0x3713df){logger[_0x465d0b('0xb')](_0x465d0b('0xd')+_0x24ced1[_0x465d0b('0x3')]+_0x465d0b('0x5'),_0x3713df);}}}module['exports']={'create':create};
\ No newline at end of file
+const a881_0x5918=['\x20have\x20been\x20created','Context\x20','\x20context','from-voip-provider','../../mysqldb','name','exports','Can\x27t\x20create\x20','inbound-fax','../logger','default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','findOrCreate','app','xcally-mixmonitor-context','from-voicemail','from-sip'];(function(_0x189d0b,_0x591844){const _0x22eaba=function(_0x1fabf1){while(--_0x1fabf1){_0x189d0b['push'](_0x189d0b['shift']());}};_0x22eaba(++_0x591844);}(a881_0x5918,0xa3));const a881_0x22ea=function(_0x189d0b,_0x591844){_0x189d0b=_0x189d0b-0x0;let _0x22eaba=a881_0x5918[_0x189d0b];return _0x22eaba;};const _0x530746=a881_0x22ea;'use strict';const db=require(_0x530746('0x1'))['db'],logger=require(_0x530746('0x6'))(_0x530746('0x9')),voiceContexts=[{'name':_0x530746('0xc'),'description':_0x530746('0x7'),'defaultEntry':!![]},{'name':_0x530746('0x0'),'description':'default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','defaultEntry':!![]},{'name':_0x530746('0x5'),'description':_0x530746('0x7'),'defaultEntry':!![]},{'name':'outbound-fax','description':_0x530746('0x7'),'defaultEntry':!![]},{'name':_0x530746('0xb'),'description':_0x530746('0x7'),'defaultEntry':!![]},{'name':_0x530746('0xa'),'description':_0x530746('0x7'),'defaultEntry':!![]}];async function create(){const _0x573bb8=_0x530746;for(const _0x1fabf1 of voiceContexts){try{const [,_0x45da07]=await db['VoiceContext'][_0x573bb8('0x8')]({'where':{'name':_0x1fabf1[_0x573bb8('0x2')]},'defaults':_0x1fabf1});_0x45da07&&logger['info'](_0x573bb8('0xe')+_0x1fabf1[_0x573bb8('0x2')]+_0x573bb8('0xd'));}catch(_0x1411f8){logger['error'](_0x573bb8('0x4')+_0x1fabf1[_0x573bb8('0x2')]+_0x573bb8('0xf'),_0x1411f8);}}}module[_0x530746('0x3')]={'create':create};
\ No newline at end of file