eeb91166cfb981d4ab0ce532d2ee3a3d16d6e245
[motion2.git] / server / api / dashboard / 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 _0xc0a2=['show','/:id/items','post','create','/:id/clone','addItem','put','delete','destroy','util','express','Router','../../components/auth/service','../../components/interaction/service','./dashboard.controller','get','/:id','isAuthenticated'];(function(_0x122096,_0x60c295){var _0x3d1966=function(_0x3d569e){while(--_0x3d569e){_0x122096['push'](_0x122096['shift']());}};_0x3d1966(++_0x60c295);}(_0xc0a2,0x99));var _0x2c0a=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0xc0a2[_0x14add3];return _0x4a174f;};'use strict';var multer=require('multer');var util=require(_0x2c0a('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x2c0a('0x1'));var router=express[_0x2c0a('0x2')]();var fs_extra=require('fs-extra');var auth=require(_0x2c0a('0x3'));var interaction=require(_0x2c0a('0x4'));var config=require('../../config/environment');var controller=require(_0x2c0a('0x5'));router[_0x2c0a('0x6')]('/',auth['isAuthenticated'](),controller['index']);router['get'](_0x2c0a('0x7'),auth[_0x2c0a('0x8')](),controller[_0x2c0a('0x9')]);router[_0x2c0a('0x6')](_0x2c0a('0xa'),auth[_0x2c0a('0x8')](),controller['getItems']);router[_0x2c0a('0xb')]('/',auth['isAuthenticated'](),controller[_0x2c0a('0xc')]);router['post'](_0x2c0a('0xd'),auth[_0x2c0a('0x8')](),controller['clone']);router[_0x2c0a('0xb')]('/:id/items',auth[_0x2c0a('0x8')](),controller[_0x2c0a('0xe')]);router[_0x2c0a('0xf')](_0x2c0a('0x7'),auth[_0x2c0a('0x8')](),controller['update']);router[_0x2c0a('0x10')](_0x2c0a('0x7'),auth[_0x2c0a('0x8')](),controller[_0x2c0a('0x11')]);module['exports']=router;