1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
17 // *************************************************************************
18 var _0x6514=['catch','util','../mysqldb','format','%s%s','agent','password','friend','udp','wss','all','ulaw','yes','/etc/pki/tls/certs/motion.crt','/etc/pki/tls/private/motion.key','actpass','User','bulkCreate','then','log','add\x20user'];(function(_0x50a82d,_0x14303f){var _0x53c737=function(_0x2036fa){while(--_0x2036fa){_0x50a82d['push'](_0x50a82d['shift']());}};_0x53c737(++_0x14303f);}(_0x6514,0xd3));var _0x4651=function(_0x436ba2,_0x5b6037){_0x436ba2=_0x436ba2-0x0;var _0x3b35fc=_0x6514[_0x436ba2];return _0x3b35fc;};'use strict';var util=require(_0x4651('0x0'));var db=require(_0x4651('0x1'))['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users['push']({'name':util[_0x4651('0x2')](_0x4651('0x3'),'agent',i),'fullname':util[_0x4651('0x2')](_0x4651('0x3'),_0x4651('0x4'),i),'email':util[_0x4651('0x2')]('%s%s@xcally.com',_0x4651('0x4'),i),'role':_0x4651('0x4'),'password':_0x4651('0x5'),'internal':0xfa0+i,'type':_0x4651('0x6'),'transport':[_0x4651('0x7'),'ws',_0x4651('0x8')],'disallow':[_0x4651('0x9')],'allow':[_0x4651('0xa')],'defaultuser':util[_0x4651('0x2')]('%s%s','agent',i),'encryption':'yes','avpf':_0x4651('0xb'),'force_avp':_0x4651('0xb'),'icesupport':'yes','dtlsenable':_0x4651('0xb'),'dtlsverify':'no','dtlscertfile':_0x4651('0xc'),'dtlsprivatekey':_0x4651('0xd'),'dtlssetup':_0x4651('0xe'),'callerid':util[_0x4651('0x2')]('\x22%s\x22\x20<%s>',util[_0x4651('0x2')](_0x4651('0x3'),_0x4651('0x4'),i),0xfa0+i)});}db[_0x4651('0xf')][_0x4651('0x10')](users)[_0x4651('0x11')](function(){console[_0x4651('0x12')](_0x4651('0x13'));})[_0x4651('0x14')](function(_0x39c686){console[_0x4651('0x12')](_0x39c686);});