ff2fbd60e103880e4ccff37c1b5ed15549dd3fb4
[motion2.git] / server / api / intDeskAccount / intDeskAccount.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 _0x8e2f=['api','bluebird','request-promise','path','rimraf','./intDeskAccount.attributes','exports','define','DeskAccount','int_desk_accounts','lodash','util'];(function(_0x29643d,_0x33db91){var _0x233750=function(_0x200eee){while(--_0x200eee){_0x29643d['push'](_0x29643d['shift']());}};_0x233750(++_0x33db91);}(_0x8e2f,0xa6));var _0xf8e2=function(_0x59fe72,_0x21cd0b){_0x59fe72=_0x59fe72-0x0;var _0x583b28=_0x8e2f[_0x59fe72];return _0x583b28;};'use strict';var _=require(_0xf8e2('0x0'));var util=require(_0xf8e2('0x1'));var logger=require('../../config/logger')(_0xf8e2('0x2'));var moment=require('moment');var BPromise=require(_0xf8e2('0x3'));var rp=require(_0xf8e2('0x4'));var fs=require('fs');var path=require(_0xf8e2('0x5'));var rimraf=require(_0xf8e2('0x6'));var config=require('../../config/environment');var attributes=require(_0xf8e2('0x7'));var integrations=require('../../components/integrations/configuration');module[_0xf8e2('0x8')]=function(_0x147565,_0x1aa92a){return _0x147565[_0xf8e2('0x9')](_0xf8e2('0xa'),attributes,{'tableName':_0xf8e2('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};