Built motion from commit (unavailable).|2.5.21
[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 _0x31c2=['show','create','update','delete','destroy','exports','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','./cdr.controller','get','isAuthenticated','index','/describe','describe','/:id'];(function(_0x17c1d4,_0x54f8a4){var _0x25b66d=function(_0x11fc06){while(--_0x11fc06){_0x17c1d4['push'](_0x17c1d4['shift']());}};_0x25b66d(++_0x54f8a4);}(_0x31c2,0x182));var _0x231c=function(_0x3545d5,_0x4cd891){_0x3545d5=_0x3545d5-0x0;var _0x278848=_0x31c2[_0x3545d5];return _0x278848;};'use strict';var multer=require('multer');var util=require(_0x231c('0x0'));var path=require(_0x231c('0x1'));var timeout=require(_0x231c('0x2'));var express=require(_0x231c('0x3'));var router=express['Router']();var auth=require(_0x231c('0x4'));var interaction=require(_0x231c('0x5'));var config=require('../../config/environment');var controller=require(_0x231c('0x6'));router[_0x231c('0x7')]('/',auth[_0x231c('0x8')](),controller[_0x231c('0x9')]);router[_0x231c('0x7')](_0x231c('0xa'),auth[_0x231c('0x8')](),controller[_0x231c('0xb')]);router[_0x231c('0x7')](_0x231c('0xc'),auth['isAuthenticated'](),controller[_0x231c('0xd')]);router['post']('/',auth['isAuthenticated'](),controller[_0x231c('0xe')]);router['put'](_0x231c('0xc'),auth['isAuthenticated'](),controller[_0x231c('0xf')]);router[_0x231c('0x10')](_0x231c('0xc'),auth[_0x231c('0x8')](),controller[_0x231c('0x11')]);module[_0x231c('0x12')]=router;