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