Built motion from commit 616d3211.|2.6.4
[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 _0x7f0b=['destroy','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./schedule.controller','get','isAuthenticated','index','/:id','show','/:id/run','run','post','create','put','delete'];(function(_0x45783c,_0x49c56d){var _0x1161da=function(_0x3c5d41){while(--_0x3c5d41){_0x45783c['push'](_0x45783c['shift']());}};_0x1161da(++_0x49c56d);}(_0x7f0b,0x14c));var _0xb7f0=function(_0x9cd4c3,_0x1c9b2c){_0x9cd4c3=_0x9cd4c3-0x0;var _0x4c9025=_0x7f0b[_0x9cd4c3];return _0x4c9025;};'use strict';var multer=require(_0xb7f0('0x0'));var util=require(_0xb7f0('0x1'));var path=require('path');var timeout=require(_0xb7f0('0x2'));var express=require(_0xb7f0('0x3'));var router=express[_0xb7f0('0x4')]();var fs_extra=require(_0xb7f0('0x5'));var auth=require(_0xb7f0('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xb7f0('0x7'));var controller=require(_0xb7f0('0x8'));router[_0xb7f0('0x9')]('/',auth[_0xb7f0('0xa')](),controller[_0xb7f0('0xb')]);router[_0xb7f0('0x9')](_0xb7f0('0xc'),auth[_0xb7f0('0xa')](),controller[_0xb7f0('0xd')]);router[_0xb7f0('0x9')](_0xb7f0('0xe'),auth[_0xb7f0('0xa')](),controller[_0xb7f0('0xf')]);router[_0xb7f0('0x10')]('/',auth['isAuthenticated'](),controller[_0xb7f0('0x11')]);router[_0xb7f0('0x12')](_0xb7f0('0xc'),auth[_0xb7f0('0xa')](),controller['update']);router[_0xb7f0('0x13')](_0xb7f0('0xc'),auth[_0xb7f0('0xa')](),controller[_0xb7f0('0x14')]);module[_0xb7f0('0x15')]=router;