Built motion from commit 9d7072cc.|2.5.39
[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 _0xf925=['../../config/environment','get','isAuthenticated','index','getSessions','getAnswers','getSummary','post','clone','/:id','update','delete','destroy','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x710815,_0x520da8){var _0x5b3b89=function(_0x2e1a8e){while(--_0x2e1a8e){_0x710815['push'](_0x710815['shift']());}};_0x5b3b89(++_0x520da8);}(_0xf925,0x1db));var _0x5f92=function(_0x196995,_0x2575dd){_0x196995=_0x196995-0x0;var _0x1ff73a=_0xf925[_0x196995];return _0x1ff73a;};'use strict';var multer=require(_0x5f92('0x0'));var util=require(_0x5f92('0x1'));var path=require(_0x5f92('0x2'));var timeout=require('connect-timeout');var express=require(_0x5f92('0x3'));var router=express[_0x5f92('0x4')]();var fs_extra=require(_0x5f92('0x5'));var auth=require(_0x5f92('0x6'));var interaction=require(_0x5f92('0x7'));var config=require(_0x5f92('0x8'));var controller=require('./jscriptyProject.controller');router[_0x5f92('0x9')]('/',auth[_0x5f92('0xa')](),controller[_0x5f92('0xb')]);router[_0x5f92('0x9')]('/:id',auth[_0x5f92('0xa')](),controller['show']);router[_0x5f92('0x9')]('/:id/sessions',auth[_0x5f92('0xa')](),controller[_0x5f92('0xc')]);router['get']('/:id/answers',auth[_0x5f92('0xa')](),controller[_0x5f92('0xd')]);router['get']('/:id/summary',auth[_0x5f92('0xa')](),timeout('30s'),controller[_0x5f92('0xe')]);router[_0x5f92('0xf')]('/',auth['isAuthenticated'](),controller['create']);router[_0x5f92('0xf')]('/:id/clone',auth[_0x5f92('0xa')](),controller[_0x5f92('0x10')]);router['put'](_0x5f92('0x11'),auth['isAuthenticated'](),controller[_0x5f92('0x12')]);router[_0x5f92('0x13')]('/:id',auth[_0x5f92('0xa')](),controller[_0x5f92('0x14')]);module['exports']=router;