31fd62e1b3f49554c65ce009907ff96039216fc9
[motion2.git] / server / api / cdr / 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 _0x9826=['delete','destroy','exports','multer','util','path','express','../../components/auth/service','../../components/interaction/service','./cdr.controller','isAuthenticated','/describe','get','post','put','/:id','update'];(function(_0x29d2b7,_0x5892c7){var _0x109807=function(_0x351d6d){while(--_0x351d6d){_0x29d2b7['push'](_0x29d2b7['shift']());}};_0x109807(++_0x5892c7);}(_0x9826,0x69));var _0x6982=function(_0x52d8f3,_0x2dd866){_0x52d8f3=_0x52d8f3-0x0;var _0x4247b3=_0x9826[_0x52d8f3];return _0x4247b3;};'use strict';var multer=require(_0x6982('0x0'));var util=require(_0x6982('0x1'));var path=require(_0x6982('0x2'));var timeout=require('connect-timeout');var express=require(_0x6982('0x3'));var router=express['Router']();var auth=require(_0x6982('0x4'));var interaction=require(_0x6982('0x5'));var config=require('../../config/environment');var controller=require(_0x6982('0x6'));router['get']('/',auth[_0x6982('0x7')](),controller['index']);router['get'](_0x6982('0x8'),auth[_0x6982('0x7')](),controller['describe']);router[_0x6982('0x9')]('/:id',auth[_0x6982('0x7')](),controller['show']);router[_0x6982('0xa')]('/',auth[_0x6982('0x7')](),controller['create']);router[_0x6982('0xb')](_0x6982('0xc'),auth[_0x6982('0x7')](),controller[_0x6982('0xd')]);router[_0x6982('0xe')]('/:id',auth[_0x6982('0x7')](),controller[_0x6982('0xf')]);module[_0x6982('0x10')]=router;