Built motion from commit 4c281f94.|2.6.31
[motion2.git] / server / services / routing / rpc / interval.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 _0xbaa9=['name','Interval','Intervals','interval','getIntervals','../client','Request','GetInterval'];(function(_0x817dbb,_0x4477a0){var _0x202be8=function(_0x27592e){while(--_0x27592e){_0x817dbb['push'](_0x817dbb['shift']());}};_0x202be8(++_0x4477a0);}(_0xbaa9,0xdd));var _0x9baa=function(_0x7e9a85,_0xd98fc9){_0x7e9a85=_0x7e9a85-0x0;var _0x5ebdc3=_0xbaa9[_0x7e9a85];return _0x5ebdc3;};'use strict';var client=require(_0x9baa('0x0'));exports['getIntervals']=function(){return function(){return client[_0x9baa('0x1')](_0x9baa('0x2'),{'options':{'raw':![],'where':{'IntervalId':null},'attributes':['id',_0x9baa('0x3')],'include':[{'model':_0x9baa('0x4'),'as':_0x9baa('0x5'),'attributes':['id',_0x9baa('0x3'),_0x9baa('0x6')]}]},'log':_0x9baa('0x7')});};};