603b699d52c115c4b4d72b338eaa09bb3932f0d1
[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 _0xdd2e=['isAuthenticated','index','get','/:id','show','/:id/any_conditions','getAnyConditions','/:id/actions','create','post','/:id/all_conditions','addAnyCondition','addAction','update','delete','destroy','exports','multer','util','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x2c91e9,_0x2fb965){var _0x13f0ff=function(_0xb39edf){while(--_0xb39edf){_0x2c91e9['push'](_0x2c91e9['shift']());}};_0x13f0ff(++_0x2fb965);}(_0xdd2e,0x13d));var _0xedd2=function(_0x574559,_0x567875){_0x574559=_0x574559-0x0;var _0x5211e8=_0xdd2e[_0x574559];return _0x5211e8;};'use strict';var multer=require(_0xedd2('0x0'));var util=require(_0xedd2('0x1'));var path=require('path');var timeout=require(_0xedd2('0x2'));var express=require(_0xedd2('0x3'));var router=express['Router']();var fs_extra=require(_0xedd2('0x4'));var auth=require(_0xedd2('0x5'));var interaction=require(_0xedd2('0x6'));var config=require(_0xedd2('0x7'));var controller=require('./trigger.controller');router['get']('/',auth[_0xedd2('0x8')](),controller[_0xedd2('0x9')]);router[_0xedd2('0xa')](_0xedd2('0xb'),auth[_0xedd2('0x8')](),controller[_0xedd2('0xc')]);router[_0xedd2('0xa')]('/:id/all_conditions',auth[_0xedd2('0x8')](),controller['getAllConditions']);router[_0xedd2('0xa')](_0xedd2('0xd'),auth[_0xedd2('0x8')](),controller[_0xedd2('0xe')]);router[_0xedd2('0xa')](_0xedd2('0xf'),auth[_0xedd2('0x8')](),controller['getActions']);router['post']('/',auth[_0xedd2('0x8')](),controller[_0xedd2('0x10')]);router[_0xedd2('0x11')](_0xedd2('0x12'),auth['isAuthenticated'](),controller['addAllCondition']);router[_0xedd2('0x11')]('/:id/any_conditions',auth['isAuthenticated'](),controller[_0xedd2('0x13')]);router['post'](_0xedd2('0xf'),auth['isAuthenticated'](),controller[_0xedd2('0x14')]);router['put'](_0xedd2('0xb'),auth[_0xedd2('0x8')](),controller[_0xedd2('0x15')]);router[_0xedd2('0x16')](_0xedd2('0xb'),auth[_0xedd2('0x8')](),controller[_0xedd2('0x17')]);module[_0xedd2('0x18')]=router;