44dd7aa6dc1176155b6fcce7f38a0234613def19
[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 _0x0a71=['express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./jscriptyProject.controller','get','isAuthenticated','index','/:id','show','getSessions','getAnswers','/:id/summary','30s','getSummary','post','create','clone','put','delete','exports','multer','util','connect-timeout'];(function(_0x58dc25,_0x49b9d5){var _0x21b0a7=function(_0x38a186){while(--_0x38a186){_0x58dc25['push'](_0x58dc25['shift']());}};_0x21b0a7(++_0x49b9d5);}(_0x0a71,0x101));var _0x10a7=function(_0x31d749,_0xf74939){_0x31d749=_0x31d749-0x0;var _0x6d78a3=_0x0a71[_0x31d749];return _0x6d78a3;};'use strict';var multer=require(_0x10a7('0x0'));var util=require(_0x10a7('0x1'));var path=require('path');var timeout=require(_0x10a7('0x2'));var express=require(_0x10a7('0x3'));var router=express[_0x10a7('0x4')]();var fs_extra=require(_0x10a7('0x5'));var auth=require(_0x10a7('0x6'));var interaction=require(_0x10a7('0x7'));var config=require(_0x10a7('0x8'));var controller=require(_0x10a7('0x9'));router[_0x10a7('0xa')]('/',auth[_0x10a7('0xb')](),controller[_0x10a7('0xc')]);router[_0x10a7('0xa')](_0x10a7('0xd'),auth[_0x10a7('0xb')](),controller[_0x10a7('0xe')]);router[_0x10a7('0xa')]('/:id/sessions',auth[_0x10a7('0xb')](),controller[_0x10a7('0xf')]);router['get']('/:id/answers',auth[_0x10a7('0xb')](),controller[_0x10a7('0x10')]);router[_0x10a7('0xa')](_0x10a7('0x11'),auth[_0x10a7('0xb')](),timeout(_0x10a7('0x12')),controller[_0x10a7('0x13')]);router[_0x10a7('0x14')]('/',auth[_0x10a7('0xb')](),controller[_0x10a7('0x15')]);router[_0x10a7('0x14')]('/:id/clone',auth[_0x10a7('0xb')](),controller[_0x10a7('0x16')]);router[_0x10a7('0x17')](_0x10a7('0xd'),auth[_0x10a7('0xb')](),controller['update']);router[_0x10a7('0x18')](_0x10a7('0xd'),auth[_0x10a7('0xb')](),controller['destroy']);module[_0x10a7('0x19')]=router;