35778dacc43c3cde2ae2cbdc7ad4a1a02ce6e4cc
[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 _0x0dcf=['name','Interval','interval','../client','Request','GetInterval'];(function(_0x365859,_0x263e4b){var _0x302779=function(_0xf9a769){while(--_0xf9a769){_0x365859['push'](_0x365859['shift']());}};_0x302779(++_0x263e4b);}(_0x0dcf,0x1d7));var _0xf0dc=function(_0x41fe02,_0x458351){_0x41fe02=_0x41fe02-0x0;var _0x2e6f34=_0x0dcf[_0x41fe02];return _0x2e6f34;};'use strict';var client=require(_0xf0dc('0x0'));exports['getIntervals']=function(){return function(){return client[_0xf0dc('0x1')](_0xf0dc('0x2'),{'options':{'raw':![],'where':{'IntervalId':null},'attributes':['id',_0xf0dc('0x3')],'include':[{'model':_0xf0dc('0x4'),'as':'Intervals','attributes':['id',_0xf0dc('0x3'),_0xf0dc('0x5')]}]},'log':'getIntervals'});};};