2f891e8e266733591a569eed887f437c39921edb
[motion2.git] / server / api / dashboardItem / 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 _0x5fa4=['delete','destroy','exports','multer','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','get','/:id','isAuthenticated','show','post','put'];(function(_0x460e71,_0x5cf74f){var _0x1d48f0=function(_0x4adfcf){while(--_0x4adfcf){_0x460e71['push'](_0x460e71['shift']());}};_0x1d48f0(++_0x5cf74f);}(_0x5fa4,0x153));var _0x45fa=function(_0xbca1b1,_0x33f0ce){_0xbca1b1=_0xbca1b1-0x0;var _0x4e1686=_0x5fa4[_0xbca1b1];return _0x4e1686;};'use strict';var multer=require(_0x45fa('0x0'));var util=require('util');var path=require(_0x45fa('0x1'));var timeout=require(_0x45fa('0x2'));var express=require(_0x45fa('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x45fa('0x4'));var interaction=require(_0x45fa('0x5'));var config=require(_0x45fa('0x6'));var controller=require('./dashboardItem.controller');router[_0x45fa('0x7')](_0x45fa('0x8'),auth[_0x45fa('0x9')](),controller[_0x45fa('0xa')]);router[_0x45fa('0xb')]('/',auth['isAuthenticated'](),controller['create']);router[_0x45fa('0xc')]('/:id',auth[_0x45fa('0x9')](),controller['update']);router[_0x45fa('0xd')](_0x45fa('0x8'),auth[_0x45fa('0x9')](),controller[_0x45fa('0xe')]);module[_0x45fa('0xf')]=router;