bb8c8d026c075ab140476c813feec2bafcca5f1c
[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 _0xf583=['express','fs-extra','../../components/auth/service','../../config/environment','./chatTransferReport.controller','index','get','isAuthenticated','show','put','/:id','update','exports','multer','util'];(function(_0x325dee,_0xb67e1f){var _0xc05924=function(_0x41ef66){while(--_0x41ef66){_0x325dee['push'](_0x325dee['shift']());}};_0xc05924(++_0xb67e1f);}(_0xf583,0x12a));var _0x3f58=function(_0x2064e5,_0x4f6fa2){_0x2064e5=_0x2064e5-0x0;var _0x21a233=_0xf583[_0x2064e5];return _0x21a233;};'use strict';var multer=require(_0x3f58('0x0'));var util=require(_0x3f58('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x3f58('0x2'));var router=express['Router']();var fs_extra=require(_0x3f58('0x3'));var auth=require(_0x3f58('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x3f58('0x5'));var controller=require(_0x3f58('0x6'));router['get']('/',auth['isAuthenticated'](),controller[_0x3f58('0x7')]);router[_0x3f58('0x8')]('/describe',auth[_0x3f58('0x9')](),controller['describe']);router['get']('/:id',auth[_0x3f58('0x9')](),controller[_0x3f58('0xa')]);router['post']('/',auth[_0x3f58('0x9')](),controller['create']);router[_0x3f58('0xb')](_0x3f58('0xc'),auth['isAuthenticated'](),controller[_0x3f58('0xd')]);router['delete']('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0x3f58('0xe')]=router;