3f3a8cc1c098873441e66d9f4d111675fb694dfc
[motion2.git] / server / api / automation / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x2caf=['../../config/environment','get','isAuthenticated','index','/:id','show','getConditions','post','/:id/actions','addActions','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/interaction/service'];(function(_0x2dd67f,_0xcf9508){var _0x4f7f9c=function(_0x1e26b9){while(--_0x1e26b9){_0x2dd67f['push'](_0x2dd67f['shift']());}};_0x4f7f9c(++_0xcf9508);}(_0x2caf,0x10a));var _0xf2ca=function(_0x3e73db,_0x16d84e){_0x3e73db=_0x3e73db-0x0;var _0x12a6c0=_0x2caf[_0x3e73db];return _0x12a6c0;};'use strict';var multer=require(_0xf2ca('0x0'));var util=require(_0xf2ca('0x1'));var path=require(_0xf2ca('0x2'));var timeout=require(_0xf2ca('0x3'));var express=require(_0xf2ca('0x4'));var router=express[_0xf2ca('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0xf2ca('0x6'));var config=require(_0xf2ca('0x7'));var controller=require('./automation.controller');router[_0xf2ca('0x8')]('/',auth[_0xf2ca('0x9')](),controller[_0xf2ca('0xa')]);router['get'](_0xf2ca('0xb'),auth[_0xf2ca('0x9')](),controller[_0xf2ca('0xc')]);router[_0xf2ca('0x8')]('/:id/conditions',auth[_0xf2ca('0x9')](),controller[_0xf2ca('0xd')]);router['get']('/:id/actions',auth[_0xf2ca('0x9')](),controller['getActions']);router[_0xf2ca('0xe')]('/',auth[_0xf2ca('0x9')](),controller['create']);router['post']('/:id/conditions',auth['isAuthenticated'](),controller['addConditions']);router[_0xf2ca('0xe')](_0xf2ca('0xf'),auth[_0xf2ca('0x9')](),controller[_0xf2ca('0x10')]);router['put'](_0xf2ca('0xb'),auth['isAuthenticated'](),controller[_0xf2ca('0x11')]);router[_0xf2ca('0x12')]('/:id',auth[_0xf2ca('0x9')](),controller[_0xf2ca('0x13')]);module[_0xf2ca('0x14')]=router;