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