43cd47bc5c8fb8e97bfaaa0e19c83e5c5da6fb30
[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 _0x59fe=['path','connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','get','/:id','isAuthenticated','create','put','update','delete','util'];(function(_0x421d11,_0x3589b2){var _0x5a935f=function(_0x2b7415){while(--_0x2b7415){_0x421d11['push'](_0x421d11['shift']());}};_0x5a935f(++_0x3589b2);}(_0x59fe,0x178));var _0xe59f=function(_0x358e05,_0x167aed){_0x358e05=_0x358e05-0x0;var _0x549450=_0x59fe[_0x358e05];return _0x549450;};'use strict';var multer=require('multer');var util=require(_0xe59f('0x0'));var path=require(_0xe59f('0x1'));var timeout=require(_0xe59f('0x2'));var express=require('express');var router=express['Router']();var auth=require(_0xe59f('0x3'));var interaction=require(_0xe59f('0x4'));var config=require(_0xe59f('0x5'));var controller=require('./chatProactiveAction.controller');router[_0xe59f('0x6')](_0xe59f('0x7'),auth[_0xe59f('0x8')](),controller['show']);router['post']('/',auth[_0xe59f('0x8')](),controller[_0xe59f('0x9')]);router[_0xe59f('0xa')](_0xe59f('0x7'),auth[_0xe59f('0x8')](),controller[_0xe59f('0xb')]);router[_0xe59f('0xc')](_0xe59f('0x7'),auth[_0xe59f('0x8')](),controller['destroy']);module['exports']=router;