8aac2dd9a9463d8fbf7b7db07302b42a82588882
[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 _0xcfd7=['show','create','put','update','delete','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/interaction/service','../../config/environment','./openchannelTransferReport.controller','get','/:id','isAuthenticated'];(function(_0x15f515,_0x154277){var _0x5917da=function(_0x4ccb02){while(--_0x4ccb02){_0x15f515['push'](_0x15f515['shift']());}};_0x5917da(++_0x154277);}(_0xcfd7,0x1c8));var _0x7cfd=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0xcfd7[_0x321bb2];return _0x9c12ed;};'use strict';var multer=require(_0x7cfd('0x0'));var util=require(_0x7cfd('0x1'));var path=require(_0x7cfd('0x2'));var timeout=require(_0x7cfd('0x3'));var express=require('express');var router=express[_0x7cfd('0x4')]();var fs_extra=require(_0x7cfd('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x7cfd('0x6'));var config=require(_0x7cfd('0x7'));var controller=require(_0x7cfd('0x8'));router['get']('/',auth['isAuthenticated'](),controller['index']);router['get']('/describe',auth['isAuthenticated'](),controller['describe']);router[_0x7cfd('0x9')](_0x7cfd('0xa'),auth[_0x7cfd('0xb')](),controller[_0x7cfd('0xc')]);router['post']('/',auth[_0x7cfd('0xb')](),controller[_0x7cfd('0xd')]);router[_0x7cfd('0xe')]('/:id',auth['isAuthenticated'](),controller[_0x7cfd('0xf')]);router[_0x7cfd('0x10')](_0x7cfd('0xa'),auth[_0x7cfd('0xb')](),controller['destroy']);module[_0x7cfd('0x11')]=router;