38d85f3eadef035a84066f5d6e0aaa46c4ed0746
[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 _0xc983=['tools_schedules','lodash','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./schedule.attributes','exports','Schedule'];(function(_0x5ad958,_0x2e6cb7){var _0x4e75c2=function(_0x596fd8){while(--_0x596fd8){_0x5ad958['push'](_0x5ad958['shift']());}};_0x4e75c2(++_0x2e6cb7);}(_0xc983,0x1d5));var _0x3c98=function(_0x214316,_0x571028){_0x214316=_0x214316-0x0;var _0x2050a5=_0xc983[_0x214316];return _0x2050a5;};'use strict';var _=require(_0x3c98('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x3c98('0x1'));var moment=require(_0x3c98('0x2'));var BPromise=require(_0x3c98('0x3'));var rp=require(_0x3c98('0x4'));var fs=require('fs');var path=require(_0x3c98('0x5'));var rimraf=require(_0x3c98('0x6'));var config=require(_0x3c98('0x7'));var attributes=require(_0x3c98('0x8'));module[_0x3c98('0x9')]=function(_0x43ea16,_0x290a71){return _0x43ea16['define'](_0x3c98('0xa'),attributes,{'tableName':_0x3c98('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};