01e05f35ccf97f1e38bb358ba30207af2b5c9a4d
[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 _0x9e91=['rimraf','./schedule.attributes','exports','define','Schedule','tools_schedules','util','../../config/logger','request-promise','path'];(function(_0x29e211,_0x497b4a){var _0x307738=function(_0x3cc367){while(--_0x3cc367){_0x29e211['push'](_0x29e211['shift']());}};_0x307738(++_0x497b4a);}(_0x9e91,0x1aa));var _0x19e9=function(_0x379d08,_0x296885){_0x379d08=_0x379d08-0x0;var _0x2fd396=_0x9e91[_0x379d08];return _0x2fd396;};'use strict';var _=require('lodash');var util=require(_0x19e9('0x0'));var logger=require(_0x19e9('0x1'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x19e9('0x2'));var fs=require('fs');var path=require(_0x19e9('0x3'));var rimraf=require(_0x19e9('0x4'));var config=require('../../config/environment');var attributes=require(_0x19e9('0x5'));module[_0x19e9('0x6')]=function(_0x1af059,_0x5e1f78){return _0x1af059[_0x19e9('0x7')](_0x19e9('0x8'),attributes,{'tableName':_0x19e9('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};