Built motion from commit (unavailable).|2.5.13
[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 _0xd23f=['destroy','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../config/environment','./schedule.controller','get','isAuthenticated','index','show','post','create','update','delete','/:id'];(function(_0x6c3f5d,_0x5ea763){var _0x1bf047=function(_0x4268cb){while(--_0x4268cb){_0x6c3f5d['push'](_0x6c3f5d['shift']());}};_0x1bf047(++_0x5ea763);}(_0xd23f,0x132));var _0xfd23=function(_0xefd519,_0xc62635){_0xefd519=_0xefd519-0x0;var _0x4bb882=_0xd23f[_0xefd519];return _0x4bb882;};'use strict';var multer=require(_0xfd23('0x0'));var util=require(_0xfd23('0x1'));var path=require(_0xfd23('0x2'));var timeout=require(_0xfd23('0x3'));var express=require('express');var router=express[_0xfd23('0x4')]();var auth=require(_0xfd23('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xfd23('0x6'));var controller=require(_0xfd23('0x7'));router[_0xfd23('0x8')]('/',auth[_0xfd23('0x9')](),controller[_0xfd23('0xa')]);router[_0xfd23('0x8')]('/:id',auth['isAuthenticated'](),controller[_0xfd23('0xb')]);router[_0xfd23('0x8')]('/:id/run',auth[_0xfd23('0x9')](),controller['run']);router[_0xfd23('0xc')]('/',auth['isAuthenticated'](),controller[_0xfd23('0xd')]);router['put']('/:id',auth[_0xfd23('0x9')](),controller[_0xfd23('0xe')]);router[_0xfd23('0xf')](_0xfd23('0x10'),auth[_0xfd23('0x9')](),controller[_0xfd23('0x11')]);module[_0xfd23('0x12')]=router;