Built motion from commit b0a9a629.|2.6.33
[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 _0xc89a=['express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','getSessions','getAnswers','/:id/summary','30s','getSummary','post','create','/:id/clone','clone','put','update','delete','destroy','exports','multer','util','path','connect-timeout'];(function(_0x44d144,_0x2e6dbf){var _0x258c86=function(_0x1064b7){while(--_0x1064b7){_0x44d144['push'](_0x44d144['shift']());}};_0x258c86(++_0x2e6dbf);}(_0xc89a,0x88));var _0xac89=function(_0x54a155,_0x29fe9b){_0x54a155=_0x54a155-0x0;var _0x45ae64=_0xc89a[_0x54a155];return _0x45ae64;};'use strict';var multer=require(_0xac89('0x0'));var util=require(_0xac89('0x1'));var path=require(_0xac89('0x2'));var timeout=require(_0xac89('0x3'));var express=require(_0xac89('0x4'));var router=express['Router']();var fs_extra=require(_0xac89('0x5'));var auth=require(_0xac89('0x6'));var interaction=require(_0xac89('0x7'));var config=require(_0xac89('0x8'));var controller=require('./jscriptyProject.controller');router[_0xac89('0x9')]('/',auth[_0xac89('0xa')](),controller[_0xac89('0xb')]);router[_0xac89('0x9')](_0xac89('0xc'),auth[_0xac89('0xa')](),controller[_0xac89('0xd')]);router['get']('/:id/sessions',auth[_0xac89('0xa')](),controller[_0xac89('0xe')]);router[_0xac89('0x9')]('/:id/answers',auth[_0xac89('0xa')](),controller[_0xac89('0xf')]);router[_0xac89('0x9')](_0xac89('0x10'),auth[_0xac89('0xa')](),timeout(_0xac89('0x11')),controller[_0xac89('0x12')]);router[_0xac89('0x13')]('/',auth[_0xac89('0xa')](),controller[_0xac89('0x14')]);router[_0xac89('0x13')](_0xac89('0x15'),auth[_0xac89('0xa')](),controller[_0xac89('0x16')]);router[_0xac89('0x17')](_0xac89('0xc'),auth[_0xac89('0xa')](),controller[_0xac89('0x18')]);router[_0xac89('0x19')]('/:id',auth['isAuthenticated'](),controller[_0xac89('0x1a')]);module[_0xac89('0x1b')]=router;