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