Built motion from commit ff78e754.|2.6.29
[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 _0x04b1=['util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/questions','post','put','update','destroy','exports','multer'];(function(_0x596ae5,_0xfc0560){var _0x1a6863=function(_0x12f932){while(--_0x12f932){_0x596ae5['push'](_0x596ae5['shift']());}};_0x1a6863(++_0xfc0560);}(_0x04b1,0x175));var _0x104b=function(_0x3902c1,_0x1c9eb2){_0x3902c1=_0x3902c1-0x0;var _0x1266cc=_0x04b1[_0x3902c1];return _0x1266cc;};'use strict';var multer=require(_0x104b('0x0'));var util=require(_0x104b('0x1'));var path=require('path');var timeout=require(_0x104b('0x2'));var express=require(_0x104b('0x3'));var router=express[_0x104b('0x4')]();var fs_extra=require(_0x104b('0x5'));var auth=require(_0x104b('0x6'));var interaction=require(_0x104b('0x7'));var config=require(_0x104b('0x8'));var controller=require('./jscriptySessionReport.controller');router[_0x104b('0x9')]('/',auth[_0x104b('0xa')](),controller[_0x104b('0xb')]);router[_0x104b('0x9')](_0x104b('0xc'),auth[_0x104b('0xa')](),controller[_0x104b('0xd')]);router['get'](_0x104b('0xe'),auth['isAuthenticated'](),controller[_0x104b('0xf')]);router[_0x104b('0x9')](_0x104b('0x10'),auth[_0x104b('0xa')](),controller['getQuestions']);router[_0x104b('0x11')]('/',auth[_0x104b('0xa')](),controller['create']);router[_0x104b('0x12')](_0x104b('0xe'),auth[_0x104b('0xa')](),controller[_0x104b('0x13')]);router['delete'](_0x104b('0xe'),auth[_0x104b('0xa')](),controller[_0x104b('0x14')]);module[_0x104b('0x15')]=router;