50793da9841bc4097b8c0e77f79ea9599eb2e8ea
[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 _0xca5e=['define','Schedule','tools_schedules','util','../../config/logger','moment','bluebird','request-promise','path','rimraf','../../config/environment','exports'];(function(_0x3edb70,_0x30811c){var _0x20ce09=function(_0x439881){while(--_0x439881){_0x3edb70['push'](_0x3edb70['shift']());}};_0x20ce09(++_0x30811c);}(_0xca5e,0xdb));var _0xeca5=function(_0x592e9e,_0x4550ba){_0x592e9e=_0x592e9e-0x0;var _0x57a92f=_0xca5e[_0x592e9e];return _0x57a92f;};'use strict';var _=require('lodash');var util=require(_0xeca5('0x0'));var logger=require(_0xeca5('0x1'))('api');var moment=require(_0xeca5('0x2'));var BPromise=require(_0xeca5('0x3'));var rp=require(_0xeca5('0x4'));var fs=require('fs');var path=require(_0xeca5('0x5'));var rimraf=require(_0xeca5('0x6'));var config=require(_0xeca5('0x7'));var attributes=require('./schedule.attributes');module[_0xeca5('0x8')]=function(_0x244fd3,_0x1cf8fb){return _0x244fd3[_0xeca5('0x9')](_0xeca5('0xa'),attributes,{'tableName':_0xeca5('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};