c0ca56aae2ba31f37d8243475c82546c0dc975da
[motion2.git] / server / api / schedule / 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 _0xe217=['util','path','connect-timeout','express','Router','fs-extra','../../config/environment','./schedule.controller','index','get','isAuthenticated','show','/:id/run','run','post','create','put','/:id','destroy','exports','multer'];(function(_0x196346,_0xabe496){var _0x8548b5=function(_0x10f8f4){while(--_0x10f8f4){_0x196346['push'](_0x196346['shift']());}};_0x8548b5(++_0xabe496);}(_0xe217,0x1cd));var _0x7e21=function(_0x327d30,_0x4fe81c){_0x327d30=_0x327d30-0x0;var _0x5121f9=_0xe217[_0x327d30];return _0x5121f9;};'use strict';var multer=require(_0x7e21('0x0'));var util=require(_0x7e21('0x1'));var path=require(_0x7e21('0x2'));var timeout=require(_0x7e21('0x3'));var express=require(_0x7e21('0x4'));var router=express[_0x7e21('0x5')]();var fs_extra=require(_0x7e21('0x6'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x7e21('0x7'));var controller=require(_0x7e21('0x8'));router['get']('/',auth['isAuthenticated'](),controller[_0x7e21('0x9')]);router[_0x7e21('0xa')]('/:id',auth[_0x7e21('0xb')](),controller[_0x7e21('0xc')]);router[_0x7e21('0xa')](_0x7e21('0xd'),auth[_0x7e21('0xb')](),controller[_0x7e21('0xe')]);router[_0x7e21('0xf')]('/',auth[_0x7e21('0xb')](),controller[_0x7e21('0x10')]);router[_0x7e21('0x11')](_0x7e21('0x12'),auth['isAuthenticated'](),controller['update']);router['delete'](_0x7e21('0x12'),auth['isAuthenticated'](),controller[_0x7e21('0x13')]);module[_0x7e21('0x14')]=router;