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