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 _0xf417=['path','connect-timeout','Router','../../config/environment','get','isAuthenticated','show','/:id/conditions','getConditions','/:id/actions','addConditions','post','addActions','/:id','destroy','util'];(function(_0x239e42,_0x39bc11){var _0x47af3d=function(_0x576992){while(--_0x576992){_0x239e42['push'](_0x239e42['shift']());}};_0x47af3d(++_0x39bc11);}(_0xf417,0x8f));var _0x7f41=function(_0x29f1b5,_0x19ac42){_0x29f1b5=_0x29f1b5-0x0;var _0x5bcfbd=_0xf417[_0x29f1b5];return _0x5bcfbd;};'use strict';var multer=require('multer');var util=require(_0x7f41('0x0'));var path=require(_0x7f41('0x1'));var timeout=require(_0x7f41('0x2'));var express=require('express');var router=express[_0x7f41('0x3')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x7f41('0x4'));var controller=require('./automation.controller');router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0x7f41('0x5')]('/:id',auth[_0x7f41('0x6')](),controller[_0x7f41('0x7')]);router['get'](_0x7f41('0x8'),auth['isAuthenticated'](),controller[_0x7f41('0x9')]);router['get'](_0x7f41('0xa'),auth[_0x7f41('0x6')](),controller['getActions']);router['post']('/',auth[_0x7f41('0x6')](),controller['create']);router['post'](_0x7f41('0x8'),auth[_0x7f41('0x6')](),controller[_0x7f41('0xb')]);router[_0x7f41('0xc')](_0x7f41('0xa'),auth[_0x7f41('0x6')](),controller[_0x7f41('0xd')]);router['put']('/:id',auth[_0x7f41('0x6')](),controller['update']);router['delete'](_0x7f41('0xe'),auth[_0x7f41('0x6')](),controller[_0x7f41('0xf')]);module['exports']=router;