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