b107fa9102fd23923b517caec40aef75238ff08a
[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 _0xec8c=['Intervals','getIntervals','Request','name','Interval'];(function(_0x13b02f,_0x462a53){var _0x12e9a6=function(_0x187d57){while(--_0x187d57){_0x13b02f['push'](_0x13b02f['shift']());}};_0x12e9a6(++_0x462a53);}(_0xec8c,0x115));var _0xcec8=function(_0x16cf22,_0x504218){_0x16cf22=_0x16cf22-0x0;var _0x113c09=_0xec8c[_0x16cf22];return _0x113c09;};'use strict';var client=require('../client');exports['getIntervals']=function(){return function(){return client[_0xcec8('0x0')]('GetInterval',{'options':{'raw':![],'where':{'IntervalId':null},'attributes':['id',_0xcec8('0x1')],'include':[{'model':_0xcec8('0x2'),'as':_0xcec8('0x3'),'attributes':['id','name','interval']}]},'log':_0xcec8('0x4')});};};