e81bffa73b1a043d2229fe280ce6a0133bb786ae
[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 _0xfc48=['exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','/describe','isAuthenticated','describe','/:id','show','/:id/dispositions','getDispositions','/:id/canned_answers','getAnswers','/:id/users','/:id/applications','post','create','addDisposition','addAnswer','addAgents','addApplications','/:id/notify','notify','/:id/send','send','put','destroy','removeDispositions','delete','removeAnswers','removeAgents'];(function(_0xe73080,_0x24c56d){var _0x12cbc4=function(_0x1377e2){while(--_0x1377e2){_0xe73080['push'](_0xe73080['shift']());}};_0x12cbc4(++_0x24c56d);}(_0xfc48,0x160));var _0x8fc4=function(_0x3a0728,_0x20d678){_0x3a0728=_0x3a0728-0x0;var _0x2efe07=_0xfc48[_0x3a0728];return _0x2efe07;};'use strict';var multer=require(_0x8fc4('0x0'));var util=require(_0x8fc4('0x1'));var path=require(_0x8fc4('0x2'));var timeout=require('connect-timeout');var express=require(_0x8fc4('0x3'));var router=express[_0x8fc4('0x4')]();var fs_extra=require(_0x8fc4('0x5'));var auth=require(_0x8fc4('0x6'));var interaction=require(_0x8fc4('0x7'));var config=require(_0x8fc4('0x8'));var controller=require('./whatsappAccount.controller');router[_0x8fc4('0x9')]('/',auth['isAuthenticated'](),controller[_0x8fc4('0xa')]);router[_0x8fc4('0x9')](_0x8fc4('0xb'),auth[_0x8fc4('0xc')](),controller[_0x8fc4('0xd')]);router[_0x8fc4('0x9')](_0x8fc4('0xe'),auth[_0x8fc4('0xc')](),controller[_0x8fc4('0xf')]);router['get'](_0x8fc4('0x10'),auth[_0x8fc4('0xc')](),controller[_0x8fc4('0x11')]);router[_0x8fc4('0x9')](_0x8fc4('0x12'),auth[_0x8fc4('0xc')](),controller[_0x8fc4('0x13')]);router['get'](_0x8fc4('0x14'),auth['isAuthenticated'](),controller['getAgents']);router[_0x8fc4('0x9')](_0x8fc4('0x15'),auth['isAuthenticated'](),controller['getApplications']);router[_0x8fc4('0x16')]('/',auth[_0x8fc4('0xc')](),controller[_0x8fc4('0x17')]);router['post'](_0x8fc4('0x10'),auth[_0x8fc4('0xc')](),controller[_0x8fc4('0x18')]);router[_0x8fc4('0x16')](_0x8fc4('0x12'),auth[_0x8fc4('0xc')](),controller[_0x8fc4('0x19')]);router[_0x8fc4('0x16')]('/:id/users',auth['isAuthenticated'](),controller[_0x8fc4('0x1a')]);router[_0x8fc4('0x16')](_0x8fc4('0x15'),auth[_0x8fc4('0xc')](),controller[_0x8fc4('0x1b')]);router[_0x8fc4('0x16')](_0x8fc4('0x1c'),controller[_0x8fc4('0x1d')]);router[_0x8fc4('0x16')](_0x8fc4('0x1e'),auth[_0x8fc4('0xc')](),controller[_0x8fc4('0x1f')]);router[_0x8fc4('0x20')](_0x8fc4('0xe'),auth[_0x8fc4('0xc')](),controller['update']);router['delete'](_0x8fc4('0xe'),auth[_0x8fc4('0xc')](),controller[_0x8fc4('0x21')]);router['delete']('/:id/dispositions',auth[_0x8fc4('0xc')](),controller[_0x8fc4('0x22')]);router[_0x8fc4('0x23')](_0x8fc4('0x12'),auth['isAuthenticated'](),controller[_0x8fc4('0x24')]);router['delete']('/:id/users',auth['isAuthenticated'](),controller[_0x8fc4('0x25')]);module[_0x8fc4('0x26')]=router;