Built motion from commit f0a64034.|2.6.11
[motion2.git] / server / api / automation / 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 _0x7ae7=['../../config/environment','./automation.controller','get','isAuthenticated','index','/:id','show','/:id/conditions','getConditions','create','post','addConditions','/:id/actions','addActions','update','delete','destroy','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x4f1af9,_0xc95c63){var _0x11a60e=function(_0x19de7f){while(--_0x19de7f){_0x4f1af9['push'](_0x4f1af9['shift']());}};_0x11a60e(++_0xc95c63);}(_0x7ae7,0xd9));var _0x77ae=function(_0x4c99ee,_0x2d8768){_0x4c99ee=_0x4c99ee-0x0;var _0x24bc5f=_0x7ae7[_0x4c99ee];return _0x24bc5f;};'use strict';var multer=require(_0x77ae('0x0'));var util=require(_0x77ae('0x1'));var path=require('path');var timeout=require(_0x77ae('0x2'));var express=require(_0x77ae('0x3'));var router=express[_0x77ae('0x4')]();var fs_extra=require(_0x77ae('0x5'));var auth=require(_0x77ae('0x6'));var interaction=require(_0x77ae('0x7'));var config=require(_0x77ae('0x8'));var controller=require(_0x77ae('0x9'));router[_0x77ae('0xa')]('/',auth[_0x77ae('0xb')](),controller[_0x77ae('0xc')]);router[_0x77ae('0xa')](_0x77ae('0xd'),auth['isAuthenticated'](),controller[_0x77ae('0xe')]);router[_0x77ae('0xa')](_0x77ae('0xf'),auth[_0x77ae('0xb')](),controller[_0x77ae('0x10')]);router[_0x77ae('0xa')]('/:id/actions',auth[_0x77ae('0xb')](),controller['getActions']);router['post']('/',auth[_0x77ae('0xb')](),controller[_0x77ae('0x11')]);router[_0x77ae('0x12')]('/:id/conditions',auth[_0x77ae('0xb')](),controller[_0x77ae('0x13')]);router['post'](_0x77ae('0x14'),auth[_0x77ae('0xb')](),controller[_0x77ae('0x15')]);router['put']('/:id',auth[_0x77ae('0xb')](),controller[_0x77ae('0x16')]);router[_0x77ae('0x17')](_0x77ae('0xd'),auth[_0x77ae('0xb')](),controller[_0x77ae('0x18')]);module['exports']=router;