Built motion from commit 013e4bb4.|2.6.18
[motion2.git] / server / api / openchannelTransferReport / 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 _0x3220=['show','post','create','delete','exports','multer','connect-timeout','express','Router','fs-extra','../../components/auth/service','isAuthenticated','index','get','/describe','describe','/:id'];(function(_0x5c6a78,_0x5c0503){var _0x236c5e=function(_0x44ef45){while(--_0x44ef45){_0x5c6a78['push'](_0x5c6a78['shift']());}};_0x236c5e(++_0x5c0503);}(_0x3220,0x1ae));var _0x0322=function(_0x21e4ef,_0x1220a9){_0x21e4ef=_0x21e4ef-0x0;var _0xe5a03f=_0x3220[_0x21e4ef];return _0xe5a03f;};'use strict';var multer=require(_0x0322('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x0322('0x1'));var express=require(_0x0322('0x2'));var router=express[_0x0322('0x3')]();var fs_extra=require(_0x0322('0x4'));var auth=require(_0x0322('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./openchannelTransferReport.controller');router['get']('/',auth[_0x0322('0x6')](),controller[_0x0322('0x7')]);router[_0x0322('0x8')](_0x0322('0x9'),auth[_0x0322('0x6')](),controller[_0x0322('0xa')]);router[_0x0322('0x8')](_0x0322('0xb'),auth['isAuthenticated'](),controller[_0x0322('0xc')]);router[_0x0322('0xd')]('/',auth[_0x0322('0x6')](),controller[_0x0322('0xe')]);router['put']('/:id',auth['isAuthenticated'](),controller['update']);router[_0x0322('0xf')](_0x0322('0xb'),auth[_0x0322('0x6')](),controller['destroy']);module[_0x0322('0x10')]=router;