7784f1a4e70924c9324ba65a5d6332764250de45
[motion2.git] / server / api / openchannelAccount / openchannelAccount.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 _0xed64=['bluebird','request-promise','../../config/environment','exports','define','lodash','util','../../config/logger','moment'];(function(_0x21ce97,_0x10dbe9){var _0x10ad5e=function(_0x568e92){while(--_0x568e92){_0x21ce97['push'](_0x21ce97['shift']());}};_0x10ad5e(++_0x10dbe9);}(_0xed64,0xc2));var _0x4ed6=function(_0x2390bd,_0x212fbd){_0x2390bd=_0x2390bd-0x0;var _0x3a969d=_0xed64[_0x2390bd];return _0x3a969d;};'use strict';var _=require(_0x4ed6('0x0'));var util=require(_0x4ed6('0x1'));var logger=require(_0x4ed6('0x2'))('api');var moment=require(_0x4ed6('0x3'));var BPromise=require(_0x4ed6('0x4'));var rp=require(_0x4ed6('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x4ed6('0x6'));var attributes=require('./openchannelAccount.attributes');module[_0x4ed6('0x7')]=function(_0x2d2c5b,_0x3a176c){return _0x2d2c5b[_0x4ed6('0x8')]('OpenchannelAccount',attributes,{'tableName':'openchannel_accounts','paranoid':![],'indexes':[],'timestamps':!![]});};