5972963dccdc154e4da603aadcb09cb72b98a616
[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 _0x6a24=['show','create','put','/:id','update','exports','multer','express','fs-extra','../../components/interaction/service','../../config/environment','./openchannelQueueReport.controller','get','index','/describe','isAuthenticated','describe'];(function(_0x16f79b,_0x238b97){var _0x49c17a=function(_0x558ab1){while(--_0x558ab1){_0x16f79b['push'](_0x16f79b['shift']());}};_0x49c17a(++_0x238b97);}(_0x6a24,0xc1));var _0x46a2=function(_0x875baf,_0xa1abec){_0x875baf=_0x875baf-0x0;var _0x397454=_0x6a24[_0x875baf];return _0x397454;};'use strict';var multer=require(_0x46a2('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0x46a2('0x1'));var router=express['Router']();var fs_extra=require(_0x46a2('0x2'));var auth=require('../../components/auth/service');var interaction=require(_0x46a2('0x3'));var config=require(_0x46a2('0x4'));var controller=require(_0x46a2('0x5'));router[_0x46a2('0x6')]('/',auth['isAuthenticated'](),controller[_0x46a2('0x7')]);router[_0x46a2('0x6')](_0x46a2('0x8'),auth[_0x46a2('0x9')](),controller[_0x46a2('0xa')]);router[_0x46a2('0x6')]('/:id',auth[_0x46a2('0x9')](),controller[_0x46a2('0xb')]);router['post']('/',auth['isAuthenticated'](),controller[_0x46a2('0xc')]);router[_0x46a2('0xd')](_0x46a2('0xe'),auth[_0x46a2('0x9')](),controller[_0x46a2('0xf')]);router['delete'](_0x46a2('0xe'),auth['isAuthenticated'](),controller['destroy']);module[_0x46a2('0x10')]=router;