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