Built motion from commit (unavailable).|2.5.14
[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 _0xb08d=['isAuthenticated','create','put','update','delete','destroy','exports','connect-timeout','Router','../../components/interaction/service','./schedule.controller','get','index','/:id','/:id/run','run','post'];(function(_0x52ce6c,_0x256de5){var _0x3d8724=function(_0x7cdf34){while(--_0x7cdf34){_0x52ce6c['push'](_0x52ce6c['shift']());}};_0x3d8724(++_0x256de5);}(_0xb08d,0x8f));var _0xdb08=function(_0x39a23e,_0xbae270){_0x39a23e=_0x39a23e-0x0;var _0x1ec2b2=_0xb08d[_0x39a23e];return _0x1ec2b2;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0xdb08('0x0'));var express=require('express');var router=express[_0xdb08('0x1')]();var auth=require('../../components/auth/service');var interaction=require(_0xdb08('0x2'));var config=require('../../config/environment');var controller=require(_0xdb08('0x3'));router[_0xdb08('0x4')]('/',auth['isAuthenticated'](),controller[_0xdb08('0x5')]);router[_0xdb08('0x4')](_0xdb08('0x6'),auth['isAuthenticated'](),controller['show']);router[_0xdb08('0x4')](_0xdb08('0x7'),auth['isAuthenticated'](),controller[_0xdb08('0x8')]);router[_0xdb08('0x9')]('/',auth[_0xdb08('0xa')](),controller[_0xdb08('0xb')]);router[_0xdb08('0xc')](_0xdb08('0x6'),auth[_0xdb08('0xa')](),controller[_0xdb08('0xd')]);router[_0xdb08('0xe')]('/:id',auth[_0xdb08('0xa')](),controller[_0xdb08('0xf')]);module[_0xdb08('0x10')]=router;