Built motion from commit 639a1a7f.|2.6.19
[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 _0xe186=['getSessions','getAnswers','30s','getSummary','post','create','/:id/clone','clone','put','update','exports','util','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/:id','show','/:id/sessions'];(function(_0x3947c9,_0x4d6c97){var _0x2e7871=function(_0x1236cc){while(--_0x1236cc){_0x3947c9['push'](_0x3947c9['shift']());}};_0x2e7871(++_0x4d6c97);}(_0xe186,0x192));var _0x6e18=function(_0x1bc202,_0x488b89){_0x1bc202=_0x1bc202-0x0;var _0x58a164=_0xe186[_0x1bc202];return _0x58a164;};'use strict';var multer=require('multer');var util=require(_0x6e18('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x6e18('0x1'));var router=express[_0x6e18('0x2')]();var fs_extra=require('fs-extra');var auth=require(_0x6e18('0x3'));var interaction=require(_0x6e18('0x4'));var config=require(_0x6e18('0x5'));var controller=require('./jscriptyProject.controller');router['get']('/',auth[_0x6e18('0x6')](),controller[_0x6e18('0x7')]);router[_0x6e18('0x8')](_0x6e18('0x9'),auth[_0x6e18('0x6')](),controller[_0x6e18('0xa')]);router[_0x6e18('0x8')](_0x6e18('0xb'),auth[_0x6e18('0x6')](),controller[_0x6e18('0xc')]);router['get']('/:id/answers',auth[_0x6e18('0x6')](),controller[_0x6e18('0xd')]);router['get']('/:id/summary',auth['isAuthenticated'](),timeout(_0x6e18('0xe')),controller[_0x6e18('0xf')]);router[_0x6e18('0x10')]('/',auth[_0x6e18('0x6')](),controller[_0x6e18('0x11')]);router[_0x6e18('0x10')](_0x6e18('0x12'),auth[_0x6e18('0x6')](),controller[_0x6e18('0x13')]);router[_0x6e18('0x14')]('/:id',auth[_0x6e18('0x6')](),controller[_0x6e18('0x15')]);router['delete'](_0x6e18('0x9'),auth[_0x6e18('0x6')](),controller['destroy']);module[_0x6e18('0x16')]=router;