Built motion from commit 87cd5f02.|2.5.48
[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 _0x4f9f=['/describe','isAuthenticated','describe','/:id/questions','post','create','put','update','delete','/:id','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','get','index'];(function(_0x26eaf0,_0x130e57){var _0x17fef3=function(_0x46ff91){while(--_0x46ff91){_0x26eaf0['push'](_0x26eaf0['shift']());}};_0x17fef3(++_0x130e57);}(_0x4f9f,0x137));var _0xf4f9=function(_0x52ded2,_0x12f434){_0x52ded2=_0x52ded2-0x0;var _0x2675fc=_0x4f9f[_0x52ded2];return _0x2675fc;};'use strict';var multer=require(_0xf4f9('0x0'));var util=require(_0xf4f9('0x1'));var path=require(_0xf4f9('0x2'));var timeout=require(_0xf4f9('0x3'));var express=require(_0xf4f9('0x4'));var router=express[_0xf4f9('0x5')]();var fs_extra=require(_0xf4f9('0x6'));var auth=require(_0xf4f9('0x7'));var interaction=require('../../components/interaction/service');var config=require(_0xf4f9('0x8'));var controller=require('./jscriptySessionReport.controller');router[_0xf4f9('0x9')]('/',auth['isAuthenticated'](),controller[_0xf4f9('0xa')]);router[_0xf4f9('0x9')](_0xf4f9('0xb'),auth[_0xf4f9('0xc')](),controller[_0xf4f9('0xd')]);router[_0xf4f9('0x9')]('/:id',auth[_0xf4f9('0xc')](),controller['show']);router[_0xf4f9('0x9')](_0xf4f9('0xe'),auth[_0xf4f9('0xc')](),controller['getQuestions']);router[_0xf4f9('0xf')]('/',auth[_0xf4f9('0xc')](),controller[_0xf4f9('0x10')]);router[_0xf4f9('0x11')]('/:id',auth['isAuthenticated'](),controller[_0xf4f9('0x12')]);router[_0xf4f9('0x13')](_0xf4f9('0x14'),auth['isAuthenticated'](),controller[_0xf4f9('0x15')]);module[_0xf4f9('0x16')]=router;