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