00aee2e47a4e961770e62af8ae06e380f2c24707
[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 _0x3df5=['tools_schedules','../../config/logger','api','bluebird','request-promise','path','rimraf','./schedule.attributes','exports'];(function(_0xa24a55,_0x5143fe){var _0x37439c=function(_0x36bc80){while(--_0x36bc80){_0xa24a55['push'](_0xa24a55['shift']());}};_0x37439c(++_0x5143fe);}(_0x3df5,0xbe));var _0x53df=function(_0x34c276,_0x5bb256){_0x34c276=_0x34c276-0x0;var _0x6cec06=_0x3df5[_0x34c276];return _0x6cec06;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x53df('0x0'))(_0x53df('0x1'));var moment=require('moment');var BPromise=require(_0x53df('0x2'));var rp=require(_0x53df('0x3'));var fs=require('fs');var path=require(_0x53df('0x4'));var rimraf=require(_0x53df('0x5'));var config=require('../../config/environment');var attributes=require(_0x53df('0x6'));module[_0x53df('0x7')]=function(_0x35ca38,_0x355593){return _0x35ca38['define']('Schedule',attributes,{'tableName':_0x53df('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};