Built motion from commit da617fac.|2.6.6
[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 _0x9935=['../../config/environment','exports','define','lodash','util','moment','bluebird','request-promise','path','rimraf'];(function(_0x47edc4,_0x550a5d){var _0x159758=function(_0x993c8a){while(--_0x993c8a){_0x47edc4['push'](_0x47edc4['shift']());}};_0x159758(++_0x550a5d);}(_0x9935,0x1cf));var _0x5993=function(_0x5c4620,_0x51e5c0){_0x5c4620=_0x5c4620-0x0;var _0x52722b=_0x9935[_0x5c4620];return _0x52722b;};'use strict';var _=require(_0x5993('0x0'));var util=require(_0x5993('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x5993('0x2'));var BPromise=require(_0x5993('0x3'));var rp=require(_0x5993('0x4'));var fs=require('fs');var path=require(_0x5993('0x5'));var rimraf=require(_0x5993('0x6'));var config=require(_0x5993('0x7'));var attributes=require('./schedule.attributes');module[_0x5993('0x8')]=function(_0x5d6c9b,_0x57bd56){return _0x5d6c9b[_0x5993('0x9')]('Schedule',attributes,{'tableName':'tools_schedules','paranoid':![],'indexes':[],'timestamps':!![]});};