Built motion from commit 9d0783e6.|2.6.13
[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 _0x660e=['status','put','update','/:id/accept','accept','/:id/reject','reject','delete','/:id','destroy','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./whatsappMessage.controller','get','isAuthenticated','describe','tracked','whatsapp','whatsappmessage:create','create','post','/:id/status'];(function(_0x12a0a3,_0x2652d1){var _0x1c47c4=function(_0x22261b){while(--_0x22261b){_0x12a0a3['push'](_0x12a0a3['shift']());}};_0x1c47c4(++_0x2652d1);}(_0x660e,0x83));var _0xe660=function(_0x13f1c8,_0x49a872){_0x13f1c8=_0x13f1c8-0x0;var _0x1e716a=_0x660e[_0x13f1c8];return _0x1e716a;};'use strict';var multer=require(_0xe660('0x0'));var util=require(_0xe660('0x1'));var path=require(_0xe660('0x2'));var timeout=require('connect-timeout');var express=require(_0xe660('0x3'));var router=express[_0xe660('0x4')]();var fs_extra=require(_0xe660('0x5'));var auth=require(_0xe660('0x6'));var interaction=require(_0xe660('0x7'));var config=require(_0xe660('0x8'));var controller=require(_0xe660('0x9'));router[_0xe660('0xa')]('/',auth[_0xe660('0xb')](),controller['index']);router[_0xe660('0xa')]('/describe',auth[_0xe660('0xb')](),controller[_0xe660('0xc')]);router[_0xe660('0xa')]('/:id',auth[_0xe660('0xb')](),controller['show']);router['post']('/',auth[_0xe660('0xb')](),interaction[_0xe660('0xd')](_0xe660('0xe'),_0xe660('0xf')),controller[_0xe660('0x10')]);router[_0xe660('0x11')](_0xe660('0x12'),controller[_0xe660('0x13')]);router[_0xe660('0x14')]('/:id',auth['isAuthenticated'](),controller[_0xe660('0x15')]);router[_0xe660('0x14')](_0xe660('0x16'),auth[_0xe660('0xb')](),controller[_0xe660('0x17')]);router[_0xe660('0x14')](_0xe660('0x18'),auth[_0xe660('0xb')](),controller[_0xe660('0x19')]);router[_0xe660('0x1a')](_0xe660('0x1b'),auth[_0xe660('0xb')](),controller[_0xe660('0x1c')]);module[_0xe660('0x1d')]=router;