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