Built motion from commit 85328c08.|2.5.50
[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 _0xc268=['Schedule','util','../../config/logger','moment','bluebird','request-promise','path','./schedule.attributes','exports','define'];(function(_0x3ab51d,_0x2fa01d){var _0x29a04e=function(_0x7807b0){while(--_0x7807b0){_0x3ab51d['push'](_0x3ab51d['shift']());}};_0x29a04e(++_0x2fa01d);}(_0xc268,0x1b9));var _0x8c26=function(_0x29237b,_0xaba533){_0x29237b=_0x29237b-0x0;var _0x4bc5f0=_0xc268[_0x29237b];return _0x4bc5f0;};'use strict';var _=require('lodash');var util=require(_0x8c26('0x0'));var logger=require(_0x8c26('0x1'))('api');var moment=require(_0x8c26('0x2'));var BPromise=require(_0x8c26('0x3'));var rp=require(_0x8c26('0x4'));var fs=require('fs');var path=require(_0x8c26('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x8c26('0x6'));module[_0x8c26('0x7')]=function(_0x4ffae8,_0x2c8837){return _0x4ffae8[_0x8c26('0x8')](_0x8c26('0x9'),attributes,{'tableName':'tools_schedules','paranoid':![],'indexes':[],'timestamps':!![]});};