6da183d35059f0ec24cdd6824223b9feb3c201a6
[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 _0xf05c=['index','/describe','describe','/:id','show','post','create','update','delete','exports','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./cdr.controller','get','isAuthenticated'];(function(_0x164eca,_0x555e28){var _0x2ce562=function(_0x148ca6){while(--_0x148ca6){_0x164eca['push'](_0x164eca['shift']());}};_0x2ce562(++_0x555e28);}(_0xf05c,0xbe));var _0xcf05=function(_0x459c56,_0x39361c){_0x459c56=_0x459c56-0x0;var _0x56cb1b=_0xf05c[_0x459c56];return _0x56cb1b;};'use strict';var multer=require('multer');var util=require(_0xcf05('0x0'));var path=require(_0xcf05('0x1'));var timeout=require('connect-timeout');var express=require(_0xcf05('0x2'));var router=express[_0xcf05('0x3')]();var auth=require(_0xcf05('0x4'));var interaction=require(_0xcf05('0x5'));var config=require(_0xcf05('0x6'));var controller=require(_0xcf05('0x7'));router[_0xcf05('0x8')]('/',auth[_0xcf05('0x9')](),controller[_0xcf05('0xa')]);router[_0xcf05('0x8')](_0xcf05('0xb'),auth[_0xcf05('0x9')](),controller[_0xcf05('0xc')]);router[_0xcf05('0x8')](_0xcf05('0xd'),auth[_0xcf05('0x9')](),controller[_0xcf05('0xe')]);router[_0xcf05('0xf')]('/',auth[_0xcf05('0x9')](),controller[_0xcf05('0x10')]);router['put'](_0xcf05('0xd'),auth[_0xcf05('0x9')](),controller[_0xcf05('0x11')]);router[_0xcf05('0x12')](_0xcf05('0xd'),auth['isAuthenticated'](),controller['destroy']);module[_0xcf05('0x13')]=router;