744d17a6245d390385b1a711904df31351dc6c10
[motion2.git] / server / api / whatsappMessage / 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 _0x0a9a=['reject','delete','exports','util','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','tracked','create','post','status','update','put','/:id/accept','accept','/:id/reject'];(function(_0x19d2a5,_0x344cc7){var _0x257a93=function(_0x37e3a2){while(--_0x37e3a2){_0x19d2a5['push'](_0x19d2a5['shift']());}};_0x257a93(++_0x344cc7);}(_0x0a9a,0x183));var _0xa0a9=function(_0x52d5e4,_0x33c338){_0x52d5e4=_0x52d5e4-0x0;var _0x535761=_0x0a9a[_0x52d5e4];return _0x535761;};'use strict';var multer=require('multer');var util=require(_0xa0a9('0x0'));var path=require('path');var timeout=require(_0xa0a9('0x1'));var express=require(_0xa0a9('0x2'));var router=express[_0xa0a9('0x3')]();var fs_extra=require(_0xa0a9('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xa0a9('0x5'));var config=require(_0xa0a9('0x6'));var controller=require('./whatsappMessage.controller');router[_0xa0a9('0x7')]('/',auth[_0xa0a9('0x8')](),controller[_0xa0a9('0x9')]);router[_0xa0a9('0x7')]('/describe',auth[_0xa0a9('0x8')](),controller['describe']);router[_0xa0a9('0x7')](_0xa0a9('0xa'),auth[_0xa0a9('0x8')](),controller[_0xa0a9('0xb')]);router['post']('/',auth[_0xa0a9('0x8')](),interaction[_0xa0a9('0xc')]('whatsapp','whatsappmessage:create'),controller[_0xa0a9('0xd')]);router[_0xa0a9('0xe')]('/:id/status',controller[_0xa0a9('0xf')]);router['put'](_0xa0a9('0xa'),auth['isAuthenticated'](),controller[_0xa0a9('0x10')]);router[_0xa0a9('0x11')](_0xa0a9('0x12'),auth[_0xa0a9('0x8')](),controller[_0xa0a9('0x13')]);router['put'](_0xa0a9('0x14'),auth[_0xa0a9('0x8')](),controller[_0xa0a9('0x15')]);router[_0xa0a9('0x16')](_0xa0a9('0xa'),auth[_0xa0a9('0x8')](),controller['destroy']);module[_0xa0a9('0x17')]=router;