Built motion from commit 3c2ce842.|2.6.31
[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 _0xb1f8=['delete','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./jscriptySessionReport.controller','isAuthenticated','index','get','/describe','describe','show','post','create','put','/:id'];(function(_0x30c649,_0x2ebbac){var _0x3edfb9=function(_0xab82f5){while(--_0xab82f5){_0x30c649['push'](_0x30c649['shift']());}};_0x3edfb9(++_0x2ebbac);}(_0xb1f8,0x17d));var _0x8b1f=function(_0x2e0160,_0x592183){_0x2e0160=_0x2e0160-0x0;var _0x12d0b0=_0xb1f8[_0x2e0160];return _0x12d0b0;};'use strict';var multer=require('multer');var util=require(_0x8b1f('0x0'));var path=require(_0x8b1f('0x1'));var timeout=require(_0x8b1f('0x2'));var express=require('express');var router=express[_0x8b1f('0x3')]();var fs_extra=require(_0x8b1f('0x4'));var auth=require(_0x8b1f('0x5'));var interaction=require(_0x8b1f('0x6'));var config=require(_0x8b1f('0x7'));var controller=require(_0x8b1f('0x8'));router['get']('/',auth[_0x8b1f('0x9')](),controller[_0x8b1f('0xa')]);router[_0x8b1f('0xb')](_0x8b1f('0xc'),auth[_0x8b1f('0x9')](),controller[_0x8b1f('0xd')]);router['get']('/:id',auth[_0x8b1f('0x9')](),controller[_0x8b1f('0xe')]);router[_0x8b1f('0xb')]('/:id/questions',auth[_0x8b1f('0x9')](),controller['getQuestions']);router[_0x8b1f('0xf')]('/',auth[_0x8b1f('0x9')](),controller[_0x8b1f('0x10')]);router[_0x8b1f('0x11')](_0x8b1f('0x12'),auth['isAuthenticated'](),controller['update']);router[_0x8b1f('0x13')]('/:id',auth[_0x8b1f('0x9')](),controller['destroy']);module['exports']=router;