27561ff100b91027d9b302600855d1bc1b02cf97
[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 _0x7ad1=['run','post','create','put','/:id','update','delete','destroy','exports','util','path','connect-timeout','express','Router','./schedule.controller','get','isAuthenticated','show','/:id/run'];(function(_0x3cd4df,_0x756389){var _0x54a719=function(_0x23e451){while(--_0x23e451){_0x3cd4df['push'](_0x3cd4df['shift']());}};_0x54a719(++_0x756389);}(_0x7ad1,0x1be));var _0x17ad=function(_0x350f1,_0x3f1f64){_0x350f1=_0x350f1-0x0;var _0x397187=_0x7ad1[_0x350f1];return _0x397187;};'use strict';var multer=require('multer');var util=require(_0x17ad('0x0'));var path=require(_0x17ad('0x1'));var timeout=require(_0x17ad('0x2'));var express=require(_0x17ad('0x3'));var router=express[_0x17ad('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x17ad('0x5'));router[_0x17ad('0x6')]('/',auth[_0x17ad('0x7')](),controller['index']);router[_0x17ad('0x6')]('/:id',auth[_0x17ad('0x7')](),controller[_0x17ad('0x8')]);router[_0x17ad('0x6')](_0x17ad('0x9'),auth['isAuthenticated'](),controller[_0x17ad('0xa')]);router[_0x17ad('0xb')]('/',auth['isAuthenticated'](),controller[_0x17ad('0xc')]);router[_0x17ad('0xd')](_0x17ad('0xe'),auth['isAuthenticated'](),controller[_0x17ad('0xf')]);router[_0x17ad('0x10')](_0x17ad('0xe'),auth['isAuthenticated'](),controller[_0x17ad('0x11')]);module[_0x17ad('0x12')]=router;