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