Built motion from commit fe909640.|2.6.8
[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 _0x47a1=['getItems','post','create','/:id/clone','addItem','put','update','delete','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/interaction/service','../../config/environment','./dashboard.controller','index','get','/:id','show','/:id/items','isAuthenticated'];(function(_0x8c43de,_0x90ff31){var _0xa6591b=function(_0x469716){while(--_0x469716){_0x8c43de['push'](_0x8c43de['shift']());}};_0xa6591b(++_0x90ff31);}(_0x47a1,0x189));var _0x147a=function(_0x4b34d4,_0x5760d6){_0x4b34d4=_0x4b34d4-0x0;var _0x849087=_0x47a1[_0x4b34d4];return _0x849087;};'use strict';var multer=require(_0x147a('0x0'));var util=require(_0x147a('0x1'));var path=require(_0x147a('0x2'));var timeout=require(_0x147a('0x3'));var express=require('express');var router=express[_0x147a('0x4')]();var fs_extra=require(_0x147a('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x147a('0x6'));var config=require(_0x147a('0x7'));var controller=require(_0x147a('0x8'));router['get']('/',auth['isAuthenticated'](),controller[_0x147a('0x9')]);router[_0x147a('0xa')](_0x147a('0xb'),auth['isAuthenticated'](),controller[_0x147a('0xc')]);router[_0x147a('0xa')](_0x147a('0xd'),auth[_0x147a('0xe')](),controller[_0x147a('0xf')]);router[_0x147a('0x10')]('/',auth['isAuthenticated'](),controller[_0x147a('0x11')]);router['post'](_0x147a('0x12'),auth[_0x147a('0xe')](),controller['clone']);router[_0x147a('0x10')]('/:id/items',auth['isAuthenticated'](),controller[_0x147a('0x13')]);router[_0x147a('0x14')](_0x147a('0xb'),auth[_0x147a('0xe')](),controller[_0x147a('0x15')]);router[_0x147a('0x16')](_0x147a('0xb'),auth[_0x147a('0xe')](),controller['destroy']);module[_0x147a('0x17')]=router;