Built motion from commit 10af8726.|2.6.34
[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 _0x2e26=['../../components/auth/service','../../components/interaction/service','./dashboard.controller','get','index','isAuthenticated','show','/:id/items','getItems','post','create','addItem','put','update','delete','/:id','exports','multer','path','connect-timeout','express','fs-extra'];(function(_0x3eb201,_0x39912d){var _0x4c8083=function(_0x4b7f96){while(--_0x4b7f96){_0x3eb201['push'](_0x3eb201['shift']());}};_0x4c8083(++_0x39912d);}(_0x2e26,0xc1));var _0x62e2=function(_0x26ac27,_0x574b86){_0x26ac27=_0x26ac27-0x0;var _0x44a599=_0x2e26[_0x26ac27];return _0x44a599;};'use strict';var multer=require(_0x62e2('0x0'));var util=require('util');var path=require(_0x62e2('0x1'));var timeout=require(_0x62e2('0x2'));var express=require(_0x62e2('0x3'));var router=express['Router']();var fs_extra=require(_0x62e2('0x4'));var auth=require(_0x62e2('0x5'));var interaction=require(_0x62e2('0x6'));var config=require('../../config/environment');var controller=require(_0x62e2('0x7'));router[_0x62e2('0x8')]('/',auth['isAuthenticated'](),controller[_0x62e2('0x9')]);router['get']('/:id',auth[_0x62e2('0xa')](),controller[_0x62e2('0xb')]);router[_0x62e2('0x8')](_0x62e2('0xc'),auth[_0x62e2('0xa')](),controller[_0x62e2('0xd')]);router[_0x62e2('0xe')]('/',auth[_0x62e2('0xa')](),controller[_0x62e2('0xf')]);router[_0x62e2('0xe')]('/:id/clone',auth[_0x62e2('0xa')](),controller['clone']);router[_0x62e2('0xe')]('/:id/items',auth[_0x62e2('0xa')](),controller[_0x62e2('0x10')]);router[_0x62e2('0x11')]('/:id',auth['isAuthenticated'](),controller[_0x62e2('0x12')]);router[_0x62e2('0x13')](_0x62e2('0x14'),auth[_0x62e2('0xa')](),controller['destroy']);module[_0x62e2('0x15')]=router;