Built motion from commit 9d0783e6.|2.6.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 _0x3b0a=['/:id/run','post','create','update','delete','destroy','multer','path','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service','./schedule.controller','get','isAuthenticated','index','/:id','show'];(function(_0x53f402,_0x326920){var _0x45a76d=function(_0x51f590){while(--_0x51f590){_0x53f402['push'](_0x53f402['shift']());}};_0x45a76d(++_0x326920);}(_0x3b0a,0x84));var _0xa3b0=function(_0x254181,_0x52b2b1){_0x254181=_0x254181-0x0;var _0x53bb4c=_0x3b0a[_0x254181];return _0x53bb4c;};'use strict';var multer=require(_0xa3b0('0x0'));var util=require('util');var path=require(_0xa3b0('0x1'));var timeout=require(_0xa3b0('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xa3b0('0x3'));var auth=require(_0xa3b0('0x4'));var interaction=require(_0xa3b0('0x5'));var config=require('../../config/environment');var controller=require(_0xa3b0('0x6'));router[_0xa3b0('0x7')]('/',auth[_0xa3b0('0x8')](),controller[_0xa3b0('0x9')]);router[_0xa3b0('0x7')](_0xa3b0('0xa'),auth[_0xa3b0('0x8')](),controller[_0xa3b0('0xb')]);router[_0xa3b0('0x7')](_0xa3b0('0xc'),auth[_0xa3b0('0x8')](),controller['run']);router[_0xa3b0('0xd')]('/',auth[_0xa3b0('0x8')](),controller[_0xa3b0('0xe')]);router['put']('/:id',auth[_0xa3b0('0x8')](),controller[_0xa3b0('0xf')]);router[_0xa3b0('0x10')](_0xa3b0('0xa'),auth[_0xa3b0('0x8')](),controller[_0xa3b0('0x11')]);module['exports']=router;