Built motion from commit 362b9399b4d0ed5560fbb795af995925d345fc38. Version 3.0.0...
[motion-next.git] / server / config / seedDB / chanspy.js
1 const a1020_0x1471=['OnlyListenBoth','bulkCreate','error','Listen&TalkBoth','app','ChanSpy\x20have\x20been\x20created','then','The\x20supervisor\x20can\x20listen\x20and\x20talk\x20both\x20to\x20the\x20agent\x20and\x20to\x20the\x20customer,\x20like\x20a\x20pure\x203\x20way\x20conference\x20room','../logger','spy3','spy4','The\x20supervisor\x20can\x20only\x20listen\x20the\x20agent\x20channel\x20(neither\x20the\x20agent\x20nor\x20the\x20customer\x20will\x20listen\x20to\x20the\x20supervisor\x20voice)','spy1','VoiceChanSpy','OnlyListen','spy2','Can\x27t\x20create\x20ChanSpy'];(function(_0x8635f7,_0x94264e){const _0x1471ae=function(_0x57227a){while(--_0x57227a){_0x8635f7['push'](_0x8635f7['shift']());}};_0x1471ae(++_0x94264e);}(a1020_0x1471,0x1d1));const a1020_0x5722=function(_0x8635f7,_0x94264e){_0x8635f7=_0x8635f7-0xef;let _0x1471ae=a1020_0x1471[_0x8635f7];return _0x1471ae;};const a1020_0x27ffe2=a1020_0x5722;'use strict';const {db}=require('../../mysqldb'),logger=require(a1020_0x27ffe2(0xf1))(a1020_0x27ffe2(0xfe)),chanSpy=[{'id':0x1,'name':'Listen&TalkOne','prefix':a1020_0x27ffe2(0xf5),'options':['b','w','E','S'],'description':'The\x20supervisor\x20can\x20listen\x20and\x20talk\x20to\x20the\x20agent.\x20The\x20customer\x20will\x20not\x20listen\x20to\x20the\x20supervisor\x20voice'},{'id':0x2,'name':a1020_0x27ffe2(0xf7),'prefix':a1020_0x27ffe2(0xf8),'options':['b','o','E','S'],'description':a1020_0x27ffe2(0xf4)},{'id':0x3,'name':a1020_0x27ffe2(0xfd),'prefix':a1020_0x27ffe2(0xf2),'options':['B','w','E','S'],'description':a1020_0x27ffe2(0xf0)},{'id':0x4,'name':a1020_0x27ffe2(0xfa),'prefix':a1020_0x27ffe2(0xf3),'options':['B','o','E','S'],'description':'The\x20supervisor\x20can\x20just\x20listen\x20to\x20the\x20phone\x20call'}];exports['create']=function(){const _0x589105=a1020_0x27ffe2;return db[_0x589105(0xf6)][_0x589105(0xfb)](chanSpy,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x589105(0xef)](function(){const _0x46b0b0=_0x589105;logger['info'](_0x46b0b0(0xff));})['catch'](function(){const _0x2161b9=_0x589105;logger[_0x2161b9(0xfc)](_0x2161b9(0xf9));});};