b310bf41a04d880de0f6de8f60e8e5ef2a37ec40
[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 _0x4134=['addAnyCondition','addAction','put','delete','destroy','exports','util','path','../../components/auth/service','../../config/environment','./trigger.controller','isAuthenticated','index','get','/:id','show','/:id/all_conditions','getAllConditions','/:id/any_conditions','/:id/actions','post','addAllCondition'];(function(_0x33d6b7,_0x15205f){var _0x2fdda8=function(_0x23a5f4){while(--_0x23a5f4){_0x33d6b7['push'](_0x33d6b7['shift']());}};_0x2fdda8(++_0x15205f);}(_0x4134,0x17c));var _0x4413=function(_0x533665,_0x12e8b6){_0x533665=_0x533665-0x0;var _0x1c8242=_0x4134[_0x533665];return _0x1c8242;};'use strict';var multer=require('multer');var util=require(_0x4413('0x0'));var path=require(_0x4413('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x4413('0x2'));var interaction=require('../../components/interaction/service');var config=require(_0x4413('0x3'));var controller=require(_0x4413('0x4'));router['get']('/',auth[_0x4413('0x5')](),controller[_0x4413('0x6')]);router[_0x4413('0x7')](_0x4413('0x8'),auth[_0x4413('0x5')](),controller[_0x4413('0x9')]);router[_0x4413('0x7')](_0x4413('0xa'),auth['isAuthenticated'](),controller[_0x4413('0xb')]);router[_0x4413('0x7')](_0x4413('0xc'),auth[_0x4413('0x5')](),controller['getAnyConditions']);router[_0x4413('0x7')](_0x4413('0xd'),auth[_0x4413('0x5')](),controller['getActions']);router[_0x4413('0xe')]('/',auth[_0x4413('0x5')](),controller['create']);router[_0x4413('0xe')](_0x4413('0xa'),auth[_0x4413('0x5')](),controller[_0x4413('0xf')]);router[_0x4413('0xe')]('/:id/any_conditions',auth['isAuthenticated'](),controller[_0x4413('0x10')]);router[_0x4413('0xe')]('/:id/actions',auth[_0x4413('0x5')](),controller[_0x4413('0x11')]);router[_0x4413('0x12')](_0x4413('0x8'),auth[_0x4413('0x5')](),controller['update']);router[_0x4413('0x13')](_0x4413('0x8'),auth['isAuthenticated'](),controller[_0x4413('0x14')]);module[_0x4413('0x15')]=router;