ec841ac6896a1a16eaf9d8db015af886d9b82b8a
[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 _0x532e=['addAction','put','delete','destroy','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./trigger.controller','isAuthenticated','index','get','/:id','show','getAllConditions','getAnyConditions','/:id/actions','getActions','post','create','/:id/all_conditions','addAllCondition','/:id/any_conditions','addAnyCondition'];(function(_0x1739e3,_0x31f4bf){var _0x238d44=function(_0x4e67f8){while(--_0x4e67f8){_0x1739e3['push'](_0x1739e3['shift']());}};_0x238d44(++_0x31f4bf);}(_0x532e,0xb8));var _0xe532=function(_0x9d75c4,_0x10f484){_0x9d75c4=_0x9d75c4-0x0;var _0x258ba5=_0x532e[_0x9d75c4];return _0x258ba5;};'use strict';var multer=require(_0xe532('0x0'));var util=require(_0xe532('0x1'));var path=require(_0xe532('0x2'));var timeout=require(_0xe532('0x3'));var express=require(_0xe532('0x4'));var router=express[_0xe532('0x5')]();var fs_extra=require(_0xe532('0x6'));var auth=require(_0xe532('0x7'));var interaction=require(_0xe532('0x8'));var config=require(_0xe532('0x9'));var controller=require(_0xe532('0xa'));router['get']('/',auth[_0xe532('0xb')](),controller[_0xe532('0xc')]);router[_0xe532('0xd')](_0xe532('0xe'),auth[_0xe532('0xb')](),controller[_0xe532('0xf')]);router[_0xe532('0xd')]('/:id/all_conditions',auth[_0xe532('0xb')](),controller[_0xe532('0x10')]);router[_0xe532('0xd')]('/:id/any_conditions',auth[_0xe532('0xb')](),controller[_0xe532('0x11')]);router[_0xe532('0xd')](_0xe532('0x12'),auth[_0xe532('0xb')](),controller[_0xe532('0x13')]);router[_0xe532('0x14')]('/',auth['isAuthenticated'](),controller[_0xe532('0x15')]);router[_0xe532('0x14')](_0xe532('0x16'),auth[_0xe532('0xb')](),controller[_0xe532('0x17')]);router[_0xe532('0x14')](_0xe532('0x18'),auth[_0xe532('0xb')](),controller[_0xe532('0x19')]);router[_0xe532('0x14')](_0xe532('0x12'),auth['isAuthenticated'](),controller[_0xe532('0x1a')]);router[_0xe532('0x1b')](_0xe532('0xe'),auth[_0xe532('0xb')](),controller['update']);router[_0xe532('0x1c')](_0xe532('0xe'),auth[_0xe532('0xb')](),controller[_0xe532('0x1d')]);module['exports']=router;