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