Built motion from commit (unavailable).|2.5.7
[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 _0x15b4=['express','../../components/auth/service','../../components/interaction/service','../../config/environment','/describe','isAuthenticated','describe','get','/:id','show','post','create','put','update','delete','destroy','exports','multer','util','path','connect-timeout'];(function(_0x4629ee,_0x5802d8){var _0x47fb5b=function(_0xf899cd){while(--_0xf899cd){_0x4629ee['push'](_0x4629ee['shift']());}};_0x47fb5b(++_0x5802d8);}(_0x15b4,0x1df));var _0x415b=function(_0x51020b,_0x38c2c7){_0x51020b=_0x51020b-0x0;var _0x371e47=_0x15b4[_0x51020b];return _0x371e47;};'use strict';var multer=require(_0x415b('0x0'));var util=require(_0x415b('0x1'));var path=require(_0x415b('0x2'));var timeout=require(_0x415b('0x3'));var express=require(_0x415b('0x4'));var router=express['Router']();var auth=require(_0x415b('0x5'));var interaction=require(_0x415b('0x6'));var config=require(_0x415b('0x7'));var controller=require('./cdr.controller');router['get']('/',auth['isAuthenticated'](),controller['index']);router['get'](_0x415b('0x8'),auth[_0x415b('0x9')](),controller[_0x415b('0xa')]);router[_0x415b('0xb')](_0x415b('0xc'),auth[_0x415b('0x9')](),controller[_0x415b('0xd')]);router[_0x415b('0xe')]('/',auth[_0x415b('0x9')](),controller[_0x415b('0xf')]);router[_0x415b('0x10')](_0x415b('0xc'),auth[_0x415b('0x9')](),controller[_0x415b('0x11')]);router[_0x415b('0x12')]('/:id',auth['isAuthenticated'](),controller[_0x415b('0x13')]);module[_0x415b('0x14')]=router;