Built motion from commit 9b156c94.|2.6.22
[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 _0xa39d=['Router','fs-extra','../../components/interaction/service','../../config/environment','./openchannelTransferReport.controller','isAuthenticated','/describe','describe','get','/:id','show','create','put','update','delete','destroy','exports','util','connect-timeout','express'];(function(_0x4a2ff1,_0x13de3b){var _0x106aa7=function(_0x433dca){while(--_0x433dca){_0x4a2ff1['push'](_0x4a2ff1['shift']());}};_0x106aa7(++_0x13de3b);}(_0xa39d,0x1b5));var _0xda39=function(_0x22cdc7,_0x474115){_0x22cdc7=_0x22cdc7-0x0;var _0xb5b746=_0xa39d[_0x22cdc7];return _0xb5b746;};'use strict';var multer=require('multer');var util=require(_0xda39('0x0'));var path=require('path');var timeout=require(_0xda39('0x1'));var express=require(_0xda39('0x2'));var router=express[_0xda39('0x3')]();var fs_extra=require(_0xda39('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xda39('0x5'));var config=require(_0xda39('0x6'));var controller=require(_0xda39('0x7'));router['get']('/',auth[_0xda39('0x8')](),controller['index']);router['get'](_0xda39('0x9'),auth[_0xda39('0x8')](),controller[_0xda39('0xa')]);router[_0xda39('0xb')](_0xda39('0xc'),auth[_0xda39('0x8')](),controller[_0xda39('0xd')]);router['post']('/',auth[_0xda39('0x8')](),controller[_0xda39('0xe')]);router[_0xda39('0xf')]('/:id',auth[_0xda39('0x8')](),controller[_0xda39('0x10')]);router[_0xda39('0x11')]('/:id',auth['isAuthenticated'](),controller[_0xda39('0x12')]);module[_0xda39('0x13')]=router;