Built motion from commit (unavailable).|2.4.20
[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 _0xd06d=['exports','define','tools_schedules','util','moment','bluebird','request-promise','path','../../config/environment','./schedule.attributes'];(function(_0x29260f,_0x15727b){var _0x27c402=function(_0x109b44){while(--_0x109b44){_0x29260f['push'](_0x29260f['shift']());}};_0x27c402(++_0x15727b);}(_0xd06d,0x1cf));var _0xdd06=function(_0x11ba46,_0x1d6752){_0x11ba46=_0x11ba46-0x0;var _0x1c8c6f=_0xd06d[_0x11ba46];return _0x1c8c6f;};'use strict';var _=require('lodash');var util=require(_0xdd06('0x0'));var logger=require('../../config/logger')('api');var moment=require(_0xdd06('0x1'));var BPromise=require(_0xdd06('0x2'));var rp=require(_0xdd06('0x3'));var fs=require('fs');var path=require(_0xdd06('0x4'));var rimraf=require('rimraf');var config=require(_0xdd06('0x5'));var attributes=require(_0xdd06('0x6'));module[_0xdd06('0x7')]=function(_0x366f8b,_0x5d50b6){return _0x366f8b[_0xdd06('0x8')]('Schedule',attributes,{'tableName':_0xdd06('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};