Built motion from commit b0a9a629.|2.6.33
[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 _0xbf32=['path','connect-timeout','express','Router','fs-extra','../../config/environment','isAuthenticated','index','/:id','show','get','/:id/run','run','post','create','put','update','delete','destroy','exports'];(function(_0x3492b3,_0x952ecd){var _0x30dd2c=function(_0x2b189b){while(--_0x2b189b){_0x3492b3['push'](_0x3492b3['shift']());}};_0x30dd2c(++_0x952ecd);}(_0xbf32,0x190));var _0x2bf3=function(_0x25249f,_0x1f95e6){_0x25249f=_0x25249f-0x0;var _0x219846=_0xbf32[_0x25249f];return _0x219846;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x2bf3('0x0'));var timeout=require(_0x2bf3('0x1'));var express=require(_0x2bf3('0x2'));var router=express[_0x2bf3('0x3')]();var fs_extra=require(_0x2bf3('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x2bf3('0x5'));var controller=require('./schedule.controller');router['get']('/',auth[_0x2bf3('0x6')](),controller[_0x2bf3('0x7')]);router['get'](_0x2bf3('0x8'),auth[_0x2bf3('0x6')](),controller[_0x2bf3('0x9')]);router[_0x2bf3('0xa')](_0x2bf3('0xb'),auth[_0x2bf3('0x6')](),controller[_0x2bf3('0xc')]);router[_0x2bf3('0xd')]('/',auth[_0x2bf3('0x6')](),controller[_0x2bf3('0xe')]);router[_0x2bf3('0xf')](_0x2bf3('0x8'),auth[_0x2bf3('0x6')](),controller[_0x2bf3('0x10')]);router[_0x2bf3('0x11')](_0x2bf3('0x8'),auth[_0x2bf3('0x6')](),controller[_0x2bf3('0x12')]);module[_0x2bf3('0x13')]=router;