97c1f69e3695438598eedd473fd86e7d46b5f271
[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 _0xddbe=['tools_schedules','lodash','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','./schedule.attributes','exports','Schedule'];(function(_0x450fd7,_0x32e322){var _0x58c67e=function(_0xe3829a){while(--_0xe3829a){_0x450fd7['push'](_0x450fd7['shift']());}};_0x58c67e(++_0x32e322);}(_0xddbe,0x139));var _0xeddb=function(_0xe92a5f,_0x3084b3){_0xe92a5f=_0xe92a5f-0x0;var _0x2dbbd7=_0xddbe[_0xe92a5f];return _0x2dbbd7;};'use strict';var _=require(_0xeddb('0x0'));var util=require('util');var logger=require(_0xeddb('0x1'))(_0xeddb('0x2'));var moment=require('moment');var BPromise=require(_0xeddb('0x3'));var rp=require(_0xeddb('0x4'));var fs=require('fs');var path=require(_0xeddb('0x5'));var rimraf=require(_0xeddb('0x6'));var config=require(_0xeddb('0x7'));var attributes=require(_0xeddb('0x8'));module[_0xeddb('0x9')]=function(_0x19d8bf,_0x3c2abb){return _0x19d8bf['define'](_0xeddb('0xa'),attributes,{'tableName':_0xeddb('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};