aebdf59cdf20f7bc930478c5aa916df6fb5eb296
[motion2.git] / server / api / dashboard / 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 _0x52ef=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./dashboard.controller','isAuthenticated','/:id','show','get','getItems','post','clone','/:id/items','addItem','put','update','delete','destroy','exports','multer','util','path','connect-timeout'];(function(_0x2fc012,_0x503e5b){var _0x2891f9=function(_0x295f5e){while(--_0x295f5e){_0x2fc012['push'](_0x2fc012['shift']());}};_0x2891f9(++_0x503e5b);}(_0x52ef,0x134));var _0xf52e=function(_0x14be2d,_0x4cf6f7){_0x14be2d=_0x14be2d-0x0;var _0x4ffa68=_0x52ef[_0x14be2d];return _0x4ffa68;};'use strict';var multer=require(_0xf52e('0x0'));var util=require(_0xf52e('0x1'));var path=require(_0xf52e('0x2'));var timeout=require(_0xf52e('0x3'));var express=require('express');var router=express[_0xf52e('0x4')]();var fs_extra=require(_0xf52e('0x5'));var auth=require(_0xf52e('0x6'));var interaction=require(_0xf52e('0x7'));var config=require(_0xf52e('0x8'));var controller=require(_0xf52e('0x9'));router['get']('/',auth[_0xf52e('0xa')](),controller['index']);router['get'](_0xf52e('0xb'),auth['isAuthenticated'](),controller[_0xf52e('0xc')]);router[_0xf52e('0xd')]('/:id/items',auth[_0xf52e('0xa')](),controller[_0xf52e('0xe')]);router[_0xf52e('0xf')]('/',auth[_0xf52e('0xa')](),controller['create']);router[_0xf52e('0xf')]('/:id/clone',auth[_0xf52e('0xa')](),controller[_0xf52e('0x10')]);router[_0xf52e('0xf')](_0xf52e('0x11'),auth['isAuthenticated'](),controller[_0xf52e('0x12')]);router[_0xf52e('0x13')](_0xf52e('0xb'),auth[_0xf52e('0xa')](),controller[_0xf52e('0x14')]);router[_0xf52e('0x15')](_0xf52e('0xb'),auth[_0xf52e('0xa')](),controller[_0xf52e('0x16')]);module[_0xf52e('0x17')]=router;