Built motion from commit 0d14f64c.|2.6.34
[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 _0xcf13=['update','/:id','destroy','exports','multer','util','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./schedule.controller','get','index','isAuthenticated','show','/:id/run','run','post','put'];(function(_0x2bb625,_0xf8de66){var _0x14696a=function(_0x4bc92c){while(--_0x4bc92c){_0x2bb625['push'](_0x2bb625['shift']());}};_0x14696a(++_0xf8de66);}(_0xcf13,0xe0));var _0x3cf1=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xcf13[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x3cf1('0x0'));var util=require(_0x3cf1('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x3cf1('0x2'));var router=express[_0x3cf1('0x3')]();var fs_extra=require(_0x3cf1('0x4'));var auth=require(_0x3cf1('0x5'));var interaction=require(_0x3cf1('0x6'));var config=require('../../config/environment');var controller=require(_0x3cf1('0x7'));router[_0x3cf1('0x8')]('/',auth['isAuthenticated'](),controller[_0x3cf1('0x9')]);router['get']('/:id',auth[_0x3cf1('0xa')](),controller[_0x3cf1('0xb')]);router[_0x3cf1('0x8')](_0x3cf1('0xc'),auth['isAuthenticated'](),controller[_0x3cf1('0xd')]);router[_0x3cf1('0xe')]('/',auth[_0x3cf1('0xa')](),controller['create']);router[_0x3cf1('0xf')]('/:id',auth['isAuthenticated'](),controller[_0x3cf1('0x10')]);router['delete'](_0x3cf1('0x11'),auth[_0x3cf1('0xa')](),controller[_0x3cf1('0x12')]);module[_0x3cf1('0x13')]=router;