Built motion from commit (unavailable).|2.4.20
[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 _0x35ab=['./cdr.controller','isAuthenticated','get','/describe','describe','/:id','show','post','create','put','update','destroy','exports','path','express','Router','../../components/auth/service'];(function(_0xfa79b7,_0x23f2a0){var _0x4e7f64=function(_0xa7cf25){while(--_0xa7cf25){_0xfa79b7['push'](_0xfa79b7['shift']());}};_0x4e7f64(++_0x23f2a0);}(_0x35ab,0x172));var _0xb35a=function(_0x32a22d,_0x17b134){_0x32a22d=_0x32a22d-0x0;var _0x302d10=_0x35ab[_0x32a22d];return _0x302d10;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xb35a('0x0'));var timeout=require('connect-timeout');var express=require(_0xb35a('0x1'));var router=express[_0xb35a('0x2')]();var auth=require(_0xb35a('0x3'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xb35a('0x4'));router['get']('/',auth[_0xb35a('0x5')](),controller['index']);router[_0xb35a('0x6')](_0xb35a('0x7'),auth[_0xb35a('0x5')](),controller[_0xb35a('0x8')]);router[_0xb35a('0x6')](_0xb35a('0x9'),auth[_0xb35a('0x5')](),controller[_0xb35a('0xa')]);router[_0xb35a('0xb')]('/',auth['isAuthenticated'](),controller[_0xb35a('0xc')]);router[_0xb35a('0xd')]('/:id',auth[_0xb35a('0x5')](),controller[_0xb35a('0xe')]);router['delete'](_0xb35a('0x9'),auth['isAuthenticated'](),controller[_0xb35a('0xf')]);module[_0xb35a('0x10')]=router;