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 _0x5027=['ulaw','yes','/etc/pki/tls/private/motion.key','actpass','User','bulkCreate','then','log','add\x20user','catch','push','format','%s%s','agent','%s%s@xcally.com','password','friend','udp','wss','all'];(function(_0x5f4696,_0x560065){var _0x3c3e95=function(_0x2b5ab2){while(--_0x2b5ab2){_0x5f4696['push'](_0x5f4696['shift']());}};_0x3c3e95(++_0x560065);}(_0x5027,0xe6));var _0x7502=function(_0x1ac430,_0x119045){_0x1ac430=_0x1ac430-0x0;var _0x53509e=_0x5027[_0x1ac430];return _0x53509e;};'use strict';var util=require('util');var db=require('../mysqldb')['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users[_0x7502('0x0')]({'name':util[_0x7502('0x1')](_0x7502('0x2'),'agent',i),'fullname':util[_0x7502('0x1')](_0x7502('0x2'),_0x7502('0x3'),i),'email':util[_0x7502('0x1')](_0x7502('0x4'),'agent',i),'role':'agent','password':_0x7502('0x5'),'internal':0xfa0+i,'type':_0x7502('0x6'),'transport':[_0x7502('0x7'),'ws',_0x7502('0x8')],'disallow':[_0x7502('0x9')],'allow':[_0x7502('0xa')],'defaultuser':util[_0x7502('0x1')]('%s%s',_0x7502('0x3'),i),'encryption':'yes','avpf':_0x7502('0xb'),'force_avp':_0x7502('0xb'),'icesupport':'yes','dtlsenable':_0x7502('0xb'),'dtlsverify':'no','dtlscertfile':'/etc/pki/tls/certs/motion.crt','dtlsprivatekey':_0x7502('0xc'),'dtlssetup':_0x7502('0xd'),'callerid':util['format']('\x22%s\x22\x20<%s>',util[_0x7502('0x1')](_0x7502('0x2'),'agent',i),0xfa0+i)});}db[_0x7502('0xe')][_0x7502('0xf')](users)[_0x7502('0x10')](function(){console[_0x7502('0x11')](_0x7502('0x12'));})[_0x7502('0x13')](function(_0x4a4d31){console[_0x7502('0x11')](_0x4a4d31);});