Files
node_task_1a/view_models/answers_admin_detail_view_model.js
T
2022-04-12 08:57:07 -04:00

34 lines
829 B
JavaScript

'use strict'
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
/**
* Answers V View Model
*
* @copyright 2021 Manaknightdigital Inc.
* @link https://manaknightdigital.com
* @license Proprietary Software licensing
* @author Ryan Wong
*/
module.exports = function (entity, pageName='', success, error, base_url = "" ) {
this.entity = entity
this.success = success || null
this.error = error || null
this._base_url = base_url
this.endpoint = "/admin/answers"
this.get_page_name = () => pageName
this.heading = "Answer details"
this.detail_fields = {"id":"","question_id":"","question.question":"","answer":"","answer_value":"","explaination":"","image_id":"","response_header":"","response_body":"","response_arguments":"","black_list_actives":""}
return this;
}