Built motion from commit f7863d46.|2.5.41
[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 _0xb26e=['express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./automation.controller','get','isAuthenticated','index','/:id','show','/:id/conditions','getConditions','getActions','post','addConditions','/:id/actions','put','update','delete','exports','multer'];(function(_0x48f04d,_0x569051){var _0x17b3e8=function(_0x582324){while(--_0x582324){_0x48f04d['push'](_0x48f04d['shift']());}};_0x17b3e8(++_0x569051);}(_0xb26e,0x11d));var _0xeb26=function(_0x12605e,_0x3d8305){_0x12605e=_0x12605e-0x0;var _0x35fb69=_0xb26e[_0x12605e];return _0x35fb69;};'use strict';var multer=require(_0xeb26('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0xeb26('0x1'));var router=express[_0xeb26('0x2')]();var fs_extra=require('fs-extra');var auth=require(_0xeb26('0x3'));var interaction=require(_0xeb26('0x4'));var config=require(_0xeb26('0x5'));var controller=require(_0xeb26('0x6'));router[_0xeb26('0x7')]('/',auth[_0xeb26('0x8')](),controller[_0xeb26('0x9')]);router[_0xeb26('0x7')](_0xeb26('0xa'),auth[_0xeb26('0x8')](),controller[_0xeb26('0xb')]);router[_0xeb26('0x7')](_0xeb26('0xc'),auth['isAuthenticated'](),controller[_0xeb26('0xd')]);router['get']('/:id/actions',auth[_0xeb26('0x8')](),controller[_0xeb26('0xe')]);router['post']('/',auth[_0xeb26('0x8')](),controller['create']);router[_0xeb26('0xf')](_0xeb26('0xc'),auth[_0xeb26('0x8')](),controller[_0xeb26('0x10')]);router[_0xeb26('0xf')](_0xeb26('0x11'),auth[_0xeb26('0x8')](),controller['addActions']);router[_0xeb26('0x12')](_0xeb26('0xa'),auth['isAuthenticated'](),controller[_0xeb26('0x13')]);router[_0xeb26('0x14')](_0xeb26('0xa'),auth[_0xeb26('0x8')](),controller['destroy']);module[_0xeb26('0x15')]=router;