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 _0xc4b3=['destroy','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','show','/:id/conditions','getConditions','/:id/actions','getActions','post','create','addConditions','addActions','put','/:id','update','delete'];(function(_0x452507,_0x5ed96e){var _0x13f9cb=function(_0x3b130b){while(--_0x3b130b){_0x452507['push'](_0x452507['shift']());}};_0x13f9cb(++_0x5ed96e);}(_0xc4b3,0x192));var _0x3c4b=function(_0x29756e,_0x57af05){_0x29756e=_0x29756e-0x0;var _0x59e52d=_0xc4b3[_0x29756e];return _0x59e52d;};'use strict';var multer=require(_0x3c4b('0x0'));var util=require(_0x3c4b('0x1'));var path=require(_0x3c4b('0x2'));var timeout=require(_0x3c4b('0x3'));var express=require('express');var router=express[_0x3c4b('0x4')]();var auth=require(_0x3c4b('0x5'));var interaction=require(_0x3c4b('0x6'));var config=require('../../config/environment');var controller=require('./automation.controller');router[_0x3c4b('0x7')]('/',auth[_0x3c4b('0x8')](),controller[_0x3c4b('0x9')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0x3c4b('0xa')]);router[_0x3c4b('0x7')](_0x3c4b('0xb'),auth[_0x3c4b('0x8')](),controller[_0x3c4b('0xc')]);router[_0x3c4b('0x7')](_0x3c4b('0xd'),auth[_0x3c4b('0x8')](),controller[_0x3c4b('0xe')]);router[_0x3c4b('0xf')]('/',auth[_0x3c4b('0x8')](),controller[_0x3c4b('0x10')]);router['post']('/:id/conditions',auth[_0x3c4b('0x8')](),controller[_0x3c4b('0x11')]);router[_0x3c4b('0xf')]('/:id/actions',auth[_0x3c4b('0x8')](),controller[_0x3c4b('0x12')]);router[_0x3c4b('0x13')](_0x3c4b('0x14'),auth['isAuthenticated'](),controller[_0x3c4b('0x15')]);router[_0x3c4b('0x16')](_0x3c4b('0x14'),auth[_0x3c4b('0x8')](),controller[_0x3c4b('0x17')]);module[_0x3c4b('0x18')]=router;