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 _0x1a44=['path','connect-timeout','express','../../config/environment','get','/:id','isAuthenticated','show','put','update','exports'];(function(_0x170682,_0x1fe7b7){var _0x2d9f0e=function(_0x1912d7){while(--_0x1912d7){_0x170682['push'](_0x170682['shift']());}};_0x2d9f0e(++_0x1fe7b7);}(_0x1a44,0x1ce));var _0x41a4=function(_0x360076,_0x5e3ad5){_0x360076=_0x360076-0x0;var _0x27c6ec=_0x1a44[_0x360076];return _0x27c6ec;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x41a4('0x0'));var timeout=require(_0x41a4('0x1'));var express=require(_0x41a4('0x2'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x41a4('0x3'));var controller=require('./dashboardItem.controller');router[_0x41a4('0x4')](_0x41a4('0x5'),auth[_0x41a4('0x6')](),controller[_0x41a4('0x7')]);router['post']('/',auth[_0x41a4('0x6')](),controller['create']);router[_0x41a4('0x8')]('/:id',auth[_0x41a4('0x6')](),controller[_0x41a4('0x9')]);router['delete'](_0x41a4('0x5'),auth[_0x41a4('0x6')](),controller['destroy']);module[_0x41a4('0xa')]=router;