f1206f48259e39ba5d69d94b4044a54534e0302f
[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 _0x363e=['update','delete','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','/:id','isAuthenticated','show','/:id/items','getItems','post','/:id/clone','clone','addItem','put'];(function(_0x58a50e,_0x12a952){var _0x3b1e57=function(_0x47a31a){while(--_0x47a31a){_0x58a50e['push'](_0x58a50e['shift']());}};_0x3b1e57(++_0x12a952);}(_0x363e,0x1d1));var _0xe363=function(_0x53a813,_0x3ee4d2){_0x53a813=_0x53a813-0x0;var _0x4258ef=_0x363e[_0x53a813];return _0x4258ef;};'use strict';var multer=require(_0xe363('0x0'));var util=require(_0xe363('0x1'));var path=require('path');var timeout=require(_0xe363('0x2'));var express=require(_0xe363('0x3'));var router=express[_0xe363('0x4')]();var fs_extra=require(_0xe363('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xe363('0x6'));var config=require(_0xe363('0x7'));var controller=require('./dashboard.controller');router[_0xe363('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0xe363('0x8')](_0xe363('0x9'),auth[_0xe363('0xa')](),controller[_0xe363('0xb')]);router['get'](_0xe363('0xc'),auth[_0xe363('0xa')](),controller[_0xe363('0xd')]);router[_0xe363('0xe')]('/',auth[_0xe363('0xa')](),controller['create']);router[_0xe363('0xe')](_0xe363('0xf'),auth[_0xe363('0xa')](),controller[_0xe363('0x10')]);router[_0xe363('0xe')](_0xe363('0xc'),auth[_0xe363('0xa')](),controller[_0xe363('0x11')]);router[_0xe363('0x12')](_0xe363('0x9'),auth[_0xe363('0xa')](),controller[_0xe363('0x13')]);router[_0xe363('0x14')](_0xe363('0x9'),auth[_0xe363('0xa')](),controller['destroy']);module[_0xe363('0x15')]=router;