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