Built motion from commit 1fa89557.|2.6.10
[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 _0x191a=['../../components/interaction/service','../../config/environment','./schedule.controller','get','index','/:id','isAuthenticated','show','run','post','create','update','delete','destroy','path','connect-timeout','express','Router','../../components/auth/service'];(function(_0x48affc,_0x405388){var _0x18a426=function(_0xcbe267){while(--_0xcbe267){_0x48affc['push'](_0x48affc['shift']());}};_0x18a426(++_0x405388);}(_0x191a,0x1d6));var _0xa191=function(_0x4bae87,_0x1c6934){_0x4bae87=_0x4bae87-0x0;var _0x3a1670=_0x191a[_0x4bae87];return _0x3a1670;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xa191('0x0'));var timeout=require(_0xa191('0x1'));var express=require(_0xa191('0x2'));var router=express[_0xa191('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xa191('0x4'));var interaction=require(_0xa191('0x5'));var config=require(_0xa191('0x6'));var controller=require(_0xa191('0x7'));router[_0xa191('0x8')]('/',auth['isAuthenticated'](),controller[_0xa191('0x9')]);router[_0xa191('0x8')](_0xa191('0xa'),auth[_0xa191('0xb')](),controller[_0xa191('0xc')]);router[_0xa191('0x8')]('/:id/run',auth[_0xa191('0xb')](),controller[_0xa191('0xd')]);router[_0xa191('0xe')]('/',auth[_0xa191('0xb')](),controller[_0xa191('0xf')]);router['put'](_0xa191('0xa'),auth[_0xa191('0xb')](),controller[_0xa191('0x10')]);router[_0xa191('0x11')](_0xa191('0xa'),auth['isAuthenticated'](),controller[_0xa191('0x12')]);module['exports']=router;