bb7eeb40d88caae6e939edc84c263a9144863751
[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 _0xcaa8=['tools_schedules','lodash','util','moment','bluebird','request-promise','path','rimraf','../../config/environment','./schedule.attributes','exports','define','Schedule'];(function(_0x1d6a82,_0x37c315){var _0x5834ac=function(_0x2402ba){while(--_0x2402ba){_0x1d6a82['push'](_0x1d6a82['shift']());}};_0x5834ac(++_0x37c315);}(_0xcaa8,0x90));var _0x8caa=function(_0x28cb71,_0x506c7e){_0x28cb71=_0x28cb71-0x0;var _0x2ad9f4=_0xcaa8[_0x28cb71];return _0x2ad9f4;};'use strict';var _=require(_0x8caa('0x0'));var util=require(_0x8caa('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x8caa('0x2'));var BPromise=require(_0x8caa('0x3'));var rp=require(_0x8caa('0x4'));var fs=require('fs');var path=require(_0x8caa('0x5'));var rimraf=require(_0x8caa('0x6'));var config=require(_0x8caa('0x7'));var attributes=require(_0x8caa('0x8'));module[_0x8caa('0x9')]=function(_0x27633f,_0xb46f5e){return _0x27633f[_0x8caa('0xa')](_0x8caa('0xb'),attributes,{'tableName':_0x8caa('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};