1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x41cb=['update','destroy','exports','multer','path','connect-timeout','Router','../../components/interaction/service','./schedule.controller','get','isAuthenticated','index','/:id','show','/:id/run','run','create','put'];(function(_0x3c487b,_0x44c5e2){var _0x1d65f6=function(_0x135e6d){while(--_0x135e6d){_0x3c487b['push'](_0x3c487b['shift']());}};_0x1d65f6(++_0x44c5e2);}(_0x41cb,0x1a1));var _0xb41c=function(_0x1c60fe,_0x37e05c){_0x1c60fe=_0x1c60fe-0x0;var _0x259272=_0x41cb[_0x1c60fe];return _0x259272;};'use strict';var multer=require(_0xb41c('0x0'));var util=require('util');var path=require(_0xb41c('0x1'));var timeout=require(_0xb41c('0x2'));var express=require('express');var router=express[_0xb41c('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xb41c('0x4'));var config=require('../../config/environment');var controller=require(_0xb41c('0x5'));router[_0xb41c('0x6')]('/',auth[_0xb41c('0x7')](),controller[_0xb41c('0x8')]);router[_0xb41c('0x6')](_0xb41c('0x9'),auth[_0xb41c('0x7')](),controller[_0xb41c('0xa')]);router['get'](_0xb41c('0xb'),auth[_0xb41c('0x7')](),controller[_0xb41c('0xc')]);router['post']('/',auth[_0xb41c('0x7')](),controller[_0xb41c('0xd')]);router[_0xb41c('0xe')](_0xb41c('0x9'),auth[_0xb41c('0x7')](),controller[_0xb41c('0xf')]);router['delete'](_0xb41c('0x9'),auth['isAuthenticated'](),controller[_0xb41c('0x10')]);module[_0xb41c('0x11')]=router;