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 _0x4a95=['connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','index','get','/:id','isAuthenticated','/:id/conditions','getConditions','getActions','post','create','/:id/actions','addActions','put','update','exports','util','path'];(function(_0x58dcfa,_0x152a06){var _0xc8d097=function(_0xcf0fca){while(--_0xcf0fca){_0x58dcfa['push'](_0x58dcfa['shift']());}};_0xc8d097(++_0x152a06);}(_0x4a95,0x91));var _0x54a9=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x4a95[_0x14add3];return _0x4a174f;};'use strict';var multer=require('multer');var util=require(_0x54a9('0x0'));var path=require(_0x54a9('0x1'));var timeout=require(_0x54a9('0x2'));var express=require(_0x54a9('0x3'));var router=express['Router']();var auth=require(_0x54a9('0x4'));var interaction=require(_0x54a9('0x5'));var config=require(_0x54a9('0x6'));var controller=require('./automation.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x54a9('0x7')]);router[_0x54a9('0x8')](_0x54a9('0x9'),auth[_0x54a9('0xa')](),controller['show']);router[_0x54a9('0x8')](_0x54a9('0xb'),auth[_0x54a9('0xa')](),controller[_0x54a9('0xc')]);router['get']('/:id/actions',auth[_0x54a9('0xa')](),controller[_0x54a9('0xd')]);router[_0x54a9('0xe')]('/',auth['isAuthenticated'](),controller[_0x54a9('0xf')]);router[_0x54a9('0xe')](_0x54a9('0xb'),auth[_0x54a9('0xa')](),controller['addConditions']);router[_0x54a9('0xe')](_0x54a9('0x10'),auth[_0x54a9('0xa')](),controller[_0x54a9('0x11')]);router[_0x54a9('0x12')]('/:id',auth[_0x54a9('0xa')](),controller[_0x54a9('0x13')]);router['delete'](_0x54a9('0x9'),auth[_0x54a9('0xa')](),controller['destroy']);module[_0x54a9('0x14')]=router;