e82fec1b5c4fc38efbdec9852998c72cead7ae69
[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 _0x28a3=['define','Schedule','tools_schedules','lodash','util','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','exports'];(function(_0x58c58d,_0x12447c){var _0x3ac082=function(_0x69e197){while(--_0x69e197){_0x58c58d['push'](_0x58c58d['shift']());}};_0x3ac082(++_0x12447c);}(_0x28a3,0x1e4));var _0x328a=function(_0x199572,_0x33e667){_0x199572=_0x199572-0x0;var _0x13cfa3=_0x28a3[_0x199572];return _0x13cfa3;};'use strict';var _=require(_0x328a('0x0'));var util=require(_0x328a('0x1'));var logger=require(_0x328a('0x2'))(_0x328a('0x3'));var moment=require(_0x328a('0x4'));var BPromise=require(_0x328a('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x328a('0x6'));var rimraf=require(_0x328a('0x7'));var config=require(_0x328a('0x8'));var attributes=require('./schedule.attributes');module[_0x328a('0x9')]=function(_0x2c62b4,_0x59d5bd){return _0x2c62b4[_0x328a('0xa')](_0x328a('0xb'),attributes,{'tableName':_0x328a('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};