37bff3fead48cdac41b7f94abc25f84ae8de3144
[motion2.git] / server / api / jscriptySessionReport / 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 _0xb38d=['multer','util','path','connect-timeout','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','/describe','describe','/:id','show','getQuestions','post','create','update','delete','destroy','exports'];(function(_0x562589,_0x8e5b99){var _0x438f1c=function(_0x5dc727){while(--_0x5dc727){_0x562589['push'](_0x562589['shift']());}};_0x438f1c(++_0x8e5b99);}(_0xb38d,0x8c));var _0xdb38=function(_0x202962,_0x4baf03){_0x202962=_0x202962-0x0;var _0x4896a0=_0xb38d[_0x202962];return _0x4896a0;};'use strict';var multer=require(_0xdb38('0x0'));var util=require(_0xdb38('0x1'));var path=require(_0xdb38('0x2'));var timeout=require(_0xdb38('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xdb38('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xdb38('0x5'));var config=require(_0xdb38('0x6'));var controller=require('./jscriptySessionReport.controller');router[_0xdb38('0x7')]('/',auth[_0xdb38('0x8')](),controller['index']);router[_0xdb38('0x7')](_0xdb38('0x9'),auth[_0xdb38('0x8')](),controller[_0xdb38('0xa')]);router[_0xdb38('0x7')](_0xdb38('0xb'),auth[_0xdb38('0x8')](),controller[_0xdb38('0xc')]);router[_0xdb38('0x7')]('/:id/questions',auth[_0xdb38('0x8')](),controller[_0xdb38('0xd')]);router[_0xdb38('0xe')]('/',auth['isAuthenticated'](),controller[_0xdb38('0xf')]);router['put'](_0xdb38('0xb'),auth[_0xdb38('0x8')](),controller[_0xdb38('0x10')]);router[_0xdb38('0x11')](_0xdb38('0xb'),auth[_0xdb38('0x8')](),controller[_0xdb38('0x12')]);module[_0xdb38('0x13')]=router;