8f92b940642dce274affda9e0e4ac91ec4695d40
[motion2.git] / server / api / chatQueueReport / 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 _0xe2b8=['multer','util','path','express','fs-extra','../../components/interaction/service','./chatQueueReport.controller','get','isAuthenticated','index','/:id','post','create','update','destroy'];(function(_0x1cc8fe,_0x105328){var _0x230054=function(_0x1a1b56){while(--_0x1a1b56){_0x1cc8fe['push'](_0x1cc8fe['shift']());}};_0x230054(++_0x105328);}(_0xe2b8,0x168));var _0x8e2b=function(_0x1ae4a9,_0x4c0ed9){_0x1ae4a9=_0x1ae4a9-0x0;var _0x54d0b0=_0xe2b8[_0x1ae4a9];return _0x54d0b0;};'use strict';var multer=require(_0x8e2b('0x0'));var util=require(_0x8e2b('0x1'));var path=require(_0x8e2b('0x2'));var timeout=require('connect-timeout');var express=require(_0x8e2b('0x3'));var router=express['Router']();var fs_extra=require(_0x8e2b('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x8e2b('0x5'));var config=require('../../config/environment');var controller=require(_0x8e2b('0x6'));router[_0x8e2b('0x7')]('/',auth[_0x8e2b('0x8')](),controller[_0x8e2b('0x9')]);router['get']('/describe',auth[_0x8e2b('0x8')](),controller['describe']);router[_0x8e2b('0x7')](_0x8e2b('0xa'),auth['isAuthenticated'](),controller['show']);router[_0x8e2b('0xb')]('/',auth['isAuthenticated'](),controller[_0x8e2b('0xc')]);router['put'](_0x8e2b('0xa'),auth[_0x8e2b('0x8')](),controller[_0x8e2b('0xd')]);router['delete']('/:id',auth[_0x8e2b('0x8')](),controller[_0x8e2b('0xe')]);module['exports']=router;