Built motion from commit 9d1906d1.|2.5.40
[motion2.git] / server / config / seedUsers.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xedfd=['udp','wss','all','ulaw','yes','/etc/pki/tls/certs/motion.crt','/etc/pki/tls/private/motion.key','actpass','\x22%s\x22\x20<%s>','User','bulkCreate','then','log','../mysqldb','format','%s%s','agent','%s%s@xcally.com','password','friend'];(function(_0x12254f,_0x100cfe){var _0x3a4fa2=function(_0x1ce891){while(--_0x1ce891){_0x12254f['push'](_0x12254f['shift']());}};_0x3a4fa2(++_0x100cfe);}(_0xedfd,0x1ed));var _0xdedf=function(_0x45e98e,_0x169b60){_0x45e98e=_0x45e98e-0x0;var _0x374dba=_0xedfd[_0x45e98e];return _0x374dba;};'use strict';var util=require('util');var db=require(_0xdedf('0x0'))['db'];var users=[];for(var i=0x1;i<=0xc8;i+=0x1){users['push']({'name':util[_0xdedf('0x1')](_0xdedf('0x2'),_0xdedf('0x3'),i),'fullname':util['format']('%s%s',_0xdedf('0x3'),i),'email':util[_0xdedf('0x1')](_0xdedf('0x4'),_0xdedf('0x3'),i),'role':'agent','password':_0xdedf('0x5'),'internal':0xfa0+i,'type':_0xdedf('0x6'),'transport':[_0xdedf('0x7'),'ws',_0xdedf('0x8')],'disallow':[_0xdedf('0x9')],'allow':[_0xdedf('0xa')],'defaultuser':util[_0xdedf('0x1')]('%s%s',_0xdedf('0x3'),i),'encryption':_0xdedf('0xb'),'avpf':_0xdedf('0xb'),'force_avp':'yes','icesupport':_0xdedf('0xb'),'dtlsenable':'yes','dtlsverify':'no','dtlscertfile':_0xdedf('0xc'),'dtlsprivatekey':_0xdedf('0xd'),'dtlssetup':_0xdedf('0xe'),'callerid':util['format'](_0xdedf('0xf'),util[_0xdedf('0x1')](_0xdedf('0x2'),'agent',i),0xfa0+i)});}db[_0xdedf('0x10')][_0xdedf('0x11')](users)[_0xdedf('0x12')](function(){console['log']('add\x20user');})['catch'](function(_0xa6d8fb){console[_0xdedf('0x13')](_0xa6d8fb);});