Built motion from commit 1fa89557.|2.6.10
[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 _0x82f5=['getConditions','getActions','post','create','addConditions','/:id/actions','put','update','delete','destroy','exports','multer','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./automation.controller','get','isAuthenticated','index','/:id','show','/:id/conditions'];(function(_0x4d513d,_0x4c76ca){var _0x410775=function(_0x4a5aa6){while(--_0x4a5aa6){_0x4d513d['push'](_0x4d513d['shift']());}};_0x410775(++_0x4c76ca);}(_0x82f5,0x15d));var _0x582f=function(_0x5d61dd,_0x5f5a47){_0x5d61dd=_0x5d61dd-0x0;var _0x3c8bde=_0x82f5[_0x5d61dd];return _0x3c8bde;};'use strict';var multer=require(_0x582f('0x0'));var util=require(_0x582f('0x1'));var path=require(_0x582f('0x2'));var timeout=require(_0x582f('0x3'));var express=require(_0x582f('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x582f('0x5'));var interaction=require(_0x582f('0x6'));var config=require(_0x582f('0x7'));var controller=require(_0x582f('0x8'));router[_0x582f('0x9')]('/',auth[_0x582f('0xa')](),controller[_0x582f('0xb')]);router['get'](_0x582f('0xc'),auth['isAuthenticated'](),controller[_0x582f('0xd')]);router[_0x582f('0x9')](_0x582f('0xe'),auth['isAuthenticated'](),controller[_0x582f('0xf')]);router[_0x582f('0x9')]('/:id/actions',auth[_0x582f('0xa')](),controller[_0x582f('0x10')]);router[_0x582f('0x11')]('/',auth[_0x582f('0xa')](),controller[_0x582f('0x12')]);router['post']('/:id/conditions',auth[_0x582f('0xa')](),controller[_0x582f('0x13')]);router[_0x582f('0x11')](_0x582f('0x14'),auth[_0x582f('0xa')](),controller['addActions']);router[_0x582f('0x15')](_0x582f('0xc'),auth['isAuthenticated'](),controller[_0x582f('0x16')]);router[_0x582f('0x17')](_0x582f('0xc'),auth[_0x582f('0xa')](),controller[_0x582f('0x18')]);module[_0x582f('0x19')]=router;