Built motion from commit (unavailable).|2.5.23
[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 _0x6731=['/:id','/:id/answers','getAnswers','30s','getSummary','post','create','/:id/clone','update','delete','destroy','exports','multer','util','path','connect-timeout','Router','../../components/interaction/service','isAuthenticated','index','get'];(function(_0x105a91,_0x22d215){var _0x2479c5=function(_0x5568a0){while(--_0x5568a0){_0x105a91['push'](_0x105a91['shift']());}};_0x2479c5(++_0x22d215);}(_0x6731,0x147));var _0x1673=function(_0x1aae33,_0x110a80){_0x1aae33=_0x1aae33-0x0;var _0x2e91e9=_0x6731[_0x1aae33];return _0x2e91e9;};'use strict';var multer=require(_0x1673('0x0'));var util=require(_0x1673('0x1'));var path=require(_0x1673('0x2'));var timeout=require(_0x1673('0x3'));var express=require('express');var router=express[_0x1673('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x1673('0x5'));var config=require('../../config/environment');var controller=require('./jscriptyProject.controller');router['get']('/',auth[_0x1673('0x6')](),controller[_0x1673('0x7')]);router[_0x1673('0x8')](_0x1673('0x9'),auth[_0x1673('0x6')](),controller['show']);router[_0x1673('0x8')]('/:id/sessions',auth[_0x1673('0x6')](),controller['getSessions']);router[_0x1673('0x8')](_0x1673('0xa'),auth[_0x1673('0x6')](),controller[_0x1673('0xb')]);router[_0x1673('0x8')]('/:id/summary',auth[_0x1673('0x6')](),timeout(_0x1673('0xc')),controller[_0x1673('0xd')]);router[_0x1673('0xe')]('/',auth[_0x1673('0x6')](),controller[_0x1673('0xf')]);router['post'](_0x1673('0x10'),auth['isAuthenticated'](),controller['clone']);router['put']('/:id',auth['isAuthenticated'](),controller[_0x1673('0x11')]);router[_0x1673('0x12')](_0x1673('0x9'),auth['isAuthenticated'](),controller[_0x1673('0x13')]);module[_0x1673('0x14')]=router;