Built motion from commit (unavailable).|2.4.21
[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 _0x67cb=['../../config/environment','./cdr.controller','get','isAuthenticated','/:id','post','put','update','delete','destroy','exports','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service'];(function(_0x104a84,_0x285970){var _0x4973ff=function(_0x5064e7){while(--_0x5064e7){_0x104a84['push'](_0x104a84['shift']());}};_0x4973ff(++_0x285970);}(_0x67cb,0x93));var _0xb67c=function(_0x29d915,_0x54a040){_0x29d915=_0x29d915-0x0;var _0x160f86=_0x67cb[_0x29d915];return _0x160f86;};'use strict';var multer=require('multer');var util=require(_0xb67c('0x0'));var path=require(_0xb67c('0x1'));var timeout=require(_0xb67c('0x2'));var express=require(_0xb67c('0x3'));var router=express['Router']();var auth=require(_0xb67c('0x4'));var interaction=require(_0xb67c('0x5'));var config=require(_0xb67c('0x6'));var controller=require(_0xb67c('0x7'));router[_0xb67c('0x8')]('/',auth['isAuthenticated'](),controller['index']);router['get']('/describe',auth[_0xb67c('0x9')](),controller['describe']);router[_0xb67c('0x8')](_0xb67c('0xa'),auth[_0xb67c('0x9')](),controller['show']);router[_0xb67c('0xb')]('/',auth['isAuthenticated'](),controller['create']);router[_0xb67c('0xc')](_0xb67c('0xa'),auth[_0xb67c('0x9')](),controller[_0xb67c('0xd')]);router[_0xb67c('0xe')](_0xb67c('0xa'),auth['isAuthenticated'](),controller[_0xb67c('0xf')]);module[_0xb67c('0x10')]=router;