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