9ab3a46ba140041b164ce2313331b496d593c918
[motion2.git] / server / api / openchannelQueueReport / 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 _0x203f=['create','put','delete','destroy','exports','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./openchannelQueueReport.controller','isAuthenticated','index','get','/describe','describe','/:id','show'];(function(_0x4dc7b9,_0x319d5a){var _0x3ab114=function(_0x51a9df){while(--_0x51a9df){_0x4dc7b9['push'](_0x4dc7b9['shift']());}};_0x3ab114(++_0x319d5a);}(_0x203f,0x194));var _0xf203=function(_0x3005d5,_0xf588c7){_0x3005d5=_0x3005d5-0x0;var _0x547c7e=_0x203f[_0x3005d5];return _0x547c7e;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xf203('0x0'));var timeout=require(_0xf203('0x1'));var express=require('express');var router=express[_0xf203('0x2')]();var fs_extra=require(_0xf203('0x3'));var auth=require(_0xf203('0x4'));var interaction=require(_0xf203('0x5'));var config=require('../../config/environment');var controller=require(_0xf203('0x6'));router['get']('/',auth[_0xf203('0x7')](),controller[_0xf203('0x8')]);router[_0xf203('0x9')](_0xf203('0xa'),auth[_0xf203('0x7')](),controller[_0xf203('0xb')]);router[_0xf203('0x9')](_0xf203('0xc'),auth['isAuthenticated'](),controller[_0xf203('0xd')]);router['post']('/',auth['isAuthenticated'](),controller[_0xf203('0xe')]);router[_0xf203('0xf')](_0xf203('0xc'),auth[_0xf203('0x7')](),controller['update']);router[_0xf203('0x10')]('/:id',auth['isAuthenticated'](),controller[_0xf203('0x11')]);module[_0xf203('0x12')]=router;