ae07d3c2bdfaff13b4e51b85ab828c75ef9ded2a
[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 _0x2d9f=['post','create','put','update','delete','exports','multer','express','Router','../../components/interaction/service','../../config/environment','./cdr.controller','index','get','/describe','isAuthenticated','describe','/:id','show'];(function(_0x367361,_0x311488){var _0x195d2d=function(_0x2b20a4){while(--_0x2b20a4){_0x367361['push'](_0x367361['shift']());}};_0x195d2d(++_0x311488);}(_0x2d9f,0xc4));var _0xf2d9=function(_0x48a509,_0x30df45){_0x48a509=_0x48a509-0x0;var _0x4155e9=_0x2d9f[_0x48a509];return _0x4155e9;};'use strict';var multer=require(_0xf2d9('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0xf2d9('0x1'));var router=express[_0xf2d9('0x2')]();var auth=require('../../components/auth/service');var interaction=require(_0xf2d9('0x3'));var config=require(_0xf2d9('0x4'));var controller=require(_0xf2d9('0x5'));router['get']('/',auth['isAuthenticated'](),controller[_0xf2d9('0x6')]);router[_0xf2d9('0x7')](_0xf2d9('0x8'),auth[_0xf2d9('0x9')](),controller[_0xf2d9('0xa')]);router[_0xf2d9('0x7')](_0xf2d9('0xb'),auth['isAuthenticated'](),controller[_0xf2d9('0xc')]);router[_0xf2d9('0xd')]('/',auth[_0xf2d9('0x9')](),controller[_0xf2d9('0xe')]);router[_0xf2d9('0xf')](_0xf2d9('0xb'),auth[_0xf2d9('0x9')](),controller[_0xf2d9('0x10')]);router[_0xf2d9('0x11')](_0xf2d9('0xb'),auth[_0xf2d9('0x9')](),controller['destroy']);module[_0xf2d9('0x12')]=router;