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