Built motion from commit (unavailable).|2.0.79
[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 _0xe974=['../../config/logger','request-promise','../../components/extensions/rewrite','define','rewrite','lodash','util'];(function(_0xae7c2f,_0xf31e04){var _0x5d7001=function(_0x4eeadb){while(--_0x4eeadb){_0xae7c2f['push'](_0xae7c2f['shift']());}};_0x5d7001(++_0xf31e04);}(_0xe974,0xb4));var _0x4e97=function(_0x146be0,_0x39a85e){_0x146be0=_0x146be0-0x0;var _0x1bcc25=_0xe974[_0x146be0];return _0x1bcc25;};'use strict';var _=require(_0x4e97('0x0'));var util=require(_0x4e97('0x1'));var logger=require(_0x4e97('0x2'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x4e97('0x3'));var attributes=require('./interval.attributes');var extensions=require(_0x4e97('0x4'));module['exports']=function(_0x582786,_0x1be461){return _0x582786[_0x4e97('0x5')]('Interval',attributes,{'tableName':'tools_intervals','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterCreate':function(_0x4f469b,_0x4a0bae){extensions['rewrite'](_0x582786,_0x4f469b);},'afterBulkCreate':function(_0x3cb9c7,_0x6a5ae2,_0x1e3954){_0x1e3954();extensions[_0x4e97('0x6')](_0x582786,_0x3cb9c7[0x0]);},'afterUpdate':function(_0x54f518,_0x37a003){extensions[_0x4e97('0x6')](_0x582786,_0x54f518);},'afterDestroy':function(_0x6b9379,_0x2b3c15){extensions[_0x4e97('0x6')](_0x582786,_0x6b9379);}}});};