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