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