Built motion from commit (unavailable).|2.5.27
[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 _0xb404=['index','/:id','isAuthenticated','show','/:id/run','post','create','put','delete','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get'];(function(_0x3a3090,_0x1cd75d){var _0x18f91b=function(_0x5dc793){while(--_0x5dc793){_0x3a3090['push'](_0x3a3090['shift']());}};_0x18f91b(++_0x1cd75d);}(_0xb404,0x139));var _0x4b40=function(_0x23d57f,_0x4b5d1f){_0x23d57f=_0x23d57f-0x0;var _0x2db64f=_0xb404[_0x23d57f];return _0x2db64f;};'use strict';var multer=require(_0x4b40('0x0'));var util=require(_0x4b40('0x1'));var path=require(_0x4b40('0x2'));var timeout=require(_0x4b40('0x3'));var express=require(_0x4b40('0x4'));var router=express[_0x4b40('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x4b40('0x6'));var interaction=require(_0x4b40('0x7'));var config=require(_0x4b40('0x8'));var controller=require('./schedule.controller');router[_0x4b40('0x9')]('/',auth['isAuthenticated'](),controller[_0x4b40('0xa')]);router[_0x4b40('0x9')](_0x4b40('0xb'),auth[_0x4b40('0xc')](),controller[_0x4b40('0xd')]);router[_0x4b40('0x9')](_0x4b40('0xe'),auth[_0x4b40('0xc')](),controller['run']);router[_0x4b40('0xf')]('/',auth[_0x4b40('0xc')](),controller[_0x4b40('0x10')]);router[_0x4b40('0x11')](_0x4b40('0xb'),auth['isAuthenticated'](),controller['update']);router[_0x4b40('0x12')](_0x4b40('0xb'),auth[_0x4b40('0xc')](),controller['destroy']);module['exports']=router;