700930eca8b553c478e9987adfee79cdb8975e6a
[motion2.git] / server / api / jscriptyProject / 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 _0x61a8=['./jscriptyProject.controller','isAuthenticated','get','/:id','getSessions','/:id/answers','getAnswers','/:id/summary','30s','post','create','update','delete','destroy','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x357edb,_0x548d79){var _0x5354c3=function(_0x120c63){while(--_0x120c63){_0x357edb['push'](_0x357edb['shift']());}};_0x5354c3(++_0x548d79);}(_0x61a8,0xdd));var _0x861a=function(_0x114bf1,_0x16ac4a){_0x114bf1=_0x114bf1-0x0;var _0x58072f=_0x61a8[_0x114bf1];return _0x58072f;};'use strict';var multer=require(_0x861a('0x0'));var util=require('util');var path=require(_0x861a('0x1'));var timeout=require(_0x861a('0x2'));var express=require(_0x861a('0x3'));var router=express[_0x861a('0x4')]();var fs_extra=require(_0x861a('0x5'));var auth=require(_0x861a('0x6'));var interaction=require(_0x861a('0x7'));var config=require(_0x861a('0x8'));var controller=require(_0x861a('0x9'));router['get']('/',auth[_0x861a('0xa')](),controller['index']);router[_0x861a('0xb')](_0x861a('0xc'),auth[_0x861a('0xa')](),controller['show']);router[_0x861a('0xb')]('/:id/sessions',auth[_0x861a('0xa')](),controller[_0x861a('0xd')]);router[_0x861a('0xb')](_0x861a('0xe'),auth['isAuthenticated'](),controller[_0x861a('0xf')]);router[_0x861a('0xb')](_0x861a('0x10'),auth[_0x861a('0xa')](),timeout(_0x861a('0x11')),controller['getSummary']);router[_0x861a('0x12')]('/',auth[_0x861a('0xa')](),controller[_0x861a('0x13')]);router['post']('/:id/clone',auth[_0x861a('0xa')](),controller['clone']);router['put'](_0x861a('0xc'),auth[_0x861a('0xa')](),controller[_0x861a('0x14')]);router[_0x861a('0x15')](_0x861a('0xc'),auth[_0x861a('0xa')](),controller[_0x861a('0x16')]);module['exports']=router;