Built motion from commit 953226e6.|2.6.32
[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 _0xb028=['multer','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','./automation.controller','isAuthenticated','show','get','/:id/conditions','getConditions','post','create','addActions','/:id','update','delete','destroy','exports'];(function(_0x3f3ae9,_0x46b55c){var _0x2700d4=function(_0x227480){while(--_0x227480){_0x3f3ae9['push'](_0x3f3ae9['shift']());}};_0x2700d4(++_0x46b55c);}(_0xb028,0x72));var _0x8b02=function(_0x3af1ee,_0x2c54b1){_0x3af1ee=_0x3af1ee-0x0;var _0x49cbcf=_0xb028[_0x3af1ee];return _0x49cbcf;};'use strict';var multer=require(_0x8b02('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x8b02('0x1'));var express=require('express');var router=express[_0x8b02('0x2')]();var fs_extra=require('fs-extra');var auth=require(_0x8b02('0x3'));var interaction=require(_0x8b02('0x4'));var config=require('../../config/environment');var controller=require(_0x8b02('0x5'));router['get']('/',auth[_0x8b02('0x6')](),controller['index']);router['get']('/:id',auth[_0x8b02('0x6')](),controller[_0x8b02('0x7')]);router[_0x8b02('0x8')](_0x8b02('0x9'),auth[_0x8b02('0x6')](),controller[_0x8b02('0xa')]);router[_0x8b02('0x8')]('/:id/actions',auth['isAuthenticated'](),controller['getActions']);router[_0x8b02('0xb')]('/',auth[_0x8b02('0x6')](),controller[_0x8b02('0xc')]);router[_0x8b02('0xb')](_0x8b02('0x9'),auth['isAuthenticated'](),controller['addConditions']);router[_0x8b02('0xb')]('/:id/actions',auth['isAuthenticated'](),controller[_0x8b02('0xd')]);router['put'](_0x8b02('0xe'),auth[_0x8b02('0x6')](),controller[_0x8b02('0xf')]);router[_0x8b02('0x10')](_0x8b02('0xe'),auth[_0x8b02('0x6')](),controller[_0x8b02('0x11')]);module[_0x8b02('0x12')]=router;