f6278d6cc1551a0da1b29c97ed5b33766b87a8bd
[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 _0x6454=['rimraf','../../config/environment','./schedule.attributes','exports','define','Schedule','tools_schedules','util','../../config/logger','moment','request-promise','path'];(function(_0xc3a54a,_0x5363e8){var _0x7ff179=function(_0x2faeaf){while(--_0x2faeaf){_0xc3a54a['push'](_0xc3a54a['shift']());}};_0x7ff179(++_0x5363e8);}(_0x6454,0x193));var _0x4645=function(_0x43cdc5,_0x2f19ba){_0x43cdc5=_0x43cdc5-0x0;var _0x2da6c5=_0x6454[_0x43cdc5];return _0x2da6c5;};'use strict';var _=require('lodash');var util=require(_0x4645('0x0'));var logger=require(_0x4645('0x1'))('api');var moment=require(_0x4645('0x2'));var BPromise=require('bluebird');var rp=require(_0x4645('0x3'));var fs=require('fs');var path=require(_0x4645('0x4'));var rimraf=require(_0x4645('0x5'));var config=require(_0x4645('0x6'));var attributes=require(_0x4645('0x7'));module[_0x4645('0x8')]=function(_0x122152,_0x26c838){return _0x122152[_0x4645('0x9')](_0x4645('0xa'),attributes,{'tableName':_0x4645('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};