Built motion from commit (unavailable).|2.4.4
[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 _0x8736=['destroy','exports','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','/:id','isAuthenticated','show','post','create','put'];(function(_0x246426,_0x505c21){var _0x320fcf=function(_0x5f50dc){while(--_0x5f50dc){_0x246426['push'](_0x246426['shift']());}};_0x320fcf(++_0x505c21);}(_0x8736,0x12d));var _0x6873=function(_0x1fda14,_0x25c6ed){_0x1fda14=_0x1fda14-0x0;var _0x5264cf=_0x8736[_0x1fda14];return _0x5264cf;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0x6873('0x0'));var express=require('express');var router=express[_0x6873('0x1')]();var auth=require(_0x6873('0x2'));var interaction=require(_0x6873('0x3'));var config=require(_0x6873('0x4'));var controller=require('./dashboardItem.controller');router['get'](_0x6873('0x5'),auth[_0x6873('0x6')](),controller[_0x6873('0x7')]);router[_0x6873('0x8')]('/',auth[_0x6873('0x6')](),controller[_0x6873('0x9')]);router[_0x6873('0xa')](_0x6873('0x5'),auth[_0x6873('0x6')](),controller['update']);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x6873('0xb')]);module[_0x6873('0xc')]=router;