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