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