21359f4ea433244f5edb94a397221862e1f994a1
[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 _0xe88d=['request-promise','path','rimraf','../../config/environment','./smsApplication.attributes','exports','define','SmsApplication','sms_applications','utf8mb4','lodash','util','../../config/logger','bluebird'];(function(_0x5c12ba,_0x229eee){var _0x4ed0fa=function(_0x410943){while(--_0x410943){_0x5c12ba['push'](_0x5c12ba['shift']());}};_0x4ed0fa(++_0x229eee);}(_0xe88d,0x1ae));var _0xde88=function(_0x30faee,_0x1c3794){_0x30faee=_0x30faee-0x0;var _0x3a90ab=_0xe88d[_0x30faee];return _0x3a90ab;};'use strict';var _=require(_0xde88('0x0'));var util=require(_0xde88('0x1'));var logger=require(_0xde88('0x2'))('api');var moment=require('moment');var BPromise=require(_0xde88('0x3'));var rp=require(_0xde88('0x4'));var fs=require('fs');var path=require(_0xde88('0x5'));var rimraf=require(_0xde88('0x6'));var config=require(_0xde88('0x7'));var attributes=require(_0xde88('0x8'));module[_0xde88('0x9')]=function(_0x444ff2,_0x440acc){return _0x444ff2[_0xde88('0xa')](_0xde88('0xb'),attributes,{'tableName':_0xde88('0xc'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xde88('0xd'),'collate':'utf8mb4_unicode_ci'});};