/**
 * ==========================================================
 * Smart Attendance System
 * Application Configuration
 * ==========================================================
 */

require("dotenv").config();

module.exports = {

    app: {

        name:

            process.env.APP_NAME ||

            "Smart Attendance System",

        version:

            process.env.APP_VERSION ||

            "1.0.0",

        port:

            Number(

                process.env.PORT

            ) || 5000

    },

    jwt: {

        secret:

            process.env.JWT_SECRET,

        expiresIn:

            process.env.JWT_EXPIRES_IN

    },

    admin: {

        name:

            process.env.DEFAULT_ADMIN_NAME,

        username:

            process.env.DEFAULT_ADMIN_USERNAME,

        email:

            process.env.DEFAULT_ADMIN_EMAIL,

        phone:

            process.env.DEFAULT_ADMIN_PHONE,

        password:

            process.env.DEFAULT_ADMIN_PASSWORD,

        role:

            Number(

                process.env.DEFAULT_ADMIN_ROLE

            )

    },

    attendance: {

        faceSimilarity:

            Number(

                process.env.FACE_SIMILARITY ||

                0.65

            ),

        attendanceRadius:

            Number(

                process.env.ATTENDANCE_RADIUS ||

                50

            )

    },

    upload: {

        maxFileSize:

            Number(

                process.env.MAX_UPLOAD_SIZE ||

                5242880

            )

    }

};