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