Built motion from commit da617fac.|2.6.6
[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 _0xccc0=['../../config/environment','get','isAuthenticated','index','/:id','show','/:id/run','run','post','create','delete','destroy','exports','multer','connect-timeout','express','Router','fs-extra'];(function(_0x590f5e,_0x5f4080){var _0x517fd6=function(_0x555ab6){while(--_0x555ab6){_0x590f5e['push'](_0x590f5e['shift']());}};_0x517fd6(++_0x5f4080);}(_0xccc0,0x1f3));var _0x0ccc=function(_0x7b192c,_0x2ccb96){_0x7b192c=_0x7b192c-0x0;var _0xbb2dc0=_0xccc0[_0x7b192c];return _0xbb2dc0;};'use strict';var multer=require(_0x0ccc('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x0ccc('0x1'));var express=require(_0x0ccc('0x2'));var router=express[_0x0ccc('0x3')]();var fs_extra=require(_0x0ccc('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x0ccc('0x5'));var controller=require('./schedule.controller');router[_0x0ccc('0x6')]('/',auth[_0x0ccc('0x7')](),controller[_0x0ccc('0x8')]);router['get'](_0x0ccc('0x9'),auth[_0x0ccc('0x7')](),controller[_0x0ccc('0xa')]);router[_0x0ccc('0x6')](_0x0ccc('0xb'),auth['isAuthenticated'](),controller[_0x0ccc('0xc')]);router[_0x0ccc('0xd')]('/',auth[_0x0ccc('0x7')](),controller[_0x0ccc('0xe')]);router['put'](_0x0ccc('0x9'),auth[_0x0ccc('0x7')](),controller['update']);router[_0x0ccc('0xf')](_0x0ccc('0x9'),auth[_0x0ccc('0x7')](),controller[_0x0ccc('0x10')]);module[_0x0ccc('0x11')]=router;