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