285169d61f11436908a670de53035127839ccf8d
[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 _0xe9be=['addAllCondition','/:id/actions','addAction','put','/:id','destroy','exports','multer','util','connect-timeout','Router','../../components/interaction/service','../../config/environment','./trigger.controller','isAuthenticated','index','show','get','/:id/any_conditions','getAnyConditions','post','create','/:id/all_conditions'];(function(_0x413feb,_0x10477f){var _0x40ee88=function(_0x32a3f6){while(--_0x32a3f6){_0x413feb['push'](_0x413feb['shift']());}};_0x40ee88(++_0x10477f);}(_0xe9be,0x1ea));var _0xee9b=function(_0x2052cc,_0x4f76dc){_0x2052cc=_0x2052cc-0x0;var _0x58609f=_0xe9be[_0x2052cc];return _0x58609f;};'use strict';var multer=require(_0xee9b('0x0'));var util=require(_0xee9b('0x1'));var path=require('path');var timeout=require(_0xee9b('0x2'));var express=require('express');var router=express[_0xee9b('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0xee9b('0x4'));var config=require(_0xee9b('0x5'));var controller=require(_0xee9b('0x6'));router['get']('/',auth[_0xee9b('0x7')](),controller[_0xee9b('0x8')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0xee9b('0x9')]);router['get']('/:id/all_conditions',auth['isAuthenticated'](),controller['getAllConditions']);router[_0xee9b('0xa')](_0xee9b('0xb'),auth['isAuthenticated'](),controller[_0xee9b('0xc')]);router[_0xee9b('0xa')]('/:id/actions',auth[_0xee9b('0x7')](),controller['getActions']);router[_0xee9b('0xd')]('/',auth[_0xee9b('0x7')](),controller[_0xee9b('0xe')]);router['post'](_0xee9b('0xf'),auth[_0xee9b('0x7')](),controller[_0xee9b('0x10')]);router['post'](_0xee9b('0xb'),auth[_0xee9b('0x7')](),controller['addAnyCondition']);router[_0xee9b('0xd')](_0xee9b('0x11'),auth['isAuthenticated'](),controller[_0xee9b('0x12')]);router[_0xee9b('0x13')](_0xee9b('0x14'),auth[_0xee9b('0x7')](),controller['update']);router['delete'](_0xee9b('0x14'),auth[_0xee9b('0x7')](),controller[_0xee9b('0x15')]);module[_0xee9b('0x16')]=router;