Built motion from commit (unavailable).|2.5.8
[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 _0xa2d2=['post','create','put','destroy','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./schedule.controller','get','isAuthenticated','index','/:id','show','/:id/run','run'];(function(_0x4fbbd8,_0x2beee4){var _0x45dbf8=function(_0x4b9c77){while(--_0x4b9c77){_0x4fbbd8['push'](_0x4fbbd8['shift']());}};_0x45dbf8(++_0x2beee4);}(_0xa2d2,0xa4));var _0x2a2d=function(_0x40e609,_0x4e4b74){_0x40e609=_0x40e609-0x0;var _0xf46928=_0xa2d2[_0x40e609];return _0xf46928;};'use strict';var multer=require(_0x2a2d('0x0'));var util=require(_0x2a2d('0x1'));var path=require(_0x2a2d('0x2'));var timeout=require(_0x2a2d('0x3'));var express=require('express');var router=express[_0x2a2d('0x4')]();var auth=require(_0x2a2d('0x5'));var interaction=require(_0x2a2d('0x6'));var config=require(_0x2a2d('0x7'));var controller=require(_0x2a2d('0x8'));router[_0x2a2d('0x9')]('/',auth[_0x2a2d('0xa')](),controller[_0x2a2d('0xb')]);router[_0x2a2d('0x9')](_0x2a2d('0xc'),auth[_0x2a2d('0xa')](),controller[_0x2a2d('0xd')]);router[_0x2a2d('0x9')](_0x2a2d('0xe'),auth['isAuthenticated'](),controller[_0x2a2d('0xf')]);router[_0x2a2d('0x10')]('/',auth[_0x2a2d('0xa')](),controller[_0x2a2d('0x11')]);router[_0x2a2d('0x12')](_0x2a2d('0xc'),auth[_0x2a2d('0xa')](),controller['update']);router['delete'](_0x2a2d('0xc'),auth['isAuthenticated'](),controller[_0x2a2d('0x13')]);module['exports']=router;