e7e76778b655914e73d9d85fe4d2068e10967f4b
[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 _0xc030=['connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','isAuthenticated','describe','show','post','put','/:id','update','exports','multer'];(function(_0x2ca437,_0x3b4756){var _0x445a98=function(_0x483941){while(--_0x483941){_0x2ca437['push'](_0x2ca437['shift']());}};_0x445a98(++_0x3b4756);}(_0xc030,0xed));var _0x0c03=function(_0x17609f,_0x45c544){_0x17609f=_0x17609f-0x0;var _0x289800=_0xc030[_0x17609f];return _0x289800;};'use strict';var multer=require(_0x0c03('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x0c03('0x1'));var express=require(_0x0c03('0x2'));var router=express['Router']();var fs_extra=require(_0x0c03('0x3'));var auth=require(_0x0c03('0x4'));var interaction=require(_0x0c03('0x5'));var config=require(_0x0c03('0x6'));var controller=require('./openchannelTransferReport.controller');router[_0x0c03('0x7')]('/',auth['isAuthenticated'](),controller[_0x0c03('0x8')]);router['get']('/describe',auth[_0x0c03('0x9')](),controller[_0x0c03('0xa')]);router[_0x0c03('0x7')]('/:id',auth['isAuthenticated'](),controller[_0x0c03('0xb')]);router[_0x0c03('0xc')]('/',auth['isAuthenticated'](),controller['create']);router[_0x0c03('0xd')](_0x0c03('0xe'),auth[_0x0c03('0x9')](),controller[_0x0c03('0xf')]);router['delete'](_0x0c03('0xe'),auth['isAuthenticated'](),controller['destroy']);module[_0x0c03('0x10')]=router;