Built motion from commit 775e2a94.|2.6.3
[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 _0xbc4b=['put','update','delete','exports','multer','util','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','/:id/run','post','create'];(function(_0x1054f4,_0x23592f){var _0x329d9b=function(_0x29d8c5){while(--_0x29d8c5){_0x1054f4['push'](_0x1054f4['shift']());}};_0x329d9b(++_0x23592f);}(_0xbc4b,0xf4));var _0xbbc4=function(_0x290665,_0x1fbc17){_0x290665=_0x290665-0x0;var _0x2e2322=_0xbc4b[_0x290665];return _0x2e2322;};'use strict';var multer=require(_0xbbc4('0x0'));var util=require(_0xbbc4('0x1'));var path=require(_0xbbc4('0x2'));var timeout=require('connect-timeout');var express=require(_0xbbc4('0x3'));var router=express['Router']();var fs_extra=require(_0xbbc4('0x4'));var auth=require(_0xbbc4('0x5'));var interaction=require(_0xbbc4('0x6'));var config=require(_0xbbc4('0x7'));var controller=require('./schedule.controller');router[_0xbbc4('0x8')]('/',auth[_0xbbc4('0x9')](),controller[_0xbbc4('0xa')]);router[_0xbbc4('0x8')](_0xbbc4('0xb'),auth[_0xbbc4('0x9')](),controller[_0xbbc4('0xc')]);router['get'](_0xbbc4('0xd'),auth[_0xbbc4('0x9')](),controller['run']);router[_0xbbc4('0xe')]('/',auth[_0xbbc4('0x9')](),controller[_0xbbc4('0xf')]);router[_0xbbc4('0x10')](_0xbbc4('0xb'),auth[_0xbbc4('0x9')](),controller[_0xbbc4('0x11')]);router[_0xbbc4('0x12')](_0xbbc4('0xb'),auth[_0xbbc4('0x9')](),controller['destroy']);module[_0xbbc4('0x13')]=router;