294e2b0c2aedce6df867e48f41da8a7729078a2e
[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 _0x9004=['ChatWebsiteId','name_mail','SmsAccountId','FaxAccountId','name_openchannel','OpenchannelAccountId','name_whatsapp','WhatsappAccountId','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','../../config/environment','define','Disposition','name_voice','name','ListId','name_chat'];(function(_0x22dbb3,_0x2ab262){var _0x58c7c0=function(_0x1511c2){while(--_0x1511c2){_0x22dbb3['push'](_0x22dbb3['shift']());}};_0x58c7c0(++_0x2ab262);}(_0x9004,0x161));var _0x4900=function(_0x1b812e,_0x5612a7){_0x1b812e=_0x1b812e-0x0;var _0x178e54=_0x9004[_0x1b812e];return _0x178e54;};'use strict';var _=require(_0x4900('0x0'));var util=require(_0x4900('0x1'));var logger=require(_0x4900('0x2'))(_0x4900('0x3'));var moment=require(_0x4900('0x4'));var BPromise=require(_0x4900('0x5'));var rp=require(_0x4900('0x6'));var fs=require('fs');var path=require(_0x4900('0x7'));var rimraf=require('rimraf');var config=require(_0x4900('0x8'));var attributes=require('./disposition.attributes');module['exports']=function(_0x3062e8,_0x2b7a9e){return _0x3062e8[_0x4900('0x9')](_0x4900('0xa'),attributes,{'tableName':'tools_dispositions','paranoid':![],'indexes':[{'unique':!![],'name':_0x4900('0xb'),'fields':[_0x4900('0xc'),_0x4900('0xd')]},{'unique':!![],'name':_0x4900('0xe'),'fields':[_0x4900('0xc'),_0x4900('0xf')]},{'unique':!![],'name':_0x4900('0x10'),'fields':[_0x4900('0xc'),'MailAccountId']},{'unique':!![],'name':'name_sms','fields':[_0x4900('0xc'),_0x4900('0x11')]},{'unique':!![],'name':'name_fax','fields':['name',_0x4900('0x12')]},{'unique':!![],'name':_0x4900('0x13'),'fields':[_0x4900('0xc'),_0x4900('0x14')]},{'unique':!![],'name':_0x4900('0x15'),'fields':[_0x4900('0xc'),_0x4900('0x16')]}],'timestamps':!![]});};