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