Built motion from commit (unavailable).|2.5.3
[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 _0x6075=['util','path','express','Router','../../components/interaction/service','../../config/environment','./whatsappMessage.controller','get','isAuthenticated','index','/describe','describe','/:id','show','post','tracked','whatsapp','create','/:id/status','status','put','/:id/accept','accept','/:id/reject','reject','destroy','exports','multer'];(function(_0x4ac5ee,_0x2d4eb7){var _0x1244e9=function(_0x31b8b7){while(--_0x31b8b7){_0x4ac5ee['push'](_0x4ac5ee['shift']());}};_0x1244e9(++_0x2d4eb7);}(_0x6075,0x14f));var _0x5607=function(_0x2689ac,_0xddfb9a){_0x2689ac=_0x2689ac-0x0;var _0x4ac731=_0x6075[_0x2689ac];return _0x4ac731;};'use strict';var multer=require(_0x5607('0x0'));var util=require(_0x5607('0x1'));var path=require(_0x5607('0x2'));var timeout=require('connect-timeout');var express=require(_0x5607('0x3'));var router=express[_0x5607('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x5607('0x5'));var config=require(_0x5607('0x6'));var controller=require(_0x5607('0x7'));router[_0x5607('0x8')]('/',auth[_0x5607('0x9')](),controller[_0x5607('0xa')]);router[_0x5607('0x8')](_0x5607('0xb'),auth['isAuthenticated'](),controller[_0x5607('0xc')]);router[_0x5607('0x8')](_0x5607('0xd'),auth[_0x5607('0x9')](),controller[_0x5607('0xe')]);router[_0x5607('0xf')]('/',auth[_0x5607('0x9')](),interaction[_0x5607('0x10')](_0x5607('0x11'),'whatsappmessage:create'),controller[_0x5607('0x12')]);router[_0x5607('0xf')](_0x5607('0x13'),controller[_0x5607('0x14')]);router[_0x5607('0x15')](_0x5607('0xd'),auth[_0x5607('0x9')](),controller['update']);router[_0x5607('0x15')](_0x5607('0x16'),auth[_0x5607('0x9')](),controller[_0x5607('0x17')]);router[_0x5607('0x15')](_0x5607('0x18'),auth[_0x5607('0x9')](),controller[_0x5607('0x19')]);router['delete'](_0x5607('0xd'),auth[_0x5607('0x9')](),controller[_0x5607('0x1a')]);module[_0x5607('0x1b')]=router;