Built motion from commit d5e4af8c.|2.6.23
[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 _0x9222=['get','/:id','show','post','create','isAuthenticated','delete','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment'];(function(_0x1254e9,_0x30c989){var _0x5226fc=function(_0x1148b){while(--_0x1148b){_0x1254e9['push'](_0x1254e9['shift']());}};_0x5226fc(++_0x30c989);}(_0x9222,0x128));var _0x2922=function(_0x43d064,_0x3c6490){_0x43d064=_0x43d064-0x0;var _0x5c4de3=_0x9222[_0x43d064];return _0x5c4de3;};'use strict';var multer=require(_0x2922('0x0'));var util=require(_0x2922('0x1'));var path=require('path');var timeout=require(_0x2922('0x2'));var express=require(_0x2922('0x3'));var router=express[_0x2922('0x4')]();var fs_extra=require(_0x2922('0x5'));var auth=require(_0x2922('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x2922('0x7'));var controller=require('./dashboardItem.controller');router[_0x2922('0x8')](_0x2922('0x9'),auth['isAuthenticated'](),controller[_0x2922('0xa')]);router[_0x2922('0xb')]('/',auth['isAuthenticated'](),controller[_0x2922('0xc')]);router['put'](_0x2922('0x9'),auth[_0x2922('0xd')](),controller['update']);router[_0x2922('0xe')](_0x2922('0x9'),auth[_0x2922('0xd')](),controller['destroy']);module[_0x2922('0xf')]=router;