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 _0xc224=['getConditions','get','/:id/actions','getActions','create','addConditions','post','addActions','put','update','destroy','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','./automation.controller','isAuthenticated','/:id','show','/:id/conditions'];(function(_0x307874,_0x1f4c67){var _0x59092f=function(_0x435090){while(--_0x435090){_0x307874['push'](_0x307874['shift']());}};_0x59092f(++_0x1f4c67);}(_0xc224,0xe4));var _0x4c22=function(_0x582a7b,_0x2bbd99){_0x582a7b=_0x582a7b-0x0;var _0x34ed9d=_0xc224[_0x582a7b];return _0x34ed9d;};'use strict';var multer=require(_0x4c22('0x0'));var util=require(_0x4c22('0x1'));var path=require(_0x4c22('0x2'));var timeout=require(_0x4c22('0x3'));var express=require('express');var router=express[_0x4c22('0x4')]();var auth=require(_0x4c22('0x5'));var interaction=require(_0x4c22('0x6'));var config=require('../../config/environment');var controller=require(_0x4c22('0x7'));router['get']('/',auth[_0x4c22('0x8')](),controller['index']);router['get'](_0x4c22('0x9'),auth[_0x4c22('0x8')](),controller[_0x4c22('0xa')]);router['get'](_0x4c22('0xb'),auth[_0x4c22('0x8')](),controller[_0x4c22('0xc')]);router[_0x4c22('0xd')](_0x4c22('0xe'),auth[_0x4c22('0x8')](),controller[_0x4c22('0xf')]);router['post']('/',auth['isAuthenticated'](),controller[_0x4c22('0x10')]);router['post'](_0x4c22('0xb'),auth[_0x4c22('0x8')](),controller[_0x4c22('0x11')]);router[_0x4c22('0x12')](_0x4c22('0xe'),auth[_0x4c22('0x8')](),controller[_0x4c22('0x13')]);router[_0x4c22('0x14')]('/:id',auth[_0x4c22('0x8')](),controller[_0x4c22('0x15')]);router['delete'](_0x4c22('0x9'),auth['isAuthenticated'](),controller[_0x4c22('0x16')]);module[_0x4c22('0x17')]=router;