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