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