Built motion from commit 953226e6.|2.6.32
[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 _0x7d78=['path','../../config/environment','./schedule.attributes','exports','define','Schedule','tools_schedules','lodash','util','../../config/logger','api','bluebird'];(function(_0x5df651,_0x2f877b){var _0xe12ee6=function(_0x1884c4){while(--_0x1884c4){_0x5df651['push'](_0x5df651['shift']());}};_0xe12ee6(++_0x2f877b);}(_0x7d78,0x1c3));var _0x87d7=function(_0xa464c9,_0x7c86d8){_0xa464c9=_0xa464c9-0x0;var _0x3d73c4=_0x7d78[_0xa464c9];return _0x3d73c4;};'use strict';var _=require(_0x87d7('0x0'));var util=require(_0x87d7('0x1'));var logger=require(_0x87d7('0x2'))(_0x87d7('0x3'));var moment=require('moment');var BPromise=require(_0x87d7('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x87d7('0x5'));var rimraf=require('rimraf');var config=require(_0x87d7('0x6'));var attributes=require(_0x87d7('0x7'));module[_0x87d7('0x8')]=function(_0x553386,_0x4b3752){return _0x553386[_0x87d7('0x9')](_0x87d7('0xa'),attributes,{'tableName':_0x87d7('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};