fbb044692e7314102eaf445d709e4b01ca14e663
[motion2.git] / server / api / whatsappAccount / 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 _0x59a8=['delete','destroy','removeAnswers','removeAgents','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./whatsappAccount.controller','index','get','/:id','isAuthenticated','show','/:id/dispositions','/:id/canned_answers','getAnswers','getAgents','getApplications','post','create','addDisposition','addAnswer','/:id/users','addAgents','/:id/applications','addApplications','/:id/notify','notify','/:id/send','put','update'];(function(_0x454629,_0x486c3f){var _0xb6121c=function(_0x14db28){while(--_0x14db28){_0x454629['push'](_0x454629['shift']());}};_0xb6121c(++_0x486c3f);}(_0x59a8,0x100));var _0x859a=function(_0x3dfc40,_0x2792fa){_0x3dfc40=_0x3dfc40-0x0;var _0x47701b=_0x59a8[_0x3dfc40];return _0x47701b;};'use strict';var multer=require(_0x859a('0x0'));var util=require(_0x859a('0x1'));var path=require(_0x859a('0x2'));var timeout=require(_0x859a('0x3'));var express=require(_0x859a('0x4'));var router=express[_0x859a('0x5')]();var auth=require(_0x859a('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x859a('0x7'));var controller=require(_0x859a('0x8'));router['get']('/',auth['isAuthenticated'](),controller[_0x859a('0x9')]);router['get']('/describe',auth['isAuthenticated'](),controller['describe']);router[_0x859a('0xa')](_0x859a('0xb'),auth[_0x859a('0xc')](),controller[_0x859a('0xd')]);router[_0x859a('0xa')](_0x859a('0xe'),auth[_0x859a('0xc')](),controller['getDispositions']);router[_0x859a('0xa')](_0x859a('0xf'),auth[_0x859a('0xc')](),controller[_0x859a('0x10')]);router[_0x859a('0xa')]('/:id/users',auth[_0x859a('0xc')](),controller[_0x859a('0x11')]);router[_0x859a('0xa')]('/:id/applications',auth[_0x859a('0xc')](),controller[_0x859a('0x12')]);router[_0x859a('0x13')]('/',auth[_0x859a('0xc')](),controller[_0x859a('0x14')]);router[_0x859a('0x13')]('/:id/dispositions',auth[_0x859a('0xc')](),controller[_0x859a('0x15')]);router[_0x859a('0x13')](_0x859a('0xf'),auth[_0x859a('0xc')](),controller[_0x859a('0x16')]);router[_0x859a('0x13')](_0x859a('0x17'),auth[_0x859a('0xc')](),controller[_0x859a('0x18')]);router[_0x859a('0x13')](_0x859a('0x19'),auth[_0x859a('0xc')](),controller[_0x859a('0x1a')]);router[_0x859a('0x13')](_0x859a('0x1b'),controller[_0x859a('0x1c')]);router[_0x859a('0x13')](_0x859a('0x1d'),auth[_0x859a('0xc')](),controller['send']);router[_0x859a('0x1e')](_0x859a('0xb'),auth['isAuthenticated'](),controller[_0x859a('0x1f')]);router[_0x859a('0x20')]('/:id',auth['isAuthenticated'](),controller[_0x859a('0x21')]);router[_0x859a('0x20')](_0x859a('0xe'),auth['isAuthenticated'](),controller['removeDispositions']);router[_0x859a('0x20')](_0x859a('0xf'),auth[_0x859a('0xc')](),controller[_0x859a('0x22')]);router[_0x859a('0x20')]('/:id/users',auth[_0x859a('0xc')](),controller[_0x859a('0x23')]);module['exports']=router;