ec2adf3fa7caf91779f2c61c2fa97b48040453ba
[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 _0xaaf5=['/:id/sessions','getSessions','/:id/answers','getAnswers','30s','post','/:id/clone','clone','put','/:id','update','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','show'];(function(_0x8173ea,_0x1fc9a0){var _0x8c61b2=function(_0x5bc017){while(--_0x5bc017){_0x8173ea['push'](_0x8173ea['shift']());}};_0x8c61b2(++_0x1fc9a0);}(_0xaaf5,0x14d));var _0x5aaf=function(_0x291a60,_0x1efaba){_0x291a60=_0x291a60-0x0;var _0x3e4f64=_0xaaf5[_0x291a60];return _0x3e4f64;};'use strict';var multer=require(_0x5aaf('0x0'));var util=require(_0x5aaf('0x1'));var path=require(_0x5aaf('0x2'));var timeout=require(_0x5aaf('0x3'));var express=require(_0x5aaf('0x4'));var router=express[_0x5aaf('0x5')]();var auth=require(_0x5aaf('0x6'));var interaction=require(_0x5aaf('0x7'));var config=require('../../config/environment');var controller=require('./jscriptyProject.controller');router[_0x5aaf('0x8')]('/',auth[_0x5aaf('0x9')](),controller[_0x5aaf('0xa')]);router[_0x5aaf('0x8')]('/:id',auth['isAuthenticated'](),controller[_0x5aaf('0xb')]);router[_0x5aaf('0x8')](_0x5aaf('0xc'),auth[_0x5aaf('0x9')](),controller[_0x5aaf('0xd')]);router['get'](_0x5aaf('0xe'),auth[_0x5aaf('0x9')](),controller[_0x5aaf('0xf')]);router[_0x5aaf('0x8')]('/:id/summary',auth[_0x5aaf('0x9')](),timeout(_0x5aaf('0x10')),controller['getSummary']);router[_0x5aaf('0x11')]('/',auth[_0x5aaf('0x9')](),controller['create']);router[_0x5aaf('0x11')](_0x5aaf('0x12'),auth[_0x5aaf('0x9')](),controller[_0x5aaf('0x13')]);router[_0x5aaf('0x14')](_0x5aaf('0x15'),auth[_0x5aaf('0x9')](),controller[_0x5aaf('0x16')]);router['delete'](_0x5aaf('0x15'),auth[_0x5aaf('0x9')](),controller['destroy']);module['exports']=router;