d06df60aed1127cf7e2248e1a5fb6196e590b777
[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 _0x08e0=['connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','index','/:id','show','/:id/run','isAuthenticated','run','create','put','update','delete','exports','multer','util'];(function(_0x59145a,_0x1f60f1){var _0xf04d7=function(_0x247581){while(--_0x247581){_0x59145a['push'](_0x59145a['shift']());}};_0xf04d7(++_0x1f60f1);}(_0x08e0,0x116));var _0x008e=function(_0xf16b1,_0x33c637){_0xf16b1=_0xf16b1-0x0;var _0x26f94d=_0x08e0[_0xf16b1];return _0x26f94d;};'use strict';var multer=require(_0x008e('0x0'));var util=require(_0x008e('0x1'));var path=require('path');var timeout=require(_0x008e('0x2'));var express=require(_0x008e('0x3'));var router=express[_0x008e('0x4')]();var fs_extra=require(_0x008e('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x008e('0x6'));var config=require(_0x008e('0x7'));var controller=require('./schedule.controller');router[_0x008e('0x8')]('/',auth['isAuthenticated'](),controller[_0x008e('0x9')]);router[_0x008e('0x8')](_0x008e('0xa'),auth['isAuthenticated'](),controller[_0x008e('0xb')]);router[_0x008e('0x8')](_0x008e('0xc'),auth[_0x008e('0xd')](),controller[_0x008e('0xe')]);router['post']('/',auth[_0x008e('0xd')](),controller[_0x008e('0xf')]);router[_0x008e('0x10')](_0x008e('0xa'),auth[_0x008e('0xd')](),controller[_0x008e('0x11')]);router[_0x008e('0x12')](_0x008e('0xa'),auth['isAuthenticated'](),controller['destroy']);module[_0x008e('0x13')]=router;