393c902b844f8d4faccc3c11d70492b438684d72
[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 _0x5a71=['../../config/environment','get','index','/:id','isAuthenticated','getItems','create','/:id/clone','post','addItem','put','update','delete','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service'];(function(_0x356b35,_0x12c0f8){var _0x12fb6f=function(_0x4fba0d){while(--_0x4fba0d){_0x356b35['push'](_0x356b35['shift']());}};_0x12fb6f(++_0x12c0f8);}(_0x5a71,0x16f));var _0x15a7=function(_0x357b27,_0x1f1145){_0x357b27=_0x357b27-0x0;var _0x54a1a5=_0x5a71[_0x357b27];return _0x54a1a5;};'use strict';var multer=require(_0x15a7('0x0'));var util=require('util');var path=require(_0x15a7('0x1'));var timeout=require(_0x15a7('0x2'));var express=require(_0x15a7('0x3'));var router=express[_0x15a7('0x4')]();var fs_extra=require(_0x15a7('0x5'));var auth=require(_0x15a7('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x15a7('0x7'));var controller=require('./dashboard.controller');router[_0x15a7('0x8')]('/',auth['isAuthenticated'](),controller[_0x15a7('0x9')]);router[_0x15a7('0x8')](_0x15a7('0xa'),auth['isAuthenticated'](),controller['show']);router[_0x15a7('0x8')]('/:id/items',auth[_0x15a7('0xb')](),controller[_0x15a7('0xc')]);router['post']('/',auth['isAuthenticated'](),controller[_0x15a7('0xd')]);router['post'](_0x15a7('0xe'),auth['isAuthenticated'](),controller['clone']);router[_0x15a7('0xf')]('/:id/items',auth['isAuthenticated'](),controller[_0x15a7('0x10')]);router[_0x15a7('0x11')](_0x15a7('0xa'),auth[_0x15a7('0xb')](),controller[_0x15a7('0x12')]);router[_0x15a7('0x13')]('/:id',auth[_0x15a7('0xb')](),controller[_0x15a7('0x14')]);module[_0x15a7('0x15')]=router;