6c51c95cf84afb50b840356589b39b8d01a5d7be
[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 _0x2a5e=['../client','Request','GetTrunk','name','registry','defaultuser'];(function(_0x451d04,_0x999e7d){var _0x32c6fe=function(_0x2be910){while(--_0x2be910){_0x451d04['push'](_0x451d04['shift']());}};_0x32c6fe(++_0x999e7d);}(_0x2a5e,0xf6));var _0xe2a5=function(_0x106b5c,_0x5e16a1){_0x106b5c=_0x106b5c-0x0;var _0x5b2c5b=_0x2a5e[_0x106b5c];return _0x5b2c5b;};'use strict';var client=require(_0xe2a5('0x0'));exports['getTrunks']=function(_0x48c65c){return function(_0x26d581){return client[_0xe2a5('0x1')](_0xe2a5('0x2'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0xe2a5('0x3'),_0xe2a5('0x4'),_0xe2a5('0x5')]},'log':_0xe2a5('0x2')});};};