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