069cdec6fe40d202c25edbd80ebbe0014b492f50
[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 _0x695e=['Schedule','lodash','util','api','moment','bluebird','request-promise','path','exports','define'];(function(_0x59e0ff,_0xbe340b){var _0x5881c5=function(_0x5bf37b){while(--_0x5bf37b){_0x59e0ff['push'](_0x59e0ff['shift']());}};_0x5881c5(++_0xbe340b);}(_0x695e,0x97));var _0xe695=function(_0x342ca3,_0x31db47){_0x342ca3=_0x342ca3-0x0;var _0x580f2d=_0x695e[_0x342ca3];return _0x580f2d;};'use strict';var _=require(_0xe695('0x0'));var util=require(_0xe695('0x1'));var logger=require('../../config/logger')(_0xe695('0x2'));var moment=require(_0xe695('0x3'));var BPromise=require(_0xe695('0x4'));var rp=require(_0xe695('0x5'));var fs=require('fs');var path=require(_0xe695('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./schedule.attributes');module[_0xe695('0x7')]=function(_0x1d3810,_0x16a0ec){return _0x1d3810[_0xe695('0x8')](_0xe695('0x9'),attributes,{'tableName':'tools_schedules','paranoid':![],'indexes':[],'timestamps':!![]});};