15338ed4f2fdf6ffffc54472842112a12844271d
[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 _0x794c=['/:id/any_conditions','getAnyConditions','/:id/actions','getActions','post','addAllCondition','addAnyCondition','addAction','put','/:id','update','delete','destroy','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/:id/all_conditions','getAllConditions'];(function(_0x4702ee,_0xaf6a45){var _0x62ca7d=function(_0x5b3af7){while(--_0x5b3af7){_0x4702ee['push'](_0x4702ee['shift']());}};_0x62ca7d(++_0xaf6a45);}(_0x794c,0x112));var _0xc794=function(_0x27a3cb,_0x4af597){_0x27a3cb=_0x27a3cb-0x0;var _0x54ff38=_0x794c[_0x27a3cb];return _0x54ff38;};'use strict';var multer=require(_0xc794('0x0'));var util=require(_0xc794('0x1'));var path=require(_0xc794('0x2'));var timeout=require(_0xc794('0x3'));var express=require('express');var router=express[_0xc794('0x4')]();var auth=require(_0xc794('0x5'));var interaction=require(_0xc794('0x6'));var config=require('../../config/environment');var controller=require('./trigger.controller');router[_0xc794('0x7')]('/',auth[_0xc794('0x8')](),controller[_0xc794('0x9')]);router[_0xc794('0x7')]('/:id',auth[_0xc794('0x8')](),controller['show']);router[_0xc794('0x7')](_0xc794('0xa'),auth[_0xc794('0x8')](),controller[_0xc794('0xb')]);router[_0xc794('0x7')](_0xc794('0xc'),auth[_0xc794('0x8')](),controller[_0xc794('0xd')]);router[_0xc794('0x7')](_0xc794('0xe'),auth[_0xc794('0x8')](),controller[_0xc794('0xf')]);router[_0xc794('0x10')]('/',auth[_0xc794('0x8')](),controller['create']);router[_0xc794('0x10')](_0xc794('0xa'),auth[_0xc794('0x8')](),controller[_0xc794('0x11')]);router[_0xc794('0x10')](_0xc794('0xc'),auth['isAuthenticated'](),controller[_0xc794('0x12')]);router[_0xc794('0x10')]('/:id/actions',auth['isAuthenticated'](),controller[_0xc794('0x13')]);router[_0xc794('0x14')](_0xc794('0x15'),auth[_0xc794('0x8')](),controller[_0xc794('0x16')]);router[_0xc794('0x17')](_0xc794('0x15'),auth['isAuthenticated'](),controller[_0xc794('0x18')]);module[_0xc794('0x19')]=router;