Built motion from commit (unavailable).|2.5.4
[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 _0xac50=['../../config/logger','api','request-promise','path','rimraf','../../config/environment','exports','define','OpenchannelAccount','lodash'];(function(_0x52614f,_0x54e403){var _0x2a05df=function(_0x56692b){while(--_0x56692b){_0x52614f['push'](_0x52614f['shift']());}};_0x2a05df(++_0x54e403);}(_0xac50,0x8b));var _0x0ac5=function(_0x8a969d,_0x339d9f){_0x8a969d=_0x8a969d-0x0;var _0x1d8dc7=_0xac50[_0x8a969d];return _0x1d8dc7;};'use strict';var _=require(_0x0ac5('0x0'));var util=require('util');var logger=require(_0x0ac5('0x1'))(_0x0ac5('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x0ac5('0x3'));var fs=require('fs');var path=require(_0x0ac5('0x4'));var rimraf=require(_0x0ac5('0x5'));var config=require(_0x0ac5('0x6'));var attributes=require('./openchannelAccount.attributes');module[_0x0ac5('0x7')]=function(_0x2f3cc5,_0x1bb208){return _0x2f3cc5[_0x0ac5('0x8')](_0x0ac5('0x9'),attributes,{'tableName':'openchannel_accounts','paranoid':![],'indexes':[],'timestamps':!![]});};