Built motion from commit (unavailable).|2.0.81
[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 _0x7382=['getAgents','create','addDisposition','addAnswer','post','/:id/notify','notify','addApplications','/:id/send','send','addAgents','put','update','delete','removeDispositions','removeAnswers','exports','util','../../components/interaction/service','../../config/environment','./smsAccount.controller','get','isAuthenticated','/describe','/:id','/:id/dispositions','/:id/canned_answers','/:id/applications','getApplications','/:id/interactions','getInteractions','/:id/users'];(function(_0x50426d,_0x18408f){var _0x4da6ae=function(_0x393f70){while(--_0x393f70){_0x50426d['push'](_0x50426d['shift']());}};_0x4da6ae(++_0x18408f);}(_0x7382,0x111));var _0x2738=function(_0xffed91,_0x51ac4e){_0xffed91=_0xffed91-0x0;var _0x356ada=_0x7382[_0xffed91];return _0x356ada;};'use strict';var multer=require('multer');var util=require(_0x2738('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x2738('0x1'));var config=require(_0x2738('0x2'));var controller=require(_0x2738('0x3'));router[_0x2738('0x4')]('/',auth[_0x2738('0x5')](),controller['index']);router[_0x2738('0x4')](_0x2738('0x6'),auth[_0x2738('0x5')](),controller['describe']);router[_0x2738('0x4')](_0x2738('0x7'),auth[_0x2738('0x5')](),controller['show']);router[_0x2738('0x4')](_0x2738('0x8'),auth[_0x2738('0x5')](),controller['getDispositions']);router[_0x2738('0x4')](_0x2738('0x9'),auth[_0x2738('0x5')](),controller['getAnswers']);router['get'](_0x2738('0xa'),auth[_0x2738('0x5')](),controller[_0x2738('0xb')]);router[_0x2738('0x4')](_0x2738('0xc'),auth[_0x2738('0x5')](),controller[_0x2738('0xd')]);router[_0x2738('0x4')](_0x2738('0xe'),auth[_0x2738('0x5')](),controller[_0x2738('0xf')]);router['post']('/',auth[_0x2738('0x5')](),controller[_0x2738('0x10')]);router['post'](_0x2738('0x8'),auth['isAuthenticated'](),controller[_0x2738('0x11')]);router['post'](_0x2738('0x9'),auth['isAuthenticated'](),controller[_0x2738('0x12')]);router[_0x2738('0x13')](_0x2738('0x14'),controller[_0x2738('0x15')]);router[_0x2738('0x13')](_0x2738('0xa'),auth[_0x2738('0x5')](),controller[_0x2738('0x16')]);router['post'](_0x2738('0x17'),auth['isAuthenticated'](),controller[_0x2738('0x18')]);router[_0x2738('0x13')]('/:id/status',controller['status']);router[_0x2738('0x13')](_0x2738('0xe'),auth[_0x2738('0x5')](),controller[_0x2738('0x19')]);router[_0x2738('0x1a')](_0x2738('0x7'),auth[_0x2738('0x5')](),controller[_0x2738('0x1b')]);router[_0x2738('0x1c')](_0x2738('0x7'),auth[_0x2738('0x5')](),controller['destroy']);router[_0x2738('0x1c')]('/:id/dispositions',auth['isAuthenticated'](),controller[_0x2738('0x1d')]);router[_0x2738('0x1c')](_0x2738('0x9'),auth[_0x2738('0x5')](),controller[_0x2738('0x1e')]);router[_0x2738('0x1c')](_0x2738('0xe'),auth[_0x2738('0x5')](),controller['removeAgents']);module[_0x2738('0x1f')]=router;