1e935bb3f26d5625f7737c89802f3c8d7d518cc2
[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 _0xa6c4=['./schedule.controller','get','isAuthenticated','index','/:id','show','/:id/run','run','create','put','delete','destroy','exports','multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x3ecde7,_0x44b804){var _0x3e08bb=function(_0x571d4c){while(--_0x571d4c){_0x3ecde7['push'](_0x3ecde7['shift']());}};_0x3e08bb(++_0x44b804);}(_0xa6c4,0x141));var _0x4a6c=function(_0x685346,_0x3ef2e5){_0x685346=_0x685346-0x0;var _0x52e15b=_0xa6c4[_0x685346];return _0x52e15b;};'use strict';var multer=require(_0x4a6c('0x0'));var util=require(_0x4a6c('0x1'));var path=require(_0x4a6c('0x2'));var timeout=require(_0x4a6c('0x3'));var express=require(_0x4a6c('0x4'));var router=express['Router']();var fs_extra=require(_0x4a6c('0x5'));var auth=require(_0x4a6c('0x6'));var interaction=require(_0x4a6c('0x7'));var config=require(_0x4a6c('0x8'));var controller=require(_0x4a6c('0x9'));router[_0x4a6c('0xa')]('/',auth[_0x4a6c('0xb')](),controller[_0x4a6c('0xc')]);router['get'](_0x4a6c('0xd'),auth[_0x4a6c('0xb')](),controller[_0x4a6c('0xe')]);router[_0x4a6c('0xa')](_0x4a6c('0xf'),auth[_0x4a6c('0xb')](),controller[_0x4a6c('0x10')]);router['post']('/',auth[_0x4a6c('0xb')](),controller[_0x4a6c('0x11')]);router[_0x4a6c('0x12')]('/:id',auth[_0x4a6c('0xb')](),controller['update']);router[_0x4a6c('0x13')](_0x4a6c('0xd'),auth[_0x4a6c('0xb')](),controller[_0x4a6c('0x14')]);module[_0x4a6c('0x15')]=router;