e422a6aca71813353e671ad3625b2a0bc58e54f5
[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 _0x7ff3=['tools_schedules','util','api','moment','request-promise','path','../../config/environment','./schedule.attributes','exports','Schedule'];(function(_0x96c9c,_0x4ca96f){var _0x595909=function(_0x3ce2b8){while(--_0x3ce2b8){_0x96c9c['push'](_0x96c9c['shift']());}};_0x595909(++_0x4ca96f);}(_0x7ff3,0x1cd));var _0x37ff=function(_0x223c0d,_0x3ec04d){_0x223c0d=_0x223c0d-0x0;var _0x207827=_0x7ff3[_0x223c0d];return _0x207827;};'use strict';var _=require('lodash');var util=require(_0x37ff('0x0'));var logger=require('../../config/logger')(_0x37ff('0x1'));var moment=require(_0x37ff('0x2'));var BPromise=require('bluebird');var rp=require(_0x37ff('0x3'));var fs=require('fs');var path=require(_0x37ff('0x4'));var rimraf=require('rimraf');var config=require(_0x37ff('0x5'));var attributes=require(_0x37ff('0x6'));module[_0x37ff('0x7')]=function(_0x25e58,_0xff13a2){return _0x25e58['define'](_0x37ff('0x8'),attributes,{'tableName':_0x37ff('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};