Built motion from commit 42801a18.|2.6.28
[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 _0x6935=['util','../../config/logger','api','bluebird','request-promise','rimraf','./schedule.attributes','exports','define','Schedule','lodash'];(function(_0x41bdaa,_0x4da5e5){var _0x55ba4a=function(_0x437dbd){while(--_0x437dbd){_0x41bdaa['push'](_0x41bdaa['shift']());}};_0x55ba4a(++_0x4da5e5);}(_0x6935,0x1ee));var _0x5693=function(_0x466e49,_0x379f14){_0x466e49=_0x466e49-0x0;var _0x3b7ea1=_0x6935[_0x466e49];return _0x3b7ea1;};'use strict';var _=require(_0x5693('0x0'));var util=require(_0x5693('0x1'));var logger=require(_0x5693('0x2'))(_0x5693('0x3'));var moment=require('moment');var BPromise=require(_0x5693('0x4'));var rp=require(_0x5693('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x5693('0x6'));var config=require('../../config/environment');var attributes=require(_0x5693('0x7'));module[_0x5693('0x8')]=function(_0x2b49f4,_0x499fb4){return _0x2b49f4[_0x5693('0x9')](_0x5693('0xa'),attributes,{'tableName':'tools_schedules','paranoid':![],'indexes':[],'timestamps':!![]});};