89cc0c000b215d52398aa31dffd9590d8a073eb8
[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 _0x8abd=['get','isAuthenticated','index','describe','/:id','show','getQuestions','post','create','put','delete','destroy','multer','util','path','connect-timeout','express','Router','fs-extra','../../config/environment'];(function(_0x2dafbe,_0x5d04de){var _0x58a45a=function(_0x50ac96){while(--_0x50ac96){_0x2dafbe['push'](_0x2dafbe['shift']());}};_0x58a45a(++_0x5d04de);}(_0x8abd,0xfc));var _0xd8ab=function(_0x58290d,_0x5f1688){_0x58290d=_0x58290d-0x0;var _0x12a14d=_0x8abd[_0x58290d];return _0x12a14d;};'use strict';var multer=require(_0xd8ab('0x0'));var util=require(_0xd8ab('0x1'));var path=require(_0xd8ab('0x2'));var timeout=require(_0xd8ab('0x3'));var express=require(_0xd8ab('0x4'));var router=express[_0xd8ab('0x5')]();var fs_extra=require(_0xd8ab('0x6'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xd8ab('0x7'));var controller=require('./jscriptySessionReport.controller');router[_0xd8ab('0x8')]('/',auth[_0xd8ab('0x9')](),controller[_0xd8ab('0xa')]);router['get']('/describe',auth[_0xd8ab('0x9')](),controller[_0xd8ab('0xb')]);router[_0xd8ab('0x8')](_0xd8ab('0xc'),auth[_0xd8ab('0x9')](),controller[_0xd8ab('0xd')]);router['get']('/:id/questions',auth[_0xd8ab('0x9')](),controller[_0xd8ab('0xe')]);router[_0xd8ab('0xf')]('/',auth['isAuthenticated'](),controller[_0xd8ab('0x10')]);router[_0xd8ab('0x11')](_0xd8ab('0xc'),auth[_0xd8ab('0x9')](),controller['update']);router[_0xd8ab('0x12')](_0xd8ab('0xc'),auth['isAuthenticated'](),controller[_0xd8ab('0x13')]);module['exports']=router;