779876eaf578ff0799e2e8c9788485f2ceffbf6d
[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 _0x994f=['util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','show','getSessions','/:id/answers','getAnswers','/:id/summary','getSummary','create','post','/:id/clone','clone','put','update','delete','destroy','exports','multer'];(function(_0x360fd3,_0x3761f8){var _0x1a7384=function(_0x29ef7f){while(--_0x29ef7f){_0x360fd3['push'](_0x360fd3['shift']());}};_0x1a7384(++_0x3761f8);}(_0x994f,0x6f));var _0xf994=function(_0x553145,_0x4f9ab8){_0x553145=_0x553145-0x0;var _0x11cfbd=_0x994f[_0x553145];return _0x11cfbd;};'use strict';var multer=require(_0xf994('0x0'));var util=require(_0xf994('0x1'));var path=require(_0xf994('0x2'));var timeout=require(_0xf994('0x3'));var express=require(_0xf994('0x4'));var router=express[_0xf994('0x5')]();var fs_extra=require(_0xf994('0x6'));var auth=require(_0xf994('0x7'));var interaction=require(_0xf994('0x8'));var config=require(_0xf994('0x9'));var controller=require('./jscriptyProject.controller');router[_0xf994('0xa')]('/',auth[_0xf994('0xb')](),controller[_0xf994('0xc')]);router['get']('/:id',auth[_0xf994('0xb')](),controller[_0xf994('0xd')]);router[_0xf994('0xa')]('/:id/sessions',auth[_0xf994('0xb')](),controller[_0xf994('0xe')]);router['get'](_0xf994('0xf'),auth['isAuthenticated'](),controller[_0xf994('0x10')]);router[_0xf994('0xa')](_0xf994('0x11'),auth[_0xf994('0xb')](),timeout('30s'),controller[_0xf994('0x12')]);router['post']('/',auth['isAuthenticated'](),controller[_0xf994('0x13')]);router[_0xf994('0x14')](_0xf994('0x15'),auth[_0xf994('0xb')](),controller[_0xf994('0x16')]);router[_0xf994('0x17')]('/:id',auth['isAuthenticated'](),controller[_0xf994('0x18')]);router[_0xf994('0x19')]('/:id',auth['isAuthenticated'](),controller[_0xf994('0x1a')]);module[_0xf994('0x1b')]=router;