feab7cb76e19a34aaf47c9af1ca5b96696582b75
[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 _0x4f7b=['Request','GetInterval','Interval','Intervals','name','interval','../client','getIntervals'];(function(_0x1d1779,_0x284147){var _0x2377e9=function(_0x299f6f){while(--_0x299f6f){_0x1d1779['push'](_0x1d1779['shift']());}};_0x2377e9(++_0x284147);}(_0x4f7b,0x13e));var _0xb4f7=function(_0x5bc444,_0x40470c){_0x5bc444=_0x5bc444-0x0;var _0x107089=_0x4f7b[_0x5bc444];return _0x107089;};'use strict';var client=require(_0xb4f7('0x0'));exports[_0xb4f7('0x1')]=function(){return function(){return client[_0xb4f7('0x2')](_0xb4f7('0x3'),{'options':{'raw':![],'where':{'IntervalId':null},'attributes':['id','name'],'include':[{'model':_0xb4f7('0x4'),'as':_0xb4f7('0x5'),'attributes':['id',_0xb4f7('0x6'),_0xb4f7('0x7')]}]},'log':_0xb4f7('0x1')});};};