Built motion from commit 5ba5b610.|2.5.33
[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 _0x4ac7=['name_voice','name_chat','name','ChatWebsiteId','name_mail','MailAccountId','name_sms','SmsAccountId','FaxAccountId','name_openchannel','OpenchannelAccountId','name_whatsapp','util','../../config/logger','api','moment','path','rimraf','./disposition.attributes','define','Disposition','tools_dispositions'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0x4ac7,0x16c));var _0x74ac=function(_0x39096d,_0x51f8a0){_0x39096d=_0x39096d-0x0;var _0x13da4f=_0x4ac7[_0x39096d];return _0x13da4f;};'use strict';var _=require('lodash');var util=require(_0x74ac('0x0'));var logger=require(_0x74ac('0x1'))(_0x74ac('0x2'));var moment=require(_0x74ac('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x74ac('0x4'));var rimraf=require(_0x74ac('0x5'));var config=require('../../config/environment');var attributes=require(_0x74ac('0x6'));module['exports']=function(_0x521f59,_0x126324){return _0x521f59[_0x74ac('0x7')](_0x74ac('0x8'),attributes,{'tableName':_0x74ac('0x9'),'paranoid':![],'indexes':[{'unique':!![],'name':_0x74ac('0xa'),'fields':['name','ListId']},{'unique':!![],'name':_0x74ac('0xb'),'fields':[_0x74ac('0xc'),_0x74ac('0xd')]},{'unique':!![],'name':_0x74ac('0xe'),'fields':[_0x74ac('0xc'),_0x74ac('0xf')]},{'unique':!![],'name':_0x74ac('0x10'),'fields':['name',_0x74ac('0x11')]},{'unique':!![],'name':'name_fax','fields':[_0x74ac('0xc'),_0x74ac('0x12')]},{'unique':!![],'name':_0x74ac('0x13'),'fields':[_0x74ac('0xc'),_0x74ac('0x14')]},{'unique':!![],'name':_0x74ac('0x15'),'fields':[_0x74ac('0xc'),'WhatsappAccountId']}],'timestamps':!![]});};