Built motion from commit (unavailable).|2.5.12
[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 _0xac60=['/:id/conditions','getConditions','post','create','/:id/actions','addActions','put','update','delete','destroy','exports','path','connect-timeout','express','Router','../../config/environment','./automation.controller','get','isAuthenticated','/:id'];(function(_0x1d4f40,_0x344d5a){var _0x397491=function(_0x3045e1){while(--_0x3045e1){_0x1d4f40['push'](_0x1d4f40['shift']());}};_0x397491(++_0x344d5a);}(_0xac60,0x137));var _0x0ac6=function(_0x102e37,_0x14a181){_0x102e37=_0x102e37-0x0;var _0x35a07c=_0xac60[_0x102e37];return _0x35a07c;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x0ac6('0x0'));var timeout=require(_0x0ac6('0x1'));var express=require(_0x0ac6('0x2'));var router=express[_0x0ac6('0x3')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x0ac6('0x4'));var controller=require(_0x0ac6('0x5'));router[_0x0ac6('0x6')]('/',auth[_0x0ac6('0x7')](),controller['index']);router[_0x0ac6('0x6')](_0x0ac6('0x8'),auth[_0x0ac6('0x7')](),controller['show']);router[_0x0ac6('0x6')](_0x0ac6('0x9'),auth[_0x0ac6('0x7')](),controller[_0x0ac6('0xa')]);router[_0x0ac6('0x6')]('/:id/actions',auth[_0x0ac6('0x7')](),controller['getActions']);router[_0x0ac6('0xb')]('/',auth[_0x0ac6('0x7')](),controller[_0x0ac6('0xc')]);router['post']('/:id/conditions',auth[_0x0ac6('0x7')](),controller['addConditions']);router['post'](_0x0ac6('0xd'),auth[_0x0ac6('0x7')](),controller[_0x0ac6('0xe')]);router[_0x0ac6('0xf')](_0x0ac6('0x8'),auth[_0x0ac6('0x7')](),controller[_0x0ac6('0x10')]);router[_0x0ac6('0x11')](_0x0ac6('0x8'),auth[_0x0ac6('0x7')](),controller[_0x0ac6('0x12')]);module[_0x0ac6('0x13')]=router;