bdce266f4e41da940cbf5fcc890478dbb41e7e1b
[motion2.git] / server / api / smsApplication / smsApplication.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 _0xa7f1=['moment','bluebird','request-promise','path','rimraf','../../config/environment','./smsApplication.attributes','exports','SmsApplication','sms_applications','utf8mb4','util','api'];(function(_0x310854,_0x39b8b7){var _0x35c9e6=function(_0x4655c8){while(--_0x4655c8){_0x310854['push'](_0x310854['shift']());}};_0x35c9e6(++_0x39b8b7);}(_0xa7f1,0x11c));var _0x1a7f=function(_0x2891d1,_0x2ddd3e){_0x2891d1=_0x2891d1-0x0;var _0x486948=_0xa7f1[_0x2891d1];return _0x486948;};'use strict';var _=require('lodash');var util=require(_0x1a7f('0x0'));var logger=require('../../config/logger')(_0x1a7f('0x1'));var moment=require(_0x1a7f('0x2'));var BPromise=require(_0x1a7f('0x3'));var rp=require(_0x1a7f('0x4'));var fs=require('fs');var path=require(_0x1a7f('0x5'));var rimraf=require(_0x1a7f('0x6'));var config=require(_0x1a7f('0x7'));var attributes=require(_0x1a7f('0x8'));module[_0x1a7f('0x9')]=function(_0x18e97d,_0x10ab09){return _0x18e97d['define'](_0x1a7f('0xa'),attributes,{'tableName':_0x1a7f('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x1a7f('0xc'),'collate':'utf8mb4_unicode_ci'});};