55c56184decf3a516c83fb0a369d02a5b4c9e7d4
[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 _0xcaad=['/:id','show','run','post','create','put','update','delete','destroy','multer','util','path','connect-timeout','express','Router','get','isAuthenticated','index'];(function(_0x3a0c23,_0x3c19f2){var _0x1ae73b=function(_0x16891a){while(--_0x16891a){_0x3a0c23['push'](_0x3a0c23['shift']());}};_0x1ae73b(++_0x3c19f2);}(_0xcaad,0x117));var _0xdcaa=function(_0x487a13,_0xc8c946){_0x487a13=_0x487a13-0x0;var _0x2cb9f3=_0xcaad[_0x487a13];return _0x2cb9f3;};'use strict';var multer=require(_0xdcaa('0x0'));var util=require(_0xdcaa('0x1'));var path=require(_0xdcaa('0x2'));var timeout=require(_0xdcaa('0x3'));var express=require(_0xdcaa('0x4'));var router=express[_0xdcaa('0x5')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./schedule.controller');router[_0xdcaa('0x6')]('/',auth[_0xdcaa('0x7')](),controller[_0xdcaa('0x8')]);router[_0xdcaa('0x6')](_0xdcaa('0x9'),auth[_0xdcaa('0x7')](),controller[_0xdcaa('0xa')]);router[_0xdcaa('0x6')]('/:id/run',auth['isAuthenticated'](),controller[_0xdcaa('0xb')]);router[_0xdcaa('0xc')]('/',auth[_0xdcaa('0x7')](),controller[_0xdcaa('0xd')]);router[_0xdcaa('0xe')](_0xdcaa('0x9'),auth['isAuthenticated'](),controller[_0xdcaa('0xf')]);router[_0xdcaa('0x10')](_0xdcaa('0x9'),auth[_0xdcaa('0x7')](),controller[_0xdcaa('0x11')]);module['exports']=router;