Built motion from commit ffdca78c.|2.6.24
[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 _0x001b=['Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','describe','/:id','show','post','create','put','update','multer','util','connect-timeout','express'];(function(_0x54e66f,_0x3ef01f){var _0x395088=function(_0xb70c57){while(--_0xb70c57){_0x54e66f['push'](_0x54e66f['shift']());}};_0x395088(++_0x3ef01f);}(_0x001b,0x10a));var _0xb001=function(_0x4d3637,_0xefe614){_0x4d3637=_0x4d3637-0x0;var _0x165d1d=_0x001b[_0x4d3637];return _0x165d1d;};'use strict';var multer=require(_0xb001('0x0'));var util=require(_0xb001('0x1'));var path=require('path');var timeout=require(_0xb001('0x2'));var express=require(_0xb001('0x3'));var router=express[_0xb001('0x4')]();var fs_extra=require(_0xb001('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xb001('0x6'));var config=require(_0xb001('0x7'));var controller=require('./chatTransferReport.controller');router[_0xb001('0x8')]('/',auth[_0xb001('0x9')](),controller[_0xb001('0xa')]);router[_0xb001('0x8')]('/describe',auth[_0xb001('0x9')](),controller[_0xb001('0xb')]);router['get'](_0xb001('0xc'),auth['isAuthenticated'](),controller[_0xb001('0xd')]);router[_0xb001('0xe')]('/',auth[_0xb001('0x9')](),controller[_0xb001('0xf')]);router[_0xb001('0x10')](_0xb001('0xc'),auth[_0xb001('0x9')](),controller[_0xb001('0x11')]);router['delete']('/:id',auth[_0xb001('0x9')](),controller['destroy']);module['exports']=router;