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