Built motion from commit 6f14c8ba.|2.6.29
[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 _0x8e88=['util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./dashboard.controller','isAuthenticated','index','get','/:id','/:id/items','getItems','post','/:id/clone','clone','addItem','update','delete','destroy','exports','multer'];(function(_0x3aeabe,_0x4357df){var _0x3eb976=function(_0xb5b98b){while(--_0xb5b98b){_0x3aeabe['push'](_0x3aeabe['shift']());}};_0x3eb976(++_0x4357df);}(_0x8e88,0xe5));var _0x88e8=function(_0x2ef8c1,_0x2f72f4){_0x2ef8c1=_0x2ef8c1-0x0;var _0x288305=_0x8e88[_0x2ef8c1];return _0x288305;};'use strict';var multer=require(_0x88e8('0x0'));var util=require(_0x88e8('0x1'));var path=require(_0x88e8('0x2'));var timeout=require(_0x88e8('0x3'));var express=require(_0x88e8('0x4'));var router=express[_0x88e8('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x88e8('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x88e8('0x7'));var controller=require(_0x88e8('0x8'));router['get']('/',auth[_0x88e8('0x9')](),controller[_0x88e8('0xa')]);router[_0x88e8('0xb')](_0x88e8('0xc'),auth[_0x88e8('0x9')](),controller['show']);router[_0x88e8('0xb')](_0x88e8('0xd'),auth[_0x88e8('0x9')](),controller[_0x88e8('0xe')]);router[_0x88e8('0xf')]('/',auth[_0x88e8('0x9')](),controller['create']);router[_0x88e8('0xf')](_0x88e8('0x10'),auth[_0x88e8('0x9')](),controller[_0x88e8('0x11')]);router['post'](_0x88e8('0xd'),auth['isAuthenticated'](),controller[_0x88e8('0x12')]);router['put'](_0x88e8('0xc'),auth['isAuthenticated'](),controller[_0x88e8('0x13')]);router[_0x88e8('0x14')](_0x88e8('0xc'),auth[_0x88e8('0x9')](),controller[_0x88e8('0x15')]);module[_0x88e8('0x16')]=router;