cbbfd1dcdb2a2ae106fd5ecf3d00d916ff6adae6
[motion2.git] / server / api / faxAccount / 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 _0xba1a=['addAccountApplications','send','addAgents','put','update','delete','destroy','removeDispositions','removeAnswers','removeAgents','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./faxAccount.controller','get','index','/describe','isAuthenticated','describe','/:id','show','/:id/dispositions','getDispositions','/:id/canned_answers','getAnswers','getInteractions','/:id/applications','getApplications','getMessages','/:id/users','getAgents','create','post','addDisposition','addInteraction','addApplications','/addaccountapplications'];(function(_0x2341c1,_0xd86f60){var _0x45e001=function(_0x278269){while(--_0x278269){_0x2341c1['push'](_0x2341c1['shift']());}};_0x45e001(++_0xd86f60);}(_0xba1a,0x14a));var _0xaba1=function(_0x277d14,_0x459c1d){_0x277d14=_0x277d14-0x0;var _0x271703=_0xba1a[_0x277d14];return _0x271703;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xaba1('0x0'));var timeout=require(_0xaba1('0x1'));var express=require('express');var router=express[_0xaba1('0x2')]();var auth=require(_0xaba1('0x3'));var interaction=require(_0xaba1('0x4'));var config=require(_0xaba1('0x5'));var controller=require(_0xaba1('0x6'));router[_0xaba1('0x7')]('/',auth['isAuthenticated'](),controller[_0xaba1('0x8')]);router[_0xaba1('0x7')](_0xaba1('0x9'),auth[_0xaba1('0xa')](),controller[_0xaba1('0xb')]);router['get'](_0xaba1('0xc'),auth[_0xaba1('0xa')](),controller[_0xaba1('0xd')]);router[_0xaba1('0x7')](_0xaba1('0xe'),auth['isAuthenticated'](),controller[_0xaba1('0xf')]);router['get'](_0xaba1('0x10'),auth[_0xaba1('0xa')](),controller[_0xaba1('0x11')]);router['get']('/:id/interactions',auth[_0xaba1('0xa')](),controller[_0xaba1('0x12')]);router[_0xaba1('0x7')](_0xaba1('0x13'),auth['isAuthenticated'](),controller[_0xaba1('0x14')]);router['get']('/:id/messages',auth[_0xaba1('0xa')](),controller[_0xaba1('0x15')]);router[_0xaba1('0x7')](_0xaba1('0x16'),auth[_0xaba1('0xa')](),controller[_0xaba1('0x17')]);router['post']('/',auth[_0xaba1('0xa')](),controller[_0xaba1('0x18')]);router[_0xaba1('0x19')](_0xaba1('0xe'),auth[_0xaba1('0xa')](),controller[_0xaba1('0x1a')]);router[_0xaba1('0x19')](_0xaba1('0x10'),auth['isAuthenticated'](),controller['addAnswer']);router['post']('/:id/interactions',auth[_0xaba1('0xa')](),controller[_0xaba1('0x1b')]);router[_0xaba1('0x19')](_0xaba1('0x13'),auth[_0xaba1('0xa')](),controller[_0xaba1('0x1c')]);router[_0xaba1('0x19')](_0xaba1('0x1d'),auth[_0xaba1('0xa')](),controller[_0xaba1('0x1e')]);router['post']('/updateaccountapplications',auth[_0xaba1('0xa')](),controller['updateAccountApplications']);router['post']('/:id/send',auth[_0xaba1('0xa')](),controller[_0xaba1('0x1f')]);router[_0xaba1('0x19')](_0xaba1('0x16'),auth[_0xaba1('0xa')](),controller[_0xaba1('0x20')]);router[_0xaba1('0x21')](_0xaba1('0xc'),auth[_0xaba1('0xa')](),controller[_0xaba1('0x22')]);router[_0xaba1('0x23')](_0xaba1('0xc'),auth[_0xaba1('0xa')](),controller[_0xaba1('0x24')]);router[_0xaba1('0x23')](_0xaba1('0xe'),auth['isAuthenticated'](),controller[_0xaba1('0x25')]);router['delete']('/:id/canned_answers',auth[_0xaba1('0xa')](),controller[_0xaba1('0x26')]);router['delete']('/:id/users',auth[_0xaba1('0xa')](),controller[_0xaba1('0x27')]);module['exports']=router;