284917499e8e48b78ada7d0c49da581889f68701
[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 _0x5ae4=['Router','../../components/auth/service','../../components/interaction/service','./cdr.controller','get','isAuthenticated','/describe','describe','/:id','create','put','update','delete','destroy','exports','multer','path','connect-timeout','express'];(function(_0x5aa593,_0x4330e0){var _0xccf56e=function(_0x3c5dc5){while(--_0x3c5dc5){_0x5aa593['push'](_0x5aa593['shift']());}};_0xccf56e(++_0x4330e0);}(_0x5ae4,0x18b));var _0x45ae=function(_0x154767,_0x29ab4b){_0x154767=_0x154767-0x0;var _0xa5105c=_0x5ae4[_0x154767];return _0xa5105c;};'use strict';var multer=require(_0x45ae('0x0'));var util=require('util');var path=require(_0x45ae('0x1'));var timeout=require(_0x45ae('0x2'));var express=require(_0x45ae('0x3'));var router=express[_0x45ae('0x4')]();var auth=require(_0x45ae('0x5'));var interaction=require(_0x45ae('0x6'));var config=require('../../config/environment');var controller=require(_0x45ae('0x7'));router[_0x45ae('0x8')]('/',auth[_0x45ae('0x9')](),controller['index']);router[_0x45ae('0x8')](_0x45ae('0xa'),auth['isAuthenticated'](),controller[_0x45ae('0xb')]);router[_0x45ae('0x8')](_0x45ae('0xc'),auth[_0x45ae('0x9')](),controller['show']);router['post']('/',auth[_0x45ae('0x9')](),controller[_0x45ae('0xd')]);router[_0x45ae('0xe')](_0x45ae('0xc'),auth[_0x45ae('0x9')](),controller[_0x45ae('0xf')]);router[_0x45ae('0x10')](_0x45ae('0xc'),auth['isAuthenticated'](),controller[_0x45ae('0x11')]);module[_0x45ae('0x12')]=router;