0efac60ba1c07a405fabcda4992ee3fca2d64d3b
[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 _0x342f=['tools_schedules','lodash','api','request-promise','path','../../config/environment','./schedule.attributes','exports','Schedule'];(function(_0x432682,_0x253044){var _0x463d05=function(_0xa73403){while(--_0xa73403){_0x432682['push'](_0x432682['shift']());}};_0x463d05(++_0x253044);}(_0x342f,0x172));var _0xf342=function(_0x5c416e,_0x469158){_0x5c416e=_0x5c416e-0x0;var _0x4f4f03=_0x342f[_0x5c416e];return _0x4f4f03;};'use strict';var _=require(_0xf342('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xf342('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xf342('0x2'));var fs=require('fs');var path=require(_0xf342('0x3'));var rimraf=require('rimraf');var config=require(_0xf342('0x4'));var attributes=require(_0xf342('0x5'));module[_0xf342('0x6')]=function(_0x373efa,_0x7a35ea){return _0x373efa['define'](_0xf342('0x7'),attributes,{'tableName':_0xf342('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};