Built motion from commit (unavailable).|2.5.30
[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 _0xbb99=['express','Router','fs-extra','../../components/auth/service','../../config/environment','./cdr.controller','get','isAuthenticated','index','post','put','/:id','update','destroy','multer','path'];(function(_0xd69a77,_0x359128){var _0x19a401=function(_0x343cb1){while(--_0x343cb1){_0xd69a77['push'](_0xd69a77['shift']());}};_0x19a401(++_0x359128);}(_0xbb99,0xfe));var _0x9bb9=function(_0x4eec9b,_0x4aea09){_0x4eec9b=_0x4eec9b-0x0;var _0x2e3849=_0xbb99[_0x4eec9b];return _0x2e3849;};'use strict';var multer=require(_0x9bb9('0x0'));var util=require('util');var path=require(_0x9bb9('0x1'));var timeout=require('connect-timeout');var express=require(_0x9bb9('0x2'));var router=express[_0x9bb9('0x3')]();var fs_extra=require(_0x9bb9('0x4'));var auth=require(_0x9bb9('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x9bb9('0x6'));var controller=require(_0x9bb9('0x7'));router[_0x9bb9('0x8')]('/',auth[_0x9bb9('0x9')](),controller[_0x9bb9('0xa')]);router[_0x9bb9('0x8')]('/describe',auth[_0x9bb9('0x9')](),controller['describe']);router[_0x9bb9('0x8')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0x9bb9('0xb')]('/',auth[_0x9bb9('0x9')](),controller['create']);router[_0x9bb9('0xc')](_0x9bb9('0xd'),auth[_0x9bb9('0x9')](),controller[_0x9bb9('0xe')]);router['delete'](_0x9bb9('0xd'),auth[_0x9bb9('0x9')](),controller[_0x9bb9('0xf')]);module['exports']=router;