a9cc858b4b460c9ae20cf83ae53aebf8b2f76184
[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 _0x8aaa=['getIntervals','../client','Request','GetInterval','name','interval'];(function(_0xd8c725,_0x28114d){var _0x366801=function(_0x2cce63){while(--_0x2cce63){_0xd8c725['push'](_0xd8c725['shift']());}};_0x366801(++_0x28114d);}(_0x8aaa,0x163));var _0xa8aa=function(_0xee122e,_0x58ef2e){_0xee122e=_0xee122e-0x0;var _0x34f98a=_0x8aaa[_0xee122e];return _0x34f98a;};'use strict';var client=require(_0xa8aa('0x0'));exports['getIntervals']=function(){return function(){return client[_0xa8aa('0x1')](_0xa8aa('0x2'),{'options':{'raw':![],'where':{'IntervalId':null},'attributes':['id',_0xa8aa('0x3')],'include':[{'model':'Interval','as':'Intervals','attributes':['id','name',_0xa8aa('0x4')]}]},'log':_0xa8aa('0x5')});};};