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