Built motion from commit 13c3002c.|2.6.9
[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 _0x084a=['./whatsappMessage.controller','isAuthenticated','index','get','/describe','describe','/:id','show','post','whatsappmessage:create','create','/:id/status','status','put','update','accept','/:id/reject','reject','delete','destroy','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x94dee2,_0x1e0090){var _0x403504=function(_0x102263){while(--_0x102263){_0x94dee2['push'](_0x94dee2['shift']());}};_0x403504(++_0x1e0090);}(_0x084a,0x137));var _0xa084=function(_0xcb5ed3,_0x321f0e){_0xcb5ed3=_0xcb5ed3-0x0;var _0x22a09f=_0x084a[_0xcb5ed3];return _0x22a09f;};'use strict';var multer=require('multer');var util=require(_0xa084('0x0'));var path=require(_0xa084('0x1'));var timeout=require(_0xa084('0x2'));var express=require(_0xa084('0x3'));var router=express[_0xa084('0x4')]();var fs_extra=require(_0xa084('0x5'));var auth=require(_0xa084('0x6'));var interaction=require(_0xa084('0x7'));var config=require('../../config/environment');var controller=require(_0xa084('0x8'));router['get']('/',auth[_0xa084('0x9')](),controller[_0xa084('0xa')]);router[_0xa084('0xb')](_0xa084('0xc'),auth[_0xa084('0x9')](),controller[_0xa084('0xd')]);router[_0xa084('0xb')](_0xa084('0xe'),auth[_0xa084('0x9')](),controller[_0xa084('0xf')]);router[_0xa084('0x10')]('/',auth[_0xa084('0x9')](),interaction['tracked']('whatsapp',_0xa084('0x11')),controller[_0xa084('0x12')]);router['post'](_0xa084('0x13'),controller[_0xa084('0x14')]);router[_0xa084('0x15')](_0xa084('0xe'),auth[_0xa084('0x9')](),controller[_0xa084('0x16')]);router[_0xa084('0x15')]('/:id/accept',auth['isAuthenticated'](),controller[_0xa084('0x17')]);router[_0xa084('0x15')](_0xa084('0x18'),auth[_0xa084('0x9')](),controller[_0xa084('0x19')]);router[_0xa084('0x1a')]('/:id',auth[_0xa084('0x9')](),controller[_0xa084('0x1b')]);module[_0xa084('0x1c')]=router;