c24ad66fcba83e69d1426773c442bc60d95dea88
[motion2.git] / server / api / openchannelTransferReport / 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 _0x2a8a=['delete','destroy','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./openchannelTransferReport.controller','isAuthenticated','/describe','describe','get','/:id','show','post','create','update'];(function(_0x10f63e,_0x31b2d3){var _0x50b3d5=function(_0x139858){while(--_0x139858){_0x10f63e['push'](_0x10f63e['shift']());}};_0x50b3d5(++_0x31b2d3);}(_0x2a8a,0xe6));var _0xa2a8=function(_0x34f59f,_0x9f5b27){_0x34f59f=_0x34f59f-0x0;var _0x11b52e=_0x2a8a[_0x34f59f];return _0x11b52e;};'use strict';var multer=require('multer');var util=require(_0xa2a8('0x0'));var path=require(_0xa2a8('0x1'));var timeout=require(_0xa2a8('0x2'));var express=require('express');var router=express[_0xa2a8('0x3')]();var fs_extra=require(_0xa2a8('0x4'));var auth=require(_0xa2a8('0x5'));var interaction=require(_0xa2a8('0x6'));var config=require('../../config/environment');var controller=require(_0xa2a8('0x7'));router['get']('/',auth[_0xa2a8('0x8')](),controller['index']);router['get'](_0xa2a8('0x9'),auth[_0xa2a8('0x8')](),controller[_0xa2a8('0xa')]);router[_0xa2a8('0xb')](_0xa2a8('0xc'),auth['isAuthenticated'](),controller[_0xa2a8('0xd')]);router[_0xa2a8('0xe')]('/',auth['isAuthenticated'](),controller[_0xa2a8('0xf')]);router['put'](_0xa2a8('0xc'),auth[_0xa2a8('0x8')](),controller[_0xa2a8('0x10')]);router[_0xa2a8('0x11')](_0xa2a8('0xc'),auth['isAuthenticated'](),controller[_0xa2a8('0x12')]);module['exports']=router;