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 _0xf8de=['/:id/conditions','addConditions','addActions','delete','/:id','destroy','util','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','./automation.controller','get','index','isAuthenticated','show','getConditions','/:id/actions','getActions','post','create'];(function(_0x6c9dc0,_0x1916cc){var _0x54de8d=function(_0x4fbf33){while(--_0x4fbf33){_0x6c9dc0['push'](_0x6c9dc0['shift']());}};_0x54de8d(++_0x1916cc);}(_0xf8de,0x1d4));var _0xef8d=function(_0x12c8af,_0x45308d){_0x12c8af=_0x12c8af-0x0;var _0x447447=_0xf8de[_0x12c8af];return _0x447447;};'use strict';var multer=require('multer');var util=require(_0xef8d('0x0'));var path=require(_0xef8d('0x1'));var timeout=require('connect-timeout');var express=require(_0xef8d('0x2'));var router=express['Router']();var fs_extra=require(_0xef8d('0x3'));var auth=require(_0xef8d('0x4'));var interaction=require(_0xef8d('0x5'));var config=require('../../config/environment');var controller=require(_0xef8d('0x6'));router[_0xef8d('0x7')]('/',auth['isAuthenticated'](),controller[_0xef8d('0x8')]);router['get']('/:id',auth[_0xef8d('0x9')](),controller[_0xef8d('0xa')]);router[_0xef8d('0x7')]('/:id/conditions',auth['isAuthenticated'](),controller[_0xef8d('0xb')]);router[_0xef8d('0x7')](_0xef8d('0xc'),auth[_0xef8d('0x9')](),controller[_0xef8d('0xd')]);router[_0xef8d('0xe')]('/',auth[_0xef8d('0x9')](),controller[_0xef8d('0xf')]);router[_0xef8d('0xe')](_0xef8d('0x10'),auth[_0xef8d('0x9')](),controller[_0xef8d('0x11')]);router[_0xef8d('0xe')](_0xef8d('0xc'),auth[_0xef8d('0x9')](),controller[_0xef8d('0x12')]);router['put']('/:id',auth[_0xef8d('0x9')](),controller['update']);router[_0xef8d('0x13')](_0xef8d('0x14'),auth[_0xef8d('0x9')](),controller[_0xef8d('0x15')]);module['exports']=router;