Built motion from commit 19a84241.|2.5.34
[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 _0xc70d=['api','moment','bluebird','request-promise','../../config/environment','exports','tools_schedules','util','../../config/logger'];(function(_0x262b46,_0x275814){var _0x38b1d5=function(_0x21e9e7){while(--_0x21e9e7){_0x262b46['push'](_0x262b46['shift']());}};_0x38b1d5(++_0x275814);}(_0xc70d,0x178));var _0xdc70=function(_0xbc2749,_0xa3e209){_0xbc2749=_0xbc2749-0x0;var _0xd0c5de=_0xc70d[_0xbc2749];return _0xd0c5de;};'use strict';var _=require('lodash');var util=require(_0xdc70('0x0'));var logger=require(_0xdc70('0x1'))(_0xdc70('0x2'));var moment=require(_0xdc70('0x3'));var BPromise=require(_0xdc70('0x4'));var rp=require(_0xdc70('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xdc70('0x6'));var attributes=require('./schedule.attributes');module[_0xdc70('0x7')]=function(_0x54c561,_0x58e438){return _0x54c561['define']('Schedule',attributes,{'tableName':_0xdc70('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};