9e234fec56f999087a7e1424962e10a610116fe8
[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 _0x6963=['describe','get','/:id','show','/:id/questions','create','put','update','destroy','exports','multer','util','path','connect-timeout','express','Router','../../config/environment','./jscriptySessionReport.controller','isAuthenticated','index','/describe'];(function(_0x3f49f0,_0x38fd8c){var _0x37586f=function(_0x5c76c8){while(--_0x5c76c8){_0x3f49f0['push'](_0x3f49f0['shift']());}};_0x37586f(++_0x38fd8c);}(_0x6963,0xf1));var _0x3696=function(_0xeab08f,_0x4000f2){_0xeab08f=_0xeab08f-0x0;var _0x5b563e=_0x6963[_0xeab08f];return _0x5b563e;};'use strict';var multer=require(_0x3696('0x0'));var util=require(_0x3696('0x1'));var path=require(_0x3696('0x2'));var timeout=require(_0x3696('0x3'));var express=require(_0x3696('0x4'));var router=express[_0x3696('0x5')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x3696('0x6'));var controller=require(_0x3696('0x7'));router['get']('/',auth[_0x3696('0x8')](),controller[_0x3696('0x9')]);router['get'](_0x3696('0xa'),auth[_0x3696('0x8')](),controller[_0x3696('0xb')]);router[_0x3696('0xc')](_0x3696('0xd'),auth[_0x3696('0x8')](),controller[_0x3696('0xe')]);router[_0x3696('0xc')](_0x3696('0xf'),auth[_0x3696('0x8')](),controller['getQuestions']);router['post']('/',auth['isAuthenticated'](),controller[_0x3696('0x10')]);router[_0x3696('0x11')](_0x3696('0xd'),auth['isAuthenticated'](),controller[_0x3696('0x12')]);router['delete'](_0x3696('0xd'),auth[_0x3696('0x8')](),controller[_0x3696('0x13')]);module[_0x3696('0x14')]=router;