6ad1233e126f8e05ed4915d4dea6434393f846b6
[motion2.git] / server / api / disposition / disposition.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 _0x4fd7=['name_voice','ListId','name_chat','name','ChatWebsiteId','name_mail','MailAccountId','name_sms','SmsAccountId','name_fax','FaxAccountId','name_openchannel','OpenchannelAccountId','WhatsappAccountId','lodash','util','../../config/logger','api','request-promise','path','../../config/environment','exports','define','tools_dispositions'];(function(_0x5a99d3,_0x4eb12e){var _0xf76915=function(_0x2eac9b){while(--_0x2eac9b){_0x5a99d3['push'](_0x5a99d3['shift']());}};_0xf76915(++_0x4eb12e);}(_0x4fd7,0xe6));var _0x74fd=function(_0x49eb0d,_0x361529){_0x49eb0d=_0x49eb0d-0x0;var _0xdd23f3=_0x4fd7[_0x49eb0d];return _0xdd23f3;};'use strict';var _=require(_0x74fd('0x0'));var util=require(_0x74fd('0x1'));var logger=require(_0x74fd('0x2'))(_0x74fd('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x74fd('0x4'));var fs=require('fs');var path=require(_0x74fd('0x5'));var rimraf=require('rimraf');var config=require(_0x74fd('0x6'));var attributes=require('./disposition.attributes');module[_0x74fd('0x7')]=function(_0x480ec2,_0x1959e1){return _0x480ec2[_0x74fd('0x8')]('Disposition',attributes,{'tableName':_0x74fd('0x9'),'paranoid':![],'indexes':[{'unique':!![],'name':_0x74fd('0xa'),'fields':['name',_0x74fd('0xb')]},{'unique':!![],'name':_0x74fd('0xc'),'fields':[_0x74fd('0xd'),_0x74fd('0xe')]},{'unique':!![],'name':_0x74fd('0xf'),'fields':[_0x74fd('0xd'),_0x74fd('0x10')]},{'unique':!![],'name':_0x74fd('0x11'),'fields':[_0x74fd('0xd'),_0x74fd('0x12')]},{'unique':!![],'name':_0x74fd('0x13'),'fields':[_0x74fd('0xd'),_0x74fd('0x14')]},{'unique':!![],'name':_0x74fd('0x15'),'fields':[_0x74fd('0xd'),_0x74fd('0x16')]},{'unique':!![],'name':'name_whatsapp','fields':[_0x74fd('0xd'),_0x74fd('0x17')]}],'timestamps':!![]});};