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