a992e7baf6afbccb2a7e8f848c9f01271b159e2c
[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 _0xac94=['Request','GetInterval','Interval','Intervals','name','interval','getIntervals'];(function(_0x584714,_0x22e620){var _0xf81a9e=function(_0x2ff7de){while(--_0x2ff7de){_0x584714['push'](_0x584714['shift']());}};_0xf81a9e(++_0x22e620);}(_0xac94,0xd8));var _0x4ac9=function(_0x1d9a08,_0x38e20e){_0x1d9a08=_0x1d9a08-0x0;var _0x3f26f8=_0xac94[_0x1d9a08];return _0x3f26f8;};'use strict';var client=require('../client');exports[_0x4ac9('0x0')]=function(){return function(){return client[_0x4ac9('0x1')](_0x4ac9('0x2'),{'options':{'raw':![],'where':{'IntervalId':null},'attributes':['id','name'],'include':[{'model':_0x4ac9('0x3'),'as':_0x4ac9('0x4'),'attributes':['id',_0x4ac9('0x5'),_0x4ac9('0x6')]}]},'log':_0x4ac9('0x0')});};};