24dbb678ceb56d8f71e4311fa6668bfd55a96c0b
[motion2.git] / server / api / trigger / 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 _0xb28b=['getAnyConditions','/:id/actions','create','post','addAnyCondition','delete','multer','util','path','connect-timeout','express','../../components/auth/service','./trigger.controller','get','isAuthenticated','/:id','show','/:id/all_conditions','getAllConditions','/:id/any_conditions'];(function(_0x376b2c,_0x4da287){var _0x2e7ce2=function(_0x3bf4df){while(--_0x3bf4df){_0x376b2c['push'](_0x376b2c['shift']());}};_0x2e7ce2(++_0x4da287);}(_0xb28b,0x1be));var _0xbb28=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xb28b[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0xbb28('0x0'));var util=require(_0xbb28('0x1'));var path=require(_0xbb28('0x2'));var timeout=require(_0xbb28('0x3'));var express=require(_0xbb28('0x4'));var router=express['Router']();var auth=require(_0xbb28('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xbb28('0x6'));router[_0xbb28('0x7')]('/',auth[_0xbb28('0x8')](),controller['index']);router['get'](_0xbb28('0x9'),auth[_0xbb28('0x8')](),controller[_0xbb28('0xa')]);router[_0xbb28('0x7')](_0xbb28('0xb'),auth[_0xbb28('0x8')](),controller[_0xbb28('0xc')]);router[_0xbb28('0x7')](_0xbb28('0xd'),auth[_0xbb28('0x8')](),controller[_0xbb28('0xe')]);router['get'](_0xbb28('0xf'),auth[_0xbb28('0x8')](),controller['getActions']);router['post']('/',auth['isAuthenticated'](),controller[_0xbb28('0x10')]);router[_0xbb28('0x11')](_0xbb28('0xb'),auth[_0xbb28('0x8')](),controller['addAllCondition']);router['post'](_0xbb28('0xd'),auth[_0xbb28('0x8')](),controller[_0xbb28('0x12')]);router['post'](_0xbb28('0xf'),auth['isAuthenticated'](),controller['addAction']);router['put']('/:id',auth[_0xbb28('0x8')](),controller['update']);router[_0xbb28('0x13')](_0xbb28('0x9'),auth[_0xbb28('0x8')](),controller['destroy']);module['exports']=router;