26194d68be350a390ba776783065ab9b13618a08
[motion2.git] / server / api / notification / notification.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 _0xe989=['notifications','utf8mb4','utf8mb4_unicode_ci','lodash','util','../../config/logger','moment','bluebird','request-promise','path','../../config/environment','./notification.attributes','define'];(function(_0x4b369d,_0x265eb8){var _0x571a98=function(_0x56341a){while(--_0x56341a){_0x4b369d['push'](_0x4b369d['shift']());}};_0x571a98(++_0x265eb8);}(_0xe989,0x107));var _0x9e98=function(_0x198a68,_0x1ab1cc){_0x198a68=_0x198a68-0x0;var _0x5f0d21=_0xe989[_0x198a68];return _0x5f0d21;};'use strict';var _=require(_0x9e98('0x0'));var util=require(_0x9e98('0x1'));var logger=require(_0x9e98('0x2'))('api');var moment=require(_0x9e98('0x3'));var BPromise=require(_0x9e98('0x4'));var rp=require(_0x9e98('0x5'));var fs=require('fs');var path=require(_0x9e98('0x6'));var rimraf=require('rimraf');var config=require(_0x9e98('0x7'));var attributes=require(_0x9e98('0x8'));module['exports']=function(_0x449730,_0xd17930){return _0x449730[_0x9e98('0x9')]('Notification',attributes,{'tableName':_0x9e98('0xa'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x9e98('0xb'),'collate':_0x9e98('0xc')});};