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 _0xb9b4=['util','path','Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','show','getAnyConditions','getActions','post','/:id/all_conditions','addAllCondition','addAnyCondition','/:id/actions','addAction','put','/:id','update','delete','exports','multer'];(function(_0x7b58c,_0x2a0465){var _0x112123=function(_0x5162ff){while(--_0x5162ff){_0x7b58c['push'](_0x7b58c['shift']());}};_0x112123(++_0x2a0465);}(_0xb9b4,0x137));var _0x4b9b=function(_0x57025d,_0x4bbb9a){_0x57025d=_0x57025d-0x0;var _0x35d08d=_0xb9b4[_0x57025d];return _0x35d08d;};'use strict';var multer=require(_0x4b9b('0x0'));var util=require(_0x4b9b('0x1'));var path=require(_0x4b9b('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x4b9b('0x3')]();var fs_extra=require(_0x4b9b('0x4'));var auth=require(_0x4b9b('0x5'));var interaction=require(_0x4b9b('0x6'));var config=require('../../config/environment');var controller=require('./trigger.controller');router[_0x4b9b('0x7')]('/',auth[_0x4b9b('0x8')](),controller[_0x4b9b('0x9')]);router['get']('/:id',auth[_0x4b9b('0x8')](),controller[_0x4b9b('0xa')]);router[_0x4b9b('0x7')]('/:id/all_conditions',auth[_0x4b9b('0x8')](),controller['getAllConditions']);router['get']('/:id/any_conditions',auth[_0x4b9b('0x8')](),controller[_0x4b9b('0xb')]);router['get']('/:id/actions',auth[_0x4b9b('0x8')](),controller[_0x4b9b('0xc')]);router[_0x4b9b('0xd')]('/',auth[_0x4b9b('0x8')](),controller['create']);router[_0x4b9b('0xd')](_0x4b9b('0xe'),auth['isAuthenticated'](),controller[_0x4b9b('0xf')]);router[_0x4b9b('0xd')]('/:id/any_conditions',auth[_0x4b9b('0x8')](),controller[_0x4b9b('0x10')]);router['post'](_0x4b9b('0x11'),auth[_0x4b9b('0x8')](),controller[_0x4b9b('0x12')]);router[_0x4b9b('0x13')](_0x4b9b('0x14'),auth['isAuthenticated'](),controller[_0x4b9b('0x15')]);router[_0x4b9b('0x16')](_0x4b9b('0x14'),auth[_0x4b9b('0x8')](),controller['destroy']);module[_0x4b9b('0x17')]=router;