Built motion from commit fade34fd.|2.5.41
[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 _0x1c2a=['destroy','exports','multer','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./trigger.controller','isAuthenticated','index','get','show','/:id/all_conditions','getAllConditions','/:id/any_conditions','getAnyConditions','/:id/actions','post','addAllCondition','addAnyCondition','addAction','put','/:id','update','delete'];(function(_0xb79f46,_0x2404ac){var _0x2104b2=function(_0x57d3e8){while(--_0x57d3e8){_0xb79f46['push'](_0xb79f46['shift']());}};_0x2104b2(++_0x2404ac);}(_0x1c2a,0xbf));var _0xa1c2=function(_0x457831,_0x1595e0){_0x457831=_0x457831-0x0;var _0x450347=_0x1c2a[_0x457831];return _0x450347;};'use strict';var multer=require(_0xa1c2('0x0'));var util=require('util');var path=require(_0xa1c2('0x1'));var timeout=require(_0xa1c2('0x2'));var express=require(_0xa1c2('0x3'));var router=express[_0xa1c2('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xa1c2('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xa1c2('0x6'));var controller=require(_0xa1c2('0x7'));router['get']('/',auth[_0xa1c2('0x8')](),controller[_0xa1c2('0x9')]);router[_0xa1c2('0xa')]('/:id',auth[_0xa1c2('0x8')](),controller[_0xa1c2('0xb')]);router['get'](_0xa1c2('0xc'),auth['isAuthenticated'](),controller[_0xa1c2('0xd')]);router[_0xa1c2('0xa')](_0xa1c2('0xe'),auth[_0xa1c2('0x8')](),controller[_0xa1c2('0xf')]);router[_0xa1c2('0xa')](_0xa1c2('0x10'),auth[_0xa1c2('0x8')](),controller['getActions']);router[_0xa1c2('0x11')]('/',auth[_0xa1c2('0x8')](),controller['create']);router[_0xa1c2('0x11')](_0xa1c2('0xc'),auth[_0xa1c2('0x8')](),controller[_0xa1c2('0x12')]);router[_0xa1c2('0x11')](_0xa1c2('0xe'),auth[_0xa1c2('0x8')](),controller[_0xa1c2('0x13')]);router[_0xa1c2('0x11')](_0xa1c2('0x10'),auth[_0xa1c2('0x8')](),controller[_0xa1c2('0x14')]);router[_0xa1c2('0x15')](_0xa1c2('0x16'),auth[_0xa1c2('0x8')](),controller[_0xa1c2('0x17')]);router[_0xa1c2('0x18')](_0xa1c2('0x16'),auth['isAuthenticated'](),controller[_0xa1c2('0x19')]);module[_0xa1c2('0x1a')]=router;