1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x15ba=['put','/:id','update','delete','destroy','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','isAuthenticated','index','get','show','/:id/items','post','create','addItem'];(function(_0xe34280,_0x2117ec){var _0x455c28=function(_0x58b955){while(--_0x58b955){_0xe34280['push'](_0xe34280['shift']());}};_0x455c28(++_0x2117ec);}(_0x15ba,0x1bd));var _0xa15b=function(_0x46efd7,_0x43f84d){_0x46efd7=_0x46efd7-0x0;var _0x5637e4=_0x15ba[_0x46efd7];return _0x5637e4;};'use strict';var multer=require(_0xa15b('0x0'));var util=require(_0xa15b('0x1'));var path=require(_0xa15b('0x2'));var timeout=require(_0xa15b('0x3'));var express=require(_0xa15b('0x4'));var router=express[_0xa15b('0x5')]();var fs_extra=require(_0xa15b('0x6'));var auth=require(_0xa15b('0x7'));var interaction=require(_0xa15b('0x8'));var config=require('../../config/environment');var controller=require('./dashboard.controller');router['get']('/',auth[_0xa15b('0x9')](),controller[_0xa15b('0xa')]);router[_0xa15b('0xb')]('/:id',auth[_0xa15b('0x9')](),controller[_0xa15b('0xc')]);router[_0xa15b('0xb')](_0xa15b('0xd'),auth[_0xa15b('0x9')](),controller['getItems']);router[_0xa15b('0xe')]('/',auth[_0xa15b('0x9')](),controller[_0xa15b('0xf')]);router[_0xa15b('0xe')]('/:id/clone',auth[_0xa15b('0x9')](),controller['clone']);router['post'](_0xa15b('0xd'),auth[_0xa15b('0x9')](),controller[_0xa15b('0x10')]);router[_0xa15b('0x11')](_0xa15b('0x12'),auth[_0xa15b('0x9')](),controller[_0xa15b('0x13')]);router[_0xa15b('0x14')](_0xa15b('0x12'),auth[_0xa15b('0x9')](),controller[_0xa15b('0x15')]);module['exports']=router;