70313a96e9d41a04532aec632ab58f45d8dbee19
[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 _0xbf22=['bluebird','path','rimraf','./userNotification.attributes','define','UserNotification','userNotifications','utf8mb4','utf8mb4_unicode_ci','lodash','util','api','moment'];(function(_0x2cc8bb,_0x5f2607){var _0x140e40=function(_0x80d96d){while(--_0x80d96d){_0x2cc8bb['push'](_0x2cc8bb['shift']());}};_0x140e40(++_0x5f2607);}(_0xbf22,0x10d));var _0x2bf2=function(_0x3b5a3a,_0x5b89e4){_0x3b5a3a=_0x3b5a3a-0x0;var _0xcb960c=_0xbf22[_0x3b5a3a];return _0xcb960c;};'use strict';var _=require(_0x2bf2('0x0'));var util=require(_0x2bf2('0x1'));var logger=require('../../config/logger')(_0x2bf2('0x2'));var moment=require(_0x2bf2('0x3'));var BPromise=require(_0x2bf2('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x2bf2('0x5'));var rimraf=require(_0x2bf2('0x6'));var config=require('../../config/environment');var attributes=require(_0x2bf2('0x7'));module['exports']=function(_0x345a1f,_0x43215a){return _0x345a1f[_0x2bf2('0x8')](_0x2bf2('0x9'),attributes,{'tableName':_0x2bf2('0xa'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x2bf2('0xb'),'collate':_0x2bf2('0xc')});};