7706bf6cabe2c6526caa87f71b575ba3614223a8
[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 _0xfc76=['exports','util','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','get','index','/describe','describe','/:id','isAuthenticated','show','getQuestions','post','create','put','update'];(function(_0x5afc0a,_0x4104d8){var _0x45a4ad=function(_0x1948ef){while(--_0x1948ef){_0x5afc0a['push'](_0x5afc0a['shift']());}};_0x45a4ad(++_0x4104d8);}(_0xfc76,0xb5));var _0x6fc7=function(_0x891959,_0x139d11){_0x891959=_0x891959-0x0;var _0x1b69ae=_0xfc76[_0x891959];return _0x1b69ae;};'use strict';var multer=require('multer');var util=require(_0x6fc7('0x0'));var path=require(_0x6fc7('0x1'));var timeout=require(_0x6fc7('0x2'));var express=require(_0x6fc7('0x3'));var router=express[_0x6fc7('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x6fc7('0x5'));var config=require(_0x6fc7('0x6'));var controller=require('./jscriptySessionReport.controller');router[_0x6fc7('0x7')]('/',auth['isAuthenticated'](),controller[_0x6fc7('0x8')]);router[_0x6fc7('0x7')](_0x6fc7('0x9'),auth['isAuthenticated'](),controller[_0x6fc7('0xa')]);router[_0x6fc7('0x7')](_0x6fc7('0xb'),auth[_0x6fc7('0xc')](),controller[_0x6fc7('0xd')]);router[_0x6fc7('0x7')]('/:id/questions',auth[_0x6fc7('0xc')](),controller[_0x6fc7('0xe')]);router[_0x6fc7('0xf')]('/',auth[_0x6fc7('0xc')](),controller[_0x6fc7('0x10')]);router[_0x6fc7('0x11')]('/:id',auth[_0x6fc7('0xc')](),controller[_0x6fc7('0x12')]);router['delete'](_0x6fc7('0xb'),auth[_0x6fc7('0xc')](),controller['destroy']);module[_0x6fc7('0x13')]=router;