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