9fa02f4eed1df0a341b2fbab5300790a8fe2a0ae
[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 _0xd90f=['rimraf','../../config/environment','define','UserNotification','userNotifications','utf8mb4','utf8mb4_unicode_ci','lodash','../../config/logger','moment','request-promise','path'];(function(_0x292a6f,_0x1413e4){var _0x3aefc4=function(_0x43a9bc){while(--_0x43a9bc){_0x292a6f['push'](_0x292a6f['shift']());}};_0x3aefc4(++_0x1413e4);}(_0xd90f,0x16f));var _0xfd90=function(_0x145479,_0x4a5bbe){_0x145479=_0x145479-0x0;var _0x3feb8f=_0xd90f[_0x145479];return _0x3feb8f;};'use strict';var _=require(_0xfd90('0x0'));var util=require('util');var logger=require(_0xfd90('0x1'))('api');var moment=require(_0xfd90('0x2'));var BPromise=require('bluebird');var rp=require(_0xfd90('0x3'));var fs=require('fs');var path=require(_0xfd90('0x4'));var rimraf=require(_0xfd90('0x5'));var config=require(_0xfd90('0x6'));var attributes=require('./userNotification.attributes');module['exports']=function(_0x539c9f,_0x1ab3be){return _0x539c9f[_0xfd90('0x7')](_0xfd90('0x8'),attributes,{'tableName':_0xfd90('0x9'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xfd90('0xa'),'collate':_0xfd90('0xb')});};