e5024a0863adfadc026eca334cfa62c402e65561
[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 _0x40e9=['put','update','destroy','multer','util','path','connect-timeout','Router','fs-extra','./cdr.controller','get','isAuthenticated','index','/describe','describe','/:id','show'];(function(_0x29152e,_0x1d5d49){var _0x4b41ba=function(_0x11a2f6){while(--_0x11a2f6){_0x29152e['push'](_0x29152e['shift']());}};_0x4b41ba(++_0x1d5d49);}(_0x40e9,0x1ac));var _0x940e=function(_0x2ff2a2,_0x220d02){_0x2ff2a2=_0x2ff2a2-0x0;var _0x337920=_0x40e9[_0x2ff2a2];return _0x337920;};'use strict';var multer=require(_0x940e('0x0'));var util=require(_0x940e('0x1'));var path=require(_0x940e('0x2'));var timeout=require(_0x940e('0x3'));var express=require('express');var router=express[_0x940e('0x4')]();var fs_extra=require(_0x940e('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x940e('0x6'));router[_0x940e('0x7')]('/',auth[_0x940e('0x8')](),controller[_0x940e('0x9')]);router[_0x940e('0x7')](_0x940e('0xa'),auth[_0x940e('0x8')](),controller[_0x940e('0xb')]);router[_0x940e('0x7')](_0x940e('0xc'),auth['isAuthenticated'](),controller[_0x940e('0xd')]);router['post']('/',auth[_0x940e('0x8')](),controller['create']);router[_0x940e('0xe')](_0x940e('0xc'),auth[_0x940e('0x8')](),controller[_0x940e('0xf')]);router['delete'](_0x940e('0xc'),auth[_0x940e('0x8')](),controller[_0x940e('0x10')]);module['exports']=router;