Built motion from commit ddca4d0d.|2.5.47
[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 _0x49e2=['SmsApplication','sms_applications','utf8mb4','utf8mb4_unicode_ci','lodash','util','../../config/logger','moment','bluebird','path','rimraf','../../config/environment','exports','define'];(function(_0x5e8460,_0x2003b5){var _0x3d50fd=function(_0x4c499f){while(--_0x4c499f){_0x5e8460['push'](_0x5e8460['shift']());}};_0x3d50fd(++_0x2003b5);}(_0x49e2,0x10e));var _0x249e=function(_0x1e56c9,_0x27c205){_0x1e56c9=_0x1e56c9-0x0;var _0x317979=_0x49e2[_0x1e56c9];return _0x317979;};'use strict';var _=require(_0x249e('0x0'));var util=require(_0x249e('0x1'));var logger=require(_0x249e('0x2'))('api');var moment=require(_0x249e('0x3'));var BPromise=require(_0x249e('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x249e('0x5'));var rimraf=require(_0x249e('0x6'));var config=require(_0x249e('0x7'));var attributes=require('./smsApplication.attributes');module[_0x249e('0x8')]=function(_0x5e07e2,_0x18697d){return _0x5e07e2[_0x249e('0x9')](_0x249e('0xa'),attributes,{'tableName':_0x249e('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x249e('0xc'),'collate':_0x249e('0xd')});};