Built motion from commit (unavailable).|2.5.19
[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 _0x628f=['../../components/auth/service','../../components/interaction/service','index','get','/describe','isAuthenticated','describe','/:id','show','post','create','put','update','destroy','exports','multer','connect-timeout','express','Router'];(function(_0x4ae7fd,_0x5075d0){var _0x52de69=function(_0x4af941){while(--_0x4af941){_0x4ae7fd['push'](_0x4ae7fd['shift']());}};_0x52de69(++_0x5075d0);}(_0x628f,0xf3));var _0xf628=function(_0x55bd12,_0x3ccb52){_0x55bd12=_0x55bd12-0x0;var _0x1941dd=_0x628f[_0x55bd12];return _0x1941dd;};'use strict';var multer=require(_0xf628('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xf628('0x1'));var express=require(_0xf628('0x2'));var router=express[_0xf628('0x3')]();var auth=require(_0xf628('0x4'));var interaction=require(_0xf628('0x5'));var config=require('../../config/environment');var controller=require('./cdr.controller');router['get']('/',auth['isAuthenticated'](),controller[_0xf628('0x6')]);router[_0xf628('0x7')](_0xf628('0x8'),auth[_0xf628('0x9')](),controller[_0xf628('0xa')]);router['get'](_0xf628('0xb'),auth[_0xf628('0x9')](),controller[_0xf628('0xc')]);router[_0xf628('0xd')]('/',auth[_0xf628('0x9')](),controller[_0xf628('0xe')]);router[_0xf628('0xf')](_0xf628('0xb'),auth[_0xf628('0x9')](),controller[_0xf628('0x10')]);router['delete'](_0xf628('0xb'),auth[_0xf628('0x9')](),controller[_0xf628('0x11')]);module[_0xf628('0x12')]=router;