e9a8cc520abfd510f24aece158704cc2cca0dae4
[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 _0xf9e5=['registry','../client','getTrunks','GetTrunk'];(function(_0x2dd218,_0x188aa8){var _0x52c298=function(_0x462e81){while(--_0x462e81){_0x2dd218['push'](_0x2dd218['shift']());}};_0x52c298(++_0x188aa8);}(_0xf9e5,0xd1));var _0x5f9e=function(_0x5f2849,_0x1a8fef){_0x5f2849=_0x5f2849-0x0;var _0x21daed=_0xf9e5[_0x5f2849];return _0x21daed;};'use strict';var client=require(_0x5f9e('0x0'));exports[_0x5f9e('0x1')]=function(_0x13bc0a){return function(_0x758f4b){return client['Request'](_0x5f9e('0x2'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id','name',_0x5f9e('0x3')]},'log':_0x5f9e('0x2')});};};