50563de82f204b94863c03ebd4bb3c26bb40d86e
[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 _0x6972=['create','post','addAllCondition','addAction','put','delete','destroy','multer','path','connect-timeout','express','fs-extra','../../components/auth/service','../../config/environment','./trigger.controller','get','isAuthenticated','index','/:id','show','/:id/all_conditions','getAllConditions','/:id/any_conditions','getAnyConditions','/:id/actions','getActions'];(function(_0x407a3e,_0x15acb0){var _0x129fe3=function(_0x124c2f){while(--_0x124c2f){_0x407a3e['push'](_0x407a3e['shift']());}};_0x129fe3(++_0x15acb0);}(_0x6972,0x173));var _0x2697=function(_0xd098d3,_0x5d4922){_0xd098d3=_0xd098d3-0x0;var _0x35f755=_0x6972[_0xd098d3];return _0x35f755;};'use strict';var multer=require(_0x2697('0x0'));var util=require('util');var path=require(_0x2697('0x1'));var timeout=require(_0x2697('0x2'));var express=require(_0x2697('0x3'));var router=express['Router']();var fs_extra=require(_0x2697('0x4'));var auth=require(_0x2697('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x2697('0x6'));var controller=require(_0x2697('0x7'));router[_0x2697('0x8')]('/',auth[_0x2697('0x9')](),controller[_0x2697('0xa')]);router[_0x2697('0x8')](_0x2697('0xb'),auth[_0x2697('0x9')](),controller[_0x2697('0xc')]);router[_0x2697('0x8')](_0x2697('0xd'),auth[_0x2697('0x9')](),controller[_0x2697('0xe')]);router['get'](_0x2697('0xf'),auth[_0x2697('0x9')](),controller[_0x2697('0x10')]);router['get'](_0x2697('0x11'),auth[_0x2697('0x9')](),controller[_0x2697('0x12')]);router['post']('/',auth[_0x2697('0x9')](),controller[_0x2697('0x13')]);router[_0x2697('0x14')](_0x2697('0xd'),auth[_0x2697('0x9')](),controller[_0x2697('0x15')]);router[_0x2697('0x14')](_0x2697('0xf'),auth[_0x2697('0x9')](),controller['addAnyCondition']);router[_0x2697('0x14')](_0x2697('0x11'),auth[_0x2697('0x9')](),controller[_0x2697('0x16')]);router[_0x2697('0x17')](_0x2697('0xb'),auth[_0x2697('0x9')](),controller['update']);router[_0x2697('0x18')]('/:id',auth[_0x2697('0x9')](),controller[_0x2697('0x19')]);module['exports']=router;