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