Built motion from commit ddca4d0d.|2.5.47
[motion2.git] / server / api / userNotification / userNotification.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 _0xdf48=['moment','bluebird','request-promise','path','rimraf','./userNotification.attributes','exports','define','UserNotification','utf8mb4_unicode_ci','util','api'];(function(_0x22f8ab,_0x15d8ff){var _0x2a70e5=function(_0x5e6895){while(--_0x5e6895){_0x22f8ab['push'](_0x22f8ab['shift']());}};_0x2a70e5(++_0x15d8ff);}(_0xdf48,0x106));var _0x8df4=function(_0x849f33,_0x1cfb4f){_0x849f33=_0x849f33-0x0;var _0x115ec8=_0xdf48[_0x849f33];return _0x115ec8;};'use strict';var _=require('lodash');var util=require(_0x8df4('0x0'));var logger=require('../../config/logger')(_0x8df4('0x1'));var moment=require(_0x8df4('0x2'));var BPromise=require(_0x8df4('0x3'));var rp=require(_0x8df4('0x4'));var fs=require('fs');var path=require(_0x8df4('0x5'));var rimraf=require(_0x8df4('0x6'));var config=require('../../config/environment');var attributes=require(_0x8df4('0x7'));module[_0x8df4('0x8')]=function(_0x3f95a0,_0x1104cb){return _0x3f95a0[_0x8df4('0x9')](_0x8df4('0xa'),attributes,{'tableName':'userNotifications','paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x8df4('0xb')});};