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 _0x7713=['get','isAuthenticated','index','/:id','show','/:id/run','run','post','create','update','destroy','exports','multer','path','express','../../components/auth/service','../../config/environment','./schedule.controller'];(function(_0x2a362c,_0x261772){var _0x570dec=function(_0x20022b){while(--_0x20022b){_0x2a362c['push'](_0x2a362c['shift']());}};_0x570dec(++_0x261772);}(_0x7713,0x162));var _0x3771=function(_0x19a874,_0x442a65){_0x19a874=_0x19a874-0x0;var _0x54edf5=_0x7713[_0x19a874];return _0x54edf5;};'use strict';var multer=require(_0x3771('0x0'));var util=require('util');var path=require(_0x3771('0x1'));var timeout=require('connect-timeout');var express=require(_0x3771('0x2'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x3771('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0x3771('0x4'));var controller=require(_0x3771('0x5'));router[_0x3771('0x6')]('/',auth[_0x3771('0x7')](),controller[_0x3771('0x8')]);router[_0x3771('0x6')](_0x3771('0x9'),auth[_0x3771('0x7')](),controller[_0x3771('0xa')]);router['get'](_0x3771('0xb'),auth[_0x3771('0x7')](),controller[_0x3771('0xc')]);router[_0x3771('0xd')]('/',auth[_0x3771('0x7')](),controller[_0x3771('0xe')]);router['put']('/:id',auth[_0x3771('0x7')](),controller[_0x3771('0xf')]);router['delete'](_0x3771('0x9'),auth[_0x3771('0x7')](),controller[_0x3771('0x10')]);module[_0x3771('0x11')]=router;