61173683dee59ae90dac120d7de77dcfc63b1b25
[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 _0x3cbe=['lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','./schedule.attributes','exports','Schedule','tools_schedules'];(function(_0x31407f,_0x917f9c){var _0x1efe90=function(_0x59e4ca){while(--_0x59e4ca){_0x31407f['push'](_0x31407f['shift']());}};_0x1efe90(++_0x917f9c);}(_0x3cbe,0x198));var _0xe3cb=function(_0x3e5e03,_0x2fac27){_0x3e5e03=_0x3e5e03-0x0;var _0x45279e=_0x3cbe[_0x3e5e03];return _0x45279e;};'use strict';var _=require(_0xe3cb('0x0'));var util=require(_0xe3cb('0x1'));var logger=require(_0xe3cb('0x2'))(_0xe3cb('0x3'));var moment=require(_0xe3cb('0x4'));var BPromise=require(_0xe3cb('0x5'));var rp=require(_0xe3cb('0x6'));var fs=require('fs');var path=require(_0xe3cb('0x7'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xe3cb('0x8'));module[_0xe3cb('0x9')]=function(_0x4b27bc,_0x501713){return _0x4b27bc['define'](_0xe3cb('0xa'),attributes,{'tableName':_0xe3cb('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};