61743ef07a162c353cf8a4b4170ac82d9a534146
[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 _0x4917=['name','Interval','interval','../client','getIntervals','Request','GetInterval'];(function(_0x5c3e84,_0x43996c){var _0x1eda4d=function(_0x5600b5){while(--_0x5600b5){_0x5c3e84['push'](_0x5c3e84['shift']());}};_0x1eda4d(++_0x43996c);}(_0x4917,0x129));var _0x7491=function(_0x3397c0,_0xd3a82e){_0x3397c0=_0x3397c0-0x0;var _0x399945=_0x4917[_0x3397c0];return _0x399945;};'use strict';var client=require(_0x7491('0x0'));exports[_0x7491('0x1')]=function(){return function(){return client[_0x7491('0x2')](_0x7491('0x3'),{'options':{'raw':![],'where':{'IntervalId':null},'attributes':['id',_0x7491('0x4')],'include':[{'model':_0x7491('0x5'),'as':'Intervals','attributes':['id','name',_0x7491('0x6')]}]},'log':'getIntervals'});};};