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