Built motion from commit e02f907f.|2.6.14
[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 _0xfcc0=['destroy','exports','multer','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','get','/describe','describe','/:id','show','post','whatsapp','whatsappmessage:create','create','/:id/status','status','update','put','/:id/accept','accept','/:id/reject','delete'];(function(_0x46698a,_0x8de1e4){var _0x356db0=function(_0x19e83c){while(--_0x19e83c){_0x46698a['push'](_0x46698a['shift']());}};_0x356db0(++_0x8de1e4);}(_0xfcc0,0x1c2));var _0x0fcc=function(_0x59956c,_0x4b5fbf){_0x59956c=_0x59956c-0x0;var _0x3b9ba8=_0xfcc0[_0x59956c];return _0x3b9ba8;};'use strict';var multer=require(_0x0fcc('0x0'));var util=require('util');var path=require(_0x0fcc('0x1'));var timeout=require(_0x0fcc('0x2'));var express=require('express');var router=express[_0x0fcc('0x3')]();var fs_extra=require(_0x0fcc('0x4'));var auth=require(_0x0fcc('0x5'));var interaction=require(_0x0fcc('0x6'));var config=require(_0x0fcc('0x7'));var controller=require('./whatsappMessage.controller');router['get']('/',auth[_0x0fcc('0x8')](),controller['index']);router[_0x0fcc('0x9')](_0x0fcc('0xa'),auth[_0x0fcc('0x8')](),controller[_0x0fcc('0xb')]);router['get'](_0x0fcc('0xc'),auth[_0x0fcc('0x8')](),controller[_0x0fcc('0xd')]);router[_0x0fcc('0xe')]('/',auth['isAuthenticated'](),interaction['tracked'](_0x0fcc('0xf'),_0x0fcc('0x10')),controller[_0x0fcc('0x11')]);router['post'](_0x0fcc('0x12'),controller[_0x0fcc('0x13')]);router['put'](_0x0fcc('0xc'),auth[_0x0fcc('0x8')](),controller[_0x0fcc('0x14')]);router[_0x0fcc('0x15')](_0x0fcc('0x16'),auth[_0x0fcc('0x8')](),controller[_0x0fcc('0x17')]);router[_0x0fcc('0x15')](_0x0fcc('0x18'),auth[_0x0fcc('0x8')](),controller['reject']);router[_0x0fcc('0x19')]('/:id',auth[_0x0fcc('0x8')](),controller[_0x0fcc('0x1a')]);module[_0x0fcc('0x1b')]=router;