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