Built motion from commit d1eab355.|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 _0x4e52=['request-promise','path','rimraf','../../config/environment','exports','define','../../config/logger','api','moment'];(function(_0x56b8b9,_0x279311){var _0x2d9df7=function(_0x27aa69){while(--_0x27aa69){_0x56b8b9['push'](_0x56b8b9['shift']());}};_0x2d9df7(++_0x279311);}(_0x4e52,0x7b));var _0x24e5=function(_0xa0b998,_0x307a9d){_0xa0b998=_0xa0b998-0x0;var _0x462287=_0x4e52[_0xa0b998];return _0x462287;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x24e5('0x0'))(_0x24e5('0x1'));var moment=require(_0x24e5('0x2'));var BPromise=require('bluebird');var rp=require(_0x24e5('0x3'));var fs=require('fs');var path=require(_0x24e5('0x4'));var rimraf=require(_0x24e5('0x5'));var config=require(_0x24e5('0x6'));var attributes=require('./schedule.attributes');module[_0x24e5('0x7')]=function(_0x615cc2,_0x4d1fcb){return _0x615cc2[_0x24e5('0x8')]('Schedule',attributes,{'tableName':'tools_schedules','paranoid':![],'indexes':[],'timestamps':!![]});};