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 _0x50a2=['/:id/run','run','post','create','put','update','/:id','destroy','exports','multer','util','path','connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','show'];(function(_0x4884a7,_0x18e38a){var _0x56b60e=function(_0x2ba8a3){while(--_0x2ba8a3){_0x4884a7['push'](_0x4884a7['shift']());}};_0x56b60e(++_0x18e38a);}(_0x50a2,0x1c1));var _0x250a=function(_0x198b3d,_0xebbc6b){_0x198b3d=_0x198b3d-0x0;var _0x3823bc=_0x50a2[_0x198b3d];return _0x3823bc;};'use strict';var multer=require(_0x250a('0x0'));var util=require(_0x250a('0x1'));var path=require(_0x250a('0x2'));var timeout=require(_0x250a('0x3'));var express=require('express');var router=express['Router']();var auth=require(_0x250a('0x4'));var interaction=require(_0x250a('0x5'));var config=require(_0x250a('0x6'));var controller=require('./schedule.controller');router[_0x250a('0x7')]('/',auth[_0x250a('0x8')](),controller[_0x250a('0x9')]);router[_0x250a('0x7')]('/:id',auth[_0x250a('0x8')](),controller[_0x250a('0xa')]);router[_0x250a('0x7')](_0x250a('0xb'),auth['isAuthenticated'](),controller[_0x250a('0xc')]);router[_0x250a('0xd')]('/',auth[_0x250a('0x8')](),controller[_0x250a('0xe')]);router[_0x250a('0xf')]('/:id',auth[_0x250a('0x8')](),controller[_0x250a('0x10')]);router['delete'](_0x250a('0x11'),auth[_0x250a('0x8')](),controller[_0x250a('0x12')]);module[_0x250a('0x13')]=router;