57afeb6a0a3232f72ac860e3ac5056c13c6ac97f
[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 _0x1c34=['./schedule.attributes','exports','Schedule','tools_schedules','lodash','util','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment'];(function(_0x403198,_0x37f249){var _0x37bff8=function(_0x4d9e92){while(--_0x4d9e92){_0x403198['push'](_0x403198['shift']());}};_0x37bff8(++_0x37f249);}(_0x1c34,0xd4));var _0x41c3=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x1c34[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0x41c3('0x0'));var util=require(_0x41c3('0x1'));var logger=require(_0x41c3('0x2'))(_0x41c3('0x3'));var moment=require('moment');var BPromise=require(_0x41c3('0x4'));var rp=require(_0x41c3('0x5'));var fs=require('fs');var path=require(_0x41c3('0x6'));var rimraf=require(_0x41c3('0x7'));var config=require(_0x41c3('0x8'));var attributes=require(_0x41c3('0x9'));module[_0x41c3('0xa')]=function(_0x5c76c9,_0xba95b1){return _0x5c76c9['define'](_0x41c3('0xb'),attributes,{'tableName':_0x41c3('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};