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