0bc816e171488d941aa984fb76d5094b72b805d6
[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 _0x415b=['fs-extra','../../config/environment','get','index','isAuthenticated','describe','/:id','show','create','update','delete','destroy','exports','util','express','Router'];(function(_0x3acb7d,_0x26dd7a){var _0x33c862=function(_0x2c319f){while(--_0x2c319f){_0x3acb7d['push'](_0x3acb7d['shift']());}};_0x33c862(++_0x26dd7a);}(_0x415b,0x9d));var _0xb415=function(_0x57b54c,_0x54ce0d){_0x57b54c=_0x57b54c-0x0;var _0x59cc19=_0x415b[_0x57b54c];return _0x59cc19;};'use strict';var multer=require('multer');var util=require(_0xb415('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xb415('0x1'));var router=express[_0xb415('0x2')]();var fs_extra=require(_0xb415('0x3'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xb415('0x4'));var controller=require('./chatTransferReport.controller');router[_0xb415('0x5')]('/',auth['isAuthenticated'](),controller[_0xb415('0x6')]);router[_0xb415('0x5')]('/describe',auth[_0xb415('0x7')](),controller[_0xb415('0x8')]);router[_0xb415('0x5')](_0xb415('0x9'),auth[_0xb415('0x7')](),controller[_0xb415('0xa')]);router['post']('/',auth['isAuthenticated'](),controller[_0xb415('0xb')]);router['put'](_0xb415('0x9'),auth['isAuthenticated'](),controller[_0xb415('0xc')]);router[_0xb415('0xd')](_0xb415('0x9'),auth[_0xb415('0x7')](),controller[_0xb415('0xe')]);module[_0xb415('0xf')]=router;