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