Built motion from commit (unavailable).|2.5.23
[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 _0x853a=['/:id','show','/:id/conditions','/:id/actions','getActions','post','create','addActions','put','delete','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./automation.controller','get','isAuthenticated','index'];(function(_0x11017d,_0x2f50bc){var _0x4b1d71=function(_0x4b5ef2){while(--_0x4b5ef2){_0x11017d['push'](_0x11017d['shift']());}};_0x4b1d71(++_0x2f50bc);}(_0x853a,0x1d8));var _0xa853=function(_0x14a791,_0xee32e9){_0x14a791=_0x14a791-0x0;var _0x2150f3=_0x853a[_0x14a791];return _0x2150f3;};'use strict';var multer=require(_0xa853('0x0'));var util=require(_0xa853('0x1'));var path=require(_0xa853('0x2'));var timeout=require('connect-timeout');var express=require(_0xa853('0x3'));var router=express[_0xa853('0x4')]();var auth=require(_0xa853('0x5'));var interaction=require(_0xa853('0x6'));var config=require(_0xa853('0x7'));var controller=require(_0xa853('0x8'));router[_0xa853('0x9')]('/',auth[_0xa853('0xa')](),controller[_0xa853('0xb')]);router[_0xa853('0x9')](_0xa853('0xc'),auth[_0xa853('0xa')](),controller[_0xa853('0xd')]);router[_0xa853('0x9')](_0xa853('0xe'),auth['isAuthenticated'](),controller['getConditions']);router['get'](_0xa853('0xf'),auth[_0xa853('0xa')](),controller[_0xa853('0x10')]);router[_0xa853('0x11')]('/',auth[_0xa853('0xa')](),controller[_0xa853('0x12')]);router['post']('/:id/conditions',auth[_0xa853('0xa')](),controller['addConditions']);router[_0xa853('0x11')]('/:id/actions',auth[_0xa853('0xa')](),controller[_0xa853('0x13')]);router[_0xa853('0x14')]('/:id',auth[_0xa853('0xa')](),controller['update']);router[_0xa853('0x15')](_0xa853('0xc'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;