42ade285698f5e1083b7d16087be12ed666f86de
[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 _0xc2e8=['rimraf','./userNotification.attributes','exports','utf8mb4_unicode_ci','lodash','util','moment','request-promise','path'];(function(_0xcdeb92,_0x3605d7){var _0x12c4ce=function(_0x2249fa){while(--_0x2249fa){_0xcdeb92['push'](_0xcdeb92['shift']());}};_0x12c4ce(++_0x3605d7);}(_0xc2e8,0x70));var _0x8c2e=function(_0x45d98b,_0x2ed187){_0x45d98b=_0x45d98b-0x0;var _0x24d6ab=_0xc2e8[_0x45d98b];return _0x24d6ab;};'use strict';var _=require(_0x8c2e('0x0'));var util=require(_0x8c2e('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x8c2e('0x2'));var BPromise=require('bluebird');var rp=require(_0x8c2e('0x3'));var fs=require('fs');var path=require(_0x8c2e('0x4'));var rimraf=require(_0x8c2e('0x5'));var config=require('../../config/environment');var attributes=require(_0x8c2e('0x6'));module[_0x8c2e('0x7')]=function(_0x2b784d,_0x4d1434){return _0x2b784d['define']('UserNotification',attributes,{'tableName':'userNotifications','paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x8c2e('0x8')});};