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