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