Built motion from commit 092f8824.|2.5.49
[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 _0xa644=['put','/:id','update','delete','destroy','exports','multer','util','connect-timeout','fs-extra','../../components/interaction/service','./dashboard.controller','get','isAuthenticated','index','show','getItems','post','create','/:id/clone','clone','addItem'];(function(_0x5eb475,_0x1d359f){var _0xbd3844=function(_0x2f31c7){while(--_0x2f31c7){_0x5eb475['push'](_0x5eb475['shift']());}};_0xbd3844(++_0x1d359f);}(_0xa644,0x1a8));var _0x4a64=function(_0x3eae28,_0x173f14){_0x3eae28=_0x3eae28-0x0;var _0x27f941=_0xa644[_0x3eae28];return _0x27f941;};'use strict';var multer=require(_0x4a64('0x0'));var util=require(_0x4a64('0x1'));var path=require('path');var timeout=require(_0x4a64('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x4a64('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0x4a64('0x4'));var config=require('../../config/environment');var controller=require(_0x4a64('0x5'));router[_0x4a64('0x6')]('/',auth[_0x4a64('0x7')](),controller[_0x4a64('0x8')]);router[_0x4a64('0x6')]('/:id',auth[_0x4a64('0x7')](),controller[_0x4a64('0x9')]);router[_0x4a64('0x6')]('/:id/items',auth[_0x4a64('0x7')](),controller[_0x4a64('0xa')]);router[_0x4a64('0xb')]('/',auth['isAuthenticated'](),controller[_0x4a64('0xc')]);router[_0x4a64('0xb')](_0x4a64('0xd'),auth[_0x4a64('0x7')](),controller[_0x4a64('0xe')]);router['post']('/:id/items',auth[_0x4a64('0x7')](),controller[_0x4a64('0xf')]);router[_0x4a64('0x10')](_0x4a64('0x11'),auth[_0x4a64('0x7')](),controller[_0x4a64('0x12')]);router[_0x4a64('0x13')]('/:id',auth[_0x4a64('0x7')](),controller[_0x4a64('0x14')]);module[_0x4a64('0x15')]=router;