Built motion from commit 85328c08.|2.5.50
[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 _0x1f78=['util','api','bluebird','path','rimraf','../../config/environment','./intDeskAccount.attributes','exports','define','DeskAccount','int_desk_accounts'];(function(_0x53e14b,_0x163e2a){var _0x12dc1d=function(_0x44a785){while(--_0x44a785){_0x53e14b['push'](_0x53e14b['shift']());}};_0x12dc1d(++_0x163e2a);}(_0x1f78,0xbb));var _0x81f7=function(_0x2e0d95,_0x46ddd5){_0x2e0d95=_0x2e0d95-0x0;var _0x180302=_0x1f78[_0x2e0d95];return _0x180302;};'use strict';var _=require('lodash');var util=require(_0x81f7('0x0'));var logger=require('../../config/logger')(_0x81f7('0x1'));var moment=require('moment');var BPromise=require(_0x81f7('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x81f7('0x3'));var rimraf=require(_0x81f7('0x4'));var config=require(_0x81f7('0x5'));var attributes=require(_0x81f7('0x6'));var integrations=require('../../components/integrations/configuration');module[_0x81f7('0x7')]=function(_0x11d1f8,_0x1dac3b){return _0x11d1f8[_0x81f7('0x8')](_0x81f7('0x9'),attributes,{'tableName':_0x81f7('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};