Built motion from commit (unavailable).|2.5.26
[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 _0xba4f=['../../config/environment','./cdr.controller','get','isAuthenticated','/describe','/:id','put','update','delete','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service'];(function(_0x2d21d6,_0x288a17){var _0x460e26=function(_0xfdf68d){while(--_0xfdf68d){_0x2d21d6['push'](_0x2d21d6['shift']());}};_0x460e26(++_0x288a17);}(_0xba4f,0xbe));var _0xfba4=function(_0x50d148,_0x98e59b){_0x50d148=_0x50d148-0x0;var _0x5fdc4d=_0xba4f[_0x50d148];return _0x5fdc4d;};'use strict';var multer=require(_0xfba4('0x0'));var util=require(_0xfba4('0x1'));var path=require(_0xfba4('0x2'));var timeout=require(_0xfba4('0x3'));var express=require(_0xfba4('0x4'));var router=express[_0xfba4('0x5')]();var fs_extra=require(_0xfba4('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0xfba4('0x7'));var config=require(_0xfba4('0x8'));var controller=require(_0xfba4('0x9'));router[_0xfba4('0xa')]('/',auth[_0xfba4('0xb')](),controller['index']);router['get'](_0xfba4('0xc'),auth[_0xfba4('0xb')](),controller['describe']);router['get'](_0xfba4('0xd'),auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0xfba4('0xb')](),controller['create']);router[_0xfba4('0xe')]('/:id',auth['isAuthenticated'](),controller[_0xfba4('0xf')]);router[_0xfba4('0x10')](_0xfba4('0xd'),auth[_0xfba4('0xb')](),controller['destroy']);module[_0xfba4('0x11')]=router;