854741bcd944427227f501c23836e448f00744c3
[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 _0x236c=['name','Interval','Intervals','interval','getIntervals','../client','Request','GetInterval'];(function(_0x27461b,_0x2c9f29){var _0x4934da=function(_0x2ea2f4){while(--_0x2ea2f4){_0x27461b['push'](_0x27461b['shift']());}};_0x4934da(++_0x2c9f29);}(_0x236c,0x155));var _0xc236=function(_0x21185f,_0x272e12){_0x21185f=_0x21185f-0x0;var _0x12a3fe=_0x236c[_0x21185f];return _0x12a3fe;};'use strict';var client=require(_0xc236('0x0'));exports['getIntervals']=function(){return function(){return client[_0xc236('0x1')](_0xc236('0x2'),{'options':{'raw':![],'where':{'IntervalId':null},'attributes':['id',_0xc236('0x3')],'include':[{'model':_0xc236('0x4'),'as':_0xc236('0x5'),'attributes':['id','name',_0xc236('0x6')]}]},'log':_0xc236('0x7')});};};