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