e623783bb042e520a6f182481c2f1f47328f6dd9
[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 _0x2529=['define','Schedule','util','../../config/logger','api','moment','request-promise','path','rimraf','../../config/environment'];(function(_0x653297,_0x42a23d){var _0x5d9109=function(_0x501da2){while(--_0x501da2){_0x653297['push'](_0x653297['shift']());}};_0x5d9109(++_0x42a23d);}(_0x2529,0xfc));var _0x9252=function(_0x5e3cae,_0x453502){_0x5e3cae=_0x5e3cae-0x0;var _0x352c06=_0x2529[_0x5e3cae];return _0x352c06;};'use strict';var _=require('lodash');var util=require(_0x9252('0x0'));var logger=require(_0x9252('0x1'))(_0x9252('0x2'));var moment=require(_0x9252('0x3'));var BPromise=require('bluebird');var rp=require(_0x9252('0x4'));var fs=require('fs');var path=require(_0x9252('0x5'));var rimraf=require(_0x9252('0x6'));var config=require(_0x9252('0x7'));var attributes=require('./schedule.attributes');module['exports']=function(_0x251c5a,_0x7ea7d4){return _0x251c5a[_0x9252('0x8')](_0x9252('0x9'),attributes,{'tableName':'tools_schedules','paranoid':![],'indexes':[],'timestamps':!![]});};