Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / chatTransferReport / 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 _0x5f99=['express','Router','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/describe','/:id','show','put','update','delete','util','connect-timeout'];(function(_0x580576,_0x2f107d){var _0x3f55a0=function(_0x2e180b){while(--_0x2e180b){_0x580576['push'](_0x580576['shift']());}};_0x3f55a0(++_0x2f107d);}(_0x5f99,0x1de));var _0x95f9=function(_0x337a1f,_0xe4b905){_0x337a1f=_0x337a1f-0x0;var _0x320f53=_0x5f99[_0x337a1f];return _0x320f53;};'use strict';var multer=require('multer');var util=require(_0x95f9('0x0'));var path=require('path');var timeout=require(_0x95f9('0x1'));var express=require(_0x95f9('0x2'));var router=express[_0x95f9('0x3')]();var fs_extra=require(_0x95f9('0x4'));var auth=require(_0x95f9('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x95f9('0x6'));var controller=require('./chatTransferReport.controller');router[_0x95f9('0x7')]('/',auth[_0x95f9('0x8')](),controller[_0x95f9('0x9')]);router['get'](_0x95f9('0xa'),auth[_0x95f9('0x8')](),controller['describe']);router['get'](_0x95f9('0xb'),auth['isAuthenticated'](),controller[_0x95f9('0xc')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0x95f9('0xd')](_0x95f9('0xb'),auth[_0x95f9('0x8')](),controller[_0x95f9('0xe')]);router[_0x95f9('0xf')](_0x95f9('0xb'),auth[_0x95f9('0x8')](),controller['destroy']);module['exports']=router;