4390797b8dbd595cb1cbc3addc3ad36be8648956
[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 _0xadf5=['connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./chatTransferReport.controller','get','index','isAuthenticated','/:id','show','post','create','destroy','exports','path'];(function(_0x56dd1b,_0x1f2803){var _0x5534c6=function(_0x20590c){while(--_0x20590c){_0x56dd1b['push'](_0x56dd1b['shift']());}};_0x5534c6(++_0x1f2803);}(_0xadf5,0x1df));var _0x5adf=function(_0x54d4fe,_0x55e869){_0x54d4fe=_0x54d4fe-0x0;var _0x1ab5bb=_0xadf5[_0x54d4fe];return _0x1ab5bb;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x5adf('0x0'));var timeout=require(_0x5adf('0x1'));var express=require(_0x5adf('0x2'));var router=express[_0x5adf('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x5adf('0x4'));var interaction=require(_0x5adf('0x5'));var config=require('../../config/environment');var controller=require(_0x5adf('0x6'));router[_0x5adf('0x7')]('/',auth['isAuthenticated'](),controller[_0x5adf('0x8')]);router[_0x5adf('0x7')]('/describe',auth[_0x5adf('0x9')](),controller['describe']);router['get'](_0x5adf('0xa'),auth[_0x5adf('0x9')](),controller[_0x5adf('0xb')]);router[_0x5adf('0xc')]('/',auth[_0x5adf('0x9')](),controller[_0x5adf('0xd')]);router['put'](_0x5adf('0xa'),auth['isAuthenticated'](),controller['update']);router['delete']('/:id',auth[_0x5adf('0x9')](),controller[_0x5adf('0xe')]);module[_0x5adf('0xf')]=router;