3142aa187d6bcf0407c07cc70d4489b2e354a082
[motion2.git] / server / api / mailAccount / 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 _0x9a23=['/:id/in_servers','getImap','/:id/interactions','/:id/applications','/:id/messages','/:id/verify','verifySmtp','/:id/users','getAgents','post','addDisposition','addAnswer','create','addImap','/:id/out_servers','addInteraction','addApplications','/:id/send','send','put','/:id','removeDispositions','delete','removeAnswers','removeImap','removeSmtp','destroy','removeAgents','exports','multer','path','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailAccount.controller','get','isAuthenticated','index','describe','/:id/dispositions','getDispositions','/:id/canned_answers','getAnswers'];(function(_0x5d2b93,_0xa3c0b){var _0x1ab019=function(_0x508177){while(--_0x508177){_0x5d2b93['push'](_0x5d2b93['shift']());}};_0x1ab019(++_0xa3c0b);}(_0x9a23,0x125));var _0x39a2=function(_0x36884e,_0x48008f){_0x36884e=_0x36884e-0x0;var _0x1cc367=_0x9a23[_0x36884e];return _0x1cc367;};'use strict';var multer=require(_0x39a2('0x0'));var util=require('util');var path=require(_0x39a2('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x39a2('0x2')]();var auth=require(_0x39a2('0x3'));var interaction=require(_0x39a2('0x4'));var config=require(_0x39a2('0x5'));var controller=require(_0x39a2('0x6'));router[_0x39a2('0x7')]('/',auth[_0x39a2('0x8')](),controller[_0x39a2('0x9')]);router[_0x39a2('0x7')]('/describe',auth[_0x39a2('0x8')](),controller[_0x39a2('0xa')]);router[_0x39a2('0x7')]('/:id',auth[_0x39a2('0x8')](),controller['show']);router[_0x39a2('0x7')](_0x39a2('0xb'),auth[_0x39a2('0x8')](),controller[_0x39a2('0xc')]);router[_0x39a2('0x7')](_0x39a2('0xd'),auth[_0x39a2('0x8')](),controller[_0x39a2('0xe')]);router['get'](_0x39a2('0xf'),auth[_0x39a2('0x8')](),controller[_0x39a2('0x10')]);router['get']('/:id/out_servers',auth[_0x39a2('0x8')](),controller['getSmtp']);router['get'](_0x39a2('0x11'),auth[_0x39a2('0x8')](),controller['getInteractions']);router['get'](_0x39a2('0x12'),auth['isAuthenticated'](),controller['getApplications']);router['get'](_0x39a2('0x13'),auth[_0x39a2('0x8')](),controller['getMessages']);router[_0x39a2('0x7')](_0x39a2('0x14'),auth[_0x39a2('0x8')](),controller[_0x39a2('0x15')]);router[_0x39a2('0x7')](_0x39a2('0x16'),auth[_0x39a2('0x8')](),controller[_0x39a2('0x17')]);router[_0x39a2('0x18')](_0x39a2('0xb'),auth[_0x39a2('0x8')](),controller[_0x39a2('0x19')]);router[_0x39a2('0x18')](_0x39a2('0xd'),auth[_0x39a2('0x8')](),controller[_0x39a2('0x1a')]);router['post']('/',auth[_0x39a2('0x8')](),controller[_0x39a2('0x1b')]);router[_0x39a2('0x18')](_0x39a2('0xf'),auth[_0x39a2('0x8')](),controller[_0x39a2('0x1c')]);router[_0x39a2('0x18')](_0x39a2('0x1d'),auth[_0x39a2('0x8')](),controller['addSmtp']);router['post'](_0x39a2('0x11'),auth[_0x39a2('0x8')](),controller[_0x39a2('0x1e')]);router[_0x39a2('0x18')](_0x39a2('0x12'),auth[_0x39a2('0x8')](),controller[_0x39a2('0x1f')]);router['post'](_0x39a2('0x20'),auth[_0x39a2('0x8')](),controller[_0x39a2('0x21')]);router['post'](_0x39a2('0x16'),auth[_0x39a2('0x8')](),controller['addAgents']);router[_0x39a2('0x22')](_0x39a2('0x23'),auth[_0x39a2('0x8')](),controller['update']);router['delete'](_0x39a2('0xb'),auth[_0x39a2('0x8')](),controller[_0x39a2('0x24')]);router[_0x39a2('0x25')](_0x39a2('0xd'),auth[_0x39a2('0x8')](),controller[_0x39a2('0x26')]);router[_0x39a2('0x25')](_0x39a2('0xf'),auth[_0x39a2('0x8')](),controller[_0x39a2('0x27')]);router[_0x39a2('0x25')](_0x39a2('0x1d'),auth[_0x39a2('0x8')](),controller[_0x39a2('0x28')]);router['delete'](_0x39a2('0x23'),auth[_0x39a2('0x8')](),controller[_0x39a2('0x29')]);router[_0x39a2('0x25')](_0x39a2('0x16'),auth[_0x39a2('0x8')](),controller[_0x39a2('0x2a')]);module[_0x39a2('0x2b')]=router;