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