Built motion from commit c116dc8b.|2.6.30
[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 _0x7710=['get','/describe','isAuthenticated','describe','show','/:id/questions','getQuestions','post','create','put','/:id','update','delete','exports','util','path','express','fs-extra','../../components/interaction/service','../../config/environment','./jscriptySessionReport.controller'];(function(_0x8704bb,_0x4459d6){var _0x2f7dff=function(_0x5e8753){while(--_0x5e8753){_0x8704bb['push'](_0x8704bb['shift']());}};_0x2f7dff(++_0x4459d6);}(_0x7710,0x77));var _0x0771=function(_0x1e05c1,_0x3cffa3){_0x1e05c1=_0x1e05c1-0x0;var _0x15f1ca=_0x7710[_0x1e05c1];return _0x15f1ca;};'use strict';var multer=require('multer');var util=require(_0x0771('0x0'));var path=require(_0x0771('0x1'));var timeout=require('connect-timeout');var express=require(_0x0771('0x2'));var router=express['Router']();var fs_extra=require(_0x0771('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0x0771('0x4'));var config=require(_0x0771('0x5'));var controller=require(_0x0771('0x6'));router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0x0771('0x7')](_0x0771('0x8'),auth[_0x0771('0x9')](),controller[_0x0771('0xa')]);router['get']('/:id',auth[_0x0771('0x9')](),controller[_0x0771('0xb')]);router[_0x0771('0x7')](_0x0771('0xc'),auth[_0x0771('0x9')](),controller[_0x0771('0xd')]);router[_0x0771('0xe')]('/',auth['isAuthenticated'](),controller[_0x0771('0xf')]);router[_0x0771('0x10')](_0x0771('0x11'),auth[_0x0771('0x9')](),controller[_0x0771('0x12')]);router[_0x0771('0x13')]('/:id',auth[_0x0771('0x9')](),controller['destroy']);module[_0x0771('0x14')]=router;