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 _0xf1b1=['addAllCondition','/:id/any_conditions','addAction','put','update','multer','util','path','connect-timeout','Router','../../components/interaction/service','get','isAuthenticated','/:id','/:id/all_conditions','getAllConditions','getAnyConditions','/:id/actions','getActions','create','post'];(function(_0xe66cf2,_0x32ba5f){var _0x2d84e7=function(_0x58a7d8){while(--_0x58a7d8){_0xe66cf2['push'](_0xe66cf2['shift']());}};_0x2d84e7(++_0x32ba5f);}(_0xf1b1,0xd7));var _0x1f1b=function(_0x5a3ee9,_0x11ed55){_0x5a3ee9=_0x5a3ee9-0x0;var _0x45032c=_0xf1b1[_0x5a3ee9];return _0x45032c;};'use strict';var multer=require(_0x1f1b('0x0'));var util=require(_0x1f1b('0x1'));var path=require(_0x1f1b('0x2'));var timeout=require(_0x1f1b('0x3'));var express=require('express');var router=express[_0x1f1b('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x1f1b('0x5'));var config=require('../../config/environment');var controller=require('./trigger.controller');router[_0x1f1b('0x6')]('/',auth[_0x1f1b('0x7')](),controller['index']);router[_0x1f1b('0x6')](_0x1f1b('0x8'),auth[_0x1f1b('0x7')](),controller['show']);router['get'](_0x1f1b('0x9'),auth[_0x1f1b('0x7')](),controller[_0x1f1b('0xa')]);router['get']('/:id/any_conditions',auth[_0x1f1b('0x7')](),controller[_0x1f1b('0xb')]);router['get'](_0x1f1b('0xc'),auth[_0x1f1b('0x7')](),controller[_0x1f1b('0xd')]);router['post']('/',auth[_0x1f1b('0x7')](),controller[_0x1f1b('0xe')]);router[_0x1f1b('0xf')](_0x1f1b('0x9'),auth[_0x1f1b('0x7')](),controller[_0x1f1b('0x10')]);router[_0x1f1b('0xf')](_0x1f1b('0x11'),auth['isAuthenticated'](),controller['addAnyCondition']);router[_0x1f1b('0xf')](_0x1f1b('0xc'),auth[_0x1f1b('0x7')](),controller[_0x1f1b('0x12')]);router[_0x1f1b('0x13')](_0x1f1b('0x8'),auth[_0x1f1b('0x7')](),controller[_0x1f1b('0x14')]);router['delete'](_0x1f1b('0x8'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;