84348e5198c15a14a0c9d528a64b36a8d1d52370
[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 _0x8c17=['Request','GetInterval','name','Interval','getIntervals','../client'];(function(_0x1e4609,_0x376138){var _0x51a17e=function(_0x2e4010){while(--_0x2e4010){_0x1e4609['push'](_0x1e4609['shift']());}};_0x51a17e(++_0x376138);}(_0x8c17,0x155));var _0x78c1=function(_0x4c12ec,_0x2e9103){_0x4c12ec=_0x4c12ec-0x0;var _0x3ae42c=_0x8c17[_0x4c12ec];return _0x3ae42c;};'use strict';var client=require(_0x78c1('0x0'));exports['getIntervals']=function(){return function(){return client[_0x78c1('0x1')](_0x78c1('0x2'),{'options':{'raw':![],'where':{'IntervalId':null},'attributes':['id',_0x78c1('0x3')],'include':[{'model':_0x78c1('0x4'),'as':'Intervals','attributes':['id',_0x78c1('0x3'),'interval']}]},'log':_0x78c1('0x5')});};};