Built motion from commit (unavailable).|2.5.23
[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 _0xa631=['get','isAuthenticated','describe','show','/:id/questions','getQuestions','create','put','/:id','update','delete','destroy','util','path','connect-timeout','Router','../../config/environment','./jscriptySessionReport.controller'];(function(_0x4d674b,_0x176474){var _0x535a1f=function(_0xac7726){while(--_0xac7726){_0x4d674b['push'](_0x4d674b['shift']());}};_0x535a1f(++_0x176474);}(_0xa631,0xe4));var _0x1a63=function(_0x3a4359,_0x30897b){_0x3a4359=_0x3a4359-0x0;var _0x129be3=_0xa631[_0x3a4359];return _0x129be3;};'use strict';var multer=require('multer');var util=require(_0x1a63('0x0'));var path=require(_0x1a63('0x1'));var timeout=require(_0x1a63('0x2'));var express=require('express');var router=express[_0x1a63('0x3')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x1a63('0x4'));var controller=require(_0x1a63('0x5'));router[_0x1a63('0x6')]('/',auth['isAuthenticated'](),controller['index']);router['get']('/describe',auth[_0x1a63('0x7')](),controller[_0x1a63('0x8')]);router[_0x1a63('0x6')]('/:id',auth['isAuthenticated'](),controller[_0x1a63('0x9')]);router[_0x1a63('0x6')](_0x1a63('0xa'),auth[_0x1a63('0x7')](),controller[_0x1a63('0xb')]);router['post']('/',auth[_0x1a63('0x7')](),controller[_0x1a63('0xc')]);router[_0x1a63('0xd')](_0x1a63('0xe'),auth['isAuthenticated'](),controller[_0x1a63('0xf')]);router[_0x1a63('0x10')](_0x1a63('0xe'),auth['isAuthenticated'](),controller[_0x1a63('0x11')]);module['exports']=router;