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