fc7bf8bb225e2ffc971f629e2bb57d79429c7b13
[motion2.git] / server / api / smsAccount / 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 _0x7630=['post','/:id/dispositions','addDisposition','addAnswer','/:id/notify','notify','addApplications','/:id/send','send','status','addAgents','put','/:id','update','destroy','delete','removeDispositions','removeAnswers','exports','multer','path','connect-timeout','express','Router','../../config/environment','./smsAccount.controller','get','index','/describe','isAuthenticated','show','getDispositions','/:id/canned_answers','getAnswers','/:id/applications','getApplications','/:id/status','statusGet','/:id/users'];(function(_0x4cf98e,_0xba4b79){var _0x1623ac=function(_0x459bc0){while(--_0x459bc0){_0x4cf98e['push'](_0x4cf98e['shift']());}};_0x1623ac(++_0xba4b79);}(_0x7630,0x172));var _0x0763=function(_0x26d64e,_0x178608){_0x26d64e=_0x26d64e-0x0;var _0xf16657=_0x7630[_0x26d64e];return _0xf16657;};'use strict';var multer=require(_0x0763('0x0'));var util=require('util');var path=require(_0x0763('0x1'));var timeout=require(_0x0763('0x2'));var express=require(_0x0763('0x3'));var router=express[_0x0763('0x4')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x0763('0x5'));var controller=require(_0x0763('0x6'));router[_0x0763('0x7')]('/',auth['isAuthenticated'](),controller[_0x0763('0x8')]);router[_0x0763('0x7')](_0x0763('0x9'),auth['isAuthenticated'](),controller['describe']);router[_0x0763('0x7')]('/:id',auth[_0x0763('0xa')](),controller[_0x0763('0xb')]);router[_0x0763('0x7')]('/:id/dispositions',auth[_0x0763('0xa')](),controller[_0x0763('0xc')]);router[_0x0763('0x7')](_0x0763('0xd'),auth[_0x0763('0xa')](),controller[_0x0763('0xe')]);router['get'](_0x0763('0xf'),auth[_0x0763('0xa')](),controller[_0x0763('0x10')]);router['get']('/:id/interactions',auth[_0x0763('0xa')](),controller['getInteractions']);router[_0x0763('0x7')](_0x0763('0x11'),controller[_0x0763('0x12')]);router[_0x0763('0x7')](_0x0763('0x13'),auth[_0x0763('0xa')](),controller['getAgents']);router[_0x0763('0x14')]('/',auth[_0x0763('0xa')](),controller['create']);router['post'](_0x0763('0x15'),auth[_0x0763('0xa')](),controller[_0x0763('0x16')]);router[_0x0763('0x14')](_0x0763('0xd'),auth[_0x0763('0xa')](),controller[_0x0763('0x17')]);router[_0x0763('0x14')](_0x0763('0x18'),controller[_0x0763('0x19')]);router['post'](_0x0763('0xf'),auth[_0x0763('0xa')](),controller[_0x0763('0x1a')]);router[_0x0763('0x14')](_0x0763('0x1b'),auth[_0x0763('0xa')](),controller[_0x0763('0x1c')]);router['post']('/:id/status',controller[_0x0763('0x1d')]);router['post'](_0x0763('0x13'),auth[_0x0763('0xa')](),controller[_0x0763('0x1e')]);router[_0x0763('0x1f')](_0x0763('0x20'),auth['isAuthenticated'](),controller[_0x0763('0x21')]);router['delete'](_0x0763('0x20'),auth[_0x0763('0xa')](),controller[_0x0763('0x22')]);router[_0x0763('0x23')](_0x0763('0x15'),auth[_0x0763('0xa')](),controller[_0x0763('0x24')]);router[_0x0763('0x23')](_0x0763('0xd'),auth['isAuthenticated'](),controller[_0x0763('0x25')]);router['delete'](_0x0763('0x13'),auth[_0x0763('0xa')](),controller['removeAgents']);module[_0x0763('0x26')]=router;