Built motion from commit ddca4d0d.|2.5.47
[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 _0x0897=['../../config/environment','get','isAuthenticated','show','create','/:id','delete','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service'];(function(_0x5e8c0f,_0x1f20d9){var _0x568dbe=function(_0xdc6797){while(--_0xdc6797){_0x5e8c0f['push'](_0x5e8c0f['shift']());}};_0x568dbe(++_0x1f20d9);}(_0x0897,0x139));var _0x7089=function(_0x4aa6cc,_0x2e45eb){_0x4aa6cc=_0x4aa6cc-0x0;var _0x3a844f=_0x0897[_0x4aa6cc];return _0x3a844f;};'use strict';var multer=require(_0x7089('0x0'));var util=require('util');var path=require(_0x7089('0x1'));var timeout=require(_0x7089('0x2'));var express=require(_0x7089('0x3'));var router=express[_0x7089('0x4')]();var fs_extra=require(_0x7089('0x5'));var auth=require(_0x7089('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x7089('0x7'));var controller=require('./schedule.controller');router[_0x7089('0x8')]('/',auth[_0x7089('0x9')](),controller['index']);router['get']('/:id',auth[_0x7089('0x9')](),controller[_0x7089('0xa')]);router[_0x7089('0x8')]('/:id/run',auth['isAuthenticated'](),controller['run']);router['post']('/',auth[_0x7089('0x9')](),controller[_0x7089('0xb')]);router['put'](_0x7089('0xc'),auth[_0x7089('0x9')](),controller['update']);router[_0x7089('0xd')](_0x7089('0xc'),auth[_0x7089('0x9')](),controller[_0x7089('0xe')]);module[_0x7089('0xf')]=router;