c0c490fc398815a3409f15de4b69355a0c750ff6
[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 _0x544c=['api','moment','bluebird','request-promise','path','../../config/environment','exports','define','Schedule','tools_schedules','util','../../config/logger'];(function(_0x3cd4f8,_0x116c1a){var _0x487b82=function(_0x3e42a8){while(--_0x3e42a8){_0x3cd4f8['push'](_0x3cd4f8['shift']());}};_0x487b82(++_0x116c1a);}(_0x544c,0x106));var _0xc544=function(_0x5b7606,_0x3367ef){_0x5b7606=_0x5b7606-0x0;var _0x186584=_0x544c[_0x5b7606];return _0x186584;};'use strict';var _=require('lodash');var util=require(_0xc544('0x0'));var logger=require(_0xc544('0x1'))(_0xc544('0x2'));var moment=require(_0xc544('0x3'));var BPromise=require(_0xc544('0x4'));var rp=require(_0xc544('0x5'));var fs=require('fs');var path=require(_0xc544('0x6'));var rimraf=require('rimraf');var config=require(_0xc544('0x7'));var attributes=require('./schedule.attributes');module[_0xc544('0x8')]=function(_0x30d5d3,_0x17a2ed){return _0x30d5d3[_0xc544('0x9')](_0xc544('0xa'),attributes,{'tableName':_0xc544('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};