194b39cafeea7d7ae910c237a94823ca54f6dfef
[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 _0x2625=['GetInterval','name','Interval','Intervals','getIntervals','Request'];(function(_0x511fad,_0x26cf29){var _0x4b61bd=function(_0x543692){while(--_0x543692){_0x511fad['push'](_0x511fad['shift']());}};_0x4b61bd(++_0x26cf29);}(_0x2625,0x95));var _0x5262=function(_0x4d8ed9,_0x2ae284){_0x4d8ed9=_0x4d8ed9-0x0;var _0x1e2140=_0x2625[_0x4d8ed9];return _0x1e2140;};'use strict';var client=require('../client');exports['getIntervals']=function(){return function(){return client[_0x5262('0x0')](_0x5262('0x1'),{'options':{'raw':![],'where':{'IntervalId':null},'attributes':['id',_0x5262('0x2')],'include':[{'model':_0x5262('0x3'),'as':_0x5262('0x4'),'attributes':['id',_0x5262('0x2'),'interval']}]},'log':_0x5262('0x5')});};};