Built motion from commit (unavailable).|2.5.8
[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 _0xa0f2=['destroy','exports','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./cdr.controller','get','isAuthenticated','index','/describe','describe','post','create','put','/:id'];(function(_0x5f3f88,_0x562baf){var _0xd08119=function(_0x42dbf7){while(--_0x42dbf7){_0x5f3f88['push'](_0x5f3f88['shift']());}};_0xd08119(++_0x562baf);}(_0xa0f2,0x1ce));var _0x2a0f=function(_0x53b76e,_0x522f28){_0x53b76e=_0x53b76e-0x0;var _0x1ed6ca=_0xa0f2[_0x53b76e];return _0x1ed6ca;};'use strict';var multer=require(_0x2a0f('0x0'));var util=require(_0x2a0f('0x1'));var path=require('path');var timeout=require(_0x2a0f('0x2'));var express=require(_0x2a0f('0x3'));var router=express[_0x2a0f('0x4')]();var auth=require(_0x2a0f('0x5'));var interaction=require(_0x2a0f('0x6'));var config=require(_0x2a0f('0x7'));var controller=require(_0x2a0f('0x8'));router[_0x2a0f('0x9')]('/',auth[_0x2a0f('0xa')](),controller[_0x2a0f('0xb')]);router[_0x2a0f('0x9')](_0x2a0f('0xc'),auth[_0x2a0f('0xa')](),controller[_0x2a0f('0xd')]);router['get']('/:id',auth[_0x2a0f('0xa')](),controller['show']);router[_0x2a0f('0xe')]('/',auth['isAuthenticated'](),controller[_0x2a0f('0xf')]);router[_0x2a0f('0x10')](_0x2a0f('0x11'),auth[_0x2a0f('0xa')](),controller['update']);router['delete'](_0x2a0f('0x11'),auth['isAuthenticated'](),controller[_0x2a0f('0x12')]);module[_0x2a0f('0x13')]=router;