48e1df93067235c4f287be70c0aae9f60622e409
[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 _0x5e0b=['get','describe','/:id','show','post','create','update','destroy','multer','express','fs-extra','../../components/interaction/service','../../config/environment','./chatTransferReport.controller','isAuthenticated','index'];(function(_0x2f653f,_0x1cef4e){var _0x479836=function(_0x4182c2){while(--_0x4182c2){_0x2f653f['push'](_0x2f653f['shift']());}};_0x479836(++_0x1cef4e);}(_0x5e0b,0x178));var _0xb5e0=function(_0x469ac7,_0x38e416){_0x469ac7=_0x469ac7-0x0;var _0x22f3b0=_0x5e0b[_0x469ac7];return _0x22f3b0;};'use strict';var multer=require(_0xb5e0('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0xb5e0('0x1'));var router=express['Router']();var fs_extra=require(_0xb5e0('0x2'));var auth=require('../../components/auth/service');var interaction=require(_0xb5e0('0x3'));var config=require(_0xb5e0('0x4'));var controller=require(_0xb5e0('0x5'));router['get']('/',auth[_0xb5e0('0x6')](),controller[_0xb5e0('0x7')]);router[_0xb5e0('0x8')]('/describe',auth[_0xb5e0('0x6')](),controller[_0xb5e0('0x9')]);router['get'](_0xb5e0('0xa'),auth[_0xb5e0('0x6')](),controller[_0xb5e0('0xb')]);router[_0xb5e0('0xc')]('/',auth[_0xb5e0('0x6')](),controller[_0xb5e0('0xd')]);router['put'](_0xb5e0('0xa'),auth['isAuthenticated'](),controller[_0xb5e0('0xe')]);router['delete'](_0xb5e0('0xa'),auth['isAuthenticated'](),controller[_0xb5e0('0xf')]);module['exports']=router;