c53bb5730eb1520ae6234c6bb09e8d3bdcfc5283
[motion2.git] / server / api / jscriptyQuestionReport / index.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 _0x51a8=['Router','fs-extra','../../config/environment','get','/describe','/:id','show','post','isAuthenticated','create','update','delete','destroy','exports','util','path','connect-timeout','express'];(function(_0x3df871,_0xda2e11){var _0x570f7b=function(_0xfaac78){while(--_0xfaac78){_0x3df871['push'](_0x3df871['shift']());}};_0x570f7b(++_0xda2e11);}(_0x51a8,0x11c));var _0x851a=function(_0x40cb7e,_0x196316){_0x40cb7e=_0x40cb7e-0x0;var _0x55ad41=_0x51a8[_0x40cb7e];return _0x55ad41;};'use strict';var multer=require('multer');var util=require(_0x851a('0x0'));var path=require(_0x851a('0x1'));var timeout=require(_0x851a('0x2'));var express=require(_0x851a('0x3'));var router=express[_0x851a('0x4')]();var fs_extra=require(_0x851a('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x851a('0x6'));var controller=require('./jscriptyQuestionReport.controller');router[_0x851a('0x7')]('/',auth['isAuthenticated'](),controller['index']);router['get'](_0x851a('0x8'),auth['isAuthenticated'](),controller['describe']);router['get'](_0x851a('0x9'),auth['isAuthenticated'](),controller[_0x851a('0xa')]);router[_0x851a('0xb')]('/',auth[_0x851a('0xc')](),controller[_0x851a('0xd')]);router['put'](_0x851a('0x9'),auth[_0x851a('0xc')](),controller[_0x851a('0xe')]);router[_0x851a('0xf')](_0x851a('0x9'),auth[_0x851a('0xc')](),controller[_0x851a('0x10')]);module[_0x851a('0x11')]=router;