d68c74ac35ff8810e528dd166d9029d9123c3818
[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 _0x0c4c=['path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','./jscriptySessionReport.controller','index','get','isAuthenticated','/:id','show','getQuestions','post','create','put','update','destroy','exports','multer'];(function(_0x6c450d,_0x979ea4){var _0x51df30=function(_0x4f41b7){while(--_0x4f41b7){_0x6c450d['push'](_0x6c450d['shift']());}};_0x51df30(++_0x979ea4);}(_0x0c4c,0x1a1));var _0xc0c4=function(_0x471275,_0x49194e){_0x471275=_0x471275-0x0;var _0x3c4542=_0x0c4c[_0x471275];return _0x3c4542;};'use strict';var multer=require(_0xc0c4('0x0'));var util=require('util');var path=require(_0xc0c4('0x1'));var timeout=require(_0xc0c4('0x2'));var express=require('express');var router=express[_0xc0c4('0x3')]();var auth=require(_0xc0c4('0x4'));var interaction=require(_0xc0c4('0x5'));var config=require('../../config/environment');var controller=require(_0xc0c4('0x6'));router['get']('/',auth['isAuthenticated'](),controller[_0xc0c4('0x7')]);router[_0xc0c4('0x8')]('/describe',auth[_0xc0c4('0x9')](),controller['describe']);router[_0xc0c4('0x8')](_0xc0c4('0xa'),auth['isAuthenticated'](),controller[_0xc0c4('0xb')]);router['get']('/:id/questions',auth[_0xc0c4('0x9')](),controller[_0xc0c4('0xc')]);router[_0xc0c4('0xd')]('/',auth[_0xc0c4('0x9')](),controller[_0xc0c4('0xe')]);router[_0xc0c4('0xf')](_0xc0c4('0xa'),auth[_0xc0c4('0x9')](),controller[_0xc0c4('0x10')]);router['delete'](_0xc0c4('0xa'),auth['isAuthenticated'](),controller[_0xc0c4('0x11')]);module[_0xc0c4('0x12')]=router;