Built motion from commit b5996064.|2.6.21
[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 _0xaa35=['util','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','/:id','isAuthenticated','show','put','update','destroy','exports','multer'];(function(_0x3b4b1d,_0x15029e){var _0x488c36=function(_0x56c8b3){while(--_0x56c8b3){_0x3b4b1d['push'](_0x3b4b1d['shift']());}};_0x488c36(++_0x15029e);}(_0xaa35,0x1ef));var _0x5aa3=function(_0x3fd3a3,_0x36c863){_0x3fd3a3=_0x3fd3a3-0x0;var _0xa3e4d5=_0xaa35[_0x3fd3a3];return _0xa3e4d5;};'use strict';var multer=require(_0x5aa3('0x0'));var util=require(_0x5aa3('0x1'));var path=require('path');var timeout=require(_0x5aa3('0x2'));var express=require(_0x5aa3('0x3'));var router=express[_0x5aa3('0x4')]();var fs_extra=require(_0x5aa3('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x5aa3('0x6'));var config=require(_0x5aa3('0x7'));var controller=require('./dashboardItem.controller');router[_0x5aa3('0x8')](_0x5aa3('0x9'),auth[_0x5aa3('0xa')](),controller[_0x5aa3('0xb')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0x5aa3('0xc')](_0x5aa3('0x9'),auth[_0x5aa3('0xa')](),controller[_0x5aa3('0xd')]);router['delete'](_0x5aa3('0x9'),auth['isAuthenticated'](),controller[_0x5aa3('0xe')]);module[_0x5aa3('0xf')]=router;