Built motion from commit eddce310.|2.6.12
[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 _0x0aef=['/:id/run','run','post','create','update','delete','/:id','destroy','exports','util','path','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./schedule.controller','get','isAuthenticated','show'];(function(_0xca1a21,_0x664ef6){var _0x34c640=function(_0x375379){while(--_0x375379){_0xca1a21['push'](_0xca1a21['shift']());}};_0x34c640(++_0x664ef6);}(_0x0aef,0x95));var _0xf0ae=function(_0x104232,_0x3b49cc){_0x104232=_0x104232-0x0;var _0x5e5ea1=_0x0aef[_0x104232];return _0x5e5ea1;};'use strict';var multer=require('multer');var util=require(_0xf0ae('0x0'));var path=require(_0xf0ae('0x1'));var timeout=require('connect-timeout');var express=require(_0xf0ae('0x2'));var router=express[_0xf0ae('0x3')]();var fs_extra=require(_0xf0ae('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xf0ae('0x5'));var config=require(_0xf0ae('0x6'));var controller=require(_0xf0ae('0x7'));router[_0xf0ae('0x8')]('/',auth[_0xf0ae('0x9')](),controller['index']);router[_0xf0ae('0x8')]('/:id',auth[_0xf0ae('0x9')](),controller[_0xf0ae('0xa')]);router[_0xf0ae('0x8')](_0xf0ae('0xb'),auth[_0xf0ae('0x9')](),controller[_0xf0ae('0xc')]);router[_0xf0ae('0xd')]('/',auth['isAuthenticated'](),controller[_0xf0ae('0xe')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0xf0ae('0xf')]);router[_0xf0ae('0x10')](_0xf0ae('0x11'),auth[_0xf0ae('0x9')](),controller[_0xf0ae('0x12')]);module[_0xf0ae('0x13')]=router;