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