4554628a5257a854a89652606b2a228a84f57cb7
[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 _0xe7bf=['get','isAuthenticated','index','/describe','describe','/:id','show','create','put','update','delete','exports','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./cdr.controller'];(function(_0x14a8a2,_0xb18a69){var _0x53729c=function(_0x2e0b1c){while(--_0x2e0b1c){_0x14a8a2['push'](_0x14a8a2['shift']());}};_0x53729c(++_0xb18a69);}(_0xe7bf,0xc0));var _0xfe7b=function(_0x650497,_0x1e98f8){_0x650497=_0x650497-0x0;var _0x19163a=_0xe7bf[_0x650497];return _0x19163a;};'use strict';var multer=require('multer');var util=require(_0xfe7b('0x0'));var path=require(_0xfe7b('0x1'));var timeout=require(_0xfe7b('0x2'));var express=require('express');var router=express[_0xfe7b('0x3')]();var auth=require(_0xfe7b('0x4'));var interaction=require(_0xfe7b('0x5'));var config=require(_0xfe7b('0x6'));var controller=require(_0xfe7b('0x7'));router[_0xfe7b('0x8')]('/',auth[_0xfe7b('0x9')](),controller[_0xfe7b('0xa')]);router['get'](_0xfe7b('0xb'),auth[_0xfe7b('0x9')](),controller[_0xfe7b('0xc')]);router[_0xfe7b('0x8')](_0xfe7b('0xd'),auth[_0xfe7b('0x9')](),controller[_0xfe7b('0xe')]);router['post']('/',auth[_0xfe7b('0x9')](),controller[_0xfe7b('0xf')]);router[_0xfe7b('0x10')](_0xfe7b('0xd'),auth[_0xfe7b('0x9')](),controller[_0xfe7b('0x11')]);router[_0xfe7b('0x12')](_0xfe7b('0xd'),auth['isAuthenticated'](),controller['destroy']);module[_0xfe7b('0x13')]=router;