Built motion from commit fda31434.|2.5.44
[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 _0xf45d=['util','../../config/logger','api','moment','bluebird','path','rimraf','exports','Schedule','lodash'];(function(_0x4e007d,_0x5a0b85){var _0x270c4f=function(_0x338a08){while(--_0x338a08){_0x4e007d['push'](_0x4e007d['shift']());}};_0x270c4f(++_0x5a0b85);}(_0xf45d,0x17b));var _0xdf45=function(_0x53a8bb,_0x4404dd){_0x53a8bb=_0x53a8bb-0x0;var _0x11ade8=_0xf45d[_0x53a8bb];return _0x11ade8;};'use strict';var _=require(_0xdf45('0x0'));var util=require(_0xdf45('0x1'));var logger=require(_0xdf45('0x2'))(_0xdf45('0x3'));var moment=require(_0xdf45('0x4'));var BPromise=require(_0xdf45('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xdf45('0x6'));var rimraf=require(_0xdf45('0x7'));var config=require('../../config/environment');var attributes=require('./schedule.attributes');module[_0xdf45('0x8')]=function(_0x39314a,_0x1f58c5){return _0x39314a['define'](_0xdf45('0x9'),attributes,{'tableName':'tools_schedules','paranoid':![],'indexes':[],'timestamps':!![]});};