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