Built motion from commit e6806ed6.|2.6.0
[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 _0xb338=['express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','/:id','isAuthenticated','post','create','put','update','destroy','exports','multer','path','connect-timeout'];(function(_0x10bece,_0x1d03f0){var _0x4bd1a2=function(_0x517a28){while(--_0x517a28){_0x10bece['push'](_0x10bece['shift']());}};_0x4bd1a2(++_0x1d03f0);}(_0xb338,0x8d));var _0x8b33=function(_0x1b5aea,_0x1afe6f){_0x1b5aea=_0x1b5aea-0x0;var _0x51cae9=_0xb338[_0x1b5aea];return _0x51cae9;};'use strict';var multer=require(_0x8b33('0x0'));var util=require('util');var path=require(_0x8b33('0x1'));var timeout=require(_0x8b33('0x2'));var express=require(_0x8b33('0x3'));var router=express[_0x8b33('0x4')]();var fs_extra=require(_0x8b33('0x5'));var auth=require(_0x8b33('0x6'));var interaction=require(_0x8b33('0x7'));var config=require(_0x8b33('0x8'));var controller=require('./dashboardItem.controller');router[_0x8b33('0x9')](_0x8b33('0xa'),auth[_0x8b33('0xb')](),controller['show']);router[_0x8b33('0xc')]('/',auth[_0x8b33('0xb')](),controller[_0x8b33('0xd')]);router[_0x8b33('0xe')](_0x8b33('0xa'),auth[_0x8b33('0xb')](),controller[_0x8b33('0xf')]);router['delete'](_0x8b33('0xa'),auth[_0x8b33('0xb')](),controller[_0x8b33('0x10')]);module[_0x8b33('0x11')]=router;