Built motion from commit (unavailable).|2.5.22
[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 _0xe230=['/describe','describe','/:id','create','put','update','exports','multer','util','path','express','../../components/auth/service','./cdr.controller','get','isAuthenticated'];(function(_0x52f205,_0x535aed){var _0x4c9858=function(_0x4872b5){while(--_0x4872b5){_0x52f205['push'](_0x52f205['shift']());}};_0x4c9858(++_0x535aed);}(_0xe230,0xe8));var _0x0e23=function(_0x5018d1,_0x27d1c5){_0x5018d1=_0x5018d1-0x0;var _0x51df17=_0xe230[_0x5018d1];return _0x51df17;};'use strict';var multer=require(_0x0e23('0x0'));var util=require(_0x0e23('0x1'));var path=require(_0x0e23('0x2'));var timeout=require('connect-timeout');var express=require(_0x0e23('0x3'));var router=express['Router']();var auth=require(_0x0e23('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x0e23('0x5'));router[_0x0e23('0x6')]('/',auth[_0x0e23('0x7')](),controller['index']);router[_0x0e23('0x6')](_0x0e23('0x8'),auth[_0x0e23('0x7')](),controller[_0x0e23('0x9')]);router[_0x0e23('0x6')](_0x0e23('0xa'),auth[_0x0e23('0x7')](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller[_0x0e23('0xb')]);router[_0x0e23('0xc')]('/:id',auth[_0x0e23('0x7')](),controller[_0x0e23('0xd')]);router['delete'](_0x0e23('0xa'),auth['isAuthenticated'](),controller['destroy']);module[_0x0e23('0xe')]=router;