Built motion from commit 092f8824.|2.5.49
[motion2.git] / server / api / schedule / schedule.model.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 _0x655e=['request-promise','path','rimraf','../../config/environment','exports','define','Schedule','tools_schedules','lodash','util','api','bluebird'];(function(_0x42cae2,_0x284ef8){var _0x5f256f=function(_0x41abc8){while(--_0x41abc8){_0x42cae2['push'](_0x42cae2['shift']());}};_0x5f256f(++_0x284ef8);}(_0x655e,0x1c4));var _0xe655=function(_0x327b8f,_0x2be6f4){_0x327b8f=_0x327b8f-0x0;var _0x13ca56=_0x655e[_0x327b8f];return _0x13ca56;};'use strict';var _=require(_0xe655('0x0'));var util=require(_0xe655('0x1'));var logger=require('../../config/logger')(_0xe655('0x2'));var moment=require('moment');var BPromise=require(_0xe655('0x3'));var rp=require(_0xe655('0x4'));var fs=require('fs');var path=require(_0xe655('0x5'));var rimraf=require(_0xe655('0x6'));var config=require(_0xe655('0x7'));var attributes=require('./schedule.attributes');module[_0xe655('0x8')]=function(_0x5cf935,_0x1e3d3c){return _0x5cf935[_0xe655('0x9')](_0xe655('0xa'),attributes,{'tableName':_0xe655('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};