062eb51e6fa001d79c152949012cebc31e25653b
[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 _0x1fec=['GetTrunk','name','registry','defaultuser','getTrunks','Request'];(function(_0x455af8,_0x29cfd7){var _0x3b33ce=function(_0x45819a){while(--_0x45819a){_0x455af8['push'](_0x455af8['shift']());}};_0x3b33ce(++_0x29cfd7);}(_0x1fec,0x1ea));var _0xc1fe=function(_0x45d3f0,_0x4be53f){_0x45d3f0=_0x45d3f0-0x0;var _0x314b79=_0x1fec[_0x45d3f0];return _0x314b79;};'use strict';var client=require('../client');exports[_0xc1fe('0x0')]=function(_0x3fd163){return function(_0x30f797){return client[_0xc1fe('0x1')](_0xc1fe('0x2'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0xc1fe('0x3'),_0xc1fe('0x4'),_0xc1fe('0x5')]},'log':'GetTrunk'});};};