1867ec14812e59db8eaa0c82bfd2aed12cf960f6
[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 _0xa02f=['Interval','interval','../client','getIntervals','Request','GetInterval','name'];(function(_0x22663b,_0xc8c6e3){var _0x310d0a=function(_0x151e66){while(--_0x151e66){_0x22663b['push'](_0x22663b['shift']());}};_0x310d0a(++_0xc8c6e3);}(_0xa02f,0x79));var _0xfa02=function(_0x2affd7,_0x217a0d){_0x2affd7=_0x2affd7-0x0;var _0x342075=_0xa02f[_0x2affd7];return _0x342075;};'use strict';var client=require(_0xfa02('0x0'));exports[_0xfa02('0x1')]=function(){return function(){return client[_0xfa02('0x2')](_0xfa02('0x3'),{'options':{'raw':![],'where':{'IntervalId':null},'attributes':['id',_0xfa02('0x4')],'include':[{'model':_0xfa02('0x5'),'as':'Intervals','attributes':['id','name',_0xfa02('0x6')]}]},'log':_0xfa02('0x1')});};};