c4b9d4fad446147a6a32a9162ab2fce0d9718dc7
[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 _0x59c3=['defaultuser','../client','getTrunks','Request','GetTrunk','registry'];(function(_0x12c3d1,_0x3c6ae7){var _0x282840=function(_0x4ae0d2){while(--_0x4ae0d2){_0x12c3d1['push'](_0x12c3d1['shift']());}};_0x282840(++_0x3c6ae7);}(_0x59c3,0x133));var _0x359c=function(_0x5ddb1c,_0x5ea4df){_0x5ddb1c=_0x5ddb1c-0x0;var _0x354adc=_0x59c3[_0x5ddb1c];return _0x354adc;};'use strict';var client=require(_0x359c('0x0'));exports[_0x359c('0x1')]=function(_0x3f470b){return function(_0x26f8f6){return client[_0x359c('0x2')](_0x359c('0x3'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id','name',_0x359c('0x4'),_0x359c('0x5')]},'log':_0x359c('0x3')});};};