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