5d194db5ff43f81b770ff81bb62592955c0926f7
[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 _0xba48=['show','post','create','delete','destroy','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','index','isAuthenticated','describe','/:id'];(function(_0x9eb2b0,_0x387c06){var _0x3936bf=function(_0x3f14dc){while(--_0x3f14dc){_0x9eb2b0['push'](_0x9eb2b0['shift']());}};_0x3936bf(++_0x387c06);}(_0xba48,0x78));var _0x8ba4=function(_0x5037ab,_0x43209e){_0x5037ab=_0x5037ab-0x0;var _0x512adb=_0xba48[_0x5037ab];return _0x512adb;};'use strict';var multer=require(_0x8ba4('0x0'));var util=require(_0x8ba4('0x1'));var path=require('path');var timeout=require(_0x8ba4('0x2'));var express=require(_0x8ba4('0x3'));var router=express[_0x8ba4('0x4')]();var fs_extra=require(_0x8ba4('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x8ba4('0x6'));var config=require(_0x8ba4('0x7'));var controller=require('./jscriptyQuestionReport.controller');router[_0x8ba4('0x8')]('/',auth['isAuthenticated'](),controller[_0x8ba4('0x9')]);router[_0x8ba4('0x8')]('/describe',auth[_0x8ba4('0xa')](),controller[_0x8ba4('0xb')]);router[_0x8ba4('0x8')](_0x8ba4('0xc'),auth['isAuthenticated'](),controller[_0x8ba4('0xd')]);router[_0x8ba4('0xe')]('/',auth[_0x8ba4('0xa')](),controller[_0x8ba4('0xf')]);router['put'](_0x8ba4('0xc'),auth['isAuthenticated'](),controller['update']);router[_0x8ba4('0x10')](_0x8ba4('0xc'),auth['isAuthenticated'](),controller[_0x8ba4('0x11')]);module[_0x8ba4('0x12')]=router;