Built motion from commit (unavailable).|2.5.3
[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 _0xdb3e=['delete','destroy','exports','multer','path','express','Router','../../components/auth/service','./cdr.controller','get','isAuthenticated','index','/describe','describe','show','post','create','put','update'];(function(_0xdf1549,_0x479aa8){var _0x177dbf=function(_0x163936){while(--_0x163936){_0xdf1549['push'](_0xdf1549['shift']());}};_0x177dbf(++_0x479aa8);}(_0xdb3e,0xe7));var _0xedb3=function(_0x2a6440,_0x537f37){_0x2a6440=_0x2a6440-0x0;var _0x4f8d4c=_0xdb3e[_0x2a6440];return _0x4f8d4c;};'use strict';var multer=require(_0xedb3('0x0'));var util=require('util');var path=require(_0xedb3('0x1'));var timeout=require('connect-timeout');var express=require(_0xedb3('0x2'));var router=express[_0xedb3('0x3')]();var auth=require(_0xedb3('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xedb3('0x5'));router[_0xedb3('0x6')]('/',auth[_0xedb3('0x7')](),controller[_0xedb3('0x8')]);router[_0xedb3('0x6')](_0xedb3('0x9'),auth['isAuthenticated'](),controller[_0xedb3('0xa')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0xedb3('0xb')]);router[_0xedb3('0xc')]('/',auth['isAuthenticated'](),controller[_0xedb3('0xd')]);router[_0xedb3('0xe')]('/:id',auth[_0xedb3('0x7')](),controller[_0xedb3('0xf')]);router[_0xedb3('0x10')]('/:id',auth[_0xedb3('0x7')](),controller[_0xedb3('0x11')]);module[_0xedb3('0x12')]=router;