fe404b44f5e23672162cde3185ac6c09796fcc29
[motion2.git] / server / services / ami / rpc / trunk.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 _0xeea2=['defaultuser','../client','Request','GetTrunk','name'];(function(_0x1ada1b,_0x17ae08){var _0x3aa8d3=function(_0x27966e){while(--_0x27966e){_0x1ada1b['push'](_0x1ada1b['shift']());}};_0x3aa8d3(++_0x17ae08);}(_0xeea2,0xce));var _0x2eea=function(_0x307d86,_0x9264f2){_0x307d86=_0x307d86-0x0;var _0x361745=_0xeea2[_0x307d86];return _0x361745;};'use strict';var client=require(_0x2eea('0x0'));exports['getTrunks']=function(_0x5a2a7f){return function(_0x418b56){return client[_0x2eea('0x1')](_0x2eea('0x2'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0x2eea('0x3'),'registry',_0x2eea('0x4')]},'log':_0x2eea('0x2')});};};