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