Built motion from commit 00bf23f6.|2.6.16
[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 _0x7a66=['rimraf','../../config/environment','./schedule.attributes','exports','define','Schedule','tools_schedules','lodash','util','../../config/logger','api','moment','request-promise','path'];(function(_0x165a3b,_0x145957){var _0x5a78e4=function(_0x1a05de){while(--_0x1a05de){_0x165a3b['push'](_0x165a3b['shift']());}};_0x5a78e4(++_0x145957);}(_0x7a66,0xbd));var _0x67a6=function(_0x4a8ae1,_0x2121f4){_0x4a8ae1=_0x4a8ae1-0x0;var _0xa3331a=_0x7a66[_0x4a8ae1];return _0xa3331a;};'use strict';var _=require(_0x67a6('0x0'));var util=require(_0x67a6('0x1'));var logger=require(_0x67a6('0x2'))(_0x67a6('0x3'));var moment=require(_0x67a6('0x4'));var BPromise=require('bluebird');var rp=require(_0x67a6('0x5'));var fs=require('fs');var path=require(_0x67a6('0x6'));var rimraf=require(_0x67a6('0x7'));var config=require(_0x67a6('0x8'));var attributes=require(_0x67a6('0x9'));module[_0x67a6('0xa')]=function(_0x4f79b7,_0x7fd5e8){return _0x4f79b7[_0x67a6('0xb')](_0x67a6('0xc'),attributes,{'tableName':_0x67a6('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};