Built motion from commit (unavailable).|2.5.2
[motion2.git] / server / api / chatProactiveAction / 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 _0x5f1f=['multer','util','Router','../../components/auth/service','../../config/environment','./chatProactiveAction.controller','get','show','create','put','/:id','isAuthenticated','update','delete','destroy','exports'];(function(_0x486a95,_0x18bed7){var _0x1cc0ec=function(_0x53a230){while(--_0x53a230){_0x486a95['push'](_0x486a95['shift']());}};_0x1cc0ec(++_0x18bed7);}(_0x5f1f,0x1a0));var _0xf5f1=function(_0x18cf74,_0x1b6eb6){_0x18cf74=_0x18cf74-0x0;var _0x2f6f1f=_0x5f1f[_0x18cf74];return _0x2f6f1f;};'use strict';var multer=require(_0xf5f1('0x0'));var util=require(_0xf5f1('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0xf5f1('0x2')]();var auth=require(_0xf5f1('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0xf5f1('0x4'));var controller=require(_0xf5f1('0x5'));router[_0xf5f1('0x6')]('/:id',auth['isAuthenticated'](),controller[_0xf5f1('0x7')]);router['post']('/',auth['isAuthenticated'](),controller[_0xf5f1('0x8')]);router[_0xf5f1('0x9')](_0xf5f1('0xa'),auth[_0xf5f1('0xb')](),controller[_0xf5f1('0xc')]);router[_0xf5f1('0xd')](_0xf5f1('0xa'),auth[_0xf5f1('0xb')](),controller[_0xf5f1('0xe')]);module[_0xf5f1('0xf')]=router;