4fb5d96ecee95d8a6a5aa05a1f51877fed507ee0
[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 _0x0ade=['name','registry','defaultuser','../client','getTrunks','Request','GetTrunk'];(function(_0xaf5267,_0x51ff58){var _0x10cbcb=function(_0x44bde3){while(--_0x44bde3){_0xaf5267['push'](_0xaf5267['shift']());}};_0x10cbcb(++_0x51ff58);}(_0x0ade,0xab));var _0xe0ad=function(_0x89624a,_0x3283b1){_0x89624a=_0x89624a-0x0;var _0x486cfc=_0x0ade[_0x89624a];return _0x486cfc;};'use strict';var client=require(_0xe0ad('0x0'));exports[_0xe0ad('0x1')]=function(_0x5e6ad0){return function(_0x10bf62){return client[_0xe0ad('0x2')](_0xe0ad('0x3'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0xe0ad('0x4'),_0xe0ad('0x5'),_0xe0ad('0x6')]},'log':'GetTrunk'});};};