Built motion from commit (unavailable).|2.5.0
[motion2.git] / server / api / interval / interval.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 _0x682e=['rimraf','../../config/environment','./interval.attributes','../../components/extensions/rewrite','exports','define','Interval','tools_intervals','rewrite','lodash','../../config/logger','api','moment','bluebird','request-promise','path'];(function(_0x47e7cb,_0x4c1b8d){var _0x2a8874=function(_0x36498f){while(--_0x36498f){_0x47e7cb['push'](_0x47e7cb['shift']());}};_0x2a8874(++_0x4c1b8d);}(_0x682e,0x119));var _0xe682=function(_0x6d3149,_0x2ab43d){_0x6d3149=_0x6d3149-0x0;var _0x3b0b6d=_0x682e[_0x6d3149];return _0x3b0b6d;};'use strict';var _=require(_0xe682('0x0'));var util=require('util');var logger=require(_0xe682('0x1'))(_0xe682('0x2'));var moment=require(_0xe682('0x3'));var BPromise=require(_0xe682('0x4'));var rp=require(_0xe682('0x5'));var fs=require('fs');var path=require(_0xe682('0x6'));var rimraf=require(_0xe682('0x7'));var config=require(_0xe682('0x8'));var attributes=require(_0xe682('0x9'));var extensions=require(_0xe682('0xa'));module[_0xe682('0xb')]=function(_0x4898a1,_0x82fa21){return _0x4898a1[_0xe682('0xc')](_0xe682('0xd'),attributes,{'tableName':_0xe682('0xe'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterCreate':function(_0x5d9cd5,_0x2de5d5){extensions[_0xe682('0xf')](_0x4898a1,_0x5d9cd5);},'afterBulkCreate':function(_0xc6d5fe,_0x1a85c6,_0x10a39e){_0x10a39e();extensions[_0xe682('0xf')](_0x4898a1,_0xc6d5fe[0x0]);},'afterUpdate':function(_0x5da44a,_0x147c38){extensions[_0xe682('0xf')](_0x4898a1,_0x5da44a);},'afterDestroy':function(_0x4bb520,_0x160d76){extensions[_0xe682('0xf')](_0x4898a1,_0x4bb520);}}});};