d292af0138b047bfc1a6ee1d1583ab231a8b91e9
[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 _0xdc4e=['Router','../../components/interaction/service','../../config/environment','./schedule.controller','get','isAuthenticated','/:id','show','run','post','create','delete','destroy','exports','multer','util','connect-timeout','express'];(function(_0x5d735d,_0x31f512){var _0x13bc7c=function(_0x5906ad){while(--_0x5906ad){_0x5d735d['push'](_0x5d735d['shift']());}};_0x13bc7c(++_0x31f512);}(_0xdc4e,0xc2));var _0xedc4=function(_0x26329e,_0x528981){_0x26329e=_0x26329e-0x0;var _0x545d32=_0xdc4e[_0x26329e];return _0x545d32;};'use strict';var multer=require(_0xedc4('0x0'));var util=require(_0xedc4('0x1'));var path=require('path');var timeout=require(_0xedc4('0x2'));var express=require(_0xedc4('0x3'));var router=express[_0xedc4('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xedc4('0x5'));var config=require(_0xedc4('0x6'));var controller=require(_0xedc4('0x7'));router[_0xedc4('0x8')]('/',auth[_0xedc4('0x9')](),controller['index']);router[_0xedc4('0x8')](_0xedc4('0xa'),auth['isAuthenticated'](),controller[_0xedc4('0xb')]);router['get']('/:id/run',auth[_0xedc4('0x9')](),controller[_0xedc4('0xc')]);router[_0xedc4('0xd')]('/',auth[_0xedc4('0x9')](),controller[_0xedc4('0xe')]);router['put']('/:id',auth['isAuthenticated'](),controller['update']);router[_0xedc4('0xf')](_0xedc4('0xa'),auth[_0xedc4('0x9')](),controller[_0xedc4('0x10')]);module[_0xedc4('0x11')]=router;