Built motion from commit (unavailable).|2.5.0
[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 _0x9cff=['util','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./cdr.controller','get','isAuthenticated','/:id','show','post','create','put','exports'];(function(_0xe71d4,_0x14780f){var _0x535ccd=function(_0x5799c7){while(--_0x5799c7){_0xe71d4['push'](_0xe71d4['shift']());}};_0x535ccd(++_0x14780f);}(_0x9cff,0x96));var _0xf9cf=function(_0x199b59,_0x25a5bc){_0x199b59=_0x199b59-0x0;var _0x179e10=_0x9cff[_0x199b59];return _0x179e10;};'use strict';var multer=require('multer');var util=require(_0xf9cf('0x0'));var path=require('path');var timeout=require(_0xf9cf('0x1'));var express=require(_0xf9cf('0x2'));var router=express['Router']();var auth=require(_0xf9cf('0x3'));var interaction=require(_0xf9cf('0x4'));var config=require(_0xf9cf('0x5'));var controller=require(_0xf9cf('0x6'));router[_0xf9cf('0x7')]('/',auth[_0xf9cf('0x8')](),controller['index']);router[_0xf9cf('0x7')]('/describe',auth[_0xf9cf('0x8')](),controller['describe']);router[_0xf9cf('0x7')](_0xf9cf('0x9'),auth[_0xf9cf('0x8')](),controller[_0xf9cf('0xa')]);router[_0xf9cf('0xb')]('/',auth[_0xf9cf('0x8')](),controller[_0xf9cf('0xc')]);router[_0xf9cf('0xd')](_0xf9cf('0x9'),auth[_0xf9cf('0x8')](),controller['update']);router['delete'](_0xf9cf('0x9'),auth[_0xf9cf('0x8')](),controller['destroy']);module[_0xf9cf('0xe')]=router;