006d84803b738ffda4d2be6b1c8b6358157091f9
[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 _0x6ea6=['api','moment','bluebird','request-promise','rimraf','../../config/environment','exports','define','lodash','../../config/logger'];(function(_0x54496d,_0x5b8572){var _0x40e626=function(_0xb6475c){while(--_0xb6475c){_0x54496d['push'](_0x54496d['shift']());}};_0x40e626(++_0x5b8572);}(_0x6ea6,0xf8));var _0x66ea=function(_0x5179a5,_0x419746){_0x5179a5=_0x5179a5-0x0;var _0x15c8ce=_0x6ea6[_0x5179a5];return _0x15c8ce;};'use strict';var _=require(_0x66ea('0x0'));var util=require('util');var logger=require(_0x66ea('0x1'))(_0x66ea('0x2'));var moment=require(_0x66ea('0x3'));var BPromise=require(_0x66ea('0x4'));var rp=require(_0x66ea('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x66ea('0x6'));var config=require(_0x66ea('0x7'));var attributes=require('./schedule.attributes');module[_0x66ea('0x8')]=function(_0x12f33f,_0x19f986){return _0x12f33f[_0x66ea('0x9')]('Schedule',attributes,{'tableName':'tools_schedules','paranoid':![],'indexes':[],'timestamps':!![]});};