ecf2adb5cd4500fad265a6487f3dc49b1a46552d
[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 _0x4b04=['path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','show','post','create','put','update','destroy','exports','util'];(function(_0x2f4495,_0x7f95a5){var _0x1495c6=function(_0xb3fc60){while(--_0xb3fc60){_0x2f4495['push'](_0x2f4495['shift']());}};_0x1495c6(++_0x7f95a5);}(_0x4b04,0x153));var _0x44b0=function(_0x3d2465,_0x39a945){_0x3d2465=_0x3d2465-0x0;var _0x430fd5=_0x4b04[_0x3d2465];return _0x430fd5;};'use strict';var multer=require('multer');var util=require(_0x44b0('0x0'));var path=require(_0x44b0('0x1'));var timeout=require(_0x44b0('0x2'));var express=require(_0x44b0('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x44b0('0x4'));var interaction=require(_0x44b0('0x5'));var config=require(_0x44b0('0x6'));var controller=require('./chatTransferReport.controller');router[_0x44b0('0x7')]('/',auth[_0x44b0('0x8')](),controller[_0x44b0('0x9')]);router[_0x44b0('0x7')](_0x44b0('0xa'),auth[_0x44b0('0x8')](),controller[_0x44b0('0xb')]);router['get'](_0x44b0('0xc'),auth['isAuthenticated'](),controller[_0x44b0('0xd')]);router[_0x44b0('0xe')]('/',auth[_0x44b0('0x8')](),controller[_0x44b0('0xf')]);router[_0x44b0('0x10')](_0x44b0('0xc'),auth['isAuthenticated'](),controller[_0x44b0('0x11')]);router['delete'](_0x44b0('0xc'),auth[_0x44b0('0x8')](),controller[_0x44b0('0x12')]);module[_0x44b0('0x13')]=router;