Built motion from commit ddca4d0d.|2.5.47
[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 _0xb22d=['request-promise','../../config/environment','./schedule.attributes','exports','define','Schedule','tools_schedules','lodash','api','moment','bluebird'];(function(_0x3826ad,_0x49a30d){var _0x17b900=function(_0x38474f){while(--_0x38474f){_0x3826ad['push'](_0x3826ad['shift']());}};_0x17b900(++_0x49a30d);}(_0xb22d,0x167));var _0xdb22=function(_0x36eaaa,_0x326732){_0x36eaaa=_0x36eaaa-0x0;var _0x461349=_0xb22d[_0x36eaaa];return _0x461349;};'use strict';var _=require(_0xdb22('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xdb22('0x1'));var moment=require(_0xdb22('0x2'));var BPromise=require(_0xdb22('0x3'));var rp=require(_0xdb22('0x4'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xdb22('0x5'));var attributes=require(_0xdb22('0x6'));module[_0xdb22('0x7')]=function(_0x25fe39,_0x6d1f6d){return _0x25fe39[_0xdb22('0x8')](_0xdb22('0x9'),attributes,{'tableName':_0xdb22('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};