4e6b9dcba991242a7b9698e2abc6bbe3edc2db91
[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 _0xa9e5=['Request','GetTrunk','name','registry','defaultuser','../client','getTrunks'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0xa9e5,0x8a));var _0x5a9e=function(_0x2505b2,_0x1bcf83){_0x2505b2=_0x2505b2-0x0;var _0x4be8b9=_0xa9e5[_0x2505b2];return _0x4be8b9;};'use strict';var client=require(_0x5a9e('0x0'));exports[_0x5a9e('0x1')]=function(_0x4b77d6){return function(_0x2790f7){return client[_0x5a9e('0x2')](_0x5a9e('0x3'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0x5a9e('0x4'),_0x5a9e('0x5'),_0x5a9e('0x6')]},'log':_0x5a9e('0x3')});};};