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 _0x4b88=['express','Router','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','getAllConditions','/:id/any_conditions','/:id/actions','getActions','post','create','/:id/all_conditions','addAnyCondition','addAction','update','delete','destroy','exports','util'];(function(_0x2920dd,_0x19d049){var _0x5d4e52=function(_0x46c751){while(--_0x46c751){_0x2920dd['push'](_0x2920dd['shift']());}};_0x5d4e52(++_0x19d049);}(_0x4b88,0x141));var _0x84b8=function(_0x4eaa61,_0x361fde){_0x4eaa61=_0x4eaa61-0x0;var _0x3115ff=_0x4b88[_0x4eaa61];return _0x3115ff;};'use strict';var multer=require('multer');var util=require(_0x84b8('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x84b8('0x1'));var router=express[_0x84b8('0x2')]();var auth=require('../../components/auth/service');var interaction=require(_0x84b8('0x3'));var config=require(_0x84b8('0x4'));var controller=require('./trigger.controller');router[_0x84b8('0x5')]('/',auth[_0x84b8('0x6')](),controller[_0x84b8('0x7')]);router[_0x84b8('0x5')](_0x84b8('0x8'),auth[_0x84b8('0x6')](),controller[_0x84b8('0x9')]);router[_0x84b8('0x5')]('/:id/all_conditions',auth['isAuthenticated'](),controller[_0x84b8('0xa')]);router[_0x84b8('0x5')](_0x84b8('0xb'),auth[_0x84b8('0x6')](),controller['getAnyConditions']);router[_0x84b8('0x5')](_0x84b8('0xc'),auth[_0x84b8('0x6')](),controller[_0x84b8('0xd')]);router[_0x84b8('0xe')]('/',auth[_0x84b8('0x6')](),controller[_0x84b8('0xf')]);router[_0x84b8('0xe')](_0x84b8('0x10'),auth[_0x84b8('0x6')](),controller['addAllCondition']);router[_0x84b8('0xe')](_0x84b8('0xb'),auth[_0x84b8('0x6')](),controller[_0x84b8('0x11')]);router['post'](_0x84b8('0xc'),auth[_0x84b8('0x6')](),controller[_0x84b8('0x12')]);router['put'](_0x84b8('0x8'),auth[_0x84b8('0x6')](),controller[_0x84b8('0x13')]);router[_0x84b8('0x14')]('/:id',auth[_0x84b8('0x6')](),controller[_0x84b8('0x15')]);module[_0x84b8('0x16')]=router;