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