adf7d5f997cfc06a00051d91d7dee7abc83f1032
[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 _0x0d62=['isAuthenticated','/describe','describe','show','create','put','update','delete','/:id','destroy','multer','util','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get'];(function(_0x4ac424,_0x554b5d){var _0xe1b890=function(_0x5e85c4){while(--_0x5e85c4){_0x4ac424['push'](_0x4ac424['shift']());}};_0xe1b890(++_0x554b5d);}(_0x0d62,0x7c));var _0x20d6=function(_0x4706a6,_0x5a1c63){_0x4706a6=_0x4706a6-0x0;var _0x1bb705=_0x0d62[_0x4706a6];return _0x1bb705;};'use strict';var multer=require(_0x20d6('0x0'));var util=require(_0x20d6('0x1'));var path=require('path');var timeout=require(_0x20d6('0x2'));var express=require('express');var router=express[_0x20d6('0x3')]();var fs_extra=require(_0x20d6('0x4'));var auth=require(_0x20d6('0x5'));var interaction=require(_0x20d6('0x6'));var config=require(_0x20d6('0x7'));var controller=require('./openchannelTransferReport.controller');router[_0x20d6('0x8')]('/',auth[_0x20d6('0x9')](),controller['index']);router[_0x20d6('0x8')](_0x20d6('0xa'),auth[_0x20d6('0x9')](),controller[_0x20d6('0xb')]);router[_0x20d6('0x8')]('/:id',auth[_0x20d6('0x9')](),controller[_0x20d6('0xc')]);router['post']('/',auth[_0x20d6('0x9')](),controller[_0x20d6('0xd')]);router[_0x20d6('0xe')]('/:id',auth[_0x20d6('0x9')](),controller[_0x20d6('0xf')]);router[_0x20d6('0x10')](_0x20d6('0x11'),auth[_0x20d6('0x9')](),controller[_0x20d6('0x12')]);module['exports']=router;